(self.webpackChunkjp_page_builder_editor=self.webpackChunkjp_page_builder_editor||[]).push([[216],{6214:(e,t,n)=>{function r(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1E-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,
Math.max(0,e))}function i(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function s(e){return 1===e.length?"0"+e:String(e)}function l(e,t,n){e=r(e,255),t=r(t,255),n=r(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,s=0,l=(o+i)/2;if(o===i)s=0,a=0;else{var u=o-i;switch(s=l>.5?u/(2-o-i):u/(o+i),o){case e:a=(t-n)/u+(t<n?6:0);break;case t:a=(n-e)/u+2;break;case n:a=(e-t)/u+4}a/=6}return{h:a,s:s,l:l}}function u(e,t,n){return n<0&&(n+=
1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function c(e,t,n){e=r(e,255),t=r(t,255),n=r(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,s=o,l=o-i,u=0===o?0:l/o;if(o===i)a=0;else{switch(o){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4}a/=6}return{h:a,s:u,v:s}}function f(e,t,n,r){var o=[s(Math.round(e).toString(16)),s(Math.round(t).toString(16)),s(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&
o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function d(e){return p(e)/255}function p(e){return parseInt(e,16)}n.d(t,{C:()=>w});var h={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",
cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",
dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",
lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",
mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",
powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",
whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},g="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),m="[\\s|\\(]+(".concat(g,")[,|\\s]+(").concat(g,")[,|\\s]+(").concat(g,")\\s*\\)?"),v="[\\s|\\(]+(".concat(g,")[,|\\s]+(").concat(g,")[,|\\s]+(").concat(g,")[,|\\s]+(").concat(g,")\\s*\\)?"),y={CSS_UNIT:new RegExp(g),rgb:new RegExp("rgb"+m),rgba:new RegExp("rgba"+v),hsl:new RegExp("hsl"+m),hsla:new RegExp("hsla"+v),hsv:new RegExp("hsv"+m),hsva:new RegExp("hsva"+v),
hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function b(e){return Boolean(y.CSS_UNIT.exec(String(e)))}var w=function(){function e(t,n){var o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&
e}}(t)),this.originalInput=t;var s=function(e){var t,n,o,s={r:0,g:0,b:0},l=1,c=null,f=null,g=null,m=!1,v=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(h[e])e=h[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=y.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=y.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=y.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=y.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=y.hsv.exec(e))?
{h:n[1],s:n[2],v:n[3]}:(n=y.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=y.hex8.exec(e))?{r:p(n[1]),g:p(n[2]),b:p(n[3]),a:d(n[4]),format:t?"name":"hex8"}:(n=y.hex6.exec(e))?{r:p(n[1]),g:p(n[2]),b:p(n[3]),format:t?"name":"hex"}:(n=y.hex4.exec(e))?{r:p(n[1]+n[1]),g:p(n[2]+n[2]),b:p(n[3]+n[3]),a:d(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=y.hex3.exec(e))&&{r:p(n[1]+n[1]),g:p(n[2]+n[2]),b:p(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(b(e.r)&&b(e.g)&&b(e.b)?(t=e.r,n=e.g,o=e.b,s={r:255*
r(t,255),g:255*r(n,255),b:255*r(o,255)},m=!0,v="%"===String(e.r).substr(-1)?"prgb":"rgb"):b(e.h)&&b(e.s)&&b(e.v)?(c=a(e.s),f=a(e.v),s=function(e,t,n){e=6*r(e,360),t=r(t,100),n=r(n,100);var o=Math.floor(e),i=e-o,a=n*(1-t),s=n*(1-i*t),l=n*(1-(1-i)*t),u=o%6;return{r:255*[n,s,a,a,l,n][u],g:255*[l,n,n,s,a,a][u],b:255*[a,a,l,n,n,s][u]}}(e.h,c,f),m=!0,v="hsv"):b(e.h)&&b(e.s)&&b(e.l)&&(c=a(e.s),g=a(e.l),s=function(e,t,n){var o,i,a;if(e=r(e,360),t=r(t,100),n=r(n,100),0===t)i=n,a=n,o=n;else{var s=n<.5?n*(1+
t):n+t-n*t,l=2*n-s;o=u(l,s,e+1/3),i=u(l,s,e),a=u(l,s,e-1/3)}return{r:255*o,g:255*i,b:255*a}}(e.h,c,g),m=!0,v="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(l=e.a)),l=i(l),{ok:m,format:e.format||v,r:Math.min(255,Math.max(s.r,0)),g:Math.min(255,Math.max(s.g,0)),b:Math.min(255,Math.max(s.b,0)),a:l}}(t);this.originalInput=t,this.r=s.r,this.g=s.g,this.b=s.b,this.a=s.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:s.format,this.gradientType=n.gradientType,this.r<
1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=s.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1E3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?
n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=i(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=c(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=c(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*
e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=l(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=l(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,
"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),f(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i,a=[s(Math.round(e).toString(16)),s(Math.round(t).toString(16)),s(Math.round(n).toString(16)),s((i=r,Math.round(255*parseFloat(i)).toString(16)))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&
a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=
function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*r(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*r(e,255))};return 1===this.a?"rgb(".concat(e(this.r),
"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+f(this.r,this.g,this.b,!1),t=0,n=Object.entries(h);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&
"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<
8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=o(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);
var n=this.toHsl();return n.l-=t/100,n.l=o(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=o(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=o(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=
function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=(new e(t)).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();
return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=(new e(t)).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*
(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===(new e(t)).toRgbString()},e}()},597:(e,t,n)=>{var r,o=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},i=(r=n(7294))&&r.__esModule?r:{default:r};t.Z=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,a=void 0===r?24:r,s=e.height,l=void 0===s?24:s,u=e.style,c=void 0===u?{}:u,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return i.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:a,height:l},c)},f),i.default.createElement("path",
{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},3891:(e,t,n)=>{var r,o=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},i=(r=n(7294))&&r.__esModule?r:{default:r};t.Z=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,a=void 0===r?24:r,s=e.height,l=void 0===s?24:s,u=e.style,c=void 0===u?{}:u,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,
r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return i.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:a,height:l},c)},f),i.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},8195:(e,t,n)=>{function r(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
else{var a=0;(i=new Error(t.replace(/%s/g,function(){return r[a++]}))).name="Invariant Violation"}throw i.framesToPop=1,i;}}n.d(t,{k:()=>r})},5047:(e,t,n)=>{function r(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),l=0;l<i.length;l++){var u=i[l];if(!s(u))return!1;var c=e[u],f=t[u];if(!1===
(o=n?n.call(r,c,f,u):void 0)||void 0===o&&c!==f)return!1}return!0}n.d(t,{w:()=>r})},1924:(e,t,n)=>{var r=n(210),o=n(5559),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},5559:(e,t,n)=>{var r=n(2514),o=n(210),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||r.call(a,i),l=o("%Object.getOwnPropertyDescriptor%",!0),u=o("%Object.defineProperty%",!0),c=o("%Math.max%");if(u)try{u({},
"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=s(r,a,arguments);return l&&u&&l(t,"length").configurable&&u(t,"length",{value:1+c(0,e.length-(arguments.length-1))}),t};var f=function(){return s(r,i,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},4184:(e,t)=>{var n;!function(){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&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},8018:(e,t,n)=>{!function(e){var t={active:1,after:1,before:1,checked:1,default:1,disabled:1,empty:1,enabled:1,"first-child":1,"first-letter":1,"first-line":1,"first-of-type":1,
focus:1,hover:1,"in-range":1,indeterminate:1,invalid:1,lang:1,"last-child":1,"last-of-type":1,link:1,not:1,"nth-child":1,"nth-last-child":1,"nth-last-of-type":1,"nth-of-type":1,"only-of-type":1,"only-child":1,optional:1,"out-of-range":1,placeholder:1,"read-only":1,"read-write":1,required:1,root:1,selection:1,target:1,valid:1,visited:1};e.registerHelper("hint","css",function(n){var r=n.getCursor(),o=n.getTokenAt(r),i=e.innerMode(n.getMode(),o.state);if("css"==i.mode.name){if("keyword"==o.type&&0==
"!important".indexOf(o.string))return{list:["!important"],from:e.Pos(r.line,o.start),to:e.Pos(r.line,o.end)};var a=o.start,s=r.ch,l=o.string.slice(0,s-a);/[^\w$_-]/.test(l)&&(l="",a=s=r.ch);var u=e.resolveMode("text/css"),c=[],f=i.state.state;return"pseudo"==f||"variable-3"==o.type?d(t):"block"==f||"maybeprop"==f?d(u.propertyKeywords):"prop"==f||"parens"==f||"at"==f||"params"==f?(d(u.valueKeywords),d(u.colorKeywords)):"media"!=f&&"media_parens"!=f||(d(u.mediaTypes),d(u.mediaFeatures)),c.length?{list:c,
from:e.Pos(r.line,a),to:e.Pos(r.line,s)}:void 0}function d(e){for(var t in e)l&&0!=t.lastIndexOf(l,0)||c.push(t)}})}(n(4631),n(6629))},1707:(e,t,n)=>{!function(e){var t="CodeMirror-hint-active";function n(e,t){if(this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}}
e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var r={hint:t};if(n)for(var o in n)r[o]=n[o];return e.showHint(r)},e.defineExtension("showHint",function(t){t=function(e,t,n){var r=e.options.hintOptions,o={};for(var i in u)o[i]=u[i];if(r)for(var i in r)void 0!==r[i]&&(o[i]=r[i]);if(n)for(var i in n)void 0!==n[i]&&(o[i]=n[i]);return o.hint.resolve&&(o.hint=o.hint.resolve(e,t)),o}(this,this.getCursor("start"),t);var r=this.listSelections();if(!(r.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;
for(var o=0;o<r.length;o++)if(r[o].head.line!=r[o].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var i=this.state.completionActive=new n(this,t);i.options.hint&&(e.signal(this,"startCompletion",this),i.update(!0))}}),e.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});var r=window.requestAnimationFrame||function(e){return setTimeout(e,1E3/60)},o=window.cancelAnimationFrame||clearTimeout;function i(e){return"string"==
typeof e?e:e.text}function a(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function s(n,r){this.id="cm-complete-"+Math.floor(Math.random(1E6)),this.completion=n,this.data=r,this.picked=!1;var o=this,s=n.cm,l=s.getInputField().ownerDocument,u=l.defaultView||l.parentWindow,c=this.hints=l.createElement("ul");c.setAttribute("role","listbox"),c.setAttribute("aria-expanded","true"),c.id=this.id;var f=n.cm.options.theme;c.className="CodeMirror-hints "+f,
this.selectedHint=r.selectedHint||0;for(var d=r.list,p=0;p<d.length;++p){var h=c.appendChild(l.createElement("li")),g=d[p],m="CodeMirror-hint"+(p!=this.selectedHint?"":" "+t);null!=g.className&&(m=g.className+" "+m),h.className=m,p==this.selectedHint&&h.setAttribute("aria-selected","true"),h.id=this.id+"-"+p,h.setAttribute("role","option"),g.render?g.render(h,r,g):h.appendChild(l.createTextNode(g.displayText||i(g))),h.hintId=p}var v=n.options.container||l.body,y=s.cursorCoords(n.options.alignWithWord?
r.from:null),b=y.left,w=y.bottom,x=!0,k=0,S=0;if(v!==l.body){var C=-1!==["absolute","relative","fixed"].indexOf(u.getComputedStyle(v).position)?v:v.offsetParent,O=C.getBoundingClientRect(),E=l.body.getBoundingClientRect();k=O.left-E.left-C.scrollLeft,S=O.top-E.top-C.scrollTop}c.style.left=b-k+"px",c.style.top=w-S+"px";var M=u.innerWidth||Math.max(l.body.offsetWidth,l.documentElement.offsetWidth),T=u.innerHeight||Math.max(l.body.offsetHeight,l.documentElement.offsetHeight);v.appendChild(c),s.getInputField().setAttribute("aria-autocomplete",
"list"),s.getInputField().setAttribute("aria-owns",this.id),s.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var _,A=n.options.moveOnOverlap?c.getBoundingClientRect():new DOMRect,P=!!n.options.paddingForScrollbar&&c.scrollHeight>c.clientHeight+1;if(setTimeout(function(){_=s.getScrollInfo()}),A.bottom-T>0){var D=A.bottom-A.top,N=A.top-(y.bottom-y.top)-2;T-A.top<N?(D>N&&(c.style.height=(D=N)+"px"),c.style.top=(w=y.top-D)+S+"px",x=!1):c.style.height=T-A.top-2+"px"}var R,
L=A.right-M;if(P&&(L+=s.display.nativeBarWidth),L>0&&(A.right-A.left>M&&(c.style.width=M-5+"px",L-=A.right-A.left-M),c.style.left=(b=Math.max(y.left-L-k,0))+"px"),P)for(var j=c.firstChild;j;j=j.nextSibling)j.style.paddingRight=s.display.nativeBarWidth+"px";s.addKeyMap(this.keyMap=function(e,t){var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-
1)},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(n["Ctrl-P"]=function(){t.moveFocus(-1)},n["Ctrl-N"]=function(){t.moveFocus(1)});var r=e.options.customKeys,o=r?{}:n;function i(e,r){var i;i="string"!=typeof r?function(e){return r(e,t)}:n.hasOwnProperty(r)?n[r]:r,o[e]=i}if(r)for(var a in r)r.hasOwnProperty(a)&&i(a,r[a]);var s=e.options.extraKeys;if(s)for(var a in s)s.hasOwnProperty(a)&&i(a,s[a]);return o}(n,{moveFocus:function(e,t){o.changeActive(o.selectedHint+e,t)},setFocus:function(e){o.changeActive(e)},
menuSize:function(){return o.screenAmount()},length:d.length,close:function(){n.close()},pick:function(){o.pick()},data:r})),n.options.closeOnUnfocus&&(s.on("blur",this.onBlur=function(){R=setTimeout(function(){n.close()},100)}),s.on("focus",this.onFocus=function(){clearTimeout(R)})),s.on("scroll",this.onScroll=function(){var e=s.getScrollInfo(),t=s.getWrapperElement().getBoundingClientRect();_||(_=s.getScrollInfo());var r=w+_.top-e.top,o=r-(u.pageYOffset||(l.documentElement||l.body).scrollTop);if(x||
(o+=c.offsetHeight),o<=t.top||o>=t.bottom)return n.close();c.style.top=r+"px",c.style.left=b+_.left-e.left+"px"}),e.on(c,"dblclick",function(e){var t=a(c,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),o.pick())}),e.on(c,"click",function(e){var t=a(c,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),n.options.completeOnSingleClick&&o.pick())}),e.on(c,"mousedown",function(){setTimeout(function(){s.focus()},20)});var I=this.getSelectedHintRange();return 0===I.from&&
0===I.to||this.scrollToActive(),e.signal(r,"select",d[this.selectedHint],c.childNodes[this.selectedHint]),!0}function l(e,t,n,r){if(e.async)e(t,r,n);else{var o=e(t,n);o&&o.then?o.then(r):r(o)}}n.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},
active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var r=t.list[n],o=this;this.cm.operation(function(){r.hint?r.hint(o.cm,t,r):o.cm.replaceRange(i(r),r.from||t.from,r.to||t.to,"complete"),e.signal(t,"pick",r),o.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(o(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),n=this.cm.getLine(t.line);if(t.line!=this.startPos.line||
n.length-t.ch!=this.startLen-this.startPos.ch||t.ch<e.ch||this.cm.somethingSelected()||!t.ch||this.options.closeCharacters.test(n.charAt(t.ch-1)))this.close();else{var i=this;this.debounce=r(function(){i.update()}),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,n=++this.tick;l(this.options.hint,this.cm,this.options,function(r){t.tick==n&&t.finishUpdate(r,e)})}},finishUpdate:function(t,n){this.data&&e.signal(this.data,"update");var r=this.widget&&this.widget.picked||
n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(r&&1==t.list.length?this.pick(t,0):(this.widget=new s(this,t),e.signal(t,"shown")))}},s.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm.getInputField();e.removeAttribute("aria-activedescendant"),e.removeAttribute("aria-owns");
var t=this.completion.cm;this.completion.options.closeOnUnfocus&&(t.off("blur",this.onBlur),t.off("focus",this.onFocus)),t.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(n,r){if(n>=this.data.list.length?n=r?this.data.list.length-1:0:n<0&&(n=r?0:this.data.list.length-
1),this.selectedHint!=n){var o=this.hints.childNodes[this.selectedHint];o&&(o.className=o.className.replace(" "+t,""),o.removeAttribute("aria-selected")),(o=this.hints.childNodes[this.selectedHint=n]).className+=" "+t,o.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",o.id),this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],o)}},scrollToActive:function(){var e=this.getSelectedHintRange(),t=this.hints.childNodes[e.from],
n=this.hints.childNodes[e.to],r=this.hints.firstChild;t.offsetTop<this.hints.scrollTop?this.hints.scrollTop=t.offsetTop-r.offsetTop:n.offsetTop+n.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+r.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var e=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-
e),to:Math.min(this.data.list.length-1,this.selectedHint+e)}}},e.registerHelper("hint","auto",{resolve:function(t,n){var r,o=t.getHelpers(n,"hint");if(o.length){var i=function(e,t,n){var r=function(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r<t.length;r++)t[r].supportsSelection&&n.push(t[r]);return n}(e,o);!function o(i){if(i==r.length)return t(null);l(r[i],e,n,function(e){e&&e.list.length>0?t(e):o(i+1)})}(0)};return i.async=!0,i.supportsSelection=!0,i}return(r=t.getHelper(t.getCursor(),
"hintWords"))?function(t){return e.hint.fromList(t,{words:r})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}}),e.registerHelper("hint","fromList",function(t,n){var r,o=t.getCursor(),i=t.getTokenAt(o),a=e.Pos(o.line,i.start),s=o;i.start<o.ch&&/\w/.test(i.string.charAt(o.ch-i.start-1))?r=i.string.substr(0,o.ch-i.start):(r="",a=o);for(var l=[],u=0;u<n.words.length;u++){var c=n.words[u];c.slice(0,r.length)==r&&l.push(c)}if(l.length)return{list:l,from:a,to:s}}),e.commands.autocomplete=
e.showHint;var u={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};e.defineOption("hintOptions",null)}(n(4631))},1423:(e,t,n)=>{!function(e){e.registerHelper("lint","css",function(t,n){var r=[];if(!window.CSSLint)return window.console&&window.console.error("Error: window.CSSLint not defined, CodeMirror CSS linting cannot run."),
r;for(var o=CSSLint.verify(t,n).messages,i=null,a=0;a<o.length;a++){var s=(i=o[a]).line-1,l=i.line-1,u=i.col-1,c=i.col;r.push({from:e.Pos(s,u),to:e.Pos(l,c),message:i.message,severity:i.type})}return r})}(n(4631))},3256:(e,t,n)=>{!function(e){var t="CodeMirror-lint-markers",n="CodeMirror-lint-line-";function r(e){e.parentNode&&e.parentNode.removeChild(e)}function o(t,n,o,i){var a=function(t,n,r){var o=document.createElement("div");function i(t){if(!o.parentNode)return e.off(document,"mousemove",i);
o.style.top=Math.max(0,t.clientY-o.offsetHeight-5)+"px",o.style.left=t.clientX+5+"px"}return o.className="CodeMirror-lint-tooltip cm-s-"+t.options.theme,o.appendChild(r.cloneNode(!0)),t.state.lint.options.selfContain?t.getWrapperElement().appendChild(o):document.body.appendChild(o),e.on(document,"mousemove",i),i(n),null!=o.style.opacity&&(o.style.opacity=1),o}(t,n,o);function s(){var t;e.off(i,"mouseout",s),a&&((t=a).parentNode&&(null==t.style.opacity&&r(t),t.style.opacity=0,setTimeout(function(){r(t)},
600)),a=null)}var l=setInterval(function(){if(a)for(var e=i;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){s();break}}if(!a)return clearInterval(l)},400);e.on(i,"mouseout",s)}function i(e,t,n){for(var r in this.marked=[],t instanceof Function&&(t={getAnnotations:t}),t&&!0!==t||(t={}),this.options={},this.linterOptions=t.options||{},a)this.options[r]=a[r];for(var r in t)a.hasOwnProperty(r)?null!=t[r]&&(this.options[r]=t[r]):t.options||(this.linterOptions[r]=t[r]);
this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){!function(e,t){var n=t.target||t.srcElement;if(/\bCodeMirror-lint-mark-/.test(n.className)){for(var r=n.getBoundingClientRect(),i=(r.left+r.right)/2,a=(r.top+r.bottom)/2,s=e.findMarksAt(e.coordsChar({left:i,top:a},"client")),l=[],c=0;c<s.length;++c){var f=s[c].__annotation;f&&l.push(f)}l.length&&function(e,t,n){for(var r=n.target||n.srcElement,i=document.createDocumentFragment(),a=0;a<t.length;a++){var s=t[a];i.appendChild(u(s))}o(e,
n,i,r)}(e,l,t)}}(e,t)},this.waitingFor=0}var a={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function s(e){var n=e.state.lint;n.hasGutter&&e.clearGutter(t),n.options.highlightLines&&function(e){e.eachLine(function(t){var n=t.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(t.wrapClass);n&&e.removeLineClass(t,"wrap",n[0])})}(e);for(var r=0;r<n.marked.length;++r)n.marked[r].clear();n.marked.length=0}function l(t,
n,r,i,a){var s=document.createElement("div"),l=s;return s.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+r,i&&((l=s.appendChild(document.createElement("div"))).className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),0!=a&&e.on(l,"mouseover",function(e){o(t,e,n,l)}),s}function u(e){var t=e.severity;t||(t="error");var n=document.createElement("div");return n.className="CodeMirror-lint-message CodeMirror-lint-message-"+t,void 0!==e.messageHTML?n.innerHTML=e.messageHTML:n.appendChild(document.createTextNode(e.message)),
n}function c(t){var n=t.state.lint;if(n){var r=n.options,o=r.getAnnotations||t.getHelper(e.Pos(0,0),"lint");if(o)if(r.async||o.async)!function(t,n){var r=t.state.lint,o=++r.waitingFor;function i(){o=-1,t.off("change",i)}t.on("change",i),n(t.getValue(),function(n,a){t.off("change",i),r.waitingFor==o&&(a&&n instanceof e&&(n=a),t.operation(function(){f(t,n)}))},r.linterOptions,t)}(t,o);else{var i=o(t.getValue(),n.linterOptions,t);if(!i)return;i.then?i.then(function(e){t.operation(function(){f(t,e)})}):
t.operation(function(){f(t,i)})}}}function f(e,r){var o,i=e.state.lint;if(i){var a=i.options;s(e);for(var c=function(e){for(var t=[],n=0;n<e.length;++n){var r=e[n],o=r.from.line;(t[o]||(t[o]=[])).push(r)}return t}(r),f=0;f<c.length;++f){var d=c[f];if(d){var p=[];d=d.filter(function(e){return!(p.indexOf(e.message)>-1)&&p.push(e.message)});for(var h=null,g=i.hasGutter&&document.createDocumentFragment(),m=0;m<d.length;++m){var v=d[m],y=v.severity;y||(y="error"),h="error"==(o=h)?o:y,a.formatAnnotation&&
(v=a.formatAnnotation(v)),i.hasGutter&&g.appendChild(u(v)),v.to&&i.marked.push(e.markText(v.from,v.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+y,__annotation:v}))}i.hasGutter&&e.setGutterMarker(f,t,l(e,g,h,c[f].length>1,a.tooltips)),a.highlightLines&&e.addLineClass(f,"wrap",n+h)}}a.onUpdateLinting&&a.onUpdateLinting(r,c,e)}}function d(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(function(){c(e)},t.options.delay))}e.defineOption("lint",!1,function(n,r,o){if(o&&
o!=e.Init&&(s(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",d),e.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),r){for(var a=n.getOption("gutters"),l=!1,u=0;u<a.length;++u)a[u]==t&&(l=!0);var f=n.state.lint=new i(n,r,l);f.options.lintOnChange&&n.on("change",d),0!=f.options.tooltips&&"gutter"!=f.options.tooltips&&e.on(n.getWrapperElement(),"mouseover",f.onMouseOver),c(n)}}),e.defineExtension("performLint",function(){c(this)})}(n(4631))},
4631:function(e){e.exports=function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),o=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),i=/Edge\/(\d+)/.exec(e),a=r||o||i,s=a&&(r?document.documentMode||6:+(i||o)[1]),l=!i&&/WebKit\//.test(e),u=l&&/Qt\/\d+\.\d+/.test(e),c=!i&&/Chrome\/(\d+)/.exec(e),f=c&&+c[1],d=/Opera\//.test(e),p=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),g=/PhantomJS/.test(e),m=p&&(/Mobile\/\w+/.test(e)||
navigator.maxTouchPoints>2),v=/Android/.test(e),y=m||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=m||/Mac/.test(t),w=/\bCrOS\b/.test(e),x=/win/i.test(t),k=d&&e.match(/Version\/(\d*\.\d*)/);k&&(k=Number(k[1])),k&&k>=15&&(d=!1,l=!0);var S=b&&(u||d&&(null==k||k<12.11)),C=n||a&&s>=9;function O(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var E,M=function(e,t){var n=e.className,r=O(t).exec(n);if(r){var o=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(o?r[1]+o:"")}};
function T(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function _(e,t){return T(e).appendChild(t)}function A(e,t,n,r){var o=document.createElement(e);if(n&&(o.className=n),r&&(o.style.cssText=r),"string"==typeof t)o.appendChild(document.createTextNode(t));else if(t)for(var i=0;i<t.length;++i)o.appendChild(t[i]);return o}function P(e,t,n,r){var o=A(e,t,n,r);return o.setAttribute("role","presentation"),o}function D(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);
do if(11==t.nodeType&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function N(e){var t;try{t=e.activeElement}catch(n){t=e.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function R(e,t){var n=e.className;O(t).test(n)||(e.className+=(n?" ":"")+t)}function L(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!O(n[r]).test(t)&&(t+=" "+n[r]);return t}E=document.createRange?function(e,t,n,r){var o=document.createRange();return o.setEnd(r||e,n),o.setStart(e,
t),o}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var j=function(e){e.select()};function I(e){return e.display.wrapper.ownerDocument}function F(e){return I(e).defaultView}function z(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function H(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||
(t[r]=e[r]);return t}function B(e,t,n,r,o){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var i=r||0,a=o||0;;){var s=e.indexOf("\t",i);if(s<0||s>=t)return a+(t-i);a+=s-i,a+=n-a%n,i=s+1}}m?j=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(j=function(e){try{e.select()}catch(e){}});var V=function(){this.id=null,this.f=null,this.time=0,this.handler=z(this.onTimeout,this)};function W(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}V.prototype.onTimeout=function(e){e.id=
0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},V.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var $=50,U={toString:function(){return"CodeMirror.Pass"}},q={scroll:!1},Z={origin:"*mouse"},K={origin:"+move"};function Y(e,t,n){for(var r=0,o=0;;){var i=e.indexOf("\t",r);-1==i&&(i=e.length);var a=i-r;if(i==e.length||o+a>=t)return r+Math.min(a,t-o);if(o+=i-r,r=i+1,(o+=n-o%n)>=t)return r}}
var G=[""];function J(e){for(;G.length<=e;)G.push(X(G)+" ");return G[e]}function X(e){return e[e.length-1]}function Q(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function ee(){}function te(e,t){var n;return Object.create?n=Object.create(e):(ee.prototype=e,n=new ee),t&&H(t,n),n}var ne=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function re(e){return/\w/.test(e)||e>"\u0080"&&(e.toUpperCase()!=e.toLowerCase()||ne.test(e))}
function oe(e,t){return t?!!(t.source.indexOf("\\w")>-1&&re(e))||t.test(e):re(e)}function ie(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ae=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;
function se(e){return e.charCodeAt(0)>=768&&ae.test(e)}function le(e,t,n){for(;(n<0?t>0:t<e.length)&&se(e.charAt(t));)t+=n;return t}function ue(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var o=(t+n)/2,i=r<0?Math.ceil(o):Math.floor(o);if(i==t)return e(i)?t:n;e(i)?n=i:t=i+r}}var ce=null;function fe(e,t,n){var r;ce=null;for(var o=0;o<e.length;++o){var i=e[o];if(i.from<t&&i.to>t)return o;i.to==t&&(i.from!=i.to&&"before"==n?r=o:ce=o),i.from==t&&(i.from!=i.to&&"before"!=n?r=o:ce=o)}return null!=r?r:
ce}var de=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,o=/[1n]/;function i(e,t,n){this.level=e,this.from=t,this.to=n}return function(a,s){var l,u="ltr"==s?"L":"R";if(0==a.length||"ltr"==s&&!e.test(a))return!1;for(var c=a.length,f=[],d=0;d<c;++d)f.push((l=a.charCodeAt(d))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(l):
1424<=l&&l<=1524?"R":1536<=l&&l<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(l-1536):1774<=l&&l<=2220?"r":8192<=l&&l<=8203?"w":8204==l?"b":"L");for(var p=0,h=u;p<c;++p){var g=f[p];"m"==g?f[p]=h:h=g}for(var m=0,v=u;m<c;++m){var y=f[m];"1"==y&&"r"==v?f[m]="n":n.test(y)&&(v=y,"r"==y&&
(f[m]="R"))}for(var b=1,w=f[0];b<c-1;++b){var x=f[b];"+"==x&&"1"==w&&"1"==f[b+1]?f[b]="1":","!=x||w!=f[b+1]||"1"!=w&&"n"!=w||(f[b]=w),w=x}for(var k=0;k<c;++k){var S=f[k];if(","==S)f[k]="N";else if("%"==S){var C=void 0;for(C=k+1;C<c&&"%"==f[C];++C);for(var O=k&&"!"==f[k-1]||C<c&&"1"==f[C]?"1":"N",E=k;E<C;++E)f[E]=O;k=C-1}}for(var M=0,T=u;M<c;++M){var _=f[M];"L"==T&&"1"==_?f[M]="L":n.test(_)&&(T=_)}for(var A=0;A<c;++A)if(t.test(f[A])){var P=void 0;for(P=A+1;P<c&&t.test(f[P]);++P);for(var D="L"==(A?
f[A-1]:u),N=D==("L"==(P<c?f[P]:u))?D?"L":"R":u,R=A;R<P;++R)f[R]=N;A=P-1}for(var L,j=[],I=0;I<c;)if(r.test(f[I])){var F=I;for(++I;I<c&&r.test(f[I]);++I);j.push(new i(0,F,I))}else{var z=I,H=j.length,B="rtl"==s?1:0;for(++I;I<c&&"L"!=f[I];++I);for(var V=z;V<I;)if(o.test(f[V])){z<V&&(j.splice(H,0,new i(1,z,V)),H+=B);var W=V;for(++V;V<I&&o.test(f[V]);++V);j.splice(H,0,new i(2,W,V)),H+=B,z=V}else++V;z<I&&j.splice(H,0,new i(1,z,I))}return"ltr"==s&&(1==j[0].level&&(L=a.match(/^\s+/))&&(j[0].from=L[0].length,
j.unshift(new i(0,0,L[0].length))),1==X(j).level&&(L=a.match(/\s+$/))&&(X(j).to-=L[0].length,j.push(new i(0,c-L[0].length,c)))),"rtl"==s?j.reverse():j}}();function pe(e,t){var n=e.order;return null==n&&(n=e.order=de(e.text,t)),n}var he=[],ge=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||he).concat(n)}};function me(e,t){return e._handlers&&e._handlers[t]||he}function ve(e,t,n){if(e.removeEventListener)e.removeEventListener(t,
n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,o=r&&r[t];if(o){var i=W(o,n);i>-1&&(r[t]=o.slice(0,i).concat(o.slice(i+1)))}}}function ye(e,t){var n=me(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),o=0;o<n.length;++o)n[o].apply(null,r)}function be(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),ye(e,n||t.type,e,t),Oe(t)||t.codemirrorIgnore}function we(e){var t=e._handlers&&e._handlers.cursorActivity;
if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==W(n,t[r])&&n.push(t[r])}function xe(e,t){return me(e,t).length>0}function ke(e){e.prototype.on=function(e,t){ge(this,e,t)},e.prototype.off=function(e,t){ve(this,e,t)}}function Se(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ce(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Oe(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ee(e){Se(e),
Ce(e)}function Me(e){return e.target||e.srcElement}function Te(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var _e,Ae,Pe=function(){if(a&&s<9)return!1;var e=A("div");return"draggable"in e||"dragDrop"in e}();function De(e){if(null==_e){var t=A("span","\u200b");_(e,A("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(_e=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=_e?A("span","\u200b"):A("span","\u00a0",
null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ne(e){if(null!=Ae)return Ae;var t=_(e,document.createTextNode("A\u062eA")),n=E(t,0,1).getBoundingClientRect(),r=E(t,1,2).getBoundingClientRect();return T(e),!(!n||n.left==n.right)&&(Ae=r.right-n.right<3)}var Re,Le=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var o=e.indexOf("\n",t);-1==o&&(o=e.length);var i=e.slice(t,"\r"==e.charAt(o-1)?o-1:o),a=i.indexOf("\r");
-1!=a?(n.push(i.slice(0,a)),t+=a+1):(n.push(i),t=o+1)}return n}:function(e){return e.split(/\r\n?|\n/)},je=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Ie="oncopy"in(Re=A("div"))||(Re.setAttribute("oncopy","return;"),"function"==typeof Re.oncopy),Fe=null,ze={},He={};function Be(e,t){arguments.length>2&&
(t.dependencies=Array.prototype.slice.call(arguments,2)),ze[e]=t}function Ve(e){if("string"==typeof e&&He.hasOwnProperty(e))e=He[e];else if(e&&"string"==typeof e.name&&He.hasOwnProperty(e.name)){var t=He[e.name];"string"==typeof t&&(t={name:t}),(e=te(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ve("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ve("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function We(e,
t){t=Ve(t);var n=ze[t.name];if(!n)return We(e,"text/plain");var r=n(e,t);if($e.hasOwnProperty(t.name)){var o=$e[t.name];for(var i in o)o.hasOwnProperty(i)&&(r.hasOwnProperty(i)&&(r["_"+i]=r[i]),r[i]=o[i])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var $e={};function Ue(e,t){H(t,$e.hasOwnProperty(e)?$e[e]:$e[e]={})}function qe(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var o=
t[r];o instanceof Array&&(o=o.concat([])),n[r]=o}return n}function Ze(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ke(e,t,n){return!e.startState||e.startState(t,n)}var Ye=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Ge(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");
for(var n=e;!n.lines;)for(var r=0;;++r){var o=n.children[r],i=o.chunkSize();if(t<i){n=o;break}t-=i}return n.lines[t]}function Je(e,t,n){var r=[],o=t.line;return e.iter(t.line,n.line+1,function(e){var i=e.text;o==n.line&&(i=i.slice(0,n.ch)),o==t.line&&(i=i.slice(t.ch)),r.push(i),++o}),r}function Xe(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function Qe(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function et(e){if(null==e.parent)return null;for(var t=e.parent,
n=W(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var o=0;r.children[o]!=t;++o)n+=r.children[o].chunkSize();return n+t.first}function tt(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var o=e.children[r],i=o.height;if(t<i){e=o;continue e}t-=i,n+=o.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function nt(e,t){return t>=e.first&&t<e.first+e.size}function rt(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}
function ot(e,t,n){if(void 0===n&&(n=null),!(this instanceof ot))return new ot(e,t,n);this.line=e,this.ch=t,this.sticky=n}function it(e,t){return e.line-t.line||e.ch-t.ch}function at(e,t){return e.sticky==t.sticky&&0==it(e,t)}function st(e){return ot(e.line,e.ch)}function lt(e,t){return it(e,t)<0?t:e}function ut(e,t){return it(e,t)<0?e:t}function ct(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ft(e,t){if(t.line<e.first)return ot(e.first,0);var n=e.first+e.size-1;return t.line>
n?ot(n,Ge(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?ot(e.line,t):n<0?ot(e.line,0):e}(t,Ge(e,t.line).text.length)}function dt(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=ft(e,t[r]);return n}Ye.prototype.eol=function(){return this.pos>=this.string.length},Ye.prototype.sol=function(){return this.pos==this.lineStart},Ye.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ye.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},
Ye.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Ye.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Ye.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ye.prototype.skipToEnd=function(){this.pos=this.string.length},Ye.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=
t,!0},Ye.prototype.backUp=function(e){this.pos-=e},Ye.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=B(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?B(this.string,this.lineStart,this.tabSize):0)},Ye.prototype.indentation=function(){return B(this.string,null,this.tabSize)-(this.lineStart?B(this.string,this.lineStart,this.tabSize):0)},Ye.prototype.match=function(e,
t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var o=function(e){return n?e.toLowerCase():e};if(o(this.string.substr(this.pos,e.length))==o(e))return!1!==t&&(this.pos+=e.length),!0},Ye.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ye.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ye.prototype.lookAhead=function(e){var t=this.lineOracle;
return t&&t.lookAhead(e)},Ye.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var pt=function(e,t){this.state=e,this.lookAhead=t},ht=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function gt(e,t,n,r){var o=[e.state.modeGen],i={};Ct(e,t.text,e.doc.mode,n,function(e,t){return o.push(e,t)},i,r);for(var a=n.state,s=function(r){n.baseTokens=o;var s=e.state.overlays[r],l=1,u=0;n.state=!0,Ct(e,t.text,
s.mode,n,function(e,t){for(var n=l;u<e;){var r=o[l];r>e&&o.splice(l,1,e,o[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(s.opaque)o.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var i=o[n+1];o[n+1]=(i?i+" ":"")+"overlay "+t}},i),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);return{styles:o,classes:i.bgClass||i.textClass?i:null}}function mt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=vt(e,et(t)),o=t.text.length>e.options.maxHighlightLength&&qe(e.doc.mode,
r.state),i=gt(e,t,r);o&&(r.state=o),t.stateAfter=r.save(!o),t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function vt(e,t,n){var r=e.doc,o=e.display;if(!r.mode.startState)return new ht(r,!0,t);var i=function(e,t,n){for(var r,o,i=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1E3:100),s=t;s>a;--s){if(s<=i.first)return i.first;var l=Ge(i,s-1),u=
l.stateAfter;if(u&&(!n||s+(u instanceof pt?u.lookAhead:0)<=i.modeFrontier))return s;var c=B(l.text,null,e.options.tabSize);(null==o||r>c)&&(o=s-1,r=c)}return o}(e,t,n),a=i>r.first&&Ge(r,i-1).stateAfter,s=a?ht.fromSaved(r,a,i):new ht(r,Ke(r.mode),i);return r.iter(i,t,function(n){yt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=o.viewFrom&&r<o.viewTo?s.save():null,s.nextLine()}),n&&(r.modeFrontier=s.line),s}function yt(e,t,n,r){var o=e.doc.mode,i=new Ye(t,e.options.tabSize,n);for(i.start=
i.pos=r||0,""==t&&bt(o,n.state);!i.eol();)wt(o,i,n.state),i.start=i.pos}function bt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Ze(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function wt(e,t,n,r){for(var o=0;o<10;o++){r&&(r[0]=Ze(e,n).mode);var i=e.token(t,n);if(t.pos>t.start)return i}throw new Error("Mode "+e.name+" failed to advance stream.");}ht.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=
e),t},ht.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ht.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ht.fromSaved=function(e,t,n){return t instanceof pt?new ht(e,qe(e.mode,t.state),n,t.lookAhead):new ht(e,qe(e.mode,t),n)},ht.prototype.save=function(e){var t=
!1!==e?qe(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new pt(t,this.maxLookAhead):t};var xt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function kt(e,t,n,r){var o,i,a=e.doc,s=a.mode,l=Ge(a,(t=ft(a,t)).line),u=vt(e,t.line,n),c=new Ye(l.text,e.options.tabSize,u);for(r&&(i=[]);(r||c.pos<t.ch)&&!c.eol();)c.start=c.pos,o=wt(s,c,u.state),r&&i.push(new xt(c,o,qe(a.mode,u.state)));return r?i:new xt(c,o,u.state)}function St(e,
t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:(new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)")).test(t[r])||(t[r]+=" "+n[2])}return e}function Ct(e,t,n,r,o,i,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,u=0,c=null,f=new Ye(t,e.options.tabSize,r),d=e.options.addModeClass&&[null];for(""==t&&St(bt(n,r.state),i);!f.eol();){if(f.pos>e.options.maxHighlightLength?
(s=!1,a&&yt(e,t,r,f.pos),f.pos=t.length,l=null):l=St(wt(n,f,r.state,d),i),d){var p=d[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!s||c!=l){for(;u<f.start;)o(u=Math.min(f.start,u+5E3),c);c=l}f.start=f.pos}for(;u<f.pos;){var h=Math.min(f.pos,u+5E3);o(h,c),u=h}}var Ot=!1,Et=!1;function Mt(e,t,n){this.marker=e,this.from=t,this.to=n}function Tt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function _t(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function At(e,
t){if(t.full)return null;var n=nt(e,t.from.line)&&Ge(e,t.from.line).markedSpans,r=nt(e,t.to.line)&&Ge(e,t.to.line).markedSpans;if(!n&&!r)return null;var o=t.from.ch,i=t.to.ch,a=0==it(t.from,t.to),s=function(e,t,n){var r;if(e)for(var o=0;o<e.length;++o){var i=e[o],a=i.marker;if(null==i.from||(a.inclusiveLeft?i.from<=t:i.from<t)||i.from==t&&"bookmark"==a.type&&(!n||!i.marker.insertLeft)){var s=null==i.to||(a.inclusiveRight?i.to>=t:i.to>t);(r||(r=[])).push(new Mt(a,i.from,s?null:i.to))}}return r}(n,
o,a),l=function(e,t,n){var r;if(e)for(var o=0;o<e.length;++o){var i=e[o],a=i.marker;if(null==i.to||(a.inclusiveRight?i.to>=t:i.to>t)||i.from==t&&"bookmark"==a.type&&(!n||i.marker.insertLeft)){var s=null==i.from||(a.inclusiveLeft?i.from<=t:i.from<t);(r||(r=[])).push(new Mt(a,s?null:i.from-t,null==i.to?null:i.to-t))}}return r}(r,i,a),u=1==t.text.length,c=X(t.text).length+(u?o:0);if(s)for(var f=0;f<s.length;++f){var d=s[f];if(null==d.to){var p=Tt(l,d.marker);p?u&&(d.to=null==p.to?null:p.to+c):d.to=o}}if(l)for(var h=
0;h<l.length;++h){var g=l[h];null!=g.to&&(g.to+=c),null==g.from?Tt(s,g.marker)||(g.from=c,u&&(s||(s=[])).push(g)):(g.from+=c,u&&(s||(s=[])).push(g))}s&&(s=Pt(s)),l&&l!=s&&(l=Pt(l));var m=[s];if(!u){var v,y=t.text.length-2;if(y>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(v||(v=[])).push(new Mt(s[b].marker,null,null));for(var w=0;w<y;++w)m.push(v);m.push(l)}return m}function Pt(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?
e:null}function Dt(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Nt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Rt(e){return e.inclusiveLeft?-1:0}function Lt(e){return e.inclusiveRight?1:0}function jt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),o=t.find(),i=it(r.from,o.from)||Rt(e)-Rt(t);return i?-i:it(r.to,o.to)||Lt(e)-Lt(t)||t.id-e.id}function It(e,t){var n,
r=Et&&e.markedSpans;if(r)for(var o=void 0,i=0;i<r.length;++i)(o=r[i]).marker.collapsed&&null==(t?o.from:o.to)&&(!n||jt(n,o.marker)<0)&&(n=o.marker);return n}function Ft(e){return It(e,!0)}function zt(e){return It(e,!1)}function Ht(e,t){var n,r=Et&&e.markedSpans;if(r)for(var o=0;o<r.length;++o){var i=r[o];i.marker.collapsed&&(null==i.from||i.from<t)&&(null==i.to||i.to>t)&&(!n||jt(n,i.marker)<0)&&(n=i.marker)}return n}function Bt(e,t,n,r,o){var i=Ge(e,t),a=Et&&i.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=
a[s];if(l.marker.collapsed){var u=l.marker.find(0),c=it(u.from,n)||Rt(l.marker)-Rt(o),f=it(u.to,r)||Lt(l.marker)-Lt(o);if(!(c>=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(l.marker.inclusiveRight&&o.inclusiveLeft?it(u.to,n)>=0:it(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&o.inclusiveLeft?it(u.from,r)<=0:it(u.from,r)<0)))return!0}}}function Vt(e){for(var t;t=Ft(e);)e=t.find(-1,!0).line;return e}function Wt(e,t){var n=Ge(e,t),r=Vt(n);return n==r?t:et(r)}function $t(e,t){if(t>e.lastLine())return t;var n,r=Ge(e,t);
if(!Ut(e,r))return t;for(;n=zt(r);)r=n.find(1,!0).line;return et(r)+1}function Ut(e,t){var n=Et&&t.markedSpans;if(n)for(var r=void 0,o=0;o<n.length;++o)if((r=n[o]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&qt(e,t,r))return!0}}function qt(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return qt(e,r.line,Tt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var o=void 0,i=0;i<t.markedSpans.length;++i)if((o=
t.markedSpans[i]).marker.collapsed&&!o.marker.widgetNode&&o.from==n.to&&(null==o.to||o.to!=n.from)&&(o.marker.inclusiveLeft||n.marker.inclusiveRight)&&qt(e,t,o))return!0}function Zt(e){for(var t=0,n=(e=Vt(e)).parent,r=0;r<n.lines.length;++r){var o=n.lines[r];if(o==e)break;t+=o.height}for(var i=n.parent;i;i=(n=i).parent)for(var a=0;a<i.children.length;++a){var s=i.children[a];if(s==n)break;t+=s.height}return t}function Kt(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Ft(r);){var o=t.find(0,
!0);r=o.from.line,n+=o.from.ch-o.to.ch}for(r=e;t=zt(r);){var i=t.find(0,!0);n-=r.text.length-i.from.ch,n+=(r=i.to.line).text.length-i.to.ch}return n}function Yt(e){var t=e.display,n=e.doc;t.maxLine=Ge(n,n.first),t.maxLineLength=Kt(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=Kt(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var Gt=function(e,t,n){this.text=e,Nt(this,t),this.height=n?n(this):1};function Jt(e){e.parent=null,Dt(e)}Gt.prototype.lineNo=function(){return et(this)},ke(Gt);
var Xt={},Qt={};function en(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Qt:Xt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function tn(e,t){var n=P("span",null,null,l?"padding-right: .1px":null),r={pre:P("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var i=o?t.rest[o-1]:t.line,a=void 0;r.pos=0,r.addToken=rn,Ne(e.display.measure)&&(a=pe(i,e.doc.direction))&&
(r.addToken=on(r.addToken,a)),r.map=[],sn(i,r,mt(e,i,t!=e.display.externalMeasured&&et(i))),i.styleClasses&&(i.styleClasses.bgClass&&(r.bgClass=L(i.styleClasses.bgClass,r.bgClass||"")),i.styleClasses.textClass&&(r.textClass=L(i.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(De(e.display.measure))),0==o?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=
r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ye(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=L(r.pre.className,r.textClass||"")),r}function nn(e){var t=A("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function rn(e,t,n,r,o,i,l){if(t){var u,c=e.splitSpaces?function(e,t){if(e.length>1&&!/  /.test(e))return e;
for(var n=t,r="",o=0;o<e.length;o++){var i=e.charAt(o);" "!=i||!n||o!=e.length-1&&32!=e.charCodeAt(o+1)||(i="\u00a0"),r+=i,n=" "==i}return r}(t,e.trailingSpace):t,f=e.cm.state.specialChars,d=!1;if(f.test(t)){u=document.createDocumentFragment();for(var p=0;;){f.lastIndex=p;var h=f.exec(t),g=h?h.index-p:t.length-p;if(g){var m=document.createTextNode(c.slice(p,p+g));a&&s<9?u.appendChild(A("span",[m])):u.appendChild(m),e.map.push(e.pos,e.pos+g,m),e.col+=g,e.pos+=g}if(!h)break;p+=g+1;var v=void 0;if("\t"==
h[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(v=u.appendChild(A("span",J(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((v=u.appendChild(A("span","\r"==h[0]?"\u240d":"\u2424","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&s<9?u.appendChild(A("span",[v])):u.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,
u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),a&&s<9&&(d=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||o||d||i||l){var w=n||"";r&&(w+=r),o&&(w+=o);var x=A("span",[u],w,i);if(l)for(var k in l)l.hasOwnProperty(k)&&"style"!=k&&"class"!=k&&x.setAttribute(k,l[k]);return e.content.appendChild(x)}e.content.appendChild(u)}}function on(e,t){return function(n,r,o,i,a,s,l){o=o?o+" cm-force-border":"cm-force-border";for(var u=n.pos,c=u+r.length;;){for(var f=void 0,
d=0;d<t.length&&!((f=t[d]).to>u&&f.from<=u);d++);if(f.to>=c)return e(n,r,o,i,a,s,l);e(n,r.slice(0,f.to-u),o,i,null,s,l),i=null,r=r.slice(f.to-u),u=f.to}}}function an(e,t,n,r){var o=!r&&n.widgetNode;o&&e.map.push(e.pos,e.pos+t,o),!r&&e.cm.display.input.needsContentAttribute&&(o||(o=e.content.appendChild(document.createElement("span"))),o.setAttribute("cm-marker",n.id)),o&&(e.cm.display.input.setUneditable(o),e.content.appendChild(o)),e.pos+=t,e.trailingSpace=!1}function sn(e,t,n){var r=e.markedSpans,
o=e.text,i=0;if(r)for(var a,s,l,u,c,f,d,p=o.length,h=0,g=1,m="",v=0;;){if(v==h){l=u=c=s="",d=null,f=null,v=1/0;for(var y=[],b=void 0,w=0;w<r.length;++w){var x=r[w],k=x.marker;if("bookmark"==k.type&&x.from==h&&k.widgetNode)y.push(k);else if(x.from<=h&&(null==x.to||x.to>h||k.collapsed&&x.to==h&&x.from==h)){if(null!=x.to&&x.to!=h&&v>x.to&&(v=x.to,u=""),k.className&&(l+=" "+k.className),k.css&&(s=(s?s+";":"")+k.css),k.startStyle&&x.from==h&&(c+=" "+k.startStyle),k.endStyle&&x.to==v&&(b||(b=[])).push(k.endStyle,
x.to),k.title&&((d||(d={})).title=k.title),k.attributes)for(var S in k.attributes)(d||(d={}))[S]=k.attributes[S];k.collapsed&&(!f||jt(f.marker,k)<0)&&(f=x)}else x.from>h&&v>x.from&&(v=x.from)}if(b)for(var C=0;C<b.length;C+=2)b[C+1]==v&&(u+=" "+b[C]);if(!f||f.from==h)for(var O=0;O<y.length;++O)an(t,0,y[O]);if(f&&(f.from||0)==h){if(an(t,(null==f.to?p+1:f.to)-h,f.marker,null==f.from),null==f.to)return;f.to==h&&(f=!1)}}if(h>=p)break;for(var E=Math.min(p,v);;){if(m){var M=h+m.length;if(!f){var T=M>E?m.slice(0,
E-h):m;t.addToken(t,T,a?a+l:l,c,h+T.length==v?u:"",s,d)}if(M>=E){m=m.slice(E-h),h=E;break}h=M,c=""}m=o.slice(i,i=n[g++]),a=en(n[g++],t.cm.options)}}else for(var _=1;_<n.length;_+=2)t.addToken(t,o.slice(i,i=n[_]),en(n[_+1],t.cm.options))}function ln(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=zt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?et(X(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Ut(e,t)}function un(e,t,n){for(var r,o=[],i=t;i<n;i=r){var a=
new ln(e.doc,Ge(e.doc,i),i);r=i+a.size,o.push(a)}return o}var cn=null,fn=null;function dn(e,t){var n=me(e,t);if(n.length){var r,o=Array.prototype.slice.call(arguments,2);cn?r=cn.delayedCallbacks:fn?r=fn:(r=fn=[],setTimeout(pn,0));for(var i=function(e){r.push(function(){return n[e].apply(null,o)})},a=0;a<n.length;++a)i(a)}}function pn(){var e=fn;fn=null;for(var t=0;t<e.length;++t)e[t]()}function hn(e,t,n,r){for(var o=0;o<t.changes.length;o++){var i=t.changes[o];"text"==i?vn(e,t):"gutter"==i?bn(e,t,
n,r):"class"==i?yn(e,t):"widget"==i&&wn(e,t,r)}t.changes=null}function gn(e){return e.node==e.text&&(e.node=A("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function mn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):tn(e,t)}function vn(e,t){var n=t.text.className,r=mn(e,t);t.text==t.node&&(t.node=r.pre),
t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,yn(e,t)):n&&(t.text.className=n)}function yn(e,t){(function(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=gn(t);t.background=r.insertBefore(A("div",null,n),r.firstChild),
e.display.input.setUneditable(t.background)}})(e,t),t.line.wrapClass?gn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function bn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var o=gn(t);t.gutterBackground=A("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,
"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),o.insertBefore(t.gutterBackground,t.text)}var i=t.line.gutterMarkers;if(e.options.lineNumbers||i){var a=gn(t),s=t.gutter=A("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&
(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||i&&i["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(A("div",rt(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),i)for(var l=0;l<e.display.gutterSpecs.length;++l){var u=e.display.gutterSpecs[l].className,c=i.hasOwnProperty(u)&&i[u];c&&s.appendChild(A("div",[c],"CodeMirror-gutter-elt","left: "+r.gutterLeft[u]+"px; width: "+
r.gutterWidth[u]+"px"))}}}function wn(e,t,n){t.alignable&&(t.alignable=null);for(var r=O("CodeMirror-linewidget"),o=t.node.firstChild,i=void 0;o;o=i)i=o.nextSibling,r.test(o.className)&&t.node.removeChild(o);kn(e,t,n)}function xn(e,t,n,r){var o=mn(e,t);return t.text=t.node=o.pre,o.bgClass&&(t.bgClass=o.bgClass),o.textClass&&(t.textClass=o.textClass),yn(e,t),bn(e,t,n,r),kn(e,t,r),t.node}function kn(e,t,n){if(Sn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)Sn(e,t.rest[r],t,n,!1)}function Sn(e,
t,n,r,o){if(t.widgets)for(var i=gn(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],u=A("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),Cn(l,u,n,r),e.display.input.setUneditable(u),o&&l.above?i.insertBefore(u,n.gutter||n.text):i.appendChild(u),dn(l,"redraw")}}function Cn(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var o=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(o-=r.gutterTotalWidth,
t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=o+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function On(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!D(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),_(t.display.measure,A("div",[e.node],null,
n))}return e.height=e.node.parentNode.offsetHeight}function En(e,t){for(var n=Me(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Mn(e){return e.lineSpace.offsetTop}function Tn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function _n(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=_(e.measure,A("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,
r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function An(e){return $-e.display.nativeBarWidth}function Pn(e){return e.display.scroller.clientWidth-An(e)-e.display.barWidth}function Dn(e){return e.display.scroller.clientHeight-An(e)-e.display.barHeight}function Nn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};
for(var o=0;o<e.rest.length;o++)if(et(e.rest[o])>n)return{map:e.measure.maps[o],cache:e.measure.caches[o],before:!0}}}function Rn(e,t,n,r){return In(e,jn(e,t),n,r)}function Ln(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[hr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function jn(e,t){var n=et(t),r=Ln(e,n);r&&!r.text?r=null:r&&r.changes&&(hn(e,r,n,ur(e)),e.curOp.forceUpdate=!0),r||(r=function(e,t){var n=et(t=Vt(t)),r=e.display.externalMeasured=
new ln(e.doc,t,n);r.lineN=n;var o=r.built=tn(e,r);return r.text=o.pre,_(e.display.lineMeasure,o.pre),r}(e,t));var o=Nn(r,t,n);return{line:t,view:r,rect:null,map:o.map,cache:o.cache,before:o.before,hasHeights:!1}}function In(e,t,n,r,o){t.before&&(n=-1);var i,l=n+(r||"");return t.cache.hasOwnProperty(l)?i=t.cache[l]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(function(e,t,n){var r=e.options.lineWrapping,o=r&&Pn(e);if(!t.measure.heights||r&&t.measure.width!=o){var i=t.measure.heights=
[];if(r){t.measure.width=o;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],u=a[s+1];Math.abs(l.bottom-u.bottom)>2&&i.push((l.bottom+u.top)/2-n.top)}}i.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(i=function(e,t,n,r){var o,i=Hn(t.map,n,r),l=i.node,u=i.start,c=i.end,f=i.collapse;if(3==l.nodeType){for(var d=0;d<4;d++){for(;u&&se(t.line.text.charAt(i.coverStart+u));)--u;for(;i.coverStart+c<i.coverEnd&&se(t.line.text.charAt(i.coverStart+c));)++c;if((o=a&&s<9&&
0==u&&c==i.coverEnd-i.coverStart?l.parentNode.getBoundingClientRect():Bn(E(l,u,c).getClientRects(),r)).left||o.right||0==u)break;c=u,u-=1,f="right"}a&&s<11&&(o=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=Fe)return Fe;var t=_(e,A("span","x")),n=t.getBoundingClientRect(),r=E(t,0,1).getBoundingClientRect();return Fe=Math.abs(n.left-r.left)>1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;
return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,o))}else{var p;u>0&&(f=r="right"),o=e.options.lineWrapping&&(p=l.getClientRects()).length>1?p["right"==r?p.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!u&&(!o||!o.left&&!o.right)){var h=l.parentNode.getClientRects()[0];o=h?{left:h.left,right:h.left+lr(e.display),top:h.top,bottom:h.bottom}:zn}for(var g=o.top-t.rect.top,m=o.bottom-t.rect.top,v=(g+m)/2,y=t.view.measure.heights,b=0;b<y.length-1&&!(v<y[b]);b++);
var w=b?y[b-1]:0,x=y[b],k={left:("right"==f?o.right:o.left)-t.rect.left,right:("left"==f?o.left:o.right)-t.rect.left,top:w,bottom:x};return o.left||o.right||(k.bogus=!0),e.options.singleCursorHeightPerLine||(k.rtop=g,k.rbottom=m),k}(e,t,n,r)).bogus||(t.cache[l]=i)),{left:i.left,right:i.right,top:o?i.rtop:i.top,bottom:o?i.rbottom:i.bottom}}var Fn,zn={left:0,right:0,top:0,bottom:0};function Hn(e,t,n){for(var r,o,i,a,s,l,u=0;u<e.length;u+=3)if(s=e[u],l=e[u+1],t<s?(o=0,i=1,a="left"):t<l?i=1+(o=t-s):(u==
e.length-3||t==l&&e[u+3]>t)&&(o=(i=l-s)-1,t>=l&&(a="right")),null!=o){if(r=e[u+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==o)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],a="left";if("right"==n&&o==l-s)for(;u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft;)r=e[(u+=3)+2],a="right";break}return{node:r,start:o,end:i,collapse:a,coverStart:s,coverEnd:l}}function Bn(e,t){var n=zn;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var o=e.length-1;o>=
0&&(n=e[o]).left==n.right;o--);return n}function Vn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Wn(e){e.display.externalMeasure=null,T(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Vn(e.display.view[t])}function $n(e){Wn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Un(e){return c&&
v?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function qn(e){return c&&v?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function Zn(e){var t=Vt(e).widgets,n=0;if(t)for(var r=0;r<t.length;++r)t[r].above&&(n+=On(t[r]));return n}function Kn(e,t,n,r,o){if(!o){var i=Zn(t);n.top+=i,n.bottom+=i}if("line"==
r)return n;r||(r="local");var a=Zt(t);if("local"==r?a+=Mn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:qn(I(e)));var l=s.left+("window"==r?0:Un(I(e)));n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function Yn(e,t,n){if("div"==n)return t;var r=t.left,o=t.top;if("page"==n)r-=Un(I(e)),o-=qn(I(e));else if("local"==n||!n){var i=e.display.sizer.getBoundingClientRect();r+=i.left,o+=i.top}var a=e.display.lineSpace.getBoundingClientRect();
return{left:r-a.left,top:o-a.top}}function Gn(e,t,n,r,o){return r||(r=Ge(e.doc,t.line)),Kn(e,r,Rn(e,r,t.ch,o),n)}function Jn(e,t,n,r,o,i){function a(t,a){var s=In(e,o,t,a?"right":"left",i);return a?s.left=s.right:s.right=s.left,Kn(e,r,s,n)}r=r||Ge(e.doc,t.line),o||(o=jn(e,r));var s=pe(r,e.doc.direction),l=t.ch,u=t.sticky;if(l>=r.text.length?(l=r.text.length,u="before"):l<=0&&(l=0,u="after"),!s)return a("before"==u?l-1:l,"before"==u);function c(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var f=fe(s,
l,u),d=ce,p=c(l,f,"before"==u);return null!=d&&(p.other=c(l,d,"before"!=u)),p}function Xn(e,t){var n=0;t=ft(e.doc,t),e.options.lineWrapping||(n=lr(e.display)*t.ch);var r=Ge(e.doc,t.line),o=Zt(r)+Mn(e.display);return{left:n,right:n,top:o,bottom:o+r.height}}function Qn(e,t,n,r,o){var i=ot(e,t,n);return i.xRel=o,r&&(i.outside=r),i}function er(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Qn(r.first,0,null,-1,-1);var o=tt(r,n),i=r.first+r.size-1;if(o>i)return Qn(r.first+r.size-1,Ge(r,i).text.length,
null,1,1);t<0&&(t=0);for(var a=Ge(r,o);;){var s=or(e,a,o,t,n),l=Ht(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==o)return u;a=Ge(r,o=u.line)}}function tr(e,t,n,r){r-=Zn(t);var o=t.text.length,i=ue(function(t){return In(e,n,t-1).bottom<=r},o,0);return{begin:i,end:o=ue(function(t){return In(e,n,t).top>r},i,o)}}function nr(e,t,n,r){return n||(n=jn(e,t)),tr(e,t,n,Kn(e,t,In(e,n,r),"line").top)}function rr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function or(e,
t,n,r,o){o-=Zt(t);var i=jn(e,t),a=Zn(t),s=0,l=t.text.length,u=!0,c=pe(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?ar:ir)(e,t,n,i,c,r,o);s=(u=1!=f.level)?f.from:f.to-1,l=u?f.to:f.from-1}var d,p,h=null,g=null,m=ue(function(t){var n=In(e,i,t);return n.top+=a,n.bottom+=a,!!rr(n,r,o,!1)&&(n.top<=o&&n.left<=r&&(h=t,g=n),!0)},s,l),v=!1;if(g){var y=r-g.left<g.right-r,b=y==u;m=h+(b?0:1),p=b?"after":"before",d=y?g.left:g.right}else{u||m!=l&&m!=s||m++,p=0==m?"after":m==t.text.length?"before":In(e,
i,m-(u?1:0)).bottom+a<=o==u?"after":"before";var w=Jn(e,ot(n,m,p),"line",t,i);d=w.left,v=o<w.top?-1:o>=w.bottom?1:0}return Qn(n,m=le(t.text,m,1),p,v,r-d)}function ir(e,t,n,r,o,i,a){var s=ue(function(s){var l=o[s],u=1!=l.level;return rr(Jn(e,ot(n,u?l.to:l.from,u?"before":"after"),"line",t,r),i,a,!0)},0,o.length-1),l=o[s];if(s>0){var u=1!=l.level,c=Jn(e,ot(n,u?l.from:l.to,u?"after":"before"),"line",t,r);rr(c,i,a,!0)&&c.top>a&&(l=o[s-1])}return l}function ar(e,t,n,r,o,i,a){var s=tr(e,t,r,a),l=s.begin,
u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,f=null,d=0;d<o.length;d++){var p=o[d];if(!(p.from>=u||p.to<=l)){var h=In(e,r,1!=p.level?Math.min(u,p.to)-1:Math.max(l,p.from)).right,g=h<i?i-h+1E9:h-i;(!c||f>g)&&(c=p,f=g)}}return c||(c=o[o.length-1]),c.from<l&&(c={from:l,to:c.to,level:c.level}),c.to>u&&(c={from:c.from,to:u,level:c.level}),c}function sr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Fn){Fn=A("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Fn.appendChild(document.createTextNode("x")),
Fn.appendChild(A("br"));Fn.appendChild(document.createTextNode("x"))}_(e.measure,Fn);var n=Fn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),T(e.measure),n||1}function lr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=A("span","xxxxxxxxxx"),n=A("pre",[t],"CodeMirror-line-like");_(e.measure,n);var r=t.getBoundingClientRect(),o=(r.right-r.left)/10;return o>2&&(e.cachedCharWidth=o),o||10}function ur(e){for(var t=e.display,n={},r={},o=t.gutters.clientLeft,i=t.gutters.firstChild,a=0;i;i=
i.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=i.offsetLeft+i.clientLeft+o,r[s]=i.clientWidth}return{fixedPos:cr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function cr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function fr(e){var t=sr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/lr(e.display)-3);return function(o){if(Ut(e.doc,o))return 0;
var i=0;if(o.widgets)for(var a=0;a<o.widgets.length;a++)o.widgets[a].height&&(i+=o.widgets[a].height);return n?i+(Math.ceil(o.text.length/r)||1)*t:i+t}}function dr(e){var t=e.doc,n=fr(e);t.iter(function(e){var t=n(e);t!=e.height&&Qe(e,t)})}function pr(e,t,n,r){var o=e.display;if(!n&&"true"==Me(t).getAttribute("cm-not-content"))return null;var i,a,s=o.lineSpace.getBoundingClientRect();try{i=t.clientX-s.left,a=t.clientY-s.top}catch(e){return null}var l,u=er(e,i,a);if(r&&u.xRel>0&&(l=Ge(e.doc,u.line).text).length==
u.ch){var c=B(l,l.length,e.options.tabSize)-l.length;u=ot(u.line,Math.max(0,Math.round((i-_n(e.display).left)/lr(e.display))-c))}return u}function hr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function gr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var o=e.display;if(r&&n<o.viewTo&&(null==o.updateLineNumbers||o.updateLineNumbers>t)&&(o.updateLineNumbers=
t),e.curOp.viewChanged=!0,t>=o.viewTo)Et&&Wt(e.doc,t)<o.viewTo&&vr(e);else if(n<=o.viewFrom)Et&&$t(e.doc,n+r)>o.viewFrom?vr(e):(o.viewFrom+=r,o.viewTo+=r);else if(t<=o.viewFrom&&n>=o.viewTo)vr(e);else if(t<=o.viewFrom){var i=yr(e,n,n+r,1);i?(o.view=o.view.slice(i.index),o.viewFrom=i.lineN,o.viewTo+=r):vr(e)}else if(n>=o.viewTo){var a=yr(e,t,t,-1);a?(o.view=o.view.slice(0,a.index),o.viewTo=a.lineN):vr(e)}else{var s=yr(e,t,t,-1),l=yr(e,n,n+r,1);s&&l?(o.view=o.view.slice(0,s.index).concat(un(e,s.lineN,
l.lineN)).concat(o.view.slice(l.index)),o.viewTo+=r):vr(e)}var u=o.externalMeasured;u&&(n<u.lineN?u.lineN+=r:t<u.lineN+u.size&&(o.externalMeasured=null))}function mr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,o=e.display.externalMeasured;if(o&&t>=o.lineN&&t<o.lineN+o.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var i=r.view[hr(e,t)];if(null!=i.node){var a=i.changes||(i.changes=[]);-1==W(a,n)&&a.push(n)}}}function vr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=
[],e.display.viewOffset=0}function yr(e,t,n,r){var o,i=hr(e,t),a=e.display.view;if(!Et||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var s=e.display.viewFrom,l=0;l<i;l++)s+=a[l].size;if(s!=t){if(r>0){if(i==a.length-1)return null;o=s+a[i].size-t,i++}else o=s-t;t+=o,n+=o}for(;Wt(e.doc,n)!=n;){if(i==(r<0?0:a.length-1))return null;n+=r*a[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function br(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var o=t[r];o.hidden||o.node&&!o.changes||++n}return n}
function wr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function xr(e,t){void 0===t&&(t=!0);var n=e.doc,r={},o=r.cursors=document.createDocumentFragment(),i=r.selection=document.createDocumentFragment(),a=e.options.$customCursor;a&&(t=!0);for(var s=0;s<n.sel.ranges.length;s++)if(t||s!=n.sel.primIndex){var l=n.sel.ranges[s];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var u=l.empty();if(a){var c=a(e,l);c&&kr(e,c,o)}else(u||e.options.showCursorWhenSelecting)&&
kr(e,l.head,o);u||Cr(e,l,i)}}return r}function kr(e,t,n){var r=Jn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),o=n.appendChild(A("div","\u00a0","CodeMirror-cursor"));if(o.style.left=r.left+"px",o.style.top=r.top+"px",o.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var i=Gn(e,t,"div",null,null),a=i.right-i.left;o.style.width=(a>0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(A("div","\u00a0",
"CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Sr(e,t){return e.top-t.top||e.left-t.left}function Cr(e,t,n){var r=e.display,o=e.doc,i=document.createDocumentFragment(),a=_n(e.display),s=a.left,l=Math.max(r.sizerWidth,Pn(e)-r.sizer.offsetLeft)-a.right,u="ltr"==o.direction;function c(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),i.appendChild(A("div",
null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n                             top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n                             height: "+(r-t)+"px"))}function f(t,n,r){var i,a,f=Ge(o,t),d=f.text.length;function p(n,r){return Gn(e,ot(t,n),"div",f,r)}function h(t,n,r){var o=nr(e,f,null,t),i="ltr"==n==("after"==r)?"left":"right";return p("after"==r?o.begin:o.end-(/\s/.test(f.text.charAt(o.end-1))?2:1),i)[i]}var g=pe(f,o.direction);return function(e,t,n,r){if(!e)return r(t,
n,"ltr",0);for(var o=!1,i=0;i<e.length;++i){var a=e[i];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",i),o=!0)}o||r(t,n,"ltr")}(g,n||0,null==r?d:r,function(e,t,o,f){var m="ltr"==o,v=p(e,m?"left":"right"),y=p(t-1,m?"right":"left"),b=null==n&&0==e,w=null==r&&t==d,x=0==f,k=!g||f==g.length-1;if(y.top-v.top<=3){var S=(u?w:b)&&k,C=(u?b:w)&&x?s:(m?v:y).left,O=S?l:(m?y:v).right;c(C,v.top,O-C,v.bottom)}else{var E,M,T,_;m?(E=u&&b&&x?s:v.left,M=u?l:h(e,o,"before"),
T=u?s:h(t,o,"after"),_=u&&w&&k?l:y.right):(E=u?h(e,o,"before"):s,M=!u&&b&&x?l:v.right,T=!u&&w&&k?s:y.left,_=u?h(t,o,"after"):l),c(E,v.top,M-E,v.bottom),v.bottom<y.top&&c(s,v.bottom,null,y.top),c(T,y.top,_-T,y.bottom)}(!i||Sr(v,i)<0)&&(i=v),Sr(y,i)<0&&(i=y),(!a||Sr(v,a)<0)&&(a=v),Sr(y,a)<0&&(a=y)}),{start:i,end:a}}var d=t.from(),p=t.to();if(d.line==p.line)f(d.line,d.ch,p.ch);else{var h=Ge(o,d.line),g=Ge(o,p.line),m=Vt(h)==Vt(g),v=f(d.line,d.ch,m?h.text.length+1:null).end,y=f(p.line,m?0:null,p.ch).start;
m&&(v.top<y.top-2?(c(v.right,v.top,null,v.bottom),c(s,y.top,y.left,y.bottom)):c(v.right,v.top,y.left-v.right,v.bottom)),v.bottom<y.top&&c(s,v.bottom,null,y.top)}n.appendChild(i)}function Or(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||_r(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility=
"hidden")}}function Er(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Tr(e))}function Mr(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&_r(e))},100)}function Tr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ye(e,"focus",e,t),e.state.focused=!0,R(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==
e.doc.sel||(e.display.input.reset(),l&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Or(e))}function _r(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ye(e,"blur",e,t),e.state.focused=!1,M(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Ar(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),o=t.lineDiv.getBoundingClientRect().top,
i=0,l=0;l<t.view.length;l++){var u=t.view[l],c=e.options.lineWrapping,f=void 0,d=0;if(!u.hidden){if(o+=u.line.height,a&&s<8){var p=u.node.offsetTop+u.node.offsetHeight;f=p-n,n=p}else{var h=u.node.getBoundingClientRect();f=h.bottom-h.top,!c&&u.text.firstChild&&(d=u.text.firstChild.getBoundingClientRect().right-h.left-1)}var g=u.line.height-f;if((g>.005||g<-.005)&&(o<r&&(i-=g),Qe(u.line,f),Pr(u.line),u.rest))for(var m=0;m<u.rest.length;m++)Pr(u.rest[m]);if(d>e.display.sizerWidth){var v=Math.ceil(d/
lr(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(i)>2&&(t.scroller.scrollTop+=i)}function Pr(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function Dr(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Mn(e));var o=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,i=tt(t,r),a=tt(t,o);if(n&&n.ensure){var s=n.ensure.from.line,
l=n.ensure.to.line;s<i?(i=s,a=tt(t,Zt(Ge(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(i=tt(t,Zt(Ge(t,l))-e.wrapper.clientHeight),a=l)}return{from:i,to:Math.max(a,i+1)}}function Nr(e,t){var n=e.display,r=sr(e.display);t.top<0&&(t.top=0);var o=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,i=Dn(e),a={};t.bottom-t.top>i&&(t.bottom=t.top+i);var s=e.doc.height+Tn(n),l=t.top<r,u=t.bottom>s-r;if(t.top<o)a.scrollTop=l?0:t.top;else if(t.bottom>o+i){var c=Math.min(t.top,
(u?s:t.bottom)-i);c!=o&&(a.scrollTop=c)}var f=e.options.fixedGutter?0:n.gutters.offsetWidth,d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-f,p=Pn(e)-n.gutters.offsetWidth,h=t.right-t.left>p;return h&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.left<d?a.scrollLeft=Math.max(0,t.left+f-(h?0:10)):t.right>p+d-3&&(a.scrollLeft=t.right+(h?0:10)-p),a}function Rr(e,t){null!=t&&(Ir(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Lr(e){Ir(e);
var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function jr(e,t,n){null==t&&null==n||Ir(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Ir(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Fr(e,Xn(e,t.from),Xn(e,t.to),t.margin))}function Fr(e,t,n,r){var o=Nr(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});jr(e,o.scrollLeft,o.scrollTop)}function zr(e,
t){Math.abs(e.doc.scrollTop-t)<2||(n||po(e,{top:t}),Hr(e,t,!0),n&&po(e),so(e,100))}function Hr(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Br(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-
t)<2)&&!r||(e.doc.scrollLeft=t,mo(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Vr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Tn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+An(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,
gutterWidth:n}}var Wr=function(e,t,n){this.cm=n;var r=this.vert=A("div",[A("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=A("div",[A("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=o.tabIndex=-1,e(r),e(o),ge(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),ge(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};
Wr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var o=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+o)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+
"px";var i=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+i)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Wr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Wr.prototype.setScrollTop=
function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Wr.prototype.zeroWidthHack=function(){var e=b&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new V,this.disableVert=new V},Wr.prototype.enableZeroWidthBar=function(e,t,n){e.style.visibility="",t.set(1E3,function r(){var o=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(o.right-
1,(o.top+o.bottom)/2):document.elementFromPoint((o.right+o.left)/2,o.bottom-1))!=e?e.style.visibility="hidden":t.set(1E3,r)})},Wr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var $r=function(){};function Ur(e,t){t||(t=Vr(e));var n=e.display.barWidth,r=e.display.barHeight;qr(e,t);for(var o=0;o<4&&n!=e.display.barWidth||r!=e.display.barHeight;o++)n!=e.display.barWidth&&e.options.lineWrapping&&Ar(e),qr(e,Vr(e)),n=e.display.barWidth,r=e.display.barHeight}
function qr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display=
"block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}$r.prototype.update=function(){return{bottom:0,right:0}},$r.prototype.setScrollLeft=function(){},$r.prototype.setScrollTop=function(){},$r.prototype.clear=function(){};var Zr={native:Wr,null:$r};function Kr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&M(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Zr[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,
e.display.scrollbarFiller),ge(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?Br(e,t):zr(e,t)},e),e.display.scrollbars.addClass&&R(e.display.wrapper,e.display.scrollbars.addClass)}var Yr=0;function Gr(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,
updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Yr,markArrays:null},t=e.curOp,cn?cn.ops.push(t):t.ownsGroup=cn={ops:[t],delayedCallbacks:[]}}function Jr(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var o=e.ops[r];if(o.cursorActivityHandlers)for(;o.cursorActivityCalled<o.cursorActivityHandlers.length;)o.cursorActivityHandlers[o.cursorActivityCalled++].call(null,
o.cm)}}while(n<t.length)}(n)}finally{cn=null,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,n=0;n<t.length;n++)Xr(t[n]);for(var r=0;r<t.length;r++)Qr(t[r]);for(var o=0;o<t.length;o++)eo(t[o]);for(var i=0;i<t.length;i++)to(t[i]);for(var a=0;a<t.length;a++)no(t[a])}(e)}(n)}}(t)}function Xr(e){var t=e.cm,n=t.display;(function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,
t.heightForcer.style.height=An(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=An(e)+"px",t.scrollbarsClipped=!0)})(t),e.updateMaxLine&&Yt(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new uo(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Qr(e){e.updatedDisplay=
e.mustUpdate&&co(e.cm,e.update)}function eo(e){var t=e.cm,n=t.display;e.updatedDisplay&&Ar(t),e.barMeasure=Vr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Rn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+An(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Pn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=
n.input.prepareSelection())}function to(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Br(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==N(I(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Ur(t,e.barMeasure),e.updatedDisplay&&go(t,e.barMeasure),e.selectionChanged&&Or(t),t.state.focused&&
e.updateInput&&t.display.input.reset(e.typing),n&&Er(e.cm)}function no(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&fo(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&Hr(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&Br(t,e.scrollLeft,!0,!0),e.scrollToPos&&function(e,t){if(!be(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),o=null,i=n.wrapper.ownerDocument;if(t.top+r.top<
0?o=!0:t.bottom+r.top>(i.defaultView.innerHeight||i.documentElement.clientHeight)&&(o=!1),null!=o&&!g){var a=A("div","\u200b",null,"position: absolute;\n                         top: "+(t.top-n.viewOffset-Mn(e.display))+"px;\n                         height: "+(t.bottom-t.top+An(e)+n.barHeight)+"px;\n                         left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(o),e.display.lineSpace.removeChild(a)}}}(t,function(e,t,n,r){var o;
null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?ot(t.line,t.ch+1,"before"):t,t=t.ch?ot(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var i=0;i<5;i++){var a=!1,s=Jn(e,t),l=n&&n!=t?Jn(e,n):s,u=Nr(e,o={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=u.scrollTop&&(zr(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(Br(e,u.scrollLeft),
Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return o}(t,ft(r,e.scrollToPos.from),ft(r,e.scrollToPos.to),e.scrollToPos.margin));var o=e.maybeHiddenMarkers,i=e.maybeUnhiddenMarkers;if(o)for(var a=0;a<o.length;++a)o[a].lines.length||ye(o[a],"hide");if(i)for(var s=0;s<i.length;++s)i[s].lines.length&&ye(i[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&ye(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function ro(e,t){if(e.curOp)return t();Gr(e);
try{return t()}finally{Jr(e)}}function oo(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Gr(e);try{return t.apply(e,arguments)}finally{Jr(e)}}}function io(e){return function(){if(this.curOp)return e.apply(this,arguments);Gr(this);try{return e.apply(this,arguments)}finally{Jr(this)}}}function ao(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Gr(t);try{return e.apply(this,arguments)}finally{Jr(t)}}}function so(e,t){e.doc.highlightFrontier<e.display.viewTo&&
e.state.highlight.set(t,z(lo,e))}function lo(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=vt(e,t.highlightFrontier),o=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(i){if(r.line>=e.display.viewFrom){var a=i.styles,s=i.text.length>e.options.maxHighlightLength?qe(t.mode,r.state):null,l=gt(e,i,r,!0);s&&(r.state=s),i.styles=l.styles;var u=i.styleClasses,c=l.classes;c?i.styleClasses=c:u&&(i.styleClasses=null);for(var f=!a||a.length!=
i.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),d=0;!f&&d<a.length;++d)f=a[d]!=i.styles[d];f&&o.push(r.line),i.stateAfter=r.save(),r.nextLine()}else i.text.length<=e.options.maxHighlightLength&&yt(e,i.text,r),i.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return so(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),o.length&&ro(e,function(){for(var t=0;t<o.length;t++)mr(e,o[t],"text")})}}var uo=
function(e,t,n){var r=e.display;this.viewport=t,this.visible=Dr(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Pn(e),this.force=n,this.dims=ur(e),this.events=[]};function co(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return vr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==
br(e))return!1;vo(e)&&(vr(e),t.dims=ur(e));var o=r.first+r.size,i=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(o,t.visible.to+e.options.viewportMargin);n.viewFrom<i&&i-n.viewFrom<20&&(i=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(o,n.viewTo)),Et&&(i=Wt(e.doc,i),a=$t(e.doc,a));var s=i!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;(function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?
(r.view=un(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=un(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(hr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(un(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,hr(e,n)))),r.viewTo=n})(e,i,a),n.viewOffset=Zt(Ge(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var u=br(e);if(!s&&0==u&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=function(e){if(e.hasFocus())return null;
var t=N(I(e));if(!t||!D(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=F(e).getSelection();r.anchorNode&&r.extend&&D(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return u>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,o=e.options.lineNumbers,i=r.lineDiv,a=i.firstChild;function s(t){var n=t.nextSibling;return l&&b&&e.display.currentWheelTarget==
t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=r.view,c=r.viewFrom,f=0;f<u.length;f++){var d=u[f];if(d.hidden);else if(d.node&&d.node.parentNode==i){for(;a!=d.node;)a=s(a);var p=o&&null!=t&&t<=c&&d.lineNumber;d.changes&&(W(d.changes,"gutter")>-1&&(p=!1),hn(e,d,c,n)),p&&(T(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(rt(e.options,c)))),a=d.node.nextSibling}else{var h=xn(e,d,c,n);i.insertBefore(h,a)}c+=d.size}for(;a;)a=s(a)}(e,n.updateLineNumbers,t.dims),u>4&&(n.lineDiv.style.display=
""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=N(e.activeElt.ownerDocument)&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&D(document.body,e.anchorNode)&&D(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,n=t.defaultView.getSelection(),r=t.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),n.removeAllRanges(),n.addRange(r),n.extend(e.focusNode,e.focusOffset)}}(c),T(n.cursorDiv),T(n.selectionDiv),n.gutters.style.height=
n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,so(e,400)),n.updateLineNumbers=null,!0}function fo(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Pn(e))r&&(t.visible=Dr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Tn(e.display)-Dn(e),n.top)}),t.visible=Dr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!co(e,t))break;Ar(e);var o=Vr(e);wr(e),
Ur(e,o),go(e,o),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function po(e,t){var n=new uo(e,t);if(co(e,n)){Ar(e),fo(e,n);var r=Vr(e);wr(e),Ur(e,r),go(e,r),n.finish()}}function ho(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",dn(e,"gutterChanged",
e)}function go(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+An(e)+"px"}function mo(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=cr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,o=t.gutters.offsetWidth,i=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=i),n[a].gutterBackground&&
(n[a].gutterBackground.style.left=i));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=i}e.options.fixedGutter&&(t.gutters.style.left=r+o+"px")}}function vo(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=rt(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var o=r.measure.appendChild(A("div",[A("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),i=o.firstChild.offsetWidth,a=o.offsetWidth-i;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(i,
r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",ho(e.display),!0}return!1}function yo(e,t){for(var n=[],r=!1,o=0;o<e.length;o++){var i=e[o],a=null;if("string"!=typeof i&&(a=i.style,i=i.className),"CodeMirror-linenumbers"==i){if(!t)continue;r=!0}n.push({className:i,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function bo(e){var t=e.gutters,n=e.gutterSpecs;
T(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var o=n[r],i=o.className,a=o.style,s=t.appendChild(A("div",null,"CodeMirror-gutter "+i));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==i&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",ho(e)}function wo(e){bo(e.display),gr(e),mo(e)}function xo(e,t,r,o){var i=this;this.input=r,i.scrollbarFiller=A("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=
A("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=P("div",null,"CodeMirror-code"),i.selectionDiv=A("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=A("div",null,"CodeMirror-cursors"),i.measure=A("div",null,"CodeMirror-measure"),i.lineMeasure=A("div",null,"CodeMirror-measure"),i.lineSpace=P("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var u=P("div",[i.lineSpace],"CodeMirror-lines");
i.mover=A("div",[u],null,"position: relative"),i.sizer=A("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=A("div",null,null,"position: absolute; height: "+$+"px; width: 1px;"),i.gutters=A("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=A("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=A("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),c&&f>=105&&(i.wrapper.style.clipPath="inset(0px)"),
i.wrapper.setAttribute("translate","no"),a&&s<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),l||n&&y||(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=
i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,i.gutterSpecs=yo(o.gutters,o.lineNumbers),bo(i),r.init(i)}uo.prototype.signal=function(e,t){xe(e,t)&&this.events.push(arguments)},uo.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ye.apply(null,this.events[e])};var ko=0,So=null;
function Co(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function Oo(e){var t=Co(e);return t.x*=So,t.y*=So,t}function Eo(e,t){c&&102==f&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=
""},100));var r=Co(t),o=r.x,i=r.y,a=So;0===t.deltaMode&&(o=t.deltaX,i=t.deltaY,a=1);var s=e.display,u=s.scroller,p=u.scrollWidth>u.clientWidth,h=u.scrollHeight>u.clientHeight;if(o&&p||i&&h){if(i&&b&&l)e:for(var g=t.target,m=s.view;g!=u;g=g.parentNode)for(var v=0;v<m.length;v++)if(m[v].node==g){e.display.currentWheelTarget=g;break e}if(o&&!n&&!d&&null!=a)return i&&h&&zr(e,Math.max(0,u.scrollTop+i*a)),Br(e,Math.max(0,u.scrollLeft+o*a)),(!i||i&&h)&&Se(t),void(s.wheelStartX=null);if(i&&null!=a){var y=
i*a,w=e.doc.scrollTop,x=w+s.wrapper.clientHeight;y<0?w=Math.max(0,w+y-50):x=Math.min(e.doc.height,x+y+50),po(e,{top:w,bottom:x})}ko<20&&0!==t.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=u.scrollLeft,s.wheelStartY=u.scrollTop,s.wheelDX=o,s.wheelDY=i,setTimeout(function(){if(null!=s.wheelStartX){var e=u.scrollLeft-s.wheelStartX,t=u.scrollTop-s.wheelStartY,n=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(So=(So*ko+n)/(ko+1),++ko)}},200)):(s.wheelDX+=o,s.wheelDY+=
i))}}a?So=-.53:n?So=15:c?So=-.7:p&&(So=-1/3);var Mo=function(e,t){this.ranges=e,this.primIndex=t};Mo.prototype.primary=function(){return this.ranges[this.primIndex]},Mo.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!at(n.anchor,r.anchor)||!at(n.head,r.head))return!1}return!0},Mo.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=
new To(st(this.ranges[t].anchor),st(this.ranges[t].head));return new Mo(e,this.primIndex)},Mo.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Mo.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(it(t,r.from())>=0&&it(e,r.to())<=0)return n}return-1};var To=function(e,t){this.anchor=e,this.head=t};function _o(e,t,n){var r=e&&e.options.selectionsMayTouch,o=t[n];t.sort(function(e,
t){return it(e.from(),t.from())}),n=W(t,o);for(var i=1;i<t.length;i++){var a=t[i],s=t[i-1],l=it(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var u=ut(s.from(),a.from()),c=lt(s.to(),a.to()),f=s.empty()?a.from()==a.head:s.from()==s.head;i<=n&&--n,t.splice(--i,2,new To(f?c:u,f?u:c))}}return new Mo(t,n)}function Ao(e,t){return new Mo([new To(e,t||e)],0)}function Po(e){return e.text?ot(e.from.line+e.text.length-1,X(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Do(e,t){if(it(e,t.from)<0)return e;
if(it(e,t.to)<=0)return Po(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Po(t).ch-t.to.ch),ot(n,r)}function No(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var o=e.sel.ranges[r];n.push(new To(Do(o.anchor,t),Do(o.head,t)))}return _o(e.cm,n,e.sel.primIndex)}function Ro(e,t,n){return e.line==t.line?ot(n.line,e.ch-t.ch+n.ch):ot(n.line+(e.line-t.line),e.ch)}function Lo(e){e.doc.mode=We(e.options,e.doc.modeOption),jo(e)}function jo(e){e.doc.iter(function(e){e.stateAfter&&
(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,so(e,100),e.state.modeGen++,e.curOp&&gr(e)}function Io(e,t){return 0==t.from.ch&&0==t.to.ch&&""==X(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Fo(e,t,n,r){function o(e){return n?n[e]:null}function i(e,n,o){(function(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Dt(e),Nt(e,n);var o=r?r(e):1;o!=e.height&&Qe(e,o)})(e,n,
o,r),dn(e,"change",e,t)}function a(e,t){for(var n=[],i=e;i<t;++i)n.push(new Gt(u[i],o(i),r));return n}var s=t.from,l=t.to,u=t.text,c=Ge(e,s.line),f=Ge(e,l.line),d=X(u),p=o(u.length-1),h=l.line-s.line;if(t.full)e.insert(0,a(0,u.length)),e.remove(u.length,e.size-u.length);else if(Io(e,t)){var g=a(0,u.length-1);i(f,f.text,p),h&&e.remove(s.line,h),g.length&&e.insert(s.line,g)}else if(c==f)if(1==u.length)i(c,c.text.slice(0,s.ch)+d+c.text.slice(l.ch),p);else{var m=a(1,u.length-1);m.push(new Gt(d+c.text.slice(l.ch),
p,r)),i(c,c.text.slice(0,s.ch)+u[0],o(0)),e.insert(s.line+1,m)}else if(1==u.length)i(c,c.text.slice(0,s.ch)+u[0]+f.text.slice(l.ch),o(0)),e.remove(s.line+1,h);else{i(c,c.text.slice(0,s.ch)+u[0],o(0)),i(f,d+f.text.slice(l.ch),p);var v=a(1,u.length-1);h>1&&e.remove(s.line+1,h-1),e.insert(s.line+1,v)}dn(e,"change",e,t)}function zo(e,t,n){!function e(r,o,i){if(r.linked)for(var a=0;a<r.linked.length;++a){var s=r.linked[a];if(s.doc!=o){var l=i&&s.sharedHist;n&&!l||(t(s.doc,l),e(s.doc,r,l))}}}(e,null,!0)}
function Ho(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,dr(e),Lo(e),Bo(e),e.options.direction=t.direction,e.options.lineWrapping||Yt(e),e.options.mode=t.modeOption,gr(e)}function Bo(e){("rtl"==e.doc.direction?R:M)(e.display.lineDiv,"CodeMirror-rtl")}function Vo(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=
e?e.maxGeneration:1}function Wo(e,t){var n={from:st(t.from),to:Po(t),text:Je(e,t.from,t.to)};return Zo(e,n,t.from.line,t.to.line+1),zo(e,function(e){return Zo(e,n,t.from.line,t.to.line+1)},!0),n}function $o(e){for(;e.length&&X(e).ranges;)e.pop()}function Uo(e,t,n,r){var o=e.history;o.undone.length=0;var i,a,s=+new Date;if((o.lastOp==r||o.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&o.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(i=function(e,t){return t?
($o(e.done),X(e.done)):e.done.length&&!X(e.done).ranges?X(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),X(e.done)):void 0}(o,o.lastOp==r)))a=X(i.changes),0==it(t.from,t.to)&&0==it(t.from,a.to)?a.to=Po(t):i.changes.push(Wo(e,t));else{var l=X(o.done);for(l&&l.ranges||qo(e.sel,o.done),i={changes:[Wo(e,t)],generation:o.generation},o.done.push(i);o.done.length>o.undoDepth;)o.done.shift(),o.done[0].ranges||o.done.shift()}o.done.push(n),o.generation=++o.maxGeneration,o.lastModTime=
o.lastSelTime=s,o.lastOp=o.lastSelOp=r,o.lastOrigin=o.lastSelOrigin=t.origin,a||ye(e,"historyAdded")}function qo(e,t){var n=X(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Zo(e,t,n,r){var o=t["spans_"+e.id],i=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((o||(o=t["spans_"+e.id]={}))[i]=n.markedSpans),++i})}function Ko(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:
e}function Yo(e,t){var n=function(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],o=0;o<t.text.length;++o)r.push(Ko(n[o]));return r}(e,t),r=At(e,t);if(!n)return r;if(!r)return n;for(var o=0;o<n.length;++o){var i=n[o],a=r[o];if(i&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],u=0;u<i.length;++u)if(i[u].marker==l.marker)continue e;i.push(l)}else a&&(n[o]=a)}return n}function Go(e,t,n){for(var r=[],o=0;o<e.length;++o){var i=e[o];if(i.ranges)r.push(n?Mo.prototype.deepCopy.call(i):i);else{var a=
i.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var u=a[l],c=void 0;if(s.push({from:u.from,to:u.to,text:u.text}),t)for(var f in u)(c=f.match(/^spans_(\d+)$/))&&W(t,Number(c[1]))>-1&&(X(s)[f]=u[f],delete u[f])}}}return r}function Jo(e,t,n,r){if(r){var o=e.anchor;if(n){var i=it(t,o)<0;i!=it(n,o)<0?(o=t,t=n):i!=it(t,n)<0&&(t=n)}return new To(o,t)}return new To(n||t,t)}function Xo(e,t,n,r,o){null==o&&(o=e.cm&&(e.cm.display.shift||e.extend)),ri(e,new Mo([Jo(e.sel.primary(),t,n,o)],0),r)}
function Qo(e,t,n){for(var r=[],o=e.cm&&(e.cm.display.shift||e.extend),i=0;i<e.sel.ranges.length;i++)r[i]=Jo(e.sel.ranges[i],t[i],null,o);ri(e,_o(e.cm,r,e.sel.primIndex),n)}function ei(e,t,n,r){var o=e.sel.ranges.slice(0);o[t]=n,ri(e,_o(e.cm,o,e.sel.primIndex),r)}function ti(e,t,n,r){ri(e,Ao(t,n),r)}function ni(e,t,n){var r=e.history.done,o=X(r);o&&o.ranges?(r[r.length-1]=t,oi(e,t,n)):ri(e,t,n)}function ri(e,t,n){oi(e,t,n),function(e,t,n,r){var o=e.history,i=r&&r.origin;n==o.lastSelOp||i&&o.lastSelOrigin==
i&&(o.lastModTime==o.lastSelTime&&o.lastOrigin==i||function(e,t,n,r){var o=t.charAt(0);return"*"==o||"+"==o&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,i,X(o.done),t))?o.done[o.done.length-1]=t:qo(t,o.done),o.lastSelTime=+new Date,o.lastSelOrigin=i,o.lastSelOp=n,r&&!1!==r.clearRedo&&$o(o.undone)}(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function oi(e,t,n){(xe(e,"beforeSelectionChange")||e.cm&&
xe(e.cm,"beforeSelectionChange"))&&(t=function(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new To(ft(e,t[n].anchor),ft(e,t[n].head))},origin:n&&n.origin};return ye(e,"beforeSelectionChange",e,r),e.cm&&ye(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?_o(e.cm,r.ranges,r.ranges.length-1):t}(e,t,n));var r=n&&n.bias||(it(t.primary().head,e.sel.primary().head)<0?-1:1);ii(e,si(e,t,r,!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||
Lr(e.cm)}function ii(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,we(e.cm)),dn(e,"cursorActivity",e))}function ai(e){ii(e,si(e,e.sel,null,!1))}function si(e,t,n,r){for(var o,i=0;i<t.ranges.length;i++){var a=t.ranges[i],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[i],l=ui(e,a.anchor,s&&s.anchor,n,r),u=a.head==a.anchor?l:ui(e,a.head,s&&s.head,n,r);(o||l!=a.anchor||u!=a.head)&&(o||(o=t.ranges.slice(0,i)),o[i]=new To(l,u))}return o?_o(e.cm,o,t.primIndex):
t}function li(e,t,n,r,o){var i=Ge(e,t.line);if(i.markedSpans)for(var a=0;a<i.markedSpans.length;++a){var s=i.markedSpans[a],l=s.marker,u="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,c="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(u?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(c?s.to>=t.ch:s.to>t.ch))){if(o&&(ye(l,"beforeCursorEnter"),l.explicitlyCleared)){if(i.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var f=l.find(r<0?1:-1),d=void 0;if((r<0?c:u)&&(f=ci(e,f,
-r,f&&f.line==t.line?i:null)),f&&f.line==t.line&&(d=it(f,n))&&(r<0?d<0:d>0))return li(e,f,t,r,o)}var p=l.find(r<0?-1:1);return(r<0?u:c)&&(p=ci(e,p,r,p.line==t.line?i:null)),p?li(e,p,t,r,o):null}}return t}function ui(e,t,n,r,o){var i=r||1;return li(e,t,n,i,o)||!o&&li(e,t,n,i,!0)||li(e,t,n,-i,o)||!o&&li(e,t,n,-i,!0)||(e.cantEdit=!0,ot(e.first,0))}function ci(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ft(e,ot(t.line-1)):null:n>0&&t.ch==(r||Ge(e,t.line)).text.length?t.line<e.first+e.size-1?ot(t.line+
1,0):null:new ot(t.line,t.ch+n)}function fi(e){e.setSelection(ot(e.firstLine(),0),ot(e.lastLine()),q)}function di(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,o,i){t&&(r.from=ft(e,t)),n&&(r.to=ft(e,n)),o&&(r.text=o),void 0!==i&&(r.origin=i)}),ye(e,"beforeChange",e,r),e.cm&&ye(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}
function pi(e,t,n){if(e.cm){if(!e.cm.curOp)return oo(e.cm,pi)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(xe(e,"beforeChange")||e.cm&&xe(e.cm,"beforeChange"))||(t=di(e,t,!0))){var r=Ot&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=W(r,n)||(r||(r=[])).push(n)}}),!r)return null;for(var o=[{from:t,to:n}],i=0;i<r.length;++i)for(var a=r[i],s=a.find(0),l=0;l<o.length;++l){var u=
o[l];if(!(it(u.to,s.from)<0||it(u.from,s.to)>0)){var c=[l,1],f=it(u.from,s.from),d=it(u.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&c.push({from:u.from,to:s.from}),(d>0||!a.inclusiveRight&&!d)&&c.push({from:s.to,to:u.to}),o.splice.apply(o,c),l+=c.length-3}}return o}(e,t.from,t.to);if(r)for(var o=r.length-1;o>=0;--o)hi(e,{from:r[o].from,to:r[o].to,text:o?[""]:t.text,origin:t.origin});else hi(e,t)}}function hi(e,t){if(1!=t.text.length||""!=t.text[0]||0!=it(t.from,t.to)){var n=No(e,t);Uo(e,t,n,e.cm?e.cm.curOp.id:
NaN),vi(e,t,n,At(e,t));var r=[];zo(e,function(e,n){n||-1!=W(r,e.history)||(xi(e.history,t),r.push(e.history)),vi(e,t,null,At(e,t))})}}function gi(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var o,i=e.history,a=e.sel,s="undo"==t?i.done:i.undone,l="undo"==t?i.undone:i.done,u=0;u<s.length&&(o=s[u],n?!o.ranges||o.equals(e.sel):o.ranges);u++);if(u!=s.length){for(i.lastOrigin=i.lastSelOrigin=null;;){if(!(o=s.pop()).ranges){if(r)return void s.push(o);break}if(qo(o,l),n&&!o.equals(e.sel))return void ri(e,
o,{clearRedo:!1});a=o}var c=[];qo(a,l),l.push({changes:c,generation:i.generation}),i.generation=o.generation||++i.maxGeneration;for(var f=xe(e,"beforeChange")||e.cm&&xe(e.cm,"beforeChange"),d=function(n){var r=o.changes[n];if(r.origin=t,f&&!di(e,r,!1))return s.length=0,{};c.push(Wo(e,r));var i=n?No(e,r):X(s);vi(e,r,i,Yo(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:Po(r)});var a=[];zo(e,function(e,t){t||-1!=W(a,e.history)||(xi(e.history,r),a.push(e.history)),vi(e,r,null,Yo(e,r))})},p=o.changes.length-
1;p>=0;--p){var h=d(p);if(h)return h.v}}}}function mi(e,t){if(0!=t&&(e.first+=t,e.sel=new Mo(Q(e.sel.ranges,function(e){return new To(ot(e.anchor.line+t,e.anchor.ch),ot(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){gr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)mr(e.cm,r,"gutter")}}function vi(e,t,n,r){if(e.cm&&!e.cm.curOp)return oo(e.cm,vi)(e,t,n,r);if(t.to.line<e.first)mi(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<
e.first){var o=t.text.length-1-(e.first-t.from.line);mi(e,o),t={from:ot(e.first,0),to:ot(t.to.line+o,t.to.ch),text:[X(t.text)],origin:t.origin}}var i=e.lastLine();t.to.line>i&&(t={from:t.from,to:ot(i,Ge(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Je(e,t.from,t.to),n||(n=No(e,t)),e.cm?function(e,t,n){var r=e.doc,o=e.display,i=t.from,a=t.to,s=!1,l=i.line;e.options.lineWrapping||(l=et(Vt(Ge(r,i.line))),r.iter(l,a.line+1,function(e){if(e==o.maxLine)return s=!0,!0})),r.sel.contains(t.from,
t.to)>-1&&we(e),Fo(r,t,n,fr(e)),e.options.lineWrapping||(r.iter(l,i.line+t.text.length,function(e){var t=Kt(e);t>o.maxLineLength&&(o.maxLine=e,o.maxLineLength=t,o.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var o=Ge(e,r).stateAfter;if(o&&(!(o instanceof pt)||r+o.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}(r,i.line),so(e,400);var u=
t.text.length-(a.line-i.line)-1;t.full?gr(e):i.line!=a.line||1!=t.text.length||Io(e.doc,t)?gr(e,i.line,a.line+1,u):mr(e,i.line,"text");var c=xe(e,"changes"),f=xe(e,"change");if(f||c){var d={from:i,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&dn(e,"change",e,d),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}(e.cm,t,r):Fo(e,t,r),oi(e,n,q),e.cantEdit&&ui(e,ot(e.firstLine(),0))&&(e.cantEdit=!1)}}function yi(e,t,n,r,o){var i;r||(r=n),it(r,n)<0&&(n=(i=
[r,n])[0],r=i[1]),"string"==typeof t&&(t=e.splitLines(t)),pi(e,{from:n,to:r,text:t,origin:o})}function bi(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function wi(e,t,n,r){for(var o=0;o<e.length;++o){var i=e[o],a=!0;if(i.ranges){i.copied||((i=e[o]=i.deepCopy()).copied=!0);for(var s=0;s<i.ranges.length;s++)bi(i.ranges[s].anchor,t,n,r),bi(i.ranges[s].head,t,n,r)}else{for(var l=0;l<i.changes.length;++l){var u=i.changes[l];if(n<u.from.line)u.from=ot(u.from.line+r,u.from.ch),u.to=ot(u.to.line+
r,u.to.ch);else if(t<=u.to.line){a=!1;break}}a||(e.splice(0,o+1),o=0)}}}function xi(e,t){var n=t.from.line,r=t.to.line,o=t.text.length-(r-n)-1;wi(e.done,n,r,o),wi(e.undone,n,r,o)}function ki(e,t,n,r){var o=t,i=t;return"number"==typeof t?i=Ge(e,ct(e,t)):o=et(t),null==o?null:(r(i,o)&&e.cm&&mr(e.cm,o,n),i)}function Si(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function Ci(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var o=e[r];
t+=o.chunkSize(),n+=o.height,o.parent=this}this.size=t,this.height=n,this.parent=null}To.prototype.from=function(){return ut(this.anchor,this.head)},To.prototype.to=function(){return lt(this.anchor,this.head)},To.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},Si.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var o=this.lines[n];this.height-=o.height,Jt(o),dn(o,"delete")}this.lines.splice(e,
t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},Ci.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],o=r.chunkSize();if(e<o){var i=Math.min(t,o-e),a=r.height;if(r.removeInner(e,
i),this.height-=a-r.height,o==i&&(this.children.splice(n--,1),r.parent=null),0==(t-=i))break;e=0}else e-=o}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Si))){var s=[];this.collapse(s),this.children=[new Si(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var o=this.children[r],i=o.chunkSize();
if(e<=i){if(o.insertInner(e,t,n),o.lines&&o.lines.length>50){for(var a=o.lines.length%25+25,s=a;s<o.lines.length;){var l=new Si(o.lines.slice(s,s+=25));o.height-=l.height,this.children.splice(++r,0,l),l.parent=this}o.lines=o.lines.slice(0,a),this.maybeSpill()}break}e-=i}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new Ci(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=W(e.parent.children,e);e.parent.children.splice(n+1,
0,t)}else{var r=new Ci(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var o=this.children[r],i=o.chunkSize();if(e<i){var a=Math.min(t,i-e);if(o.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=i}}};var Oi=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function Ei(e,t,n){Zt(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&
Rr(e,n)}Oi.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=et(n);if(null!=r&&t){for(var o=0;o<t.length;++o)t[o]==this&&t.splice(o--,1);t.length||(n.widgets=null);var i=On(this);Qe(n,Math.max(0,n.height-i)),e&&(ro(e,function(){Ei(e,n,-i),mr(e,r,"widget")}),dn(e,"lineWidgetCleared",e,this,r))}},Oi.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var o=On(this)-t;o&&(Ut(this.doc,r)||Qe(r,r.height+o),n&&ro(n,function(){n.curOp.forceUpdate=
!0,Ei(n,r,o),dn(n,"lineWidgetChanged",n,e,et(r))}))},ke(Oi);var Mi=0,Ti=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Mi};function _i(e,t,n,r,o){if(r&&r.shared)return function(e,t,n,r,o){(r=H(r)).shared=!1;var i=[_i(e,t,n,r,o)],a=i[0],s=r.widgetNode;return zo(e,function(e){s&&(r.widgetNode=s.cloneNode(!0)),i.push(_i(e,ft(e,t),ft(e,n),r,o));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=X(i)}),new Ai(i,a)}(e,t,n,r,o);if(e.cm&&!e.cm.curOp)return oo(e.cm,_i)(e,t,n,
r,o);var i=new Ti(e,o),a=it(t,n);if(r&&H(r,i,!1),a>0||0==a&&!1!==i.clearWhenEmpty)return i;if(i.replacedWith&&(i.collapsed=!0,i.widgetNode=P("span",[i.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||i.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(i.widgetNode.insertLeft=!0)),i.collapsed){if(Bt(e,t.line,t,n,i)||t.line!=n.line&&Bt(e,n.line,t,n,i))throw new Error("Inserting collapsed marker partially overlapping an existing one");Et=!0}i.addToHistory&&Uo(e,{from:t,to:n,origin:"markText"},
e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,function(r){u&&i.collapsed&&!u.options.lineWrapping&&Vt(r)==u.display.maxLine&&(s=!0),i.collapsed&&l!=t.line&&Qe(r,0),function(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}(r,new Mt(i,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l}),
i.collapsed&&e.iter(t.line,n.line+1,function(t){Ut(e,t)&&Qe(t,0)}),i.clearOnEnter&&ge(i,"beforeCursorEnter",function(){return i.clear()}),i.readOnly&&(Ot=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),i.collapsed&&(i.id=++Mi,i.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),i.collapsed)gr(u,t.line,n.line+1);else if(i.className||i.startStyle||i.endStyle||i.css||i.attributes||i.title)for(var c=t.line;c<=n.line;c++)mr(u,c,"text");i.atomic&&ai(u.doc),dn(u,"markerAdded",u,i)}return i}
Ti.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Gr(e),xe(this,"clear")){var n=this.find();n&&dn(this,"clear",n.from,n.to)}for(var r=null,o=null,i=0;i<this.lines.length;++i){var a=this.lines[i],s=Tt(a.markedSpans,this);e&&!this.collapsed?mr(e,et(a),"text"):e&&(null!=s.to&&(o=et(a)),null!=s.from&&(r=et(a))),a.markedSpans=_t(a.markedSpans,s),null==s.from&&this.collapsed&&!Ut(this.doc,a)&&e&&Qe(a,sr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=
0;l<this.lines.length;++l){var u=Vt(this.lines[l]),c=Kt(u);c>e.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&gr(e,r,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&ai(e.doc)),e&&dn(e,"markerCleared",e,this,r,o),t&&Jr(e),this.parent&&this.parent.clear()}},Ti.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var o=0;o<this.lines.length;++o){var i=
this.lines[o],a=Tt(i.markedSpans,this);if(null!=a.from&&(n=ot(t?i:et(i),a.from),-1==e))return n;if(null!=a.to&&(r=ot(t?i:et(i),a.to),1==e))return r}return n&&{from:n,to:r}},Ti.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&ro(r,function(){var o=t.line,i=et(t.line),a=Ln(r,i);if(a&&(Vn(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Ut(n.doc,o)&&null!=n.height){var s=n.height;n.height=null;var l=On(n)-s;l&&Qe(o,o.height+l)}dn(r,"markerChanged",
r,e)})},Ti.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=W(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Ti.prototype.detachLine=function(e){if(this.lines.splice(W(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},ke(Ti);var Ai=function(e,t){this.markers=e,this.primary=t;for(var n=
0;n<e.length;++n)e[n].parent=this};function Pi(e){return e.findMarks(ot(e.first,0),e.clipPos(ot(e.lastLine())),function(e){return e.parent})}function Di(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];zo(n.primary.doc,function(e){return r.push(e)});for(var o=0;o<n.markers.length;o++){var i=n.markers[o];-1==W(r,i.doc)&&(i.parent=null,n.markers.splice(o--,1))}},n=0;n<e.length;n++)t(n)}Ai.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();
dn(this,"clear")}},Ai.prototype.find=function(e,t){return this.primary.find(e,t)},ke(Ai);var Ni=0,Ri=function(e,t,n,r,o){if(!(this instanceof Ri))return new Ri(e,t,n,r,o);null==n&&(n=0),Ci.call(this,[new Si([new Gt("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var i=ot(n,0);this.sel=Ao(i),this.history=new Vo(null),this.id=++Ni,this.modeOption=t,this.lineSep=r,this.direction="rtl"==o?"rtl":"ltr",this.extend=
!1,"string"==typeof e&&(e=this.splitLines(e)),Fo(this,{from:i,to:i,text:e}),ri(this,Ao(i),q)};Ri.prototype=te(Ci.prototype,{constructor:Ri,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Xe(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},
setValue:ao(function(e){var t=ot(this.first,0),n=this.first+this.size-1;pi(this,{from:t,to:ot(n,Ge(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&jr(this.cm,0,0),ri(this,Ao(t),q)}),replaceRange:function(e,t,n,r){yi(this,e,t=ft(this,t),n=n?ft(this,n):t,r)},getRange:function(e,t,n){var r=Je(this,ft(this,e),ft(this,t));return!1===n?r:""===n?r.join(""):r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(nt(this,
e))return Ge(this,e)},getLineNumber:function(e){return et(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Ge(this,e)),Vt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ft(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},
somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ao(function(e,t,n){ti(this,ft(this,"number"==typeof e?ot(e,t||0):e),null,n)}),setSelection:ao(function(e,t,n){ti(this,ft(this,e),ft(this,t||e),n)}),extendSelection:ao(function(e,t,n){Xo(this,ft(this,e),t&&ft(this,t),n)}),extendSelections:ao(function(e,t){Qo(this,dt(this,e),t)}),extendSelectionsBy:ao(function(e,t){Qo(this,dt(this,Q(this.sel.ranges,e)),t)}),setSelections:ao(function(e,t,n){if(e.length){for(var r=[],o=0;o<e.length;o++)r[o]=
new To(ft(this,e[o].anchor),ft(this,e[o].head||e[o].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),ri(this,_o(this.cm,r,t),n)}}),addSelection:ao(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new To(ft(this,e),ft(this,t||e))),ri(this,_o(this.cm,r,r.length-1),n)}),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var o=Je(this,n[r].from(),n[r].to());t=t?t.concat(o):o}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],
n=this.sel.ranges,r=0;r<n.length;r++){var o=Je(this,n[r].from(),n[r].to());!1!==e&&(o=o.join(e||this.lineSeparator())),t[r]=o}return t},replaceSelection:function(e,t,n){for(var r=[],o=0;o<this.sel.ranges.length;o++)r[o]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:ao(function(e,t,n){for(var r=[],o=this.sel,i=0;i<o.ranges.length;i++){var a=o.ranges[i];r[i]={from:a.from(),to:a.to(),text:this.splitLines(e[i]),origin:n}}for(var s=t&&"end"!=t&&function(e,t,n){for(var r=[],o=ot(e.first,
0),i=o,a=0;a<t.length;a++){var s=t[a],l=Ro(s.from,o,i),u=Ro(Po(s),o,i);if(o=s.to,i=u,"around"==n){var c=e.sel.ranges[a],f=it(c.head,c.anchor)<0;r[a]=new To(f?u:l,f?l:u)}else r[a]=new To(l,l)}return new Mo(r,e.sel.primIndex)}(this,r,t),l=r.length-1;l>=0;l--)pi(this,r[l]);s?ni(this,s):this.cm&&Lr(this.cm)}),undo:ao(function(){gi(this,"undo")}),redo:ao(function(){gi(this,"redo")}),undoSelection:ao(function(){gi(this,"undo",!0)}),redoSelection:ao(function(){gi(this,"redo",!0)}),setExtending:function(e){this.extend=
e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var o=0;o<e.undone.length;o++)e.undone[o].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new Vo(this.history),zo(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=
this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Go(this.history.done),undone:Go(this.history.undone)}},setHistory:function(e){var t=this.history=new Vo(this.history);t.done=Go(e.done.slice(0),null,!0),t.undone=Go(e.undone.slice(0),null,!0)},setGutterMarker:ao(function(e,t,n){return ki(this,e,"gutter",function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&ie(r)&&
(e.gutterMarkers=null),!0})}),clearGutter:ao(function(e){var t=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&ki(t,n,"gutter",function(){return n.gutterMarkers[e]=null,ie(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if("number"==typeof e){if(!nt(this,e))return null;if(t=e,!(e=Ge(this,e)))return null}else if(null==(t=et(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,
widgets:e.widgets}},addLineClass:ao(function(e,t,n){return ki(this,e,"gutter"==t?"gutter":"class",function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(O(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0})}),removeLineClass:ao(function(e,t,n){return ki(this,e,"gutter"==t?"gutter":"class",function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",o=e[r];if(!o)return!1;if(null==n)e[r]=null;
else{var i=o.match(O(n));if(!i)return!1;var a=i.index+i[0].length;e[r]=o.slice(0,i.index)+(i.index&&a!=o.length?" ":"")+o.slice(a)||null}return!0})}),addLineWidget:ao(function(e,t,n){return function(e,t,n,r){var o=new Oi(e,n,r),i=e.cm;return i&&o.noHScroll&&(i.display.alignWidgets=!0),ki(e,t,"widget",function(t){var n=t.widgets||(t.widgets=[]);if(null==o.insertAt?n.push(o):n.splice(Math.min(n.length,Math.max(0,o.insertAt)),0,o),o.line=t,i&&!Ut(e,t)){var r=Zt(t)<e.scrollTop;Qe(t,t.height+On(o)),r&&
Rr(i,o.height),i.curOp.forceUpdate=!0}return!0}),i&&dn(i,"lineWidgetAdded",i,o,"number"==typeof t?t:et(t)),o}(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return _i(this,ft(this,e),ft(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return _i(this,e=ft(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=
[],n=Ge(this,(e=ft(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var o=n[r];(null==o.from||o.from<=e.ch)&&(null==o.to||o.to>=e.ch)&&t.push(o.marker.parent||o.marker)}return t},findMarks:function(e,t,n){e=ft(this,e),t=ft(this,t);var r=[],o=e.line;return this.iter(e.line,t.line+1,function(i){var a=i.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&o==e.line&&e.ch>=l.to||null==l.from&&o!=e.line||null!=l.from&&o==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||
l.marker)}++o}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)}),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter(function(o){var i=o.text.length+r;if(i>e)return t=e,!0;e-=i,++n}),ft(this,ot(n,t))},indexFromPos:function(e){var t=(e=ft(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,
function(e){t+=e.text.length+n}),t},copy:function(e){var t=new Ri(Xe(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new Ri(Xe(this,t,n),e.mode||
this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n],o=r.find(),i=e.clipPos(o.from),a=e.clipPos(o.to);if(it(i,a)){var s=_i(e,i,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}(r,Pi(this)),r},unlinkDoc:function(e){if(e instanceof _a&&(e=e.doc),this.linked)for(var t=0;t<
this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Di(Pi(this));break}if(e.history==this.history){var n=[e.id];zo(e,function(e){return n.push(e.id)},!0),e.history=new Vo(null),e.history.done=Go(this.history.done,n),e.history.undone=Go(this.history.undone,n)}},iterLinkedDocs:function(e){zo(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Le(e)},lineSeparator:function(){return this.lineSep||
"\n"},setDirection:ao(function(e){var t;"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&ro(t=this.cm,function(){Bo(t),gr(t)}))})}),Ri.prototype.eachLine=Ri.prototype.iter;var Li=0;function ji(e){var t=this;if(Ii(t),!be(t,e)&&!En(t.display,e)){Se(e),a&&(Li=+new Date);var n=pr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var o=r.length,i=Array(o),s=0,l=function(){++s==o&&oo(t,function(){var e=
{from:n=ft(t.doc,n),to:n,text:t.doc.splitLines(i.filter(function(e){return null!=e}).join(t.doc.lineSeparator())),origin:"paste"};pi(t.doc,e),ni(t.doc,Ao(ft(t.doc,n),ft(t.doc,Po(e))))})()},u=function(e,n){if(t.options.allowDropFileTypes&&-1==W(t.options.allowDropFileTypes,e.type))l();else{var r=new FileReader;r.onerror=function(){return l()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(i[n]=e),l()},r.readAsText(e)}},c=0;c<r.length;c++)u(r[c],c);else{if(t.state.draggingText&&
t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var f=e.dataTransfer.getData("Text");if(f){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),oi(t.doc,Ao(n,n)),d)for(var p=0;p<d.length;++p)yi(t.doc,"",d[p].anchor,d[p].head,"drag");t.replaceSelection(f,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Ii(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),
e.display.dragCursor=null)}function Fi(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var o=t[r].CodeMirror;o&&n.push(o)}n.length&&n[0].operation(function(){for(var t=0;t<n.length;t++)e(n[t])})}}var zi=!1;function Hi(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Bi={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",
27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Vi=0;Vi<10;Vi++)Bi[Vi+
48]=Bi[Vi+96]=String(Vi);for(var Wi=65;Wi<=90;Wi++)Bi[Wi]=String.fromCharCode(Wi);for(var $i=1;$i<=12;$i++)Bi[$i+111]=Bi[$i+63235]="F"+$i;var Ui={};function qi(e){var t,n,r,o,i=e.split(/-(?!$)/);e=i[i.length-1];for(var a=0;a<i.length-1;a++){var s=i[a];if(/^(cmd|meta|m)$/i.test(s))o=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),o&&(e="Cmd-"+
e),r&&(e="Shift-"+e),e}function Zi(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var o=Q(n.split(" "),qi),i=0;i<o.length;i++){var a=void 0,s=void 0;i==o.length-1?(s=o.join(" "),a=r):(s=o.slice(0,i+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s);}else t[s]=a}delete e[n]}for(var u in t)e[u]=t[u];return e}function Ki(e,t,n,r){var o=(t=Xi(t)).call?
t.call(e,r):t[e];if(!1===o)return"nothing";if("..."===o)return"multi";if(null!=o&&n(o))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Ki(e,t.fallthrough,n,r);for(var i=0;i<t.fallthrough.length;i++){var a=Ki(e,t.fallthrough[i],n,r);if(a)return a}}}function Yi(e){var t="string"==typeof e?e:Bi[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Gi(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(S?t.metaKey:t.ctrlKey)&&
"Ctrl"!=r&&(e="Ctrl-"+e),(S?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Ji(e,t){if(d&&34==e.keyCode&&e.char)return!1;var n=Bi[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Gi(n,e,t))}function Xi(e){return"string"==typeof e?Ui[e]:e}function Qi(e,t){for(var n=e.doc.sel.ranges,r=[],o=0;o<n.length;o++){for(var i=t(n[o]);r.length&&it(i.from,X(r).to)<=0;){var a=r.pop();if(it(a.from,i.from)<0){i.from=a.from;break}}r.push(i)}ro(e,
function(){for(var t=r.length-1;t>=0;t--)yi(e.doc,"",r[t].from,r[t].to,"+delete");Lr(e)})}function ea(e,t,n){var r=le(e.text,t+n,n);return r<0||r>e.text.length?null:r}function ta(e,t,n){var r=ea(e,t.ch,n);return null==r?null:new ot(t.line,r,n<0?"after":"before")}function na(e,t,n,r,o){if(e){"rtl"==t.doc.direction&&(o=-o);var i=pe(n,t.doc.direction);if(i){var a,s=o<0?X(i):i[0],l=o<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=jn(t,n);a=o<0?n.text.length-1:0;var c=In(t,
u,a).top;a=ue(function(e){return In(t,u,e).top==c},o<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=ea(n,a,1))}else a=o<0?s.to:s.from;return new ot(r,a,l)}}return new ot(r,o<0?n.text.length:0,o<0?"before":"after")}Ui.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",
Insert:"toggleOverwrite",Esc:"singleSelection"},Ui.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace",
"Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ui.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},
Ui.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll",
"Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ui.default=b?Ui.macDefault:Ui.pcDefault;var ra={selectAll:fi,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),q)},killLine:function(e){return Qi(e,function(t){if(t.empty()){var n=Ge(e.doc,t.head.line).text.length;
return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:ot(t.head.line+1,0)}:{from:t.head,to:ot(t.head.line,n)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Qi(e,function(t){return{from:ot(t.from().line,0),to:ft(e.doc,ot(t.to().line+1,0))}})},delLineLeft:function(e){return Qi(e,function(e){return{from:ot(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return Qi(e,function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),
to:t.from()}})},delWrappedLineRight:function(e){return Qi(e,function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ot(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ot(e.lastLine()))},
goLineStart:function(e){return e.extendSelectionsBy(function(t){return oa(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return ia(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return function(e,t){var n=Ge(e.doc,t),r=function(e){for(var t;t=zt(e);)e=t.find(1,!0).line;return e}(n);return r!=n&&(t=et(r)),na(!0,e,n,t,-1)}(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var n=
e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")},K)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")},K)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?ia(e,t.head):r},K)},goLineUp:function(e){return e.moveV(-1,
"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,
"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},
indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,o=0;o<n.length;o++){var i=n[o].from(),a=B(e.getLine(i.line),i.ch,r);t.push(J(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return ro(e,function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var o=
t[r].head,i=Ge(e.doc,o.line).text;if(i)if(o.ch==i.length&&(o=new ot(o.line,o.ch-1)),o.ch>0)o=new ot(o.line,o.ch+1),e.replaceRange(i.charAt(o.ch-1)+i.charAt(o.ch-2),ot(o.line,o.ch-2),o,"+transpose");else if(o.line>e.doc.first){var a=Ge(e.doc,o.line-1).text;a&&(o=new ot(o.line,1),e.replaceRange(i.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),ot(o.line-1,a.length-1),o,"+transpose"))}n.push(new To(o,o))}e.setSelections(n)})},newlineAndIndent:function(e){return ro(e,function(){for(var t=e.listSelections(),
n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);Lr(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function oa(e,t){var n=Ge(e.doc,t),r=Vt(n);return r!=n&&(t=et(r)),na(!0,e,r,t,1)}function ia(e,t){var n=oa(e,t.line),r=Ge(e.doc,n.line),o=pe(r,e.doc.direction);if(!o||0==o[0].level){var i=Math.max(n.ch,
r.text.search(/\S/)),a=t.line==n.line&&t.ch<=i&&t.ch;return ot(n.line,a?0:i,n.sticky)}return n}function aa(e,t,n){if("string"==typeof t&&!(t=ra[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,o=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),o=t(e)!=U}finally{e.display.shift=r,e.state.suppressEdits=!1}return o}var sa=new V;function la(e,t,n,r){var o=e.state.keySeq;if(o){if(Yi(t))return"handled";if(/'$/.test(t)?e.state.keySeq=null:sa.set(50,function(){e.state.keySeq==
o&&(e.state.keySeq=null,e.display.input.reset())}),ua(e,o+" "+t,n,r))return!0}return ua(e,t,n,r)}function ua(e,t,n,r){var o=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var o=Ki(t,e.state.keyMaps[r],n,e);if(o)return o}return e.options.extraKeys&&Ki(t,e.options.extraKeys,n,e)||Ki(t,e.options.keyMap,n,e)}(e,t,r);return"multi"==o&&(e.state.keySeq=t),"handled"==o&&dn(e,"keyHandled",e,t,n),"handled"!=o&&"multi"!=o||(Se(n),Or(e)),!!o}function ca(e,t){var n=Ji(t,!0);return!!n&&(t.shiftKey&&
!e.state.keySeq?la(e,"Shift-"+n,t,function(t){return aa(e,t,!0)})||la(e,n,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return aa(e,t)}):la(e,n,t,function(t){return aa(e,t)}))}var fa=null;function da(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=N(I(t)),be(t,e)))){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var o=ca(t,e);d&&(fa=o?r:null,o||88!=r||Ie||!(b?e.metaKey:e.ctrlKey)||t.replaceSelection("",
null,"cut")),n&&!b&&!o&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(M(t,"CodeMirror-crosshair"),ve(document,"keyup",n),ve(document,"mouseover",n))}R(t,"CodeMirror-crosshair"),ge(document,"keyup",n),ge(document,"mouseover",n)}(t)}}function pa(e){16==e.keyCode&&(this.doc.sel.shift=!1),be(this,e)}function ha(e){var t=this;
if(!(e.target&&e.target!=t.display.input.getField()||En(t.display,e)||be(t,e)||e.ctrlKey&&!e.altKey||b&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(d&&n==fa)return fa=null,void Se(e);if(!d||e.which&&!(e.which<10)||!ca(t,e)){var o=String.fromCharCode(null==r?n:r);"\b"!=o&&(function(e,t,n){return la(e,"'"+n+"'",t,function(t){return aa(e,t,!0)})}(t,e,o)||t.display.input.onKeyPress(e))}}}var ga,ma,va=function(e,t,n){this.time=e,this.pos=t,this.button=n};function ya(e){var t=this,n=t.display;if(!(be(t,
e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,En(n,e))l||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));else if(!xa(t,e)){var r=pr(t,e),o=Te(e),i=r?function(e,t){var n=+new Date;return ma&&ma.compare(n,e,t)?(ga=ma=null,"triple"):ga&&ga.compare(n,e,t)?(ma=new va(n,e,t),ga=null,"double"):(ga=new va(n,e,t),ma=null,"single")}(r,o):"single";F(t).focus(),1==o&&t.state.selectingText&&t.state.selectingText(e),r&&function(e,t,
n,r,o){var i="Click";return"double"==r?i="Double"+i:"triple"==r&&(i="Triple"+i),la(e,Gi(i=(1==t?"Left":2==t?"Middle":"Right")+i,o),o,function(t){if("string"==typeof t&&(t=ra[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=U}finally{e.state.suppressEdits=!1}return r})}(t,o,r,i,e)||(1==o?r?function(e,t,n,r){a?setTimeout(z(Er,e),0):e.curOp.focus=N(I(e));var o,i=function(e,t,n){var r=e.getOption("configureMouse"),o=r?r(e,t,n):{};if(null==o.unit){var i=w?n.shiftKey&&n.metaKey:
n.altKey;o.unit=i?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==o.extend||e.doc.extend)&&(o.extend=e.doc.extend||n.shiftKey),null==o.addNew&&(o.addNew=b?n.metaKey:n.ctrlKey),null==o.moveOnDrag&&(o.moveOnDrag=!(b?n.altKey:n.ctrlKey)),o}(e,n,r),u=e.doc.sel;e.options.dragDrop&&Pe&&!e.isReadOnly()&&"single"==n&&(o=u.contains(t))>-1&&(it((o=u.ranges[o]).from(),t)<0||t.xRel>0)&&(it(o.to(),t)>0||t.xRel<0)?function(e,t,n,r){var o=e.display,i=!1,u=oo(e,function(t){l&&(o.scroller.draggable=
!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Mr(e)),ve(o.wrapper.ownerDocument,"mouseup",u),ve(o.wrapper.ownerDocument,"mousemove",c),ve(o.scroller,"dragstart",f),ve(o.scroller,"drop",u),i||(Se(t),r.addNew||Xo(e.doc,n,null,null,r.extend),l&&!p||a&&9==s?setTimeout(function(){o.wrapper.ownerDocument.body.focus({preventScroll:!0}),o.input.focus()},20):o.input.focus())}),c=function(e){i=i||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=
10},f=function(){return i=!0};l&&(o.scroller.draggable=!0),e.state.draggingText=u,u.copy=!r.moveOnDrag,ge(o.wrapper.ownerDocument,"mouseup",u),ge(o.wrapper.ownerDocument,"mousemove",c),ge(o.scroller,"dragstart",f),ge(o.scroller,"drop",u),e.state.delayingBlurEvent=!0,setTimeout(function(){return o.input.focus()},20),o.scroller.dragDrop&&o.scroller.dragDrop()}(e,r,t,i):function(e,t,n,r){a&&Mr(e);var o=e.display,i=e.doc;Se(t);var s,l,u=i.sel,c=u.ranges;if(r.addNew&&!r.extend?(l=i.sel.contains(n),s=l>
-1?c[l]:new To(n,n)):(s=i.sel.primary(),l=i.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new To(n,n)),n=pr(e,t,!0,!0),l=-1;else{var f=ba(e,n,r.unit);s=r.extend?Jo(s,f.anchor,f.head,r.extend):f}r.addNew?-1==l?(l=c.length,ri(i,_o(e,c.concat([s]),l),{scroll:!1,origin:"*mouse"})):c.length>1&&c[l].empty()&&"char"==r.unit&&!r.extend?(ri(i,_o(e,c.slice(0,l).concat(c.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),u=i.sel):ei(i,l,s,Z):(l=0,ri(i,new Mo([s],0),Z),u=i.sel);var d=n;function p(t){if(0!=it(d,t))if(d=
t,"rectangle"==r.unit){for(var o=[],a=e.options.tabSize,c=B(Ge(i,n.line).text,n.ch,a),f=B(Ge(i,t.line).text,t.ch,a),p=Math.min(c,f),h=Math.max(c,f),g=Math.min(n.line,t.line),m=Math.min(e.lastLine(),Math.max(n.line,t.line));g<=m;g++){var v=Ge(i,g).text,y=Y(v,p,a);p==h?o.push(new To(ot(g,y),ot(g,y))):v.length>y&&o.push(new To(ot(g,y),ot(g,Y(v,h,a))))}o.length||o.push(new To(n,n)),ri(i,_o(e,u.ranges.slice(0,l).concat(o),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,w=s,x=ba(e,t,r.unit),
k=w.anchor;it(x.anchor,k)>0?(b=x.head,k=ut(w.from(),x.anchor)):(b=x.anchor,k=lt(w.to(),x.head));var S=u.ranges.slice(0);S[l]=function(e,t){var n=t.anchor,r=t.head,o=Ge(e.doc,n.line);if(0==it(n,r)&&n.sticky==r.sticky)return t;var i=pe(o);if(!i)return t;var a=fe(i,n.ch,n.sticky),s=i[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==i.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=fe(i,r.ch,r.sticky),f=c-a||
(r.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?f<0:f>0}var d=i[u+(l?-1:0)],p=l==(1==d.level),h=p?d.from:d.to,g=p?"after":"before";return n.ch==h&&n.sticky==g?t:new To(new ot(n.line,h,g),r)}(e,new To(ft(i,k),b)),ri(i,_o(e,S,l),Z)}}var h=o.wrapper.getBoundingClientRect(),g=0;function m(t){var n=++g,a=pr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=it(a,d)){e.curOp.focus=N(I(e)),p(a);var s=Dr(o,i);(a.line>=s.to||a.line<s.from)&&setTimeout(oo(e,function(){g==n&&m(t)}),150)}else{var l=t.clientY<h.top?-20:t.clientY>
h.bottom?20:0;l&&setTimeout(oo(e,function(){g==n&&(o.scroller.scrollTop+=l,m(t))}),50)}}function v(t){e.state.selectingText=!1,g=1/0,t&&(Se(t),o.input.focus()),ve(o.wrapper.ownerDocument,"mousemove",y),ve(o.wrapper.ownerDocument,"mouseup",b),i.history.lastSelOrigin=null}var y=oo(e,function(e){0!==e.buttons&&Te(e)?m(e):v(e)}),b=oo(e,v);e.state.selectingText=b,ge(o.wrapper.ownerDocument,"mousemove",y),ge(o.wrapper.ownerDocument,"mouseup",b)}(e,r,t,i)}(t,r,i,e):Me(e)==n.scroller&&Se(e):2==o?(r&&Xo(t.doc,
r),setTimeout(function(){return n.input.focus()},20)):3==o&&(C?t.display.input.onContextMenu(e):Mr(t)))}}function ba(e,t,n){if("char"==n)return new To(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new To(ot(t.line,0),ft(e.doc,ot(t.line+1,0)));var r=n(e,t);return new To(r.from,r.to)}function wa(e,t,n,r){var o,i;if(t.touches)o=t.touches[0].clientX,i=t.touches[0].clientY;else try{o=t.clientX,i=t.clientY}catch(e){return!1}if(o>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;
r&&Se(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(i>s.bottom||!xe(e,n))return Oe(t);i-=s.top-a.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var u=a.gutters.childNodes[l];if(u&&u.getBoundingClientRect().right>=o)return ye(e,n,e,tt(e.doc,i),e.display.gutterSpecs[l].className,t),Oe(t)}}function xa(e,t){return wa(e,t,"gutterClick",!0)}function ka(e,t){En(e.display,t)||function(e,t){return!!xe(e,"gutterContextMenu")&&wa(e,t,"gutterContextMenu",!1)}(e,t)||be(e,t,"contextmenu")||
C||e.display.input.onContextMenu(t)}function Sa(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),$n(e)}va.prototype.compare=function(e,t,n){return this.time+400>e&&0==it(t,this.pos)&&n==this.button};var Ca={toString:function(){return"CodeMirror.Init"}},Oa={},Ea={};function Ma(e,t,n){if(!t!=!(n&&n!=Ca)){var r=e.display.dragFunctions,o=t?ge:ve;o(e.display.scroller,"dragstart",r.start),o(e.display.scroller,"dragenter",
r.enter),o(e.display.scroller,"dragover",r.over),o(e.display.scroller,"dragleave",r.leave),o(e.display.scroller,"drop",r.drop)}}function Ta(e){e.options.lineWrapping?(R(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(M(e.display.wrapper,"CodeMirror-wrap"),Yt(e)),dr(e),gr(e),$n(e),setTimeout(function(){return Ur(e)},100)}function _a(e,t){var n=this;if(!(this instanceof _a))return new _a(e,t);this.options=t=t?H(t):{},H(Oa,t,!1);var r=t.value;"string"==
typeof r?r=new Ri(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var o=new _a.inputStyles[t.inputStyle](this),i=this.display=new xo(e,r,o,t);for(var u in i.wrapper.CodeMirror=this,Sa(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Kr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new V,keySeq:null,
specialChars:null},t.autofocus&&!y&&i.input.focus(),a&&s<11&&setTimeout(function(){return n.display.input.reset(!0)},20),function(e){var t=e.display;ge(t.scroller,"mousedown",oo(e,ya)),ge(t.scroller,"dblclick",a&&s<11?oo(e,function(t){if(!be(e,t)){var n=pr(e,t);if(n&&!xa(e,t)&&!En(e.display,t)){Se(t);var r=e.findWordAt(n);Xo(e.doc,r.anchor,r.head)}}}):function(t){return be(e,t)||Se(t)}),ge(t.scroller,"contextmenu",function(t){return ka(e,t)}),ge(t.input.getField(),"contextmenu",function(n){t.scroller.contains(n.target)||
ka(e,n)});var n,r={end:0};function o(){t.activeTouch&&(n=setTimeout(function(){return t.activeTouch=null},1E3),(r=t.activeTouch).end=+new Date)}function i(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}ge(t.scroller,"touchstart",function(o){if(!be(e,o)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(o)&&!xa(e,o)){t.input.ensurePolled(),clearTimeout(n);var i=+new Date;t.activeTouch={start:i,moved:!1,prev:i-r.end<=
300?r:null},1==o.touches.length&&(t.activeTouch.left=o.touches[0].pageX,t.activeTouch.top=o.touches[0].pageY)}}),ge(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),ge(t.scroller,"touchend",function(n){var r=t.activeTouch;if(r&&!En(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,s=e.coordsChar(t.activeTouch,"page");a=!r.prev||i(r,r.prev)?new To(s,s):!r.prev.prev||i(r,r.prev.prev)?e.findWordAt(s):new To(ot(s.line,0),ft(e.doc,ot(s.line+1,0))),e.setSelection(a.anchor,
a.head),e.focus(),Se(n)}o()}),ge(t.scroller,"touchcancel",o),ge(t.scroller,"scroll",function(){t.scroller.clientHeight&&(zr(e,t.scroller.scrollTop),Br(e,t.scroller.scrollLeft,!0),ye(e,"scroll",e))}),ge(t.scroller,"mousewheel",function(t){return Eo(e,t)}),ge(t.scroller,"DOMMouseScroll",function(t){return Eo(e,t)}),ge(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){be(e,t)||Ee(t)},over:function(t){be(e,t)||(function(e,t){var n=pr(e,
t);if(n){var r=document.createDocumentFragment();kr(e,n,r),e.display.dragCursor||(e.display.dragCursor=A("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),_(e.display.dragCursor,r)}}(e,t),Ee(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-Li<100))Ee(t);else if(!be(e,t)&&!En(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&
!p)){var n=A("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),d&&n.parentNode.removeChild(n)}}(e,t)},drop:oo(e,ji),leave:function(t){be(e,t)||Ii(e)}};var l=t.input.getField();ge(l,"keyup",function(t){return pa.call(e,t)}),ge(l,"keydown",oo(e,da)),ge(l,"keypress",oo(e,ha)),ge(l,"focus",function(t){return Tr(e,
t)}),ge(l,"blur",function(t){return _r(e,t)})}(this),function(){var e;zi||(ge(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,Fi(Hi)},100))}),ge(window,"blur",function(){return Fi(_r)}),zi=!0)}(),Gr(this),this.curOp.forceUpdate=!0,Ho(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&Tr(n)},20):_r(this),Ea)Ea.hasOwnProperty(u)&&Ea[u](this,t[u],Ca);vo(this),t.finishInit&&t.finishInit(this);for(var c=0;c<Aa.length;++c)Aa[c](this);Jr(this),
l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(i.lineDiv).textRendering&&(i.lineDiv.style.textRendering="auto")}_a.defaults=Oa,_a.optionHandlers=Ea;var Aa=[];function Pa(e,t,n,r){var o,i=e.doc;null==n&&(n="add"),"smart"==n&&(i.mode.indent?o=vt(e,t).state:n="prev");var a=e.options.tabSize,s=Ge(i,t),l=B(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((u=i.mode.indent(o,s.text.slice(c.length),s.text))==U||u>150)){if(!r)return;
n="prev"}}else u=0,n="not";"prev"==n?u=t>i.first?B(Ge(i,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var f="",d=0;if(e.options.indentWithTabs)for(var p=Math.floor(u/a);p;--p)d+=a,f+="\t";if(d<u&&(f+=J(u-d)),f!=c)return yi(i,f,ot(t,0),ot(t,c.length),"+input"),s.stateAfter=null,!0;for(var h=0;h<i.sel.ranges.length;h++){var g=i.sel.ranges[h];if(g.head.line==t&&g.head.ch<c.length){var m=ot(t,c.length);ei(i,h,new To(m,
m));break}}}_a.defineInitHook=function(e){return Aa.push(e)};var Da=null;function Na(e){Da=e}function Ra(e,t,n,r,o){var i=e.doc;e.display.shift=!1,r||(r=i.sel);var a=+new Date-200,s="paste"==o||e.state.pasteIncoming>a,l=Le(t),u=null;if(s&&r.ranges.length>1)if(Da&&Da.text.join("\n")==t){if(r.ranges.length%Da.text.length==0){u=[];for(var c=0;c<Da.text.length;c++)u.push(i.splitLines(Da.text[c]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(u=Q(l,function(e){return[e]}));for(var f=
e.curOp.updateInput,d=r.ranges.length-1;d>=0;d--){var p=r.ranges[d],h=p.from(),g=p.to();p.empty()&&(n&&n>0?h=ot(h.line,h.ch-n):e.state.overwrite&&!s?g=ot(g.line,Math.min(Ge(i,g.line).text.length,g.ch+X(l).length)):s&&Da&&Da.lineWise&&Da.text.join("\n")==l.join("\n")&&(h=g=ot(h.line,0)));var m={from:h,to:g,text:u?u[d%u.length]:l,origin:o||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};pi(e.doc,m),dn(e,"inputRead",e,m)}t&&!s&&ja(e,t),Lr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=f),e.curOp.typing=
!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function La(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||ro(t,function(){return Ra(t,n,0,null,"paste")}),!0}function ja(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var o=n.ranges[r];if(!(o.head.ch>100||r&&n.ranges[r-1].head.line==o.head.line)){var i=e.getModeAt(o.head),a=!1;if(i.electricChars)for(var s=
0;s<i.electricChars.length;s++){if(t.indexOf(i.electricChars.charAt(s))>-1){a=Pa(e,o.head.line,"smart");break}}else i.electricInput&&i.electricInput.test(Ge(e.doc,o.head.line).text.slice(0,o.head.ch))&&(a=Pa(e,o.head.line,"smart"));a&&dn(e,"electricInput",e,o.head.line)}}}function Ia(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var o=e.doc.sel.ranges[r].head.line,i={anchor:ot(o,0),head:ot(o+1,0)};n.push(i),t.push(e.getRange(i.anchor,i.head))}return{text:t,ranges:n}}function Fa(e,t,n,r){e.setAttribute("autocorrect",
n?"on":"off"),e.setAttribute("autocapitalize",r?"on":"off"),e.setAttribute("spellcheck",!!t)}function za(){var e=A("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=A("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),m&&(e.style.border="1px solid black"),t}function Ha(e,t,n,r,o){var i=t,a=n,s=Ge(e,t.line),l=o&&"rtl"==e.direction?
-n:n;function u(i){var a,u;if("codepoint"==r){var c=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(c))a=null;else{var f=n>0?c>=55296&&c<56320:c>=56320&&c<57343;a=new ot(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(f?2:1))),-n)}}else a=o?function(e,t,n,r){var o=pe(t,e.doc.direction);if(!o)return ta(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var i=fe(o,n.ch,n.sticky),a=o[i];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return ta(t,
n,r);var s,l=function(e,n){return ea(t,e instanceof ot?e.ch:e,n)},u=function(n){return e.options.lineWrapping?(s=s||jn(e,t),nr(e,t,s,n)):{begin:0,end:t.text.length}},c=u("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var f=1==a.level==r<0,d=l(n,f?1:-1);if(null!=d&&(f?d<=a.to&&d<=c.end:d>=a.from&&d>=c.begin)){var p=f?"before":"after";return new ot(n.line,d,p)}}var h=function(e,t,r){for(var i=function(e,t){return t?new ot(n.line,l(e,1),"before"):new ot(n.line,e,"after")};e>=
0&&e<o.length;e+=t){var a=o[e],s=t>0==(1!=a.level),u=s?r.begin:l(r.end,-1);if(a.from<=u&&u<a.to)return i(u,s);if(u=s?a.from:l(a.to,-1),r.begin<=u&&u<r.end)return i(u,s)}},g=h(i+r,r,c);if(g)return g;var m=r>0?c.end:l(c.begin,-1);return null==m||r>0&&m==t.text.length||!(g=h(r>0?0:o.length-1,r,u(m)))?null:g}(e.cm,s,t,n):ta(s,t,n);if(null==a){if(i||(u=t.line+l)<e.first||u>=e.first+e.size||(t=new ot(u,t.ch,t.sticky),!(s=Ge(e,u))))return!1;t=na(o,e.cm,s,t.line,l)}else t=a;return!0}if("char"==r||"codepoint"==
r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var c=null,f="group"==r,d=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||u(!p);p=!1){var h=s.text.charAt(t.ch)||"\n",g=oe(h,d)?"w":f&&"\n"==h?"n":!f||/\s/.test(h)?null:"p";if(!f||p||g||(g="s"),c&&c!=g){n<0&&(n=1,u(),t.sticky="after");break}if(g&&(c=g),n>0&&!u(!p))break}var m=ui(e,t,i,a,!0);return at(i,m)&&(m.hitSide=!0),m}function Ba(e,t,n,r){var o,i,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,F(e).innerHeight||
a(e).documentElement.clientHeight),u=Math.max(l-.5*sr(e.display),3);o=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(o=n>0?t.bottom+3:t.top-3);for(;(i=er(e,s,o)).outside;){if(n<0?o<=0:o>=a.height){i.hitSide=!0;break}o+=5*n}return i}var Va=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new V,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Wa(e,t){var n=Ln(e,t.line);if(!n||n.hidden)return null;var r=Ge(e.doc,
t.line),o=Nn(n,r,t.line),i=pe(r,e.doc.direction),a="left";i&&(a=fe(i,t.ch)%2?"right":"left");var s=Hn(o.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function $a(e,t){return t&&(e.bad=!0),e}function Ua(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return $a(e.clipPos(ot(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var o=0;o<e.display.view.length;o++){var i=
e.display.view[o];if(i.node==r)return qa(i,t,n)}}function qa(e,t,n){var r=e.text.firstChild,o=!1;if(!t||!D(r,t))return $a(ot(et(e.line),0),!0);if(t==r&&(o=!0,t=r.childNodes[n],n=0,!t)){var i=e.rest?X(e.rest):e.line;return $a(ot(et(i),i.text.length),o)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var l=e.measure,u=l.maps;function c(t,n,r){for(var o=-1;o<(u?u.length:0);o++)for(var i=
o<0?l.map:u[o],a=0;a<i.length;a+=3){var s=i[a+2];if(s==t||s==n){var c=et(o<0?e.line:e.rest[o]),f=i[a]+r;return(r<0||s!=t)&&(f=i[a+(r?1:0)]),ot(c,f)}}}var f=c(a,s,n);if(f)return $a(f,o);for(var d=s.nextSibling,p=a?a.nodeValue.length-n:0;d;d=d.nextSibling){if(f=c(d,d.firstChild,0))return $a(ot(f.line,f.ch-p),o);p+=d.textContent.length}for(var h=s.previousSibling,g=n;h;h=h.previousSibling){if(f=c(h,h.firstChild,-1))return $a(ot(f.line,f.ch+g),o);g+=h.textContent.length}}Va.prototype.init=function(e){var t=
this,n=this,r=n.cm,o=n.div=e.lineDiv;function i(e){for(var t=e.target;t;t=t.parentNode){if(t==o)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(i(e)&&!be(r,e)){if(r.somethingSelected())Na({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Ia(r);Na({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation(function(){r.setSelections(t.ranges,0,q),r.replaceSelection("",null,
"cut")})}if(e.clipboardData){e.clipboardData.clearData();var a=Da.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var s=za(),l=s.firstChild;Fa(l),r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=Da.text.join("\n");var u=N(o.ownerDocument);j(l),setTimeout(function(){r.display.lineSpace.removeChild(s),u.focus(),u==o&&n.showPrimarySelection()},50)}}o.contentEditable=!0,Fa(o,r.options.spellcheck,r.options.autocorrect,
r.options.autocapitalize),ge(o,"paste",function(e){!i(e)||be(r,e)||La(e,r)||s<=11&&setTimeout(oo(r,function(){return t.updateFromDOM()}),20)}),ge(o,"compositionstart",function(e){t.composing={data:e.data,done:!1}}),ge(o,"compositionupdate",function(e){t.composing||(t.composing={data:e.data,done:!1})}),ge(o,"compositionend",function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),ge(o,"touchstart",function(){return n.forceCompositionEnd()}),ge(o,"input",function(){t.composing||
t.readFromDOMSoon()}),ge(o,"copy",a),ge(o,"cut",a)},Va.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Va.prototype.prepareSelection=function(){var e=xr(this.cm,!1);return e.focus=N(this.div.ownerDocument)==this.div,e},Va.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Va.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},
Va.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),o=r.from(),i=r.to();if(t.display.viewTo==t.display.viewFrom||o.line>=t.display.viewTo||i.line<t.display.viewFrom)e.removeAllRanges();else{var a=Ua(t,e.anchorNode,e.anchorOffset),s=Ua(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=it(ut(a,s),o)||0!=it(lt(a,s),i)){var l=t.display.view,u=o.line>=t.display.viewFrom&&Wa(t,o)||{node:l[0].measure.map[2],offset:0},c=i.line<t.display.viewTo&&Wa(t,
i);if(!c){var f=l[l.length-1].measure,d=f.maps?f.maps[f.maps.length-1]:f.map;c={node:d[d.length-1],offset:d[d.length-2]-d[d.length-3]}}if(u&&c){var p,h=e.rangeCount&&e.getRangeAt(0);try{p=E(u.node,u.offset,c.offset,c.node)}catch(e){}p&&(!n&&t.state.focused?(e.collapse(u.node,u.offset),p.collapsed||(e.removeAllRanges(),e.addRange(p))):(e.removeAllRanges(),e.addRange(p)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Va.prototype.startGracePeriod=
function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Va.prototype.showMultipleSelections=function(e){_(this.cm.display.cursorDiv,e.cursors),_(this.cm.display.selectionDiv,e.selection)},Va.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,
this.lastFocusOffset=e.focusOffset},Va.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return D(this.div,t)},Va.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&N(this.div.ownerDocument)==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Va.prototype.blur=function(){this.div.blur()},Va.prototype.getField=function(){return this.div},Va.prototype.supportsTouch=
function(){return!0},Va.prototype.receivedFocus=function(){var e=this,t=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):ro(this.cm,function(){return t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))})},Va.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||
e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Va.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&c&&this.cm.display.gutterSpecs.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();
var n=Ua(t,e.anchorNode,e.anchorOffset),r=Ua(t,e.focusNode,e.focusOffset);n&&r&&ro(t,function(){ri(t.doc,Ao(n,r),q),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}}},Va.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,o=r.display,i=r.doc.sel.primary(),a=i.from(),s=i.to();if(0==a.ch&&a.line>r.firstLine()&&(a=ot(a.line-1,Ge(r.doc,a.line-1).length)),s.ch==Ge(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=
ot(s.line+1,0)),a.line<o.viewFrom||s.line>o.viewTo-1)return!1;a.line==o.viewFrom||0==(e=hr(r,a.line))?(t=et(o.view[0].line),n=o.view[0].node):(t=et(o.view[e].line),n=o.view[e-1].node.nextSibling);var l,u,c=hr(r,s.line);if(c==o.view.length-1?(l=o.viewTo-1,u=o.lineDiv.lastChild):(l=et(o.view[c+1].line)-1,u=o.view[c+1].node.previousSibling),!n)return!1;for(var f=r.doc.splitLines(function(e,t,n,r,o){var i="",a=!1,s=e.doc.lineSeparator(),l=!1;function u(){a&&(i+=s,l&&(i+=s),a=l=!1)}function c(e){e&&(u(),
i+=e)}function f(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void c(n);var i,d=t.getAttribute("cm-marker");if(d){var p=e.findMarks(ot(r,0),ot(o+1,0),(m=+d,function(e){return e.id==m}));return void(p.length&&(i=p[0].find(0))&&c(Je(e.doc,i.from,i.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;h&&u();for(var g=0;g<t.childNodes.length;g++)f(t.childNodes[g]);
/^(pre|p)$/i.test(t.nodeName)&&(l=!0),h&&(a=!0)}else 3==t.nodeType&&c(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var m}for(;f(t),t!=n;)t=t.nextSibling,l=!1;return i}(r,n,u,t,l)),d=Je(r.doc,ot(t,0),ot(l,Ge(r.doc,l).text.length));f.length>1&&d.length>1;)if(X(f)==X(d))f.pop(),d.pop(),l--;else{if(f[0]!=d[0])break;f.shift(),d.shift(),t++}for(var p=0,h=0,g=f[0],m=d[0],v=Math.min(g.length,m.length);p<v&&g.charCodeAt(p)==m.charCodeAt(p);)++p;for(var y=X(f),b=X(d),w=Math.min(y.length-(1==f.length?
p:0),b.length-(1==d.length?p:0));h<w&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)++h;if(1==f.length&&1==d.length&&t==a.line)for(;p&&p>a.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)p--,h++;f[f.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),f[0]=f[0].slice(p).replace(/\u200b+$/,"");var x=ot(t,p),k=ot(l,d.length?X(d).length-h:0);return f.length>1||f[0]||it(x,k)?(yi(r.doc,f,x,k,"+input"),!0):void 0},Va.prototype.ensurePolled=function(){this.forceCompositionEnd()},
Va.prototype.reset=function(){this.forceCompositionEnd()},Va.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Va.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Va.prototype.updateFromDOM=function(){var e=
this;!this.cm.isReadOnly()&&this.pollContent()||ro(this.cm,function(){return gr(e.cm)})},Va.prototype.setUneditable=function(e){e.contentEditable="false"},Va.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||oo(this.cm,Ra)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Va.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Va.prototype.onContextMenu=function(){},Va.prototype.resetPosition=
function(){},Va.prototype.needsContentAttribute=!0;var Za=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new V,this.hasSelection=!1,this.composing=null,this.resetting=!1};Za.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var o=this.textarea;function i(e){if(!be(r,e)){if(r.somethingSelected())Na({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Ia(r);Na({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,
null,q):(n.prevInput="",o.value=t.text.join("\n"),j(o))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(o.style.width="0px"),ge(o,"input",function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),ge(o,"paste",function(e){be(r,e)||La(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())}),ge(o,"cut",i),ge(o,"copy",i),ge(e.scroller,"paste",function(t){if(!En(e,t)&&!be(r,t)){if(!o.dispatchEvent)return r.state.pasteIncoming=+new Date,
void n.focus();var i=new Event("paste");i.clipboardData=t.clipboardData,o.dispatchEvent(i)}}),ge(e.lineSpace,"selectstart",function(t){En(e,t)||Se(t)}),ge(o,"compositionstart",function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}}),ge(o,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},Za.prototype.createField=function(e){this.wrapper=
za(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;Fa(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},Za.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Za.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=xr(e);if(e.options.moveInputWithCursor){var o=Jn(e,n.sel.primary().head,"div"),i=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=
Math.max(0,Math.min(t.wrapper.clientHeight-10,o.top+a.top-i.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,o.left+a.left-i.left))}return r},Za.prototype.showSelection=function(e){var t=this.cm.display;_(t.cursorDiv,e.cursors),_(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Za.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput=
"";var n=t.getSelection();this.textarea.value=n,t.state.focused&&j(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null));this.resetting=!1}},Za.prototype.getField=function(){return this.textarea},Za.prototype.supportsTouch=function(){return!1},Za.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||N(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(e){}},Za.prototype.blur=function(){this.textarea.blur()},
Za.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Za.prototype.receivedFocus=function(){this.slowPoll()},Za.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Za.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))})},Za.prototype.poll=function(){var e=
this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||je(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var o=n.value;if(o==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===o||b&&/[\uf700-\uf7ff]/.test(o))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var i=o.charCodeAt(0);if(8203!=i||r||(r="\u200b"),8666==i)return this.reset(),this.cm.execCommand("undo")}for(var l=
0,u=Math.min(r.length,o.length);l<u&&r.charCodeAt(l)==o.charCodeAt(l);)++l;return ro(t,function(){Ra(t,o.slice(l),r.length-l,null,e.composing?"*compose":null),o.length>1E3||o.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=o,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Za.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Za.prototype.onKeyPress=function(){a&&
s>=9&&(this.hasSelection=null),this.fastPoll()},Za.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,o=t.textarea;t.contextMenuPending&&t.contextMenuPending();var i=pr(n,e),u=r.scroller.scrollTop;if(i&&!d){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(i)&&oo(n,ri)(n.doc,Ao(i),q);var c,f=o.style.cssText,p=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",o.style.cssText="position: absolute; width: 30px; height: 30px;\n      top: "+
(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n      z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(c=o.ownerDocument.defaultView.scrollY),r.input.focus(),l&&o.ownerDocument.defaultView.scrollTo(null,c),r.input.reset(),n.somethingSelected()||(o.value=t.prevInput=" "),t.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),
a&&s>=9&&m(),C){Ee(e);var g=function(){ve(window,"mouseup",g),setTimeout(v,20)};ge(window,"mouseup",g)}else setTimeout(v,50)}function m(){if(null!=o.selectionStart){var e=n.somethingSelected(),i="\u200b"+(e?o.value:"");o.value="\u21da",o.value=i,t.prevInput=e?"":"\u200b",o.selectionStart=1,o.selectionEnd=i.length,r.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=p,o.style.cssText=f,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=
u),null!=o.selectionStart)){(!a||a&&s<9)&&m();var e=0,i=function(){r.selForContextMenu==n.doc.sel&&0==o.selectionStart&&o.selectionEnd>0&&"\u200b"==t.prevInput?oo(n,fi)(n):e++<10?r.detectingSelectAll=setTimeout(i,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(i,200)}}},Za.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},Za.prototype.setUneditable=function(){},Za.prototype.needsContentAttribute=
!1,function(e){var t=e.optionHandlers;function n(n,r,o,i){e.defaults[n]=r,o&&(t[n]=i?function(e,t,n){n!=Ca&&o(e,t,n)}:o)}e.defineOption=n,e.Init=Ca,n("value","",function(e,t){return e.setValue(t)},!0),n("mode",null,function(e,t){e.doc.modeOption=t,Lo(e)},!0),n("indentUnit",2,Lo,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(e){jo(e),$n(e),gr(e)},!0),n("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var o=0;;){var i=
e.text.indexOf(t,o);if(-1==i)break;o=i+t.length,n.push(ot(r,i))}r++});for(var o=n.length-1;o>=0;o--)yi(e.doc,t,n[o],ot(n[o].line,n[o].ch+t.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Ca&&e.refresh()}),n("specialCharPlaceholder",nn,function(e){return e.refresh()},!0),n("electricChars",!0),n("inputStyle",
y?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor");},!0),n("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),n("autocorrect",!1,function(e,t){return e.getInputField().autocorrect=t},!0),n("autocapitalize",!1,function(e,t){return e.getInputField().autocapitalize=t},!0),n("rtlMoveVisually",!x),n("wholeLineUpdateBefore",!0),n("theme","default",function(e){Sa(e),wo(e)},!0),n("keyMap","default",function(e,t,n){var r=
Xi(t),o=n!=Ca&&Xi(n);o&&o.detach&&o.detach(e,r),r.attach&&r.attach(e,o||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ta,!0),n("gutters",[],function(e,t){e.display.gutterSpecs=yo(t,e.options.lineNumbers),wo(e)},!0),n("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?cr(e.display)+"px":"0",e.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(e){return Ur(e)},!0),n("scrollbarStyle","native",function(e){Kr(e),Ur(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),
e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),n("lineNumbers",!1,function(e,t){e.display.gutterSpecs=yo(e.options.gutters,t),wo(e)},!0),n("firstLineNumber",1,wo,!0),n("lineNumberFormatter",function(e){return e},wo,!0),n("showCursorWhenSelecting",!1,wr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(e,t){"nocursor"==t&&(_r(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),n("screenReaderLabel",
null,function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)}),n("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),n("dragDrop",!0,Ma),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,wr,!0),n("singleCursorHeightPerLine",!0,wr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,jo,!0),n("addModeClass",!1,jo,!0),n("pollInterval",100),n("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),n("historyEventDelay",
1250),n("viewportMargin",10,function(e){return e.refresh()},!0),n("maxHighlightLength",1E4,jo,!0),n("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),n("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),n("autofocus",null),n("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),n("phrases",null)}(_a),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){F(this).focus(),this.display.input.focus()},
setOption:function(e,n){var r=this.options,o=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&oo(this,t[e])(this,n,o),ye(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Xi(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:io(function(t,n){var r=t.token?t:e.getMode(this.options,t);
if(r.startState)throw new Error("Overlays may not be stateful.");(function(e,t,n){for(var r=0,o=n(t);r<e.length&&n(e[r])<=o;)r++;e.splice(r,0,t)})(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},function(e){return e.priority}),this.state.modeGen++,gr(this)}),removeOverlay:io(function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void gr(this)}}),indentLine:io(function(e,
t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),nt(this.doc,e)&&Pa(this,e,t,n)}),indentSelection:io(function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var o=t[r];if(o.empty())o.head.line>n&&(Pa(this,o.head.line,e,!0),n=o.head.line,r==this.doc.sel.primIndex&&Lr(this));else{var i=o.from(),a=o.to(),s=Math.max(n,i.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)Pa(this,l,e);var u=this.doc.sel.ranges;
0==i.ch&&t.length==u.length&&u[r].from().ch>0&&ei(this.doc,r,new To(i,u[r].to()),q)}}}),getTokenAt:function(e,t){return kt(this,e,t)},getLineTokens:function(e,t){return kt(this,ot(e),t,!0)},getTokenTypeAt:function(e){e=ft(this.doc,e);var t,n=mt(this,Ge(this.doc,e.line)),r=0,o=(n.length-1)/2,i=e.ch;if(0==i)t=n[2];else for(;;){var a=r+o>>1;if((a?n[2*a-1]:0)>=i)o=a;else{if(!(n[2*a+1]<i)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=
this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var o=n[t],i=this.getModeAt(e);if("string"==typeof i[t])o[i[t]]&&r.push(o[i[t]]);else if(i[t])for(var a=0;a<i[t].length;a++){var s=o[i[t][a]];s&&r.push(s)}else i.helperType&&o[i.helperType]?r.push(o[i.helperType]):o[i.name]&&r.push(o[i.name]);for(var l=0;l<o._global.length;l++){var u=o._global[l];
u.pred(i,this)&&-1==W(r,u.val)&&r.push(u.val)}return r},getStateAfter:function(e,t){var n=this.doc;return vt(this,(e=ct(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Jn(this,null==e?n.head:"object"==typeof e?ft(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return Gn(this,ft(this.doc,e),t||"page")},coordsChar:function(e,t){return er(this,(e=Yn(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Yn(this,
{top:e,left:0},t||"page").top,tt(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,o=!1;if("number"==typeof e){var i=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>i&&(e=i,o=!0),r=Ge(this.doc,e)}else r=e;return Kn(this,r,{top:0,left:0},t||"page",n||o).top+(o?this.doc.height-Zt(r):0)},defaultTextHeight:function(){return sr(this.display)},defaultCharWidth:function(){return lr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},
addWidget:function(e,t,n,r,o){var i,a,s=this.display,l=(e=Jn(this,ft(this.doc,e))).bottom,u=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),s.sizer.appendChild(t),"over"==r)l=e.top;else if("above"==r||"near"==r){var c=Math.max(s.wrapper.clientHeight,this.doc.height),f=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>c)&&e.top>t.offsetHeight?l=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=
c&&(l=e.bottom),u+t.offsetWidth>f&&(u=f-t.offsetWidth)}t.style.top=l+"px",t.style.left=t.style.right="","right"==o?(u=s.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==o?u=0:"middle"==o&&(u=(s.sizer.clientWidth-t.offsetWidth)/2),t.style.left=u+"px"),n&&(null!=(a=Nr(i=this,{left:u,top:l,right:u+t.offsetWidth,bottom:l+t.offsetHeight})).scrollTop&&zr(i,a.scrollTop),null!=a.scrollLeft&&Br(i,a.scrollLeft))},triggerOnKeyDown:io(da),triggerOnKeyPress:io(ha),triggerOnKeyUp:pa,triggerOnMouseDown:io(ya),
execCommand:function(e){if(ra.hasOwnProperty(e))return ra[e].call(null,this)},triggerElectric:io(function(e){ja(this,e)}),findPosH:function(e,t,n,r){var o=1;t<0&&(o=-1,t=-t);for(var i=ft(this.doc,e),a=0;a<t&&!(i=Ha(this.doc,i,o,n,r)).hitSide;++a);return i},moveH:io(function(e,t){var n=this;this.extendSelectionsBy(function(r){return n.display.shift||n.doc.extend||r.empty()?Ha(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()},K)}),deleteH:io(function(e,t){var n=this.doc.sel,r=this.doc;
n.somethingSelected()?r.replaceSelection("",null,"+delete"):Qi(this,function(n){var o=Ha(r,n.head,e,t,!1);return e<0?{from:o,to:n.head}:{from:n.head,to:o}})}),findPosV:function(e,t,n,r){var o=1,i=r;t<0&&(o=-1,t=-t);for(var a=ft(this.doc,e),s=0;s<t;++s){var l=Jn(this,a,"div");if(null==i?i=l.left:l.left=i,(a=Ba(this,l,o,n)).hitSide)break}return a},moveV:io(function(e,t){var n=this,r=this.doc,o=[],i=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy(function(a){if(i)return e<
0?a.from():a.to();var s=Jn(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),o.push(s.left);var l=Ba(n,s,e,t);return"page"==t&&a==r.sel.primary()&&Rr(n,Gn(n,l,"div").top-s.top),l},K),o.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=o[a]}),findWordAt:function(e){var t=Ge(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var o=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var i=t.charAt(n),a=oe(i,o)?function(e){return oe(e,o)}:/\s/.test(i)?function(e){return/\s/.test(e)}:
function(e){return!/\s/.test(e)&&!oe(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new To(ot(e.line,n),ot(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?R(this.display.cursorDiv,"CodeMirror-overwrite"):M(this.display.cursorDiv,"CodeMirror-overwrite"),ye(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==N(I(this))},isReadOnly:function(){return!(!this.options.readOnly&&
!this.doc.cantEdit)},scrollTo:io(function(e,t){jr(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-An(this)-this.display.barHeight,width:e.scrollWidth-An(this)-this.display.barWidth,clientHeight:Dn(this),clientWidth:Pn(this)}},scrollIntoView:io(function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:ot(e,0),to:null}:null==e.from&&(e={from:e,
to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?function(e,t){Ir(e),e.curOp.scrollToPos=t}(this,e):Fr(this,e.from,e.to,e.margin)}),setSize:io(function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&Wn(this);var o=this.display.viewFrom;this.doc.iter(o,this.display.viewTo,function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){mr(n,
o,"widget");break}++o}),this.curOp.forceUpdate=!0,ye(this,"refresh",this)}),operation:function(e){return ro(this,e)},startOperation:function(){return Gr(this)},endOperation:function(){return Jr(this)},refresh:io(function(){var e=this.display.cachedTextHeight;gr(this),this.curOp.forceUpdate=!0,$n(this),jr(this,this.doc.scrollLeft,this.doc.scrollTop),ho(this.display),(null==e||Math.abs(e-sr(this.display))>.5||this.options.lineWrapping)&&dr(this),ye(this,"refresh",this)}),swapDoc:io(function(e){var t=
this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Ho(this,e),$n(this),this.display.input.reset(),jr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,dn(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},
getGutterElement:function(){return this.display.gutters}},ke(e),e.registerHelper=function(t,r,o){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=o},e.registerGlobalHelper=function(t,r,o,i){e.registerHelper(t,r,i),n[t]._global.push({pred:o,val:i})}}(_a);var Ka="iter insert remove copy getEditor constructor".split(" ");for(var Ya in Ri.prototype)Ri.prototype.hasOwnProperty(Ya)&&W(Ka,Ya)<0&&(_a.prototype[Ya]=function(e){return function(){return e.apply(this.doc,arguments)}}(Ri.prototype[Ya]));
return ke(Ri),_a.inputStyles={textarea:Za,contenteditable:Va},_a.defineMode=function(e){_a.defaults.mode||"null"==e||(_a.defaults.mode=e),Be.apply(this,arguments)},_a.defineMIME=function(e,t){He[e]=t},_a.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),_a.defineMIME("text/plain","null"),_a.defineExtension=function(e,t){_a.prototype[e]=t},_a.defineDocExtension=function(e,t){Ri.prototype[e]=t},_a.fromTextArea=function(e,t){if((t=t?H(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&
(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=N(e.ownerDocument);t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var o;if(e.form&&(ge(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var i=e.form;o=i.submit;try{var a=i.submit=function(){r(),i.submit=o,i.submit(),i.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=
isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ve(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=o))}},e.style.display="none";var s=_a(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return s},function(e){e.off=ve,e.on=ge,e.wheelEventPixels=Oo,e.Doc=Ri,e.splitLines=Le,e.countColumn=B,e.findColumn=Y,e.isWordChar=re,e.Pass=U,e.signal=ye,e.Line=Gt,e.changeEnd=Po,e.scrollbarModel=Zr,e.Pos=ot,e.cmpPos=
it,e.modes=ze,e.mimeModes=He,e.resolveMode=Ve,e.getMode=We,e.modeExtensions=$e,e.extendMode=Ue,e.copyState=qe,e.startState=Ke,e.innerMode=Ze,e.commands=ra,e.keyMap=Ui,e.keyName=Ji,e.isModifierKey=Yi,e.lookupKey=Ki,e.normalizeKeyMap=Zi,e.StringStream=Ye,e.SharedTextMarker=Ai,e.TextMarker=Ti,e.LineWidget=Oi,e.e_preventDefault=Se,e.e_stopPropagation=Ce,e.e_stop=Ee,e.addClass=R,e.contains=D,e.rmClass=M,e.keyNames=Bi}(_a),_a.version="5.65.13",_a}()},6629:(e,t,n)=>{!function(e){function t(e){for(var t=
{},n=0;n<e.length;++n)t[e[n].toLowerCase()]=!0;return t}e.defineMode("css",function(t,n){var r=n.inline;n.propertyKeywords||(n=e.resolveMode("text/css"));var o,i,a=t.indentUnit,s=n.tokenHooks,l=n.documentTypes||{},u=n.mediaTypes||{},c=n.mediaFeatures||{},f=n.mediaValueKeywords||{},d=n.propertyKeywords||{},p=n.nonStandardPropertyKeywords||{},h=n.fontProperties||{},g=n.counterDescriptors||{},m=n.colorKeywords||{},v=n.valueKeywords||{},y=n.allowNested,b=n.lineComment,w=!0===n.supportsAtComponent,x=!1!==
t.highlightNonStandardPropertyKeywords;function k(e,t){return o=t,e}function S(e,t){var n=e.next();if(s[n]){var r=s[n](e,t);if(!1!==r)return r}return"@"==n?(e.eatWhile(/[\w\\\-]/),k("def",e.current())):"="==n||("~"==n||"|"==n)&&e.eat("=")?k(null,"compare"):'"'==n||"'"==n?(t.tokenize=C(n),t.tokenize(e,t)):"#"==n?(e.eatWhile(/[\w\\\-]/),k("atom","hash")):"!"==n?(e.match(/^\s*\w*/),k("keyword","important")):/\d/.test(n)||"."==n&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),k("number","unit")):"-"!==n?/[,+>*\/]/.test(n)?
k(null,"select-op"):"."==n&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?k("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(n)?k(null,n):e.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(t.tokenize=O),k("variable callee","variable")):/[\w\\\-]/.test(n)?(e.eatWhile(/[\w\\\-]/),k("property","word")):k(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),k("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?k("variable-2","variable-definition"):k("variable-2",
"variable")):e.match(/^\w+-/)?k("meta","meta"):void 0}function C(e){return function(t,n){for(var r,o=!1;null!=(r=t.next());){if(r==e&&!o){")"==e&&t.backUp(1);break}o=!o&&"\\"==r}return(r==e||!o&&")"!=e)&&(n.tokenize=null),k("string","string")}}function O(e,t){return e.next(),e.match(/^\s*["')]/,!1)?t.tokenize=null:t.tokenize=C(")"),k(null,"(")}function E(e,t,n){this.type=e,this.indent=t,this.prev=n}function M(e,t,n,r){return e.context=new E(n,t.indentation()+(!1===r?0:a),e.context),n}function T(e){return e.context.prev&&
(e.context=e.context.prev),e.context.type}function _(e,t,n){return D[n.context.type](e,t,n)}function A(e,t,n,r){for(var o=r||1;o>0;o--)n.context=n.context.prev;return _(e,t,n)}function P(e){var t=e.current().toLowerCase();i=v.hasOwnProperty(t)?"atom":m.hasOwnProperty(t)?"keyword":"variable"}var D={top:function(e,t,n){if("{"==e)return M(n,t,"block");if("}"==e&&n.context.prev)return T(n);if(w&&/@component/i.test(e))return M(n,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return M(n,t,"documentTypes");
if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return M(n,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return n.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return M(n,t,"at");if("hash"==e)i="builtin";else if("word"==e)i="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return M(n,t,"interpolation");if(":"==e)return"pseudo";if(y&&"("==e)return M(n,t,"parens")}return n.context.type},
block:function(e,t,n){if("word"==e){var r=t.current().toLowerCase();return d.hasOwnProperty(r)?(i="property","maybeprop"):p.hasOwnProperty(r)?(i=x?"string-2":"property","maybeprop"):y?(i=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(i+=" error","maybeprop")}return"meta"==e?"block":y||"hash"!=e&&"qualifier"!=e?D.top(e,t,n):(i="error","block")},maybeprop:function(e,t,n){return":"==e?M(n,t,"prop"):_(e,t,n)},prop:function(e,t,n){if(";"==e)return T(n);if("{"==e&&y)return M(n,t,"propBlock");if("}"==
e||"{"==e)return A(e,t,n);if("("==e)return M(n,t,"parens");if("hash"!=e||/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(t.current()))if("word"==e)P(t);else{if("interpolation"==e)return M(n,t,"interpolation")}else i+=" error";return"prop"},propBlock:function(e,t,n){return"}"==e?T(n):"word"==e?(i="property","maybeprop"):n.context.type},parens:function(e,t,n){return"{"==e||"}"==e?A(e,t,n):")"==e?T(n):"("==e?M(n,t,"parens"):"interpolation"==e?M(n,t,"interpolation"):("word"==e&&P(t),"parens")},
pseudo:function(e,t,n){return"meta"==e?"pseudo":"word"==e?(i="variable-3",n.context.type):_(e,t,n)},documentTypes:function(e,t,n){return"word"==e&&l.hasOwnProperty(t.current())?(i="tag",n.context.type):D.atBlock(e,t,n)},atBlock:function(e,t,n){if("("==e)return M(n,t,"atBlock_parens");if("}"==e||";"==e)return A(e,t,n);if("{"==e)return T(n)&&M(n,t,y?"block":"top");if("interpolation"==e)return M(n,t,"interpolation");if("word"==e){var r=t.current().toLowerCase();i="only"==r||"not"==r||"and"==r||"or"==
r?"keyword":u.hasOwnProperty(r)?"attribute":c.hasOwnProperty(r)?"property":f.hasOwnProperty(r)?"keyword":d.hasOwnProperty(r)?"property":p.hasOwnProperty(r)?x?"string-2":"property":v.hasOwnProperty(r)?"atom":m.hasOwnProperty(r)?"keyword":"error"}return n.context.type},atComponentBlock:function(e,t,n){return"}"==e?A(e,t,n):"{"==e?T(n)&&M(n,t,y?"block":"top",!1):("word"==e&&(i="error"),n.context.type)},atBlock_parens:function(e,t,n){return")"==e?T(n):"{"==e||"}"==e?A(e,t,n,2):D.atBlock(e,t,n)},restricted_atBlock_before:function(e,
t,n){return"{"==e?M(n,t,"restricted_atBlock"):"word"==e&&"@counter-style"==n.stateArg?(i="variable","restricted_atBlock_before"):_(e,t,n)},restricted_atBlock:function(e,t,n){return"}"==e?(n.stateArg=null,T(n)):"word"==e?(i="@font-face"==n.stateArg&&!h.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==n.stateArg&&!g.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(e,t,n){return"word"==e?(i="variable","keyframes"):"{"==e?M(n,
t,"top"):_(e,t,n)},at:function(e,t,n){return";"==e?T(n):"{"==e||"}"==e?A(e,t,n):("word"==e?i="tag":"hash"==e&&(i="builtin"),"at")},interpolation:function(e,t,n){return"}"==e?T(n):"{"==e||";"==e?A(e,t,n):("word"==e?i="variable":"variable"!=e&&"("!=e&&")"!=e&&(i="error"),"interpolation")}};return{startState:function(e){return{tokenize:null,state:r?"block":"top",stateArg:null,context:new E(r?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var n=(t.tokenize||S)(e,
t);return n&&"object"==typeof n&&(o=n[1],n=n[0]),i=n,"comment"!=o&&(t.state=D[t.state](o,e,t)),i},indent:function(e,t){var n=e.context,r=t&&t.charAt(0),o=n.indent;return"prop"!=n.type||"}"!=r&&")"!=r||(n=n.prev),n.prev&&("}"!=r||"block"!=n.type&&"top"!=n.type&&"interpolation"!=n.type&&"restricted_atBlock"!=n.type?(")"!=r||"parens"!=n.type&&"atBlock_parens"!=n.type)&&("{"!=r||"at"!=n.type&&"atBlock"!=n.type)||(o=Math.max(0,n.indent-a)):o=(n=n.prev).indent),o},electricChars:"}",blockCommentStart:"/*",
blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:b,fold:"brace"}});var n=["domain","regexp","url","url-prefix"],r=t(n),o=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],i=t(o),a=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio",
"max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],s=t(a),l=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive",
"dark","light","standard","high"],u=t(l),c=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image",
"background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice",
"border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color",
"clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation",
"empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric",
"font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block",
"inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count",
"marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans",
"outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes",
"region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left",
"scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate",
"stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow",
"text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width",
"will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin",
"stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],f=t(c),d=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width",
"border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start",
"padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],p=t(d),h=t(["font-display","font-family","src","unicode-range","font-variant","font-feature-settings",
"font-stretch","font-weight","font-style"]),g=t(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),m=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange",
"darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen",
"lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise",
"palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],v=t(m),y=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias",
"all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight",
"buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop",
"cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede",
"ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat",
"flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block",
"inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal",
"lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote",
"no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only",
"read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize",
"searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali",
"source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea",
"textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal",
"upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],b=t(y),w=n.concat(o).concat(a).concat(l).concat(c).concat(d).concat(m).concat(y);function x(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=null;break}r="*"==
n}return["comment","comment"]}e.registerHelper("hintWords","css",w),e.defineMIME("text/css",{documentTypes:r,mediaTypes:i,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:f,nonStandardPropertyKeywords:p,fontProperties:h,counterDescriptors:g,colorKeywords:v,valueKeywords:b,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=x,x(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:i,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:f,nonStandardPropertyKeywords:p,colorKeywords:v,
valueKeywords:b,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=x,x(e,t)):["operator","operator"]},":":function(e){return!!e.match(/^\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",
{mediaTypes:i,mediaFeatures:s,mediaValueKeywords:u,propertyKeywords:f,nonStandardPropertyKeywords:p,colorKeywords:v,valueKeywords:b,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=x,x(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),
e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:r,mediaTypes:i,mediaFeatures:s,propertyKeywords:f,nonStandardPropertyKeywords:p,fontProperties:h,counterDescriptors:g,colorKeywords:v,valueKeywords:b,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=x,x(e,t))}},name:"css",helperType:"gss"})}(n(4631))},6531:(e,t,n)=>{!function(e){var t=
{script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]},n={};function r(e,t){var r=e.match(function(e){return n[e]||(n[e]=new RegExp("\\s+"+e+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}(t));return r?/^\s*(.*?)\s*$/.exec(r[2])[1]:""}function o(e,
t){return new RegExp((t?"^":"")+"</\\s*"+e+"\\s*>","i")}function i(e,t){for(var n in e)for(var r=t[n]||(t[n]=[]),o=e[n],i=o.length-1;i>=0;i--)r.unshift(o[i])}e.defineMode("htmlmixed",function(n,a){var s=e.getMode(n,{name:"xml",htmlMode:!0,multilineTagIndentFactor:a.multilineTagIndentFactor,multilineTagIndentPastTag:a.multilineTagIndentPastTag,allowMissingTagName:a.allowMissingTagName}),l={},u=a&&a.tags,c=a&&a.scriptTypes;if(i(t,l),u&&i(u,l),c)for(var f=c.length-1;f>=0;f--)l.script.unshift(["type",
c[f].matches,c[f].mode]);function d(t,i){var a,u=s.token(t,i.htmlState),c=/\btag\b/.test(u);if(c&&!/[<>\s\/]/.test(t.current())&&(a=i.htmlState.tagName&&i.htmlState.tagName.toLowerCase())&&l.hasOwnProperty(a))i.inTag=a+" ";else if(i.inTag&&c&&/>$/.test(t.current())){var f=/^([\S]+) (.*)/.exec(i.inTag);i.inTag=null;var p=">"==t.current()&&function(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(!o[0]||o[1].test(r(t,o[0])))return o[2]}}(l[f[1]],f[2]),h=e.getMode(n,p),g=o(f[1],!0),m=o(f[1],!1);i.token=
function(e,t){return e.match(g,!1)?(t.token=d,t.localState=t.localMode=null,null):function(e,t,n){var r=e.current(),o=r.search(t);return o>-1?e.backUp(r.length-o):r.match(/<\/?$/)&&(e.backUp(r.length),e.match(t,!1)||e.match(r)),n}(e,m,t.localMode.token(e,t.localState))},i.localMode=h,i.localState=e.startState(h,s.indent(i.htmlState,"",""))}else i.inTag&&(i.inTag+=t.current(),t.eol()&&(i.inTag+=" "));return u}return{startState:function(){return{token:d,inTag:null,localMode:null,localState:null,htmlState:e.startState(s)}},
copyState:function(t){var n;return t.localState&&(n=e.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:n,htmlState:e.copyState(s,t.htmlState)}},token:function(e,t){return t.token(e,t)},indent:function(t,n,r){return!t.localMode||/^\s*<\//.test(n)?s.indent(t.htmlState,n,r):t.localMode.indent?t.localMode.indent(t.localState,n,r):e.Pass},innerMode:function(e){return{state:e.localState||e.htmlState,mode:e.localMode||s}}}},"xml","javascript","css"),e.defineMIME("text/html",
"htmlmixed")}(n(4631),n(9589),n(6876),n(6629))},6876:(e,t,n)=>{!function(e){e.defineMode("javascript",function(t,n){var r,o,i=t.indentUnit,a=n.statementIndent,s=n.jsonld,l=n.json||s,u=!1!==n.trackScope,c=n.typescript,f=n.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),o=e("keyword d"),i=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:o,
break:o,continue:o,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:i,typeof:i,instanceof:i,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),p=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;
function g(e,t,n){return r=e,o=n,t}function m(e,t){var n,r=e.next();if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){var r,o=!1;if(s&&"@"==e.peek()&&e.match(h))return t.tokenize=m,g("jsonld-keyword","meta");for(;null!=(r=e.next())&&(r!=n||o);)o=!o&&"\\"==r;return o||(t.tokenize=m),g("string","string")}),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return g("number","number");if("."==r&&e.match(".."))return g("spread","meta");if(/[\[\]{}\(\),;:\.]/.test(r))return g(r);
if("="==r&&e.eat(">"))return g("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return g("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),g("number","number");if("/"==r)return e.eat("*")?(t.tokenize=v,v(e,t)):e.eat("/")?(e.skipToEnd(),g("comment","comment")):et(e,t,1)?(function(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),
g("regexp","string-2")):(e.eat("="),g("operator","operator",e.current()));if("`"==r)return t.tokenize=y,y(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),g("meta","meta");if("#"==r&&e.eatWhile(f))return g("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),g("comment","comment");if(p.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-|&?]/.test(r)&&(e.eat(r),">"==r&&
e.eat(r))),"?"==r&&e.eat(".")?g("."):g("operator","operator",e.current());if(f.test(r)){e.eatWhile(f);var o=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(o)){var i=d[o];return g(i.type,i.style,o)}if("async"==o&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return g("async","keyword",o)}return g("variable","variable",o)}}function v(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=m;break}r="*"==n}return g("comment","comment")}function y(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&
("`"==n||"$"==n&&e.eat("{"))){t.tokenize=m;break}r=!r&&"\\"==n}return g("quasi","string-2",e.current())}var b="([{}])";function w(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(c){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var o=0,i=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l=b.indexOf(s);if(l>=0&&l<3){if(!o){++a;break}if(0==--o){"("==s&&(i=!0);break}}else if(l>=3&&l<6)++o;else if(f.test(s))i=!0;
else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(i&&!o){++a;break}}i&&!o&&(t.fatArrowAt=a)}}var x={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function k(e,t,n,r,o,i){this.indented=e,this.column=t,this.type=n,this.prev=o,this.info=i,null!=r&&(this.align=r)}function S(e,t){if(!u)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=
r.vars;n;n=n.next)if(n.name==t)return!0}function C(e,t,n,r,o){var i=e.cc;for(O.state=e,O.stream=o,O.marked=null,O.cc=i,O.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((i.length?i.pop():l?W:B)(n,r)){for(;i.length&&i[i.length-1].lex;)i.pop()();return O.marked?O.marked:"variable"==n&&S(e,r)?"variable-2":t}}var O={state:null,column:null,marked:null,cc:null};function E(){for(var e=arguments.length-1;e>=0;e--)O.cc.push(arguments[e])}function M(){return E.apply(null,arguments),!0}
function T(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function _(e){var t=O.state;if(O.marked="def",u){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=A(e,t.context);if(null!=r)return void(t.context=r)}else if(!T(e,t.localVars))return void(t.localVars=new N(e,t.localVars));n.globalVars&&!T(e,t.globalVars)&&(t.globalVars=new N(e,t.globalVars))}}function A(e,t){if(t){if(t.block){var n=A(e,t.prev);return n?n==t.prev?t:new D(n,t.vars,!0):null}return T(e,t.vars)?
t:new D(t.prev,new N(e,t.vars),!1)}return null}function P(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function D(e,t,n){this.prev=e,this.vars=t,this.block=n}function N(e,t){this.name=e,this.next=t}var R=new N("this",new N("arguments",null));function L(){O.state.context=new D(O.state.context,O.state.localVars,!1),O.state.localVars=R}function j(){O.state.context=new D(O.state.context,O.state.localVars,!0),O.state.localVars=null}function I(){O.state.localVars=O.state.context.vars,
O.state.context=O.state.context.prev}function F(e,t){var n=function(){var n=O.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var o=n.lexical;o&&")"==o.type&&o.align;o=o.prev)r=o.indented;n.lexical=new k(r,O.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function z(){var e=O.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function H(e){return function t(n){return n==e?M():";"==e||"}"==n||")"==n||"]"==n?E():M(t)}}
function B(e,t){return"var"==e?M(F("vardef",t),Oe,H(";"),z):"keyword a"==e?M(F("form"),U,B,z):"keyword b"==e?M(F("form"),B,z):"keyword d"==e?O.stream.match(/^\s*$/,!1)?M():M(F("stat"),Z,H(";"),z):"debugger"==e?M(H(";")):"{"==e?M(F("}"),j,ue,z,I):";"==e?M():"if"==e?("else"==O.state.lexical.info&&O.state.cc[O.state.cc.length-1]==z&&O.state.cc.pop()(),M(F("form"),U,B,z,Pe)):"function"==e?M(Le):"for"==e?M(F("form"),j,De,B,I,z):"class"==e||c&&"interface"==t?(O.marked="keyword",M(F("form","class"==e?e:
t),He,z)):"variable"==e?c&&"declare"==t?(O.marked="keyword",M(B)):c&&("module"==t||"enum"==t||"type"==t)&&O.stream.match(/^\s*\w/,!1)?(O.marked="keyword","enum"==t?M(Xe):"type"==t?M(Ie,H("operator"),he,H(";")):M(F("form"),Ee,H("{"),F("}"),ue,z,z)):c&&"namespace"==t?(O.marked="keyword",M(F("form"),W,B,z)):c&&"abstract"==t?(O.marked="keyword",M(B)):M(F("stat"),ne):"switch"==e?M(F("form"),U,H("{"),F("}","switch"),j,ue,z,z,I):"case"==e?M(W,H(":")):"default"==e?M(H(":")):"catch"==e?M(F("form"),L,V,B,z,
I):"export"==e?M(F("stat"),$e,z):"import"==e?M(F("stat"),qe,z):"async"==e?M(B):"@"==t?M(W,B):E(F("stat"),W,H(";"),z)}function V(e){if("("==e)return M(Fe,H(")"))}function W(e,t){return q(e,t,!1)}function $(e,t){return q(e,t,!0)}function U(e){return"("!=e?E():M(F(")"),Z,H(")"),z)}function q(e,t,n){if(O.state.fatArrowAt==O.stream.start){var r=n?Q:X;if("("==e)return M(L,F(")"),se(Fe,")"),z,H("=>"),r,I);if("variable"==e)return E(L,Ee,H("=>"),r,I)}var o=n?Y:K;return x.hasOwnProperty(e)?M(o):"function"==
e?M(Le,o):"class"==e||c&&"interface"==t?(O.marked="keyword",M(F("form"),ze,z)):"keyword c"==e||"async"==e?M(n?$:W):"("==e?M(F(")"),Z,H(")"),z,o):"operator"==e||"spread"==e?M(n?$:W):"["==e?M(F("]"),Je,z,o):"{"==e?le(oe,"}",null,o):"quasi"==e?E(G,o):"new"==e?M(function(e){return function(t){return"."==t?M(e?te:ee):"variable"==t&&c?M(ke,e?Y:K):E(e?$:W)}}(n)):M()}function Z(e){return e.match(/[;\}\)\],]/)?E():E(W)}function K(e,t){return","==e?M(Z):Y(e,t,!1)}function Y(e,t,n){var r=0==n?K:Y,o=0==n?W:$;
return"=>"==e?M(L,n?Q:X,I):"operator"==e?/\+\+|--/.test(t)||c&&"!"==t?M(r):c&&"<"==t&&O.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?M(F(">"),se(he,">"),z,r):"?"==t?M(W,H(":"),o):M(o):"quasi"==e?E(G,r):";"!=e?"("==e?le($,")","call",r):"."==e?M(re,r):"["==e?M(F("]"),Z,H("]"),z,r):c&&"as"==t?(O.marked="keyword",M(he,r)):"regexp"==e?(O.state.lastType=O.marked="operator",O.stream.backUp(O.stream.pos-O.stream.start-1),M(o)):void 0:void 0}function G(e,t){return"quasi"!=e?E():"${"!=t.slice(t.length-2)?M(G):
M(Z,J)}function J(e){if("}"==e)return O.marked="string-2",O.state.tokenize=y,M(G)}function X(e){return w(O.stream,O.state),E("{"==e?B:W)}function Q(e){return w(O.stream,O.state),E("{"==e?B:$)}function ee(e,t){if("target"==t)return O.marked="keyword",M(K)}function te(e,t){if("target"==t)return O.marked="keyword",M(Y)}function ne(e){return":"==e?M(z,B):E(K,H(";"),z)}function re(e){if("variable"==e)return O.marked="property",M()}function oe(e,t){return"async"==e?(O.marked="property",M(oe)):"variable"==
e||"keyword"==O.style?(O.marked="property","get"==t||"set"==t?M(ie):(c&&O.state.fatArrowAt==O.stream.start&&(n=O.stream.match(/^\s*:\s*/,!1))&&(O.state.fatArrowAt=O.stream.pos+n[0].length),M(ae))):"number"==e||"string"==e?(O.marked=s?"property":O.style+" property",M(ae)):"jsonld-keyword"==e?M(ae):c&&P(t)?(O.marked="keyword",M(oe)):"["==e?M(W,ce,H("]"),ae):"spread"==e?M($,ae):"*"==t?(O.marked="keyword",M(oe)):":"==e?E(ae):void 0;var n}function ie(e){return"variable"!=e?E(ae):(O.marked="property",M(Le))}
function ae(e){return":"==e?M($):"("==e?E(Le):void 0}function se(e,t,n){function r(o,i){if(n?n.indexOf(o)>-1:","==o){var a=O.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),M(function(n,r){return n==t||r==t?E():E(e)},r)}return o==t||i==t?M():n&&n.indexOf(";")>-1?E(e):M(H(t))}return function(n,o){return n==t||o==t?M():E(e,r)}}function le(e,t,n){for(var r=3;r<arguments.length;r++)O.cc.push(arguments[r]);return M(F(t,n),se(e,t),z)}function ue(e){return"}"==e?M():E(B,ue)}function ce(e,t){if(c){if(":"==
e)return M(he);if("?"==t)return M(ce)}}function fe(e,t){if(c&&(":"==e||"in"==t))return M(he)}function de(e){if(c&&":"==e)return O.stream.match(/^\s*\w+\s+is\b/,!1)?M(W,pe,he):M(he)}function pe(e,t){if("is"==t)return O.marked="keyword",M()}function he(e,t){return"keyof"==t||"typeof"==t||"infer"==t||"readonly"==t?(O.marked="keyword",M("typeof"==t?$:he)):"variable"==e||"void"==t?(O.marked="type",M(xe)):"|"==t||"&"==t?M(he):"string"==e||"number"==e||"atom"==e?M(xe):"["==e?M(F("]"),se(he,"]",","),z,xe):
"{"==e?M(F("}"),me,z,xe):"("==e?M(se(we,")"),ge,xe):"<"==e?M(se(he,">"),he):"quasi"==e?E(ye,xe):void 0}function ge(e){if("=>"==e)return M(he)}function me(e){return e.match(/[\}\)\]]/)?M():","==e||";"==e?M(me):E(ve,me)}function ve(e,t){return"variable"==e||"keyword"==O.style?(O.marked="property",M(ve)):"?"==t||"number"==e||"string"==e?M(ve):":"==e?M(he):"["==e?M(H("variable"),fe,H("]"),ve):"("==e?E(je,ve):e.match(/[;\}\)\],]/)?void 0:M()}function ye(e,t){return"quasi"!=e?E():"${"!=t.slice(t.length-
2)?M(ye):M(he,be)}function be(e){if("}"==e)return O.marked="string-2",O.state.tokenize=y,M(ye)}function we(e,t){return"variable"==e&&O.stream.match(/^\s*[?:]/,!1)||"?"==t?M(we):":"==e?M(he):"spread"==e?M(we):E(he)}function xe(e,t){return"<"==t?M(F(">"),se(he,">"),z,xe):"|"==t||"."==e||"&"==t?M(he):"["==e?M(he,H("]"),xe):"extends"==t||"implements"==t?(O.marked="keyword",M(he)):"?"==t?M(he,H(":"),he):void 0}function ke(e,t){if("<"==t)return M(F(">"),se(he,">"),z,xe)}function Se(){return E(he,Ce)}function Ce(e,
t){if("="==t)return M(he)}function Oe(e,t){return"enum"==t?(O.marked="keyword",M(Xe)):E(Ee,ce,_e,Ae)}function Ee(e,t){return c&&P(t)?(O.marked="keyword",M(Ee)):"variable"==e?(_(t),M()):"spread"==e?M(Ee):"["==e?le(Te,"]"):"{"==e?le(Me,"}"):void 0}function Me(e,t){return"variable"!=e||O.stream.match(/^\s*:/,!1)?("variable"==e&&(O.marked="property"),"spread"==e?M(Ee):"}"==e?E():"["==e?M(W,H("]"),H(":"),Me):M(H(":"),Ee,_e)):(_(t),M(_e))}function Te(){return E(Ee,_e)}function _e(e,t){if("="==t)return M($)}
function Ae(e){if(","==e)return M(Oe)}function Pe(e,t){if("keyword b"==e&&"else"==t)return M(F("form","else"),B,z)}function De(e,t){return"await"==t?M(De):"("==e?M(F(")"),Ne,z):void 0}function Ne(e){return"var"==e?M(Oe,Re):"variable"==e?M(Re):E(Re)}function Re(e,t){return")"==e?M():";"==e?M(Re):"in"==t||"of"==t?(O.marked="keyword",M(W,Re)):E(W,Re)}function Le(e,t){return"*"==t?(O.marked="keyword",M(Le)):"variable"==e?(_(t),M(Le)):"("==e?M(L,F(")"),se(Fe,")"),z,de,B,I):c&&"<"==t?M(F(">"),se(Se,">"),
z,Le):void 0}function je(e,t){return"*"==t?(O.marked="keyword",M(je)):"variable"==e?(_(t),M(je)):"("==e?M(L,F(")"),se(Fe,")"),z,de,I):c&&"<"==t?M(F(">"),se(Se,">"),z,je):void 0}function Ie(e,t){return"keyword"==e||"variable"==e?(O.marked="type",M(Ie)):"<"==t?M(F(">"),se(Se,">"),z):void 0}function Fe(e,t){return"@"==t&&M(W,Fe),"spread"==e?M(Fe):c&&P(t)?(O.marked="keyword",M(Fe)):c&&"this"==e?M(ce,_e):E(Ee,ce,_e)}function ze(e,t){return"variable"==e?He(e,t):Be(e,t)}function He(e,t){if("variable"==e)return _(t),
M(Be)}function Be(e,t){return"<"==t?M(F(">"),se(Se,">"),z,Be):"extends"==t||"implements"==t||c&&","==e?("implements"==t&&(O.marked="keyword"),M(c?he:W,Be)):"{"==e?M(F("}"),Ve,z):void 0}function Ve(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||c&&P(t))&&O.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1)?(O.marked="keyword",M(Ve)):"variable"==e||"keyword"==O.style?(O.marked="property",M(We,Ve)):"number"==e||"string"==e?M(We,Ve):"["==e?M(W,ce,H("]"),We,Ve):"*"==t?(O.marked="keyword",
M(Ve)):c&&"("==e?E(je,Ve):";"==e||","==e?M(Ve):"}"==e?M():"@"==t?M(W,Ve):void 0}function We(e,t){if("!"==t)return M(We);if("?"==t)return M(We);if(":"==e)return M(he,_e);if("="==t)return M($);var n=O.state.lexical.prev;return E(n&&"interface"==n.info?je:Le)}function $e(e,t){return"*"==t?(O.marked="keyword",M(Ge,H(";"))):"default"==t?(O.marked="keyword",M(W,H(";"))):"{"==e?M(se(Ue,"}"),Ge,H(";")):E(B)}function Ue(e,t){return"as"==t?(O.marked="keyword",M(H("variable"))):"variable"==e?E($,Ue):void 0}
function qe(e){return"string"==e?M():"("==e?E(W):"."==e?E(K):E(Ze,Ke,Ge)}function Ze(e,t){return"{"==e?le(Ze,"}"):("variable"==e&&_(t),"*"==t&&(O.marked="keyword"),M(Ye))}function Ke(e){if(","==e)return M(Ze,Ke)}function Ye(e,t){if("as"==t)return O.marked="keyword",M(Ze)}function Ge(e,t){if("from"==t)return O.marked="keyword",M(W)}function Je(e){return"]"==e?M():E(se($,"]"))}function Xe(){return E(F("form"),Ee,H("{"),F("}"),se(Qe,"}"),z,z)}function Qe(){return E(Ee,_e)}function et(e,t,n){return t.tokenize==
m&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return L.lex=j.lex=!0,I.lex=!0,z.lex=!0,{startState:function(e){var t={tokenize:m,lastType:"sof",cc:[],lexical:new k((e||0)-i,0,"block",!1),localVars:n.localVars,context:n.localVars&&new D(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&
(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),w(e,t)),t.tokenize!=v&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==r?n:(t.lastType="operator"!=r||"++"!=o&&"--"!=o?r:"incdec",C(t,n,r,o,e))},indent:function(t,r){if(t.tokenize==v||t.tokenize==y)return e.Pass;if(t.tokenize!=m)return 0;var o,s=r&&r.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(r))for(var u=t.cc.length-1;u>=0;--u){var c=t.cc[u];if(c==z)l=l.prev;else if(c!=Pe&&c!=I)break}for(;("stat"==
l.type||"form"==l.type)&&("}"==s||(o=t.cc[t.cc.length-1])&&(o==K||o==Y)&&!/^[,\.=+\-*:?[\(]/.test(r));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var f=l.type,d=s==f;return"vardef"==f?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==f&&"{"==s?l.indented:"form"==f?l.indented+i:"stat"==f?l.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||p.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,r)?a||i:0):"switch"!=l.info||d||0==n.doubleIndentSwitch?
l.align?l.column+(d?0:1):l.indented+(d?0:i):l.indented+(/^(?:case|default)\b/.test(r)?i:2*i)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:et,skipExpression:function(t){C(t,"atom","atom","true",new e.StringStream("",2,null))}}}),e.registerHelper("wordChars","javascript",
/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",
jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n(4631))},9589:(e,t,n)=>{!function(e){var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,
dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,
caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",function(r,o){var i,a,s=r.indentUnit,l={},u=o.htmlMode?t:n;for(var c in u)l[c]=u[c];for(var c in o)l[c]=o[c];function f(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();return"<"==r?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(p("atom","]]\x3e")):null:e.match("--")?n(p("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?
(e.eatWhile(/[\w\._\-]/),n(h(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=p("meta","?>"),"meta"):(i=e.eat("/")?"closeTag":"openTag",t.tokenize=d,"tag bracket"):"&"==r?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function d(e,t){var n,r,o=e.next();if(">"==o||"/"==o&&e.eat(">"))return t.tokenize=f,i=">"==o?"endTag":"selfcloseTag","tag bracket";if("="==o)return i="equals",
null;if("<"==o){t.tokenize=f,t.state=b,t.tagName=t.tagStart=null;var a=t.tokenize(e,t);return a?a+" tag error":"tag error"}return/['"]/.test(o)?(t.tokenize=(n=o,r=function(e,t){for(;!e.eol();)if(e.next()==n){t.tokenize=d;break}return"string"},r.isInAttribute=!0,r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>"']*[^\s\u00a0=<>"'\/]/),"word")}function p(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=f;break}n.next()}return e}}function h(e){return function(t,
n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=h(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=f;break}return n.tokenize=h(e-1),n.tokenize(t,n)}}return"meta"}}function g(e){return e&&e.toLowerCase()}function m(e,t,n){this.prev=e.context,this.tagName=t||"",this.indent=e.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function v(e){e.context&&(e.context=e.context.prev)}function y(e,t){for(var n;;){if(!e.context)return;
if(n=e.context.tagName,!l.contextGrabbers.hasOwnProperty(g(n))||!l.contextGrabbers[g(n)].hasOwnProperty(g(t)))return;v(e)}}function b(e,t,n){return"openTag"==e?(n.tagStart=t.column(),w):"closeTag"==e?x:b}function w(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",C):l.allowMissingTagName&&"endTag"==e?(a="tag bracket",C(e,0,n)):(a="error",w)}function x(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&l.implicitlyClosed.hasOwnProperty(g(n.context.tagName))&&v(n),n.context&&
n.context.tagName==r||!1===l.matchClosing?(a="tag",k):(a="tag error",S)}return l.allowMissingTagName&&"endTag"==e?(a="tag bracket",k(e,0,n)):(a="error",S)}function k(e,t,n){return"endTag"!=e?(a="error",k):(v(n),b)}function S(e,t,n){return a="error",k(e,0,n)}function C(e,t,n){if("word"==e)return a="attribute",O;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,o=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(g(r))?y(n,r):(y(n,r),n.context=new m(n,r,
o==n.indented)),b}return a="error",C}function O(e,t,n){return"equals"==e?E:(l.allowMissing||(a="error"),C(e,0,n))}function E(e,t,n){return"string"==e?M:"word"==e&&l.allowUnquoted?(a="string",C):(a="error",C(e,0,n))}function M(e,t,n){return"string"==e?M:C(e,0,n)}return f.isInText=!0,{startState:function(e){var t={tokenize:f,state:b,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;
i=null;var n=t.tokenize(e,t);return(n||i)&&"comment"!=n&&(a=null,t.state=t.state(i||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(t,n,r){var o=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(o&&o.noIndent)return e.Pass;if(t.tokenize!=d&&t.tokenize!=f)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&
/<!\[CDATA\[/.test(n))return 0;var i=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(i&&i[1])for(;o;){if(o.tagName==i[2]){o=o.prev;break}if(!l.implicitlyClosed.hasOwnProperty(g(o.tagName)))break;o=o.prev}else if(i)for(;o;){var a=l.contextGrabbers[g(o.tagName)];if(!a||!a.hasOwnProperty(g(i[2])))break;o=o.prev}for(;o&&o.prev&&!o.startOfLine;)o=o.prev;return o?o.indent+s:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?
"html":"xml",skipAttribute:function(e){e.state==E&&(e.state=C)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)t.push(n.tagName);return t.reverse()}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n(4631))},251:(e,t,n)=>{var r=n(2215),o=n(2584),i=n(609),a=n(8420),s=n(2847),
l=n(8923),u=Date.prototype.getTime;function c(e){return null==e}function f(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}e.exports=function e(t,n,d){var p=d||{};return!!(p.strict?i(t,n):t===n)||(!t||!n||"object"!=typeof t&&"object"!=typeof n?p.strict?i(t,n):t==n:function(t,n,i){var d,p;if(typeof t!=typeof n)return!1;if(c(t)||c(n))return!1;if(t.prototype!==n.prototype)return!1;if(o(t)!==o(n))return!1;
var h=a(t),g=a(n);if(h!==g)return!1;if(h||g)return t.source===n.source&&s(t)===s(n);if(l(t)&&l(n))return u.call(t)===u.call(n);var m=f(t),v=f(n);if(m!==v)return!1;if(m||v){if(t.length!==n.length)return!1;for(d=0;d<t.length;d++)if(t[d]!==n[d])return!1;return!0}if(typeof t!=typeof n)return!1;try{var y=r(t),b=r(n)}catch(e){return!1}if(y.length!==b.length)return!1;for(y.sort(),b.sort(),d=y.length-1;d>=0;d--)if(y[d]!=b[d])return!1;for(d=y.length-1;d>=0;d--)if(!e(t[p=y[d]],n[p],i))return!1;return!0}(t,
n,p))}},283:(e,t,n)=>{e.exports=n(5897)},1343:(e,t,n)=>{t.__esModule=!0,t.copyValue=t.copyCollection=t.copy=void 0;var r=n(9541),o=Object.prototype.toString;function i(e,t){if("function"!=typeof t)throw new TypeError("customizer is must be a Function");if("function"==typeof e){var n=String(e);return/^\s*function\s*\S*\([^\)]*\)\s*{\s*\[native code\]\s*}/.test(n)?e:(new Function("return "+String(n)))()}var i=o.call(e);if("[object Array]"===i)return[];if("[object Object]"===i&&e.constructor===Object)return{};
if("[object Date]"===i)return new Date(e.getTime());if("[object RegExp]"===i){var a=String(e),s=a.lastIndexOf("/");return new RegExp(a.slice(1,s),a.slice(s+1))}if((0,r.isBuffer)(e)){var l=new Buffer(e.length);return e.copy(l),l}var u=t(e);return void 0!==u?u:null}function a(e){var t=typeof e;return null!==e&&"object"!==t&&"function"!==t?e:null}t.copy=function(e,t){var n=a(e);return null!==n?n:i(e,t)},t.copyCollection=i,t.copyValue=a},5897:(e,t,n)=>{t.__esModule=!0;var r=n(1343),o=n(9541);function i(e){}
function a(e,t,n,i,s){if(null===e)return null;var l=(0,r.copyValue)(e);if(null!==l)return l;var u,c=(0,o.getKeys)(e).concat((0,o.getSymbols)(e)),f=void 0,d=void 0,p=void 0,h=void 0,g=void 0,m=void 0,v=void 0;for(f=0,u=c.length;f<u;++f)p=e[d=c[f]],g=void 0,m=void 0,v=void 0,-1===(h=(0,o.indexOf)(i,p))?(m=null!==(g=(0,r.copy)(p,t))?g:p,null!==p&&/^(?:function|object)$/.test(typeof p)&&(i.push(p),s.push(m))):v=s[h],n[d]=v||a(p,t,m,i,s);return n}t.default=function(e){var t=arguments.length<=1||void 0===
arguments[1]?i:arguments[1];if(null===e)return null;var n=(0,r.copyValue)(e);if(null!==n)return n;var o=(0,r.copyCollection)(e,t),s=null!==o?o:e;return a(e,t,s,[e],[s])},e.exports=t.default},9541:(e,t)=>{t.__esModule=!0;var n=Object.prototype.toString,r="undefined"!=typeof Buffer?function(e){return Buffer.isBuffer(e)}:function(){return!1},o="function"==typeof Object.keys?function(e){return Object.keys(e)}:function(e){var t=typeof e;if(null===e||"function"!==t&&"object"!==t)throw new TypeError("obj must be an Object");
var n=[],r=void 0;for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.push(r);return n},i="function"==typeof Symbol?function(e){return Object.getOwnPropertySymbols(e)}:function(){return[]};t.getKeys=o,t.getSymbols=i,t.indexOf=function(e,t){if("[object Array]"!==n.call(e))throw new TypeError("array must be an Array");var r,o=void 0,i=void 0;for(o=0,r=e.length;o<r;++o)if((i=e[o])===t||i!=i&&t!=t)return o;return-1},t.isBuffer=r},4289:(e,t,n)=>{var r=n(2215),o="function"==typeof Symbol&&"symbol"==
typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,l=n(1044)(),u=s&&l,c=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(o=r)||"[object Function]"!==i.call(o)||!r())return;var o;u?s(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n},f=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var s=0;s<i.length;s+=1)c(e,i[s],t[i[s]],n[i[s]])};f.supportsDescriptors=
!!u,e.exports=f},7187:e=>{var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise(function(n,
r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}g(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&g(e,"error",t,{once:!0})}(e,o)})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e);
}function l(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var o,i,a,u;if(s(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=l(e))>0&&a.length>o&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+
a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,u=c,console&&console.warn&&console.warn(u)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=c.bind(r);
return o.listener=n,r.wrapFn=o,o}function d(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):h(o,o.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function g(e,t,n,r){if("function"==
typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function o(i){r.once&&e.removeEventListener(t,o),n(i)})}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+
e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(e){for(var t=
[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s;}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var u=l.length,c=h(l,u);for(n=0;n<u;++n)r(c[n],this,t)}return!0},i.prototype.addListener=function(e,t){return u(this,e,t,!1)},i.prototype.on=
i.prototype.addListener,i.prototype.prependListener=function(e,t){return u(this,e,t,!0)},i.prototype.once=function(e,t){return s(t),this.on(e,f(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,f(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,o,i,a;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&
this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===
n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=
t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return d(this,e,!0)},i.prototype.rawListeners=function(e){return d(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},7648:e=>{var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!=typeof r||
"[object Function]"!==n.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var o,i=t.call(arguments,1),a=Math.max(0,r.length-i.length),s=[],l=0;l<a;l++)s.push("$"+l);if(o=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var n=r.apply(this,i.concat(t.call(arguments)));return Object(n)===n?n:this}return r.apply(e,i.concat(t.call(arguments)))}),r.prototype){var u=function(){};u.prototype=
r.prototype,o.prototype=new u,u.prototype=null}return o}},2514:(e,t,n)=>{var r=n(7648);e.exports=Function.prototype.bind||r},5972:e=>{var t=function(){return"string"==typeof function(){}.name},n=Object.getOwnPropertyDescriptor;if(n)try{n([],"length")}catch(e){n=null}t.functionsHaveConfigurableNames=function(){if(!t()||!n)return!1;var e=n(function(){},"name");return!!e&&!!e.configurable};var r=Function.prototype.bind;t.boundFunctionsHaveNames=function(){return t()&&"function"==typeof r&&""!==function(){}.bind().name},
e.exports=t},210:(e,t,n)=>{var r,o=SyntaxError,i=Function,a=TypeError,s=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var u=function(){throw new a;},c=l?function(){try{return u}catch(e){try{return l(arguments,"callee").get}catch(e){return u}}}():u,f=n(1405)(),d=n(8185)(),p=Object.getPrototypeOf||(d?function(e){return e.__proto__}:null),h={},g="undefined"!=typeof Uint8Array&&p?p(Uint8Array):r,
m={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f&&p?p([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,
"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==
typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f&&p?p(p([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f&&p?p((new Map)[Symbol.iterator]()):
r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f&&p?p((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?
r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f&&p?p(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":c,"%TypedArray%":g,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==
typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(p)try{null.error}catch(e){var v=p(p(e));m["%Error.prototype%"]=v}var y=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===
t){var o=e("%AsyncGenerator%");o&&p&&(n=p(o.prototype))}return m[t]=n,n},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction",
"prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype",
"prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],
"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],
"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},
w=n(2514),x=n(7642),k=w.call(Function.call,Array.prototype.concat),S=w.call(Function.apply,Array.prototype.splice),C=w.call(Function.call,String.prototype.replace),O=w.call(Function.call,String.prototype.slice),E=w.call(Function.call,RegExp.prototype.exec),M=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,T=/\\(\\)?/g,_=function(e,t){var n,r=e;if(x(b,r)&&(r="%"+(n=b[r])[0]+"%"),x(m,r)){var i=m[r];if(i===h&&(i=y(r)),void 0===i&&!t)throw new a("intrinsic "+
e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+e+" does not exist!");};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===E(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=
O(e,0,1),n=O(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return C(e,M,function(e,t,n,o){r[r.length]=n?C(o,T,"$1"):t||e}),r}(e),r=n.length>0?n[0]:"",i=_("%"+r+"%",t),s=i.name,u=i.value,c=!1,f=i.alias;f&&(r=f[0],S(n,k([0,1],f)));for(var d=1,p=!0;d<n.length;d+=1){var h=n[d],g=O(h,0,1),v=O(h,-1);if(('"'===g||"'"===g||"`"===g||'"'===v||"'"===v||"`"===v)&&g!==v)throw new o("property names with quotes must have matching quotes");
if("constructor"!==h&&p||(c=!0),x(m,s="%"+(r+="."+h)+"%"))u=m[s];else if(null!=u){if(!(h in u)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&d+1>=n.length){var y=l(u,h);u=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:u[h]}else p=x(u,h),u=u[h];p&&!c&&(m[s]=u)}}return u}},1044:(e,t,n)=>{var r=n(210)("%Object.defineProperty%",!0),o=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;
try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},8185:e=>{var t={foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof n)}},1405:(e,t,n)=>{var r="undefined"!=typeof Symbol&&Symbol,o=n(5419);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},5419:e=>{e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;
if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==
t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},6410:(e,t,n)=>{var r=n(5419);e.exports=function(){return r()&&!!Symbol.toStringTag}},7642:(e,t,n)=>{var r=n(2514);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},8679:(e,t,n)=>{var r=n(9864),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 l(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 u=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=l(t),g=l(n),m=0;m<a.length;++m){var v=a[m];if(!(i[v]||r&&r[v]||g&&g[v]||s&&s[v])){var y=d(n,v);try{u(t,v,y)}catch(e){}}}}return t}},1143:e=>{e.exports=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
else{var u=[n,r,o,i,a,s],c=0;(l=new Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw l.framesToPop=1,l;}}},2584:(e,t,n)=>{var r=n(6410)(),o=n(1924)("Object.prototype.toString"),i=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},a=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},s=function(){return i(arguments)}();
i.isLegacyArguments=a,e.exports=s?i:a},8923:(e,t,n)=>{var r=Date.prototype.getDay,o=Object.prototype.toString,i=n(6410)();e.exports=function(e){return"object"==typeof e&&null!==e&&(i?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},6141:e=>{function t(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}e.exports=t,e.exports.default=t},8420:(e,t,n)=>{var r,o,i,a,s=n(1924),l=n(6410)();if(l){r=s("Object.prototype.hasOwnProperty"),
o=s("RegExp.prototype.exec"),i={};var u=function(){throw i;};a={toString:u,valueOf:u},"symbol"==typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=u)}var c=s("Object.prototype.toString"),f=Object.getOwnPropertyDescriptor;e.exports=l?function(e){if(!e||"object"!=typeof e)return!1;var t=f(e,"lastIndex");if(!t||!r(t,"value"))return!1;try{o(e,a)}catch(e){return e===i}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===c(e)}},8552:(e,t,n)=>{var r=n(852)(n(5639),"DataView");
e.exports=r},1989:(e,t,n)=>{var r=n(1789),o=n(401),i=n(7667),a=n(1327),s=n(1866);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},8407:(e,t,n)=>{var r=n(7040),o=n(4125),i=n(2117),a=n(7529),s=n(3399);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,
l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},7071:(e,t,n)=>{var r=n(852)(n(5639),"Map");e.exports=r},3369:(e,t,n)=>{var r=n(4705),o=n(1285),i=n(6E3),a=n(9916),s=n(5265);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},3818:(e,t,n)=>{var r=n(852)(n(5639),"Promise");e.exports=r},8525:(e,t,n)=>{var r=n(852)(n(5639),"Set");
e.exports=r},8668:(e,t,n)=>{var r=n(3369),o=n(619),i=n(2385);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},6384:(e,t,n)=>{var r=n(8407),o=n(7465),i=n(3779),a=n(7599),s=n(4758),l=n(4309);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},2705:(e,t,n)=>{var r=n(5639).Symbol;e.exports=
r},1149:(e,t,n)=>{var r=n(5639).Uint8Array;e.exports=r},577:(e,t,n)=>{var r=n(852)(n(5639),"WeakMap");e.exports=r},6874:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},7412:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},4963:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=
e[n];t(a,n,e)&&(i[o++]=a)}return i}},4636:(e,t,n)=>{var r=n(2545),o=n(5694),i=n(1469),a=n(4144),s=n(5776),l=n(6719),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),c=!n&&o(e),f=!n&&!c&&a(e),d=!n&&!c&&!f&&l(e),p=n||c||f||d,h=p?r(e.length,String):[],g=h.length;for(var m in e)!t&&!u.call(e,m)||p&&("length"==m||f&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||h.push(m);return h}},9932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:
e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},2488:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},2908:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},4286:e=>{e.exports=function(e){return e.split("")}},6556:(e,t,n)=>{var r=n(9465),o=n(7813);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},4865:(e,t,n)=>{var r=n(9465),o=n(7813),i=Object.prototype.hasOwnProperty;
e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},8470:(e,t,n)=>{var r=n(7813);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},4037:(e,t,n)=>{var r=n(8363),o=n(3674);e.exports=function(e,t){return e&&r(t,o(t),e)}},3886:(e,t,n)=>{var r=n(8363),o=n(1704);e.exports=function(e,t){return e&&r(t,o(t),e)}},9465:(e,t,n)=>{var r=n(8777);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):
e[t]=n}},5990:(e,t,n)=>{var r=n(6384),o=n(7412),i=n(4865),a=n(4037),s=n(3886),l=n(4626),u=n(278),c=n(5341),f=n(1911),d=n(8234),p=n(6904),h=n(4160),g=n(3824),m=n(9148),v=n(8517),y=n(1469),b=n(4144),w=n(6688),x=n(3218),k=n(2928),S=n(3674),C=n(1704),O="[object Arguments]",E="[object Function]",M="[object Object]",T={};T[O]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=
T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T[M]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T[E]=T["[object WeakMap]"]=!1,e.exports=function e(t,n,_,A,P,D){var N,R=1&n,L=2&n,j=4&n;if(_&&(N=P?_(t,A,P,D):_(t)),void 0!==N)return N;if(!x(t))return t;var I=y(t);if(I){if(N=g(t),!R)return u(t,
N)}else{var F=h(t),z=F==E||"[object GeneratorFunction]"==F;if(b(t))return l(t,R);if(F==M||F==O||z&&!P){if(N=L||z?{}:v(t),!R)return L?f(t,s(N,t)):c(t,a(N,t))}else{if(!T[F])return P?t:{};N=m(t,F,R)}}D||(D=new r);var H=D.get(t);if(H)return H;D.set(t,N),k(t)?t.forEach(function(r){N.add(e(r,n,_,r,t,D))}):w(t)&&t.forEach(function(r,o){N.set(o,e(r,n,_,o,t,D))});var B=I?void 0:(j?L?p:d:L?C:S)(t);return o(B||t,function(r,o){B&&(r=t[o=r]),i(N,o,e(r,n,_,o,t,D))}),N}},3118:(e,t,n)=>{var r=n(3218),o=Object.create,
i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},9881:(e,t,n)=>{var r=n(7816),o=n(9291)(r);e.exports=o},8483:(e,t,n)=>{var r=n(5063)();e.exports=r},7816:(e,t,n)=>{var r=n(8483),o=n(3674);e.exports=function(e,t){return e&&r(e,t,o)}},7786:(e,t,n)=>{var r=n(1811),o=n(327);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},8866:(e,t,n)=>{var r=
n(2488),o=n(1469);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},4239:(e,t,n)=>{var r=n(2705),o=n(9607),i=n(2333),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},8565:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},13:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},9454:(e,t,n)=>{var r=n(4239),o=n(7005);e.exports=function(e){return o(e)&&
"[object Arguments]"==r(e)}},939:(e,t,n)=>{var r=n(2492),o=n(7005);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},2492:(e,t,n)=>{var r=n(6384),o=n(7114),i=n(8351),a=n(6096),s=n(4160),l=n(1469),u=n(4144),c=n(6719),f="[object Arguments]",d="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,m,v){var y=l(e),b=l(t),w=y?d:s(e),x=b?d:s(t),k=(w=w==f?p:w)==p,S=(x=x==f?p:x)==p,C=w==x;if(C&&u(e)){if(!u(t))return!1;
y=!0,k=!1}if(C&&!k)return v||(v=new r),y||c(e)?o(e,t,n,g,m,v):i(e,t,w,n,g,m,v);if(!(1&n)){var O=k&&h.call(e,"__wrapped__"),E=S&&h.call(t,"__wrapped__");if(O||E){var M=O?e.value():e,T=E?t.value():t;return v||(v=new r),m(M,T,n,g,v)}}return!!C&&(v||(v=new r),a(e,t,n,g,m,v))}},5588:(e,t,n)=>{var r=n(4160),o=n(7005);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},2958:(e,t,n)=>{var r=n(6384),o=n(939);e.exports=function(e,t,n,i){var a=n.length,s=a,l=!i;if(null==e)return!s;for(e=Object(e);a--;){var u=
n[a];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<s;){var c=(u=n[a])[0],f=e[c],d=u[1];if(l&&u[2]){if(void 0===f&&!(c in e))return!1}else{var p=new r;if(i)var h=i(f,d,c,e,t,p);if(!(void 0===h?o(d,f,3,i,p):h))return!1}}return!0}},8458:(e,t,n)=>{var r=n(3560),o=n(5346),i=n(3218),a=n(346),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,f=u.hasOwnProperty,d=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,
"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?d:s).test(a(e))}},9221:(e,t,n)=>{var r=n(4160),o=n(7005);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},8749:(e,t,n)=>{var r=n(4239),o=n(1780),i=n(7005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=
a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},7206:(e,t,n)=>{var r=n(1573),o=n(6432),i=n(6557),a=n(1469),s=n(9601);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):
r(e):s(e)}},280:(e,t,n)=>{var r=n(5726),o=n(6916),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},313:(e,t,n)=>{var r=n(3218),o=n(5726),i=n(3498),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},9199:(e,t,n)=>{var r=n(9881),o=n(8612);e.exports=function(e,t){var n=-1,i=o(e)?
Array(e.length):[];return r(e,function(e,r,o){i[++n]=t(e,r,o)}),i}},1573:(e,t,n)=>{var r=n(2958),o=n(1499),i=n(2634);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},6432:(e,t,n)=>{var r=n(939),o=n(7361),i=n(9095),a=n(5403),s=n(9162),l=n(2634),u=n(327);e.exports=function(e,t){return a(e)&&s(t)?l(u(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},4066:(e,t,n)=>{var r=n(6384),o=n(6556),i=n(8483),a=n(9783),
s=n(3218),l=n(1704),u=n(6390);e.exports=function e(t,n,c,f,d){t!==n&&i(n,function(i,l){if(d||(d=new r),s(i))a(t,n,l,c,e,f,d);else{var p=f?f(u(t,l),i,l+"",t,n,d):void 0;void 0===p&&(p=i),o(t,l,p)}},l)}},9783:(e,t,n)=>{var r=n(6556),o=n(4626),i=n(7133),a=n(278),s=n(8517),l=n(5694),u=n(1469),c=n(9246),f=n(4144),d=n(3560),p=n(3218),h=n(8630),g=n(6719),m=n(6390),v=n(3678);e.exports=function(e,t,n,y,b,w,x){var k=m(e,n),S=m(t,n),C=x.get(S);if(C)r(e,n,C);else{var O=w?w(k,S,n+"",e,t,x):void 0,E=void 0===O;
if(E){var M=u(S),T=!M&&f(S),_=!M&&!T&&g(S);O=S,M||T||_?u(k)?O=k:c(k)?O=a(k):T?(E=!1,O=o(S,!0)):_?(E=!1,O=i(S,!0)):O=[]:h(S)||l(S)?(O=k,l(k)?O=v(k):p(k)&&!d(k)||(O=s(S))):E=!1}E&&(x.set(S,O),b(O,S,y,w,x),x.delete(S)),r(e,n,O)}}},371:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},9152:(e,t,n)=>{var r=n(7786);e.exports=function(e){return function(t){return r(t,e)}}},5976:(e,t,n)=>{var r=n(6557),o=n(5357),i=n(61);e.exports=function(e,t){return i(o(e,t,r),e+"")}},6560:(e,t,
n)=>{var r=n(5703),o=n(8777),i=n(6557),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},4259:e=>{e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},2545:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},531:(e,t,n)=>{var r=n(2705),o=n(9932),i=n(1469),a=n(3448),s=r?r.prototype:void 0,l=s?s.toString:
void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},7561:(e,t,n)=>{var r=n(7990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},7518:e=>{e.exports=function(e){return function(t){return e(t)}}},4757:e=>{e.exports=function(e,t){return e.has(t)}},4290:(e,t,n)=>{var r=n(6557);e.exports=function(e){return"function"==typeof e?e:r}},1811:(e,t,n)=>{var r=n(1469),o=n(5403),
i=n(5514),a=n(9833);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},180:(e,t,n)=>{var r=n(4259);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},4318:(e,t,n)=>{var r=n(1149);e.exports=function(e){var t=new e.constructor(e.byteLength);return(new r(t)).set(new r(e)),t}},4626:(e,t,n)=>{e=n.nmd(e);var r=n(5639),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();
var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},7157:(e,t,n)=>{var r=n(4318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},3147:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},419:(e,t,n)=>{var r=n(2705),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},7133:(e,t,n)=>{var r=n(4318);e.exports=function(e,
t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},278:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},8363:(e,t,n)=>{var r=n(4865),o=n(9465);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=i?i(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?o(n,u,c):r(n,u,c)}return n}},5341:(e,t,n)=>{var r=n(8363),o=n(9551);e.exports=function(e,t){return r(e,o(e),t)}},1911:(e,t,n)=>{var r=n(8363),
o=n(1442);e.exports=function(e,t){return r(e,o(e),t)}},4429:(e,t,n)=>{var r=n(5639)["__core-js_shared__"];e.exports=r},1463:(e,t,n)=>{var r=n(5976),o=n(6612);e.exports=function(e){return r(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t})}},9291:(e,t,n)=>{var r=n(8612);e.exports=function(e,t){return function(n,o){if(null==n)return n;
if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},5063:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}},8805:(e,t,n)=>{var r=n(180),o=n(2689),i=n(3140),a=n(9833);e.exports=function(e){return function(t){t=a(t);var n=o(t)?i(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},8777:(e,t,n)=>{var r=n(852),o=function(){try{var e=
r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},7114:(e,t,n)=>{var r=n(8668),o=n(2908),i=n(4757);e.exports=function(e,t,n,a,s,l){var u=1&n,c=e.length,f=t.length;if(c!=f&&!(u&&f>c))return!1;var d=l.get(e),p=l.get(t);if(d&&p)return d==t&&p==e;var h=-1,g=!0,m=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++h<c;){var v=e[h],y=t[h];if(a)var b=u?a(y,v,h,t,e,l):a(v,y,h,e,t,l);if(void 0!==b){if(b)continue;g=!1;break}if(m){if(!o(t,function(e,t){if(!i(m,t)&&(v===e||s(v,e,n,a,l)))return m.push(t)})){g=
!1;break}}else if(v!==y&&!s(v,y,n,a,l)){g=!1;break}}return l.delete(e),l.delete(t),g}},8351:(e,t,n)=>{var r=n(2705),o=n(1149),i=n(7813),a=n(7114),s=n(8776),l=n(1814),u=r?r.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,f,d){switch(n){case "[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case "[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case "[object Boolean]":case "[object Date]":case "[object Number]":return i(+e,
+t);case "[object Error]":return e.name==t.name&&e.message==t.message;case "[object RegExp]":case "[object String]":return e==t+"";case "[object Map]":var p=s;case "[object Set]":var h=1&r;if(p||(p=l),e.size!=t.size&&!h)return!1;var g=d.get(e);if(g)return g==t;r|=2,d.set(e,t);var m=a(p(e),p(t),r,u,f,d);return d.delete(e),m;case "[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},6096:(e,t,n)=>{var r=n(8234),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,s){var l=1&n,u=r(e),
c=u.length;if(c!=r(t).length&&!l)return!1;for(var f=c;f--;){var d=u[f];if(!(l?d in t:o.call(t,d)))return!1}var p=s.get(e),h=s.get(t);if(p&&h)return p==t&&h==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=l;++f<c;){var v=e[d=u[f]],y=t[d];if(i)var b=l?i(y,v,d,t,e,s):i(v,y,d,e,t,s);if(!(void 0===b?v===y||a(v,y,n,i,s):b)){g=!1;break}m||(m="constructor"==d)}if(g&&!m){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&
x instanceof x||(g=!1)}return s.delete(e),s.delete(t),g}},1957:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},8234:(e,t,n)=>{var r=n(8866),o=n(9551),i=n(3674);e.exports=function(e){return r(e,i,o)}},6904:(e,t,n)=>{var r=n(8866),o=n(1442),i=n(1704);e.exports=function(e){return r(e,i,o)}},5050:(e,t,n)=>{var r=n(7019);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},1499:(e,t,n)=>{var r=n(9162),o=n(3674);e.exports=function(e){for(var t=
o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},852:(e,t,n)=>{var r=n(8458),o=n(7801);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},5924:(e,t,n)=>{var r=n(5569)(Object.getPrototypeOf,Object);e.exports=r},9607:(e,t,n)=>{var r=n(2705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},9551:(e,t,n)=>{var r=n(4963),
o=n(479),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return i.call(e,t)}))}:o;e.exports=s},1442:(e,t,n)=>{var r=n(2488),o=n(5924),i=n(9551),a=n(479),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},4160:(e,t,n)=>{var r=n(8552),o=n(7071),i=n(3818),a=n(8525),s=n(577),l=n(4239),u=n(346),c="[object Map]",f="[object Promise]",d="[object Set]",p="[object WeakMap]",
h="[object DataView]",g=u(r),m=u(o),v=u(i),y=u(a),b=u(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=c||i&&w(i.resolve())!=f||a&&w(new a)!=d||s&&w(new s)!=p)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case g:return h;case m:return c;case v:return f;case y:return d;case b:return p}return t}),e.exports=w},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},222:(e,t,n)=>{var r=n(1811),o=n(5694),i=n(1469),a=n(5776),s=n(1780),l=
n(327);e.exports=function(e,t,n){for(var u=-1,c=(t=r(t,e)).length,f=!1;++u<c;){var d=l(t[u]);if(!(f=null!=e&&n(e,d)))break;e=e[d]}return f||++u!=c?f:!!(c=null==e?0:e.length)&&s(c)&&a(d,c)&&(i(e)||o(e))}},2689:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},1789:(e,t,n)=>{var r=n(4536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];
return this.size-=t?1:0,t}},7667:(e,t,n)=>{var r=n(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},1327:(e,t,n)=>{var r=n(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},1866:(e,t,n)=>{var r=n(4536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":
t,this}},3824:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},9148:(e,t,n)=>{var r=n(4318),o=n(7157),i=n(3147),a=n(419),s=n(7133);e.exports=function(e,t,n){var l=e.constructor;switch(t){case "[object ArrayBuffer]":return r(e);case "[object Boolean]":case "[object Date]":return new l(+e);case "[object DataView]":return o(e,n);case "[object Float32Array]":case "[object Float64Array]":case "[object Int8Array]":case "[object Int16Array]":case "[object Int32Array]":case "[object Uint8Array]":case "[object Uint8ClampedArray]":case "[object Uint16Array]":case "[object Uint32Array]":return s(e,
n);case "[object Map]":case "[object Set]":return new l;case "[object Number]":case "[object String]":return new l(e);case "[object RegExp]":return i(e);case "[object Symbol]":return a(e)}}},8517:(e,t,n)=>{var r=n(3118),o=n(5924),i=n(5726);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},6612:(e,t,
n)=>{var r=n(7813),o=n(8612),i=n(5776),a=n(3218);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},5403:(e,t,n)=>{var r=n(1469),o=n(3448),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},7019:e=>{e.exports=function(e){var t=typeof e;
return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,n)=>{var r,o=n(4429),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},9162:(e,t,n)=>{var r=n(3218);e.exports=function(e){return e==e&&!r(e)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,
t,n)=>{var r=n(8470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},2117:(e,t,n)=>{var r=n(8470);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7529:(e,t,n)=>{var r=n(8470);e.exports=function(e){return r(this.__data__,e)>-1}},3399:(e,t,n)=>{var r=n(8470);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},4705:(e,
t,n)=>{var r=n(1989),o=n(8407),i=n(7071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new (i||o),string:new r}}},1285:(e,t,n)=>{var r=n(5050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6E3:(e,t,n)=>{var r=n(5050);e.exports=function(e){return r(this,e).get(e)}},9916:(e,t,n)=>{var r=n(5050);e.exports=function(e){return r(this,e).has(e)}},5265:(e,t,n)=>{var r=n(5050);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==
o?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},2634:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},4523:(e,t,n)=>{var r=n(8306);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},4536:(e,t,n)=>{var r=n(852)(Object,"create");e.exports=r},6916:(e,t,n)=>{var r=n(5569)(Object.keys,Object);e.exports=r},3498:e=>{e.exports=function(e){var t=
[];if(null!=e)for(var n in Object(e))t.push(n);return t}},1167:(e,t,n)=>{e=n.nmd(e);var r=n(1957),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},5357:(e,t,n)=>{var r=n(6874),o=Math.max;e.exports=function(e,
t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=i[a];return u[t]=n(l),r(e,this,u)}}},5639:(e,t,n)=>{var r=n(1957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},6390:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},619:e=>{e.exports=function(e){return this.__data__.set(e,
"__lodash_hash_undefined__"),this}},2385:e=>{e.exports=function(e){return this.__data__.has(e)}},1814:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},61:(e,t,n)=>{var r=n(6560),o=n(1275)(r);e.exports=o},1275:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},7465:(e,t,n)=>{var r=n(8407);e.exports=function(){this.__data__=new r,
this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,n)=>{var r=n(8407),o=n(7071),i=n(3369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},3140:(e,t,n)=>
{var r=n(4286),o=n(2689),i=n(676);e.exports=function(e){return o(e)?i(e):r(e)}},5514:(e,t,n)=>{var r=n(4523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)}),t});e.exports=a},327:(e,t,n)=>{var r=n(3448);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},
346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7990:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},676:e=>{var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+o+")?",u="[\\ufe0e\\ufe0f]?",c=
u+l+"(?:\\u200d(?:"+[i,a,s].join("|")+")"+u+l+")*",f="(?:"+[i+r+"?",r,a,s,n].join("|")+")",d=RegExp(o+"(?="+o+")|"+f+c,"g");e.exports=function(e){return e.match(d)||[]}},8403:(e,t,n)=>{var r=n(9833),o=n(1700);e.exports=function(e){return o(r(e).toLowerCase())}},361:(e,t,n)=>{var r=n(5990);e.exports=function(e){return r(e,5)}},5703:e=>{e.exports=function(e){return function(){return e}}},3279:(e,t,n)=>{var r=n(3218),o=n(7771),i=n(4841),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,u,c,f,d,p,
h=0,g=!1,m=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=u;return l=u=void 0,h=t,f=e.apply(r,n)}function b(e){var n=e-p;return void 0===p||n>=t||n<0||m&&e-h>=c}function w(){var e=o();if(b(e))return x(e);d=setTimeout(w,function(e){var n=t-(e-p);return m?s(n,c-(e-h)):n}(e))}function x(e){return d=void 0,v&&l?y(e):(l=u=void 0,f)}function k(){var e=o(),n=b(e);if(l=arguments,u=this,p=e,n){if(void 0===d)return function(e){return h=e,d=setTimeout(w,t),
g?y(e):f}(p);if(m)return clearTimeout(d),d=setTimeout(w,t),y(p)}return void 0===d&&(d=setTimeout(w,t)),f}return t=i(t)||0,r(n)&&(g=!!n.leading,c=(m="maxWait"in n)?a(i(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),k.cancel=function(){void 0!==d&&clearTimeout(d),h=0,l=p=u=d=void 0},k.flush=function(){return void 0===d?f:x(o())},k}},6073:(e,t,n)=>{e.exports=n(4486)},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},4486:(e,t,n)=>{var r=n(7412),o=n(9881),i=n(4290),a=n(1469);e.exports=
function(e,t){return(a(e)?r:o)(e,i(t))}},2525:(e,t,n)=>{var r=n(7816),o=n(4290);e.exports=function(e,t){return e&&r(e,o(t))}},7361:(e,t,n)=>{var r=n(7786);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},8721:(e,t,n)=>{var r=n(8565),o=n(222);e.exports=function(e,t){return null!=e&&o(e,t,r)}},9095:(e,t,n)=>{var r=n(13),o=n(222);e.exports=function(e,t){return null!=e&&o(e,t,r)}},6557:e=>{e.exports=function(e){return e}},5694:(e,t,n)=>{var r=n(9454),o=n(7005),i=Object.prototype,
a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,n)=>{var r=n(3560),o=n(1780);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},9246:(e,t,n)=>{var r=n(8612),o=n(7005);e.exports=function(e){return o(e)&&r(e)}},1584:(e,t,n)=>{var r=n(4239),o=n(7005);e.exports=function(e){return!0===e||!1===e||o(e)&&"[object Boolean]"==r(e)}},4144:(e,
t,n)=>{e=n.nmd(e);var r=n(5639),o=n(5062),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},1609:(e,t,n)=>{var r=n(280),o=n(4160),i=n(5694),a=n(1469),s=n(8612),l=n(4144),u=n(5726),c=n(6719),f=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||c(e)||i(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!r(e).length;
for(var n in e)if(f.call(e,n))return!1;return!0}},8368:(e,t,n)=>{var r=n(939);e.exports=function(e,t,n){var o=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===o?r(e,t,void 0,n):!!o}},3560:(e,t,n)=>{var r=n(4239),o=n(3218);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},6688:(e,
t,n)=>{var r=n(5588),o=n(7518),i=n(1167),a=i&&i.isMap,s=a?o(a):r;e.exports=s},4293:e=>{e.exports=function(e){return null==e}},1763:(e,t,n)=>{var r=n(4239),o=n(7005);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8630:(e,t,n)=>{var r=n(4239),o=n(5924),i=n(7005),a=Function.prototype,s=Object.prototype,l=a.toString,
u=s.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},2928:(e,t,n)=>{var r=n(9221),o=n(7518),i=n(1167),a=i&&i.isSet,s=a?o(a):r;e.exports=s},7037:(e,t,n)=>{var r=n(4239),o=n(1469),i=n(7005);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},3448:(e,t,n)=>{var r=n(4239),o=n(7005);e.exports=
function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},6719:(e,t,n)=>{var r=n(8749),o=n(7518),i=n(1167),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},3674:(e,t,n)=>{var r=n(4636),o=n(280),i=n(8612);e.exports=function(e){return i(e)?r(e):o(e)}},1704:(e,t,n)=>{var r=n(4636),o=n(313),i=n(8612);e.exports=function(e){return i(e)?r(e,!0):o(e)}},6486:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=32,u=128,
c=1/0,f=9007199254740991,d=NaN,p=4294967295,h=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],g="[object Arguments]",m="[object Array]",v="[object Boolean]",y="[object Date]",b="[object Error]",w="[object Function]",x="[object GeneratorFunction]",k="[object Map]",S="[object Number]",C="[object Object]",O="[object Promise]",E="[object RegExp]",M="[object Set]",T="[object String]",_="[object Symbol]",A="[object WeakMap]",
P="[object ArrayBuffer]",D="[object DataView]",N="[object Float32Array]",R="[object Float64Array]",L="[object Int8Array]",j="[object Int16Array]",I="[object Int32Array]",F="[object Uint8Array]",z="[object Uint8ClampedArray]",H="[object Uint16Array]",B="[object Uint32Array]",V=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,U=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,Z=RegExp(U.source),K=RegExp(q.source),Y=/<%-([\s\S]+?)%>/g,G=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,
ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,we=/['\n\r\u2028\u2029\\]/g,xe="\\ud800-\\udfff",ke="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="\\u2700-\\u27bf",Ce="a-z\\xdf-\\xf6\\xf8-\\xff",Oe="A-Z\\xc0-\\xd6\\xd8-\\xde",Ee="\\ufe0e\\ufe0f",Me="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",
Te="["+xe+"]",_e="["+Me+"]",Ae="["+ke+"]",Pe="\\d+",De="["+Se+"]",Ne="["+Ce+"]",Re="[^"+xe+Me+Pe+Se+Ce+Oe+"]",Le="\\ud83c[\\udffb-\\udfff]",je="[^"+xe+"]",Ie="(?:\\ud83c[\\udde6-\\uddff]){2}",Fe="[\\ud800-\\udbff][\\udc00-\\udfff]",ze="["+Oe+"]",He="\\u200d",Be="(?:"+Ne+"|"+Re+")",Ve="(?:"+ze+"|"+Re+")",We="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",$e="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ue="(?:"+Ae+"|"+Le+")?",qe="["+Ee+"]?",Ze=qe+Ue+"(?:"+He+"(?:"+[je,Ie,Fe].join("|")+")"+qe+Ue+")*",Ke="(?:"+[De,Ie,Fe].join("|")+
")"+Ze,Ye="(?:"+[je+Ae+"?",Ae,Ie,Fe,Te].join("|")+")",Ge=RegExp("['\u2019]","g"),Je=RegExp(Ae,"g"),Xe=RegExp(Le+"(?="+Le+")|"+Ye+Ze,"g"),Qe=RegExp([ze+"?"+Ne+"+"+We+"(?="+[_e,ze,"$"].join("|")+")",Ve+"+"+$e+"(?="+[_e,ze+Be,"$"].join("|")+")",ze+"?"+Be+"+"+We,ze+"+"+$e,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pe,Ke].join("|"),"g"),et=RegExp("["+He+xe+ke+Ee+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array",
"Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,ot={};ot[N]=ot[R]=ot[L]=ot[j]=ot[I]=ot[F]=ot[z]=ot[H]=ot[B]=!0,ot[g]=ot[m]=ot[P]=ot[v]=ot[D]=ot[y]=ot[b]=ot[w]=ot[k]=ot[S]=ot[C]=ot[E]=ot[M]=ot[T]=ot[A]=!1;var it={};it[g]=it[m]=
it[P]=it[D]=it[v]=it[y]=it[N]=it[R]=it[L]=it[j]=it[I]=it[k]=it[S]=it[C]=it[E]=it[M]=it[T]=it[_]=it[F]=it[z]=it[H]=it[B]=!0,it[b]=it[w]=it[A]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,lt=parseInt,ut="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ct="object"==typeof self&&self&&self.Object===Object&&self,ft=ut||ct||Function("return this")(),dt=t&&!t.nodeType&&t,pt=dt&&e&&!e.nodeType&&e,ht=pt&&pt.exports===dt,gt=ht&&ut.process,mt=function(){try{return pt&&
pt.require&&pt.require("util").types||gt&&gt.binding&&gt.binding("util")}catch(e){}}(),vt=mt&&mt.isArrayBuffer,yt=mt&&mt.isDate,bt=mt&&mt.isMap,wt=mt&&mt.isRegExp,xt=mt&&mt.isSet,kt=mt&&mt.isTypedArray;function St(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ct(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Ot(e,t){for(var n=
-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Et(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Mt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Tt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function _t(e,t){return!(null==e||!e.length)&&zt(e,t,0)>-1}function At(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Pt(e,
t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Dt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Nt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Rt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Lt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var jt=Wt("length");function It(e,t,n){var r;return n(e,
function(e,n,o){if(t(e,n,o))return r=n,!1}),r}function Ft(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function zt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Ft(e,Bt,n)}function Ht(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Bt(e){return e!=e}function Vt(e,t){var n=null==e?0:e.length;return n?qt(e,t)/n:d}function Wt(e){return function(t){return null==t?o:t[e]}}
function $t(e){return function(t){return null==e?o:e[t]}}function Ut(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}function qt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Zt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Kt(e){return e?e.slice(0,fn(e)+1).replace(re,""):e}function Yt(e){return function(t){return e(t)}}function Gt(e,t){return Pt(t,function(t){return e[t]})}function Jt(e,t){return e.has(t)}function Xt(e,
t){for(var n=-1,r=e.length;++n<r&&zt(t,e[n],0)>-1;);return n}function Qt(e,t){for(var n=e.length;n--&&zt(t,e[n],0)>-1;);return n}var en=$t({"\u00c0":"A","\u00c1":"A","\u00c2":"A","\u00c3":"A","\u00c4":"A","\u00c5":"A","\u00e0":"a","\u00e1":"a","\u00e2":"a","\u00e3":"a","\u00e4":"a","\u00e5":"a","\u00c7":"C","\u00e7":"c","\u00d0":"D","\u00f0":"d","\u00c8":"E","\u00c9":"E","\u00ca":"E","\u00cb":"E","\u00e8":"e","\u00e9":"e","\u00ea":"e","\u00eb":"e","\u00cc":"I","\u00cd":"I","\u00ce":"I","\u00cf":"I",
"\u00ec":"i","\u00ed":"i","\u00ee":"i","\u00ef":"i","\u00d1":"N","\u00f1":"n","\u00d2":"O","\u00d3":"O","\u00d4":"O","\u00d5":"O","\u00d6":"O","\u00d8":"O","\u00f2":"o","\u00f3":"o","\u00f4":"o","\u00f5":"o","\u00f6":"o","\u00f8":"o","\u00d9":"U","\u00da":"U","\u00db":"U","\u00dc":"U","\u00f9":"u","\u00fa":"u","\u00fb":"u","\u00fc":"u","\u00dd":"Y","\u00fd":"y","\u00ff":"y","\u00c6":"Ae","\u00e6":"ae","\u00de":"Th","\u00fe":"th","\u00df":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a",
"\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I",
"\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r",
"\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z",
"\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),tn=$t({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function nn(e){return"\\"+at[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function an(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,i[o++]=n)}return i}function ln(e){var t=-1,n=Array(e.size);
return e.forEach(function(e){n[++t]=e}),n}function un(e){return rn(e)?function(e){for(var t=Xe.lastIndex=0;Xe.test(e);)++t;return t}(e):jt(e)}function cn(e){return rn(e)?function(e){return e.match(Xe)||[]}(e):function(e){return e.split("")}(e)}function fn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var dn=$t({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),pn=function e(t){var n,r=(t=null==t?ft:pn.defaults(ft.Object(),t,pn.pick(ft,nt))).Array,oe=t.Date,xe=t.Error,ke=t.Function,
Se=t.Math,Ce=t.Object,Oe=t.RegExp,Ee=t.String,Me=t.TypeError,Te=r.prototype,_e=ke.prototype,Ae=Ce.prototype,Pe=t["__core-js_shared__"],De=_e.toString,Ne=Ae.hasOwnProperty,Re=0,Le=(n=/[^.]+$/.exec(Pe&&Pe.keys&&Pe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",je=Ae.toString,Ie=De.call(Ce),Fe=ft._,ze=Oe("^"+De.call(Ne).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=ht?t.Buffer:o,Be=t.Symbol,Ve=t.Uint8Array,We=He?He.allocUnsafe:o,$e=an(Ce.getPrototypeOf,
Ce),Ue=Ce.create,qe=Ae.propertyIsEnumerable,Ze=Te.splice,Ke=Be?Be.isConcatSpreadable:o,Ye=Be?Be.iterator:o,Xe=Be?Be.toStringTag:o,et=function(){try{var e=li(Ce,"defineProperty");return e({},"",{}),e}catch(e){}}(),at=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,ut=oe&&oe.now!==ft.Date.now&&oe.now,ct=t.setTimeout!==ft.setTimeout&&t.setTimeout,dt=Se.ceil,pt=Se.floor,gt=Ce.getOwnPropertySymbols,mt=He?He.isBuffer:o,jt=t.isFinite,$t=Te.join,hn=an(Ce.keys,Ce),gn=Se.max,mn=Se.min,vn=oe.now,yn=t.parseInt,
bn=Se.random,wn=Te.reverse,xn=li(t,"DataView"),kn=li(t,"Map"),Sn=li(t,"Promise"),Cn=li(t,"Set"),On=li(t,"WeakMap"),En=li(Ce,"create"),Mn=On&&new On,Tn={},_n=ji(xn),An=ji(kn),Pn=ji(Sn),Dn=ji(Cn),Nn=ji(On),Rn=Be?Be.prototype:o,Ln=Rn?Rn.valueOf:o,jn=Rn?Rn.toString:o;function In(e){if(Qa(e)&&!Va(e)&&!(e instanceof Bn)){if(e instanceof Hn)return e;if(Ne.call(e,"__wrapped__"))return Ii(e)}return new Hn(e)}var Fn=function(){function e(){}return function(t){if(!Xa(t))return{};if(Ue)return Ue(t);e.prototype=
t;var n=new e;return e.prototype=o,n}}();function zn(){}function Hn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Bn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],
r[1])}}function $n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Un(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new $n;++t<n;)this.add(e[t])}function qn(e){var t=this.__data__=new Wn(e);this.size=t.size}function Zn(e,t){var n=Va(e),r=!n&&Ba(e),o=!n&&!r&&qa(e),i=!n&&!r&&!o&&ss(e),a=n||r||o||i,s=a?Zt(e.length,Ee):[],l=s.length;for(var u in e)!t&&!Ne.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||
"byteOffset"==u)||gi(u,l))||s.push(u);return s}function Kn(e){var t=e.length;return t?e[$r(0,t-1)]:o}function Yn(e,t){return Pi(Eo(e),or(t,0,e.length))}function Gn(e){return Pi(Eo(e))}function Jn(e,t,n){(n!==o&&!Fa(e[t],n)||n===o&&!(t in e))&&nr(e,t,n)}function Xn(e,t,n){var r=e[t];Ne.call(e,t)&&Fa(r,n)&&(n!==o||t in e)||nr(e,t,n)}function Qn(e,t){for(var n=e.length;n--;)if(Fa(e[n][0],t))return n;return-1}function er(e,t,n,r){return ur(e,function(e,o,i){t(r,e,n(e),i)}),r}function tr(e,t){return e&&
Mo(t,_s(t),e)}function nr(e,t,n){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function rr(e,t){for(var n=-1,i=t.length,a=r(i),s=null==e;++n<i;)a[n]=s?o:Cs(e,t[n]);return a}function or(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function ir(e,t,n,r,i,a){var s,l=1&t,u=2&t,c=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!Xa(e))return e;var f=Va(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&
Ne.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return Eo(e,s)}else{var d=fi(e),p=d==w||d==x;if(qa(e))return wo(e,l);if(d==C||d==g||p&&!i){if(s=u||p?{}:pi(e),!l)return u?function(e,t){return Mo(e,ci(e),t)}(e,function(e,t){return e&&Mo(t,As(t),e)}(s,e)):function(e,t){return Mo(e,ui(e),t)}(e,tr(s,e))}else{if(!it[d])return i?e:{};s=function(e,t,n){var r,o=e.constructor;switch(t){case P:return xo(e);case v:case y:return new o(+e);case D:return function(e,t){var n=t?xo(e.buffer):e.buffer;
return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case N:case R:case L:case j:case I:case F:case z:case H:case B:return ko(e,n);case k:return new o;case S:case T:return new o(e);case E:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case M:return new o;case _:return r=e,Ln?Ce(Ln.call(r)):{}}}(e,d,l)}}a||(a=new qn);var h=a.get(e);if(h)return h;a.set(e,s),os(e)?e.forEach(function(r){s.add(ir(r,t,n,r,e,a))}):es(e)&&e.forEach(function(r,o){s.set(o,
ir(r,t,n,o,e,a))});var m=f?o:(c?u?ti:ei:u?As:_s)(e);return Ot(m||e,function(r,o){m&&(r=e[o=r]),Xn(s,o,ir(r,t,n,o,e,a))}),s}function ar(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ce(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function sr(e,t,n){if("function"!=typeof e)throw new Me(i);return Mi(function(){e.apply(o,n)},t)}function lr(e,t,n,r){var o=-1,i=_t,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=Pt(t,Yt(n))),r?(i=At,a=!1):t.length>=200&&(i=Jt,a=!1,
t=new Un(t));e:for(;++o<s;){var c=e[o],f=null==n?c:n(c);if(c=r||0!==c?c:0,a&&f==f){for(var d=u;d--;)if(t[d]===f)continue e;l.push(c)}else i(t,f,r)||l.push(c)}return l}In.templateSettings={escape:Y,evaluate:G,interpolate:J,variable:"",imports:{_:In}},In.prototype=zn.prototype,In.prototype.constructor=In,Hn.prototype=Fn(zn.prototype),Hn.prototype.constructor=Hn,Bn.prototype=Fn(zn.prototype),Bn.prototype.constructor=Bn,Vn.prototype.clear=function(){this.__data__=En?En(null):{},this.size=0},Vn.prototype.delete=
function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Vn.prototype.get=function(e){var t=this.__data__;if(En){var n=t[e];return n===a?o:n}return Ne.call(t,e)?t[e]:o},Vn.prototype.has=function(e){var t=this.__data__;return En?t[e]!==o:Ne.call(t,e)},Vn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=En&&t===o?a:t,this},Wn.prototype.clear=function(){this.__data__=[],this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,n=Qn(t,
e);return!(n<0||(n==t.length-1?t.pop():Ze.call(t,n,1),--this.size,0))},Wn.prototype.get=function(e){var t=this.__data__,n=Qn(t,e);return n<0?o:t[n][1]},Wn.prototype.has=function(e){return Qn(this.__data__,e)>-1},Wn.prototype.set=function(e,t){var n=this.__data__,r=Qn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},$n.prototype.clear=function(){this.size=0,this.__data__={hash:new Vn,map:new (kn||Wn),string:new Vn}},$n.prototype.delete=function(e){var t=ai(this,e).delete(e);return this.size-=
t?1:0,t},$n.prototype.get=function(e){return ai(this,e).get(e)},$n.prototype.has=function(e){return ai(this,e).has(e)},$n.prototype.set=function(e,t){var n=ai(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Un.prototype.add=Un.prototype.push=function(e){return this.__data__.set(e,a),this},Un.prototype.has=function(e){return this.__data__.has(e)},qn.prototype.clear=function(){this.__data__=new Wn,this.size=0},qn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=
t.size,n},qn.prototype.get=function(e){return this.__data__.get(e)},qn.prototype.has=function(e){return this.__data__.has(e)},qn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Wn){var r=n.__data__;if(!kn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new $n(r)}return n.set(e,t),this.size=n.size,this};var ur=Ao(vr),cr=Ao(yr,!0);function fr(e,t){var n=!0;return ur(e,function(e,r,o){return n=!!t(e,r,o)}),n}function dr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=
e[r],s=t(a);if(null!=s&&(l===o?s==s&&!as(s):n(s,l)))var l=s,u=a}return u}function pr(e,t){var n=[];return ur(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function hr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=hi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?hr(s,t-1,n,r,o):Dt(o,s):r||(o[o.length]=s)}return o}var gr=Po(),mr=Po(!0);function vr(e,t){return e&&gr(e,t,_s)}function yr(e,t){return e&&mr(e,t,_s)}function br(e,t){return Tt(t,function(t){return Ya(e[t])})}function wr(e,t){for(var n=0,r=(t=mo(t,e)).length;null!=
e&&n<r;)e=e[Li(t[n++])];return n&&n==r?e:o}function xr(e,t,n){var r=t(e);return Va(e)?r:Dt(r,n(e))}function kr(e){return null==e?e===o?"[object Undefined]":"[object Null]":Xe&&Xe in Ce(e)?function(e){var t=Ne.call(e,Xe),n=e[Xe];try{e[Xe]=o;var r=!0}catch(e){}var i=je.call(e);return r&&(t?e[Xe]=n:delete e[Xe]),i}(e):function(e){return je.call(e)}(e)}function Sr(e,t){return e>t}function Cr(e,t){return null!=e&&Ne.call(e,t)}function Or(e,t){return null!=e&&t in Ce(e)}function Er(e,t,n){for(var i=n?At:
_t,a=e[0].length,s=e.length,l=s,u=r(s),c=1/0,f=[];l--;){var d=e[l];l&&t&&(d=Pt(d,Yt(t))),c=mn(d.length,c),u[l]=!n&&(t||a>=120&&d.length>=120)?new Un(l&&d):o}d=e[0];var p=-1,h=u[0];e:for(;++p<a&&f.length<c;){var g=d[p],m=t?t(g):g;if(g=n||0!==g?g:0,!(h?Jt(h,m):i(f,m,n))){for(l=s;--l;){var v=u[l];if(!(v?Jt(v,m):i(e[l],m,n)))continue e}h&&h.push(m),f.push(g)}}return f}function Mr(e,t,n){var r=null==(e=Ci(e,t=mo(t,e)))?e:e[Li(Ki(t))];return null==r?o:St(r,e,n)}function Tr(e){return Qa(e)&&kr(e)==g}function _r(e,
t,n,r,i){return e===t||(null==e||null==t||!Qa(e)&&!Qa(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var s=Va(e),l=Va(t),u=s?m:fi(e),c=l?m:fi(t),f=(u=u==g?C:u)==C,d=(c=c==g?C:c)==C,p=u==c;if(p&&qa(e)){if(!qa(t))return!1;s=!0,f=!1}if(p&&!f)return a||(a=new qn),s||ss(e)?Xo(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case D:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case P:return!(e.byteLength!=t.byteLength||!i(new Ve(e),new Ve(t)));case v:case y:case S:return Fa(+e,
+t);case b:return e.name==t.name&&e.message==t.message;case E:case T:return e==t+"";case k:var s=on;case M:var l=1&r;if(s||(s=ln),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=Xo(s(e),s(t),r,o,i,a);return a.delete(e),c;case _:if(Ln)return Ln.call(e)==Ln.call(t)}return!1}(e,t,u,n,r,i,a);if(!(1&n)){var h=f&&Ne.call(e,"__wrapped__"),w=d&&Ne.call(t,"__wrapped__");if(h||w){var x=h?e.value():e,O=w?t.value():t;return a||(a=new qn),i(x,O,n,r,a)}}return!!p&&(a||(a=new qn),
function(e,t,n,r,i,a){var s=1&n,l=ei(e),u=l.length;if(u!=ei(t).length&&!s)return!1;for(var c=u;c--;){var f=l[c];if(!(s?f in t:Ne.call(t,f)))return!1}var d=a.get(e),p=a.get(t);if(d&&p)return d==t&&p==e;var h=!0;a.set(e,t),a.set(t,e);for(var g=s;++c<u;){var m=e[f=l[c]],v=t[f];if(r)var y=s?r(v,m,f,t,e,a):r(m,v,f,e,t,a);if(!(y===o?m===v||i(m,v,n,r,a):y)){h=!1;break}g||(g="constructor"==f)}if(h&&!g){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&
b instanceof b&&"function"==typeof w&&w instanceof w||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,i,a))}(e,t,n,r,_r,i))}function Ar(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=Ce(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){var u=(l=n[i])[0],c=e[u],f=l[1];if(s&&l[2]){if(c===o&&!(u in e))return!1}else{var d=new qn;if(r)var p=r(c,f,u,e,t,d);if(!(p===o?_r(f,c,3,r,d):p))return!1}}return!0}function Pr(e){return!(!Xa(e)||(t=e,Le&&Le in t))&&(Ya(e)?
ze:ge).test(ji(e));var t}function Dr(e){return"function"==typeof e?e:null==e?tl:"object"==typeof e?Va(e)?Ir(e[0],e[1]):jr(e):cl(e)}function Nr(e){if(!wi(e))return hn(e);var t=[];for(var n in Ce(e))Ne.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Rr(e,t){return e<t}function Lr(e,t){var n=-1,o=$a(e)?r(e.length):[];return ur(e,function(e,r,i){o[++n]=t(e,r,i)}),o}function jr(e){var t=si(e);return 1==t.length&&t[0][2]?ki(t[0][0],t[0][1]):function(n){return n===e||Ar(n,e,t)}}function Ir(e,t){return vi(e)&&
xi(t)?ki(Li(e),t):function(n){var r=Cs(n,e);return r===o&&r===t?Os(n,e):_r(t,r,3)}}function Fr(e,t,n,r,i){e!==t&&gr(t,function(a,s){if(i||(i=new qn),Xa(a))!function(e,t,n,r,i,a,s){var l=Oi(e,n),u=Oi(t,n),c=s.get(u);if(c)Jn(e,n,c);else{var f=a?a(l,u,n+"",e,t,s):o,d=f===o;if(d){var p=Va(u),h=!p&&qa(u),g=!p&&!h&&ss(u);f=u,p||h||g?Va(l)?f=l:Ua(l)?f=Eo(l):h?(d=!1,f=wo(u,!0)):g?(d=!1,f=ko(u,!0)):f=[]:ns(u)||Ba(u)?(f=l,Ba(l)?f=gs(l):Xa(l)&&!Ya(l)||(f=pi(u))):d=!1}d&&(s.set(u,f),i(f,u,r,a,s),s.delete(u)),
Jn(e,n,f)}}(e,t,s,n,Fr,r,i);else{var l=r?r(Oi(e,s),a,s+"",e,t,i):o;l===o&&(l=a),Jn(e,s,l)}},As)}function zr(e,t){var n=e.length;if(n)return gi(t+=t<0?n:0,n)?e[t]:o}function Hr(e,t,n){t=t.length?Pt(t,function(e){return Va(e)?function(t){return wr(t,1===e.length?e[0]:e)}:e}):[tl];var r=-1;t=Pt(t,Yt(ii()));var o=Lr(e,function(e,n,o){var i=Pt(t,function(t){return t(e)});return{criteria:i,index:++r,value:e}});return function(e,t){var r=e.length;for(e.sort(function(e,t){return function(e,t,n){for(var r=
-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var l=So(o[r],i[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)});r--;)e[r]=e[r].value;return e}(o)}function Br(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=wr(e,a);n(s,a)&&Yr(i,mo(a,e),s)}return i}function Vr(e,t,n,r){var o=r?Ht:zt,i=-1,a=t.length,s=e;for(e===t&&(t=Eo(t)),n&&(s=Pt(e,Yt(n)));++i<a;)for(var l=0,u=t[i],c=n?n(u):u;(l=o(s,c,l,r))>-1;)s!==e&&Ze.call(s,l,1),Ze.call(e,l,1);return e}function Wr(e,
t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;gi(o)?Ze.call(e,o,1):so(e,o)}}return e}function $r(e,t){return e+pt(bn()*(t-e+1))}function Ur(e,t){var n="";if(!e||t<1||t>f)return n;do t%2&&(n+=e),(t=pt(t/2))&&(e+=e);while(t);return n}function qr(e,t){return Ti(Si(e,t,tl),e+"")}function Zr(e){return Kn(Fs(e))}function Kr(e,t){var n=Fs(e);return Pi(n,or(t,0,n.length))}function Yr(e,t,n,r){if(!Xa(e))return e;for(var i=-1,a=(t=mo(t,e)).length,s=a-1,l=e;null!=l&&++i<a;){var u=
Li(t[i]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(i!=s){var f=l[u];(c=r?r(f,u,l):o)===o&&(c=Xa(f)?f:gi(t[i+1])?[]:{})}Xn(l,u,c),l=l[u]}return e}var Gr=Mn?function(e,t){return Mn.set(e,t),e}:tl,Jr=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Xs(t),writable:!0})}:tl;function Xr(e){return Pi(Fs(e))}function Qr(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}
function eo(e,t){var n;return ur(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}function to(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!as(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return no(e,t,tl,n)}function no(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,l=null===t,u=as(t),c=t===o;i<a;){var f=pt((i+a)/2),d=n(e[f]),p=d!==o,h=null===d,g=d==d,m=as(d);if(s)var v=r||g;else v=c?g&&(r||p):l?g&&p&&(r||
!h):u?g&&p&&!h&&(r||!m):!h&&!m&&(r?d<=t:d<t);v?i=f+1:a=f}return mn(a,4294967294)}function ro(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Fa(s,l)){var l=s;i[o++]=0===a?0:a}}return i}function oo(e){return"number"==typeof e?e:as(e)?d:+e}function io(e){if("string"==typeof e)return e;if(Va(e))return Pt(e,io)+"";if(as(e))return jn?jn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ao(e,t,n){var r=-1,o=_t,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=At;else if(i>=200){var u=
t?null:qo(e);if(u)return ln(u);a=!1,o=Jt,l=new Un}else l=t?[]:s;e:for(;++r<i;){var c=e[r],f=t?t(c):c;if(c=n||0!==c?c:0,a&&f==f){for(var d=l.length;d--;)if(l[d]===f)continue e;t&&l.push(f),s.push(c)}else o(l,f,n)||(l!==s&&l.push(f),s.push(c))}return s}function so(e,t){return null==(e=Ci(e,t=mo(t,e)))||delete e[Li(Ki(t))]}function lo(e,t,n,r){return Yr(e,t,n(wr(e,t)),r)}function uo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?Qr(e,r?0:i,r?i+1:o):Qr(e,r?i+1:0,r?o:i)}function co(e,
t){var n=e;return n instanceof Bn&&(n=n.value()),Nt(t,function(e,t){return t.func.apply(t.thisArg,Dt([e],t.args))},n)}function fo(e,t,n){var o=e.length;if(o<2)return o?ao(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var s=e[i],l=-1;++l<o;)l!=i&&(a[i]=lr(a[i]||s,e[l],t,n));return ao(hr(a,1),t,n)}function po(e,t,n){for(var r=-1,i=e.length,a=t.length,s={};++r<i;){var l=r<a?t[r]:o;n(s,e[r],l)}return s}function ho(e){return Ua(e)?e:[]}function go(e){return"function"==typeof e?e:tl}function mo(e,t){return Va(e)?
e:vi(e,t)?[e]:Ri(ms(e))}var vo=qr;function yo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:Qr(e,t,n)}var bo=at||function(e){return ft.clearTimeout(e)};function wo(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function xo(e){var t=new e.constructor(e.byteLength);return(new Ve(t)).set(new Ve(e)),t}function ko(e,t){var n=t?xo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function So(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==
e,a=as(e),s=t!==o,l=null===t,u=t==t,c=as(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||r&&s&&u||!n&&u||!i)return 1;if(!r&&!a&&!c&&e<t||c&&n&&i&&!r&&!a||l&&n&&i||!s&&i||!u)return-1}return 0}function Co(e,t,n,o){for(var i=-1,a=e.length,s=n.length,l=-1,u=t.length,c=gn(a-s,0),f=r(u+c),d=!o;++l<u;)f[l]=t[l];for(;++i<s;)(d||i<a)&&(f[n[i]]=e[i]);for(;c--;)f[l++]=e[i++];return f}function Oo(e,t,n,o){for(var i=-1,a=e.length,s=-1,l=n.length,u=-1,c=t.length,f=gn(a-l,0),d=r(f+c),p=!o;++i<f;)d[i]=e[i];for(var h=i;++u<
c;)d[h+u]=t[u];for(;++s<l;)(p||i<a)&&(d[h+n[s]]=e[i++]);return d}function Eo(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Mo(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],u=r?r(n[l],e[l],l,n,e):o;u===o&&(u=e[l]),i?nr(n,l,u):Xn(n,l,u)}return n}function To(e,t){return function(n,r){var o=Va(n)?Ct:er,i=t?t():{};return o(n,e,ii(r,2),i)}}function _o(e){return qr(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==
typeof a?(i--,a):o,s&&mi(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=Ce(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t})}function Ao(e,t){return function(n,r){if(null==n)return n;if(!$a(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Ce(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Po(e){return function(t,n,r){for(var o=-1,i=Ce(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}function Do(e){return function(t){var n=rn(t=ms(t))?cn(t):o,r=n?n[0]:t.charAt(0),i=n?yo(n,1).join(""):
t.slice(1);return r[e]()+i}}function No(e){return function(t){return Nt(Ys(Bs(t).replace(Ge,"")),e,"")}}function Ro(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Fn(e.prototype),r=
e.apply(n,t);return Xa(r)?r:n}}function Lo(e){return function(t,n,r){var i=Ce(t);if(!$a(t)){var a=ii(n,3);t=_s(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function jo(e){return Qo(function(t){var n=t.length,r=n,a=Hn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Me(i);if(a&&!l&&"wrapper"==ri(s))var l=new Hn([],!0)}for(r=l?r:n;++r<n;){var u=ri(s=t[r]),c="wrapper"==u?ni(s):o;l=c&&yi(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[ri(c[0])].apply(l,
c[3]):1==s.length&&yi(s)?l[u]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Va(r))return l.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}})}function Io(e,t,n,i,a,s,l,c,f,d){var p=t&u,h=1&t,g=2&t,m=24&t,v=512&t,y=g?o:Ro(e);return function u(){for(var b=arguments.length,w=r(b),x=b;x--;)w[x]=arguments[x];if(m)var k=oi(u),S=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,k);if(i&&(w=Co(w,i,a,m)),s&&(w=Oo(w,s,l,m)),
b-=S,m&&b<d){var C=sn(w,k);return $o(e,t,Io,u.placeholder,n,w,C,c,f,d-b)}var O=h?n:this,E=g?O[e]:e;return b=w.length,c?w=function(e,t){for(var n=e.length,r=mn(t.length,n),i=Eo(e);r--;){var a=t[r];e[r]=gi(a,n)?i[a]:o}return e}(w,c):v&&b>1&&w.reverse(),p&&f<b&&(w.length=f),this&&this!==ft&&this instanceof u&&(E=y||Ro(E)),E.apply(O,w)}}function Fo(e,t){return function(n,r){return function(e,t,n,r){return vr(e,function(e,o,i){t(r,n(e),o,i)}),r}(n,e,t(r),{})}}function zo(e,t){return function(n,r){var i;
if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=io(n),r=io(r)):(n=oo(n),r=oo(r)),i=e(n,r)}return i}}function Ho(e){return Qo(function(t){return t=Pt(t,Yt(ii())),qr(function(n){var r=this;return e(t,function(e){return St(e,r,n)})})})}function Bo(e,t){var n=(t=t===o?" ":io(t)).length;if(n<2)return n?Ur(t,e):t;var r=Ur(t,dt(e/un(t)));return rn(t)?yo(cn(r),0,e).join(""):r.slice(0,e)}function Vo(e){return function(t,n,i){return i&&"number"!=typeof i&&
mi(t,n,i)&&(n=i=o),t=fs(t),n===o?(n=t,t=0):n=fs(n),function(e,t,n,o){for(var i=-1,a=gn(dt((t-e)/(n||1)),0),s=r(a);a--;)s[o?a:++i]=e,e+=n;return s}(t,n,i=i===o?t<n?1:-1:fs(i),e)}}function Wo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=hs(t),n=hs(n)),e(t,n)}}function $o(e,t,n,r,i,a,s,u,c,f){var d=8&t;t|=d?l:64,4&(t&=~(d?64:l))||(t&=-4);var p=[e,t,i,d?a:o,d?s:o,d?o:a,d?o:s,u,c,f],h=n.apply(o,p);return yi(e)&&Ei(h,p),h.placeholder=r,_i(h,e,t)}function Uo(e){var t=Se[e];return function(e,
n){if(e=hs(e),(n=null==n?0:mn(ds(n),292))&&jt(e)){var r=(ms(e)+"e").split("e");return+((r=(ms(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var qo=Cn&&1/ln(new Cn([,-0]))[1]==c?function(e){return new Cn(e)}:al;function Zo(e){return function(t){var n=fi(t);return n==k?on(t):n==M?function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}(t):function(e,t){return Pt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Ko(e,t,n,a,c,f,d,p){var h=2&t;if(!h&&
"function"!=typeof e)throw new Me(i);var g=a?a.length:0;if(g||(t&=-97,a=c=o),d=d===o?d:gn(ds(d),0),p=p===o?p:ds(p),g-=c?c.length:0,64&t){var m=a,v=c;a=c=o}var y=h?o:ni(e),b=[e,t,n,a,c,m,v,f,d,p];if(y&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==u&&8==n||r==u&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?Co(c,l,t[4]):l,e[4]=c?sn(e[3],s):t[4]}(l=t[5])&&(c=e[5],e[5]=c?Oo(c,l,t[6]):l,e[6]=c?sn(e[5],
s):t[6]),(l=t[7])&&(e[7]=l),r&u&&(e[8]=null==e[8]?t[8]:mn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(b,y),e=b[0],t=b[1],n=b[2],a=b[3],c=b[4],!(p=b[9]=b[9]===o?h?0:e.length:gn(b[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||16==t?function(e,t,n){var i=Ro(e);return function a(){for(var s=arguments.length,l=r(s),u=s,c=oi(a);u--;)l[u]=arguments[u];var f=s<3&&l[0]!==c&&l[s-1]!==c?[]:sn(l,c);return(s-=f.length)<n?$o(e,t,Io,a.placeholder,o,l,f,o,o,n-s):St(this&&this!==ft&&this instanceof a?i:e,this,
l)}}(e,t,p):t!=l&&33!=t||c.length?Io.apply(o,b):function(e,t,n,o){var i=1&t,a=Ro(e);return function t(){for(var s=-1,l=arguments.length,u=-1,c=o.length,f=r(c+l),d=this&&this!==ft&&this instanceof t?a:e;++u<c;)f[u]=o[u];for(;l--;)f[u++]=arguments[++s];return St(d,i?n:this,f)}}(e,t,n,a);else var w=function(e,t,n){var r=1&t,o=Ro(e);return function t(){return(this&&this!==ft&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return _i((y?Gr:Ei)(w,b),e,t)}function Yo(e,t,n,r){return e===o||Fa(e,
Ae[n])&&!Ne.call(r,n)?t:e}function Go(e,t,n,r,i,a){return Xa(e)&&Xa(t)&&(a.set(t,e),Fr(e,t,o,Go,a),a.delete(t)),e}function Jo(e){return ns(e)?o:e}function Xo(e,t,n,r,i,a){var s=1&n,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var c=a.get(e),f=a.get(t);if(c&&f)return c==t&&f==e;var d=-1,p=!0,h=2&n?new Un:o;for(a.set(e,t),a.set(t,e);++d<l;){var g=e[d],m=t[d];if(r)var v=s?r(m,g,d,t,e,a):r(g,m,d,e,t,a);if(v!==o){if(v)continue;p=!1;break}if(h){if(!Lt(t,function(e,t){if(!Jt(h,t)&&(g===e||i(g,e,n,r,
a)))return h.push(t)})){p=!1;break}}else if(g!==m&&!i(g,m,n,r,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function Qo(e){return Ti(Si(e,o,Wi),e+"")}function ei(e){return xr(e,_s,ui)}function ti(e){return xr(e,As,ci)}var ni=Mn?function(e){return Mn.get(e)}:al;function ri(e){for(var t=e.name+"",n=Tn[t],r=Ne.call(Tn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function oi(e){return(Ne.call(In,"placeholder")?In:e).placeholder}function ii(){var e=In.iteratee||nl;
return e=e===nl?Dr:e,arguments.length?e(arguments[0],arguments[1]):e}function ai(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function si(e){for(var t=_s(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,xi(o)]}return t}function li(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Pr(n)?n:o}var ui=gt?function(e){return null==e?[]:(e=Ce(e),Tt(gt(e),function(t){return qe.call(e,
t)}))}:pl,ci=gt?function(e){for(var t=[];e;)Dt(t,ui(e)),e=$e(e);return t}:pl,fi=kr;function di(e,t,n){for(var r=-1,o=(t=mo(t,e)).length,i=!1;++r<o;){var a=Li(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Ja(o)&&gi(a,o)&&(Va(e)||Ba(e))}function pi(e){return"function"!=typeof e.constructor||wi(e)?{}:Fn($e(e))}function hi(e){return Va(e)||Ba(e)||!!(Ke&&e&&e[Ke])}function gi(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&
e>-1&&e%1==0&&e<t}function mi(e,t,n){if(!Xa(n))return!1;var r=typeof t;return!!("number"==r?$a(n)&&gi(t,n.length):"string"==r&&t in n)&&Fa(n[t],e)}function vi(e,t){if(Va(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!as(e))||Q.test(e)||!X.test(e)||null!=t&&e in Ce(t)}function yi(e){var t=ri(e),n=In[t];if("function"!=typeof n||!(t in Bn.prototype))return!1;if(e===n)return!0;var r=ni(n);return!!r&&e===r[0]}(xn&&fi(new xn(new ArrayBuffer(1)))!=D||kn&&fi(new kn)!=
k||Sn&&fi(Sn.resolve())!=O||Cn&&fi(new Cn)!=M||On&&fi(new On)!=A)&&(fi=function(e){var t=kr(e),n=t==C?e.constructor:o,r=n?ji(n):"";if(r)switch(r){case _n:return D;case An:return k;case Pn:return O;case Dn:return M;case Nn:return A}return t});var bi=Pe?Ya:hl;function wi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ae)}function xi(e){return e==e&&!Xa(e)}function ki(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in Ce(n))}}function Si(e,t,n){return t=gn(t===o?
e.length-1:t,0),function(){for(var o=arguments,i=-1,a=gn(o.length-t,0),s=r(a);++i<a;)s[i]=o[t+i];i=-1;for(var l=r(t+1);++i<t;)l[i]=o[i];return l[t]=n(s),St(e,this,l)}}function Ci(e,t){return t.length<2?e:wr(e,Qr(t,0,-1))}function Oi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ei=Ai(Gr),Mi=ct||function(e,t){return ft.setTimeout(e,t)},Ti=Ai(Jr);function _i(e,t,n){var r=t+"";return Ti(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":
"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ot(h,function(n){var r="_."+n[0];t&n[1]&&!_t(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Ai(e){var t=0,n=0;return function(){var r=vn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Pi(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=$r(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=
t,e}var Di,Ni,Ri=(Di=Da(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,function(e,n,r,o){t.push(r?o.replace(ce,"$1"):n||e)}),t},function(e){return 500===Ni.size&&Ni.clear(),e}),Ni=Di.cache,Di);function Li(e){if("string"==typeof e||as(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ji(e){if(null!=e){try{return De.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ii(e){if(e instanceof Bn)return e.clone();var t=new Hn(e.__wrapped__,e.__chain__);
return t.__actions__=Eo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Fi=qr(function(e,t){return Ua(e)?lr(e,hr(t,1,Ua,!0)):[]}),zi=qr(function(e,t){var n=Ki(t);return Ua(n)&&(n=o),Ua(e)?lr(e,hr(t,1,Ua,!0),ii(n,2)):[]}),Hi=qr(function(e,t){var n=Ki(t);return Ua(n)&&(n=o),Ua(e)?lr(e,hr(t,1,Ua,!0),o,n):[]});function Bi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ds(n);return o<0&&(o=gn(r+o,0)),Ft(e,ii(t,3),o)}function Vi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;
var i=r-1;return n!==o&&(i=ds(n),i=n<0?gn(r+i,0):mn(i,r-1)),Ft(e,ii(t,3),i,!0)}function Wi(e){return null!=e&&e.length?hr(e,1):[]}function $i(e){return e&&e.length?e[0]:o}var Ui=qr(function(e){var t=Pt(e,ho);return t.length&&t[0]===e[0]?Er(t):[]}),qi=qr(function(e){var t=Ki(e),n=Pt(e,ho);return t===Ki(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Er(n,ii(t,2)):[]}),Zi=qr(function(e){var t=Ki(e),n=Pt(e,ho);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Er(n,o,t):[]});function Ki(e){var t=
null==e?0:e.length;return t?e[t-1]:o}var Yi=qr(Gi);function Gi(e,t){return e&&e.length&&t&&t.length?Vr(e,t):e}var Ji=Qo(function(e,t){var n=null==e?0:e.length,r=rr(e,t);return Wr(e,Pt(t,function(e){return gi(e,n)?+e:e}).sort(So)),r});function Xi(e){return null==e?e:wn.call(e)}var Qi=qr(function(e){return ao(hr(e,1,Ua,!0))}),ea=qr(function(e){var t=Ki(e);return Ua(t)&&(t=o),ao(hr(e,1,Ua,!0),ii(t,2))}),ta=qr(function(e){var t=Ki(e);return t="function"==typeof t?t:o,ao(hr(e,1,Ua,!0),o,t)});function na(e){if(!e||
!e.length)return[];var t=0;return e=Tt(e,function(e){if(Ua(e))return t=gn(e.length,t),!0}),Zt(t,function(t){return Pt(e,Wt(t))})}function ra(e,t){if(!e||!e.length)return[];var n=na(e);return null==t?n:Pt(n,function(e){return St(t,o,e)})}var oa=qr(function(e,t){return Ua(e)?lr(e,t):[]}),ia=qr(function(e){return fo(Tt(e,Ua))}),aa=qr(function(e){var t=Ki(e);return Ua(t)&&(t=o),fo(Tt(e,Ua),ii(t,2))}),sa=qr(function(e){var t=Ki(e);return t="function"==typeof t?t:o,fo(Tt(e,Ua),o,t)}),la=qr(na),ua=qr(function(e){var t=
e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,ra(e,n)});function ca(e){var t=In(e);return t.__chain__=!0,t}function fa(e,t){return t(e)}var da=Qo(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return rr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Bn&&gi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:fa,args:[i],thisArg:o}),(new Hn(r,this.__chain__)).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(i)}),pa=To(function(e,
t,n){Ne.call(e,n)?++e[n]:nr(e,n,1)}),ha=Lo(Bi),ga=Lo(Vi);function ma(e,t){return(Va(e)?Ot:ur)(e,ii(t,3))}function va(e,t){return(Va(e)?Et:cr)(e,ii(t,3))}var ya=To(function(e,t,n){Ne.call(e,n)?e[n].push(t):nr(e,n,[t])}),ba=qr(function(e,t,n){var o=-1,i="function"==typeof t,a=$a(e)?r(e.length):[];return ur(e,function(e){a[++o]=i?St(t,e,n):Mr(e,t,n)}),a}),wa=To(function(e,t,n){nr(e,n,t)});function xa(e,t){return(Va(e)?Pt:Lr)(e,ii(t,3))}var ka=To(function(e,t,n){e[n?0:1].push(t)},function(){return[[],
[]]}),Sa=qr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&mi(e,t[0],t[1])?t=[]:n>2&&mi(t[0],t[1],t[2])&&(t=[t[0]]),Hr(e,hr(t,1),[])}),Ca=ut||function(){return ft.Date.now()};function Oa(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Ko(e,u,o,o,o,o,t)}function Ea(e,t){var n;if("function"!=typeof t)throw new Me(i);return e=ds(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Ma=qr(function(e,t,n){var r=1;if(n.length){var o=sn(n,oi(Ma));r|=l}return Ko(e,r,t,n,o)}),
Ta=qr(function(e,t,n){var r=3;if(n.length){var o=sn(n,oi(Ta));r|=l}return Ko(t,r,e,n,o)});function _a(e,t,n){var r,a,s,l,u,c,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new Me(i);function g(t){var n=r,i=a;return r=a=o,f=t,l=e.apply(i,n)}function m(e){var n=e-c;return c===o||n>=t||n<0||p&&e-f>=s}function v(){var e=Ca();if(m(e))return y(e);u=Mi(v,function(e){var n=t-(e-c);return p?mn(n,s-(e-f)):n}(e))}function y(e){return u=o,h&&r?g(e):(r=a=o,l)}function b(){var e=Ca(),n=m(e);if(r=arguments,a=
this,c=e,n){if(u===o)return function(e){return f=e,u=Mi(v,t),d?g(e):l}(c);if(p)return bo(u),u=Mi(v,t),g(c)}return u===o&&(u=Mi(v,t)),l}return t=hs(t)||0,Xa(n)&&(d=!!n.leading,s=(p="maxWait"in n)?gn(hs(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),b.cancel=function(){u!==o&&bo(u),f=0,r=c=a=u=o},b.flush=function(){return u===o?l:y(Ca())},b}var Aa=qr(function(e,t){return sr(e,1,t)}),Pa=qr(function(e,t,n){return sr(e,hs(t)||0,n)});function Da(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Me(i);
var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new (Da.Cache||$n),n}function Na(e){if("function"!=typeof e)throw new Me(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Da.Cache=$n;var Ra=vo(function(e,t){var n=(t=1==
t.length&&Va(t[0])?Pt(t[0],Yt(ii())):Pt(hr(t,1),Yt(ii()))).length;return qr(function(r){for(var o=-1,i=mn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return St(e,this,r)})}),La=qr(function(e,t){var n=sn(t,oi(La));return Ko(e,l,o,t,n)}),ja=qr(function(e,t){var n=sn(t,oi(ja));return Ko(e,64,o,t,n)}),Ia=Qo(function(e,t){return Ko(e,256,o,o,o,t)});function Fa(e,t){return e===t||e!=e&&t!=t}var za=Wo(Sr),Ha=Wo(function(e,t){return e>=t}),Ba=Tr(function(){return arguments}())?Tr:function(e){return Qa(e)&&
Ne.call(e,"callee")&&!qe.call(e,"callee")},Va=r.isArray,Wa=vt?Yt(vt):function(e){return Qa(e)&&kr(e)==P};function $a(e){return null!=e&&Ja(e.length)&&!Ya(e)}function Ua(e){return Qa(e)&&$a(e)}var qa=mt||hl,Za=yt?Yt(yt):function(e){return Qa(e)&&kr(e)==y};function Ka(e){if(!Qa(e))return!1;var t=kr(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ns(e)}function Ya(e){if(!Xa(e))return!1;var t=kr(e);return t==w||t==x||"[object AsyncFunction]"==t||"[object Proxy]"==
t}function Ga(e){return"number"==typeof e&&e==ds(e)}function Ja(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function Xa(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Qa(e){return null!=e&&"object"==typeof e}var es=bt?Yt(bt):function(e){return Qa(e)&&fi(e)==k};function ts(e){return"number"==typeof e||Qa(e)&&kr(e)==S}function ns(e){if(!Qa(e)||kr(e)!=C)return!1;var t=$e(e);if(null===t)return!0;var n=Ne.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof
n&&De.call(n)==Ie}var rs=wt?Yt(wt):function(e){return Qa(e)&&kr(e)==E},os=xt?Yt(xt):function(e){return Qa(e)&&fi(e)==M};function is(e){return"string"==typeof e||!Va(e)&&Qa(e)&&kr(e)==T}function as(e){return"symbol"==typeof e||Qa(e)&&kr(e)==_}var ss=kt?Yt(kt):function(e){return Qa(e)&&Ja(e.length)&&!!ot[kr(e)]},ls=Wo(Rr),us=Wo(function(e,t){return e<=t});function cs(e){if(!e)return[];if($a(e))return is(e)?cn(e):Eo(e);if(Ye&&e[Ye])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);
return n}(e[Ye]());var t=fi(e);return(t==k?on:t==M?ln:Fs)(e)}function fs(e){return e?(e=hs(e))===c||e===-1/0?1.7976931348623157E308*(e<0?-1:1):e==e?e:0:0===e?e:0}function ds(e){var t=fs(e),n=t%1;return t==t?n?t-n:t:0}function ps(e){return e?or(ds(e),0,p):0}function hs(e){if("number"==typeof e)return e;if(as(e))return d;if(Xa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Xa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Kt(e);var n=he.test(e);return n||me.test(e)?lt(e.slice(2),n?2:8):
pe.test(e)?d:+e}function gs(e){return Mo(e,As(e))}function ms(e){return null==e?"":io(e)}var vs=_o(function(e,t){if(wi(t)||$a(t))Mo(t,_s(t),e);else for(var n in t)Ne.call(t,n)&&Xn(e,n,t[n])}),ys=_o(function(e,t){Mo(t,As(t),e)}),bs=_o(function(e,t,n,r){Mo(t,As(t),e,r)}),ws=_o(function(e,t,n,r){Mo(t,_s(t),e,r)}),xs=Qo(rr),ks=qr(function(e,t){e=Ce(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&mi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=As(a),l=-1,u=s.length;++l<u;){var c=s[l],f=e[c];(f===o||Fa(f,Ae[c])&&
!Ne.call(e,c))&&(e[c]=a[c])}return e}),Ss=qr(function(e){return e.push(o,Go),St(Ds,o,e)});function Cs(e,t,n){var r=null==e?o:wr(e,t);return r===o?n:r}function Os(e,t){return null!=e&&di(e,t,Or)}var Es=Fo(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=je.call(t)),e[t]=n},Xs(tl)),Ms=Fo(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=je.call(t)),Ne.call(e,t)?e[t].push(n):e[t]=[n]},ii),Ts=qr(Mr);function _s(e){return $a(e)?Zn(e):Nr(e)}function As(e){return $a(e)?Zn(e,!0):function(e){if(!Xa(e))return function(e){var t=
[];if(null!=e)for(var n in Ce(e))t.push(n);return t}(e);var t=wi(e),n=[];for(var r in e)("constructor"!=r||!t&&Ne.call(e,r))&&n.push(r);return n}(e)}var Ps=_o(function(e,t,n){Fr(e,t,n)}),Ds=_o(function(e,t,n,r){Fr(e,t,n,r)}),Ns=Qo(function(e,t){var n={};if(null==e)return n;var r=!1;t=Pt(t,function(t){return t=mo(t,e),r||(r=t.length>1),t}),Mo(e,ti(e),n),r&&(n=ir(n,7,Jo));for(var o=t.length;o--;)so(n,t[o]);return n}),Rs=Qo(function(e,t){return null==e?{}:function(e,t){return Br(e,t,function(t,n){return Os(e,
n)})}(e,t)});function Ls(e,t){if(null==e)return{};var n=Pt(ti(e),function(e){return[e]});return t=ii(t),Br(e,n,function(e,n){return t(e,n[0])})}var js=Zo(_s),Is=Zo(As);function Fs(e){return null==e?[]:Gt(e,_s(e))}var zs=No(function(e,t,n){return t=t.toLowerCase(),e+(n?Hs(t):t)});function Hs(e){return Ks(ms(e).toLowerCase())}function Bs(e){return(e=ms(e))&&e.replace(ye,en).replace(Je,"")}var Vs=No(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Ws=No(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),
$s=Do("toLowerCase"),Us=No(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),qs=No(function(e,t,n){return e+(n?" ":"")+Ks(t)}),Zs=No(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ks=Do("toUpperCase");function Ys(e,t,n){return e=ms(e),(t=n?o:t)===o?function(e){return tt.test(e)}(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Gs=qr(function(e,t){try{return St(e,o,t)}catch(e){return Ka(e)?e:new xe(e)}}),Js=Qo(function(e,t){return Ot(t,
function(t){t=Li(t),nr(e,t,Ma(e[t],e))}),e});function Xs(e){return function(){return e}}var Qs=jo(),el=jo(!0);function tl(e){return e}function nl(e){return Dr("function"==typeof e?e:ir(e,1))}var rl=qr(function(e,t){return function(n){return Mr(n,e,t)}}),ol=qr(function(e,t){return function(n){return Mr(e,n,t)}});function il(e,t,n){var r=_s(t),o=br(t,r);null!=n||Xa(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=br(t,_s(t)));var i=!(Xa(n)&&"chain"in n&&!n.chain),a=Ya(e);return Ot(o,function(n){var r=t[n];
e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Eo(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Dt([this.value()],arguments))})}),e}function al(){}var sl=Ho(Pt),ll=Ho(Mt),ul=Ho(Lt);function cl(e){return vi(e)?Wt(Li(e)):function(e){return function(t){return wr(t,e)}}(e)}var fl=Vo(),dl=Vo(!0);function pl(){return[]}function hl(){return!1}var gl,ml=zo(function(e,t){return e+t},0),vl=Uo("ceil"),
yl=zo(function(e,t){return e/t},1),bl=Uo("floor"),wl=zo(function(e,t){return e*t},1),xl=Uo("round"),kl=zo(function(e,t){return e-t},0);return In.after=function(e,t){if("function"!=typeof t)throw new Me(i);return e=ds(e),function(){if(--e<1)return t.apply(this,arguments)}},In.ary=Oa,In.assign=vs,In.assignIn=ys,In.assignInWith=bs,In.assignWith=ws,In.at=xs,In.before=Ea,In.bind=Ma,In.bindAll=Js,In.bindKey=Ta,In.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Va(e)?e:[e]},
In.chain=ca,In.chunk=function(e,t,n){t=(n?mi(e,t,n):t===o)?1:gn(ds(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,l=r(dt(i/t));a<i;)l[s++]=Qr(e,a,a+=t);return l},In.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},In.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Dt(Va(n)?Eo(n):[n],hr(t,1))},In.cond=function(e){var t=null==e?0:e.length,n=ii();return e=
t?Pt(e,function(e){if("function"!=typeof e[1])throw new Me(i);return[n(e[0]),e[1]]}):[],qr(function(n){for(var r=-1;++r<t;){var o=e[r];if(St(o[0],this,n))return St(o[1],this,n)}})},In.conforms=function(e){return function(e){var t=_s(e);return function(n){return ar(n,e,t)}}(ir(e,1))},In.constant=Xs,In.countBy=pa,In.create=function(e,t){var n=Fn(e);return null==t?n:tr(n,t)},In.curry=function e(t,n,r){var i=Ko(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},In.curryRight=function e(t,n,
r){var i=Ko(t,16,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},In.debounce=_a,In.defaults=ks,In.defaultsDeep=Ss,In.defer=Aa,In.delay=Pa,In.difference=Fi,In.differenceBy=zi,In.differenceWith=Hi,In.drop=function(e,t,n){var r=null==e?0:e.length;return r?Qr(e,(t=n||t===o?1:ds(t))<0?0:t,r):[]},In.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Qr(e,0,(t=r-(t=n||t===o?1:ds(t)))<0?0:t):[]},In.dropRightWhile=function(e,t){return e&&e.length?uo(e,ii(t,3),!0,!0):[]},In.dropWhile=function(e,
t){return e&&e.length?uo(e,ii(t,3),!0):[]},In.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&mi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ds(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:ds(r))<0&&(r+=i),r=n>r?0:ps(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},In.filter=function(e,t){return(Va(e)?Tt:pr)(e,ii(t,3))},In.flatMap=function(e,t){return hr(xa(e,t),1)},In.flatMapDeep=function(e,t){return hr(xa(e,t),c)},In.flatMapDepth=function(e,t,n){return n=n===o?1:
ds(n),hr(xa(e,t),n)},In.flatten=Wi,In.flattenDeep=function(e){return null!=e&&e.length?hr(e,c):[]},In.flattenDepth=function(e,t){return null!=e&&e.length?hr(e,t=t===o?1:ds(t)):[]},In.flip=function(e){return Ko(e,512)},In.flow=Qs,In.flowRight=el,In.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},In.functions=function(e){return null==e?[]:br(e,_s(e))},In.functionsIn=function(e){return null==e?[]:br(e,As(e))},In.groupBy=ya,In.initial=function(e){return null!=
e&&e.length?Qr(e,0,-1):[]},In.intersection=Ui,In.intersectionBy=qi,In.intersectionWith=Zi,In.invert=Es,In.invertBy=Ms,In.invokeMap=ba,In.iteratee=nl,In.keyBy=wa,In.keys=_s,In.keysIn=As,In.map=xa,In.mapKeys=function(e,t){var n={};return t=ii(t,3),vr(e,function(e,r,o){nr(n,t(e,r,o),e)}),n},In.mapValues=function(e,t){var n={};return t=ii(t,3),vr(e,function(e,r,o){nr(n,r,t(e,r,o))}),n},In.matches=function(e){return jr(ir(e,1))},In.matchesProperty=function(e,t){return Ir(e,ir(t,1))},In.memoize=Da,In.merge=
Ps,In.mergeWith=Ds,In.method=rl,In.methodOf=ol,In.mixin=il,In.negate=Na,In.nthArg=function(e){return e=ds(e),qr(function(t){return zr(t,e)})},In.omit=Ns,In.omitBy=function(e,t){return Ls(e,Na(ii(t)))},In.once=function(e){return Ea(2,e)},In.orderBy=function(e,t,n,r){return null==e?[]:(Va(t)||(t=null==t?[]:[t]),Va(n=r?o:n)||(n=null==n?[]:[n]),Hr(e,t,n))},In.over=sl,In.overArgs=Ra,In.overEvery=ll,In.overSome=ul,In.partial=La,In.partialRight=ja,In.partition=ka,In.pick=Rs,In.pickBy=Ls,In.property=cl,In.propertyOf=
function(e){return function(t){return null==e?o:wr(e,t)}},In.pull=Yi,In.pullAll=Gi,In.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Vr(e,t,ii(n,2)):e},In.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Vr(e,t,o,n):e},In.pullAt=Ji,In.range=fl,In.rangeRight=dl,In.rearg=Ia,In.reject=function(e,t){return(Va(e)?Tt:pr)(e,Na(ii(t,3)))},In.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ii(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Wr(e,
o),n},In.rest=function(e,t){if("function"!=typeof e)throw new Me(i);return qr(e,t=t===o?t:ds(t))},In.reverse=Xi,In.sampleSize=function(e,t,n){return t=(n?mi(e,t,n):t===o)?1:ds(t),(Va(e)?Yn:Kr)(e,t)},In.set=function(e,t,n){return null==e?e:Yr(e,t,n)},In.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Yr(e,t,n,r)},In.shuffle=function(e){return(Va(e)?Gn:Xr)(e)},In.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&mi(e,t,n)?(t=0,n=r):(t=null==t?0:ds(t),
n=n===o?r:ds(n)),Qr(e,t,n)):[]},In.sortBy=Sa,In.sortedUniq=function(e){return e&&e.length?ro(e):[]},In.sortedUniqBy=function(e,t){return e&&e.length?ro(e,ii(t,2)):[]},In.split=function(e,t,n){return n&&"number"!=typeof n&&mi(e,t,n)&&(t=n=o),(n=n===o?p:n>>>0)?(e=ms(e))&&("string"==typeof t||null!=t&&!rs(t))&&!(t=io(t))&&rn(e)?yo(cn(e),0,n):e.split(t,n):[]},In.spread=function(e,t){if("function"!=typeof e)throw new Me(i);return t=null==t?0:gn(ds(t),0),qr(function(n){var r=n[t],o=yo(n,0,t);return r&&
Dt(o,r),St(e,this,o)})},In.tail=function(e){var t=null==e?0:e.length;return t?Qr(e,1,t):[]},In.take=function(e,t,n){return e&&e.length?Qr(e,0,(t=n||t===o?1:ds(t))<0?0:t):[]},In.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Qr(e,(t=r-(t=n||t===o?1:ds(t)))<0?0:t,r):[]},In.takeRightWhile=function(e,t){return e&&e.length?uo(e,ii(t,3),!1,!0):[]},In.takeWhile=function(e,t){return e&&e.length?uo(e,ii(t,3)):[]},In.tap=function(e,t){return t(e),e},In.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=
typeof e)throw new Me(i);return Xa(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),_a(e,t,{leading:r,maxWait:t,trailing:o})},In.thru=fa,In.toArray=cs,In.toPairs=js,In.toPairsIn=Is,In.toPath=function(e){return Va(e)?Pt(e,Li):as(e)?[e]:Eo(Ri(ms(e)))},In.toPlainObject=gs,In.transform=function(e,t,n){var r=Va(e),o=r||qa(e)||ss(e);if(t=ii(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Xa(e)&&Ya(i)?Fn($e(e)):{}}return(o?Ot:vr)(e,function(e,r,o){return t(n,e,r,o)}),n},In.unary=function(e){return Oa(e,
1)},In.union=Qi,In.unionBy=ea,In.unionWith=ta,In.uniq=function(e){return e&&e.length?ao(e):[]},In.uniqBy=function(e,t){return e&&e.length?ao(e,ii(t,2)):[]},In.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?ao(e,o,t):[]},In.unset=function(e,t){return null==e||so(e,t)},In.unzip=na,In.unzipWith=ra,In.update=function(e,t,n){return null==e?e:lo(e,t,go(n))},In.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:lo(e,t,go(n),r)},In.values=Fs,In.valuesIn=function(e){return null==
e?[]:Gt(e,As(e))},In.without=oa,In.words=Ys,In.wrap=function(e,t){return La(go(t),e)},In.xor=ia,In.xorBy=aa,In.xorWith=sa,In.zip=la,In.zipObject=function(e,t){return po(e||[],t||[],Xn)},In.zipObjectDeep=function(e,t){return po(e||[],t||[],Yr)},In.zipWith=ua,In.entries=js,In.entriesIn=Is,In.extend=ys,In.extendWith=bs,il(In,In),In.add=ml,In.attempt=Gs,In.camelCase=zs,In.capitalize=Hs,In.ceil=vl,In.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=hs(n))==n?n:0),t!==o&&(t=(t=hs(t))==t?t:0),
or(hs(e),t,n)},In.clone=function(e){return ir(e,4)},In.cloneDeep=function(e){return ir(e,5)},In.cloneDeepWith=function(e,t){return ir(e,5,t="function"==typeof t?t:o)},In.cloneWith=function(e,t){return ir(e,4,t="function"==typeof t?t:o)},In.conformsTo=function(e,t){return null==t||ar(e,t,_s(t))},In.deburr=Bs,In.defaultTo=function(e,t){return null==e||e!=e?t:e},In.divide=yl,In.endsWith=function(e,t,n){e=ms(e),t=io(t);var r=e.length,i=n=n===o?r:or(ds(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},
In.eq=Fa,In.escape=function(e){return(e=ms(e))&&K.test(e)?e.replace(q,tn):e},In.escapeRegExp=function(e){return(e=ms(e))&&ne.test(e)?e.replace(te,"\\$&"):e},In.every=function(e,t,n){var r=Va(e)?Mt:fr;return n&&mi(e,t,n)&&(t=o),r(e,ii(t,3))},In.find=ha,In.findIndex=Bi,In.findKey=function(e,t){return It(e,ii(t,3),vr)},In.findLast=ga,In.findLastIndex=Vi,In.findLastKey=function(e,t){return It(e,ii(t,3),yr)},In.floor=bl,In.forEach=ma,In.forEachRight=va,In.forIn=function(e,t){return null==e?e:gr(e,ii(t,
3),As)},In.forInRight=function(e,t){return null==e?e:mr(e,ii(t,3),As)},In.forOwn=function(e,t){return e&&vr(e,ii(t,3))},In.forOwnRight=function(e,t){return e&&yr(e,ii(t,3))},In.get=Cs,In.gt=za,In.gte=Ha,In.has=function(e,t){return null!=e&&di(e,t,Cr)},In.hasIn=Os,In.head=$i,In.identity=tl,In.includes=function(e,t,n,r){e=$a(e)?e:Fs(e),n=n&&!r?ds(n):0;var o=e.length;return n<0&&(n=gn(o+n,0)),is(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&zt(e,t,n)>-1},In.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;
var o=null==n?0:ds(n);return o<0&&(o=gn(r+o,0)),zt(e,t,o)},In.inRange=function(e,t,n){return t=fs(t),n===o?(n=t,t=0):n=fs(n),function(e,t,n){return e>=mn(t,n)&&e<gn(t,n)}(e=hs(e),t,n)},In.invoke=Ts,In.isArguments=Ba,In.isArray=Va,In.isArrayBuffer=Wa,In.isArrayLike=$a,In.isArrayLikeObject=Ua,In.isBoolean=function(e){return!0===e||!1===e||Qa(e)&&kr(e)==v},In.isBuffer=qa,In.isDate=Za,In.isElement=function(e){return Qa(e)&&1===e.nodeType&&!ns(e)},In.isEmpty=function(e){if(null==e)return!0;if($a(e)&&(Va(e)||
"string"==typeof e||"function"==typeof e.splice||qa(e)||ss(e)||Ba(e)))return!e.length;var t=fi(e);if(t==k||t==M)return!e.size;if(wi(e))return!Nr(e).length;for(var n in e)if(Ne.call(e,n))return!1;return!0},In.isEqual=function(e,t){return _r(e,t)},In.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?_r(e,t,o,n):!!r},In.isError=Ka,In.isFinite=function(e){return"number"==typeof e&&jt(e)},In.isFunction=Ya,In.isInteger=Ga,In.isLength=Ja,In.isMap=es,In.isMatch=function(e,
t){return e===t||Ar(e,t,si(t))},In.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Ar(e,t,si(t),n)},In.isNaN=function(e){return ts(e)&&e!=+e},In.isNative=function(e){if(bi(e))throw new xe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pr(e)},In.isNil=function(e){return null==e},In.isNull=function(e){return null===e},In.isNumber=ts,In.isObject=Xa,In.isObjectLike=Qa,In.isPlainObject=ns,In.isRegExp=rs,In.isSafeInteger=function(e){return Ga(e)&&e>=-9007199254740991&&
e<=f},In.isSet=os,In.isString=is,In.isSymbol=as,In.isTypedArray=ss,In.isUndefined=function(e){return e===o},In.isWeakMap=function(e){return Qa(e)&&fi(e)==A},In.isWeakSet=function(e){return Qa(e)&&"[object WeakSet]"==kr(e)},In.join=function(e,t){return null==e?"":$t.call(e,t)},In.kebabCase=Vs,In.last=Ki,In.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=ds(n))<0?gn(r+i,0):mn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,
t,i):Ft(e,Bt,i,!0)},In.lowerCase=Ws,In.lowerFirst=$s,In.lt=ls,In.lte=us,In.max=function(e){return e&&e.length?dr(e,tl,Sr):o},In.maxBy=function(e,t){return e&&e.length?dr(e,ii(t,2),Sr):o},In.mean=function(e){return Vt(e,tl)},In.meanBy=function(e,t){return Vt(e,ii(t,2))},In.min=function(e){return e&&e.length?dr(e,tl,Rr):o},In.minBy=function(e,t){return e&&e.length?dr(e,ii(t,2),Rr):o},In.stubArray=pl,In.stubFalse=hl,In.stubObject=function(){return{}},In.stubString=function(){return""},In.stubTrue=function(){return!0},
In.multiply=wl,In.nth=function(e,t){return e&&e.length?zr(e,ds(t)):o},In.noConflict=function(){return ft._===this&&(ft._=Fe),this},In.noop=al,In.now=Ca,In.pad=function(e,t,n){e=ms(e);var r=(t=ds(t))?un(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Bo(pt(o),n)+e+Bo(dt(o),n)},In.padEnd=function(e,t,n){e=ms(e);var r=(t=ds(t))?un(e):0;return t&&r<t?e+Bo(t-r,n):e},In.padStart=function(e,t,n){e=ms(e);var r=(t=ds(t))?un(e):0;return t&&r<t?Bo(t-r,n)+e:e},In.parseInt=function(e,t,n){return n||null==t?t=0:
t&&(t=+t),yn(ms(e).replace(re,""),t||0)},In.random=function(e,t,n){if(n&&"boolean"!=typeof n&&mi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=fs(e),t===o?(t=e,e=0):t=fs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=bn();return mn(e+i*(t-e+st("1e-"+((i+"").length-1))),t)}return $r(e,t)},In.reduce=function(e,t,n){var r=Va(e)?Nt:Ut,o=arguments.length<3;return r(e,ii(t,4),n,o,ur)},In.reduceRight=function(e,t,n){var r=Va(e)?Rt:Ut,o=arguments.length<
3;return r(e,ii(t,4),n,o,cr)},In.repeat=function(e,t,n){return t=(n?mi(e,t,n):t===o)?1:ds(t),Ur(ms(e),t)},In.replace=function(){var e=arguments,t=ms(e[0]);return e.length<3?t:t.replace(e[1],e[2])},In.result=function(e,t,n){var r=-1,i=(t=mo(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Li(t[r])];a===o&&(r=i,a=n),e=Ya(a)?a.call(e):a}return e},In.round=xl,In.runInContext=e,In.sample=function(e){return(Va(e)?Kn:Zr)(e)},In.size=function(e){if(null==e)return 0;if($a(e))return is(e)?un(e):e.length;
var t=fi(e);return t==k||t==M?e.size:Nr(e).length},In.snakeCase=Us,In.some=function(e,t,n){var r=Va(e)?Lt:eo;return n&&mi(e,t,n)&&(t=o),r(e,ii(t,3))},In.sortedIndex=function(e,t){return to(e,t)},In.sortedIndexBy=function(e,t,n){return no(e,t,ii(n,2))},In.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=to(e,t);if(r<n&&Fa(e[r],t))return r}return-1},In.sortedLastIndex=function(e,t){return to(e,t,!0)},In.sortedLastIndexBy=function(e,t,n){return no(e,t,ii(n,2),!0)},In.sortedLastIndexOf=
function(e,t){if(null!=e&&e.length){var n=to(e,t,!0)-1;if(Fa(e[n],t))return n}return-1},In.startCase=qs,In.startsWith=function(e,t,n){return e=ms(e),n=null==n?0:or(ds(n),0,e.length),t=io(t),e.slice(n,n+t.length)==t},In.subtract=kl,In.sum=function(e){return e&&e.length?qt(e,tl):0},In.sumBy=function(e,t){return e&&e.length?qt(e,ii(t,2)):0},In.template=function(e,t,n){var r=In.templateSettings;n&&mi(e,t,n)&&(t=o),e=ms(e),t=bs({},t,r,Yo);var i,a,s=bs({},t.imports,r.imports,Yo),l=_s(s),u=Gt(s,l),c=0,f=
t.interpolate||be,d="__p += '",p=Oe((t.escape||be).source+"|"+f.source+"|"+(f===J?fe:be).source+"|"+(t.evaluate||be).source+"|$","g"),h="//# sourceURL="+(Ne.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(p,function(t,n,r,o,s,l){return r||(r=o),d+=e.slice(c,l).replace(we,nn),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),s&&(a=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+t.length,t}),d+="';\n";var g=Ne.call(t,
"variable")&&t.variable;if(g){if(ue.test(g))throw new xe("Invalid `variable` option passed into `_.template`");}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(V,""):d).replace(W,"$1").replace($,"$1;"),d="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=Gs(function(){return ke(l,h+"return "+d).apply(o,u)});if(m.source=d,
Ka(m))throw m;return m},In.times=function(e,t){if((e=ds(e))<1||e>f)return[];var n=p,r=mn(e,p);t=ii(t),e-=p;for(var o=Zt(r,t);++n<e;)t(n);return o},In.toFinite=fs,In.toInteger=ds,In.toLength=ps,In.toLower=function(e){return ms(e).toLowerCase()},In.toNumber=hs,In.toSafeInteger=function(e){return e?or(ds(e),-9007199254740991,f):0===e?e:0},In.toString=ms,In.toUpper=function(e){return ms(e).toUpperCase()},In.trim=function(e,t,n){if((e=ms(e))&&(n||t===o))return Kt(e);if(!e||!(t=io(t)))return e;var r=cn(e),
i=cn(t);return yo(r,Xt(r,i),Qt(r,i)+1).join("")},In.trimEnd=function(e,t,n){if((e=ms(e))&&(n||t===o))return e.slice(0,fn(e)+1);if(!e||!(t=io(t)))return e;var r=cn(e);return yo(r,0,Qt(r,cn(t))+1).join("")},In.trimStart=function(e,t,n){if((e=ms(e))&&(n||t===o))return e.replace(re,"");if(!e||!(t=io(t)))return e;var r=cn(e);return yo(r,Xt(r,cn(t))).join("")},In.truncate=function(e,t){var n=30,r="...";if(Xa(t)){var i="separator"in t?t.separator:i;n="length"in t?ds(t.length):n,r="omission"in t?io(t.omission):
r}var a=(e=ms(e)).length;if(rn(e)){var s=cn(e);a=s.length}if(n>=a)return e;var l=n-un(r);if(l<1)return r;var u=s?yo(s,0,l).join(""):e.slice(0,l);if(i===o)return u+r;if(s&&(l+=u.length-l),rs(i)){if(e.slice(l).search(i)){var c,f=u;for(i.global||(i=Oe(i.source,ms(de.exec(i))+"g")),i.lastIndex=0;c=i.exec(f);)var d=c.index;u=u.slice(0,d===o?l:d)}}else if(e.indexOf(io(i),l)!=l){var p=u.lastIndexOf(i);p>-1&&(u=u.slice(0,p))}return u+r},In.unescape=function(e){return(e=ms(e))&&Z.test(e)?e.replace(U,dn):e},
In.uniqueId=function(e){var t=++Re;return ms(e)+t},In.upperCase=Zs,In.upperFirst=Ks,In.each=ma,In.eachRight=va,In.first=$i,il(In,(gl={},vr(In,function(e,t){Ne.call(In.prototype,t)||(gl[t]=e)}),gl),{chain:!1}),In.VERSION="4.17.21",Ot(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){In[e].placeholder=In}),Ot(["drop","take"],function(e,t){Bn.prototype[e]=function(n){n=n===o?1:gn(ds(n),0);var r=this.__filtered__&&!t?new Bn(this):this.clone();return r.__filtered__?r.__takeCount__=
mn(n,r.__takeCount__):r.__views__.push({size:mn(n,p),type:e+(r.__dir__<0?"Right":"")}),r},Bn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Ot(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;Bn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ii(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Ot(["head","last"],function(e,t){var n="take"+(t?"Right":"");Bn.prototype[e]=function(){return this[n](1).value()[0]}}),Ot(["initial",
"tail"],function(e,t){var n="drop"+(t?"":"Right");Bn.prototype[e]=function(){return this.__filtered__?new Bn(this):this[n](1)}}),Bn.prototype.compact=function(){return this.filter(tl)},Bn.prototype.find=function(e){return this.filter(e).head()},Bn.prototype.findLast=function(e){return this.reverse().find(e)},Bn.prototype.invokeMap=qr(function(e,t){return"function"==typeof e?new Bn(this):this.map(function(n){return Mr(n,e,t)})}),Bn.prototype.reject=function(e){return this.filter(Na(ii(e)))},Bn.prototype.slice=
function(e,t){e=ds(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Bn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=ds(t))<0?n.dropRight(-t):n.take(t-e)),n)},Bn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Bn.prototype.toArray=function(){return this.take(p)},vr(Bn.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=In[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(In.prototype[t]=
function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Bn,u=s[0],c=l||Va(t),f=function(e){var t=i.apply(In,Dt([e],s));return r&&d?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var d=this.__chain__,p=!!this.__actions__.length,h=a&&!d,g=l&&!p;if(!a&&c){t=g?t:new Bn(this);var m=e.apply(t,s);return m.__actions__.push({func:fa,args:[f],thisArg:o}),new Hn(m,d)}return h&&g?e.apply(this,s):(m=this.thru(f),h?r?m.value()[0]:m.value():m)})}),Ot(["pop","push","shift","sort","splice","unshift"],
function(e){var t=Te[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);In.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Va(o)?o:[],e)}return this[n](function(n){return t.apply(Va(n)?n:[],e)})}}),vr(Bn.prototype,function(e,t){var n=In[t];if(n){var r=n.name+"";Ne.call(Tn,r)||(Tn[r]=[]),Tn[r].push({name:t,func:n})}}),Tn[Io(o,2).name]=[{name:"wrapper",func:o}],Bn.prototype.clone=function(){var e=new Bn(this.__wrapped__);
return e.__actions__=Eo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Eo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Eo(this.__views__),e},Bn.prototype.reverse=function(){if(this.__filtered__){var e=new Bn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Bn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Va(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<
o;){var i=n[r],a=i.size;switch(i.type){case "drop":e+=a;break;case "dropRight":t-=a;break;case "take":t=mn(t,e+a);break;case "takeRight":e=gn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,l=s-a,u=r?s:a-1,c=this.__iteratees__,f=c.length,d=0,p=mn(l,this.__takeCount__);if(!n||!r&&o==l&&p==l)return co(e,this.__actions__);var h=[];e:for(;l--&&d<p;){for(var g=-1,m=e[u+=t];++g<f;){var v=c[g],y=v.iteratee,b=v.type,w=y(m);if(2==b)m=w;else if(!w){if(1==b)continue e;break e}}h[d++]=m}return h},
In.prototype.at=da,In.prototype.chain=function(){return ca(this)},In.prototype.commit=function(){return new Hn(this.value(),this.__chain__)},In.prototype.next=function(){this.__values__===o&&(this.__values__=cs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},In.prototype.plant=function(e){for(var t,n=this;n instanceof zn;){var r=Ii(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=
e,t},In.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Bn){var t=e;return this.__actions__.length&&(t=new Bn(this)),(t=t.reverse()).__actions__.push({func:fa,args:[Xi],thisArg:o}),new Hn(t,this.__chain__)}return this.thru(Xi)},In.prototype.toJSON=In.prototype.valueOf=In.prototype.value=function(){return co(this.__wrapped__,this.__actions__)},In.prototype.first=In.prototype.head,Ye&&(In.prototype[Ye]=function(){return this}),In}();ft._=pn,(r=function(){return pn}.call(t,n,t,e))===
o||(e.exports=r)}.call(this)},5161:(e,t,n)=>{var r=n(9932),o=n(7206),i=n(9199),a=n(1469);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},6604:(e,t,n)=>{var r=n(9465),o=n(7816),i=n(7206);e.exports=function(e,t){var n={};return t=i(t,3),o(e,function(e,o,i){r(n,o,t(e,o,i))}),n}},8306:(e,t,n)=>{var r=n(3369);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);
var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new (o.Cache||r),n}o.Cache=r,e.exports=o},3857:(e,t,n)=>{var r=n(4066),o=n(1463)(function(e,t,n){r(e,t,n)});e.exports=o},7771:(e,t,n)=>{var r=n(5639);e.exports=function(){return r.Date.now()}},9601:(e,t,n)=>{var r=n(371),o=n(9152),i=n(5403),a=n(327);e.exports=function(e){return i(e)?r(a(e)):o(e)}},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},3493:(e,t,n)=>{var r=n(3279),o=n(3218);e.exports=function(e,
t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},4841:(e,t,n)=>{var r=n(7561),o=n(3218),i=n(3448),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;
e=r(e);var n=s.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}},84:(e,t,n)=>{var r=n(9932),o=n(278),i=n(1469),a=n(3448),s=n(5514),l=n(327),u=n(9833);e.exports=function(e){return i(e)?r(e,l):a(e)?[e]:o(s(u(e)))}},3678:(e,t,n)=>{var r=n(8363),o=n(1704);e.exports=function(e){return r(e,o(e))}},9833:(e,t,n)=>{var r=n(531);e.exports=function(e){return null==e?"":r(e)}},1700:(e,t,n)=>{var r=n(8805)("toUpperCase");e.exports=r},7418:e=>{var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,
r=Object.prototype.propertyIsEnumerable;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,o){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var u in i=Object(arguments[l]))n.call(i,u)&&(s[u]=i[u]);if(t){a=t(i);for(var c=0;c<a.length;c++)r.call(i,a[c])&&(s[a[c]]=i[a[c]])}}return s}},4244:e=>{var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},609:(e,t,n)=>{var r=n(4289),o=n(5559),i=n(4244),a=n(5624),s=
n(2281),l=o(a(),Object);r(l,{getPolyfill:a,implementation:i,shim:s}),e.exports=l},5624:(e,t,n)=>{var r=n(4244);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},2281:(e,t,n)=>{var r=n(5624),o=n(4289);e.exports=function(){var e=r();return o(Object,{is:e},{is:function(){return Object.is!==e}}),e}},8987:(e,t,n)=>{var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n(1414),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),
u=s.call(function(){},"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,
$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),r=a(e),s=t&&"[object String]"===i.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=u&&n;if(s&&
e.length>0&&!o.call(e,0))for(var g=0;g<e.length;++g)d.push(String(g));if(r&&e.length>0)for(var m=0;m<e.length;++m)d.push(String(m));else for(var v in e)h&&"prototype"===v||!o.call(e,v)||d.push(String(v));if(l)for(var y=function(e){if("undefined"==typeof window||!p)return f(e);try{return f(e)}catch(e){return!1}}(e),b=0;b<c.length;++b)y&&"constructor"===c[b]||!o.call(e,c[b])||d.push(c[b]);return d}}e.exports=r},2215:(e,t,n)=>{var r=Array.prototype.slice,o=n(1414),i=Object.keys,a=i?function(e){return i(e)}:
n(8987),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return o(e)?s(r.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},1414:e=>{var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),
r}},2703:(e,t,n)=>{var r=n(414);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}},5697:(e,t,n)=>{e.exports=n(2703)()},414:e=>{e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7830:(e,t,n)=>{n.d(t,{iS:()=>On});var r=n(7294),o=n(9941),i={},a=function(e,t,n,r){var o=e+"-"+t+"-"+n+(r?"-server":"");if(i[o])return i[o];var a=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var o=r?new r:document.createElement("canvas");
o.width=2*n,o.height=2*n;var i=o.getContext("2d");return i?(i.fillStyle=e,i.fillRect(0,0,o.width,o.height),i.fillStyle=t,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),o.toDataURL()):null}(e,t,n,r);return i[o]=a,a},s=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},l=function(e){var t=e.white,n=e.grey,i=e.size,l=e.renderers,u=e.borderRadius,c=e.boxShadow,f=e.children,d=(0,o.default)({default:{grid:{borderRadius:u,
boxShadow:c,absolute:"0px 0px 0px 0px",background:"url("+a(t,n,i,l.canvas)+") center left"}}});return(0,r.isValidElement)(f)?r.cloneElement(f,s({},f.props,{style:s({},f.props.style,d.grid)})):r.createElement("div",{style:d.grid})};l.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};const u=l;var c=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},f=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}}();function d(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}const p=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");
}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=d(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.handleChange=function(e){var t=function(e,t,n,r,o){var i,a,s=o.clientWidth,l=o.clientHeight,u="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,c="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,f=u-(o.getBoundingClientRect().left+window.pageXOffset),d=c-(o.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){if(i=
d<0?0:d>l?1:Math.round(100*d/l)/100,t.a!==i)return{h:t.h,s:t.s,l:t.l,a:i,source:"rgb"}}else if(r!==(a=f<0?0:f>s?1:Math.round(100*f/s)/100))return{h:t.h,s:t.s,l:t.l,a:a,source:"rgb"};return null}(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},
r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},d(r,n)}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)}(t,e),f(t,[{key:"componentWillUnmount",
value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,o.default)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n           rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},
container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n           rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:c({},this.props.style)},{vertical:"vertical"===
this.props.direction,overwrite:!0});return r.createElement("div",{style:n.alpha},r.createElement("div",{style:n.checkboard},r.createElement(u,{renderers:this.props.renderers})),r.createElement("div",{style:n.gradient}),r.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.createElement("div",{style:n.pointer},this.props.pointer?r.createElement(this.props.pointer,this.props):r.createElement("div",
{style:n.slider}))))}}]),t}(r.PureComponent||r.Component);var h=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}}(),g=[38,40],m=1;const v=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,t);var n=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,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t,r=function(e){return Number(String(e).replace(/%/g,""))}(e.target.value);if(!isNaN(r)&&(t=e.keyCode,g.indexOf(t)>-1)){var o=n.getArrowOffset(),i=38===e.keyCode?r+o:r-o;n.setUpdatedValue(i,
e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",
n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId="rc-editable-input-"+m++,n}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)}(t,e),h(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,
t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,o.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&
this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return r.createElement("div",{style:t.wrap},r.createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,
placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?r.createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(r.PureComponent||r.Component);var y=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}}();function b(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}const w=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=b(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.handleChange=function(e){var t=function(e,t,
n,r){var o,i,a=r.clientWidth,s=r.clientHeight,l="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,u="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,c=l-(r.getBoundingClientRect().left+window.pageXOffset),f=u-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){if(o=f<0?359:f>s?0:360*(-100*f/s+100)/100,n.h!==o)return{h:o,s:n.s,l:n.l,a:n.a,source:"hsl"}}else if(i=c<0?0:c>a?359:100*c/a*360/100,n.h!==i)return{h:i,s:n.s,l:n.l,a:n.a,source:"hsl"};return null}(e,r.props.direction,
r.props.hsl,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},b(r,n)}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)}(t,e),y(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,i=(0,o.default)({default:{hue:{absolute:"0px 0px 0px 0px",
borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return r.createElement("div",{style:i.hue},
r.createElement("div",{className:"hue-"+n,style:i.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.createElement("style",null,"\n            .hue-horizontal {\n              background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n                33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n              background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n                17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n            }\n\n            .hue-vertical {\n              background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n                #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n              background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n                #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n            }\n          "),
r.createElement("div",{style:i.pointer},this.props.pointer?r.createElement(this.props.pointer,this.props):r.createElement("div",{style:i.slider}))))}}]),t}(r.PureComponent||r.Component);var x=n(5697),k=n.n(x);const S=function(e,t){return e===t||e!=e&&t!=t},C=function(e,t){for(var n=e.length;n--;)if(S(e[n][0],t))return n;return-1};var O=Array.prototype.splice;function E(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}E.prototype.clear=function(){this.__data__=
[],this.size=0},E.prototype.delete=function(e){var t=this.__data__,n=C(t,e);return!(n<0||(n==t.length-1?t.pop():O.call(t,n,1),--this.size,0))},E.prototype.get=function(e){var t=this.__data__,n=C(t,e);return n<0?void 0:t[n][1]},E.prototype.has=function(e){return C(this.__data__,e)>-1},E.prototype.set=function(e,t){var n=this.__data__,r=C(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const M=E,T="object"==typeof global&&global&&global.Object===Object&&global;var _="object"==typeof self&&
self&&self.Object===Object&&self;const A=T||_||Function("return this")(),P=A.Symbol;var D=Object.prototype,N=D.hasOwnProperty,R=D.toString,L=P?P.toStringTag:void 0,j=Object.prototype.toString,I=P?P.toStringTag:void 0;const F=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":I&&I in Object(e)?function(e){var t=N.call(e,L),n=e[L];try{e[L]=void 0;var r=!0}catch(e){}var o=R.call(e);return r&&(t?e[L]=n:delete e[L]),o}(e):function(e){return j.call(e)}(e)},z=function(e){var t=typeof e;
return null!=e&&("object"==t||"function"==t)},H=function(e){if(!z(e))return!1;var t=F(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},B=A["__core-js_shared__"];var V,W=(V=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||""))?"Symbol(src)_1."+V:"",$=Function.prototype.toString;const U=function(e){if(null!=e){try{return $.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var q=/^\[object .+?Constructor\]$/,Z=Function.prototype,K=Object.prototype,
Y=Z.toString,G=K.hasOwnProperty,J=RegExp("^"+Y.call(G).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const X=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!z(e)||(t=e,W&&W in t))&&(H(e)?J:q).test(U(e));var t}(n)?n:void 0},Q=X(A,"Map"),ee=X(Object,"create");var te=Object.prototype.hasOwnProperty,ne=Object.prototype.hasOwnProperty;function re(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<
n;){var r=e[t];this.set(r[0],r[1])}}re.prototype.clear=function(){this.__data__=ee?ee(null):{},this.size=0},re.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},re.prototype.get=function(e){var t=this.__data__;if(ee){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return te.call(t,e)?t[e]:void 0},re.prototype.has=function(e){var t=this.__data__;return ee?void 0!==t[e]:ne.call(t,e)},re.prototype.set=function(e,t){var n=this.__data__;return this.size+=
this.has(e)?0:1,n[e]=ee&&void 0===t?"__lodash_hash_undefined__":t,this};const oe=re,ie=function(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map};function ae(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ae.prototype.clear=function(){this.size=0,this.__data__={hash:new oe,map:new (Q||M),string:new oe}},ae.prototype.delete=function(e){var t=
ie(this,e).delete(e);return this.size-=t?1:0,t},ae.prototype.get=function(e){return ie(this,e).get(e)},ae.prototype.has=function(e){return ie(this,e).has(e)},ae.prototype.set=function(e,t){var n=ie(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};const se=ae;function le(e){var t=this.__data__=new M(e);this.size=t.size}le.prototype.clear=function(){this.__data__=new M,this.size=0},le.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},le.prototype.get=
function(e){return this.__data__.get(e)},le.prototype.has=function(e){return this.__data__.has(e)},le.prototype.set=function(e,t){var n=this.__data__;if(n instanceof M){var r=n.__data__;if(!Q||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new se(r)}return n.set(e,t),this.size=n.size,this};const ue=le,ce=function(){try{var e=X(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),fe=function(e,t,n){"__proto__"==t&&ce?ce(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):
e[t]=n},de=function(e,t,n){(void 0!==n&&!S(e[t],n)||void 0===n&&!(t in e))&&fe(e,t,n)},pe=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var s=i[++r];if(!1===t(o[s],s,o))break}return e};var he="object"==typeof exports&&exports&&!exports.nodeType&&exports,ge=he&&"object"==typeof module&&module&&!module.nodeType&&module,me=ge&&ge.exports===he?A.Buffer:void 0;me&&me.allocUnsafe;const ve=A.Uint8Array;var ye=Object.create;const be=function(){function e(){}return function(t){if(!z(t))return{};
if(ye)return ye(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),we=function(e,t){return function(n){return e(t(n))}},xe=we(Object.getPrototypeOf,Object);var ke=Object.prototype;const Se=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ke)},Ce=function(e){return null!=e&&"object"==typeof e},Oe=function(e){return Ce(e)&&"[object Arguments]"==F(e)};var Ee=Object.prototype,Me=Ee.hasOwnProperty,Te=Ee.propertyIsEnumerable;const _e=Oe(function(){return arguments}())?
Oe:function(e){return Ce(e)&&Me.call(e,"callee")&&!Te.call(e,"callee")},Ae=Array.isArray,Pe=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},De=function(e){return null!=e&&Pe(e.length)&&!H(e)};var Ne="object"==typeof exports&&exports&&!exports.nodeType&&exports,Re=Ne&&"object"==typeof module&&module&&!module.nodeType&&module,Le=Re&&Re.exports===Ne?A.Buffer:void 0;const je=(Le?Le.isBuffer:void 0)||function(){return!1};var Ie=Function.prototype,Fe=Object.prototype,ze=Ie.toString,
He=Fe.hasOwnProperty,Be=ze.call(Object),Ve={};Ve["[object Float32Array]"]=Ve["[object Float64Array]"]=Ve["[object Int8Array]"]=Ve["[object Int16Array]"]=Ve["[object Int32Array]"]=Ve["[object Uint8Array]"]=Ve["[object Uint8ClampedArray]"]=Ve["[object Uint16Array]"]=Ve["[object Uint32Array]"]=!0,Ve["[object Arguments]"]=Ve["[object Array]"]=Ve["[object ArrayBuffer]"]=Ve["[object Boolean]"]=Ve["[object DataView]"]=Ve["[object Date]"]=Ve["[object Error]"]=Ve["[object Function]"]=Ve["[object Map]"]=Ve["[object Number]"]=
Ve["[object Object]"]=Ve["[object RegExp]"]=Ve["[object Set]"]=Ve["[object String]"]=Ve["[object WeakMap]"]=!1;var We="object"==typeof exports&&exports&&!exports.nodeType&&exports,$e=We&&"object"==typeof module&&module&&!module.nodeType&&module,Ue=$e&&$e.exports===We&&T.process,qe=function(){try{return $e&&$e.require&&$e.require("util").types||Ue&&Ue.binding&&Ue.binding("util")}catch(e){}}(),Ze=qe&&qe.isTypedArray;const Ke=Ze?(Ye=Ze,function(e){return Ye(e)}):function(e){return Ce(e)&&Pe(e.length)&&
!!Ve[F(e)]};var Ye;const Ge=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var Je=Object.prototype.hasOwnProperty;const Xe=function(e,t,n){var r=e[t];Je.call(e,t)&&S(r,n)&&(void 0!==n||t in e)||fe(e,t,n)};var Qe=/^(?:0|[1-9]\d*)$/;const et=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Qe.test(e))&&e>-1&&e%1==0&&e<t};var tt=Object.prototype.hasOwnProperty;const nt=function(e,t){var n=Ae(e),r=!n&&_e(e),o=!n&&
!r&&je(e),i=!n&&!r&&!o&&Ke(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var u in e)!t&&!tt.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||et(u,l))||s.push(u);return s};var rt=Object.prototype.hasOwnProperty;const ot=function(e){return De(e)?nt(e,!0):function(e){if(!z(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=
Se(e),n=[];for(var r in e)("constructor"!=r||!t&&rt.call(e,r))&&n.push(r);return n}(e)},it=function(e,t,n,r,o,i,a){var s,l=Ge(e,n),u=Ge(t,n),c=a.get(u);if(c)de(e,n,c);else{var f=i?i(l,u,n+"",e,t,a):void 0,d=void 0===f;if(d){var p=Ae(u),h=!p&&je(u),g=!p&&!h&&Ke(u);f=u,p||h||g?Ae(l)?f=l:Ce(s=l)&&De(s)?f=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(l):h?(d=!1,f=function(e,t){return e.slice()}(u)):g?(d=!1,f=function(e,t){var n,r,o=t?(r=new (n=e.buffer).constructor(n.byteLength),
(new ve(r)).set(new ve(n)),r):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}(u,!0)):f=[]:function(e){if(!Ce(e)||"[object Object]"!=F(e))return!1;var t=xe(e);if(null===t)return!0;var n=He.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ze.call(n)==Be}(u)||_e(u)?(f=l,_e(l)?f=function(e){return function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=void 0;void 0===l&&(l=e[s]),o?fe(n,s,l):Xe(n,s,l)}return n}(e,ot(e))}(l):z(l)&&!H(l)||
(f=function(e){return"function"!=typeof e.constructor||Se(e)?{}:be(xe(e))}(u))):d=!1}d&&(a.set(u,f),o(f,u,r,i,a),a.delete(u)),de(e,n,f)}},at=function e(t,n,r,o,i){t!==n&&pe(n,function(a,s){if(i||(i=new ue),z(a))it(t,n,s,r,e,o,i);else{var l=o?o(Ge(t,s),a,s+"",t,n,i):void 0;void 0===l&&(l=a),de(t,s,l)}},ot)},st=function(e){return e};var lt=Math.max;const ut=ce?function(e,t){return ce(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:st;var ct=Date.now;
const ft=function(e){var t=0,n=0;return function(){var r=ct(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ut),dt=(pt=function(e,t,n){at(e,t,n)},function(e,t){return ft(function(e,t,n){return t=lt(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=lt(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,
n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}(e,t,st),e+"")}(function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,i=r>2?t[2]:void 0;for(o=pt.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(e,t,n){if(!z(n))return!1;var r=typeof t;return!!("number"==r?De(n)&&et(t,n.length):"string"==r&&t in n)&&S(n[t],e)}(t[0],t[1],i)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var a=t[n];a&&pt(e,a,n)}return e}));var pt,ht=function(e){var t=
e.zDepth,n=e.radius,i=e.background,a=e.children,s=e.styles,l=void 0===s?{}:s,u=(0,o.default)(dt({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:n,background:i}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},
"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},l),{"zDepth-1":1===t});return r.createElement("div",{style:u.wrap},r.createElement("div",{style:u.bg}),r.createElement("div",{style:u.content},a))};ht.propTypes={background:k().string,zDepth:k().oneOf([0,1,2,3,4,5]),radius:k().number,styles:k().object},ht.defaultProps=
{background:"#fff",zDepth:1,radius:2,styles:{}};const gt=ht,mt=function(){return A.Date.now()};var vt=/\s/,yt=/^\s+/;const bt=function(e){return"symbol"==typeof e||Ce(e)&&"[object Symbol]"==F(e)};var wt=/^[-+]0x[0-9a-f]+$/i,xt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,St=parseInt;const Ct=function(e){if("number"==typeof e)return e;if(bt(e))return NaN;if(z(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=z(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=function(e){return e?e.slice(0,function(e){for(var t=
e.length;t--&&vt.test(e.charAt(t)););return t}(e)+1).replace(yt,""):e}(e);var n=xt.test(e);return n||kt.test(e)?St(e.slice(2),n?2:8):wt.test(e)?NaN:+e};var Ot=Math.max,Et=Math.min;const Mt=function(e,t,n){var r,o,i,a,s,l,u=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,u=t,a=e.apply(i,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||f&&e-u>=i}function g(){var e=mt();if(h(e))return m(e);s=setTimeout(g,function(e){var n=
t-(e-l);return f?Et(n,i-(e-u)):n}(e))}function m(e){return s=void 0,d&&r?p(e):(r=o=void 0,a)}function v(){var e=mt(),n=h(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return u=e,s=setTimeout(g,t),c?p(e):a}(l);if(f)return clearTimeout(s),s=setTimeout(g,t),p(l)}return void 0===s&&(s=setTimeout(g,t)),a}return t=Ct(t)||0,z(n)&&(c=!!n.leading,i=(f="maxWait"in n)?Ot(Ct(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),v.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=o=s=void 0},
v.flush=function(){return void 0===s?a:m(mt())},v};var Tt=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}}(),_t=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,t);var n=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,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=function(e){"function"==typeof n.props.onChange&&n.throttle(n.props.onChange,function(e,t,n){var r=n.getBoundingClientRect(),o=r.width,i=r.height,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=a-(n.getBoundingClientRect().left+window.pageXOffset),u=s-(n.getBoundingClientRect().top+window.pageYOffset);
l<0?l=0:l>o&&(l=o),u<0?u=0:u>i&&(u=i);var c=l/o,f=1-u/i;return{h:t.h,s:c,v:f,a:t.a,source:"hsv"}}(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e);var t=n.getContainerRenderWindow();t.addEventListener("mousemove",n.handleChange),t.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=function(e,t,n){var r=!0,o=!0;return z(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Mt(e,50,{leading:r,maxWait:50,
trailing:o})}(function(e,t,n){e(t,n)}),n}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)}(t,e),Tt(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",
value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,i=t.white,a=t.black,s=t.pointer,l=t.circle,u=(0,o.default)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+
",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n            0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},
custom:{color:n,white:i,black:a,pointer:s,circle:l}},{custom:!!this.props.style});return r.createElement("div",{style:u.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.createElement("style",null,"\n          .saturation-white {\n            background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n            background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n          }\n          .saturation-black {\n            background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n            background: linear-gradient(to top, #000, rgba(0,0,0,0));\n          }\n        "),
r.createElement("div",{style:u.white,className:"saturation-white"},r.createElement("div",{style:u.black,className:"saturation-black"}),r.createElement("div",{style:u.pointer},this.props.pointer?r.createElement(this.props.pointer,this.props):r.createElement("div",{style:u.circle}))))}}]),t}(r.PureComponent||r.Component);const At=_t,Pt=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},Dt=we(Object.keys,Object);var Nt=Object.prototype.hasOwnProperty;const Rt=function(e){return De(e)?
nt(e):function(e){if(!Se(e))return Dt(e);var t=[];for(var n in Object(e))Nt.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)},Lt=function(e,t){if(null==e)return e;if(!De(e))return function(e,t){return e&&pe(e,t,Rt)}(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e};function jt(e){return jt="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},jt(e)}var It=/^\s+/,Ft=/\s+$/;function zt(e,t){if(t=t||{},(e=e||"")instanceof zt)return e;if(!(this instanceof zt))return new zt(e,t);var n=function(e){var t,n,r,o={r:0,g:0,b:0},i=1,a=null,s=null,l=null,u=!1,c=!1;return"string"==typeof e&&(e=function(e){e=e.replace(It,"").replace(Ft,"").toLowerCase();var t,n=!1;if(nn[e])e=nn[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=mn.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=mn.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],
a:t[4]}:(t=mn.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=mn.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=mn.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=mn.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=mn.hex8.exec(e))?{r:ln(t[1]),g:ln(t[2]),b:ln(t[3]),a:dn(t[4]),format:n?"name":"hex8"}:(t=mn.hex6.exec(e))?{r:ln(t[1]),g:ln(t[2]),b:ln(t[3]),format:n?"name":"hex"}:(t=mn.hex4.exec(e))?{r:ln(t[1]+""+t[1]),g:ln(t[2]+""+t[2]),b:ln(t[3]+""+t[3]),a:dn(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=mn.hex3.exec(e))&&
{r:ln(t[1]+""+t[1]),g:ln(t[2]+""+t[2]),b:ln(t[3]+""+t[3]),format:n?"name":"hex"}}(e)),"object"==jt(e)&&(vn(e.r)&&vn(e.g)&&vn(e.b)?(t=e.r,n=e.g,r=e.b,o={r:255*an(t,255),g:255*an(n,255),b:255*an(r,255)},u=!0,c="%"===String(e.r).substr(-1)?"prgb":"rgb"):vn(e.h)&&vn(e.s)&&vn(e.v)?(a=cn(e.s),s=cn(e.v),o=function(e,t,n){e=6*an(e,360),t=an(t,100),n=an(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6;return{r:255*[n,a,i,i,s,n][l],g:255*[s,n,n,a,i,i][l],b:255*[i,i,s,n,n,a][l]}}(e.h,
a,s),u=!0,c="hsv"):vn(e.h)&&vn(e.s)&&vn(e.l)&&(a=cn(e.s),l=cn(e.l),o=function(e,t,n){var r,o,i;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=an(e,360),t=an(t,100),n=an(n,100),0===t)r=o=i=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=a(l,s,e+1/3),o=a(l,s,e),i=a(l,s,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,a,l),u=!0,c="hsl"),e.hasOwnProperty("a")&&(i=e.a)),i=on(i),{ok:u,format:e.format||c,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,
0)),b:Math.min(255,Math.max(o.b,0)),a:i}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function Ht(e,t,n){e=an(e,255),t=an(t,255),n=an(n,255);var r,o,i=Math.max(e,t,n),a=Math.min(e,t,n),s=(i+a)/2;if(i==a)r=o=0;else{var l=i-a;switch(o=
s>.5?l/(2-i-a):l/(i+a),i){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,l:s}}function Bt(e,t,n){e=an(e,255),t=an(t,255),n=an(n,255);var r,o,i=Math.max(e,t,n),a=Math.min(e,t,n),s=i,l=i-a;if(o=0===i?0:l/i,i==a)r=0;else{switch(i){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,v:s}}function Vt(e,t,n,r){var o=[un(Math.round(e).toString(16)),un(Math.round(t).toString(16)),un(Math.round(n).toString(16))];
return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Wt(e,t,n,r){return[un(fn(r)),un(Math.round(e).toString(16)),un(Math.round(t).toString(16)),un(Math.round(n).toString(16))].join("")}function $t(e,t){t=0===t?0:t||10;var n=zt(e).toHsl();return n.s-=t/100,n.s=sn(n.s),zt(n)}function Ut(e,t){t=0===t?0:t||10;var n=zt(e).toHsl();return n.s+=t/100,n.s=sn(n.s),zt(n)}function qt(e){return zt(e).desaturate(100)}
function Zt(e,t){t=0===t?0:t||10;var n=zt(e).toHsl();return n.l+=t/100,n.l=sn(n.l),zt(n)}function Kt(e,t){t=0===t?0:t||10;var n=zt(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),zt(n)}function Yt(e,t){t=0===t?0:t||10;var n=zt(e).toHsl();return n.l-=t/100,n.l=sn(n.l),zt(n)}function Gt(e,t){var n=zt(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,zt(n)}function Jt(e){var t=
zt(e).toHsl();return t.h=(t.h+180)%360,zt(t)}function Xt(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=zt(e).toHsl(),r=[zt(e)],o=360/t,i=1;i<t;i++)r.push(zt({h:(n.h+i*o)%360,s:n.s,l:n.l}));return r}function Qt(e){var t=zt(e).toHsl(),n=t.h;return[zt(e),zt({h:(n+72)%360,s:t.s,l:t.l}),zt({h:(n+216)%360,s:t.s,l:t.l})]}function en(e,t,n){t=t||6,n=n||30;var r=zt(e).toHsl(),o=360/n,i=[zt(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(zt(r));
return i}function tn(e,t){t=t||6;for(var n=zt(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(zt({h:r,s:o,v:i})),i=(i+s)%1;return a}zt.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1E3},getLuminance:function(){var e,
t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=on(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=Bt(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=Bt(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),
r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=Ht(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=Ht(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return Vt(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+
this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[un(Math.round(e).toString(16)),un(Math.round(t).toString(16)),un(Math.round(n).toString(16)),un(fn(r))];return o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),
g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*an(this._r,255))+"%",g:Math.round(100*an(this._g,255))+"%",b:Math.round(100*an(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*
an(this._r,255))+"%, "+Math.round(100*an(this._g,255))+"%, "+Math.round(100*an(this._b,255))+"%)":"rgba("+Math.round(100*an(this._r,255))+"%, "+Math.round(100*an(this._g,255))+"%, "+Math.round(100*an(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(rn[Vt(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+Wt(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=zt(e);n="#"+Wt(o._r,o._g,o._b,
o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),
"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return zt(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(Zt,arguments)},brighten:function(){return this._applyModification(Kt,arguments)},
darken:function(){return this._applyModification(Yt,arguments)},desaturate:function(){return this._applyModification($t,arguments)},saturate:function(){return this._applyModification(Ut,arguments)},greyscale:function(){return this._applyModification(qt,arguments)},spin:function(){return this._applyModification(Gt,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(en,arguments)},complement:function(){return this._applyCombination(Jt,
arguments)},monochromatic:function(){return this._applyCombination(tn,arguments)},splitcomplement:function(){return this._applyCombination(Qt,arguments)},triad:function(){return this._applyCombination(Xt,[3])},tetrad:function(){return this._applyCombination(Xt,[4])}},zt.fromRatio=function(e,t){if("object"==jt(e)){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:cn(e[r]));e=n}return zt(e,t)},zt.equals=function(e,t){return!(!e||!t)&&zt(e).toRgbString()==zt(t).toRgbString()},zt.random=
function(){return zt.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},zt.mix=function(e,t,n){n=0===n?0:n||50;var r=zt(e).toRgb(),o=zt(t).toRgb(),i=n/100;return zt({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},zt.readability=function(e,t){var n=zt(e),r=zt(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},zt.isReadable=function(e,t,n){var r,o,i,a,s,l=zt.readability(e,t);switch(o=!1,(i=n,"AA"!==(a=
((i=i||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==a&&(a="AA"),"small"!==(s=(i.size||"small").toLowerCase())&&"large"!==s&&(s="small"),r={level:a,size:s}).level+r.size){case "AAsmall":case "AAAlarge":o=l>=4.5;break;case "AAlarge":o=l>=3;break;case "AAAsmall":o=l>=7}return o},zt.mostReadable=function(e,t,n){var r,o,i,a,s=null,l=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var u=0;u<t.length;u++)(r=zt.readability(e,t[u]))>l&&(l=r,s=zt(t[u]));return zt.isReadable(e,
s,{level:i,size:a})||!o?s:(n.includeFallbackColors=!1,zt.mostReadable(e,["#fff","#000"],n))};var nn=zt.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",
darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",
forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",
lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",
moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",
seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},rn=zt.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(nn);function on(e){return e=parseFloat(e),(isNaN(e)||
e<0||e>1)&&(e=1),e}function an(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1E-6?1:e%t/parseFloat(t)}function sn(e){return Math.min(1,Math.max(0,e))}function ln(e){return parseInt(e,16)}function un(e){return 1==e.length?"0"+e:""+e}function cn(e){return e<=1&&(e=100*e+"%"),e}function fn(e){return Math.round(255*
parseFloat(e)).toString(16)}function dn(e){return ln(e)/255}var pn,hn,gn,mn=(hn="[\\s|\\(]+("+(pn="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+pn+")[,|\\s]+("+pn+")\\s*\\)?",gn="[\\s|\\(]+("+pn+")[,|\\s]+("+pn+")[,|\\s]+("+pn+")[,|\\s]+("+pn+")\\s*\\)?",{CSS_UNIT:new RegExp(pn),rgb:new RegExp("rgb"+hn),rgba:new RegExp("rgba"+gn),hsl:new RegExp("hsl"+hn),hsla:new RegExp("hsla"+gn),hsv:new RegExp("hsv"+hn),hsva:new RegExp("hsva"+gn),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function vn(e){return!!mn.CSS_UNIT.exec(e)}var yn=function(e){var t=0,n=0;return function(e,t){return(Ae(e)?Pt:Lt)(e,"function"==typeof(n=t)?n:st);var n}(["r","g","b","a","h","s","l","v"],function(r){e[r]&&(t+=1,isNaN(e[r])||(n+=1),"s"===r||"l"===r)&&/^\d+%$/.test(e[r])&&(n+=1)}),t===n&&
e},bn=function(e,t){var n=e.hex?zt(e.hex):zt(e),r=n.toHsl(),o=n.toHsv(),i=n.toRgb(),a=n.toHex();return 0===r.s&&(r.h=t||0,o.h=t||0),{hsl:r,hex:"000000"===a&&0===i.a?"transparent":"#"+a,rgb:i,hsv:o,oldHue:e.h||t||r.h,source:e.source}},wn=function(e){if("transparent"===e)return!0;var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&zt(e).isValid()},xn=function(e){if(!e)return"#fff";var t=bn(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1E3>=
128?"#000":"#fff"},kn=function(e,t){return zt(t+" ("+e.replace("\u00b0","")+")")._ok},Sn=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},Cn=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}}();const On=
function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,n);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,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleChange=function(e,n){if(yn(e)){var r=bn(e,e.h||t.state.oldHue);t.setState(r),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,
r,n),t.props.onChange&&t.props.onChange(r,n)}},t.handleSwatchHover=function(e,n){if(yn(e)){var r=bn(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(r,n)}},t.state=Sn({},bn(e.color,0)),t.debounce=Mt(function(e,t,n){e(t,n)},100),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)}(n,t),Cn(n,[{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),r.createElement(e,Sn({},this.props,this.state,{onChange:this.handleChange},t))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return Sn({},bn(e.color,t.oldHue))}}]),n}(r.PureComponent||r.Component);return t.propTypes=Sn({},e.propTypes),t.defaultProps=Sn({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),
t};var En=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},Mn=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}}();function Tn(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 _n=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};const An=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function o(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,o);for(var r=arguments.length,i=Array(r),a=0;a<
r;a++)i[a]=arguments[a];return t=n=Tn(this,(e=o.__proto__||Object.getPrototypeOf(o)).call.apply(e,[this].concat(i))),n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},Tn(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)}(o,n),Mn(o,[{key:"render",value:function(){return r.createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},r.createElement(e,En({},this.props,this.state)))}}]),o}(r.Component)}(function(e){var t=e.color,n=e.style,i=e.onClick,a=void 0===i?function(){}:i,s=e.onHover,l=e.title,c=void 0===l?t:l,f=e.children,d=e.focus,p=e.focusStyle,h=void 0===p?{}:p,g="transparent"===t,m=(0,o.default)({default:{swatch:_n({background:t,height:"100%",
width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,d?h:{})}}),v={};return s&&(v.onMouseOver=function(e){return s(t,e)}),r.createElement("div",_n({style:m.swatch,onClick:function(e){return a(t,e)},title:c,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&a(t,e)}},v),f,g&&r.createElement(u,{borderRadius:m.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))});var Pn=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},Dn=function(e){var t=e.rgb,n=e.hsl,i=e.width,a=e.height,s=e.onChange,l=e.direction,u=e.style,c=e.renderers,f=e.pointer,d=e.className,h=void 0===d?"":d,g=(0,o.default)({default:{picker:{position:"relative",width:i,height:a},alpha:{radius:"2px",style:u}}});return r.createElement("div",{style:g.picker,className:"alpha-picker "+h},r.createElement(p,Pn({},g.alpha,{rgb:t,hsl:n,pointer:f,renderers:c,onChange:s,direction:l})))};Dn.defaultProps={width:"316px",height:"16px",direction:"horizontal",
pointer:function(e){var t=e.direction,n=(0,o.default)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return r.createElement("div",{style:n.picker})}},On(Dn);const Nn=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o};function Rn(e){var t=-1,n=
null==e?0:e.length;for(this.__data__=new se;++t<n;)this.add(e[t])}Rn.prototype.add=Rn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Rn.prototype.has=function(e){return this.__data__.has(e)};const Ln=Rn,jn=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},In=function(e,t,n,r,o,i){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,p=2&n?new Ln:
void 0;for(i.set(e,t),i.set(t,e);++f<s;){var h=e[f],g=t[f];if(r)var m=a?r(g,h,f,t,e,i):r(h,g,f,e,t,i);if(void 0!==m){if(m)continue;d=!1;break}if(p){if(!jn(t,function(e,t){if(a=t,!p.has(a)&&(h===e||o(h,e,n,r,i)))return p.push(t);var a})){d=!1;break}}else if(h!==g&&!o(h,g,n,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d},Fn=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n},zn=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n};var Hn=
P?P.prototype:void 0,Bn=Hn?Hn.valueOf:void 0,Vn=Object.prototype.propertyIsEnumerable,Wn=Object.getOwnPropertySymbols;const $n=Wn?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a)&&(i[o++]=a)}return i}(Wn(e),function(t){return Vn.call(e,t)}))}:function(){return[]},Un=function(e){return function(e,t,n){var r=t(e);return Ae(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Rt,$n)};var qn=
Object.prototype.hasOwnProperty;const Zn=X(A,"DataView"),Kn=X(A,"Promise"),Yn=X(A,"Set"),Gn=X(A,"WeakMap");var Jn="[object Map]",Xn="[object Promise]",Qn="[object Set]",er="[object WeakMap]",tr="[object DataView]",nr=U(Zn),rr=U(Q),or=U(Kn),ir=U(Yn),ar=U(Gn),sr=F;(Zn&&sr(new Zn(new ArrayBuffer(1)))!=tr||Q&&sr(new Q)!=Jn||Kn&&sr(Kn.resolve())!=Xn||Yn&&sr(new Yn)!=Qn||Gn&&sr(new Gn)!=er)&&(sr=function(e){var t=F(e),n="[object Object]"==t?e.constructor:void 0,r=n?U(n):"";if(r)switch(r){case nr:return tr;
case rr:return Jn;case or:return Xn;case ir:return Qn;case ar:return er}return t});const lr=sr;var ur="[object Arguments]",cr="[object Array]",fr="[object Object]",dr=Object.prototype.hasOwnProperty;const pr=function e(t,n,r,o,i){return t===n||(null==t||null==n||!Ce(t)&&!Ce(n)?t!=t&&n!=n:function(e,t,n,r,o,i){var a=Ae(e),s=Ae(t),l=a?cr:lr(e),u=s?cr:lr(t),c=(l=l==ur?fr:l)==fr,f=(u=u==ur?fr:u)==fr,d=l==u;if(d&&je(e)){if(!je(t))return!1;a=!0,c=!1}if(d&&!c)return i||(i=new ue),a||Ke(e)?In(e,t,n,r,o,i):
function(e,t,n,r,o,i,a){switch(n){case "[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case "[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new ve(e),new ve(t)));case "[object Boolean]":case "[object Date]":case "[object Number]":return S(+e,+t);case "[object Error]":return e.name==t.name&&e.message==t.message;case "[object RegExp]":case "[object String]":return e==t+"";case "[object Map]":var s=Fn;case "[object Set]":var l=
1&r;if(s||(s=zn),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=In(s(e),s(t),r,o,i,a);return a.delete(e),c;case "[object Symbol]":if(Bn)return Bn.call(e)==Bn.call(t)}return!1}(e,t,l,n,r,o,i);if(!(1&n)){var p=c&&dr.call(e,"__wrapped__"),h=f&&dr.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,m=h?t.value():t;return i||(i=new ue),o(g,m,n,r,i)}}return!!d&&(i||(i=new ue),function(e,t,n,r,o,i){var a=1&n,s=Un(e),l=s.length;if(l!=Un(t).length&&!a)return!1;for(var u=l;u--;){var c=
s[u];if(!(a?c in t:qn.call(t,c)))return!1}var f=i.get(e),d=i.get(t);if(f&&d)return f==t&&d==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++u<l;){var g=e[c=s[u]],m=t[c];if(r)var v=a?r(m,g,c,t,e,i):r(g,m,c,e,t,i);if(!(void 0===v?g===m||o(g,m,n,r,i):v)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(e),i.delete(t),p}(e,
t,n,r,o,i))}(t,n,r,o,e,i))},hr=function(e){return e==e&&!z(e)},gr=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}};var mr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vr=/^\w*$/;const yr=function(e,t){if(Ae(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!bt(e))||vr.test(e)||!mr.test(e)||null!=t&&e in Object(t)};function br(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");
var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new (br.Cache||se),n}br.Cache=se;var wr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xr=/\\(\\)?/g;const kr=(Sr=br(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(wr,function(e,n,r,o){t.push(r?o.replace(xr,"$1"):n||e)}),t},function(e){return 500===Cr.size&&Cr.clear(),
e}),Cr=Sr.cache,Sr);var Sr,Cr,Or=P?P.prototype:void 0,Er=Or?Or.toString:void 0;const Mr=function e(t){if("string"==typeof t)return t;if(Ae(t))return Nn(t,e)+"";if(bt(t))return Er?Er.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},Tr=function(e){return null==e?"":Mr(e)},_r=function(e,t){return Ae(e)?e:yr(e,t)?[e]:kr(Tr(e))},Ar=function(e){if("string"==typeof e||bt(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Pr=function(e,t){for(var n=0,r=(t=_r(t,e)).length;null!=e&&n<r;)e=e[Ar(t[n++])];
return n&&n==r?e:void 0},Dr=function(e,t){return null!=e&&t in Object(e)},Nr=function(e,t){return yr(e)&&hr(t)?gr(Ar(e),t):function(n){var r=function(e,t,n){var r=null==e?void 0:Pr(e,t);return void 0===r?void 0:r}(n,e);return void 0===r&&r===t?function(e,t){return null!=e&&function(e,t,n){for(var r=-1,o=(t=_r(t,e)).length,i=!1;++r<o;){var a=Ar(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Pe(o)&&et(a,o)&&(Ae(e)||_e(e))}(e,t,Dr)}(n,e):pr(t,r,3)}},Rr=function(e,
t){var n=-1,r=De(e)?Array(e.length):[];return Lt(e,function(e,o,i){r[++n]=t(e,o,i)}),r},Lr=function(e,t){return(Ae(e)?Nn:Rr)(e,"function"==typeof(n=t)?n:null==n?st:"object"==typeof n?Ae(n)?Nr(n[0],n[1]):function(e){var t=function(e){for(var t=Rt(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,hr(o)]}return t}(e);return 1==t.length&&t[0][2]?gr(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var o=n.length,i=o;if(null==e)return!i;for(e=Object(e);o--;){var a=n[o];if(a[2]?a[1]!==e[a[0]]:
!(a[0]in e))return!1}for(;++o<i;){var s=(a=n[o])[0],l=e[s],u=a[1];if(a[2]){if(void 0===l&&!(s in e))return!1}else{var c,f=new ue;if(!(void 0===c?pr(u,l,3,r,f):c))return!1}}return!0}(n,0,t)}}(n):function(e){return yr(e)?(t=Ar(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return Pr(t,e)}}(e);var t}(n));var n},jr=function(e){var t=e.colors,n=e.onClick,i=e.onSwatchHover,a=(0,o.default)({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",
marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return r.createElement("div",{style:a.swatches},Lr(t,function(e){return r.createElement(An,{key:e,color:e,style:a.swatch,onClick:n,onHover:i,focusStyle:{boxShadow:"0 0 4px "+e}})}),r.createElement("div",{style:a.clear}))};var Ir=function(e){var t=e.onChange,n=e.onSwatchHover,i=e.hex,a=e.colors,s=e.width,l=e.triangle,c=e.styles,f=void 0===c?{}:c,d=e.className,p=void 0===d?"":d,h="transparent"===i,g=function(e,n){wn(e)&&
t({hex:e,source:"hex"},n)},m=(0,o.default)(dt({default:{card:{width:s,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:i,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:xn(i),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+
i+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},f),{"hide-triangle":"hide"===l});return r.createElement("div",{style:m.card,className:"block-picker "+p},r.createElement("div",{style:m.triangle}),r.createElement("div",{style:m.head},h&&r.createElement(u,
{borderRadius:"6px 6px 0 0"}),r.createElement("div",{style:m.label},i)),r.createElement("div",{style:m.body},r.createElement(jr,{colors:a,onClick:g,onSwatchHover:n}),r.createElement(v,{style:{input:m.input},value:i,onChange:g})))};Ir.propTypes={width:k().oneOfType([k().string,k().number]),colors:k().arrayOf(k().string),triangle:k().oneOf(["top","hide"]),styles:k().object},Ir.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],
triangle:"top",styles:{}},On(Ir);var Fr="#f44336",zr="#e91e63",Hr="#9c27b0",Br="#673ab7",Vr="#3f51b5",Wr="#2196f3",$r="#03a9f4",Ur="#00bcd4",qr="#009688",Zr="#4caf50",Kr="#8bc34a",Yr="#cddc39",Gr="#ffeb3b",Jr="#ffc107",Xr="#ff9800",Qr="#ff5722",eo="#795548",to="#607d8b",no=function(e){var t=e.color,n=e.onClick,i=e.onSwatchHover,a=e.hover,s=e.active,l=e.circleSize,u=e.circleSpacing,c=(0,o.default)({default:{swatch:{width:l,height:l,marginRight:u,marginBottom:u,transform:"scale(1)",transition:"100ms transform ease"},
Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(l/2+1)+"px "+t,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+t}}},{hover:a,active:s});return r.createElement("div",{style:c.swatch},r.createElement(An,{style:c.Swatch,color:t,onClick:n,onHover:i,focusStyle:{boxShadow:c.Swatch.boxShadow+", 0 0 5px "+t}}))};no.defaultProps={circleSize:28,circleSpacing:14};const ro=(0,o.handleHover)(no);var oo=function(e){var t=
e.width,n=e.onChange,i=e.onSwatchHover,a=e.colors,s=e.hex,l=e.circleSize,u=e.styles,c=void 0===u?{}:u,f=e.circleSpacing,d=e.className,p=void 0===d?"":d,h=(0,o.default)(dt({default:{card:{width:t,display:"flex",flexWrap:"wrap",marginRight:-f,marginBottom:-f}}},c)),g=function(e,t){return n({hex:e,source:"hex"},t)};return r.createElement("div",{style:h.card,className:"circle-picker "+p},Lr(a,function(e){return r.createElement(ro,{key:e,color:e,onClick:g,onSwatchHover:i,active:s===e.toLowerCase(),circleSize:l,
circleSpacing:f})}))};oo.propTypes={width:k().oneOfType([k().string,k().number]),circleSize:k().number,circleSpacing:k().number,styles:k().object},oo.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[Fr,zr,Hr,Br,Vr,Wr,$r,Ur,qr,Zr,Kr,Yr,Gr,Jr,Xr,Qr,eo,to],styles:{}},On(oo);const io=function(e){return void 0===e};var ao=n(3891),so=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}}(),lo=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,t);var n=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,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.toggleViews=function(){"hex"===n.state.view?n.setState({view:"rgb"}):
"rgb"===n.state.view?n.setState({view:"hsl"}):"hsl"===n.state.view&&(1===n.props.hsl.a?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(e,t){e.hex?wn(e.hex)&&n.props.onChange({hex:e.hex,source:"hex"},t):e.r||e.g||e.b?n.props.onChange({r:e.r||n.props.rgb.r,g:e.g||n.props.rgb.g,b:e.b||n.props.rgb.b,source:"rgb"},t):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&
("string"==typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"==typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),1==e.s?e.s=.01:1==e.l&&(e.l=.01),n.props.onChange({h:e.h||n.props.hsl.h,s:Number(io(e.s)?n.props.hsl.s:e.s),l:Number(io(e.l)?n.props.hsl.l:e.l),source:"hsl"},t))},n.showHighlight=function(e){e.currentTarget.style.background="#eee"},n.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?n.state={view:"rgb"}:n.state={view:e.view},
n}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)}(t,e),so(t,[{key:"render",value:function(){var e=this,t=(0,o.default)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",
width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",
fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=r.createElement("div",{style:t.fields,className:"flexbox-fix"},r.createElement("div",{style:t.field},r.createElement(v,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):
"rgb"===this.state.view?n=r.createElement("div",{style:t.fields,className:"flexbox-fix"},r.createElement("div",{style:t.field},r.createElement(v,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),r.createElement("div",{style:t.field},r.createElement(v,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),r.createElement("div",{style:t.field},r.createElement(v,{style:{input:t.input,label:t.label},label:"b",
value:this.props.rgb.b,onChange:this.handleChange})),r.createElement("div",{style:t.alpha},r.createElement(v,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=r.createElement("div",{style:t.fields,className:"flexbox-fix"},r.createElement("div",{style:t.field},r.createElement(v,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),r.createElement("div",
{style:t.field},r.createElement(v,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),r.createElement("div",{style:t.field},r.createElement(v,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),r.createElement("div",{style:t.alpha},r.createElement(v,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),
r.createElement("div",{style:t.wrap,className:"flexbox-fix"},n,r.createElement("div",{style:t.toggle},r.createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},r.createElement(ao.Z,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(r.Component);lo.defaultProps={view:"hex"};const uo=lo,co=
function(){var e=(0,o.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return r.createElement("div",{style:e.picker})},fo=function(){var e=(0,o.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return r.createElement("div",{style:e.picker})};var po=function(e){var t=
e.width,n=e.onChange,i=e.disableAlpha,a=e.rgb,s=e.hsl,l=e.hsv,c=e.hex,f=e.renderers,d=e.styles,h=void 0===d?{}:d,g=e.className,m=void 0===g?"":g,v=e.defaultView,y=(0,o.default)(dt({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},
controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+a.r+", "+a.g+", "+a.b+", "+a.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},
alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},h),{disableAlpha:i});return r.createElement("div",{style:y.picker,className:"chrome-picker "+m},r.createElement("div",{style:y.saturation},r.createElement(At,{style:y.Saturation,hsl:s,hsv:l,pointer:fo,onChange:n})),r.createElement("div",{style:y.body},r.createElement("div",{style:y.controls,className:"flexbox-fix"},r.createElement("div",{style:y.color},r.createElement("div",{style:y.swatch},r.createElement("div",
{style:y.active}),r.createElement(u,{renderers:f}))),r.createElement("div",{style:y.toggles},r.createElement("div",{style:y.hue},r.createElement(w,{style:y.Hue,hsl:s,pointer:co,onChange:n})),r.createElement("div",{style:y.alpha},r.createElement(p,{style:y.Alpha,rgb:a,hsl:s,pointer:co,renderers:f,onChange:n})))),r.createElement(uo,{rgb:a,hsl:s,hex:c,view:v,onChange:n,disableAlpha:i})))};po.propTypes={width:k().oneOfType([k().string,k().number]),disableAlpha:k().bool,styles:k().object,defaultView:k().oneOf(["hex",
"rgb","hsl"])},po.defaultProps={width:225,disableAlpha:!1,styles:{}},On(po);const ho=function(e){var t=e.color,n=e.onClick,i=void 0===n?function(){}:n,a=e.onSwatchHover,s=e.active,l=(0,o.default)({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:xn(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},
dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:s,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return r.createElement(An,{style:l.color,color:t,onClick:i,onHover:a,focusStyle:{boxShadow:"0 0 4px "+t}},r.createElement("div",{style:l.dot}))},go=function(e){var t=e.hex,n=e.rgb,i=e.onChange,a=(0,o.default)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",
background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",
fontSize:"12px",color:"#999"}}}),s=function(e,t){e.r||e.g||e.b?i({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},t):i({hex:e.hex,source:"hex"},t)};return r.createElement("div",{style:a.fields,className:"flexbox-fix"},r.createElement("div",{style:a.active}),r.createElement(v,{style:{wrap:a.HEXwrap,input:a.HEXinput,label:a.HEXlabel},label:"hex",value:t,onChange:s}),r.createElement(v,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"r",value:n.r,onChange:s}),r.createElement(v,{style:{wrap:a.RGBwrap,
input:a.RGBinput,label:a.RGBlabel},label:"g",value:n.g,onChange:s}),r.createElement(v,{style:{wrap:a.RGBwrap,input:a.RGBinput,label:a.RGBlabel},label:"b",value:n.b,onChange:s}))};var mo=function(e){var t=e.onChange,n=e.onSwatchHover,i=e.colors,a=e.hex,s=e.rgb,l=e.styles,u=void 0===l?{}:l,c=e.className,f=void 0===c?"":c,d=(0,o.default)(dt({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},u)),p=
function(e,n){e.hex?wn(e.hex)&&t({hex:e.hex,source:"hex"},n):t(e,n)};return r.createElement(gt,{style:d.Compact,styles:u},r.createElement("div",{style:d.compact,className:"compact-picker "+f},r.createElement("div",null,Lr(i,function(e){return r.createElement(ho,{key:e,color:e,active:e.toLowerCase()===a,onClick:p,onSwatchHover:n})}),r.createElement("div",{style:d.clear})),r.createElement(go,{hex:a,rgb:s,onChange:p})))};mo.propTypes={colors:k().arrayOf(k().string),styles:k().object},mo.defaultProps=
{colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},On(mo);const vo=(0,o.handleHover)(function(e){var t=e.hover,n=e.color,i=e.onClick,a=e.onSwatchHover,s={position:"relative",
zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},l=(0,o.default)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:s}},{hover:t});return r.createElement("div",{style:l.swatch},r.createElement(An,{color:n,onClick:i,onHover:a,focusStyle:s}))});var yo=function(e){var t=e.width,n=e.colors,i=e.onChange,a=e.onSwatchHover,s=e.triangle,l=e.styles,u=void 0===l?{}:l,c=e.className,f=void 0===c?"":c,d=(0,o.default)(dt({default:{card:{width:t,background:"#fff",
border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",
left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},u),{"hide-triangle":"hide"===s,"top-left-triangle":"top-left"===s,"top-right-triangle":"top-right"===
s,"bottom-left-triangle":"bottom-left"===s,"bottom-right-triangle":"bottom-right"===s}),p=function(e,t){return i({hex:e,source:"hex"},t)};return r.createElement("div",{style:d.card,className:"github-picker "+f},r.createElement("div",{style:d.triangleShadow}),r.createElement("div",{style:d.triangle}),Lr(n,function(e){return r.createElement(vo,{color:e,key:e,onClick:p,onSwatchHover:a})}))};yo.propTypes={width:k().oneOfType([k().string,k().number]),colors:k().arrayOf(k().string),triangle:k().oneOf(["hide",
"top-left","top-right","bottom-left","bottom-right"]),styles:k().object},yo.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},On(yo);var bo=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},wo=function(e){var t=e.width,
n=e.height,i=e.onChange,a=e.hsl,s=e.direction,l=e.pointer,u=e.styles,c=void 0===u?{}:u,f=e.className,d=void 0===f?"":f,p=(0,o.default)(dt({default:{picker:{position:"relative",width:t,height:n},hue:{radius:"2px"}}},c));return r.createElement("div",{style:p.picker,className:"hue-picker "+d},r.createElement(w,bo({},p.hue,{hsl:a,pointer:l,onChange:function(e){return i({a:1,h:e.h,l:.5,s:1})},direction:s})))};wo.propTypes={styles:k().object},wo.defaultProps={width:"316px",height:"16px",direction:"horizontal",
pointer:function(e){var t=e.direction,n=(0,o.default)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return r.createElement("div",{style:n.picker})},styles:{}},On(wo),On(function(e){var t=e.onChange,n=e.hex,i=e.rgb,a=e.styles,s=void 0===a?{}:a,l=e.className,u=void 0===l?"":l,c=(0,o.default)(dt({default:{material:{width:"98px",
height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",
outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},s)),f=function(e,n){e.hex?wn(e.hex)&&t({hex:e.hex,source:"hex"},n):(e.r||e.g||e.b)&&t({r:e.r||i.r,g:e.g||i.g,b:e.b||i.b,source:"rgb"},n)};return r.createElement(gt,{styles:s},r.createElement("div",{style:c.material,className:"material-picker "+u},r.createElement(v,
{style:{wrap:c.HEXwrap,input:c.HEXinput,label:c.HEXlabel},label:"hex",value:n,onChange:f}),r.createElement("div",{style:c.split,className:"flexbox-fix"},r.createElement("div",{style:c.third},r.createElement(v,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"r",value:i.r,onChange:f})),r.createElement("div",{style:c.third},r.createElement(v,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"g",value:i.g,onChange:f})),r.createElement("div",{style:c.third},r.createElement(v,
{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"b",value:i.b,onChange:f})))))});const xo=function(e){var t=e.onChange,n=e.rgb,i=e.hsv,a=e.hex,s=(0,o.default)({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",
marginRight:"10px"},RGBlabel:{left:"0px",top:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",
lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),l=function(e,r){e["#"]?wn(e["#"])&&t({hex:e["#"],source:"hex"},r):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},r):(e.h||e.s||e.v)&&t({h:e.h||i.h,s:e.s||i.s,v:e.v||i.v,source:"hsv"},r)};return r.createElement("div",{style:s.fields},r.createElement(v,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"h",value:Math.round(i.h),
onChange:l}),r.createElement(v,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"s",value:Math.round(100*i.s),onChange:l}),r.createElement(v,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"v",value:Math.round(100*i.v),onChange:l}),r.createElement("div",{style:s.divider}),r.createElement(v,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"r",value:n.r,onChange:l}),r.createElement(v,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"g",value:n.g,
onChange:l}),r.createElement(v,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"b",value:n.b,onChange:l}),r.createElement("div",{style:s.divider}),r.createElement(v,{style:{wrap:s.HEXwrap,input:s.HEXinput,label:s.HEXlabel},label:"#",value:a.replace("#",""),onChange:l}),r.createElement("div",{style:s.fieldSymbols},r.createElement("div",{style:s.symbol},"\u00b0"),r.createElement("div",{style:s.symbol},"%"),r.createElement("div",{style:s.symbol},"%")))},ko=function(e){var t=e.hsl,n=(0,o.default)({default:{picker:{width:"12px",
height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":t.l>.5});return r.createElement("div",{style:n.picker})},So=function(){var e=(0,o.default)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",
borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return r.createElement("div",{style:e.pointer},r.createElement("div",{style:e.left},r.createElement("div",{style:e.leftInside})),r.createElement("div",
{style:e.right},r.createElement("div",{style:e.rightInside})))},Co=function(e){var t=e.onClick,n=e.label,i=e.children,a=e.active,s=(0,o.default)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:a});return r.createElement("div",
{style:s.button,onClick:t},n||i)},Oo=function(e){var t=e.rgb,n=e.currentColor,i=(0,o.default)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});
return r.createElement("div",null,r.createElement("div",{style:i.label},"new"),r.createElement("div",{style:i.swatches},r.createElement("div",{style:i.new}),r.createElement("div",{style:i.current})),r.createElement("div",{style:i.label},"current"))};var Eo=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}}(),Mo=
function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,t);var n=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,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:e.hex},n}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)}(t,e),Eo(t,[{key:"render",value:function(){var e=this.props,t=e.styles,n=void 0===t?{}:t,i=e.className,a=void 0===i?"":i,s=(0,o.default)(dt({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",
borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",
borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},n));return r.createElement("div",{style:s.picker,className:"photoshop-picker "+a},r.createElement("div",{style:s.head},this.props.header),r.createElement("div",{style:s.body,className:"flexbox-fix"},r.createElement("div",{style:s.saturation},r.createElement(At,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:ko,onChange:this.props.onChange})),
r.createElement("div",{style:s.hue},r.createElement(w,{direction:"vertical",hsl:this.props.hsl,pointer:So,onChange:this.props.onChange})),r.createElement("div",{style:s.controls},r.createElement("div",{style:s.top,className:"flexbox-fix"},r.createElement("div",{style:s.previews},r.createElement(Oo,{rgb:this.props.rgb,currentColor:this.state.currentColor})),r.createElement("div",{style:s.actions},r.createElement(Co,{label:"OK",onClick:this.props.onAccept,active:!0}),r.createElement(Co,{label:"Cancel",
onClick:this.props.onCancel}),r.createElement(xo,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(r.Component);Mo.propTypes={header:k().string,styles:k().object},Mo.defaultProps={header:"Color Picker",styles:{}},On(Mo);const To=function(e){var t=e.onChange,n=e.rgb,i=e.hsl,a=e.hex,s=e.disableAlpha,l=(0,o.default)({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},
input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:s}),u=function(e,r){e.hex?wn(e.hex)&&t({hex:e.hex,source:"hex"},r):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,a:n.a,source:"rgb"},r):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:i.h,s:i.s,l:i.l,
a:e.a,source:"rgb"},r))};return r.createElement("div",{style:l.fields,className:"flexbox-fix"},r.createElement("div",{style:l.double},r.createElement(v,{style:{input:l.input,label:l.label},label:"hex",value:a.replace("#",""),onChange:u})),r.createElement("div",{style:l.single},r.createElement(v,{style:{input:l.input,label:l.label},label:"r",value:n.r,onChange:u,dragLabel:"true",dragMax:"255"})),r.createElement("div",{style:l.single},r.createElement(v,{style:{input:l.input,label:l.label},label:"g",
value:n.g,onChange:u,dragLabel:"true",dragMax:"255"})),r.createElement("div",{style:l.single},r.createElement(v,{style:{input:l.input,label:l.label},label:"b",value:n.b,onChange:u,dragLabel:"true",dragMax:"255"})),r.createElement("div",{style:l.alpha},r.createElement(v,{style:{input:l.input,label:l.label},label:"a",value:Math.round(100*n.a),onChange:u,dragLabel:"true",dragMax:"100"})))};var _o=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},Ao=function(e){var t=e.colors,n=e.onClick,i=void 0===n?function(){}:n,a=e.onSwatchHover,s=(0,o.default)({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!t||!t.length}),l=function(e,t){i({hex:e,source:"hex"},
t)};return r.createElement("div",{style:s.colors,className:"flexbox-fix"},t.map(function(e){var t="string"==typeof e?{color:e}:e,n=""+t.color+(t.title||"");return r.createElement("div",{key:n,style:s.swatchWrap},r.createElement(An,_o({},t,{style:s.swatch,onClick:l,onHover:a,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+t.color}})))}))};Ao.propTypes={colors:k().arrayOf(k().oneOfType([k().string,k().shape({color:k().string,title:k().string})])).isRequired};const Po=Ao;var Do=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},No=function(e){var t=e.width,n=e.rgb,i=e.hex,a=e.hsv,s=e.hsl,l=e.onChange,c=e.onSwatchHover,f=e.disableAlpha,d=e.presetColors,h=e.renderers,g=e.styles,m=void 0===g?{}:g,v=e.className,y=void 0===v?"":v,b=(0,o.default)(dt({default:Do({picker:{width:t,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},
saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},
hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},m),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},m),{disableAlpha:f});return r.createElement("div",{style:b.picker,className:"sketch-picker "+y},r.createElement("div",
{style:b.saturation},r.createElement(At,{style:b.Saturation,hsl:s,hsv:a,onChange:l})),r.createElement("div",{style:b.controls,className:"flexbox-fix"},r.createElement("div",{style:b.sliders},r.createElement("div",{style:b.hue},r.createElement(w,{style:b.Hue,hsl:s,onChange:l})),r.createElement("div",{style:b.alpha},r.createElement(p,{style:b.Alpha,rgb:n,hsl:s,renderers:h,onChange:l}))),r.createElement("div",{style:b.color},r.createElement(u,null),r.createElement("div",{style:b.activeColor}))),r.createElement(To,
{rgb:n,hsl:s,hex:i,onChange:l,disableAlpha:f}),r.createElement(Po,{colors:d,onClick:l,onSwatchHover:c}))};No.propTypes={disableAlpha:k().bool,width:k().oneOfType([k().string,k().number]),styles:k().object},No.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},On(No);const Ro=function(e){var t=e.hsl,n=e.offset,i=e.onClick,a=void 0===i?
function(){}:i,s=e.active,l=e.first,u=e.last,c=(0,o.default)({default:{swatch:{height:"12px",background:"hsl("+t.h+", 50%, "+100*n+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:s,first:l,last:u});return r.createElement("div",{style:c.swatch,onClick:function(e){return a({h:t.h,s:.5,l:n,source:"hsl"},e)}})},Lo=function(e){var t=e.onClick,n=e.hsl,i=(0,o.default)({default:{swatches:{marginTop:"20px"},
swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),a=.1;return r.createElement("div",{style:i.swatches},r.createElement("div",{style:i.swatch},r.createElement(Ro,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<a&&Math.abs(n.s-.5)<a,onClick:t,first:!0})),r.createElement("div",{style:i.swatch},r.createElement(Ro,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<a&&Math.abs(n.s-.5)<a,onClick:t})),r.createElement("div",{style:i.swatch},r.createElement(Ro,{hsl:n,
offset:".50",active:Math.abs(n.l-.5)<a&&Math.abs(n.s-.5)<a,onClick:t})),r.createElement("div",{style:i.swatch},r.createElement(Ro,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<a&&Math.abs(n.s-.5)<a,onClick:t})),r.createElement("div",{style:i.swatch},r.createElement(Ro,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<a&&Math.abs(n.s-.5)<a,onClick:t,last:!0})),r.createElement("div",{style:i.clear}))};var jo=function(e){var t=e.hsl,n=e.onChange,i=e.pointer,a=e.styles,s=void 0===a?{}:a,l=e.className,u=void 0===
l?"":l,c=(0,o.default)(dt({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},s));return r.createElement("div",{style:c.wrap||{},className:"slider-picker "+u},r.createElement("div",{style:c.hue},r.createElement(w,{style:c.Hue,hsl:t,pointer:i,onChange:n})),r.createElement("div",{style:c.swatches},r.createElement(Lo,{hsl:t,onClick:n})))};jo.propTypes={styles:k().object},jo.defaultProps={pointer:function(){var e=(0,o.default)({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",
transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return r.createElement("div",{style:e.picker})},styles:{}},On(jo);var Io=n(597);const Fo=function(e){var t=e.color,n=e.onClick,i=void 0===n?function(){}:n,a=e.onSwatchHover,s=e.first,l=e.last,u=e.active,c=(0,o.default)({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:t,marginBottom:"1px"},check:{color:xn(t),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",
borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:s,last:l,active:u,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return r.createElement(An,{color:t,style:c.color,onClick:i,onHover:a,focusStyle:{boxShadow:"0 0 4px "+t}},r.createElement("div",{style:c.check},r.createElement(Io.Z,null)))},zo=
function(e){var t=e.onClick,n=e.onSwatchHover,i=e.group,a=e.active,s=(0,o.default)({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return r.createElement("div",{style:s.group},Lr(i,function(e,o){return r.createElement(Fo,{key:e,color:e,active:e.toLowerCase()===a,first:0===o,last:o===i.length-1,onClick:t,onSwatchHover:n})}))};var Ho=function(e){var t=e.width,n=e.height,i=e.onChange,a=e.onSwatchHover,s=e.colors,l=e.hex,u=e.styles,c=void 0===u?{}:u,f=e.className,
d=void 0===f?"":f,p=(0,o.default)(dt({default:{picker:{width:t,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},c)),h=function(e,t){return i({hex:e,source:"hex"},t)};return r.createElement("div",{style:p.picker,className:"swatches-picker "+d},r.createElement(gt,null,r.createElement("div",{style:p.overflow},r.createElement("div",{style:p.body},Lr(s,function(e){return r.createElement(zo,{key:e.toString(),group:e,active:l,onClick:h,onSwatchHover:a})}),
r.createElement("div",{style:p.clear})))))};Ho.propTypes={width:k().oneOfType([k().string,k().number]),height:k().oneOfType([k().string,k().number]),colors:k().arrayOf(k().arrayOf(k().string)),styles:k().object},Ho.defaultProps={width:320,height:240,colors:[["#b71c1c","#d32f2f",Fr,"#e57373","#ffcdd2"],["#880e4f","#c2185b",zr,"#f06292","#f8bbd0"],["#4a148c","#7b1fa2",Hr,"#ba68c8","#e1bee7"],["#311b92","#512da8",Br,"#9575cd","#d1c4e9"],["#1a237e","#303f9f",Vr,"#7986cb","#c5cae9"],["#0d47a1","#1976d2",
Wr,"#64b5f6","#bbdefb"],["#01579b","#0288d1",$r,"#4fc3f7","#b3e5fc"],["#006064","#0097a7",Ur,"#4dd0e1","#b2ebf2"],["#004d40","#00796b",qr,"#4db6ac","#b2dfdb"],["#194D33","#388e3c",Zr,"#81c784","#c8e6c9"],["#33691e","#689f38",Kr,"#aed581","#dcedc8"],["#827717","#afb42b",Yr,"#dce775","#f0f4c3"],["#f57f17","#fbc02d",Gr,"#fff176","#fff9c4"],["#ff6f00","#ffa000",Jr,"#ffd54f","#ffecb3"],["#e65100","#f57c00",Xr,"#ffb74d","#ffe0b2"],["#bf360c","#e64a19",Qr,"#ff8a65","#ffccbc"],["#3e2723","#5d4037",eo,"#a1887f",
"#d7ccc8"],["#263238","#455a64",to,"#90a4ae","#cfd8dc"],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},On(Ho);var Bo=function(e){var t=e.onChange,n=e.onSwatchHover,i=e.hex,a=e.colors,s=e.width,l=e.triangle,u=e.styles,c=void 0===u?{}:u,f=e.className,d=void 0===f?"":f,p=(0,o.default)(dt({default:{card:{width:s,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",
color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},
input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",
right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},c),{"hide-triangle":"hide"===l,"top-left-triangle":"top-left"===l,"top-right-triangle":"top-right"===l}),h=function(e,n){wn(e)&&t({hex:e,source:"hex"},n)};return r.createElement("div",{style:p.card,className:"twitter-picker "+d},r.createElement("div",{style:p.triangleShadow}),r.createElement("div",{style:p.triangle}),r.createElement("div",{style:p.body},Lr(a,function(e,t){return r.createElement(An,{key:t,color:e,hex:e,style:p.swatch,onClick:h,
onHover:n,focusStyle:{boxShadow:"0 0 4px "+e}})}),r.createElement("div",{style:p.hash},"#"),r.createElement(v,{label:null,style:{input:p.input},value:i.replace("#",""),onChange:h}),r.createElement("div",{style:p.clear})))};Bo.propTypes={width:k().oneOfType([k().string,k().number]),triangle:k().oneOf(["hide","top-left","top-right"]),colors:k().arrayOf(k().string),styles:k().object},Bo.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7",
"#9900EF"],triangle:"top-left",styles:{}},On(Bo);var Vo=function(e){var t=(0,o.default)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(e.hsl.h)+", "+Math.round(100*e.hsl.s)+"%, "+Math.round(100*e.hsl.l)+"%)"}}});return r.createElement("div",{style:t.picker})};Vo.propTypes={hsl:k().shape({h:k().number,s:k().number,l:k().number,a:k().number})},Vo.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};const Wo=
Vo;var $o=function(e){var t=(0,o.default)({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(e.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return r.createElement("div",{style:t.picker})};$o.propTypes={hsl:k().shape({h:k().number,s:k().number,l:k().number,a:k().number})},$o.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};const Uo=$o,qo=function(e){var t=e.onChange,n=e.rgb,i=e.hsl,a=e.hex,s=e.hsv,l=function(e,n){if(e.hex)wn(e.hex)&&
t({hex:e.hex,source:"hex"},n);else if(e.rgb){var r=e.rgb.split(",");kn(e.rgb,"rgb")&&t({r:r[0],g:r[1],b:r[2],a:1,source:"rgb"},n)}else if(e.hsv){var o=e.hsv.split(",");kn(e.hsv,"hsv")&&(o[2]=o[2].replace("%",""),o[1]=o[1].replace("%",""),o[0]=o[0].replace("\u00b0",""),1==o[1]?o[1]=.01:1==o[2]&&(o[2]=.01),t({h:Number(o[0]),s:Number(o[1]),v:Number(o[2]),source:"hsv"},n))}else if(e.hsl){var i=e.hsl.split(",");kn(e.hsl,"hsl")&&(i[2]=i[2].replace("%",""),i[1]=i[1].replace("%",""),i[0]=i[0].replace("\u00b0",
""),1==d[1]?d[1]=.01:1==d[2]&&(d[2]=.01),t({h:Number(i[0]),s:Number(i[1]),v:Number(i[2]),source:"hsl"},n))}},u=(0,o.default)({default:{wrap:{display:"flex",height:"100px",marginTop:"4px"},fields:{width:"100%"},column:{paddingTop:"10px",display:"flex",justifyContent:"space-between"},double:{padding:"0px 4.4px",boxSizing:"border-box"},input:{width:"100%",height:"38px",boxSizing:"border-box",padding:"4px 10% 3px",textAlign:"center",border:"1px solid #dadce0",fontSize:"11px",textTransform:"lowercase",
borderRadius:"5px",outline:"none",fontFamily:"Roboto,Arial,sans-serif"},input2:{height:"38px",width:"100%",border:"1px solid #dadce0",boxSizing:"border-box",fontSize:"11px",textTransform:"lowercase",borderRadius:"5px",outline:"none",paddingLeft:"10px",fontFamily:"Roboto,Arial,sans-serif"},label:{textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"35px",top:"-6px",left:"0",right:"0",marginLeft:"auto",marginRight:"auto",fontFamily:"Roboto,Arial,sans-serif"},
label2:{left:"10px",textAlign:"center",fontSize:"12px",background:"#fff",position:"absolute",textTransform:"uppercase",color:"#3c4043",width:"32px",top:"-6px",fontFamily:"Roboto,Arial,sans-serif"},single:{flexGrow:"1",margin:"0px 4.4px"}}}),c=n.r+", "+n.g+", "+n.b,f=Math.round(i.h)+"\u00b0, "+Math.round(100*i.s)+"%, "+Math.round(100*i.l)+"%",d=Math.round(s.h)+"\u00b0, "+Math.round(100*s.s)+"%, "+Math.round(100*s.v)+"%";return r.createElement("div",{style:u.wrap,className:"flexbox-fix"},r.createElement("div",
{style:u.fields},r.createElement("div",{style:u.double},r.createElement(v,{style:{input:u.input,label:u.label},label:"hex",value:a,onChange:l})),r.createElement("div",{style:u.column},r.createElement("div",{style:u.single},r.createElement(v,{style:{input:u.input2,label:u.label2},label:"rgb",value:c,onChange:l})),r.createElement("div",{style:u.single},r.createElement(v,{style:{input:u.input2,label:u.label2},label:"hsv",value:d,onChange:l})),r.createElement("div",{style:u.single},r.createElement(v,
{style:{input:u.input2,label:u.label2},label:"hsl",value:f,onChange:l})))))};var Zo=function(e){var t=e.width,n=e.onChange,i=e.rgb,a=e.hsl,s=e.hsv,l=e.hex,u=e.header,c=e.styles,f=void 0===c?{}:c,d=e.className,p=void 0===d?"":d,h=(0,o.default)(dt({default:{picker:{width:t,background:"#fff",border:"1px solid #dfe1e5",boxSizing:"initial",display:"flex",flexWrap:"wrap",borderRadius:"8px 8px 0px 0px"},head:{height:"57px",width:"100%",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"16px",fontSize:"20px",
boxSizing:"border-box",fontFamily:"Roboto-Regular,HelveticaNeue,Arial,sans-serif"},saturation:{width:"70%",padding:"0px",position:"relative",overflow:"hidden"},swatch:{width:"30%",height:"228px",padding:"0px",background:"rgba("+i.r+", "+i.g+", "+i.b+", 1)",position:"relative",overflow:"hidden"},body:{margin:"auto",width:"95%"},controls:{display:"flex",boxSizing:"border-box",height:"52px",paddingTop:"22px"},color:{width:"32px"},hue:{height:"8px",position:"relative",margin:"0px 16px 0px 16px",width:"100%"},
Hue:{radius:"2px"}}},f));return r.createElement("div",{style:h.picker,className:"google-picker "+p},r.createElement("div",{style:h.head},u),r.createElement("div",{style:h.swatch}),r.createElement("div",{style:h.saturation},r.createElement(At,{hsl:a,hsv:s,pointer:Wo,onChange:n})),r.createElement("div",{style:h.body},r.createElement("div",{style:h.controls,className:"flexbox-fix"},r.createElement("div",{style:h.hue},r.createElement(w,{style:h.Hue,hsl:a,radius:"4px",pointer:Uo,onChange:n}))),r.createElement(qo,
{rgb:i,hsl:a,hex:l,hsv:s,onChange:n})))};Zo.propTypes={width:k().oneOfType([k().string,k().number]),styles:k().object,header:k().string},Zo.defaultProps={width:652,styles:{},header:"Color picker"},On(Zo)},7319:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Alpha=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(7294),a=c(i),s=c(n(9941)),l=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(6713)),u=c(n(4349));function c(e){return e&&e.__esModule?e:{default:e}}function f(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 d=t.Alpha=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.handleChange=function(e){var t=l.calculateChange(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"==typeof r.props.onChange&&
r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},f(r,n)}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)}(t,e),o(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,s.default)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},
gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n           rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+
t.r+","+t.g+","+t.b+", 0) 0%,\n           rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:r({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return a.default.createElement("div",{style:n.alpha},a.default.createElement("div",{style:n.checkboard},a.default.createElement(u.default,{renderers:this.props.renderers})),a.default.createElement("div",{style:n.gradient}),a.default.createElement("div",{style:n.container,ref:function(t){return e.container=
t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},a.default.createElement("div",{style:n.pointer},this.props.pointer?a.default.createElement(this.props.pointer,this.props):a.default.createElement("div",{style:n.slider}))))}}]),t}(i.PureComponent||i.Component);t.default=d},4349:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Checkboard=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=n(7294),i=l(o),a=l(n(9941)),s=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(5704));function l(e){return e&&e.__esModule?e:{default:e}}var u=t.Checkboard=function(e){var t=e.white,n=e.grey,l=e.size,u=e.renderers,c=e.borderRadius,f=e.boxShadow,d=e.children,p=(0,a.default)({default:{grid:{borderRadius:c,boxShadow:f,absolute:"0px 0px 0px 0px",background:"url("+s.get(t,
n,l,u.canvas)+") center left"}}});return(0,o.isValidElement)(d)?i.default.cloneElement(d,r({},d.props,{style:r({},d.props.style,p.grid)})):i.default.createElement("div",{style:p.grid})};u.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}},t.default=u},8288:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorWrap=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(7294),a=u(i),s=u(n(3279)),l=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(4809));function u(e){return e&&e.__esModule?
e:{default:e}}var c=t.ColorWrap=function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,n);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,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleChange=function(e,n){if(l.simpleCheckForValidColor(e)){var r=l.toState(e,e.h||t.state.oldHue);
t.setState(r),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,r,n),t.props.onChange&&t.props.onChange(r,n)}},t.handleSwatchHover=function(e,n){if(l.simpleCheckForValidColor(e)){var r=l.toState(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(r,n)}},t.state=r({},l.toState(e.color,0)),t.debounce=(0,s.default)(function(e,t,n){e(t,n)},100),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)}(n,t),o(n,[{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),a.default.createElement(e,r({},this.props,this.state,{onChange:this.handleChange},t))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return r({},l.toState(e.color,t.oldHue))}}]),n}(i.PureComponent||
i.Component);return t.propTypes=r({},e.propTypes),t.defaultProps=r({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t};t.default=c},7747:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EditableInput=void 0;var r=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}}(),o=n(7294),i=s(o),a=s(n(9941));function s(e){return e&&
e.__esModule?e:{default:e}}var l=[38,40],u=1,c=t.EditableInput=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,t);var n=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,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,
blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t,r=function(e){return Number(String(e).replace(/%/g,""))}(e.target.value);if(!isNaN(r)&&(t=e.keyCode,l.indexOf(t)>-1)){var o=n.getArrowOffset(),i=38===e.keyCode?r+o:r-o;n.setUpdatedValue(i,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=
function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId="rc-editable-input-"+u++,n}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)}(t,e),r(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):
this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",
value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,a.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},
{"user-override":!0},this.props);return i.default.createElement("div",{style:t.wrap},i.default.createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?i.default.createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),
t}(o.PureComponent||o.Component);t.default=c},6358:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Hue=void 0;var r=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}}(),o=n(7294),i=l(o),a=l(n(9941)),s=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(3716));function l(e){return e&&e.__esModule?e:{default:e}}function u(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 c=t.Hue=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=u(this,(e=t.__proto__||
Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.handleChange=function(e){var t=s.calculateChange(e,r.props.direction,r.props.hsl,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},u(r,n)}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)}(t,e),r(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=
void 0===t?"horizontal":t,r=(0,a.default)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/
360+100+"%"}}},{vertical:"vertical"===n});return i.default.createElement("div",{style:r.hue},i.default.createElement("div",{className:"hue-"+n,style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.default.createElement("style",null,"\n            .hue-horizontal {\n              background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n                33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n              background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n                17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n            }\n\n            .hue-vertical {\n              background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n                #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n              background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n                #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n            }\n          "),
i.default.createElement("div",{style:r.pointer},this.props.pointer?i.default.createElement(this.props.pointer,this.props):i.default.createElement("div",{style:r.slider}))))}}]),t}(o.PureComponent||o.Component);t.default=c},6207:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Raised=void 0;var r=s(n(7294)),o=s(n(5697)),i=s(n(9941)),a=s(n(3857));function s(e){return e&&e.__esModule?e:{default:e}}var l=t.Raised=function(e){var t=e.zDepth,n=e.radius,o=e.background,s=e.children,l=e.styles,
u=void 0===l?{}:l,c=(0,i.default)((0,a.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:n,background:o}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},
"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},u),{"zDepth-1":1===t});return r.default.createElement("div",{style:c.wrap},r.default.createElement("div",{style:c.bg}),r.default.createElement("div",{style:c.content},s))};l.propTypes={background:o.default.string,zDepth:o.default.oneOf([0,1,2,3,4,5]),radius:o.default.number,
styles:o.default.object},l.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},t.default=l},6659:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Saturation=void 0;var r=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}}(),o=n(7294),i=u(o),a=u(n(9941)),s=u(n(3493)),l=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(1355));function u(e){return e&&e.__esModule?e:{default:e}}var c=t.Saturation=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,t);var n=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,(t.__proto__||
Object.getPrototypeOf(t)).call(this,e));return n.handleChange=function(e){"function"==typeof n.props.onChange&&n.throttle(n.props.onChange,l.calculateChange(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e);var t=n.getContainerRenderWindow();t.addEventListener("mousemove",n.handleChange),t.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=(0,s.default)(function(e,t,n){e(t,n)},50),n}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)}(t,e),r(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&
t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,r=t.white,o=t.black,s=t.pointer,l=t.circle,u=(0,a.default)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",
borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n            0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:r,black:o,pointer:s,circle:l}},{custom:!!this.props.style});
return i.default.createElement("div",{style:u.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.default.createElement("style",null,"\n          .saturation-white {\n            background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n            background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n          }\n          .saturation-black {\n            background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n            background: linear-gradient(to top, #000, rgba(0,0,0,0));\n          }\n        "),
i.default.createElement("div",{style:u.white,className:"saturation-white"},i.default.createElement("div",{style:u.black,className:"saturation-black"}),i.default.createElement("div",{style:u.pointer},this.props.pointer?i.default.createElement(this.props.pointer,this.props):i.default.createElement("div",{style:u.circle}))))}}]),t}(o.PureComponent||o.Component);t.default=c},2489:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Swatch=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=l(n(7294)),i=l(n(9941)),a=n(2538),s=l(n(4349));function l(e){return e&&e.__esModule?e:{default:e}}var u=t.Swatch=function(e){var t=e.color,n=e.style,a=e.onClick,l=void 0===a?function(){}:a,u=e.onHover,c=e.title,f=void 0===c?t:c,d=e.children,p=e.focus,h=e.focusStyle,g=void 0===h?{}:h,m="transparent"===t,v=(0,i.default)({default:{swatch:r({background:t,height:"100%",width:"100%",
cursor:"pointer",position:"relative",outline:"none"},n,p?g:{})}}),y={};return u&&(y.onMouseOver=function(e){return u(t,e)}),o.default.createElement("div",r({style:v.swatch,onClick:function(e){return l(t,e)},title:f,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&l(t,e)}},y),d,m&&o.default.createElement(s.default,{borderRadius:v.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};t.default=(0,a.handleFocus)(u)},1150:(e,t,n)=>{var r=n(7319);Object.defineProperty(t,"xV",{enumerable:!0,
get:function(){return s(r).default}}),n(4349);var o=n(7747);Object.defineProperty(t,"Vm",{enumerable:!0,get:function(){return s(o).default}});var i=n(6358);Object.defineProperty(t,"PS",{enumerable:!0,get:function(){return s(i).default}}),n(6207);var a=n(6659);function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"OQ",{enumerable:!0,get:function(){return s(a).default}}),n(8288),n(2489)},6713:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.calculateChange=function(e,
t,n,r,o){var i,a,s=o.clientWidth,l=o.clientHeight,u="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,c="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,f=u-(o.getBoundingClientRect().left+window.pageXOffset),d=c-(o.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){if(i=d<0?0:d>l?1:Math.round(100*d/l)/100,t.a!==i)return{h:t.h,s:t.s,l:t.l,a:i,source:"rgb"}}else if(r!==(a=f<0?0:f>s?1:Math.round(100*f/s)/100))return{h:t.h,s:t.s,l:t.l,a:a,source:"rgb"};return null}},5704:(e,t)=>
{Object.defineProperty(t,"__esModule",{value:!0});var n={},r=t.render=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var o=r?new r:document.createElement("canvas");o.width=2*n,o.height=2*n;var i=o.getContext("2d");return i?(i.fillStyle=e,i.fillRect(0,0,o.width,o.height),i.fillStyle=t,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),o.toDataURL()):null};t.get=function(e,t,o,i){var a=e+"-"+t+"-"+o+(i?"-server":"");if(n[a])return n[a];var s=r(e,t,o,i);return n[a]=s,s}},4809:(e,
t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isvalidColorString=t.red=t.getContrastingColor=t.isValidHex=t.toState=t.simpleCheckForValidColor=void 0;var r=i(n(6073)),o=i(n(8207));function i(e){return e&&e.__esModule?e:{default:e}}t.simpleCheckForValidColor=function(e){var t=0,n=0;return(0,r.default)(["r","g","b","a","h","s","l","v"],function(r){e[r]&&(t+=1,isNaN(e[r])||(n+=1),"s"===r||"l"===r)&&/^\d+%$/.test(e[r])&&(n+=1)}),t===n&&e};var a=t.toState=function(e,t){var n=e.hex?(0,o.default)(e.hex):
(0,o.default)(e),r=n.toHsl(),i=n.toHsv(),a=n.toRgb(),s=n.toHex();return 0===r.s&&(r.h=t||0,i.h=t||0),{hsl:r,hex:"000000"===s&&0===a.a?"transparent":"#"+s,rgb:a,hsv:i,oldHue:e.h||t||r.h,source:e.source}};t.isValidHex=function(e){if("transparent"===e)return!0;var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&(0,o.default)(e).isValid()},t.getContrastingColor=function(e){if(!e)return"#fff";var t=a(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/
1E3>=128?"#000":"#fff"},t.red={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}},t.isvalidColorString=function(e,t){var n=e.replace("\u00b0","");return(0,o.default)(t+" ("+n+")")._ok}},3716:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.calculateChange=function(e,t,n,r){var o=r.clientWidth,i=r.clientHeight,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=a-(r.getBoundingClientRect().left+window.pageXOffset),
u=s-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var c;if(c=u<0?359:u>i?0:360*(-100*u/i+100)/100,n.h!==c)return{h:c,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var f;if(f=l<0?0:l>o?359:100*l/o*360/100,n.h!==f)return{h:f,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null}},2538:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.handleFocus=void 0;var r,o=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},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=(r=n(7294))&&r.__esModule?r:{default:r};function s(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}t.handleFocus=function(e){var t=
arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,r);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return t=n=s(this,(e=r.__proto__||Object.getPrototypeOf(r)).call.apply(e,[this].concat(i))),n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},s(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)}(r,n),i(r,[{key:"render",value:function(){return a.default.createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},a.default.createElement(e,o({},this.props,this.state)))}}]),
r}(a.default.Component)}},1355:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.calculateChange=function(e,t,n){var r=n.getBoundingClientRect(),o=r.width,i=r.height,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=a-(n.getBoundingClientRect().left+window.pageXOffset),u=s-(n.getBoundingClientRect().top+window.pageYOffset);l<0?l=0:l>o&&(l=o),u<0?u=0:u>i&&(u=i);var c=l/o,f=1-u/i;return{h:t.h,s:c,v:f,a:t.a,source:"hsv"}}},2166:(e,
t,n)=>{n.r(t),n.d(t,{FILE:()=>r,TEXT:()=>i,URL:()=>o});var r="__NATIVE_FILE__",o="__NATIVE_URL__",i="__NATIVE_TEXT__"},4664:(e,t,n)=>{function r(e){var t=null;return function(){return null==t&&(t=e()),t}}n.d(t,{PD:()=>k});var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,e),this.entered=[],this.isNodeInDocument=t}var t;return(t=[{key:"enter",value:function(e){var t=this,n=this.entered.length;return this.entered=function(e,
t){var n=new Set,r=function(e){return n.add(e)};e.forEach(r),t.forEach(r);var o=[];return n.forEach(function(e){return o.push(e)}),o}(this.entered.filter(function(n){return t.isNodeInDocument(n)&&(!n.contains||n.contains(e))}),[e]),0===n&&this.entered.length>0}},{key:"leave",value:function(e){var t,n,r=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),n=e,t.filter(function(e){return e!==n})),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=
[]}}])&&function(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)}}(e.prototype,t),e}(),i=r(function(){return/firefox/i.test(navigator.userAgent)}),a=r(function(){return Boolean(window.safari)});var s=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,e);for(var r=t.length,o=[],i=0;i<r;i++)o.push(i);o.sort(function(e,n){return t[e]<
t[n]?-1:1});for(var a,s,l=[],u=[],c=[],f=0;f<r-1;f++)a=t[f+1]-t[f],s=n[f+1]-n[f],u.push(a),l.push(s),c.push(s/a);for(var d=[c[0]],p=0;p<u.length-1;p++){var h=c[p],g=c[p+1];if(h*g<=0)d.push(0);else{a=u[p];var m=u[p+1],v=a+m;d.push(3*v/((v+m)/h+(v+a)/g))}}d.push(c[c.length-1]);for(var y,b=[],w=[],x=0;x<d.length-1;x++){y=c[x];var k=d[x],S=1/u[x],C=k+d[x+1]-y-y;b.push((y-k-C)*S),w.push(C*S*S)}this.xs=t,this.ys=n,this.c1s=d,this.c2s=b,this.c3s=w}var t;return(t=[{key:"interpolate",value:function(e){var t=
this.xs,n=this.ys,r=this.c1s,o=this.c2s,i=this.c3s,a=t.length-1;if(e===t[a])return n[a];for(var s,l=0,u=i.length-1;l<=u;){var c=t[s=Math.floor(.5*(l+u))];if(c<e)l=s+1;else{if(!(c>e))return n[s];u=s-1}}var f=e-t[a=Math.max(0,u)],d=f*f;return n[a]+r[a]*f+o[a]*d+i[a]*f*d}}])&&function(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)}}(e.prototype,t),e}();function l(e){var t=1===e.nodeType?e:e.parentElement;
if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function u(e){return{x:e.clientX,y:e.clientY}}var c,f=n(2166);function d(e,t,n){var r=t.reduce(function(t,n){return t||e.getData(n)},"");return null!=r?r:n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=(p(c={},f.FILE,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items}},matchesTypes:["Files"]}),
p(c,f.URL,{exposeProperties:{urls:function(e,t){return d(e,t,"").split("\n")}},matchesTypes:["Url","text/uri-list"]}),p(c,f.TEXT,{exposeProperties:{text:function(e,t){return d(e,t,"")}},matchesTypes:["Text","text/plain"]}),c);var g=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,e),this.config=t,this.item={},this.initializeExposedProperties()}var t;return(t=[{key:"initializeExposedProperties",value:function(){var e=this;
Object.keys(this.config.exposeProperties).forEach(function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var n={};Object.keys(this.config.exposeProperties).forEach(function(r){n[r]={value:t.config.exposeProperties[r](e,t.config.matchesTypes),configurable:!0,enumerable:!0}}),Object.defineProperties(this.item,
n)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}])&&function(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)}}(e.prototype,t),e}();function m(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(h).filter(function(e){return h[e].matchesTypes.some(function(e){return t.indexOf(e)>
-1})})[0]||null}var v=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,e),this.globalContext=t}var t;return(t=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&function(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)}}(e.prototype,t),e}();function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach(function(t){w(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):
y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,e),this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,
this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.getSourceClientOffset=function(e){var t=r.sourceNodes.get(e);return t&&l(t)||null},this.endDragNativeItem=function(){r.isDraggingNativeItem()&&(r.actions.endDrag(),r.currentNativeHandle&&r.registry.removeSource(r.currentNativeHandle),
r.currentNativeHandle=null,r.currentNativeSource=null)},this.isNodeInDocument=function(e){return Boolean(e&&r.document&&r.document.body&&document.body.contains(e))},this.endDragIfSourceWasRemovedFromDOM=function(){var e=r.currentDragSourceNode;r.isNodeInDocument(e)||r.clearCurrentDragSourceNode()&&r.actions.endDrag()},this.handleTopDragStartCapture=function(){r.clearCurrentDragSourceNode(),r.dragStartSourceIds=[]},this.handleTopDragStart=function(e){if(!e.defaultPrevented){var t=r.dragStartSourceIds;
r.dragStartSourceIds=null;var n=u(e);r.monitor.isDragging()&&r.actions.endDrag(),r.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:r.getSourceClientOffset,clientOffset:n});var o=e.dataTransfer,c=m(o);if(r.monitor.isDragging()){if(o&&"function"==typeof o.setDragImage){var f=r.monitor.getSourceId(),d=r.sourceNodes.get(f),p=r.sourcePreviewNodes.get(f)||d;if(p){var h=r.getCurrentSourcePreviewNodeOptions(),g=function(e,t,n,r,o){var u,c,f,d="IMG"===(u=t).nodeName&&(i()||!(null===(c=document.documentElement)||
void 0===c?void 0:c.contains(u))),p=l(d?e:t),h={x:n.x-p.x,y:n.y-p.y},g=e.offsetWidth,m=e.offsetHeight,v=r.anchorX,y=r.anchorY,b=function(e,t,n,r){var o=e?t.width:n,i=e?t.height:r;return a()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(d,t,g,m),w=b.dragPreviewWidth,x=b.dragPreviewHeight,k=o.offsetX,S=o.offsetY,C=0===S||S;return{x:0===k||k?k:(new s([0,.5,1],[h.x,h.x/g*w,h.x+w-g])).interpolate(v),y:C?S:(f=(new s([0,.5,1],[h.y,h.y/m*x,h.y+x-m])).interpolate(y),
a()&&d&&(f+=(window.devicePixelRatio-1)*x),f)}}(d,p,n,{anchorX:h.anchorX,anchorY:h.anchorY},{offsetX:h.offsetX,offsetY:h.offsetY});o.setDragImage(p,g.x,g.y)}}try{null==o||o.setData("application/json",{})}catch(e){}r.setCurrentDragSourceNode(e.target),r.getCurrentSourcePreviewNodeOptions().captureDraggingState?r.actions.publishDragSource():setTimeout(function(){return r.actions.publishDragSource()},0)}else if(c)r.beginDragNativeItem(c);else{if(o&&!o.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;
e.preventDefault()}}},this.handleTopDragEndCapture=function(){r.clearCurrentDragSourceNode()&&r.actions.endDrag()},this.handleTopDragEnterCapture=function(e){if(r.dragEnterTargetIds=[],r.enterLeaveCounter.enter(e.target)&&!r.monitor.isDragging()){var t=e.dataTransfer,n=m(t);n&&r.beginDragNativeItem(n,t)}},this.handleTopDragEnter=function(e){var t=r.dragEnterTargetIds;r.dragEnterTargetIds=[],r.monitor.isDragging()&&(r.altKeyPressed=e.altKey,i()||r.actions.hover(t,{clientOffset:u(e)}),t.some(function(e){return r.monitor.canDropOnTarget(e)})&&
(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(){r.dragOverTargetIds=[]},this.handleTopDragOver=function(e){var t=r.dragOverTargetIds;if(r.dragOverTargetIds=[],!r.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));r.altKeyPressed=e.altKey,r.actions.hover(t||[],{clientOffset:u(e)}),(t||[]).some(function(e){return r.monitor.canDropOnTarget(e)})?(e.preventDefault(),
e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())):r.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(e){r.isDraggingNativeItem()&&e.preventDefault(),r.enterLeaveCounter.leave(e.target)&&r.isDraggingNativeItem()&&r.endDragNativeItem()},this.handleTopDropCapture=function(e){var t;r.dropTargetIds=[],e.preventDefault(),r.isDraggingNativeItem()&&(null===(t=r.currentNativeSource)||
void 0===t||t.loadDataTransfer(e.dataTransfer)),r.enterLeaveCounter.reset()},this.handleTopDrop=function(e){var t=r.dropTargetIds;r.dropTargetIds=[],r.actions.hover(t,{clientOffset:u(e)}),r.actions.drop({dropEffect:r.getCurrentDropEffect()}),r.isDraggingNativeItem()?r.endDragNativeItem():r.endDragIfSourceWasRemovedFromDOM()},this.handleSelectStart=function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),
t.dragDrop()))},this.options=new v(n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new o(this.isNodeInDocument)}var t;return(t=[{key:"profile",value:function(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:
e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}},{key:"setup",value:function(){var e=this;if(void 0!==this.window){if(this.window.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.window.__isReactDndBackendSetUp=!0;var t=document.getElementById("jpagebuilder-view");t&&t.addEventListener("load",function(){if(e.window){var t=
e.window.frames["jpagebuilder-view"].window;t&&e.addEventListeners(t)}}),this.addEventListeners(this.window)}}},{key:"teardown",value:function(){var e=this;if(void 0!==this.window){this.window.__isReactDndBackendSetUp=!1;var t=document.getElementById("jpagebuilder-view");t&&t.addEventListener("load",function(){if(e.window){var t=e.window.frames["jpagebuilder-view"].window;t&&e.removeEventListeners(t)}}),this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&
this.window.cancelAnimationFrame(this.asyncEndDragFrameId)}}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){r.sourcePreviewNodes.delete(e),r.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,n){var r=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);var o=function(t){return r.handleDragStart(t,e)},i=function(e){return r.handleSelectStart(e)};return t.setAttribute("draggable",
"true"),t.addEventListener("dragstart",o),t.addEventListener("selectstart",i),function(){r.sourceNodes.delete(e),r.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var n=this,r=function(t){return n.handleDragEnter(t,e)},o=function(t){return n.handleDragOver(t,e)},i=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",r),t.addEventListener("dragover",
o),t.addEventListener("drop",i),function(){t.removeEventListener("dragenter",r),t.removeEventListener("dragover",o),t.removeEventListener("drop",i)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,
!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",
this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=
this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return b({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return b({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=
this.monitor.getItemType();return Object.keys(f).some(function(t){return f[t]===e})}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var n=new g(h[e]);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=
e,this.mouseMoveTimeoutTimer=setTimeout(function(){return t.window&&t.window.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)},1E3)}},{key:"clearCurrentDragSourceNode",value:function(){return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.window&&(this.window.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,
t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}}])&&
function(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)}}(e.prototype,t),e}(),k=function(e,t){return new x(e,t)}},5293:(e,t,n)=>{n.d(t,{L:()=>he,W:()=>ge});var r=n(7294),o=n(4890),i="dnd-core/INIT_COORDS",a="dnd-core/BEGIN_DRAG",s="dnd-core/PUBLISH_DRAG_SOURCE",l="dnd-core/HOVER",u="dnd-core/DROP",c="dnd-core/END_DRAG",f=function(e,t){return e===t};function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=
Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,
t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function m(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,r=arguments.length>1?arguments[1]:void 0,o=r.payload;switch(r.type){case i:case a:return{initialSourceClientOffset:o.sourceClientOffset,initialClientOffset:o.clientOffset,clientOffset:o.clientOffset};case l:return e=n.clientOffset,t=
o.clientOffset,!e&&!t||e&&t&&e.x===t.x&&e.y===t.y?n:p(p({},n),{},{clientOffset:o.clientOffset});case c:case u:return g;default:return n}}var v="dnd-core/ADD_SOURCE",y="dnd-core/ADD_TARGET",b="dnd-core/REMOVE_SOURCE",w="dnd-core/REMOVE_TARGET";function x(e){return x="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},x(e)}function k(e){return"object"===
x(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach(function(t){O(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach(function(t){Object.defineProperty(e,
t,Object.getOwnPropertyDescriptor(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 E={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function M(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E,r=arguments.length>1?arguments[1]:void 0,o=r.payload;switch(r.type){case a:return C(C({},n),{},{itemType:o.itemType,item:o.item,sourceId:o.sourceId,
isSourcePublic:o.isSourcePublic,dropResult:null,didDrop:!1});case s:return C(C({},n),{},{isSourcePublic:!0});case l:return C(C({},n),{},{targetIds:o.targetIds});case w:return-1===n.targetIds.indexOf(o.targetId)?n:C(C({},n),{},{targetIds:(e=n.targetIds,t=o.targetId,e.filter(function(e){return e!==t}))});case u:return C(C({},n),{},{dropResult:o.dropResult,didDrop:!0,targetIds:[]});case c:return C(C({},n),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});
default:return n}}function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case v:case y:return e+1;case b:case w:return e-1;default:return e}}var _=[],A=[];function P(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case l:break;case v:case y:case w:case b:return _;default:return A}var t=e.payload,n=t.targetIds,r=void 0===n?[]:n,o=t.prevTargetIds,i=void 0===o?[]:o,a=function(e,t){var n=new Map,r=function(e){n.set(e,
n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);var o=[];return n.forEach(function(e,t){1===e&&o.push(t)}),o}(r,i),s=a.length>0||!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;if(e.length!==t.length)return!1;for(var r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(r,i);if(!s)return _;var u=i[i.length-1],c=r[r.length-1];return u!==c&&(u&&a.push(u),c&&a.push(c)),a}function D(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}function N(e,t){var n=
Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach(function(t){L(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,
t))})}return e}function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:P(n.dirtyHandlerIds,{type:r.type,payload:R(R({},r.payload),{},{prevTargetIds:(e=n,t=[],"dragOperation.targetIds".split(".").reduce(function(e,n){return e&&e[n]?e[n]:t||null},e))})}),dragOffset:m(n.dragOffset,r),refCount:T(n.refCount,
r),dragOperation:M(n.dragOperation,r),stateId:D(n.stateId)}}_.__IS_NONE__=!0,A.__IS_ALL__=!0;var I=n(8195);function F(e,t){return{type:i,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var z={type:i,payload:{clientOffset:null,sourceClientOffset:null}};function H(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},r=n.publishSource,o=void 0===r||r,i=n.clientOffset,s=n.getSourceClientOffset,
l=e.getMonitor(),u=e.getRegistry();e.dispatch(F(i)),function(e,t,n){(0,I.k)(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(e){(0,I.k)(n.getSource(e),"Expected sourceIds to be registered.")})}(t,l,u);var c=function(e,t){for(var n=null,r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,l);if(null!==c){var f=null;if(i){if(!s)throw new Error("getSourceClientOffset must be defined");!function(e){(0,I.k)("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(s),
f=s(c)}e.dispatch(F(i,f));var d=u.getSource(c).beginDrag(l,c);!function(e){(0,I.k)(k(e),"Item must be an object.")}(d),u.pinSource(c);var p=u.getSourceType(c);return{type:a,payload:{itemType:p,item:d,sourceId:c,clientOffset:i||null,sourceClientOffset:f||null,isSourcePublic:!!o}}}e.dispatch(z)}}function B(e){return function(){if(e.getMonitor().isDragging())return{type:s}}}function V(e,t){return null===t?null===e:Array.isArray(e)?e.some(function(e){return e===t}):e===t}function W(e){return function(t){var n=
(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).clientOffset;!function(e){(0,I.k)(Array.isArray(e),"Expected targetIds to be an array.")}(t);var r=t.slice(0),o=e.getMonitor(),i=e.getRegistry();return function(e,t,n){(0,I.k)(t.isDragging(),"Cannot call hover while not dragging."),(0,I.k)(!t.didDrop(),"Cannot call hover after drop.");for(var r=0;r<e.length;r++){var o=e[r];(0,I.k)(e.lastIndexOf(o)===r,"Expected targetIds to be unique in the passed array.");var i=n.getTarget(o);(0,I.k)(i,
"Expected targetIds to be registered.")}}(r,o,i),function(e,t,n){for(var r=e.length-1;r>=0;r--){var o=e[r];V(t.getTargetType(o),n)||e.splice(r,1)}}(r,i,o.getItemType()),function(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}(r,o,i),{type:l,payload:{targetIds:r,clientOffset:n||null}}}}function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,
r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach(function(t){q(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(e){return function(){var t=
arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getMonitor(),r=e.getRegistry();!function(e){(0,I.k)(e.isDragging(),"Cannot call drop while not dragging."),(0,I.k)(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);var o=function(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);o.forEach(function(o,i){var a=function(e,t,n,r){var o=n.getTarget(e),i=o?o.drop(r,e):void 0;return function(e){(0,I.k)(void 0===e||k(e),"Drop result must either be an object or undefined.")}(i),
void 0===i&&(i=0===t?{}:r.getDropResult()),i}(o,i,r,n),s={type:u,payload:{dropResult:U(U({},t),a)}};e.dispatch(s)})}}function K(e){return function(){var t=e.getMonitor(),n=e.getRegistry();!function(e){(0,I.k)(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var r=t.getSourceId();return null!=r&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:c}}}function Y(e,t){return{x:e.x-t.x,y:e.y-t.y}}var G,J=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");
}(this,e),this.store=t,this.registry=n}var t;return t=[{key:"subscribeToStateChange",value:function(e){var t=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0}).handlerIds;(0,I.k)("function"==typeof e,"listener must be a function."),(0,I.k)(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");var r=this.store.getState().stateId;return this.store.subscribe(function(){var o=t.store.getState(),i=o.stateId;try{var a=i===r||i===r+1&&!function(e,
t){return e!==_&&(e===A||void 0===t||(n=e,t.filter(function(e){return n.indexOf(e)>-1})).length>0);var n}(o.dirtyHandlerIds,n);a||e()}finally{r=i}})}},{key:"subscribeToOffsetChange",value:function(e){var t=this;(0,I.k)("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe(function(){var r=t.store.getState().dragOffset;r!==n&&(n=r,e())})}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return(0,I.k)(t,
"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return(0,I.k)(t,"Expected to find a valid target."),!(!this.isDragging()||this.didDrop())&&V(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return(0,I.k)(t,
"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){if(!e)return!1;var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1}).shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(e),r=this.getItemType();if(r&&!V(n,r))return!1;var o=this.getTargetIds();if(!o.length)return!1;var i=o.indexOf(e);return t?i===o.length-1:i>
-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},
{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return r=(e=this.store.getState().dragOffset).clientOffset,
o=e.initialClientOffset,i=e.initialSourceClientOffset,r&&o&&i?Y((n=i,{x:(t=r).x+n.x,y:t.y+n.y}),o):null;var e,t,n,r,o,i}},{key:"getDifferenceFromInitialOffset",value:function(){return t=(e=this.store.getState().dragOffset).clientOffset,n=e.initialClientOffset,t&&n?Y(t,n):null;var e,t,n}}],t&&function(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)}}(e.prototype,t),e}(),X=0;function Q(e){return Q=
"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},Q(e)}function ee(e,t){t&&Array.isArray(e)?e.forEach(function(e){return ee(e,!1)}):(0,I.k)("string"==typeof e||"symbol"===Q(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(G||(G={}));const te=
"undefined"!=typeof global?global:self,ne=te.MutationObserver||te.WebKitMutationObserver;function re(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const oe="function"==typeof ne?function(e){let t=1;const n=new ne(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:re;class ie{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,
t){this.onError=e,this.release=t,this.task=null}}const ae=new class{enqueueTask(e){const {queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const {queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=
0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=oe(this.flush),this.requestErrorThrow=re(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift();})}},se=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new ie(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(ae.registerPendingError);function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=
0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ue(e){switch(e[0]){case "S":return G.SOURCE;case "T":return G.TARGET;default:(0,I.k)(!1,"Cannot parse handler ID: ".concat(e))}}function ce(e,t){var n,r=e.entries(),o=!1;do{var i=r.next(),a=i.done;if((n=i.value,2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){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),2!==n.length);r=
!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i;}}return n}}(n)||function(e,t){if(e){if("string"==typeof e)return le(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?le(e,2):void 0}}(n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}())[1]===t)return!0;o=!!a}while(!o);return!1}var fe=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,e),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}var t;return t=[{key:"addSource",value:function(e,t){ee(e),function(e){(0,I.k)("function"==typeof e.canDrag,"Expected canDrag to be a function."),(0,I.k)("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),
(0,I.k)("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var n=this.addHandler(G.SOURCE,e,t);return this.store.dispatch(function(e){return{type:v,payload:{sourceId:e}}}(n)),n}},{key:"addTarget",value:function(e,t){ee(e,!0),function(e){(0,I.k)("function"==typeof e.canDrop,"Expected canDrop to be a function."),(0,I.k)("function"==typeof e.hover,"Expected hover to be a function."),(0,I.k)("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var n=this.addHandler(G.TARGET,
e,t);return this.store.dispatch(function(e){return{type:y,payload:{targetId:e}}}(n)),n}},{key:"containsHandler",value:function(e){return ce(this.dragSources,e)||ce(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,I.k)(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}},{key:"getTarget",value:function(e){return(0,I.k)(this.isTargetId(e),"Expected a valid target ID."),
this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return(0,I.k)(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return(0,I.k)(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return ue(e)===G.SOURCE}},{key:"isTargetId",value:function(e){return ue(e)===G.TARGET}},{key:"removeSource",value:function(e){var t,n=this;(0,I.k)(this.getSource(e),"Expected an existing source."),
this.store.dispatch(function(e){return{type:b,payload:{sourceId:e}}}(e)),t=function(){n.dragSources.delete(e),n.types.delete(e)},ae.enqueueTask(se.create(t))}},{key:"removeTarget",value:function(e){(0,I.k)(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:w,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);(0,I.k)(t,"Expected an existing source."),this.pinnedSourceId=e,
this.pinnedSource=t}},{key:"unpinSource",value:function(){(0,I.k)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,n){var r=function(e){var t=(X++).toString();switch(e){case G.SOURCE:return"S".concat(t);case G.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e));}}(e);return this.types.set(r,t),e===G.SOURCE?this.dragSources.set(r,n):e===G.TARGET&&this.dropTargets.set(r,n),
r}}],t&&function(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)}}(e.prototype,t),e}();var de=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,e),this.isSetUp=!1,this.handleRefCountChange=function(){var e=t.store.getState().refCount>0;t.backend&&(e&&!t.isSetUp?
(t.backend.setup(),t.isSetUp=!0):!e&&t.isSetUp&&(t.backend.teardown(),t.isSetUp=!1))};var r=function(e){var t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return(0,o.MT)(j,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(n);this.store=r,this.monitor=new J(r,new fe(r)),r.subscribe(this.handleRefCountChange)}var t;return t=[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},
{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch,n=function(e){return{beginDrag:H(e),publishDragSource:B(e),hover:W(e),drop:Z(e),endDrag:K(e)}}(this);return Object.keys(n).reduce(function(r,o){var i,a=n[o];return r[o]=(i=a,function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var a=i.apply(e,r);void 0!==a&&t(a)}),r},{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}],t&&
function(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)}}(e.prototype,t),e}();function pe(e,t,n,r){var o=new de(r),i=e(o,t,n);return o.receiveBackend(i),o}var he=r.createContext({dragDropManager:void 0});function ge(e,t,n,r){return{dragDropManager:pe(e,t,n,r)}}},9862:(e,t,n)=>{n.d(t,{W:()=>s});var r=n(7294),o=n(5293);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<
t;n++)r[n]=e[n];return r}var a=0,s=(0,r.memo)(function(e){var t,n=e.children,s=function(e){if("manager"in e)return[{dragDropManager:e.manager},!1];var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=t;return i[l]||(i[l]=(0,o.W)(e,t,n,r)),i[l]}(e.backend,e.context,e.options,e.debugMode);return[t,!e.context]}(function(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}(e,["children"])),c=(2,function(e){if(Array.isArray(e))return e}(t=s)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){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),2!==n.length);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i;}}return n}}(t)||function(e,t){if(e){if("string"==typeof e)return i(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,2):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}()),f=c[0],d=c[1];return r.useEffect(function(){return d&&a++,function(){d&&0==--a&&(u()[l]=null)}},[]),r.createElement(o.L.Provider,{value:f},n)});s.displayName="DndProvider";var l=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function u(){return void 0!==n.g?n.g:window}},3353:(e,t,n)=>{n.d(t,{h:()=>o});var r=n(7294),o=r.memo(function(e){var t=e.connect,n=e.src;return r.useEffect(function(){if("undefined"!=typeof Image){var e=!1,r=new Image;return r.src=n,r.onload=function(){t(r),e=!0},function(){e&&
t(null)}}}),null});o.displayName="DragPreviewImage"},938:(e,t,n)=>{n.d(t,{p:()=>a});var r=n(8195);var o=!1,i=!1,a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}var t;return(t=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){(0,r.k)(!o,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");
try{return o=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{o=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;(0,r.k)(!i,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return i=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{i=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,
t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(e){return this.internalMonitor.subscribeToOffsetChange(e)}},
{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",
value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&function(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)}}(e.prototype,t),e}()},6941:(e,t,n)=>{n.d(t,{H:()=>i});var r=n(8195);var o=!1,i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}var t;return(t=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",
value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;(0,r.k)(!o,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return o=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{o=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&
this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},
{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&function(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)}}(e.prototype,t),e}()},8556:(e,
t,n)=>{n.d(t,{x:()=>a});var r=n(5214),o=n(2980),i=n(5047);var a=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,e),this.hooks=(0,r.p)({dragSource:function(e,t){n.clearDragSource(),n.dragSourceOptions=t||null,(0,o.d)(e)?n.dragSourceRef=e:n.dragSourceNode=e,n.reconnectDragSource()},dragPreview:function(e,t){n.clearDragPreview(),n.dragPreviewOptions=t||null,(0,o.d)(e)?n.dragPreviewRef=e:n.dragPreviewNode=e,n.reconnectDragPreview()}}),
this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}var t;return(t=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"reconnect",value:function(){this.reconnectDragSource(),
this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();t&&this.disconnectDragSource(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)):this.lastConnectedDragSource=
e)}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();t&&this.disconnectDragPreview(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.lastConnectedDragPreview=e)}},
{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!(0,i.w)(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!(0,i.w)(this.lastConnectedDragPreviewOptions,
this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=
null,this.dragPreviewRef=null}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||
this.dragPreviewRef&&this.dragPreviewRef.current}}])&&function(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)}}(e.prototype,t),e}()},9026:(e,t,n)=>{n.d(t,{Y:()=>a});var r=n(5047),o=n(5214),i=n(2980);var a=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,e),this.hooks=(0,o.p)({dropTarget:function(e,t){n.clearDropTarget(),
n.dropTargetOptions=t,(0,i.d)(e)?n.dropTargetRef=e:n.dropTargetNode=e,n.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}var t;return(t=[{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=
this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==
this.dropTarget}},{key:"didOptionsChange",value:function(){return!(0,r.w)(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}},{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},
set:function(e){this.dropTargetOptionsInternal=e}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}}])&&function(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)}}(e.prototype,t),e}()},3273:(e,t,n)=>{function r(e,t,n){var r=n.getRegistry(),o=r.addTarget(e,t);return[o,function(){return r.removeTarget(o)}]}function o(e,t,n){var r=n.getRegistry(),
o=r.addSource(e,t);return[o,function(){return r.removeSource(o)}]}n.d(t,{n:()=>r,w:()=>o})},5214:(e,t,n)=>{n.d(t,{p:()=>a});var r=n(7294),o=n(8195);function i(e,t){"function"==typeof e?e(t):e.current=t}function a(e){var t={};return Object.keys(e).forEach(function(n){var a=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var s=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,r.isValidElement)(t)){var a=
t;return e(a,n),a}var s=t;!function(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.");}}(s);var l=n?function(t){return e(t,n)}:e;return function(e,t){var n=e.ref;return(0,o.k)("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),
n?(0,r.cloneElement)(e,{ref:function(e){i(n,e),i(t,e)}}):(0,r.cloneElement)(e,{ref:t})}(s,l)}}(a);t[n]=function(){return s}}}),t}},1172:(e,t,n)=>{n.d(t,{DragSource:()=>N,DropTarget:()=>F});var r=n(8195);function o(e){return 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},o(e)}function i(e){return"function"==typeof e}function a(){}function s(e){if(!function(e){return"object"===
o(e)&&null!==e}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function l(e){var t=e.current;return null==t?null:t.decoratedRef?t.decoratedRef.current:t}var u=n(7294),c=n(5047),f=n(8679),d=n.n(f),p=n(5293);function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}function g(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 m(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),e}var v=function(){var e=function(){function e(t){h(this,e),this.isDisposed=!1,this.action=i(t)?t:a}return m(e,[{key:"dispose",value:function(){this.isDisposed||(this.action(),this.isDisposed=!0)}}],[{key:"isDisposable",value:function(e){return Boolean(e&&i(e.dispose))}},{key:"_fixup",value:function(t){return e.isDisposable(t)?t:e.empty}},{key:"create",value:function(t){return new e(t)}}]),
e}();return e.empty={dispose:a},e}(),y=function(){function e(){h(this,e),this.isDisposed=!1;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this.disposables=n}return m(e,[{key:"add",value:function(e){this.isDisposed?e.dispose():this.disposables.push(e)}},{key:"remove",value:function(e){var t=!1;if(!this.isDisposed){var n=this.disposables.indexOf(e);-1!==n&&(t=!0,this.disposables.splice(n,1),e.dispose())}return t}},{key:"clear",value:function(){if(!this.isDisposed){for(var e=
this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(var r=0;r<e;r++)t[r].dispose()}}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(var r=0;r<e;r++)t[r].dispose()}}}]),e}(),b=function(){function e(){h(this,e),this.isDisposed=!1}return m(e,[{key:"getDisposable",value:function(){return this.current}},{key:"setDisposable",
value:function(e){var t=this.isDisposed;if(!t){var n=this.current;this.current=e,n&&n.dispose()}t&&e&&e.dispose()}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=void 0,e&&e.dispose()}}}]),e}();function w(e){return w="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},w(e)}function x(e,t){(null==
t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k(e,t){return k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},k(e,t)}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function C(e){var t=e.DecoratedComponent,n=e.createHandler,o=e.createMonitor,i=e.createConnector,a=e.registerHandler,s=e.containerDisplayName,l=e.getType,f=e.collect,h=e.options.arePropsEqual,g=void 0===
h?c.w:h,m=t,C=t.displayName||t.name||"Component",O=function(){var e=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(O,e);var t,s,d,h=(s=O,d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,
[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=S(s);if(d){var n=S(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==w(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,e)});function O(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,O),
(t=h.call(this,e)).decoratedRef=u.createRef(),t.handleChange=function(){var e=t.getCurrentState();(0,c.w)(e,t.state)||t.setState(e)},t.disposable=new b,t.receiveProps(e),t.dispose(),t}return(t=[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return(0,r.k)(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.decoratedRef.current}},
{key:"shouldComponentUpdate",value:function(e,t){return!g(e,this.props)||!(0,c.w)(t,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new b,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(e){g(this.props,e)||(this.receiveProps(this.props),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"receiveProps",value:function(e){this.handler&&(this.handler.receiveProps(e),this.receiveType(l(e)))}},
{key:"receiveType",value:function(e){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&e!==this.currentType){this.currentType=e;var t=(2,function(e){if(Array.isArray(e))return e}(i=a(e,this.handler,this.manager))||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){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),2!==n.length);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i;
}}return n}}(i)||function(e,t){if(e){if("string"==typeof e)return x(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,2):void 0}}(i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}()),n=t[0],r=t[1];this.handlerId=
n,this.handlerMonitor.receiveHandlerId(n),this.handlerConnector.receiveHandlerId(n);var o=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[n]});this.disposable.setDisposable(new y(new v(o),new v(r)))}var i}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)}},{key:"getCurrentState",value:function(){return this.handlerConnector?f(this.handlerConnector.hooks,this.handlerMonitor,this.props):{}}},
{key:"render",value:function(){var e=this;return u.createElement(p.L.Consumer,null,function(t){var n,r,o=t.dragDropManager;return e.receiveDragDropManager(o),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(function(){var t;return null===(t=e.handlerConnector)||void 0===t?void 0:t.reconnect()}),u.createElement(m,Object.assign({},e.props,e.getCurrentState(),{ref:(n=m,r=n,r&&r.prototype&&"function"==typeof r.prototype.render||function(e){var t;return"Symbol(react.forward_ref)"===(null==
e||null===(t=e.$$typeof)||void 0===t?void 0:t.toString())}(n)?e.decoratedRef:null)}))})}},{key:"receiveDragDropManager",value:function(e){void 0===this.manager&&((0,r.k)(void 0!==e,"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",C,C),void 0!==e&&(this.manager=e,this.handlerMonitor=o(e),
this.handlerConnector=i(e.getBackend()),this.handler=n(this.handlerMonitor,this.decoratedRef)))}}])&&function(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)}}(O.prototype,t),O}(u.Component);return e.DecoratedComponent=t,e.displayName="".concat(s,"(").concat(C,")"),e}();return d()(O,t)}var O=n(3273),E=n(938),M=n(8556);function T(e){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?
function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},T(e)}function _(e,t){return"string"==typeof e||"symbol"===T(e)||!!t&&Array.isArray(e)&&e.every(function(e){return _(e,!1)})}var A=["canDrag","beginDrag","isDragging","endDrag"],P=["beginDrag"],D=function(){function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,e),this.props=null,this.beginDrag=
function(){if(o.props)return o.spec.beginDrag(o.props,o.monitor,o.ref.current)},this.spec=t,this.monitor=n,this.ref=r}var t;return(t=[{key:"receiveProps",value:function(e){this.props=e}},{key:"canDrag",value:function(){return!!this.props&&(!this.spec.canDrag||this.spec.canDrag(this.props,this.monitor))}},{key:"isDragging",value:function(e,t){return!!this.props&&(this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):t===e.getSourceId())}},{key:"endDrag",value:function(){this.props&&this.spec.endDrag&&
this.spec.endDrag(this.props,this.monitor,l(this.ref))}}])&&function(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)}}(e.prototype,t),e}();function N(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e;"function"!=typeof e&&((0,r.k)(_(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',
e),i=function(){return e}),(0,r.k)(s(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',t);var a=function(e){return Object.keys(e).forEach(function(t){(0,r.k)(A.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',
A.join(", "),t),(0,r.k)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])}),P.forEach(function(t){(0,r.k)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])}),function(t,n){return new D(e,
t,n)}}(t);return(0,r.k)("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),(0,r.k)(s(o),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),function(e){return C({containerDisplayName:"DragSource",
createHandler:a,registerHandler:O.w,createConnector:function(e){return new M.x(e)},createMonitor:function(e){return new E.p(e)},DecoratedComponent:e,getType:i,collect:n,options:o})}}var R=n(9026),L=n(6941);var j=["canDrop","hover","drop"],I=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,e),this.props=null,this.spec=t,this.monitor=n,this.ref=r}var t;return(t=[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveMonitor",
value:function(e){this.monitor=e}},{key:"canDrop",value:function(){return!this.spec.canDrop||this.spec.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){this.spec.hover&&this.props&&this.spec.hover(this.props,this.monitor,l(this.ref))}},{key:"drop",value:function(){if(this.spec.drop)return this.spec.drop(this.props,this.monitor,this.ref.current)}}])&&function(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)}}(e.prototype,t),e}();function F(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e;"function"!=typeof e&&((0,r.k)(_(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),i=function(){return e}),(0,r.k)(s(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',
t);var a=function(e){return Object.keys(e).forEach(function(t){(0,r.k)(j.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',j.join(", "),t),(0,r.k)("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",
t,t,e[t])}),function(t,n){return new I(e,t,n)}}(t);return(0,r.k)("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),(0,r.k)(s(o),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',
n),function(e){return C({containerDisplayName:"DropTarget",createHandler:a,registerHandler:O.n,createMonitor:function(e){return new L.H(e)},createConnector:function(e){return new R.Y(e)},DecoratedComponent:e,getType:i,collect:n,options:o})}}},8586:(e,t,n)=>{n.d(t,{L:()=>o});var r=n(7294),o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},5627:(e,t,n)=>{n.d(t,{U:()=>l});var r=n(8586),o=n(5047),i=n(7294);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=
e[n];return r}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t,n){var l,u=function(e,t,n){var s,l=(2,function(e){if(Array.isArray(e))return e}(s=(0,i.useState)(function(){return t(e)}))||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){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),2!==n.length);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||
s.return()}finally{if(o)throw i;}}return n}}(s)||function(e,t){if(e){if("string"==typeof e)return a(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,2):void 0}}(s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}()),u=l[0],c=l[1],f=(0,i.useCallback)(function(){var r=t(e);(0,o.w)(u,r)||(c(r),n&&n())},[u,e,n]);return(0,r.L)(f,[]),[u,f]}(e,t,n),c=(2,function(e){if(Array.isArray(e))return e}(l=u)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){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),2!==n.length);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i;}}return n}}(l)||function(e,t){if(e){if("string"==
typeof e)return s(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,2):void 0}}(l)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}()),f=c[0],d=c[1];return(0,r.L)(function(){var t=e.getHandlerId();if(null!=
t)return e.subscribeToStateChange(d,{handlerIds:[t]})},[e,d]),f}},7034:(e,t,n)=>{n.d(t,{c:()=>h});var r=n(7294),o=n(8195),i=n(5627),a=n(8586),s=n(3273),l=n(917),u=n(938),c=n(8556);function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e){return d="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},d(e)}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e){var t=(0,r.useRef)(e);t.current=e,(0,o.k)(null!=e.item,"item must be defined"),(0,o.k)(null!=e.item.type,"item type must be defined");var n,h,g=(n=(0,l.N)(),2,function(e){if(Array.isArray(e))return e}(h=[(0,r.useMemo)(function(){return new u.p(n)},[n]),(0,r.useMemo)(function(){return new c.x(n.getBackend())},[n])])||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in
Object(e)){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),2!==n.length);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i;}}return n}}(h)||function(e,t){if(e){if("string"==typeof e)return p(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?
p(e,2):void 0}}(h)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}()),m=g[0],v=g[1];!function(e,t,n){var i=(0,l.N)(),u=(0,r.useMemo)(function(){return{beginDrag:function(){var n=e.current,r=n.begin,i=n.item;if(r){var a=r(t);return(0,o.k)(null==a||"object"===d(a),"dragSpec.begin() must either return an object, undefined, or null"),a||i||{}}return i||{}},canDrag:function(){return"boolean"==
typeof e.current.canDrag?e.current.canDrag:"function"!=typeof e.current.canDrag||e.current.canDrag(t)},isDragging:function(n,r){var o=e.current.isDragging;return o?o(t):r===n.getSourceId()},endDrag:function(){var r=e.current.end;r&&r(t.getItem(),t),n.reconnect()}}},[]);(0,a.L)(function(){var r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){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),2!==n.length);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i;}}return n}}(e)||function(e,t){if(e){if("string"==typeof e)return f(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}()}((0,s.w)(e.current.item.type,u,i)),o=r[0],a=r[1];return t.receiveHandlerId(o),n.receiveHandlerId(o),a},[])}(t,m,v);var y=(0,i.U)(m,t.current.collect||function(){return{}},function(){return v.reconnect()}),b=(0,r.useMemo)(function(){return v.hooks.dragSource()},[v]),w=(0,r.useMemo)(function(){return v.hooks.dragPreview()},[v]);return(0,a.L)(function(){v.dragSourceOptions=t.current.options||null,v.reconnect()},[v]),(0,a.L)(function(){v.dragPreviewOptions=t.current.previewOptions||null,v.reconnect()},
[v]),[y,b,w]}},917:(e,t,n)=>{n.d(t,{N:()=>a});var r=n(7294),o=n(8195),i=n(5293);function a(){var e=(0,r.useContext)(i.L).dragDropManager;return(0,o.k)(null!=e,"Expected drag drop context"),e}},2068:(e,t,n)=>{n.d(t,{L:()=>p});var r=n(7294),o=n(8195),i=n(5627),a=n(8586),s=n(3273),l=n(917),u=n(9026),c=n(6941);function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=
e[n];return r}function p(e){var t=(0,r.useRef)(e);t.current=e,(0,o.k)(null!=e.accept,"accept must be defined");var n,p,h=(n=(0,l.N)(),2,function(e){if(Array.isArray(e))return e}(p=[(0,r.useMemo)(function(){return new c.H(n)},[n]),(0,r.useMemo)(function(){return new u.Y(n.getBackend())},[n])])||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){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),2!==n.length);r=!0);}catch(e){o=
!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i;}}return n}}(p)||function(e,t){if(e){if("string"==typeof e)return d(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,2):void 0}}(p)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}()),g=h[0],m=h[1];!function(e,t,n){var o=(0,l.N)(),i=(0,r.useMemo)(function(){return{canDrop:function(){var n=e.current.canDrop;return!n||n(t.getItem(),t)},hover:function(){var n=e.current.hover;n&&n(t.getItem(),t)},drop:function(){var n=e.current.drop;if(n)return n(t.getItem(),t)}}},[t]);(0,a.L)(function(){var r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){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),2!==n.length);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i;}}return n}}(e)||function(e,t){if(e){if("string"==typeof e)return f(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,2):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}()}((0,s.n)(e.current.accept,i,o)),a=r[0],l=r[1];return t.receiveHandlerId(a),n.receiveHandlerId(a),l},[t,n])}(t,g,m);var v=(0,i.U)(g,t.current.collect||function(){return{}},function(){return m.reconnect()}),y=(0,r.useMemo)(function(){return m.hooks.dropTarget()},[m]);return(0,a.L)(function(){m.dropTargetOptions=e.options||null,m.reconnect()},[e.options]),[v,y]}},4785:(e,t,n)=>{n.d(t,{DragSource:()=>o.DragSource,DropTarget:()=>o.DropTarget});var r=n(1388);n.o(r,"DragSource")&&n.d(t,{DragSource:function(){return r.DragSource}}),
n.o(r,"DropTarget")&&n.d(t,{DropTarget:function(){return r.DropTarget}});var o=n(1172)},3897:()=>{},8058:()=>{},1388:(e,t,n)=>{var r=n(5253);n.o(r,"DragSource")&&n.d(t,{DragSource:function(){return r.DragSource}}),n.o(r,"DropTarget")&&n.d(t,{DropTarget:function(){return r.DropTarget}});var o=n(8058);n.o(o,"DragSource")&&n.d(t,{DragSource:function(){return o.DragSource}}),n.o(o,"DropTarget")&&n.d(t,{DropTarget:function(){return o.DropTarget}});var i=n(2105);n.o(i,"DragSource")&&n.d(t,{DragSource:function(){return i.DragSource}}),
n.o(i,"DropTarget")&&n.d(t,{DropTarget:function(){return i.DropTarget}});var a=n(3897);n.o(a,"DragSource")&&n.d(t,{DragSource:function(){return a.DragSource}}),n.o(a,"DropTarget")&&n.d(t,{DropTarget:function(){return a.DropTarget}})},5253:()=>{},2105:()=>{},2980:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}
function o(e){return null!==e&&"object"===r(e)&&Object.prototype.hasOwnProperty.call(e,"current")}n.d(t,{d:()=>o})},4448:(e,t,n)=>{var r=n(7294),o=n(7418),i=n(3840);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,l={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(l[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 m(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 v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){v[e]=new m(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],
["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];v[t]=new m(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){v[e]=new m(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){v[e]=
new m(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){v[e]=new m(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){v[e]=new m(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){v[e]=new m(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){v[e]=new m(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=v.hasOwnProperty(t)?v[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);v[t]=new m(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);v[t]=new m(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);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)}),v.xlinkHref=new m("xlinkHref",
1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)});var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=60103,S=60106,C=60107,O=60108,E=60114,M=60109,T=60110,_=60112,A=60113,P=60120,D=60115,N=60116,R=60121,L=60128,j=60129,I=60130,F=60131;if("function"==typeof Symbol&&Symbol.for){var z=Symbol.for;k=z("react.element"),S=z("react.portal"),C=z("react.fragment"),O=z("react.strict_mode"),
E=z("react.profiler"),M=z("react.provider"),T=z("react.context"),_=z("react.forward_ref"),A=z("react.suspense"),P=z("react.suspense_list"),D=z("react.memo"),N=z("react.lazy"),R=z("react.block"),z("react.scope"),L=z("react.opaque.id"),j=z("react.debug_trace_mode"),I=z("react.offscreen"),F=z("react.legacy_hidden")}var H,B="function"==typeof Symbol&&Symbol.iterator;function V(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=B&&e[B]||e["@@iterator"])?e:null}function W(e){if(void 0===H)try{throw Error();
}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);H=t&&t[1]||""}return"\n"+H+e}var $=!1;function U(e,t){if(!e||$)return"";$=!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{$=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function q(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");
case 19:return W("SuspenseList");case 0:case 2:case 15:return U(e.type,!1);case 11:return U(e.type.render,!1);case 22:return U(e.type._render,!1);case 1:return U(e.type,!0);default:return""}}function Z(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 C:return"Fragment";case S:return"Portal";case E:return"Profiler";case O:return"StrictMode";case A:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||
"Context")+".Consumer";case M:return(e._context.displayName||"Context")+".Provider";case _:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case D:return Z(e.type);case R:return Z(e._render);case N:t=e._payload,e=e._init;try{return Z(e(t))}catch(e){}}return null}function K(e){switch(typeof e){case "boolean":case "number":case "object":case "string":case "undefined":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&
"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function G(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(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 J(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function X(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(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 ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=K(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 te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=K(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")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(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 oe(e,t,n){"number"===t&&X(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ie(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 ae(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=""+K(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 se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}
function le(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:K(n)}}function ue(e,t){var n=K(t.value),r=K(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 ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==
t&&null!==t&&(e.value=t)}var fe={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function de(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 pe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?de(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var he,ge,me=(ge=function(e,
t){if(e.namespaceURI!==fe.svg||"innerHTML"in e)e.innerHTML=t;else{for((he=he||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=he.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 ge(e,t)})}:ge);function ve(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 ye={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},be=["Webkit","ms","Moz","O"];function we(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function xe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=we(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ye).forEach(function(e){be.forEach(function(t){t=
t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]})});var ke=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 Se(e,t){if(t){if(ke[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 Ce(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 Oe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ee=null,Me=null,Te=null;function _e(e){if(e=
no(e)){if("function"!=typeof Ee)throw Error(a(280));var t=e.stateNode;t&&(t=oo(t),Ee(e.stateNode,e.type,t))}}function Ae(e){Me?Te?Te.push(e):Te=[e]:Me=e}function Pe(){if(Me){var e=Me,t=Te;if(Te=Me=null,_e(e),t)for(e=0;e<t.length;e++)_e(t[e])}}function De(e,t){return e(t)}function Ne(e,t,n,r,o){return e(t,n,r,o)}function Re(){}var Le=De,je=!1,Ie=!1;function Fe(){null===Me&&null===Te||(Re(),Pe())}function ze(e,t){var n=e.stateNode;if(null===n)return null;var r=oo(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 He=!1;if(f)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){He=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(ge){He=!1}function Ve(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var We=
!1,$e=null,Ue=!1,qe=null,Ze={onError:function(e){We=!0,$e=e}};function Ke(e,t,n,r,o,i,a,s,l){We=!1,$e=null,Ve.apply(Ze,arguments)}function Ye(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 Ge(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Je(e){if(Ye(e)!==e)throw Error(a(188));}function Xe(e){if(e=
function(e){var t=e.alternate;if(!t){if(null===(t=Ye(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 Je(o),e;if(i===r)return Je(o),t;i=i.sibling}throw Error(a(188));}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===
n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.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 Qe(e,t){for(var n=e.alternate;null!==t;){if(t===e||
t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,ot=!1,it=[],at=null,st=null,lt=null,ut=new Map,ct=new Map,ft=[],dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function ht(e,
t){switch(e){case "focusin":case "focusout":at=null;break;case "dragenter":case "dragleave":st=null;break;case "mouseover":case "mouseout":lt=null;break;case "pointerover":case "pointerout":ut.delete(t.pointerId);break;case "gotpointercapture":case "lostpointercapture":ct.delete(t.pointerId)}}function gt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=pt(t,n,r,o,i),null!==t&&null!==(t=no(t))&&tt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function mt(e){var t=
to(e.target);if(null!==t){var n=Ye(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ge(n)))return e.blockedOn=t,void rt(e.lanePriority,function(){i.unstable_runWithPriority(e.priority,function(){nt(n)})})}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function vt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=
no(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function yt(e,t,n){vt(e)&&n.delete(t)}function bt(){for(ot=!1;0<it.length;){var e=it[0];if(null!==e.blockedOn){null!==(e=no(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&it.shift()}null!==at&&vt(at)&&(at=null),null!==st&&vt(st)&&(st=null),null!==lt&&vt(lt)&&(lt=null),ut.forEach(yt),ct.forEach(yt)}function wt(e,
t){e.blockedOn===t&&(e.blockedOn=null,ot||(ot=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,bt)))}function xt(e){function t(t){return wt(t,e)}if(0<it.length){wt(it[0],e);for(var n=1;n<it.length;n++){var r=it[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==at&&wt(at,e),null!==st&&wt(st,e),null!==lt&&wt(lt,e),ut.forEach(t),ct.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)mt(n),null===n.blockedOn&&ft.shift()}function kt(e,
t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var St={animationend:kt("Animation","AnimationEnd"),animationiteration:kt("Animation","AnimationIteration"),animationstart:kt("Animation","AnimationStart"),transitionend:kt("Transition","TransitionEnd")},Ct={},Ot={};function Et(e){if(Ct[e])return Ct[e];if(!St[e])return e;var t,n=St[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ot)return Ct[e]=n[t];return e}f&&(Ot=document.createElement("div").style,"AnimationEvent"in
window||(delete St.animationend.animation,delete St.animationiteration.animation,delete St.animationstart.animation),"TransitionEvent"in window||delete St.transitionend.transition);var Mt=Et("animationend"),Tt=Et("animationiteration"),_t=Et("animationstart"),At=Et("transitionend"),Pt=new Map,Dt=new Map,Nt=["abort","abort",Mt,"animationEnd",Tt,"animationIteration",_t,"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",At,"transitionEnd","waiting","waiting"];function Rt(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)),Dt.set(r,
t),Pt.set(r,o),u(o,[r])}}(0,i.unstable_now)();var Lt=8;function jt(e){if(0!=(1&e))return Lt=15,1;if(0!=(2&e))return Lt=14,2;if(0!=(4&e))return Lt=13,4;var t=24&e;return 0!==t?(Lt=12,t):0!=(32&e)?(Lt=11,32):0!=(t=192&e)?(Lt=10,t):0!=(256&e)?(Lt=9,256):0!=(t=3584&e)?(Lt=8,t):0!=(4096&e)?(Lt=7,4096):0!=(t=4186112&e)?(Lt=6,t):0!=(t=62914560&e)?(Lt=5,t):67108864&e?(Lt=4,67108864):0!=(134217728&e)?(Lt=3,134217728):0!=(t=805306368&e)?(Lt=2,t):0!=(1073741824&e)?(Lt=1,1073741824):(Lt=8,e)}function It(e,t){var n=
e.pendingLanes;if(0===n)return Lt=0;var r=0,o=0,i=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==i)r=i,o=Lt=15;else if(0!=(i=134217727&n)){var l=i&~a;0!==l?(r=jt(l),o=Lt):0!=(s&=i)&&(r=jt(s),o=Lt)}else 0!=(i=n&~a)?(r=jt(i),o=Lt):0!==s&&(r=jt(s),o=Lt);if(0===r)return 0;if(r=n&((0>(r=31-Wt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&a)){if(jt(t),o<=Lt)return t;Lt=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Wt(t)),r|=e[n],t&=~o;return r}function Ft(e){return 0!=(e=-1073741825&
e.pendingLanes)?e:1073741824&e?1073741824:0}function zt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Ht(24&~t))?zt(10,t):e;case 10:return 0===(e=Ht(192&~t))?zt(8,t):e;case 8:return 0===(e=Ht(3584&~t))&&0===(e=Ht(4186112&~t))&&(e=512),e;case 2:return 0===(t=Ht(805306368&~t))&&(t=268435456),t}throw Error(a(358,e));}function Ht(e){return e&-e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Vt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=
r,(e=e.eventTimes)[t=31-Wt(t)]=n}var Wt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-($t(e)/Ut|0)|0},$t=Math.log,Ut=Math.LN2,qt=i.unstable_UserBlockingPriority,Zt=i.unstable_runWithPriority,Kt=!0;function Yt(e,t,n,r){je||Re();var o=Jt,i=je;je=!0;try{Ne(o,e,t,n,r)}finally{(je=i)||Fe()}}function Gt(e,t,n,r){Zt(qt,Jt.bind(null,e,t,n,r))}function Jt(e,t,n,r){var o;if(Kt)if((o=0==(4&t))&&0<it.length&&-1<dt.indexOf(e))e=pt(null,e,t,n,r),it.push(e);else{var i=Xt(e,t,n,r);if(null===i)o&&ht(e,r);else{if(o){if(-1<
dt.indexOf(e))return e=pt(i,e,t,n,r),void it.push(e);if(function(e,t,n,r,o){switch(t){case "focusin":return at=gt(at,e,t,n,r,o),!0;case "dragenter":return st=gt(st,e,t,n,r,o),!0;case "mouseover":return lt=gt(lt,e,t,n,r,o),!0;case "pointerover":var i=o.pointerId;return ut.set(i,gt(ut.get(i)||null,e,t,n,r,o)),!0;case "gotpointercapture":return i=o.pointerId,ct.set(i,gt(ct.get(i)||null,e,t,n,r,o)),!0}return!1}(i,e,t,n,r))return;ht(e,r)}Rr(e,t,r,null,n)}}}function Xt(e,t,n,r){var o=Oe(r);if(null!==(o=
to(o))){var i=Ye(o);if(null===i)o=null;else{var a=i.tag;if(13===a){if(null!==(o=Ge(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 Rr(e,t,r,o,n),null}var Qt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,o="value"in Qt?Qt.value:Qt.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 tn=o.slice(e,1<t?1-t:void 0)}function rn(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 on(){return!0}function an(){return!1}function sn(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)?on:an,this.isPropagationStopped=an,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=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var ln,un,cn,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||
Date.now()},defaultPrevented:0,isTrusted:0},dn=sn(fn),pn=o({},fn,{view:0,detail:0}),hn=sn(pn),gn=o({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mn,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!==cn&&(cn&&"mousemove"===e.type?(ln=e.screenX-cn.screenX,un=e.screenY-cn.screenY):
un=ln=0,cn=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:un}}),mn=sn(gn),vn=sn(o({},gn,{dataTransfer:0})),yn=sn(o({},pn,{relatedTarget:0})),bn=sn(o({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=o({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xn=sn(wn),kn=sn(o({},fn,{data:0})),Sn={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"},On={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",
Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=On[e])&&!!t[e]}function Mn(){return En}var Tn=o({},pn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(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:Mn,charCode:function(e){return"keypress"===
e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),_n=sn(Tn),An=sn(o({},gn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=sn(o({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mn})),Dn=sn(o({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),
Nn=o({},gn,{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}),Rn=sn(Nn),Ln=[9,13,27,32],jn=f&&"CompositionEvent"in window,In=null;f&&"documentMode"in document&&(In=document.documentMode);var Fn=f&&"TextEvent"in window&&!In,zn=f&&(!jn||In&&8<In&&11>=In),Hn=String.fromCharCode(32),Bn=!1;function Vn(e,t){switch(e){case "keyup":return-1!==
Ln.indexOf(t.keyCode);case "keydown":return 229!==t.keyCode;case "keypress":case "mousedown":case "focusout":return!0;default:return!1}}function Wn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var $n=!1,Un={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 qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Un[e.type]:"textarea"===t}function Zn(e,t,n,r){Ae(r),
0<(t=jr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,Yn=null;function Gn(e){Tr(e,0)}function Jn(e){if(J(ro(e)))return e}function Xn(e,t){if("change"===e)return t}var Qn=!1;if(f){var er;if(f){var tr="oninput"in document;if(!tr){var nr=document.createElement("div");nr.setAttribute("oninput","return;"),tr="function"==typeof nr.oninput}er=tr}else er=!1;Qn=er&&(!document.documentMode||9<document.documentMode)}function rr(){Kn&&(Kn.detachEvent("onpropertychange",
or),Yn=Kn=null)}function or(e){if("value"===e.propertyName&&Jn(Yn)){var t=[];if(Zn(t,Yn,e,Oe(e)),e=Gn,je)e(t);else{je=!0;try{De(e,t)}finally{je=!1,Fe()}}}}function ir(e,t,n){"focusin"===e?(rr(),Yn=n,(Kn=t).attachEvent("onpropertychange",or)):"focusout"===e&&rr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Jn(Yn)}function sr(e,t){if("click"===e)return Jn(t)}function lr(e,t){if("input"===e||"change"===e)return Jn(t)}var ur="function"==typeof Object.is?Object.is:function(e,
t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},cr=Object.prototype.hasOwnProperty;function fr(e,t){if(ur(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(!cr.call(t,n[r])||!ur(e[n[r]],t[n[r]]))return!1;return!0}function dr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pr(e,t){var n,r=dr(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=dr(r)}}function hr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function gr(){for(var e=window,t=X();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=X((e=t.contentWindow).document)}return t}
function mr(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 vr=f&&"documentMode"in document&&11>=document.documentMode,yr=null,br=null,wr=null,xr=!1;function kr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;xr||null==yr||yr!==X(r)||(r="selectionStart"in(r=yr)&&mr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=
(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},wr&&fr(wr,r)||(wr=r,0<(r=jr(br,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}Rt("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),Rt("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),Rt(Nt,2);for(var Sr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Cr=0;Cr<Sr.length;Cr++)Dt.set(Sr[Cr],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",
["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart",
"compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Or="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Er=new Set("cancel close invalid load scroll toggle".split(" ").concat(Or));function Mr(e,t,n){var r=
e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,s,l,u){if(Ke.apply(this,arguments),We){if(!We)throw Error(a(198));var c=$e;We=!1,$e=null,Ue||(Ue=!0,qe=c)}}(r,t,void 0,e),e.currentTarget=null}function Tr(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],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Mr(o,s,u),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,
u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Mr(o,s,u),i=l}}}if(Ue)throw e=qe,Ue=!1,qe=null,e;}function _r(e,t){var n=io(t),r=e+"__bubble";n.has(r)||(Nr(t,e,2,!1),n.add(r))}var Ar="_reactListening"+Math.random().toString(36).slice(2);function Pr(e){e[Ar]||(e[Ar]=!0,s.forEach(function(t){Er.has(t)||Dr(t,!1,e,null),Dr(t,!0,e,null)}))}function Dr(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&&Er.has(e)){if("scroll"!==e)return;o|=2,i=r}var a=io(i),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(o|=4),Nr(i,e,o,t),a.add(s))}function Nr(e,t,n,r){var o=Dt.get(t);switch(void 0===o?2:o){case 0:o=Yt;break;case 1:o=Gt;break;default:o=Jt}n=o.bind(null,t,n,e),o=void 0,!He||"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 Rr(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 l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=to(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Ie)return e();
Ie=!0;try{return Le(e,void 0,void 0)}finally{Ie=!1,Fe()}}(function(){var r=i,o=Oe(n),a=[];e:{var s=Pt.get(e);if(void 0!==s){var l=dn,u=e;switch(e){case "keypress":if(0===rn(n))break e;case "keydown":case "keyup":l=_n;break;case "focusin":u="focus",l=yn;break;case "focusout":u="blur",l=yn;break;case "beforeblur":case "afterblur":l=yn;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":l=
mn;break;case "drag":case "dragend":case "dragenter":case "dragexit":case "dragleave":case "dragover":case "dragstart":case "drop":l=vn;break;case "touchcancel":case "touchend":case "touchmove":case "touchstart":l=Pn;break;case Mt:case Tt:case _t:l=bn;break;case At:l=Dn;break;case "scroll":l=hn;break;case "wheel":l=Rn;break;case "copy":case "cut":case "paste":l=xn;break;case "gotpointercapture":case "lostpointercapture":case "pointercancel":case "pointerdown":case "pointermove":case "pointerout":case "pointerover":case "pointerup":l=
An}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=ze(h,d))&&c.push(Lr(h,g,p))),f)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,o),a.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(u=n.relatedTarget||n.fromElement)||!to(u)&&!u[Qr])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||
s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?to(u):null)&&(u!==(f=Ye(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=mn,g="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=An,g="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==l?s:ro(l),p=null==u?s:ro(u),(s=new c(g,h+"leave",l,n,o)).target=f,s.relatedTarget=p,g=null,to(o)===r&&((c=new c(d,h+"enter",u,n,o)).target=p,c.relatedTarget=f,g=c),f=g,l&&u)e:{for(d=u,h=0,p=c=
l;p;p=Ir(p))h++;for(p=0,g=d;g;g=Ir(g))p++;for(;0<h-p;)c=Ir(c),h--;for(;0<p-h;)d=Ir(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Ir(c),d=Ir(d)}c=null}else c=null;null!==l&&Fr(a,s,l,c,!1),null!==u&&null!==f&&Fr(a,f,u,c,!0)}if("select"===(l=(s=r?ro(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Xn;else if(qn(s))if(Qn)m=lr;else{m=ar;var v=ir}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=sr);switch(m&&(m=
m(e,r))?Zn(a,m,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&oe(s,"number",s.value)),v=r?ro(r):window,e){case "focusin":(qn(v)||"true"===v.contentEditable)&&(yr=v,br=r,wr=null);break;case "focusout":wr=br=yr=null;break;case "mousedown":xr=!0;break;case "contextmenu":case "mouseup":case "dragend":xr=!1,kr(a,n,o);break;case "selectionchange":if(vr)break;case "keydown":case "keyup":kr(a,n,o)}var y;if(jn)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 $n?Vn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(zn&&"ko"!==n.locale&&($n||"onCompositionStart"!==b?"onCompositionEnd"===b&&$n&&(y=nn()):(en="value"in(Qt=o)?Qt.value:Qt.textContent,$n=!0)),0<(v=jr(r,b)).length&&(b=new kn(b,e,null,n,o),a.push({event:b,listeners:v}),(y||null!==(y=Wn(n)))&&(b.data=y))),(y=Fn?function(e,t){switch(e){case "compositionend":return Wn(t);
case "keypress":return 32!==t.which?null:(Bn=!0,Hn);case "textInput":return(e=t.data)===Hn&&Bn?null:e;default:return null}}(e,n):function(e,t){if($n)return"compositionend"===e||!jn&&Vn(e,t)?(e=nn(),tn=en=Qt=null,$n=!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 zn&&"ko"!==t.locale?null:t.data}}(e,
n))&&0<(r=jr(r,"onBeforeInput")).length&&(o=new kn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y)}Tr(a,t)})}function Lr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function jr(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=ze(e,n))&&r.unshift(Lr(e,i,o)),null!=(i=ze(e,t))&&r.push(Lr(e,i,o))),e=e.return}return r}function Ir(e){if(null===e)return null;do e=e.return;while(e&&5!==e.tag);return e||null}function Fr(e,
t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,o?null!=(l=ze(n,i))&&a.unshift(Lr(n,l,s)):o||null!=(l=ze(n,i))&&a.push(Lr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function zr(){}var Hr=null,Br=null;function Vr(e,t){switch(e){case "button":case "input":case "select":case "textarea":return!!t.autoFocus}return!1}function Wr(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 $r="function"==typeof setTimeout?setTimeout:void 0,Ur="function"==typeof clearTimeout?clearTimeout:void 0;function qr(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function Zr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Kr(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 Yr=0,Gr=Math.random().toString(36).slice(2),Jr="__reactFiber$"+Gr,Xr="__reactProps$"+Gr,Qr="__reactContainer$"+Gr,eo="__reactEvents$"+Gr;function to(e){var t=e[Jr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Qr]||n[Jr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Kr(e);null!==e;){if(n=e[Jr])return n;e=Kr(e)}return t}n=(e=n).parentNode}return null}
function no(e){return!(e=e[Jr]||e[Qr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ro(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33));}function oo(e){return e[Xr]||null}function io(e){var t=e[eo];return void 0===t&&(t=e[eo]=new Set),t}var ao=[],so=-1;function lo(e){return{current:e}}function uo(e){0>so||(e.current=ao[so],ao[so]=null,so--)}function co(e,t){so++,ao[so]=e.current,e.current=t}var fo={},po=lo(fo),ho=lo(!1),go=fo;function mo(e,t){var n=e.type.contextTypes;
if(!n)return fo;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 vo(e){return null!=e.childContextTypes}function yo(){uo(ho),uo(po)}function bo(e,t,n){if(po.current!==fo)throw Error(a(168));co(po,t),co(ho,n)}function wo(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,Z(t)||"Unknown",i));return o({},n,r)}function xo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fo,go=po.current,co(po,e),co(ho,ho.current),!0}function ko(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=wo(e,t,go),r.__reactInternalMemoizedMergedChildContext=e,uo(ho),uo(po),co(po,e)):uo(ho),co(ho,n)}var So=null,Co=null,Oo=i.unstable_runWithPriority,Eo=i.unstable_scheduleCallback,
Mo=i.unstable_cancelCallback,To=i.unstable_shouldYield,_o=i.unstable_requestPaint,Ao=i.unstable_now,Po=i.unstable_getCurrentPriorityLevel,Do=i.unstable_ImmediatePriority,No=i.unstable_UserBlockingPriority,Ro=i.unstable_NormalPriority,Lo=i.unstable_LowPriority,jo=i.unstable_IdlePriority,Io={},Fo=void 0!==_o?_o:function(){},zo=null,Ho=null,Bo=!1,Vo=Ao(),Wo=1E4>Vo?Ao:function(){return Ao()-Vo};function $o(){switch(Po()){case Do:return 99;case No:return 98;case Ro:return 97;case Lo:return 96;case jo:return 95;
default:throw Error(a(332));}}function Uo(e){switch(e){case 99:return Do;case 98:return No;case 97:return Ro;case 96:return Lo;case 95:return jo;default:throw Error(a(332));}}function qo(e,t){return e=Uo(e),Oo(e,t)}function Zo(e,t,n){return e=Uo(e),Eo(e,t,n)}function Ko(){if(null!==Ho){var e=Ho;Ho=null,Mo(e)}Yo()}function Yo(){if(!Bo&&null!==zo){Bo=!0;var e=0;try{var t=zo;qo(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(null!==n)}}),zo=null}catch(t){throw null!==zo&&(zo=zo.slice(e+
1)),Eo(Do,Ko),t;}finally{Bo=!1}}}var Go=x.ReactCurrentBatchConfig;function Jo(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 Xo=lo(null),Qo=null,ei=null,ti=null;function ni(){ti=ei=Qo=null}function ri(e){var t=Xo.current;uo(Xo),e.type._context._currentValue=t}function oi(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 ii(e,t){Qo=e,ti=ei=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(ja=!0),e.firstContext=null)}function ai(e,t){if(ti!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ti=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ei){if(null===Qo)throw Error(a(308));ei=t,Qo.dependencies={lanes:0,firstContext:t,responders:null}}else ei=ei.next=t;return e._currentValue}var si=!1;function li(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,
lastBaseUpdate:null,shared:{pending:null},effects:null}}function ui(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 ci(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function fi(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 di(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 pi(e,
t,n,r){var i=e.updateQueue;si=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(null!==l){i.shared.pending=null;var u=l,c=u.next;u.next=null,null===s?a=c:s.next=c,s=u;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=u)}}if(null!==a){for(d=i.baseState,s=0,f=c=u=null;;){l=a.lane;var p=a.eventTime;if((r&l)===l){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(l=t,p=n,g.tag){case 1:if("function"==typeof(h=g.payload)){d=h.call(p,d,l);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(l="function"==typeof(h=g.payload)?h.call(p,d,l):h))break e;d=o({},d,l);break e;case 2:si=!0}}null!==a.callback&&(e.flags|=32,null===(l=i.effects)?i.effects=[a]:l.push(a))}else p={eventTime:p,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===f?(c=f=p,u=d):f=f.next=p,s|=l;if(null===(a=a.next)){if(null===(l=i.shared.pending))break;
a=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}null===f&&(u=d),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=f,zs|=s,e.lanes=s,e.memoizedState=d}}function hi(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 gi=(new r.Component).refs;function mi(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 vi={isMounted:function(e){return!!(e=e._reactInternals)&&Ye(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=cl(),o=fl(e),i=ci(r,o);i.payload=t,null!=n&&(i.callback=n),fi(e,i),dl(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=cl(),o=fl(e),i=ci(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),fi(e,i),dl(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=cl(),r=fl(e),o=ci(n,r);o.tag=2,null!=t&&(o.callback=t),fi(e,o),dl(e,r,n)}};function yi(e,
t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&fr(n,r)&&fr(o,i))}function bi(e,t,n){var r=!1,o=fo,i=t.contextType;return"object"==typeof i&&null!==i?i=ai(i):(o=vo(t)?go:po.current,i=(r=null!=(r=t.contextTypes))?mo(e,o):fo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=vi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=
o,e.__reactInternalMemoizedMaskedChildContext=i),t}function wi(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&&vi.enqueueReplaceState(t,t.state,null)}function xi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=gi,li(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=ai(i):(i=vo(t)?go:po.current,o.context=mo(e,
i)),pi(e,n,o,r),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(mi(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&&vi.enqueueReplaceState(o,
o.state,null),pi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4)}var ki=Array.isArray;function Si(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===gi&&(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 Ci(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 Oi(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=$l(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 l(e,t,n,r){return null===t||6!==t.tag?((t=Kl(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=
Si(e,t,n),r.return=e,r):((r=Ul(n.type,n.key,n.props,null,e.mode,r)).ref=Si(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=Yl(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=ql(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=Kl(""+t,e.mode,n)).return=
e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Ul(t.type,t.key,t.props,null,e.mode,n)).ref=Si(e,null,t),n.return=e,n;case S:return(t=Yl(t,e.mode,n)).return=e,t}if(ki(t)||V(t))return(t=ql(t,e.mode,n,null)).return=e,t;Ci(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:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===o?n.type===C?f(e,t,n.props.children,r,o):u(e,
t,n,r):null;case S:return n.key===o?c(e,t,n,r):null}if(ki(n)||V(n))return null!==o?null:f(e,t,n,r,null);Ci(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case k:return e=e.get(null===r.key?n:r.key)||null,r.type===C?f(t,e,r.props.children,o,r.key):u(t,e,r,o);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(ki(r)||V(r))return f(t,e=e.get(n)||null,r,o,null);Ci(t,r)}return null}
function g(o,a,s,l){for(var u=null,c=null,f=a,g=a=0,m=null;null!==f&&g<s.length;g++){f.index>g?(m=f,f=null):m=f.sibling;var v=p(o,f,s[g],l);if(null===v){null===f&&(f=m);break}e&&f&&null===v.alternate&&t(o,f),a=i(v,a,g),null===c?u=v:c.sibling=v,c=v,f=m}if(g===s.length)return n(o,f),u;if(null===f){for(;g<s.length;g++)null!==(f=d(o,s[g],l))&&(a=i(f,a,g),null===c?u=f:c.sibling=f,c=f);return u}for(f=r(o,f);g<s.length;g++)null!==(m=h(f,o,g,s[g],l))&&(e&&null!==m.alternate&&f.delete(null===m.key?g:m.key),
a=i(m,a,g),null===c?u=m:c.sibling=m,c=m);return e&&f.forEach(function(e){return t(o,e)}),u}function m(o,s,l,u){var c=V(l);if("function"!=typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var f=c=null,g=s,m=s=0,v=null,y=l.next();null!==g&&!y.done;m++,y=l.next()){g.index>m?(v=g,g=null):v=g.sibling;var b=p(o,g,y.value,u);if(null===b){null===g&&(g=v);break}e&&g&&null===b.alternate&&t(o,g),s=i(b,s,m),null===f?c=b:f.sibling=b,f=b,g=v}if(y.done)return n(o,g),c;if(null===g){for(;!y.done;m++,
y=l.next())null!==(y=d(o,y.value,u))&&(s=i(y,s,m),null===f?c=y:f.sibling=y,f=y);return c}for(g=r(o,g);!y.done;m++,y=l.next())null!==(y=h(g,o,m,y.value,u))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),s=i(y,s,m),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,l){var u="object"==typeof i&&null!==i&&i.type===C&&null===i.key;u&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case k:e:{for(c=i.key,u=r;null!==
u;){if(u.key===c){if(7===u.tag){if(i.type===C){n(e,u.sibling),(r=o(u,i.props.children)).return=e,e=r;break e}}else if(u.elementType===i.type){n(e,u.sibling),(r=o(u,i.props)).ref=Si(e,u,i),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}i.type===C?((r=ql(i.props.children,e.mode,l,i.key)).return=e,e=r):((l=Ul(i.type,i.key,i.props,null,e.mode,l)).ref=Si(e,r,i),l.return=e,e=l)}return s(e);case S:e:{for(u=i.key;null!==r;){if(r.key===u){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=Yl(i,e.mode,l)).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=Kl(i,e.mode,l)).return=e,e=r),s(e);if(ki(i))return g(e,r,i,l);if(V(i))return m(e,r,i,l);if(c&&Ci(e,i),void 0===i&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,Z(e.type)||
"Component"));}return n(e,r)}}var Ei=Oi(!0),Mi=Oi(!1),Ti={},_i=lo(Ti),Ai=lo(Ti),Pi=lo(Ti);function Di(e){if(e===Ti)throw Error(a(174));return e}function Ni(e,t){switch(co(Pi,t),co(Ai,e),co(_i,Ti),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pe(null,"");break;default:t=pe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}uo(_i),co(_i,t)}function Ri(){uo(_i),uo(Ai),uo(Pi)}function Li(e){Di(Pi.current);var t=Di(_i.current),n=pe(t,e.type);t!==n&&(co(Ai,e),co(_i,n))}function ji(e){Ai.current===
e&&(uo(_i),uo(Ai))}var Ii=lo(0);function Fi(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 zi=null,Hi=null,Bi=!1;
function Vi(e,t){var n=Vl(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 Wi(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 $i(e){if(Bi){var t=Hi;
if(t){var n=t;if(!Wi(e,t)){if(!(t=Zr(n.nextSibling))||!Wi(e,t))return e.flags=-1025&e.flags|2,Bi=!1,void(zi=e);Vi(zi,n)}zi=e,Hi=Zr(t.firstChild)}else e.flags=-1025&e.flags|2,Bi=!1,zi=e}}function Ui(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;zi=e}function qi(e){if(e!==zi)return!1;if(!Bi)return Ui(e),Bi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Wr(t,e.memoizedProps))for(t=Hi;t;)Vi(e,t),t=Zr(t.nextSibling);if(Ui(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){Hi=Zr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Hi=null}}else Hi=zi?Zr(e.stateNode.nextSibling):null;return!0}function Zi(){Hi=zi=null,Bi=!1}var Ki=[];function Yi(){for(var e=0;e<Ki.length;e++)Ki[e]._workInProgressVersionPrimary=null;Ki.length=0}var Gi=x.ReactCurrentDispatcher,Ji=x.ReactCurrentBatchConfig,Xi=0,Qi=null,ea=null,ta=null,na=
!1,ra=!1;function oa(){throw Error(a(321));}function ia(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function aa(e,t,n,r,o,i){if(Xi=i,Qi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Gi.current=null===e||null===e.memoizedState?Da:Na,e=n(r,o),ra){i=0;do{if(ra=!1,!(25>i))throw Error(a(301));i+=1,ta=ea=null,t.updateQueue=null,Gi.current=Ra,e=n(r,o)}while(ra)}if(Gi.current=Pa,t=null!==ea&&null!==ea.next,Xi=0,ta=ea=Qi=null,na=!1,t)throw Error(a(300));
return e}function sa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ta?Qi.memoizedState=ta=e:ta=ta.next=e,ta}function la(){if(null===ea){var e=Qi.alternate;e=null!==e?e.memoizedState:null}else e=ea.next;var t=null===ta?Qi.memoizedState:ta.next;if(null!==t)ta=t,ea=e;else{if(null===e)throw Error(a(310));e={memoizedState:(ea=e).memoizedState,baseState:ea.baseState,baseQueue:ea.baseQueue,queue:ea.queue,next:null},null===ta?Qi.memoizedState=ta=e:ta=ta.next=
e}return ta}function ua(e,t){return"function"==typeof t?t(e):t}function ca(e){var t=la(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=ea,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 l=s=i=null,u=o;do{var c=u.lane;if((Xi&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:
e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(s=l=f,i=r):l=l.next=f,Qi.lanes|=c,zs|=c}u=u.next}while(null!==u&&u!==o);null===l?i=r:l.next=s,ur(r,t.memoizedState)||(ja=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function fa(e){var t=la(),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);ur(i,t.memoizedState)||(ja=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function da(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=(Xi&e)===e)&&(t._workInProgressVersionPrimary=r,Ki.push(t))),e)return n(t._source);throw Ki.push(t),Error(a(350));}function pa(e,t,n,r){var o=Ps;if(null===o)throw Error(a(349));var i=t._getVersion,
s=i(t._source),l=Gi.current,u=l.useState(function(){return da(o,t,n)}),c=u[1],f=u[0];u=ta;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,g=d.source;d=d.subscribe;var m=Qi;return e.memoizedState={refs:p,source:t,subscribe:r},l.useEffect(function(){p.getSnapshot=n,p.setSnapshot=c;var e=i(t._source);if(!ur(s,e)){e=n(t._source),ur(f,e)||(c(e),e=fl(m),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,a=e;0<a;){var l=31-Wt(a),u=1<<l;r[l]|=e,a&=~u}}},
[n,t,r]),l.useEffect(function(){return r(t._source,function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=fl(m);o.mutableReadLanes|=r&o.pendingLanes}catch(e){n(function(){throw e;})}})},[t,r]),ur(h,n)&&ur(g,t)&&ur(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:f}).dispatch=c=Aa.bind(null,Qi,e),u.queue=e,u.baseQueue=null,f=da(o,t,n),u.memoizedState=u.baseState=f),f}function ha(e,t,n){return pa(la(),e,t,n)}function ga(e){var t=sa();return"function"==
typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:e}).dispatch=Aa.bind(null,Qi,e),[t.memoizedState,e]}function ma(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Qi.updateQueue)?(t={lastEffect:null},Qi.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 va(e){return e={current:e},sa().memoizedState=e}function ya(){return la().memoizedState}
function ba(e,t,n,r){var o=sa();Qi.flags|=e,o.memoizedState=ma(1|t,n,void 0,void 0===r?null:r)}function wa(e,t,n,r){var o=la();r=void 0===r?null:r;var i=void 0;if(null!==ea){var a=ea.memoizedState;if(i=a.destroy,null!==r&&ia(r,a.deps))return void ma(t,n,i,r)}Qi.flags|=e,o.memoizedState=ma(1|t,n,i,r)}function xa(e,t){return ba(516,4,e,t)}function ka(e,t){return wa(516,4,e,t)}function Sa(e,t){return wa(4,2,e,t)}function Ca(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 Oa(e,t,n){return n=null!=n?n.concat([e]):null,wa(4,2,Ca.bind(null,t,e),n)}function Ea(){}function Ma(e,t){var n=la();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ia(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ta(e,t){var n=la();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ia(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function _a(e,t){var n=$o();qo(98>n?98:n,function(){e(!0)}),qo(97<n?
97:n,function(){var n=Ji.transition;Ji.transition=1;try{e(!1),t()}finally{Ji.transition=n}})}function Aa(e,t,n){var r=cl(),o=fl(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===Qi||null!==a&&a===Qi)ra=na=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=a(s,n);if(i.eagerReducer=a,i.eagerState=l,ur(l,s))return}catch(e){}dl(e,o,r)}}
var Pa={readContext:ai,useCallback:oa,useContext:oa,useEffect:oa,useImperativeHandle:oa,useLayoutEffect:oa,useMemo:oa,useReducer:oa,useRef:oa,useState:oa,useDebugValue:oa,useDeferredValue:oa,useTransition:oa,useMutableSource:oa,useOpaqueIdentifier:oa,unstable_isNewReconciler:!1},Da={readContext:ai,useCallback:function(e,t){return sa().memoizedState=[e,void 0===t?null:t],e},useContext:ai,useEffect:xa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ba(4,2,Ca.bind(null,t,e),n)},
useLayoutEffect:function(e,t){return ba(4,2,e,t)},useMemo:function(e,t){var n=sa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=sa();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=Aa.bind(null,Qi,e),[r.memoizedState,e]},useRef:va,useState:ga,useDebugValue:Ea,useDeferredValue:function(e){var t=ga(e),n=t[0],r=t[1];return xa(function(){var t=Ji.transition;
Ji.transition=1;try{r(e)}finally{Ji.transition=t}},[e]),n},useTransition:function(){var e=ga(!1),t=e[0];return va(e=_a.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=sa();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},pa(r,e,t,n)},useOpaqueIdentifier:function(){if(Bi){var e=!1,t=function(e){return{$$typeof:L,toString:e,valueOf:e}}(function(){throw e||(e=!0,n("r:"+(Yr++).toString(36))),Error(a(355));}),n=ga(t)[1];return 0==(2&Qi.mode)&&(Qi.flags|=
516,ma(5,function(){n("r:"+(Yr++).toString(36))},void 0,null)),t}return ga(t="r:"+(Yr++).toString(36)),t},unstable_isNewReconciler:!1},Na={readContext:ai,useCallback:Ma,useContext:ai,useEffect:ka,useImperativeHandle:Oa,useLayoutEffect:Sa,useMemo:Ta,useReducer:ca,useRef:ya,useState:function(){return ca(ua)},useDebugValue:Ea,useDeferredValue:function(e){var t=ca(ua),n=t[0],r=t[1];return ka(function(){var t=Ji.transition;Ji.transition=1;try{r(e)}finally{Ji.transition=t}},[e]),n},useTransition:function(){var e=
ca(ua)[0];return[ya().current,e]},useMutableSource:ha,useOpaqueIdentifier:function(){return ca(ua)[0]},unstable_isNewReconciler:!1},Ra={readContext:ai,useCallback:Ma,useContext:ai,useEffect:ka,useImperativeHandle:Oa,useLayoutEffect:Sa,useMemo:Ta,useReducer:fa,useRef:ya,useState:function(){return fa(ua)},useDebugValue:Ea,useDeferredValue:function(e){var t=fa(ua),n=t[0],r=t[1];return ka(function(){var t=Ji.transition;Ji.transition=1;try{r(e)}finally{Ji.transition=t}},[e]),n},useTransition:function(){var e=
fa(ua)[0];return[ya().current,e]},useMutableSource:ha,useOpaqueIdentifier:function(){return fa(ua)[0]},unstable_isNewReconciler:!1},La=x.ReactCurrentOwner,ja=!1;function Ia(e,t,n,r){t.child=null===e?Mi(t,null,n,r):Ei(t,e.child,n,r)}function Fa(e,t,n,r,o){n=n.render;var i=t.ref;return ii(t,o),r=aa(e,t,n,r,i,o),null===e||ja?(t.flags|=1,Ia(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,rs(e,t,o))}function za(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||
Wl(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ul(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ha(e,t,a,r,o,i))}return a=e.child,0==(o&i)&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:fr)(o,r)&&e.ref===t.ref)?rs(e,t,i):(t.flags|=1,(e=$l(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ha(e,t,n,r,o,i){if(null!==e&&fr(e.memoizedProps,r)&&e.ref===t.ref){if(ja=!1,0==(i&o))return t.lanes=e.lanes,rs(e,t,i);0!=(16384&e.flags)&&(ja=!0)}return Wa(e,
t,n,r,i)}function Ba(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},wl(0,n);else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},wl(0,e),null;t.memoizedState={baseLanes:0},wl(0,null!==i?i.baseLanes:n)}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,wl(0,r);return Ia(e,t,o,n),t.child}function Va(e,
t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Wa(e,t,n,r,o){var i=vo(n)?go:po.current;return i=mo(t,i),ii(t,o),n=aa(e,t,n,r,i,o),null===e||ja?(t.flags|=1,Ia(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,rs(e,t,o))}function $a(e,t,n,r,o){if(vo(n)){var i=!0;xo(t)}else i=!1;if(ii(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),bi(t,n,r),xi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;
a.props=s;var l=a.context,u=n.contextType;u="object"==typeof u&&null!==u?ai(u):mo(t,u=vo(n)?go:po.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||l!==u)&&wi(t,a,r,u),si=!1;var d=t.memoizedState;a.state=d,pi(t,r,a,o),l=t.memoizedState,s!==r||d!==l||ho.current||si?("function"==typeof c&&(mi(t,n,c,r),l=t.memoizedState),(s=si||
yi(t,n,s,r,d,l,u))?(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=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=
t.stateNode,ui(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Jo(t.type,s),a.props=u,f=t.pendingProps,d=a.context,l="object"==typeof(l=n.contextType)&&null!==l?ai(l):mo(t,l=vo(n)?go:po.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!==l)&&wi(t,a,r,l),si=!1,d=t.memoizedState,a.state=d,pi(t,r,a,o);var h=t.memoizedState;
s!==f||d!==h||ho.current||si?("function"==typeof p&&(mi(t,n,p,r),h=t.memoizedState),(u=si||yi(t,n,u,r,d,h,l))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"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=l,r=u):("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 Ua(e,t,n,r,i,o)}function Ua(e,t,n,r,o,i){Va(e,t);var a=0!=
(64&t.flags);if(!r&&!a)return o&&ko(t,n,!1),rs(e,t,i);r=t.stateNode,La.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Ei(t,e.child,null,i),t.child=Ei(t,null,s,i)):Ia(e,t,s,i),t.memoizedState=r.state,o&&ko(t,n,!0),t.child}function qa(e){var t=e.stateNode;t.pendingContext?bo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&bo(0,t.context,!1),Ni(e,t.containerInfo)}var Za,Ka,Ya,Ga,Ja={dehydrated:null,retryLane:0};function Xa(e,
t,n){var r,o=t.pendingProps,i=Ii.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),co(Ii,1&i),null===e?(void 0!==o.fallback&&$i(t),e=o.children,i=o.fallback,a?(e=Qa(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ja,e):"number"==typeof o.unstable_expectedLoadTime?(e=Qa(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=
Ja,t.lanes=33554432,e):((n=Zl({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(o=function(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=$l(a,s),null!==e?r=$l(e,r):(r=ql(r,i,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}(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=Ja,o):(n=function(e,t,n,r){var o=e.child;return e=o.sibling,n=$l(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}(e,t,o.children,n),t.memoizedState=null,n))}function Qa(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=Zl(t,o,0,null),n=ql(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function es(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),oi(e.return,t)}function ts(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 ns(e,
t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ia(e,t,r.children,n),0!=(2&(r=Ii.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&&es(e,n);else if(19===e.tag)es(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(co(Ii,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===Fi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ts(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===Fi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ts(t,!0,n,null,i,t.lastEffect);break;case "together":ts(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function rs(e,t,n){if(null!==
e&&(t.dependencies=e.dependencies),zs|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=$l(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=$l(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function os(e,t){if(!Bi)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 is(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 vo(t.type)&&yo(),null;case 3:return Ri(),uo(ho),uo(po),Yi(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(qi(t)?t.flags|=4:r.hydrate||(t.flags|=
256)),Ka(t),null;case 5:ji(t);var i=Di(Pi.current);if(n=t.type,null!==e&&null!=t.stateNode)Ya(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Di(_i.current),qi(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Jr]=t,r[Xr]=s,n){case "dialog":_r("cancel",r),_r("close",r);break;case "iframe":case "object":case "embed":_r("load",r);break;case "video":case "audio":for(e=0;e<Or.length;e++)_r(Or[e],r);break;case "source":_r("error",
r);break;case "img":case "image":case "link":_r("error",r),_r("load",r);break;case "details":_r("toggle",r);break;case "input":ee(r,s),_r("invalid",r);break;case "select":r._wrapperState={wasMultiple:!!s.multiple},_r("invalid",r);break;case "textarea":le(r,s),_r("invalid",r)}for(var u in Se(n,s),e=null,s)s.hasOwnProperty(u)&&(i=s[u],"children"===u?"string"==typeof i?r.textContent!==i&&(e=["children",i]):"number"==typeof i&&r.textContent!==""+i&&(e=["children",""+i]):l.hasOwnProperty(u)&&null!=i&&
"onScroll"===u&&_r("scroll",r));switch(n){case "input":G(r),re(r,s,!0);break;case "textarea":G(r),ce(r);break;case "select":case "option":break;default:"function"==typeof s.onClick&&(r.onclick=zr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(u=9===i.nodeType?i:i.ownerDocument,e===fe.html&&(e=de(n)),e===fe.html?"script"===n?((e=u.createElement("div")).innerHTML="<script>\x3c/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),
"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Jr]=t,e[Xr]=r,Za(e,t,!1,!1),t.stateNode=e,u=Ce(n,r),n){case "dialog":_r("cancel",e),_r("close",e),i=r;break;case "iframe":case "object":case "embed":_r("load",e),i=r;break;case "video":case "audio":for(i=0;i<Or.length;i++)_r(Or[i],e);i=r;break;case "source":_r("error",e),i=r;break;case "img":case "image":case "link":_r("error",e),_r("load",e),i=r;break;case "details":_r("toggle",e),i=r;break;case "input":ee(e,
r),i=Q(e,r),_r("invalid",e);break;case "option":i=ie(e,r);break;case "select":e._wrapperState={wasMultiple:!!r.multiple},i=o({},r,{value:void 0}),_r("invalid",e);break;case "textarea":le(e,r),i=se(e,r),_r("invalid",e);break;default:i=r}Se(n,i);var c=i;for(s in c)if(c.hasOwnProperty(s)){var f=c[s];"style"===s?xe(e,f):"dangerouslySetInnerHTML"===s?null!=(f=f?f.__html:void 0)&&me(e,f):"children"===s?"string"==typeof f?("textarea"!==n||""!==f)&&ve(e,f):"number"==typeof f&&ve(e,""+f):"suppressContentEditableWarning"!==
s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?null!=f&&"onScroll"===s&&_r("scroll",e):null!=f&&w(e,s,f,u))}switch(n){case "input":G(e),re(e,r,!1);break;case "textarea":G(e),ce(e);break;case "option":null!=r.value&&e.setAttribute("value",""+K(r.value));break;case "select":e.multiple=!!r.multiple,null!=(s=r.value)?ae(e,!!r.multiple,s,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=zr)}Vr(n,r)&&(t.flags|=
4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Ga(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Di(Pi.current),Di(_i.current),qi(t)?(r=t.stateNode,n=t.memoizedProps,r[Jr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Jr]=t,t.stateNode=r)}return null;case 13:return uo(Ii),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&qi(t):
n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Ii.current)?0===js&&(js=3):(0!==js&&3!==js||(js=4),null===Ps||0==(134217727&zs)&&0==(134217727&Hs)||ml(Ps,Ns))),(r||n)&&(t.flags|=4),null);case 4:return Ri(),Ka(t),null===e&&Pr(t.stateNode.containerInfo),null;case 10:return ri(t),null;case 19:if(uo(Ii),null===(r=t.memoizedState))return null;if(s=0!=(64&t.flags),null===(u=r.rendering))if(s)os(r,!1);else{if(0!==js||null!==e&&0!=(64&e.flags))for(e=
t.child;null!==e;){if(null!==(u=Fi(e))){for(t.flags|=64,os(r,!1),null!==(s=u.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===(u=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=u.childLanes,s.lanes=u.lanes,s.child=u.child,
s.memoizedProps=u.memoizedProps,s.memoizedState=u.memoizedState,s.updateQueue=u.updateQueue,s.type=u.type,e=u.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return co(Ii,1&Ii.current|2),t.child}e=e.sibling}null!==r.tail&&Wo()>$s&&(t.flags|=64,s=!0,os(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Fi(u))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),os(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate&&!Bi)return null!==
(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Wo()-r.renderingStartTime>$s&&1073741824!==n&&(t.flags|=64,s=!0,os(r,!1),t.lanes=33554432);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Wo(),n.sibling=null,t=Ii.current,co(Ii,s?1&t|2:1&t),n):null;case 23:case 24:return xl(),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 as(e){switch(e.tag){case 1:vo(e.type)&&yo();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ri(),uo(ho),uo(po),Yi(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return ji(e),null;case 13:return uo(Ii),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return uo(Ii),null;case 4:return Ri(),null;case 10:return ri(e),null;case 23:case 24:return xl(),null;default:return null}}
function ss(e,t){try{var n="",r=t;do n+=q(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 ls(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e;})}}Za=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}},Ka=function(){},Ya=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Di(_i.current);var a,s=null;switch(n){case "input":i=Q(e,i),r=Q(e,r),s=[];break;case "option":i=ie(e,i),r=ie(e,r),s=[];break;case "select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),s=[];break;case "textarea":i=se(e,i),r=se(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=zr)}for(f in Se(n,r),n=null,i)if(!r.hasOwnProperty(f)&&
i.hasOwnProperty(f)&&null!=i[f])if("style"===f){var u=i[f];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(l.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var c=r[f];if(u=null!=i?i[f]:void 0,r.hasOwnProperty(f)&&c!==u&&(null!=c||null!=u))if("style"===f)if(u){for(a in u)!u.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&
u[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,u=u?u.__html:void 0,null!=c&&u!==c&&(s=s||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(l.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&_r("scroll",e),s||u===c||(s=[])):"object"==typeof c&&null!==c&&c.$$typeof===L?c.toString():(s=s||[]).push(f,c))}n&&(s=s||[]).push("style",
n);var f=s;(t.updateQueue=f)&&(t.flags|=4)}},Ga=function(e,t,n,r){n!==r&&(t.flags|=4)};var us="function"==typeof WeakMap?WeakMap:Map;function cs(e,t,n){(n=ci(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ks||(Ks=!0,Ys=r),ls(0,t)},n}function fs(e,t,n){(n=ci(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return ls(0,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=
function(){"function"!=typeof r&&(null===Gs?Gs=new Set([this]):Gs.add(this),ls(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ds="function"==typeof WeakSet?WeakSet:Set;function ps(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Fl(e,t)}else t.current=null}function hs(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:Jo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&qr(t.stateNode.containerInfo))}throw Error(a(163));}function gs(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)&&(Ll(n,e),Rl(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:Jo(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&hi(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}hi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Vr(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&&xt(n)))))}throw Error(a(163));}function ms(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=we("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 vs(e,t){if(Co&&"function"==typeof Co.onCommitFiberUnmount)try{Co.onCommitFiberUnmount(So,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))Ll(t,n);else{r=t;try{o()}catch(e){Fl(r,e)}}n=n.next}while(n!==e)}break;case 1:if(ps(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Fl(t,e)}break;case 5:ps(t);break;case 4:Ss(e,t)}}function ys(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 bs(e){return 5===e.tag||3===e.tag||4===e.tag}function ws(e){e:{for(var t=e.return;null!==t;){if(bs(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&&(ve(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||bs(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?xs(e,n,t):ks(e,n,t)}function xs(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=zr));else if(4!==r&&null!==(e=e.child))for(xs(e,t,
n),e=e.sibling;null!==e;)xs(e,t,n),e=e.sibling}function ks(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(ks(e,t,n),e=e.sibling;null!==e;)ks(e,t,n),e=e.sibling}function Ss(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,l=o,u=l;;)if(vs(s,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===l)break e;for(;null===u.sibling;){if(null===u.return||u.return===l)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(s=n,l=o.stateNode,8===s.nodeType?s.parentNode.contains(l)?s.parentNode.removeChild(l):"":s.contains(l)?s.removeChild(l):""):n.contains(o.stateNode)?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(vs(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 Cs(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[Xr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Ce(e,o),t=Ce(e,r),o=0;o<i.length;o+=2){var s=i[o],l=i[o+1];"style"===s?xe(n,l):"dangerouslySetInnerHTML"===s?me(n,l):"children"===s?ve(n,l):w(n,s,l,t)}switch(e){case "input":ne(n,r);break;case "textarea":ue(n,r);break;case "select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(i=r.value)?ae(n,
!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(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,xt(n.containerInfo)));case 13:return null!==t.memoizedState&&(Ws=Wo(),ms(t.child,!0)),void Os(t);case 19:return void Os(t);case 23:case 24:return void ms(t,null!==t.memoizedState)}throw Error(a(163));
}function Os(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ds),t.forEach(function(t){var r=Hl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Es(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var Ms=Math.ceil,Ts=x.ReactCurrentDispatcher,_s=x.ReactCurrentOwner,As=0,Ps=null,Ds=null,Ns=0,Rs=0,Ls=lo(0),js=0,Is=null,Fs=0,zs=0,Hs=0,Bs=0,Vs=null,Ws=0,$s=1/0;function Us(){$s=
Wo()+500}var qs,Zs=null,Ks=!1,Ys=null,Gs=null,Js=!1,Xs=null,Qs=90,el=[],tl=[],nl=null,rl=0,ol=null,il=-1,al=0,sl=0,ll=null,ul=!1;function cl(){return 0!=(48&As)?Wo():-1!==il?il:il=Wo()}function fl(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===$o()?1:2;if(0===al&&(al=Fs),0!==Go.transition){0!==sl&&(sl=null!==Vs?Vs.pendingLanes:0),e=al;var t=4186112&~sl;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=$o(),zt(0!=(4&As)&&98===e?12:e=function(e){switch(e){case 99:return 15;
case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),al)}function dl(e,t,n){if(50<rl)throw rl=0,ol=null,Error(a(185));if(null===(e=pl(e,t)))return null;Vt(e,t,n),e===Ps&&(Hs|=t,4===js&&ml(e,Ns));var r=$o();1===t?0!=(8&As)&&0==(48&As)?vl(e):(hl(e,n),0===As&&(Us(),Ko())):(0==(4&As)||98!==r&&99!==r||(null===nl?nl=new Set([e]):nl.add(e)),hl(e,n)),Vs=e}function pl(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 hl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Wt(s),u=1<<l,c=i[l];if(-1===c){if(0==(u&r)||0!=(u&o)){c=t,jt(u);var f=Lt;i[l]=10<=f?c+250:6<=f?c+5E3:-1}}else c<=t&&(e.expiredLanes|=u);s&=~u}if(r=It(e,e===Ps?Ns:0),t=Lt,0===r)null!==n&&(n!==Io&&Mo(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;
n!==Io&&Mo(n)}15===t?(n=vl.bind(null,e),null===zo?(zo=[n],Ho=Eo(Do,Yo)):zo.push(n),n=Io):14===t?n=Zo(99,vl.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e));}}(t),n=Zo(n,gl.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function gl(e){if(il=-1,sl=al=0,0!=(48&As))throw Error(a(327));var t=e.callbackNode;if(Nl()&&
e.callbackNode!==t)return null;var n=It(e,e===Ps?Ns:0);if(0===n)return null;var r=n,o=As;As|=16;var i=Cl();for(Ps===e&&Ns===r||(Us(),kl(e,r));;)try{Ml();break}catch(t){Sl(e,t)}if(ni(),Ts.current=i,As=o,null!==Ds?r=0:(Ps=null,Ns=0,r=js),0!=(Fs&Hs))kl(e,0);else if(0!==r){if(2===r&&(As|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(n=Ft(e))&&(r=Ol(e,n))),1===r)throw t=Is,kl(e,0),ml(e,n),hl(e,Wo()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));
case 2:case 5:Al(e);break;case 3:if(ml(e,n),(62914560&n)===n&&10<(r=Ws+500-Wo())){if(0!==It(e,0))break;if(((o=e.suspendedLanes)&n)!==n){cl(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=$r(Al.bind(null,e),r);break}Al(e);break;case 4:if(ml(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var s=31-Wt(n);i=1<<s,(s=r[s])>o&&(o=s),n&=~i}if(n=o,10<(n=(120>(n=Wo()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3E3>n?3E3:4320>n?4320:1960*Ms(n/1960))-n)){e.timeoutHandle=$r(Al.bind(null,e),n);
break}Al(e);break;default:throw Error(a(329));}}return hl(e,Wo()),e.callbackNode===t?gl.bind(null,e):null}function ml(e,t){for(t&=~Bs,t&=~Hs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Wt(t),r=1<<n;e[n]=-1,t&=~r}}function vl(e){if(0!=(48&As))throw Error(a(327));if(Nl(),e===Ps&&0!=(e.expiredLanes&Ns)){var t=Ns,n=Ol(e,t);0!=(Fs&Hs)&&(n=Ol(e,t=It(e,t)))}else n=Ol(e,t=It(e,0));if(0!==e.tag&&2===n&&(As|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(t=Ft(e))&&(n=Ol(e,
t))),1===n)throw n=Is,kl(e,0),ml(e,t),hl(e,Wo()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Al(e),hl(e,Wo()),null}function yl(e,t){var n=As;As|=1;try{return e(t)}finally{0===(As=n)&&(Us(),Ko())}}function bl(e,t){var n=As;As&=-2,As|=8;try{return e(t)}finally{0===(As=n)&&(Us(),Ko())}}function wl(e,t){co(Ls,Rs),Rs|=t,Fs|=t}function xl(){Rs=Ls.current,uo(Ls)}function kl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Ur(n)),null!==Ds)for(n=
Ds.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&yo();break;case 3:Ri(),uo(ho),uo(po),Yi();break;case 5:ji(r);break;case 4:Ri();break;case 13:case 19:uo(Ii);break;case 10:ri(r);break;case 23:case 24:xl()}n=n.return}Ps=e,Ds=$l(e.current,null),Ns=Rs=Fs=t,js=0,Is=null,Bs=Hs=zs=0}function Sl(e,t){for(;;){var n=Ds;try{if(ni(),Gi.current=Pa,na){for(var r=Qi.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}na=!1}if(Xi=0,ta=ea=Qi=null,ra=!1,_s.current=
null,null===n||null===n.return){js=1,Is=t,Ds=null;break}e:{var i=e,a=n.return,s=n,l=t;if(t=Ns,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l;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&Ii.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 m=d.updateQueue;if(null===m){var v=new Set;v.add(u),d.updateQueue=v}else m.add(u);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=ci(-1,1);y.tag=2,fi(s,y)}s.lanes|=1;break e}l=void 0,s=t;var b=i.pingCache;if(null===b?(b=i.pingCache=new us,l=new Set,b.set(u,l)):void 0===(l=b.get(u))&&(l=new Set,b.set(u,l)),!l.has(s)){l.add(s);var w=zl.bind(null,i,u,s);u.then(w,
w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);l=Error((Z(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!==js&&(js=2),l=ss(l,s),d=a;do{switch(d.tag){case 3:i=l,d.flags|=4096,t&=-t,d.lanes|=t,di(d,cs(0,i,t));break e;case 1:i=l;var x=d.type,k=d.stateNode;if(0==(64&d.flags)&&("function"==typeof x.getDerivedStateFromError||
null!==k&&"function"==typeof k.componentDidCatch&&(null===Gs||!Gs.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,di(d,fs(d,i,t));break e}}d=d.return}while(null!==d)}_l(n)}catch(e){t=e,Ds===n&&null!==n&&(Ds=n=n.return);continue}break}}function Cl(){var e=Ts.current;return Ts.current=Pa,null===e?Pa:e}function Ol(e,t){var n=As;As|=16;var r=Cl();for(Ps===e&&Ns===t||kl(e,t);;)try{El();break}catch(t){Sl(e,t)}if(ni(),As=n,Ts.current=r,null!==Ds)throw Error(a(261));return Ps=null,Ns=0,js}function El(){for(;null!==
Ds;)Tl(Ds)}function Ml(){for(;null!==Ds&&!To();)Tl(Ds)}function Tl(e){var t=qs(e.alternate,e,Rs);e.memoizedProps=e.pendingProps,null===t?_l(e):Ds=t,_s.current=null}function _l(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=is(n,t,Rs)))return void(Ds=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Rs)||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=as(t)))return n.flags&=2047,void(Ds=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ds=t);Ds=t=e}while(null!==t);0===js&&(js=5)}function Al(e){var t=$o();return qo(99,Pl.bind(null,e,t)),null}function Pl(e,
t){do Nl();while(null!==Xs);if(0!=(48&As))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,l=e.expirationTimes;0<i;){var u=31-Wt(i),c=1<<u;o[u]=0,s[u]=-1,l[u]=-1,i&=~c}if(null!==nl&&0==(24&
r)&&nl.has(e)&&nl.delete(e),e===Ps&&(Ds=Ps=null,Ns=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=As,As|=32,_s.current=null,Hr=Kt,mr(s=gr())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(c=l.getSelection&&l.getSelection())&&0!==c.rangeCount){l=c.anchorNode,i=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{l.nodeType,u.nodeType}catch(e){l=null;break e}var f=
0,d=-1,p=-1,h=0,g=0,m=s,v=null;t:for(;;){for(var y;m!==l||0!==i&&3!==m.nodeType||(d=f+i),m!==u||0!==c&&3!==m.nodeType||(p=f+c),3===m.nodeType&&(f+=m.nodeValue.length),null!==(y=m.firstChild);)v=m,m=y;for(;;){if(m===s)break t;if(v===l&&++h===i&&(d=f),v===u&&++g===c&&(p=f),null!==(y=m.nextSibling))break;v=(m=v).parentNode}m=y}l=-1===d||-1===p?null:{start:d,end:p}}else l=null;l=l||{start:0,end:0}}else l=null;Br={focusedElem:s,selectionRange:l},Kt=!1,ll=null,ul=!1,Zs=r;do try{Dl()}catch(e){if(null===
Zs)throw Error(a(330));Fl(Zs,e),Zs=Zs.nextEffect}while(null!==Zs);ll=null,Zs=r;do try{for(s=e;null!==Zs;){var b=Zs.flags;if(16&b&&ve(Zs.stateNode,""),128&b){var w=Zs.alternate;if(null!==w){var x=w.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&b){case 2:ws(Zs),Zs.flags&=-3;break;case 6:ws(Zs),Zs.flags&=-3,Cs(Zs.alternate,Zs);break;case 1024:Zs.flags&=-1025;break;case 1028:Zs.flags&=-1025,Cs(Zs.alternate,Zs);break;case 4:Cs(Zs.alternate,Zs);break;case 8:Ss(s,l=Zs);var k=l.alternate;
ys(l),null!==k&&ys(k)}Zs=Zs.nextEffect}}catch(e){if(null===Zs)throw Error(a(330));Fl(Zs,e),Zs=Zs.nextEffect}while(null!==Zs);if(x=Br,w=gr(),b=x.focusedElem,s=x.selectionRange,w!==b&&b&&b.ownerDocument&&hr(b.ownerDocument.documentElement,b)){null!==s&&mr(b)&&(w=s.start,void 0===(x=s.end)&&(x=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(x,b.value.length)):(x=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(x=x.getSelection(),l=b.textContent.length,k=Math.min(s.start,
l),s=void 0===s.end?k:Math.min(s.end,l),!x.extend&&k>s&&(l=s,s=k,k=l),l=pr(b,k),i=pr(b,s),l&&i&&(1!==x.rangeCount||x.anchorNode!==l.node||x.anchorOffset!==l.offset||x.focusNode!==i.node||x.focusOffset!==i.offset)&&((w=w.createRange()).setStart(l.node,l.offset),x.removeAllRanges(),k>s?(x.addRange(w),x.extend(i.node,i.offset)):(w.setEnd(i.node,i.offset),x.addRange(w))))),w=[];for(x=b;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof b.focus&&
b.focus(),b=0;b<w.length;b++)(x=w[b]).element.scrollLeft=x.left,x.element.scrollTop=x.top}Kt=!!Hr,Br=Hr=null,e.current=n,Zs=r;do try{for(b=e;null!==Zs;){var S=Zs.flags;if(36&S&&gs(b,Zs.alternate,Zs),128&S){w=void 0;var C=Zs.ref;if(null!==C){var O=Zs.stateNode;Zs.tag,w=O,"function"==typeof C?C(w):C.current=w}}Zs=Zs.nextEffect}}catch(e){if(null===Zs)throw Error(a(330));Fl(Zs,e),Zs=Zs.nextEffect}while(null!==Zs);Zs=null,Fo(),As=o}else e.current=n;if(Js)Js=!1,Xs=e,Qs=t;else for(Zs=r;null!==Zs;)t=Zs.nextEffect,
Zs.nextEffect=null,8&Zs.flags&&((S=Zs).sibling=null,S.stateNode=null),Zs=t;if(0===(r=e.pendingLanes)&&(Gs=null),1===r?e===ol?rl++:(rl=0,ol=e):rl=0,n=n.stateNode,Co&&"function"==typeof Co.onCommitFiberRoot)try{Co.onCommitFiberRoot(So,n,void 0,64==(64&n.current.flags))}catch(e){}if(hl(e,Wo()),Ks)throw Ks=!1,e=Ys,Ys=null,e;return 0!=(8&As)||Ko(),null}function Dl(){for(;null!==Zs;){var e=Zs.alternate;ul||null===ll||(0!=(8&Zs.flags)?Qe(Zs,ll)&&(ul=!0):13===Zs.tag&&Es(e,Zs)&&Qe(Zs,ll)&&(ul=!0));var t=Zs.flags;
0!=(256&t)&&hs(e,Zs),0==(512&t)||Js||(Js=!0,Zo(97,function(){return Nl(),null})),Zs=Zs.nextEffect}}function Nl(){if(90!==Qs){var e=97<Qs?97:Qs;return Qs=90,qo(e,jl)}return!1}function Rl(e,t){el.push(t,e),Js||(Js=!0,Zo(97,function(){return Nl(),null}))}function Ll(e,t){tl.push(t,e),Js||(Js=!0,Zo(97,function(){return Nl(),null}))}function jl(){if(null===Xs)return!1;var e=Xs;if(Xs=null,0!=(48&As))throw Error(a(331));var t=As;As|=32;var n=tl;tl=[];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));Fl(i,e)}}for(n=el,el=[],r=0;r<n.length;r+=2){o=n[r],i=n[r+1];try{var l=o.create;o.destroy=l()}catch(e){if(null===i)throw Error(a(330));Fl(i,e)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return As=t,Ko(),!0}function Il(e,t,n){fi(e,t=cs(0,t=ss(n,t),1)),t=cl(),null!==(e=pl(e,1))&&(Vt(e,1,t),hl(e,t))}function Fl(e,t){if(3===e.tag)Il(e,
e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Il(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Gs||!Gs.has(r))){var o=fs(n,e=ss(t,e),1);if(fi(n,o),o=cl(),null!==(n=pl(n,1)))Vt(n,1,o),hl(n,o);else if("function"==typeof r.componentDidCatch&&(null===Gs||!Gs.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function zl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=cl(),e.pingedLanes|=
e.suspendedLanes&n,Ps===e&&(Ns&n)===n&&(4===js||3===js&&(62914560&Ns)===Ns&&500>Wo()-Ws?kl(e,0):Bs|=n),hl(e,t)}function Hl(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===$o()?1:2:(0===al&&(al=Fs),0===(t=Ht(62914560&~al))&&(t=4194304))),n=cl(),null!==(e=pl(e,t))&&(Vt(e,t,n),hl(e,n))}function Bl(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 Vl(e,t,n,r){return new Bl(e,t,n,r)}function Wl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function $l(e,t){var n=e.alternate;return null===n?((n=Vl(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 Ul(e,t,n,r,o,i){var s=2;if(r=e,"function"==typeof e)Wl(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case C:return ql(n.children,
o,i,t);case j:s=8,o|=16;break;case O:s=8,o|=1;break;case E:return(e=Vl(12,n,t,8|o)).elementType=E,e.type=E,e.lanes=i,e;case A:return(e=Vl(13,n,t,o)).type=A,e.elementType=A,e.lanes=i,e;case P:return(e=Vl(19,n,t,o)).elementType=P,e.lanes=i,e;case I:return Zl(n,o,i,t);case F:return(e=Vl(24,n,t,o)).elementType=F,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case M:s=10;break e;case T:s=9;break e;case _:s=11;break e;case D:s=14;break e;case N:s=16,r=null;break e;case R:s=22;break e}throw Error(a(130,
null==e?e:typeof e,""));}return(t=Vl(s,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function ql(e,t,n,r){return(e=Vl(7,e,r,t)).lanes=n,e}function Zl(e,t,n,r){return(e=Vl(23,e,r,t)).elementType=I,e.lanes=n,e}function Kl(e,t,n){return(e=Vl(6,e,null,t)).lanes=n,e}function Yl(e,t,n){return(t=Vl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gl(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=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function Jl(e,t,n,r){var o=t.current,i=cl(),s=fl(o);e:if(n){t:{if(Ye(n=n._reactInternals)!==
n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(vo(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171));}if(1===n.tag){var u=n.type;if(vo(u)){n=wo(n,u,l);break e}}n=l}else n=fo;return null===t.context?t.context=n:t.pendingContext=n,(t=ci(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),fi(o,t),dl(o,s,i),s}function Xl(e){return(e=e.current).child?(e.child.tag,
e.child.stateNode):null}function Ql(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function eu(e,t){Ql(e,t),(e=e.alternate)&&Ql(e,t)}function tu(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Gl(e,t,null!=n&&!0===n.hydrate),t=Vl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,li(t),e[Qr]=n.current,Pr(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 nu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ru(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=Xl(a);s.call(e)}}Jl(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 tu(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var l=o;o=function(){var e=Xl(a);l.call(e)}}bl(function(){Jl(t,a,e,o)})}return Xl(a)}function ou(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!nu(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&
void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}qs=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ho.current)ja=!0;else{if(0==(n&r)){switch(ja=!1,t.tag){case 3:qa(t),Zi();break;case 5:Li(t);break;case 1:vo(t.type)&&xo(t);break;case 4:Ni(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;co(Xo,o._currentValue),o._currentValue=r;break;case 13:if(null!==
t.memoizedState)return 0!=(n&t.child.childLanes)?Xa(e,t,n):(co(Ii,1&Ii.current),null!==(t=rs(e,t,n))?t.sibling:null);co(Ii,1&Ii.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return ns(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),co(Ii,Ii.current),r)break;return null;case 23:case 24:return t.lanes=0,Ba(e,t,n)}return rs(e,t,n)}ja=0!=(16384&e.flags)}else ja=!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=mo(t,po.current),ii(t,n),o=aa(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,vo(r)){var i=!0;xo(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,li(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&mi(t,r,s,e),o.updater=vi,t.stateNode=o,o._reactInternals=t,xi(t,r,e,n),t=Ua(null,t,r,!0,i,n)}else t.tag=0,
Ia(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 Wl(e)?1:0;if(null!=e){if((e=e.$$typeof)===_)return 11;if(e===D)return 14}return 2}(o),e=Jo(o,e),i){case 0:t=Wa(null,t,o,e,n);break e;case 1:t=$a(null,t,o,e,n);break e;case 11:t=Fa(null,t,o,e,n);break e;case 14:t=za(null,t,o,Jo(o.type,e),r,n);break e}throw Error(a(306,o,""));
}return t;case 0:return r=t.type,o=t.pendingProps,Wa(e,t,r,o=t.elementType===r?o:Jo(r,o),n);case 1:return r=t.type,o=t.pendingProps,$a(e,t,r,o=t.elementType===r?o:Jo(r,o),n);case 3:if(qa(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,ui(e,t),pi(t,r,null,n),(r=t.memoizedState.element)===o)Zi(),t=rs(e,t,n);else{if((i=(o=t.stateNode).hydrate)&&(Hi=Zr(t.stateNode.containerInfo.firstChild),zi=t,i=Bi=!0),i){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=
0;o<e.length;o+=2)(i=e[o])._workInProgressVersionPrimary=e[o+1],Ki.push(i);for(n=Mi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Ia(e,t,r,n),Zi();t=t.child}return t;case 5:return Li(t),null===e&&$i(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,Wr(r,o)?s=null:null!==i&&Wr(r,i)&&(t.flags|=16),Va(e,t),Ia(e,t,s,n),t.child;case 6:return null===e&&$i(t),null;case 13:return Xa(e,t,n);case 4:return Ni(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?
t.child=Ei(t,null,r,n):Ia(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Fa(e,t,r,o=t.elementType===r?o:Jo(r,o),n);case 7:return Ia(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ia(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 l=t.type._context;if(co(Xo,l._currentValue),l._currentValue=i,null!==s)if(l=s.value,0==(i=ur(l,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,i):1073741823))){if(s.children===
o.children&&!ho.current){t=rs(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){s=l.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&i)){1===l.tag&&((c=ci(-1,n&-n)).tag=2,fi(l,c)),l.lanes|=n,null!==(c=l.alternate)&&(c.lanes|=n),oi(l.return,n),u.lanes|=n;break}c=c.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=
s.return,s=l;break}s=s.return}l=s}Ia(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ii(t,n),r=r(o=ai(o,i.unstable_observedBits)),t.flags|=1,Ia(e,t,r,n),t.child;case 14:return i=Jo(o=t.type,t.pendingProps),za(e,t,o,i=Jo(o.type,i),r,n);case 15:return Ha(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,vo(r)?(e=!0,xo(t)):e=!1,ii(t,n),bi(t,r,
o),xi(t,r,o,n),Ua(null,t,r,!0,e,n);case 19:return ns(e,t,n);case 23:case 24:return Ba(e,t,n)}throw Error(a(156,t.tag));},tu.prototype.render=function(e){Jl(e,this._internalRoot,null,null)},tu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Jl(null,e,null,function(){t[Qr]=null})},et=function(e){13===e.tag&&(dl(e,4,cl()),eu(e,4))},tt=function(e){13===e.tag&&(dl(e,67108864,cl()),eu(e,67108864))},nt=function(e){if(13===e.tag){var t=cl(),n=fl(e);dl(e,n,t),eu(e,n)}},rt=function(e,
t){return t()},Ee=function(e,t,n){switch(t){case "input":if(ne(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=oo(r);if(!o)throw Error(a(90));J(r),ne(r,o)}}}break;case "textarea":ue(e,n);break;case "select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},De=yl,Ne=function(e,t,n,r,o){var i=As;As|=4;try{return qo(98,e.bind(null,t,n,
r,o))}finally{0===(As=i)&&(Us(),Ko())}},Re=function(){0==(49&As)&&(function(){if(null!==nl){var e=nl;nl=null,e.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,hl(e,Wo())})}Ko()}(),Nl())},Le=function(e,t){var n=As;As|=2;try{return e(t)}finally{0===(As=n)&&(Us(),Ko())}};var iu={Events:[no,ro,oo,Ae,Pe,Nl,{current:!1}]},au={findFiberByHostInstance:to,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},su={bundleType:au.bundleType,version:au.version,rendererPackageName:au.rendererPackageName,
rendererConfig:au.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Xe(e))?null:e.stateNode},findFiberByHostInstance:au.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,
setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var lu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lu.isDisabled&&lu.supportsFiber)try{So=lu.inject(su),Co=lu}catch(ge){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=iu,t.createPortal=ou,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 null===
(e=Xe(t))?null:e.stateNode},t.flushSync=function(e,t){var n=As;if(0!=(48&n))return e(t);As|=1;try{if(e)return qo(99,e.bind(null,t))}finally{As=n,Ko()}},t.hydrate=function(e,t,n){if(!nu(t))throw Error(a(200));return ru(null,e,t,!0,n)},t.render=function(e,t,n){if(!nu(t))throw Error(a(200));return ru(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!nu(e))throw Error(a(40));return!!e._reactRootContainer&&(bl(function(){ru(null,null,e,!1,function(){e._reactRootContainer=null,e[Qr]=null})}),!0)},
t.unstable_batchedUpdates=yl,t.unstable_createPortal=function(e,t){return ou(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!nu(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return ru(e,t,n,!1,r)},t.version="17.0.2"},3935:(e,t,n)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),
e.exports=n(4448)},7914:(e,t,n)=>{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(7294),a=l(i),s=l(n(5697));function l(e){return e&&
e.__esModule?e:{default:e}}var u={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},c=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],f=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},d=!("undefined"==typeof window||!window.navigator)&&
/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),p=function(){return d?"_"+Math.random().toString(36).substr(2,12):void 0},h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,t);var n=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,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=
function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||p(),prevId:e.id},n}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)}(t,e),o(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.id;return n!==t.prevId?{inputId:n||p(),prevId:n}:null}}]),o(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",
value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(f(e,this.sizer),this.placeHolderSizer&&f(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+
2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;
return d&&e?a.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce(function(e,t){return null!=e?e:t}),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,
r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){c.forEach(function(t){return delete e[t]})}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},o,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:u},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:u},this.props.placeholder):
null)}}]),t}(i.Component);h.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},
h.defaultProps={minWidth:1,injectStyles:!0},t.Z=h},9921:(e,t)=>{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,l=n?Symbol.for("react.provider"):60109,u=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,m=n?Symbol.for("react.lazy"):60116,v=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 x(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 u:case d:case m:case g:case l:return e;
default:return t}}case o:return t}}}function k(e){return x(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=m,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return k(e)||x(e)===c},t.isConcurrentMode=k,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=
function(e){return x(e)===d},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===m},t.isMemo=function(e){return x(e)===g},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(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===m||e.$$typeof===g||
e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},9864:(e,t,n)=>{e.exports=n(9921)},8216:(e,t,n)=>{n.d(t,{zt:()=>c,$j:()=>V,I0:()=>q,v9:()=>Y});var r=n(7294),o=r.createContext(null),i=function(e){e()},a=function(){return i},s={notify:function(){},get:function(){return[]}};function l(e,t){var n,r=s;function o(){l.onStateChange&&l.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){var e=a(),t=
null,n=null;return{clear:function(){t=null,n=null},notify:function(){e(function(){for(var e=t;e;)e.callback(),e=e.next})},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var l={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,
isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=s)},getListeners:function(){return r}};return l}var u="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;const c=function(e){var t=e.store,n=e.context,i=e.children,a=(0,r.useMemo)(function(){var e=l(t);return{store:t,subscription:e}},[t]),s=(0,r.useMemo)(function(){return t.getState()},[t]);u(function(){var e=a.subscription;
return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}},[a,s]);var c=n||o;return r.createElement(c.Provider,{value:a},i)};var f=n(7462),d=n(3366),p=n(8679),h=n.n(p),g=n(2973),m=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],v=["reactReduxForwardedRef"],y=[],b=[null,null];function w(e,t){var n=e[1];return[t.payload,n+1]}function x(e,
t,n){u(function(){return e.apply(void 0,t)},n)}function k(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function S(e,t,n,r,o,i,a,s,l,u){if(e){var c=!1,f=null,d=function(){if(!c){var e,n,d=t.getState();try{e=r(d,o.current)}catch(e){n=e,f=e}n||(f=null),e===i.current?a.current||l():(i.current=e,s.current=e,a.current=!0,u({type:"STORE_UPDATED",payload:{error:n}}))}};return n.onStateChange=d,n.trySubscribe(),d(),function(){if(c=!0,n.tryUnsubscribe(),n.onStateChange=
null,f)throw f;}}}var C=function(){return[null,0]};function O(e,t){void 0===t&&(t={});var n=t,i=n.getDisplayName,a=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,s=n.methodName,u=void 0===s?"connectAdvanced":s,c=n.renderCountProp,p=void 0===c?void 0:c,O=n.shouldHandleStateChanges,E=void 0===O||O,M=n.storeKey,T=void 0===M?"store":M,_=(n.withRef,n.forwardRef),A=void 0!==_&&_,P=n.context,D=void 0===P?o:P,N=(0,d.Z)(n,m),R=D;return function(t){var n=t.displayName||t.name||"Component",o=a(n),
i=(0,f.Z)({},N,{getDisplayName:a,methodName:u,renderCountProp:p,shouldHandleStateChanges:E,storeKey:T,displayName:o,wrappedComponentName:n,WrappedComponent:t}),s=N.pure,c=s?r.useMemo:function(e){return e()};function m(n){var o=(0,r.useMemo)(function(){var e=n.reactReduxForwardedRef,t=(0,d.Z)(n,v);return[n.context,e,t]},[n]),a=o[0],s=o[1],u=o[2],p=(0,r.useMemo)(function(){return a&&a.Consumer&&(0,g.isContextConsumer)(r.createElement(a.Consumer,null))?a:R},[a,R]),h=(0,r.useContext)(p),m=Boolean(n.store)&&
Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(h)&&Boolean(h.store);var O=m?n.store:h.store,M=(0,r.useMemo)(function(){return function(t){return e(t.dispatch,i)}(O)},[O]),T=(0,r.useMemo)(function(){if(!E)return b;var e=l(O,m?null:h.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[O,m,h]),_=T[0],A=T[1],P=(0,r.useMemo)(function(){return m?h:(0,f.Z)({},h,{subscription:_})},[m,h,_]),D=(0,r.useReducer)(w,y,C),N=D[0][0],L=D[1];if(N&&N.error)throw N.error;var j=(0,r.useRef)(),I=(0,r.useRef)(u),
F=(0,r.useRef)(),z=(0,r.useRef)(!1),H=c(function(){return F.current&&u===I.current?F.current:M(O.getState(),u)},[O,N,u]);x(k,[I,j,z,u,H,F,A]),x(S,[E,O,_,M,I,j,z,F,A,L],[O,_,M]);var B=(0,r.useMemo)(function(){return r.createElement(t,(0,f.Z)({},H,{ref:s}))},[s,t,H]);return(0,r.useMemo)(function(){return E?r.createElement(p.Provider,{value:P},B):B},[p,B,P])}var O=s?r.memo(m):m;if(O.WrappedComponent=t,O.displayName=m.displayName=o,A){var M=r.forwardRef(function(e,t){return r.createElement(O,(0,f.Z)({},
e,{reactReduxForwardedRef:t}))});return M.displayName=o,M.WrappedComponent=t,h()(M,t)}return h()(O,t)}}function E(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function M(e,t){if(E(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(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!E(e[n[o]],t[n[o]]))return!1;return!0}function T(e){return function(t,n){var r=e(t,
n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function _(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function A(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=_(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=_(o),o=r(t,n)),o},
r}}const P=[function(e){return"function"==typeof e?A(e):void 0},function(e){return e?void 0:T(function(e){return{dispatch:e}})},function(e){return e&&"object"==typeof e?T(function(t){return function(e,t){var n={},r=function(r){var o=e[r];"function"==typeof o&&(n[r]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)r(o);return n}(e,t)}):void 0}],D=[function(e){return"function"==typeof e?A(e):void 0},function(e){return e?void 0:T(function(){return{}})}];function N(e,t,n){return(0,f.Z)({},
n,e,t)}const R=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,s){var l=e(t,n,s);return a?o&&i(l,r)||(r=l):(a=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return N}}];var L=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function j(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function I(e,t,n,r,o){var i,a,s,l,u,c=o.areStatesEqual,f=o.areOwnPropsEqual,
d=o.areStatePropsEqual,p=!1;return function(o,h){return p?function(o,p){var h,g,m=!f(p,a),v=!c(o,i,p,a);return i=o,a=p,m&&v?(s=e(i,a),t.dependsOnOwnProps&&(l=t(r,a)),u=n(s,l,a)):m?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(l=t(r,a)),u=n(s,l,a)):v?(h=e(i,a),g=!d(h,s),s=h,g&&(u=n(s,l,a)),u):u}(o,h):(s=e(i=o,a=h),l=t(r,a),u=n(s,l,a),p=!0,u)}}function F(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=(0,d.Z)(t,L),a=n(e,i),s=r(e,i),l=o(e,i);return(i.pure?I:
j)(a,s,l,e,i)}var z=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function H(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".");}}function B(e,t){return e===t}const V=function(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?O:n,o=t.mapStateToPropsFactories,i=void 0===o?D:o,a=t.mapDispatchToPropsFactories,
s=void 0===a?P:a,l=t.mergePropsFactories,u=void 0===l?R:l,c=t.selectorFactory,p=void 0===c?F:c;return function(e,t,n,o){void 0===o&&(o={});var a=o,l=a.pure,c=void 0===l||l,h=a.areStatesEqual,g=void 0===h?B:h,m=a.areOwnPropsEqual,v=void 0===m?M:m,y=a.areStatePropsEqual,b=void 0===y?M:y,w=a.areMergedPropsEqual,x=void 0===w?M:w,k=(0,d.Z)(a,z),S=H(e,i,"mapStateToProps"),C=H(t,s,"mapDispatchToProps"),O=H(n,u,"mergeProps");return r(p,(0,f.Z)({methodName:"connect",getDisplayName:function(e){return"Connect("+
e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:S,initMapDispatchToProps:C,initMergeProps:O,pure:c,areStatesEqual:g,areOwnPropsEqual:v,areStatePropsEqual:b,areMergedPropsEqual:x},k))}}();function W(){return(0,r.useContext)(o)}function $(e){void 0===e&&(e=o);var t=e===o?W:function(){return(0,r.useContext)(e)};return function(){return t().store}}var U=$();var q=function(e){void 0===e&&(e=o);var t=e===o?U:$(e);return function(){return t().dispatch}}(),Z=function(e,t){return e===t};var K,
Y=function(e){void 0===e&&(e=o);var t=e===o?W:function(){return(0,r.useContext)(e)};return function(e,n){void 0===n&&(n=Z);var o=t(),i=function(e,t,n,o){var i,a=(0,r.useReducer)(function(e){return e+1},0)[1],s=(0,r.useMemo)(function(){return l(n,o)},[n,o]),c=(0,r.useRef)(),f=(0,r.useRef)(),d=(0,r.useRef)(),p=(0,r.useRef)(),h=n.getState();try{if(e!==f.current||h!==d.current||c.current){var g=e(h);i=void 0!==p.current&&t(g,p.current)?p.current:g}else i=p.current}catch(e){throw c.current&&(e.message+=
"\nThe error may be correlated with this previous error:\n"+c.current.stack+"\n\n"),e;}return u(function(){f.current=e,d.current=h,p.current=i,c.current=void 0}),u(function(){function e(){try{var e=n.getState();if(e===d.current)return;var r=f.current(e);if(t(r,p.current))return;p.current=r,d.current=e}catch(e){c.current=e}a()}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}},[n,s]),i}(e,n,o.store,o.subscription);return(0,r.useDebugValue)(i),i}}();K=n(3935).unstable_batchedUpdates,
i=K},8359:(e,t)=>{var n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,l=60110,u=60112,c=60113,f=60120,d=60115,p=60116;if("function"==typeof Symbol&&Symbol.for){var h=Symbol.for;n=h("react.element"),r=h("react.portal"),o=h("react.fragment"),i=h("react.strict_mode"),a=h("react.profiler"),s=h("react.provider"),l=h("react.context"),u=h("react.forward_ref"),c=h("react.suspense"),f=h("react.suspense_list"),d=h("react.memo"),p=h("react.lazy"),h("react.block"),h("react.server.block"),h("react.fundamental"),
h("react.debug_trace_mode"),h("react.legacy_hidden")}t.isContextConsumer=function(e){return function(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 l:case u:case p:case d:case s:return e;default:return t}}case r:return t}}}(e)===l}},2973:(e,t,n)=>{e.exports=n(8359)},2146:(e,t,n)=>{n.d(t,{ZP:()=>An});var r=n(7462),o=n(7294),i=n.t(o,2),a=function(){function e(e){var t=this;this._insertTag=
function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%
(this.isSpeedy?65E3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,
n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}(),s=Math.abs,l=String.fromCharCode,u=Object.assign;function c(e){return e.trim()}function f(e,t,n){return e.replace(t,n)}function d(e,t){return e.indexOf(t)}function p(e,t){return 0|e.charCodeAt(t)}function h(e,t,n){return e.slice(t,n)}function g(e){return e.length}function m(e){return e.length}
function v(e,t){return t.push(e),e}var y=1,b=1,w=0,x=0,k=0,S="";function C(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:y,column:b,length:a,return:""}}function O(e,t){return u(C("",null,null,"",null,null,0),e,{length:-e.length},t)}function E(){return k=x>0?p(S,--x):0,b--,10===k&&(b=1,y--),k}function M(){return k=x<w?p(S,x++):0,b++,10===k&&(b=1,y++),k}function T(){return p(S,x)}function _(){return x}function A(e,t){return h(S,e,t)}function P(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;
case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function D(e){return y=b=1,w=g(S=e),x=0,[]}function N(e){return S="",e}function R(e){return c(A(x-1,I(91===e?e+2:40===e?e+1:e)))}function L(e){for(;(k=T())&&k<33;)M();return P(e)>2||P(k)>3?"":" "}function j(e,t){for(;--t&&M()&&!(k<48||k>102||k>57&&k<65||k>70&&k<97););return A(e,_()+(t<6&&32==T()&&32==M()))}function I(e){for(;M();)switch(k){case e:return x;
case 34:case 39:34!==e&&39!==e&&I(k);break;case 40:41===e&&I(e);break;case 92:M()}return x}function F(e,t){for(;M()&&e+k!==57&&(e+k!==84||47!==T()););return"/*"+A(t,x-1)+"*"+l(47===e?e:M())}function z(e){for(;!P(T());)M();return A(e,x)}var H="-ms-",B="-moz-",V="-webkit-",W="comm",$="rule",U="decl",q="@keyframes";function Z(e,t){for(var n="",r=m(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function K(e,t,n,r){switch(e.type){case "@layer":if(e.children.length)break;case "@import":case U:return e.return=
e.return||e.value;case W:return"";case q:return e.return=e.value+"{"+Z(e.children,r)+"}";case $:e.value=e.props.join(",")}return g(n=Z(e.children,r))?e.return=e.value+"{"+n+"}":""}function Y(e){return N(G("",null,null,null,[""],e=D(e),0,[0],e))}function G(e,t,n,r,o,i,a,s,u){for(var c=0,h=0,m=a,y=0,b=0,w=0,x=1,k=1,S=1,C=0,O="",A=o,P=i,D=r,N=O;k;)switch(w=C,C=M()){case 40:if(108!=w&&58==p(N,m-1)){-1!=d(N+=f(R(C),"&","&\f"),"&\f")&&(S=-1);break}case 34:case 39:case 91:N+=R(C);break;case 9:case 10:case 13:case 32:N+=
L(w);break;case 92:N+=j(_()-1,7);continue;case 47:switch(T()){case 42:case 47:v(X(F(M(),_()),t,n),u);break;default:N+="/"}break;case 123*x:s[c++]=g(N)*S;case 125*x:case 59:case 0:switch(C){case 0:case 125:k=0;case 59+h:-1==S&&(N=f(N,/\f/g,"")),b>0&&g(N)-m&&v(b>32?Q(N+";",r,n,m-1):Q(f(N," ","")+";",r,n,m-2),u);break;case 59:N+=";";default:if(v(D=J(N,t,n,c,h,o,s,O,A=[],P=[],m),i),123===C)if(0===h)G(N,t,D,D,A,i,m,s,P);else switch(99===y&&110===p(N,3)?100:y){case 100:case 108:case 109:case 115:G(e,D,
D,r&&v(J(e,D,D,0,0,o,s,O,o,A=[],m),P),o,P,m,s,r?A:P);break;default:G(N,D,D,D,[""],P,0,s,P)}}c=h=b=0,x=S=1,O=N="",m=a;break;case 58:m=1+g(N),b=w;default:if(x<1)if(123==C)--x;else if(125==C&&0==x++&&125==E())continue;switch(N+=l(C),C*x){case 38:S=h>0?1:(N+="\f",-1);break;case 44:s[c++]=(g(N)-1)*S,S=1;break;case 64:45===T()&&(N+=R(M())),y=T(),h=m=g(O=N+=z(_())),C++;break;case 45:45===w&&2==g(N)&&(x=0)}}return i}function J(e,t,n,r,o,i,a,l,u,d,p){for(var g=o-1,v=0===o?i:[""],y=m(v),b=0,w=0,x=0;b<r;++b)for(var k=
0,S=h(e,g+1,g=s(w=a[b])),O=e;k<y;++k)(O=c(w>0?v[k]+" "+S:f(S,/&\f/g,v[k])))&&(u[x++]=O);return C(e,t,n,0===o?$:l,u,d,p)}function X(e,t,n){return C(e,t,n,W,l(k),h(e,2,-2),0)}function Q(e,t,n,r){return C(e,t,n,U,h(e,0,r),h(e,r+1,-1),r)}var ee=function(e,t,n){for(var r=0,o=0;r=o,o=T(),38===r&&12===o&&(t[n]=1),!P(o);)M();return A(e,x)},te=new WeakMap,ne=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=
n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||te.get(n))&&!r){te.set(e,!0);for(var o=[],i=function(e,t){return N(function(e,t){var n=-1,r=44;do switch(P(r)){case 0:38===r&&12===T()&&(t[n]=1),e[n]+=ee(x-1,t,n);break;case 2:e[n]+=R(r);break;case 4:if(44===r){e[++n]=58===T()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=l(r)}while(r=M());return e}(D(e),t))}(t,o),a=n.props,s=0,u=0;s<i.length;s++)for(var c=0;c<a.length;c++,u++)e.props[u]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},
re=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function oe(e,t){switch(function(e,t){return 45^p(e,0)?(((t<<2^p(e,0))<<2^p(e,1))<<2^p(e,2))<<2^p(e,3):0}(e,t)){case 5103:return V+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return V+
e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return V+e+B+e+H+e+e;case 6828:case 4268:return V+e+H+e+e;case 6165:return V+e+H+"flex-"+e+e;case 5187:return V+e+f(e,/(\w+).+(:[^]+)/,V+"box-$1$2"+H+"flex-$1$2")+e;case 5443:return V+e+H+"flex-item-"+f(e,/flex-|-self/,"")+e;case 4675:return V+e+H+"flex-line-pack"+f(e,/align-content|flex-|-self/,"")+e;case 5548:return V+e+H+f(e,"shrink","negative")+e;case 5292:return V+e+H+f(e,"basis","preferred-size")+e;case 6060:return V+"box-"+f(e,"-grow","")+
V+e+H+f(e,"grow","positive")+e;case 4554:return V+f(e,/([^-])(transform)/g,"$1"+V+"$2")+e;case 6187:return f(f(f(e,/(zoom-|grab)/,V+"$1"),/(image-set)/,V+"$1"),e,"")+e;case 5495:case 3959:return f(e,/(image-set\([^]*)/,V+"$1$`$1");case 4968:return f(f(e,/(.+:)(flex-)?(.*)/,V+"box-pack:$3"+H+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+V+e+e;case 4095:case 3583:case 4068:case 2532:return f(e,/(.+)-inline(.+)/,V+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(g(e)-
1-t>6)switch(p(e,t+1)){case 109:if(45!==p(e,t+4))break;case 102:return f(e,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+B+(108==p(e,t+3)?"$3":"$2-$3"))+e;case 115:return~d(e,"stretch")?oe(f(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==p(e,t+1))break;case 6444:switch(p(e,g(e)-3-(~d(e,"!important")&&10))){case 107:return f(e,":",":"+V)+e;case 101:return f(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(45===p(e,14)?"inline-":"")+"box$3$1"+V+"$2$3$1"+H+"$2box$3")+e}break;case 5936:switch(p(e,t+11)){case 114:return V+
e+H+f(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return V+e+H+f(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return V+e+H+f(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return V+e+H+e+e}return e}var ie=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case U:e.return=oe(e.value,e.length);break;case q:return Z([O(e,{value:f(e.value,"@","@"+V)})],r);case $:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case ":read-only":case ":read-write":return Z([O(e,
{props:[f(t,/:(read-\w+)/,":-moz-$1")]})],r);case "::placeholder":return Z([O(e,{props:[f(t,/:(plac\w+)/,":"+V+"input-$1")]}),O(e,{props:[f(t,/:(plac\w+)/,":-moz-$1")]}),O(e,{props:[f(t,/:(plac\w+)/,H+"input-$1")]})],r)}return""})}}];function ae(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "}),r}var se=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},le=function(e,t,n){se(e,t,n);var r=e.key+"-"+t.name;
if(void 0===e.inserted[t.name]){var o=t;do e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next;while(void 0!==o)}},ue={animationIterationCount:1,aspectRatio: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 ce=/[A-Z]|^ms/g,fe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,de=function(e){return 45===e.charCodeAt(1)},pe=function(e){return null!=e&&"boolean"!=typeof e},he=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}(function(e){return de(e)?
e:e.replace(ce,"-$&").toLowerCase()}),ge=function(e,t){switch(e){case "animation":case "animationName":if("string"==typeof t)return t.replace(fe,function(e,t,n){return ve={name:t,styles:n,next:ve},t})}return 1===ue[e]||de(e)||"number"!=typeof t||0===t?t:t+"px"};function me(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case "boolean":return"";case "object":if(1===n.anim)return ve={name:n.name,styles:n.styles,next:ve},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==
r)for(;void 0!==r;)ve={name:r.name,styles:r.styles,next:ve},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=me(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":pe(a)&&(r+=he(i)+":"+ge(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=me(e,t,a);switch(i){case "animation":case "animationName":r+=he(i)+":"+s+";";break;default:r+=i+"{"+s+
"}"}}else for(var l=0;l<a.length;l++)pe(a[l])&&(r+=he(i)+":"+ge(i,a[l])+";")}return r}(e,t,n);case "function":if(void 0!==e){var o=ve,i=n(e);return ve=o,me(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var ve,ye=/label:\s*([^\s;\n{]+)\s*(;|$)/g,be=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";ve=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=me(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=me(n,t,e[a]),r&&(o+=
i[a]);ye.lastIndex=0;for(var s,l="";null!==(s=ye.exec(o));)l+="-"+s[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+
(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:u,styles:o,next:ve}},we=!!i.useInsertionEffect&&i.useInsertionEffect,xe=we||function(e){return e()},ke=(we||o.useLayoutEffect,{}.hasOwnProperty),Se=o.createContext("undefined"!=typeof HTMLElement?function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&
(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,i=e.stylisPlugins||ie,s={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;l.push(e)});var u,c,f,d,p=[K,(d=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],h=(c=[ne,re].concat(i,p),f=m(c),function(e,t,n,r){for(var o="",i=0;i<f;i++)o+=c[i](e,t,n,r)||
"";return o});o=function(e,t,n,r){u=n,Z(Y(e?e+"{"+t.styles+"}":t.styles),h),r&&(g.inserted[t.name]=!0)};var g={key:t,sheet:new a({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return g.sheet.hydrate(l),g}({key:"css"}):null);Se.Provider;var Ce=function(e){return(0,o.forwardRef)(function(t,n){var r=(0,o.useContext)(Se);return e(t,r,n)})},Oe=o.createContext({}),Ee="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",
Me=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return se(t,n,r),xe(function(){return le(t,n,r)}),null},Te=Ce(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[Ee],a=[r],s="";"string"==typeof e.className?s=ae(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var l=be(a,void 0,o.useContext(Oe));s+=t.key+"-"+l.name;var u={};for(var c in e)ke.call(e,c)&&"css"!==c&&c!==Ee&&(u[c]=e[c]);return u.ref=n,u.className=s,o.createElement(o.Fragment,
null,o.createElement(Me,{cache:t,serialized:l,isStringTag:"string"==typeof i}),o.createElement(i,u))}),_e=(n(8679),function(e,t){var n=arguments;if(null==t||!ke.call(t,"css"))return o.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=Te,i[1]=function(e,t){var n={};for(var r in t)ke.call(t,r)&&(n[r]=t[r]);return n[Ee]=e,n}(e,t);for(var a=2;a<r;a++)i[a]=n[a];return o.createElement.apply(null,i)});function Ae(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return be(t)}
var Pe=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case "boolean":break;case "object":if(Array.isArray(i))a=e(i);else for(var s in a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o},De=function(e){var t=e.cache,n=e.serializedArr;return xe(function(){for(var e=0;e<n.length;e++)le(t,n[e],!1)}),null},Ne=Ce(function(e,t){var n=[],r=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];
var i=be(r,t.registered);return n.push(i),se(t,i,!1),t.key+"-"+i.name},i={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return function(e,t,n){var r=[],o=ae(e,r,n);return r.length<2?n:o+t(r)}(t.registered,r,Pe(n))},theme:o.useContext(Oe)},a=e.children(i);return o.createElement(o.Fragment,null,o.createElement(De,{cache:t,serializedArr:n}),a)}),Re=n(168),Le=n(5987),je=n(1002),Ie=n(7914),Fe=n(5671),ze=n(3144),He=n(136),Be=n(4942),Ve=n(3935);function We(e,
t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(n),!0).forEach(function(t){We(e,t,n[t])}):Object.getOwnPropertyDescriptors?
Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qe(e){return qe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},qe(e)}function Ze(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,
[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=qe(e);if(t){var o=qe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,n)}}var Ke=function(){};function Ye(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Ge(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&
t[o]&&r.push("".concat(Ye(e,o)));return r.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var Je=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===(0,je.Z)(e)&&null!==e?[e]:[]},Xe=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Ue({},(0,Le.Z)(e,["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption",
"selectProps","setValue","theme"]))};function Qe(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function et(e){return Qe(e)?window.pageYOffset:e.scrollTop}function tt(e,t){Qe(e)?window.scrollTo(0,t):e.scrollTop=t}function nt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ke,o=et(e),i=t-o,a=0;!function t(){var s,l=i*((s=(s=a+=10)/n-1)*s*s+1)+o;tt(e,l),a<n?window.requestAnimationFrame(t):r(e)}()}
function rt(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var ot=!1,it={get passive(){return ot=!0}},at="undefined"!=typeof window?window:{};at.addEventListener&&at.removeEventListener&&(at.addEventListener("p",Ke,it),at.removeEventListener("p",Ke,!1));var st=ot,lt=function(e){return"auto"===e?"bottom":e},ut=(0,o.createContext)({getPortalPlacement:null}),ct=function(e){(0,He.Z)(n,e);var t=Ze(n);function n(){var e;(0,Fe.Z)(this,n);for(var r=arguments.length,o=new Array(r),i=
0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,i=n.menuPlacement,a=n.menuPosition,s=n.menuShouldScrollIntoView,l=n.theme;if(t){var u="fixed"===a,c=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.theme.spacing,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,
o=document.documentElement;if("fixed"===t.position)return o;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return o}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect().height,f=n.getBoundingClientRect(),d=f.bottom,p=f.height,h=f.top,g=n.offsetParent.getBoundingClientRect().top,m=window.innerHeight,v=et(l),y=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,
10),w=g-b,x=m-h,k=w+v,S=c-v-h,C=d-m+v+y,O=v+h-b,E=160;switch(o){case "auto":case "bottom":if(x>=p)return{placement:"bottom",maxHeight:t};if(S>=p&&!a)return i&&nt(l,C,E),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&x>=r)return i&&nt(l,C,E),{placement:"bottom",maxHeight:a?x-y:S-y};if("auto"===o||a){var M=t,T=a?w:k;return T>=r&&(M=Math.min(T-y-s.controlHeight,t)),{placement:"top",maxHeight:M}}if("bottom"===o)return i&&tt(l,C),{placement:"bottom",maxHeight:t};break;case "top":if(w>=p)return{placement:"top",
maxHeight:t};if(k>=p&&!a)return i&&nt(l,O,E),{placement:"top",maxHeight:t};if(!a&&k>=r||a&&w>=r){var _=t;return(!a&&k>=r||a&&w>=r)&&(_=a?w-b:k-b),i&&nt(l,O,E),{placement:"top",maxHeight:_}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'));}return u}({maxHeight:o,menuEl:t,minHeight:r,placement:i,shouldScroll:s&&!u,isFixedPosition:u,theme:l}),f=e.context.getPortalPlacement;f&&f(c),e.setState(c)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,
n=e.state.placement||lt(t);return Ue(Ue({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return(0,ze.Z)(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(o.Component);ct.contextType=ut;var ft=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},dt=ft,pt=ft,ht=function(e){var t=e.children,n=e.className,o=e.cx,i=e.getStyles,
a=e.innerProps;return _e("div",(0,r.Z)({css:i("noOptionsMessage",e),className:o({"menu-notice":!0,"menu-notice--no-options":!0},n)},a),t)};ht.defaultProps={children:"No options"};var gt=function(e){var t=e.children,n=e.className,o=e.cx,i=e.getStyles,a=e.innerProps;return _e("div",(0,r.Z)({css:i("loadingMessage",e),className:o({"menu-notice":!0,"menu-notice--loading":!0},n)},a),t)};gt.defaultProps={children:"Loading..."};var mt,vt=function(e){(0,He.Z)(n,e);var t=Ze(n);function n(){var e;(0,Fe.Z)(this,
n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==lt(e.props.menuPlacement)&&e.setState({placement:n})},e}return(0,ze.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,o=e.className,i=e.controlElement,a=e.cx,s=e.innerProps,l=e.menuPlacement,u=e.menuPosition,c=e.getStyles,f="fixed"===u;if(!t&&!f||!i)return null;var d=this.state.placement||
lt(l),p=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),h=f?0:window.pageYOffset,g={offset:p[d]+h,position:u,rect:p},m=_e("div",(0,r.Z)({css:c("menuPortal",g),className:a({"menu-portal":!0},o)},s),n);return _e(ut.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,Ve.createPortal)(m,t):m)}}]),n}(o.Component),yt={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},
bt=function(e){var t=e.size,n=(0,Le.Z)(e,["size"]);return _e("svg",(0,r.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:yt},n))},wt=function(e){return _e(bt,(0,r.Z)({size:20},e),_e("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},
xt=function(e){return _e(bt,(0,r.Z)({size:20},e),_e("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},kt=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",
padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},St=kt,Ct=kt,Ot=function(){var e=Ae.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(mt||(mt=(0,Re.Z)(["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"]))),Et=function(e){var t=e.delay,n=e.offset;return _e("span",{css:Ae({animation:"".concat(Ot," 1s ease-in-out ").concat(t,"ms infinite;"),
backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Mt=function(e){var t=e.className,n=e.cx,o=e.getStyles,i=e.innerProps,a=e.isRtl;return _e("div",(0,r.Z)({css:o("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},i),_e(Et,{delay:0,offset:a}),_e(Et,{delay:160,offset:!0}),_e(Et,{delay:320,offset:!a}))};Mt.defaultProps={size:4};var Tt=function(e){return{label:"input",background:0,
border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}},_t=function(e){var t=e.children,n=e.innerProps;return _e("div",n,t)},At=_t,Pt=_t,Dt=function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,i=e.data,a=e.getStyles,s=e.innerProps,l=e.isDisabled,u=e.removeProps,c=e.selectProps,f=r.Container,d=r.Label,p=r.Remove;return _e(Ne,null,function(r){var h=r.css,g=r.cx;return _e(f,{data:i,innerProps:Ue({className:g(h(a("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":l},
n))},s),selectProps:c},_e(d,{data:i,innerProps:{className:g(h(a("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:c},t),_e(p,{data:i,innerProps:Ue({className:g(h(a("multiValueRemove",e)),o({"multi-value__remove":!0},n))},u),selectProps:c}))})};Dt.defaultProps={cropWithEllipsis:!0};var Nt={ClearIndicator:function(e){var t=e.children,n=e.className,o=e.cx,i=e.getStyles,a=e.innerProps;return _e("div",(0,r.Z)({css:i("clearIndicator",e),className:o({indicator:!0,"clear-indicator":!0},n)},
a),t||_e(wt,null))},Control:function(e){var t=e.children,n=e.cx,o=e.getStyles,i=e.className,a=e.isDisabled,s=e.isFocused,l=e.innerRef,u=e.innerProps,c=e.menuIsOpen;return _e("div",(0,r.Z)({ref:l,css:o("control",e),className:n({control:!0,"control--is-disabled":a,"control--is-focused":s,"control--menu-is-open":c},i)},u),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,o=e.cx,i=e.getStyles,a=e.innerProps;return _e("div",(0,r.Z)({css:i("dropdownIndicator",e),className:o({indicator:!0,
"dropdown-indicator":!0},n)},a),t||_e(xt,null))},DownChevron:xt,CrossIcon:wt,Group:function(e){var t=e.children,n=e.className,o=e.cx,i=e.getStyles,a=e.Heading,s=e.headingProps,l=e.innerProps,u=e.label,c=e.theme,f=e.selectProps;return _e("div",(0,r.Z)({css:i("group",e),className:o({group:!0},n)},l),_e(a,(0,r.Z)({},s,{selectProps:f,theme:c,getStyles:i,cx:o}),u),_e("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,o=e.className,i=Xe(e);i.data;var a=(0,Le.Z)(i,["data"]);return _e("div",
(0,r.Z)({css:t("groupHeading",e),className:n({"group-heading":!0},o)},a))},IndicatorsContainer:function(e){var t=e.children,n=e.className,o=e.cx,i=e.innerProps,a=e.getStyles;return _e("div",(0,r.Z)({css:a("indicatorsContainer",e),className:o({indicators:!0},n)},i),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,o=e.getStyles,i=e.innerProps;return _e("span",(0,r.Z)({},i,{css:o("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,
o=e.getStyles,i=Xe(e),a=i.innerRef,s=i.isDisabled,l=i.isHidden,u=(0,Le.Z)(i,["innerRef","isDisabled","isHidden"]);return _e("div",{css:o("input",e)},_e(Ie.Z,(0,r.Z)({className:n({input:!0},t),inputRef:a,inputStyle:Tt(l),disabled:s},u)))},LoadingIndicator:Mt,Menu:function(e){var t=e.children,n=e.className,o=e.cx,i=e.getStyles,a=e.innerRef,s=e.innerProps;return _e("div",(0,r.Z)({css:i("menu",e),className:o({menu:!0},n),ref:a},s),t)},MenuList:function(e){var t=e.children,n=e.className,o=e.cx,i=e.getStyles,
a=e.innerProps,s=e.innerRef,l=e.isMulti;return _e("div",(0,r.Z)({css:i("menuList",e),className:o({"menu-list":!0,"menu-list--is-multi":l},n),ref:s},a),t)},MenuPortal:vt,LoadingMessage:gt,NoOptionsMessage:ht,MultiValue:Dt,MultiValueContainer:At,MultiValueLabel:Pt,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return _e("div",n,t||_e(wt,{size:14}))},Option:function(e){var t=e.children,n=e.className,o=e.cx,i=e.getStyles,a=e.isDisabled,s=e.isFocused,l=e.isSelected,u=e.innerRef,c=e.innerProps;
return _e("div",(0,r.Z)({css:i("option",e),className:o({option:!0,"option--is-disabled":a,"option--is-focused":s,"option--is-selected":l},n),ref:u},c),t)},Placeholder:function(e){var t=e.children,n=e.className,o=e.cx,i=e.getStyles,a=e.innerProps;return _e("div",(0,r.Z)({css:i("placeholder",e),className:o({placeholder:!0},n)},a),t)},SelectContainer:function(e){var t=e.children,n=e.className,o=e.cx,i=e.getStyles,a=e.innerProps,s=e.isDisabled,l=e.isRtl;return _e("div",(0,r.Z)({css:i("container",e),className:o({"--is-disabled":s,
"--is-rtl":l},n)},a),t)},SingleValue:function(e){var t=e.children,n=e.className,o=e.cx,i=e.getStyles,a=e.isDisabled,s=e.innerProps;return _e("div",(0,r.Z)({css:i("singleValue",e),className:o({"single-value":!0,"single-value--is-disabled":a},n)},s),t)},ValueContainer:function(e){var t=e.children,n=e.className,o=e.cx,i=e.innerProps,a=e.isMulti,s=e.getStyles,l=e.hasValue;return _e("div",(0,r.Z)({css:s("valueContainer",e),className:o({"value-container":!0,"value-container--is-multi":a,"value-container--has-value":l},
n)},i),t)}},Rt=n(2982),Lt=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function jt(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||Lt(r)&&Lt(o)))return!1;var r,o;return!0}for(var It={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Ft=function(e){return _e("span",(0,r.Z)({css:It},e))},zt={guidance:function(e){var t=
e.isSearchable,n=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case "menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case "input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case "value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";
default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.isDisabled;switch(t){case "deselect-option":case "pop-value":case "remove-value":return"option ".concat(r,", deselected.");case "select-option":return"option ".concat(r,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=void 0===n?{}:n,o=e.options,i=e.label,a=void 0===i?"":i,s=e.selectValue,l=e.isDisabled,u=e.isSelected,c=function(e,t){return e&&
e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&s)return"value ".concat(a," focused, ").concat(c(s,r),".");if("menu"===t){var f=l?" disabled":"",d="".concat(u?"selected":"focused").concat(f);return"option ".concat(a," ").concat(d,", ").concat(c(o,r),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Ht=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,
a=e.isFocused,s=e.selectValue,l=e.selectProps,u=l.ariaLiveMessages,c=l.getOptionLabel,f=l.inputValue,d=l.isMulti,p=l.isOptionDisabled,h=l.isSearchable,g=l.menuIsOpen,m=l.options,v=l.screenReaderStatus,y=l.tabSelectsValue,b=l["aria-label"],w=l["aria-live"],x=(0,o.useMemo)(function(){return Ue(Ue({},zt),u||{})},[u]),k=(0,o.useMemo)(function(){var e,n="";if(t&&x.onChange){var r=t.option,o=t.removedValue,i=t.value,a=o||r||(e=i,Array.isArray(e)?null:e),s=Ue({isDisabled:a&&p(a),label:a?c(a):""},t);n=x.onChange(s)}return n},
[t,p,c,x]),S=(0,o.useMemo)(function(){var e="",t=n||r,o=!!(n&&s&&s.includes(n));if(t&&x.onFocus){var i={focused:t,label:c(t),isDisabled:p(t),isSelected:o,options:m,context:t===n?"menu":"value",selectValue:s};e=x.onFocus(i)}return e},[n,r,c,p,x,m,s]),C=(0,o.useMemo)(function(){var e="";if(g&&m.length&&x.onFilter){var t=v({count:i.length});e=x.onFilter({inputValue:f,resultsMessage:t})}return e},[i,f,g,x,m,v]),O=(0,o.useMemo)(function(){var e="";if(x.guidance){var t=r?"value":g?"menu":"input";e=x.guidance({"aria-label":b,
context:t,isDisabled:n&&p(n),isMulti:d,isSearchable:h,tabSelectsValue:y})}return e},[b,n,r,d,p,h,g,x,y]),E="".concat(S," ").concat(C," ").concat(O);return _e(Ft,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},a&&_e(o.Fragment,null,_e("span",{id:"aria-selection"},k),_e("span",{id:"aria-context"},E)))},Bt=[{base:"A",letters:"A\u24b6\uff21\u00c0\u00c1\u00c2\u1ea6\u1ea4\u1eaa\u1ea8\u00c3\u0100\u0102\u1eb0\u1eae\u1eb4\u1eb2\u0226\u01e0\u00c4\u01de\u1ea2\u00c5\u01fa\u01cd\u0200\u0202\u1ea0\u1eac\u1eb6\u1e00\u0104\u023a\u2c6f"},
{base:"AA",letters:"\ua732"},{base:"AE",letters:"\u00c6\u01fc\u01e2"},{base:"AO",letters:"\ua734"},{base:"AU",letters:"\ua736"},{base:"AV",letters:"\ua738\ua73a"},{base:"AY",letters:"\ua73c"},{base:"B",letters:"B\u24b7\uff22\u1e02\u1e04\u1e06\u0243\u0182\u0181"},{base:"C",letters:"C\u24b8\uff23\u0106\u0108\u010a\u010c\u00c7\u1e08\u0187\u023b\ua73e"},{base:"D",letters:"D\u24b9\uff24\u1e0a\u010e\u1e0c\u1e10\u1e12\u1e0e\u0110\u018b\u018a\u0189\ua779"},{base:"DZ",letters:"\u01f1\u01c4"},{base:"Dz",letters:"\u01f2\u01c5"},
{base:"E",letters:"E\u24ba\uff25\u00c8\u00c9\u00ca\u1ec0\u1ebe\u1ec4\u1ec2\u1ebc\u0112\u1e14\u1e16\u0114\u0116\u00cb\u1eba\u011a\u0204\u0206\u1eb8\u1ec6\u0228\u1e1c\u0118\u1e18\u1e1a\u0190\u018e"},{base:"F",letters:"F\u24bb\uff26\u1e1e\u0191\ua77b"},{base:"G",letters:"G\u24bc\uff27\u01f4\u011c\u1e20\u011e\u0120\u01e6\u0122\u01e4\u0193\ua7a0\ua77d\ua77e"},{base:"H",letters:"H\u24bd\uff28\u0124\u1e22\u1e26\u021e\u1e24\u1e28\u1e2a\u0126\u2c67\u2c75\ua78d"},{base:"I",letters:"I\u24be\uff29\u00cc\u00cd\u00ce\u0128\u012a\u012c\u0130\u00cf\u1e2e\u1ec8\u01cf\u0208\u020a\u1eca\u012e\u1e2c\u0197"},
{base:"J",letters:"J\u24bf\uff2a\u0134\u0248"},{base:"K",letters:"K\u24c0\uff2b\u1e30\u01e8\u1e32\u0136\u1e34\u0198\u2c69\ua740\ua742\ua744\ua7a2"},{base:"L",letters:"L\u24c1\uff2c\u013f\u0139\u013d\u1e36\u1e38\u013b\u1e3c\u1e3a\u0141\u023d\u2c62\u2c60\ua748\ua746\ua780"},{base:"LJ",letters:"\u01c7"},{base:"Lj",letters:"\u01c8"},{base:"M",letters:"M\u24c2\uff2d\u1e3e\u1e40\u1e42\u2c6e\u019c"},{base:"N",letters:"N\u24c3\uff2e\u01f8\u0143\u00d1\u1e44\u0147\u1e46\u0145\u1e4a\u1e48\u0220\u019d\ua790\ua7a4"},
{base:"NJ",letters:"\u01ca"},{base:"Nj",letters:"\u01cb"},{base:"O",letters:"O\u24c4\uff2f\u00d2\u00d3\u00d4\u1ed2\u1ed0\u1ed6\u1ed4\u00d5\u1e4c\u022c\u1e4e\u014c\u1e50\u1e52\u014e\u022e\u0230\u00d6\u022a\u1ece\u0150\u01d1\u020c\u020e\u01a0\u1edc\u1eda\u1ee0\u1ede\u1ee2\u1ecc\u1ed8\u01ea\u01ec\u00d8\u01fe\u0186\u019f\ua74a\ua74c"},{base:"OI",letters:"\u01a2"},{base:"OO",letters:"\ua74e"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24c5\uff30\u1e54\u1e56\u01a4\u2c63\ua750\ua752\ua754"},{base:"Q",
letters:"Q\u24c6\uff31\ua756\ua758\u024a"},{base:"R",letters:"R\u24c7\uff32\u0154\u1e58\u0158\u0210\u0212\u1e5a\u1e5c\u0156\u1e5e\u024c\u2c64\ua75a\ua7a6\ua782"},{base:"S",letters:"S\u24c8\uff33\u1e9e\u015a\u1e64\u015c\u1e60\u0160\u1e66\u1e62\u1e68\u0218\u015e\u2c7e\ua7a8\ua784"},{base:"T",letters:"T\u24c9\uff34\u1e6a\u0164\u1e6c\u021a\u0162\u1e70\u1e6e\u0166\u01ac\u01ae\u023e\ua786"},{base:"TZ",letters:"\ua728"},{base:"U",letters:"U\u24ca\uff35\u00d9\u00da\u00db\u0168\u1e78\u016a\u1e7a\u016c\u00dc\u01db\u01d7\u01d5\u01d9\u1ee6\u016e\u0170\u01d3\u0214\u0216\u01af\u1eea\u1ee8\u1eee\u1eec\u1ef0\u1ee4\u1e72\u0172\u1e76\u1e74\u0244"},
{base:"V",letters:"V\u24cb\uff36\u1e7c\u1e7e\u01b2\ua75e\u0245"},{base:"VY",letters:"\ua760"},{base:"W",letters:"W\u24cc\uff37\u1e80\u1e82\u0174\u1e86\u1e84\u1e88\u2c72"},{base:"X",letters:"X\u24cd\uff38\u1e8a\u1e8c"},{base:"Y",letters:"Y\u24ce\uff39\u1ef2\u00dd\u0176\u1ef8\u0232\u1e8e\u0178\u1ef6\u1ef4\u01b3\u024e\u1efe"},{base:"Z",letters:"Z\u24cf\uff3a\u0179\u1e90\u017b\u017d\u1e92\u1e94\u01b5\u0224\u2c7f\u2c6b\ua762"},{base:"a",letters:"a\u24d0\uff41\u1e9a\u00e0\u00e1\u00e2\u1ea7\u1ea5\u1eab\u1ea9\u00e3\u0101\u0103\u1eb1\u1eaf\u1eb5\u1eb3\u0227\u01e1\u00e4\u01df\u1ea3\u00e5\u01fb\u01ce\u0201\u0203\u1ea1\u1ead\u1eb7\u1e01\u0105\u2c65\u0250"},
{base:"aa",letters:"\ua733"},{base:"ae",letters:"\u00e6\u01fd\u01e3"},{base:"ao",letters:"\ua735"},{base:"au",letters:"\ua737"},{base:"av",letters:"\ua739\ua73b"},{base:"ay",letters:"\ua73d"},{base:"b",letters:"b\u24d1\uff42\u1e03\u1e05\u1e07\u0180\u0183\u0253"},{base:"c",letters:"c\u24d2\uff43\u0107\u0109\u010b\u010d\u00e7\u1e09\u0188\u023c\ua73f\u2184"},{base:"d",letters:"d\u24d3\uff44\u1e0b\u010f\u1e0d\u1e11\u1e13\u1e0f\u0111\u018c\u0256\u0257\ua77a"},{base:"dz",letters:"\u01f3\u01c6"},{base:"e",
letters:"e\u24d4\uff45\u00e8\u00e9\u00ea\u1ec1\u1ebf\u1ec5\u1ec3\u1ebd\u0113\u1e15\u1e17\u0115\u0117\u00eb\u1ebb\u011b\u0205\u0207\u1eb9\u1ec7\u0229\u1e1d\u0119\u1e19\u1e1b\u0247\u025b\u01dd"},{base:"f",letters:"f\u24d5\uff46\u1e1f\u0192\ua77c"},{base:"g",letters:"g\u24d6\uff47\u01f5\u011d\u1e21\u011f\u0121\u01e7\u0123\u01e5\u0260\ua7a1\u1d79\ua77f"},{base:"h",letters:"h\u24d7\uff48\u0125\u1e23\u1e27\u021f\u1e25\u1e29\u1e2b\u1e96\u0127\u2c68\u2c76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24d8\uff49\u00ec\u00ed\u00ee\u0129\u012b\u012d\u00ef\u1e2f\u1ec9\u01d0\u0209\u020b\u1ecb\u012f\u1e2d\u0268\u0131"},
{base:"j",letters:"j\u24d9\uff4a\u0135\u01f0\u0249"},{base:"k",letters:"k\u24da\uff4b\u1e31\u01e9\u1e33\u0137\u1e35\u0199\u2c6a\ua741\ua743\ua745\ua7a3"},{base:"l",letters:"l\u24db\uff4c\u0140\u013a\u013e\u1e37\u1e39\u013c\u1e3d\u1e3b\u017f\u0142\u019a\u026b\u2c61\ua749\ua781\ua747"},{base:"lj",letters:"\u01c9"},{base:"m",letters:"m\u24dc\uff4d\u1e3f\u1e41\u1e43\u0271\u026f"},{base:"n",letters:"n\u24dd\uff4e\u01f9\u0144\u00f1\u1e45\u0148\u1e47\u0146\u1e4b\u1e49\u019e\u0272\u0149\ua791\ua7a5"},{base:"nj",
letters:"\u01cc"},{base:"o",letters:"o\u24de\uff4f\u00f2\u00f3\u00f4\u1ed3\u1ed1\u1ed7\u1ed5\u00f5\u1e4d\u022d\u1e4f\u014d\u1e51\u1e53\u014f\u022f\u0231\u00f6\u022b\u1ecf\u0151\u01d2\u020d\u020f\u01a1\u1edd\u1edb\u1ee1\u1edf\u1ee3\u1ecd\u1ed9\u01eb\u01ed\u00f8\u01ff\u0254\ua74b\ua74d\u0275"},{base:"oi",letters:"\u01a3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\ua74f"},{base:"p",letters:"p\u24df\uff50\u1e55\u1e57\u01a5\u1d7d\ua751\ua753\ua755"},{base:"q",letters:"q\u24e0\uff51\u024b\ua757\ua759"},
{base:"r",letters:"r\u24e1\uff52\u0155\u1e59\u0159\u0211\u0213\u1e5b\u1e5d\u0157\u1e5f\u024d\u027d\ua75b\ua7a7\ua783"},{base:"s",letters:"s\u24e2\uff53\u00df\u015b\u1e65\u015d\u1e61\u0161\u1e67\u1e63\u1e69\u0219\u015f\u023f\ua7a9\ua785\u1e9b"},{base:"t",letters:"t\u24e3\uff54\u1e6b\u1e97\u0165\u1e6d\u021b\u0163\u1e71\u1e6f\u0167\u01ad\u0288\u2c66\ua787"},{base:"tz",letters:"\ua729"},{base:"u",letters:"u\u24e4\uff55\u00f9\u00fa\u00fb\u0169\u1e79\u016b\u1e7b\u016d\u00fc\u01dc\u01d8\u01d6\u01da\u1ee7\u016f\u0171\u01d4\u0215\u0217\u01b0\u1eeb\u1ee9\u1eef\u1eed\u1ef1\u1ee5\u1e73\u0173\u1e77\u1e75\u0289"},
{base:"v",letters:"v\u24e5\uff56\u1e7d\u1e7f\u028b\ua75f\u028c"},{base:"vy",letters:"\ua761"},{base:"w",letters:"w\u24e6\uff57\u1e81\u1e83\u0175\u1e87\u1e85\u1e98\u1e89\u2c73"},{base:"x",letters:"x\u24e7\uff58\u1e8b\u1e8d"},{base:"y",letters:"y\u24e8\uff59\u1ef3\u00fd\u0177\u1ef9\u0233\u1e8f\u00ff\u1ef7\u1e99\u1ef5\u01b4\u024f\u1eff"},{base:"z",letters:"z\u24e9\uff5a\u017a\u1e91\u017c\u017e\u1e93\u1e95\u01b6\u0225\u0240\u2c6c\ua763"}],Vt=new RegExp("["+Bt.map(function(e){return e.letters}).join("")+
"]","g"),Wt={},$t=0;$t<Bt.length;$t++)for(var Ut=Bt[$t],qt=0;qt<Ut.letters.length;qt++)Wt[Ut.letters[qt]]=Ut.base;var Zt=function(e){return e.replace(Vt,function(e){return Wt[e]})},Kt=function(e,t){var n;void 0===t&&(t=jt);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}(Zt),Yt=function(e){return e.replace(/^\s+|\s+$/g,"")},Gt=function(e){return"".concat(e.label," ").concat(e.value)};function Jt(e){e.in,
e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef;e.emotion;var n=(0,Le.Z)(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]);return _e("input",(0,r.Z)({ref:t},n,{css:Ae({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"","")}))}var Xt=["boxSizing","height","overflow","paddingRight","position"],Qt={boxSizing:"border-box",overflow:"hidden",position:"relative",
height:"100%"};function en(e){e.preventDefault()}function tn(e){e.stopPropagation()}function nn(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function rn(){return"ontouchstart"in window||navigator.maxTouchPoints}var on=!("undefined"==typeof window||!window.document||!window.document.createElement),an=0,sn={capture:!1,passive:!1},ln=function(){return document.activeElement&&document.activeElement.blur()},un={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};
function cn(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,s=(0,o.useRef)(!1),l=(0,o.useRef)(!1),u=(0,o.useRef)(0),c=(0,o.useRef)(null),f=(0,o.useCallback)(function(e,t){if(null!==c.current){var o=c.current,u=o.scrollTop,f=o.scrollHeight,d=o.clientHeight,p=c.current,h=t>0,g=f-d-u,m=!1;g>t&&s.current&&(r&&r(e),s.current=!1),h&&l.current&&(a&&a(e),l.current=!1),h&&t>g?(n&&!s.current&&n(e),p.scrollTop=
f,m=!0,s.current=!0):!h&&-t>u&&(i&&!l.current&&i(e),p.scrollTop=0,m=!0,l.current=!0),m&&function(e){e.preventDefault(),e.stopPropagation()}(e)}},[]),d=(0,o.useCallback)(function(e){f(e,e.deltaY)},[f]),p=(0,o.useCallback)(function(e){u.current=e.changedTouches[0].clientY},[]),h=(0,o.useCallback)(function(e){var t=u.current-e.changedTouches[0].clientY;f(e,t)},[f]),g=(0,o.useCallback)(function(e){if(e){var t=!!st&&{passive:!1};"function"==typeof e.addEventListener&&e.addEventListener("wheel",d,t),"function"==
typeof e.addEventListener&&e.addEventListener("touchstart",p,t),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",h,t)}},[h,p,d]),m=(0,o.useCallback)(function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",d,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",p,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",h,!1))},[h,p,d]);return(0,o.useEffect)(function(){if(t){var e=c.current;return g(e),
function(){m(e)}}},[t,g,m]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=(0,o.useRef)({}),a=(0,o.useRef)(null),s=(0,o.useCallback)(function(e){if(on){var t=document.body,n=t&&t.style;if(r&&Xt.forEach(function(e){var t=n&&n[e];i.current[e]=t}),r&&an<1){var o=parseInt(i.current.paddingRight,10)||0,a=document.body?
document.body.clientWidth:0,s=window.innerWidth-a+o||0;Object.keys(Qt).forEach(function(e){var t=Qt[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(s,"px"))}t&&rn()&&(t.addEventListener("touchmove",en,sn),e&&(e.addEventListener("touchstart",nn,sn),e.addEventListener("touchmove",tn,sn))),an+=1}},[]),l=(0,o.useCallback)(function(e){if(on){var t=document.body,n=t&&t.style;an=Math.max(an-1,0),r&&an<1&&Xt.forEach(function(e){var t=i.current[e];n&&(n[e]=t)}),t&&rn()&&(t.removeEventListener("touchmove",en,
sn),e&&(e.removeEventListener("touchstart",nn,sn),e.removeEventListener("touchmove",tn,sn)))}},[]);return(0,o.useEffect)(function(){if(t){var e=a.current;return s(e),function(){l(e)}}},[t,s,l]),function(e){a.current=e}}({isEnabled:n});return _e(o.Fragment,null,n&&_e("div",{onClick:ln,css:un}),t(function(e){i(e),a(e)}))}var fn={clearIndicator:Ct,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=
e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?
o.primary:o.neutral30}}},dropdownIndicator:St,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},
indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,
i=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:pt,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,i=r.spacing,a=r.colors;return t={label:"menu"},(0,Be.Z)(t,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),(0,Be.Z)(t,"backgroundColor",a.neutral0),(0,Be.Z)(t,
"borderRadius",o),(0,Be.Z)(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),(0,Be.Z)(t,"marginBottom",i.menuGutter),(0,Be.Z)(t,"marginTop",i.menuGutter),(0,Be.Z)(t,"position","absolute"),(0,Be.Z)(t,"width","100%"),(0,Be.Z)(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,
r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},
multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:dt,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,i=o.spacing,a=o.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:
r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;
return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",
overflow:"hidden"}}},dn={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,
menuGutter:8}},pn={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:rt(),captureMenuScroll:!rt(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=Ue({ignoreCase:!0,ignoreAccents:!0,stringify:Gt,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,l=a?Yt(t):t,u=a?Yt(i(e)):i(e);return r&&(l=l.toLowerCase(),u=u.toLowerCase()),o&&(l=Kt(l),u=Zt(u)),"start"===
s?u.substr(0,l.length)===l:u.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),
noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0};function hn(e,t,n,r){return{type:"option",data:t,isDisabled:wn(e,t,n),isSelected:xn(e,t,n),label:yn(e,t),value:bn(e,t),index:r}}function gn(e,t){return e.options.map(function(n,r){if(n.options){var o=n.options.map(function(n,
r){return hn(e,n,t,r)}).filter(function(t){return vn(e,t)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=hn(e,n,t,r);return vn(e,i)?i:void 0}).filter(function(e){return!!e})}function mn(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,(0,Rt.Z)(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function vn(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!Sn(e)||!i)&&kn(e,{label:a,value:s,data:o},
r)}var yn=function(e,t){return e.getOptionLabel(t)},bn=function(e,t){return e.getOptionValue(t)};function wn(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function xn(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=bn(e,t);return n.some(function(t){return bn(e,t)===r})}function kn(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Sn=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===
t?n:t},Cn=1,On=function(e){(0,He.Z)(n,e);var t=Ze(n);function n(e){var r;return(0,Fe.Z)(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=
null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",n=arguments.length>
2?arguments[2]:void 0,o=r.props,i=o.closeMenuOnSelect,a=o.isMulti;r.onInputChange("",{action:"set-value"}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,s=o&&r.isOptionSelected(e,a),l=r.isOptionDisabled(e,a);if(s){var u=r.getOptionValue(e);r.setValue(a.filter(function(e){return r.getOptionValue(e)!==u}),
"deselect-option",e)}else{if(l)return void r.ariaOnChange(e,{action:"select-option",name:i});o?r.setValue([].concat((0,Rt.Z)(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter(function(e){return r.getOptionValue(e)!==o}),a=t?i:i[0]||null;r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(r.props.isMulti?
[]:null,{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=e?o:o[0]||null;r.onChange(i,{action:"pop-value",removedValue:n})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ge.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return yn(r.props,e)},r.getOptionValue=function(e){return bn(r.props,
e)},r.getStyles=function(e,t){var n=fn[e](t);n.boxSizing="border-box";var o=r.props.styles[e];return o?o(n,t):n},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,Ue(Ue({},Nt),e.components);var e},r.buildCategorizedOptions=function(){return gn(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return mn(r.buildCategorizedOptions())},
r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:Ue({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):
(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault(),e.stopPropagation()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),
e.stopPropagation(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Qe(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=
t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||
r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(t,{action:"input-change"}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),
(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur"}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return Sn(r.props)},r.onKeyDown=
function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown,f=t.tabSelectsValue,d=t.openMenuOnFocus,p=r.state,h=p.focusedOption,g=p.focusedValue,m=p.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case "ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case "ArrowRight":if(!n||a)return;r.focusValue("next");break;case "Delete":case "Backspace":if(a)return;
if(g)r.removeValue(g);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case "Tab":if(r.isComposing)return;if(e.shiftKey||!u||!f||!h||d&&r.isOptionSelected(h,m))return;r.selectOption(h);break;case "Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case "Escape":u?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close"}),r.onMenuClose()):s&&i&&r.clearValue();break;case " ":if(a)return;if(!u){r.openMenu("first");
break}if(!h)return;r.selectOption(h);break;case "ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case "ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case "PageUp":if(!u)return;r.focusOption("pageup");break;case "PageDown":if(!u)return;r.focusOption("pagedown");break;case "Home":if(!u)return;r.focusOption("first");break;case "End":if(!u)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++Cn),r.state.selectValue=
Je(e.value),r}return(0,ze.Z)(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,i,a=this.props,s=a.isDisabled,l=a.menuIsOpen,u=this.state.isFocused;(u&&!s&&e.isDisabled||u&&l&&!e.menuIsOpen)&&this.focusInput(),u&&s&&!e.isDisabled&&
this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),i=n.offsetHeight/3,o.bottom+i>r.bottom?tt(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+i,t.scrollHeight)):o.top-i<r.top&&tt(t,Math.max(n.offsetTop-i,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),
this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=
this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a]},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);
r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case "previous":a=0===o?0:-1===o?i:o-1;break;case "next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&
(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(dn):Ue(Ue({},dn),this.props.theme):dn}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.selectOption,i=this.setValue,a=this.props,s=a.isMulti,l=a.isRtl,
u=a.options;return{clearValue:e,cx:t,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:u,selectOption:o,selectProps:a,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return wn(this.props,
e,t)}},{key:"isOptionSelected",value:function(e,t){return xn(this.props,e,t)}},{key:"filterOption",value:function(e,t){return kn(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",
value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&
(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=
e.isDisabled,n=e.isSearchable,i=e.inputId,a=e.inputValue,s=e.tabIndex,l=e.form,u=this.getComponents().Input,c=this.state.inputIsHidden,f=this.commonProps,d=i||this.getElementId("input"),p={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};return n?o.createElement(u,(0,r.Z)({},f,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:d,innerRef:this.getInputRef,isDisabled:t,isHidden:c,onBlur:this.onInputBlur,onChange:this.handleInputChange,
onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:l,type:"text",value:a},p)):o.createElement(Jt,(0,r.Z)({id:d,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ke,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:s,form:l,value:""},p))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,i=t.MultiValueContainer,a=t.MultiValueLabel,s=t.MultiValueRemove,l=t.SingleValue,u=t.Placeholder,c=this.commonProps,f=this.props,d=f.controlShouldRenderValue,
p=f.isDisabled,h=f.isMulti,g=f.inputValue,m=f.placeholder,v=this.state,y=v.selectValue,b=v.focusedValue,w=v.isFocused;if(!this.hasValue()||!d)return g?null:o.createElement(u,(0,r.Z)({},c,{key:"placeholder",isDisabled:p,isFocused:w}),m);if(h){var x=y.map(function(t,l){var u=t===b;return o.createElement(n,(0,r.Z)({},c,{components:{Container:i,Label:a,Remove:s},isFocused:u,isDisabled:p,key:"".concat(e.getOptionValue(t)).concat(l),index:l,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},
onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))});return x}if(g)return null;var k=y[0];return o.createElement(l,(0,r.Z)({},c,{data:k,isDisabled:p}),this.formatOptionLabel(k,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,a=n.isLoading,s=this.state.isFocused;if(!this.isClearable()||!e||i||!this.hasValue()||a)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,
onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,(0,r.Z)({},t,{innerProps:l,isFocused:s}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,a=n.isLoading,s=this.state.isFocused;return e&&a?o.createElement(e,(0,r.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:s})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,
n=e.IndicatorSeparator;if(!t||!n)return null;var i=this.commonProps,a=this.props.isDisabled,s=this.state.isFocused;return o.createElement(n,(0,r.Z)({},i,{isDisabled:a,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,i=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,
(0,r.Z)({},t,{innerProps:a,isDisabled:n,isFocused:i}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,i=t.GroupHeading,a=t.Menu,s=t.MenuList,l=t.MenuPortal,u=t.LoadingMessage,c=t.NoOptionsMessage,f=t.Option,d=this.commonProps,p=this.state.focusedOption,h=this.props,g=h.captureMenuScroll,m=h.inputValue,v=h.isLoading,y=h.loadingMessage,b=h.minMenuHeight,w=h.maxMenuHeight,x=h.menuIsOpen,k=h.menuPlacement,S=h.menuPosition,C=h.menuPortalTarget,O=h.menuShouldBlockScroll,
E=h.menuShouldScrollIntoView,M=h.noOptionsMessage,T=h.onMenuScrollToTop,_=h.onMenuScrollToBottom;if(!x)return null;var A,P=function(t,n){var i=t.type,a=t.data,s=t.isDisabled,l=t.isSelected,u=t.label,c=t.value,h=p===a,g=s?void 0:function(){return e.onOptionHover(a)},m=s?void 0:function(){return e.selectOption(a)},v="".concat(e.getElementId("option"),"-").concat(n),y={id:v,onClick:m,onMouseMove:g,onMouseOver:g,tabIndex:-1};return o.createElement(f,(0,r.Z)({},d,{innerProps:y,data:a,isDisabled:s,isSelected:l,
key:v,label:u,type:i,value:c,isFocused:h,innerRef:h?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())A=this.getCategorizedOptions().map(function(t){if("group"===t.type){var a=t.data,s=t.options,l=t.index,u="".concat(e.getElementId("group"),"-").concat(l),c="".concat(u,"-heading");return o.createElement(n,(0,r.Z)({},d,{key:u,data:a,options:s,Heading:i,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return P(e,"".concat(l,
"-").concat(e.index))}))}if("option"===t.type)return P(t,"".concat(t.index))});else if(v){var D=y({inputValue:m});if(null===D)return null;A=o.createElement(u,d,D)}else{var N=M({inputValue:m});if(null===N)return null;A=o.createElement(c,d,N)}var R={minMenuHeight:b,maxMenuHeight:w,menuPlacement:k,menuPosition:S,menuShouldScrollIntoView:E},L=o.createElement(ct,(0,r.Z)({},d,R),function(t){var n=t.ref,i=t.placerProps,l=i.placement,u=i.maxHeight;return o.createElement(a,(0,r.Z)({},d,R,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,
onMouseMove:e.onMenuMouseMove},isLoading:v,placement:l}),o.createElement(cn,{captureEnabled:g,onTopArrive:T,onBottomArrive:_,lockEnabled:O},function(t){return o.createElement(s,(0,r.Z)({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:v,maxHeight:u,focusedOption:p}),A)}))});return C||"fixed"===S?o.createElement(l,(0,r.Z)({},d,{appendTo:C,controlElement:this.controlRef,menuPlacement:k,menuPosition:S}),L):L}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,
r=t.isDisabled,i=t.isMulti,a=t.name,s=this.state.selectValue;if(a&&!r){if(i){if(n){var l=s.map(function(t){return e.getOptionValue(t)}).join(n);return o.createElement("input",{name:a,type:"hidden",value:l})}var u=s.length>0?s.map(function(t,n){return o.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})}):o.createElement("input",{name:a,type:"hidden"});return o.createElement("div",null,u)}var c=s[0]?this.getOptionValue(s[0]):"";return o.createElement("input",
{name:a,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,i=t.focusedOption,a=t.focusedValue,s=t.isFocused,l=t.selectValue,u=this.getFocusableOptions();return o.createElement(Ht,(0,r.Z)({},e,{ariaSelection:n,focusedOption:i,focusedValue:a,isFocused:s,selectValue:l,focusableOptions:u}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,i=e.SelectContainer,a=e.ValueContainer,s=this.props,
l=s.className,u=s.id,c=s.isDisabled,f=s.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return o.createElement(i,(0,r.Z)({},p,{className:l,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),o.createElement(t,(0,r.Z)({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:f}),o.createElement(a,(0,r.Z)({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),
this.renderInput()),o.createElement(n,(0,r.Z)({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=e.options,a=e.value,s=e.menuIsOpen,l=e.inputValue,u={};if(n&&(a!==n.value||i!==n.options||s!==n.menuIsOpen||l!==n.inputValue)){var c=Je(a),
f=s?function(e,t){return mn(gn(e,t))}(e,c):[],d=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,c):null,p=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,f);u={selectValue:c,focusedOption:p,focusedValue:d,clearFocusValueOnUpdate:!1}}var h=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{};return Ue(Ue(Ue({},u),h),{},{prevProps:e})}}]),n}(o.Component);On.defaultProps=
pn;var En,Mn,Tn,_n=(En=On,Tn=Mn=function(e){(0,He.Z)(n,e);var t=Ze(n);function n(){var e;(0,Fe.Z)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",
t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==r?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return(0,ze.Z)(n,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},
{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var e=this,t=this.props;t.defaultInputValue,t.defaultMenuIsOpen,t.defaultValue;var n=(0,Le.Z)(t,["defaultInputValue","defaultMenuIsOpen","defaultValue"]);return o.createElement(En,(0,r.Z)({},n,{ref:function(t){e.select=t},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),
onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),n}(o.Component),Mn.defaultProps={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},Tn);const An=_n},6311:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.isBrowser=void 0;var r=a(n(7294)),o=a(n(5697)),i=a(n(3935));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="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},s(e)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}var c="function"==typeof i.default.createPortal,f="undefined"!=typeof window;t.isBrowser=f;var d=function(e){function t(e){var n;
return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,t),n=function(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,l(t).call(this,e)),f&&(n.container=document.createElement("div"),document.body.appendChild(n.container),n.renderLayer()),n}var n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,e),(n=[{key:"componentDidUpdate",value:function(){this.renderLayer()}},{key:"componentWillUnmount",value:function(){c||i.default.unmountComponentAtNode(this.container),document.body.removeChild(this.container)}},{key:"renderLayer",value:function(){c||i.default.unstable_renderSubtreeIntoContainer(this,this.props.children,this.container)}},{key:"render",value:function(){return c?i.default.createPortal(this.props.children,
this.container):null}}])&&function(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)}}(t.prototype,n),t}(r.default.Component);d.propTypes={children:o.default.node.isRequired};var p=d;t.default=p},9573:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getScrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},t.getScrollLeft=function(){return window.pageXOffset||
document.documentElement.scrollLeft||document.body.scrollLeft||0},t.getArrowSpacing=function(e){var t=e.arrow?e.arrowSize:n;return"number"==typeof e.distance?e.distance:t},t.getScrollParent=function(e){var t=getComputedStyle(e),n=window;if("fixed"!==t.position)for(var r=e.parentElement;r;){var o=getComputedStyle(r);/(auto|scroll)/.test(o.overflow+o.overflowY+o.overflowX)?(n=r,r=void 0):r=r.parentElement}return n},t.noArrowDistance=t.bodyPadding=t.minArrowPadding=void 0,t.minArrowPadding=5,t.bodyPadding=
10;var n=3;t.noArrowDistance=n},3622:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n,s,l,u,c,f){if(!s)return t;var d=s.getBoundingClientRect(),p=(0,r.getArrowSpacing)(l),h=n.offsetHeight+p+u,g=window.innerHeight-d.bottom>=h,m=d.top>=h;switch(t){case "right":return o(n,s,p,u)&&i(s,n,l)?document.documentElement.clientWidth-d.right<n.offsetWidth+p+u?"left":"right":e("up",n,s,p,u,c,!0);case "left":return o(n,s,p,u)&&i(s,n,l)?d.left<n.offsetWidth+p+u?"right":"left":
e("up",n,s,p,u,c,!0);case "up":if(!f&&c&&a(l,c,u))return e("left",n,s,p,u,c,!0);if(!m){if(g)return"down";if(!f&&o(n,s,p,u))return e("right",n,s,p,u,c,!0)}return"up";default:if(!f&&c&&a(l,c,u))return e("right",n,s,p,u,c,!0);if(!g){if(m)return"up";if(!f&&o(n,s,p,u))return e("right",n,s,p,u,c,!0)}return"down"}};var r=n(9573);function o(e,t,n,r){var o=t.getBoundingClientRect(),i=Math.min(o.left,document.documentElement.clientWidth-o.right);return e.offsetWidth+t.offsetWidth+n+r+i<document.documentElement.clientWidth}
function i(e,t,n){var o=e.getBoundingClientRect(),i=o.bottom>window.innerHeight,a=o.top<0;if(a&&i)return!0;if(e.offsetHeight>t.offsetHeight){var s=e.offsetHeight/2,l=n.arrowSize+r.minArrowPadding,u=o.bottom-window.innerHeight,c=-o.top;return s-u>=l&&s-c>=l}return!i&&!a}function a(e,t,n){var o=(0,r.getScrollLeft)(),i=t.positionStyles.left-o>n,a=t.positionStyles.left+2*e.arrowSize<o+document.documentElement.clientWidth-n;return!i||!a}},8239:(e,t,n)=>{t.Z=void 0;var r=l(n(7294)),o=l(n(5697)),i=function(e){if(e&&
e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(6311)),a=l(n(3233)),s=n(9573);function l(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="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},u(e)}function c(){return c=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},c.apply(this,arguments)}function f(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){v(e,t,n[t])})}return e}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}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&&
h(e.prototype,t),n&&h(e,n),e}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y="#333",b=function(e){return e.stopPropagation()},w=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,t),e=function(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?
p(e):t}(this,d(t).call(this)),v(p(e),"debounceTimeout",!1),v(p(e),"hoverTimeout",!1),e.state={showTip:!1,hasHover:!1,ignoreShow:!1,hasBeenShown:!1},e.showTip=e.showTip.bind(p(e)),e.hideTip=e.hideTip.bind(p(e)),e.checkHover=e.checkHover.bind(p(e)),e.toggleTip=e.toggleTip.bind(p(e)),e.startHover=e.startHover.bind(p(e)),e.endHover=e.endHover.bind(p(e)),e.listenResizeScroll=e.listenResizeScroll.bind(p(e)),e.handleResizeScroll=e.handleResizeScroll.bind(p(e)),e.bodyTouchStart=e.bodyTouchStart.bind(p(e)),
e.bodyTouchEnd=e.bodyTouchEnd.bind(p(e)),e.targetTouchStart=e.targetTouchStart.bind(p(e)),e.targetTouchEnd=e.targetTouchEnd.bind(p(e)),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(t,e),g(t,null,[{key:"getDerivedStateFromProps",value:function(e){return i.isBrowser&&e.isOpen?{hasBeenShown:!0}:null}}]),g(t,[{key:"componentDidMount",
value:function(){this.props.isOpen&&this.setState({isOpen:!0}),this.scrollParent=(0,s.getScrollParent)(this.target),window.addEventListener("resize",this.listenResizeScroll),this.scrollParent.addEventListener("scroll",this.listenResizeScroll),window.addEventListener("touchstart",this.bodyTouchStart),window.addEventListener("touchEnd",this.bodyTouchEnd)}},{key:"componentDidUpdate",value:function(e,t){if(!this.state.hasBeenShown&&this.props.isOpen)return this.setState({hasBeenShown:!0}),setTimeout(this.showTip,
0);!t.hasBeenShown&&this.state.hasBeenShown&&this.showTip()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.listenResizeScroll),this.scrollParent.removeEventListener("scroll",this.listenResizeScroll),window.removeEventListener("touchstart",this.bodyTouchStart),window.removeEventListener("touchEnd",this.bodyTouchEnd),clearTimeout(this.debounceTimeout),clearTimeout(this.hoverTimeout)}},{key:"listenResizeScroll",value:function(){clearTimeout(this.debounceTimeout),
this.debounceTimeout=setTimeout(this.handleResizeScroll,100),this.state.targetTouch&&this.setState({targetTouch:void 0})}},{key:"handleResizeScroll",value:function(){if(this.state.showTip){var e=5*Math.round(document.documentElement.clientWidth/5);this.setState({clientWidth:e})}}},{key:"targetTouchStart",value:function(){this.setState({targetTouch:!0})}},{key:"targetTouchEnd",value:function(){this.state.targetTouch&&this.toggleTip()}},{key:"bodyTouchEnd",value:function(){this.state.targetTouch&&this.setState({targetTouch:void 0})}},
{key:"bodyTouchStart",value:function(e){this.target&&this.target.contains(e.target)||this.tip&&this.tip.contains(e.target)||this.props.isOpen||this.hideTip()}},{key:"toggleTip",value:function(){this.state.showTip?this.hideTip():this.showTip()}},{key:"showTip",value:function(){var e=this;if(!this.state.hasBeenShown)return this.setState({hasBeenShown:!0});this.state.showTip||this.setState({showTip:!0},function(){"function"==typeof e.props.onToggle&&e.props.onToggle(e.state.showTip)})}},{key:"hideTip",
value:function(){var e=this;this.setState({hasHover:!1}),this.state.showTip&&this.setState({showTip:!1},function(){"function"==typeof e.props.onToggle&&e.props.onToggle(e.state.showTip)})}},{key:"startHover",value:function(){this.state.ignoreShow||(this.setState({hasHover:!0}),clearTimeout(this.hoverTimeout),this.hoverTimeout=setTimeout(this.checkHover,this.props.hoverDelay))}},{key:"endHover",value:function(){this.setState({hasHover:!1}),clearTimeout(this.hoverTimeout),this.hoverTimeout=setTimeout(this.checkHover,
this.props.mouseOutDelay||this.props.hoverDelay)}},{key:"checkHover",value:function(){this.state.hasHover?this.showTip():this.hideTip()}},{key:"render",value:function(){var e,t=this,n=this.props,o=n.arrow,s=n.arrowSize,l=n.background,u=n.className,d=n.children,p=n.color,h=n.content,g=n.direction,m=n.distance,v=n.eventOff,w=n.eventOn,x=n.eventToggle,k=n.forceDirection,S=n.isOpen,C=n.mouseOutDelay,O=n.padding,E=n.styles,M=n.tagName,T=n.tipContentHover,_=n.tipContentClassName,A=n.useDefaultStyles,P=
n.useHover,D=n.arrowContent,N=null!=S,R=N?S:this.state.showTip,L={style:f({position:"relative"},E),ref:function(e){t.target=e},className:u},j={onClick:b};if(v&&(L[v]=this.hideTip),w&&(L[w]=this.showTip),x?L[x]=this.toggleTip:P&&!N&&(L.onMouseEnter=this.startHover,L.onMouseLeave=T||C?this.endHover:this.hideTip,L.onTouchStart=this.targetTouchStart,L.onTouchEnd=this.targetTouchEnd,T&&(j.onMouseEnter=this.startHover,j.onMouseLeave=this.endHover,j.onTouchStart=b)),this.state.hasBeenShown){window.jpbTooltipThisTarget=
this.target;var I=(0,a.default)(g,k,this.tip,this.target,f({},this.state,{showTip:R}),{background:A?y:l,arrow:o,arrowSize:s,distance:m}),F=f({},I.tip,{background:A?y:l,color:A?"#fff":p,padding:O,boxSizing:"border-box",zIndex:this.props.zIndex,position:"absolute",display:"inline-block"}),z=f({},I.arrow.positionStyles,D?{}:I.arrow.borderStyles,{position:"absolute",width:"0px",height:"0px",zIndex:this.props.zIndex+1});e=r.default.createElement(i.default,null,r.default.createElement("div",c({},j,{className:void 0!==
_?_:u}),r.default.createElement("span",{className:"react-tooltip-lite",style:F,ref:function(e){var targetElement=window.jpbTooltipThisTarget;var spanBuilder=targetElement.querySelector("span.builder-addon-title");if(spanBuilder){var spanTitle=spanBuilder.getAttribute("data-title");if(e&&spanTitle)e.innerText=`${spanTitle}`}t.tip=e}},h),r.default.createElement("span",{className:"react-tooltip-lite-arrow react-tooltip-lite-".concat(I.realDirection,"-arrow"),style:z},D)))}return r.default.createElement(M,
L,d,e)}}]),t}(r.default.Component);v(w,"propTypes",{arrow:o.default.bool,arrowSize:o.default.number,background:o.default.string,children:o.default.node.isRequired,className:o.default.string,color:o.default.string,content:o.default.node.isRequired,direction:o.default.string,distance:o.default.number,eventOff:o.default.string,eventOn:o.default.string,eventToggle:o.default.string,forceDirection:o.default.bool,hoverDelay:o.default.number,isOpen:o.default.bool,mouseOutDelay:o.default.number,padding:o.default.oneOfType([o.default.string,
o.default.number]),styles:o.default.object,tagName:o.default.string,tipContentHover:o.default.bool,tipContentClassName:o.default.string,useDefaultStyles:o.default.bool,useHover:o.default.bool,zIndex:o.default.number,onToggle:o.default.func,arrowContent:o.default.node}),v(w,"defaultProps",{arrow:!0,arrowSize:10,background:"",className:"",color:"",direction:"up",distance:void 0,eventOff:void 0,eventOn:void 0,eventToggle:void 0,forceDirection:!1,hoverDelay:200,isOpen:void 0,mouseOutDelay:void 0,padding:"10px",
styles:{},tagName:"div",tipContentHover:!1,tipContentClassName:void 0,useDefaultStyles:!1,useHover:!0,zIndex:1E3,onToggle:void 0,arrowContent:null});var x=w;t.Z=x},3233:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,s,d){var p=function(e){var t=e.split("-");return t.length>1?t[1]:"middle"}(e),h=e.split("-")[0],g=h;if(!t&&n){var m=d.arrow&&f(r,n,h,s,d);g=(0,o.default)(h,n,r,d,i.bodyPadding,m)}var v,y=l();if(n){var b=n.style.width?0:1;v=Math.min(n.offsetWidth,
y)+b}return{tip:a({},"up"===g||"down"===g?u(n,r,s,g,p,d):c(n,r,s,g,p,d),{maxWidth:y,width:v}),arrow:f(r,n,g,s,d),realDirection:g}};var r,o=(r=n(3622))&&r.__esModule?r:{default:r},i=n(9573);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}function l(){return"undefined"!=typeof document?document.documentElement.clientWidth-2*i.bodyPadding:1E3}function u(e,t,n,r,o,a){var s,u=-1E7,c=n.showTip?void 0:"translateX(-10000000px)",f=(0,i.getArrowSpacing)(a);if(e){var d=(0,i.getScrollLeft)(),p=t.getBoundingClientRect(),h=p.left+d,g=Math.round(t.offsetWidth/2),m=Math.min(l(),e.offsetWidth),v=h+g,y=v-a.arrowSize,b=v+a.arrowSize;
if("start"===o)u=a.arrow?Math.min(y,h):h;else if("end"===o){var w=Math.max(b,h+t.offsetWidth),x=a.arrow?w:h+t.offsetWidth;u=Math.max(x-m,i.bodyPadding+d)}else{var k=h+g-Math.round(m/2),S=i.bodyPadding+d;u=Math.max(k,S)}var C=u+m-(d+document.documentElement.clientWidth-i.bodyPadding);C>0&&(u-=C),s="up"===r?p.top+(0,i.getScrollTop)()-(e.offsetHeight+f):p.bottom+(0,i.getScrollTop)()+f}return{left:u,top:s,transform:c}}function c(e,t,n,r,o,a){var s=-1E7,l=0,u=n.showTip?void 0:"translateX(-10000000px)",
c=(0,i.getArrowSpacing)(a),f=a.arrow?i.minArrowPadding:0;if(e){var d=(0,i.getScrollTop)(),p=(0,i.getScrollLeft)(),h=t.getBoundingClientRect(),g=h.top+d,m=Math.round(t.offsetHeight/2),v=g+m-a.arrowSize,y=h.top+d+m+a.arrowSize;if("start"===o)l=a.arrow?Math.min(g,v):g;else if("end"===o){var b=h.bottom+d-e.offsetHeight;l=a.arrow?Math.max(b,y-e.offsetHeight):b}else{var w=Math.max(g+m-Math.round(e.offsetHeight/2),i.bodyPadding+d);l=Math.min(w,v-f)}var x=l-d+e.offsetHeight+i.bodyPadding-window.innerHeight;
x>0&&(l=Math.max(l-x,y+f-e.offsetHeight)),s="right"===r?h.right+c+p:h.left-c-e.offsetWidth+p}return{left:s,top:l,transform:u}}function f(e,t,n,r,o){if(!e||!o.arrow)return{positionStyles:{top:"0",left:"-10000000px"}};var a=e.getBoundingClientRect(),s=Math.round(e.offsetHeight/2),l=Math.round(e.offsetWidth/2),u=(0,i.getScrollTop)(),c=(0,i.getScrollLeft)(),f=(0,i.getArrowSpacing)(o),d={},p={};switch(n){case "right":d.borderTop="".concat(o.arrowSize,"px solid transparent"),d.borderBottom="".concat(o.arrowSize,
"px solid transparent"),o.background?d.borderRight="".concat(o.arrowSize,"px solid ").concat(o.background):(d.borderRightWidth="".concat(o.arrowSize,"px"),d.borderRightStyle="solid"),p.top=r.showTip&&t?a.top+u+s-o.arrowSize:"-10000000px",p.left=a.right+c+f-o.arrowSize;break;case "left":d.borderTop="".concat(o.arrowSize,"px solid transparent"),d.borderBottom="".concat(o.arrowSize,"px solid transparent"),o.background?d.borderLeft="".concat(o.arrowSize,"px solid ").concat(o.background):(d.borderLeftWidth=
"".concat(o.arrowSize,"px"),d.borderLeftStyle="solid"),p.top=r.showTip&&t?a.top+u+s-o.arrowSize:"-10000000px",p.left=a.left+c-f-1;break;case "up":d.borderLeft="".concat(o.arrowSize,"px solid transparent"),d.borderRight="".concat(o.arrowSize,"px solid transparent"),o.background?d.borderTop="".concat(o.arrowSize,"px solid ").concat(o.background):(d.borderTopWidth="".concat(o.arrowSize,"px"),d.borderTopStyle="solid"),p.left=r.showTip&&t?a.left+c+l-o.arrowSize:"-10000000px",p.top=a.top+u-f;break;default:d.borderLeft=
"".concat(o.arrowSize,"px solid transparent"),d.borderRight="".concat(o.arrowSize,"px solid transparent"),o.background?d.borderBottom="10px solid ".concat(o.background):(d.borderBottomWidth="".concat(o.arrowSize,"px"),d.borderBottomStyle="solid"),p.left=r.showTip&&t?a.left+c+l-o.arrowSize:"-10000000px",p.top=a.bottom+u+f-o.arrowSize}return{borderStyles:d,positionStyles:p}}},2408:(e,t,n)=>{var r=n(7418),o=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,l=60112;
t.Suspense=60113;var u=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"),l=f("react.forward_ref"),t.Suspense=f("react.suspense"),u=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 m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function v(){}function y(e,t,n){this.props=e,this.context=
t,this.refs=g,this.updater=n||h}m.prototype.isReactComponent={},m.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")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=m.prototype;var b=y.prototype=new v;b.constructor=y,r(b,m.prototype),b.isPureReactComponent=!0;var w={current:null},x=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,
__source:!0};function S(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)x.call(t,r)&&!k.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:w.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===
o}var O=/\/+/g;function E(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function M(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case "string":case "number":l=!0;break;case "object":switch(e.$$typeof){case o:case i:l=!0}}if(l)return a=a(l=e),e=""===r?"."+E(l,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(O,"$&/")+
"/"),M(a,t,n,"",function(e){return e})):null!=a&&(C(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||l&&l.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+e)),t.push(a)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=r+E(s=e[u],u);l+=M(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),u=
0;!(s=e.next()).done;)l+=M(s=s.value,t,n,c=r+E(s,u++),a);else if("object"===s)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function T(e,t,n){if(null==e)return e;var r=[],o=0;return M(e,r,"","",function(e){return t.call(n,e,o++)}),r}function _(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 A={current:null};function P(){var e=A.current;if(null===e)throw Error(p(321));return e}var D={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:T,forEach:function(e,t,n){T(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return T(e,function(){t++}),t},toArray:function(e){return T(e,function(e){return e})||[]},only:function(e){if(!C(e))throw Error(p(143));
return e}},t.Component=m,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,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,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)x.call(t,c)&&!k.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){u=Array(c);
for(var f=0;f<c;f++)u[f]=arguments[f+2];i.children=u}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:l}},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=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,
render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:_}},t.memo=function(e,t){return{$$typeof:u,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"},7294:(e,t,n)=>{e.exports=n(2408)},4754:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var r,o=(r=n(2525))&&r.__esModule?r:{default:r},i=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},a={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,
flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){return t[e]||{extend:e}}},s=t.autoprefix=function(e){var t=
{};return(0,o.default)(e,function(e,n){var r={};(0,o.default)(e,function(e,t){var n=a[t];n?r=i({},r,n(e)):r[t]=e}),t[n]=r}),t};t.default=s},6002:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 0;var r,o=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},i=(r=n(7294))&&r.__esModule?r:{default:r};function a(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 s=t.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,s,l;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,r);for(var u=arguments.length,c=Array(u),f=0;f<u;f++)c[f]=arguments[f];return s=l=a(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(c))),l.state={active:!1},l.handleMouseDown=function(){return l.setState({active:!0})},
l.handleMouseUp=function(){return l.setState({active:!1})},l.render=function(){return i.default.createElement(t,{onMouseDown:l.handleMouseDown,onMouseUp:l.handleMouseUp},i.default.createElement(e,o({},l.props,l.state)))},a(l,s)}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)}(r,n),r}(i.default.Component)};t.default=s},1765:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hover=void 0;var r,o=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},i=(r=n(7294))&&r.__esModule?r:{default:r};function a(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 s=t.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,s,l;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,r);for(var u=arguments.length,c=Array(u),f=0;f<u;f++)c[f]=arguments[f];return s=l=a(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(c))),l.state={hover:!1},l.handleMouseOver=function(){return l.setState({hover:!0})},
l.handleMouseOut=function(){return l.setState({hover:!1})},l.render=function(){return i.default.createElement(t,{onMouseOver:l.handleMouseOver,onMouseOut:l.handleMouseOut},i.default.createElement(e,o({},l.props,l.state)))},a(l,s)}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)}(r,n),r}(i.default.Component)};t.default=s},4147:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var r=s(n(7037)),o=s(n(2525)),i=s(n(8630)),a=s(n(5161));function s(e){return e&&e.__esModule?e:{default:e}}var l=t.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,a.default)(t,function(t){Array.isArray(t)?e(t).map(function(e){return n.push(e)}):(0,i.default)(t)?(0,o.default)(t,
function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)}):(0,r.default)(t)&&n.push(t)}),n};t.default=l},9941:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=void 0;var r=u(n(4147)),o=u(n(88)),i=u(n(4754)),a=u(n(1765)),s=u(n(6002)),l=u(n(7742));function u(e){return e&&e.__esModule?e:{default:e}}t.hover=a.default,t.handleHover=a.default,t.handleActive=s.default,t.loop=l.default;var c=t.ReactCSS=function(e){for(var t=arguments.length,n=Array(t>
1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var s=(0,r.default)(n),l=(0,o.default)(e,s);return(0,i.default)(l)};t.default=c},7742:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n={},r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2==0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n}},88:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=
void 0;var r=a(n(2525)),o=a(n(361)),i=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};function a(e){return e&&e.__esModule?e:{default:e}}var s=t.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,o.default)(e.default)||{};return t.map(function(t){var o=e[t];return o&&(0,r.default)(o,function(e,t){n[t]||(n[t]={}),n[t]=i({},n[t],o[t])}),
t}),n};t.default=s},3382:(e,t,n)=>{n.d(t,{Z:()=>_});var r=n(7462),o=n(3144),i=n(4578),a=n(7294),s=n(5697),l=n.n(s),u=n(1143),c=n.n(u),f=n(3366),d=n(8216),p=function(e,t,n,o){var i=t.value;return"checkbox"===e?(0,r.Z)({},t,{checked:!!i}):"radio"===e?(0,r.Z)({},t,{checked:o(i,n),value:n}):"select-multiple"===e?(0,r.Z)({},t,{value:i||[]}):"file"===e?(0,r.Z)({},t,{value:i||void 0}):t},h=n(6018);const g="undefined"!=typeof window&&window.navigator&&window.navigator.product&&"ReactNative"===window.navigator.product,
m=function(e,t){var n=t.name,r=t.parse,o=t.normalize,i=function(e,t){if((0,h.Z)(e)){if(!t&&e.nativeEvent&&void 0!==e.nativeEvent.text)return e.nativeEvent.text;if(t&&void 0!==e.nativeEvent)return e.nativeEvent.text;var n=e,r=n.target,o=r.type,i=r.value,a=r.checked,s=r.files,l=n.dataTransfer;return"checkbox"===o?!!a:"file"===o?s||l&&l.files:"select-multiple"===o?function(e){var t=[];if(e)for(var n=0;n<e.length;n++){var r=e[n];r.selected&&t.push(r.value)}return t}(e.target.options):i}return e}(e,g);
return r&&(i=r(i,n)),o&&(i=o(n,i)),i};var v="text",y=n(4892),b=n(6376),w=["_reduxForm"],x=function(e){return e&&"object"==typeof e},k=function(e){return e&&"function"==typeof e},S=function(e){x(e)&&k(e.preventDefault)&&e.preventDefault()},C=n(8368),O=n.n(C),E=function(e,t,n,r,o,i){if(i)return e===t},M=n(6525),T=n(3478);const _=function(e){var t=function(e){var t=e.deepEqual,n=e.getIn,o=function(n){function o(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return(e=n.call.apply(n,
[this].concat(o))||this).ref=a.createRef(),e.isPristine=function(){return e.props.pristine},e.getValue=function(){return e.props.value},e.handleChange=function(t){var n=e.props,o=n.name,i=n.dispatch,a=n.parse,s=n.normalize,l=n.onChange,u=n._reduxForm,c=n.value,f=m(t,{name:o,parse:a,normalize:s}),d=!1;if(l)if(!g&&(0,h.Z)(t))l((0,r.Z)({},t,{preventDefault:function(){return d=!0,S(t)}}),f,c,o);else{var p=l(t,f,c,o);g&&(d=p)}d||(i(u.change(o,f)),u.asyncValidate&&u.asyncValidate(o,f,"change"))},e.handleFocus=
function(t){var n=e.props,o=n.name,i=n.dispatch,a=n.onFocus,s=n._reduxForm,l=!1;a&&(g?l=a(t,o):a((0,r.Z)({},t,{preventDefault:function(){return l=!0,S(t)}}),o)),l||i(s.focus(o))},e.handleBlur=function(t){var n=e.props,o=n.name,i=n.dispatch,a=n.parse,s=n.normalize,l=n.onBlur,u=n._reduxForm,c=n._value,f=n.value,d=m(t,{name:o,parse:a,normalize:s});d===c&&void 0!==c&&(d=f);var p=!1;l&&(g?p=l(t,d,f,o):l((0,r.Z)({},t,{preventDefault:function(){return p=!0,S(t)}}),d,f,o)),p||(i(u.blur(o,d)),u.asyncValidate&&
u.asyncValidate(o,d,"blur"))},e.handleDragStart=function(t){var n=e.props,r=n.name,o=n.onDragStart,i=n.value;!function(e,t,n){x(e)&&x(e.dataTransfer)&&k(e.dataTransfer.setData)&&e.dataTransfer.setData(t,n)}(t,v,null==i?"":i),o&&o(t,r)},e.handleDrop=function(t){var n=e.props,o=n.name,i=n.dispatch,a=n.onDrop,s=n._reduxForm,l=n.value,u=function(e,t){if(x(e)&&x(e.dataTransfer)&&k(e.dataTransfer.getData))return e.dataTransfer.getData(t)}(t,v),c=!1;a&&a((0,r.Z)({},t,{preventDefault:function(){return c=
!0,S(t)}}),u,l,o),c||(i(s.change(o,u)),S(t))},e}(0,i.Z)(o,n);var s=o.prototype;return s.shouldComponentUpdate=function(e){var n=this,r=Object.keys(e),o=Object.keys(this.props);return!!(this.props.children||e.children||r.length!==o.length||r.some(function(r){return~(e.immutableProps||[]).indexOf(r)?n.props[r]!==e[r]:!~w.indexOf(r)&&!t(n.props[r],e[r])}))},s.getRenderedComponent=function(){return this.ref.current},s.render=function(){var t=this.props,n=t.component,o=t.forwardRef,i=t.name,s=t._reduxForm,
l=(t.normalize,t.onBlur,t.onChange,t.onFocus,t.onDragStart,t.onDrop,t.immutableProps,(0,f.Z)(t,["component","forwardRef","name","_reduxForm","normalize","onBlur","onChange","onFocus","onDragStart","onDrop","immutableProps"])),u=function(e,t,n){var o=e.getIn,i=e.toJS,a=e.deepEqual,s=n.asyncError,l=n.asyncValidating,u=n.onBlur,c=n.onChange,d=n.onDrop,h=n.onDragStart,g=n.dirty,m=n.dispatch,v=n.onFocus,y=n.form,b=n.format,w=n.initial,x=(n.parse,n.pristine),k=n.props,S=n.state,C=n.submitError,O=n.submitFailed,
E=n.submitting,M=n.syncError,T=n.syncWarning,_=(n.validate,n.value),A=n._value,P=(n.warn,(0,f.Z)(n,["asyncError","asyncValidating","onBlur","onChange","onDrop","onDragStart","dirty","dispatch","onFocus","form","format","initial","parse","pristine","props","state","submitError","submitFailed","submitting","syncError","syncWarning","validate","value","_value","warn"])),D=M||s||C,N=T,R=function(e,n){if(null===n)return e;var r=null==e?"":e;return n?n(e,t):r}(_,b);return{input:p(P.type,{name:t,onBlur:u,
onChange:c,onDragStart:h,onDrop:d,onFocus:v,value:R},A,a),meta:(0,r.Z)({},i(S),{active:!(!S||!o(S,"active")),asyncValidating:l,autofilled:!(!S||!o(S,"autofilled")),dirty:g,dispatch:m,error:D,form:y,initial:w,warning:N,invalid:!!D,pristine:x,submitting:!!E,submitFailed:!!O,touched:!(!S||!o(S,"touched")),valid:!D,visited:!(!S||!o(S,"visited"))}),custom:(0,r.Z)({},P,{},k)}}(e,i,(0,r.Z)({},l,{form:s.form,onBlur:this.handleBlur,onChange:this.handleChange,onDrop:this.handleDrop,onDragStart:this.handleDragStart,
onFocus:this.handleFocus})),c=u.custom,d=(0,f.Z)(u,["custom"]);if(o&&(c.ref=this.ref),"string"==typeof n){var h=d.input;return d.meta,(0,a.createElement)(n,(0,r.Z)({},h,{},c))}return(0,a.createElement)(n,(0,r.Z)({},d,{},c))},o}(a.Component);return o.propTypes={component:b.Z,props:l().object},(0,d.$j)(function(e,r){var o=r.name,i=r._reduxForm,a=i.initialValues,s=(0,i.getFormState)(e),l=n(s,"initial."+o),u=void 0!==l?l:a&&n(a,o),c=n(s,"values."+o),f=n(s,"submitting"),d=function(e,t){var n=y.Z.getIn(e,
t);return n&&n._error?n._error:n}(n(s,"syncErrors"),o),p=function(e,t){var r=n(e,t);return r&&r._warning?r._warning:r}(n(s,"syncWarnings"),o),h=t(c,u);return{asyncError:n(s,"asyncErrors."+o),asyncValidating:n(s,"asyncValidating")===o,dirty:!h,pristine:h,state:n(s,"fields."+o),submitError:n(s,"submitErrors."+o),submitFailed:n(s,"submitFailed"),submitting:f,syncError:d,syncWarning:p,initial:u,value:c,_value:r.value}},void 0,void 0,{forwardRef:!0})(o)}(e),n=e.setIn,s=function(e){function s(t){var r;
if((r=e.call(this,t)||this).ref=a.createRef(),r.normalize=function(e,t){var o=r.props.normalize;if(!o)return t;var i=r.props._reduxForm.getValues();return o(t,r.value,n(i,e,t),i,e)},!t._reduxForm)throw new Error("Field must be inside a component decorated with reduxForm()");return r}(0,i.Z)(s,e);var l=s.prototype;return l.componentDidMount=function(){var e=this;this.props._reduxForm.register(this.name,"Field",function(){return e.props.validate},function(){return e.props.warn})},l.shouldComponentUpdate=
function(e,t){return function(e,t,n){var r=O()(e.props,t,E),o=O()(e.state,n,E);return!r||!o}(this,e,t)},l.componentDidUpdate=function(e){var t=this,n=(0,M.Z)(e,e.name),r=(0,M.Z)(this.props,this.props.name);n===r&&y.Z.deepEqual(e.validate,this.props.validate)&&y.Z.deepEqual(e.warn,this.props.warn)||(this.props._reduxForm.unregister(n),this.props._reduxForm.register(r,"Field",function(){return t.props.validate},function(){return t.props.warn}))},l.componentWillUnmount=function(){this.props._reduxForm.unregister(this.name)},
l.getRenderedComponent=function(){return c()(this.props.forwardRef,"If you want to access getRenderedComponent(), you must specify a forwardRef prop to Field"),this.ref.current?this.ref.current.getRenderedComponent():void 0},l.render=function(){return(0,a.createElement)(t,(0,r.Z)({},this.props,{name:this.name,normalize:this.normalize,ref:this.ref}))},(0,o.Z)(s,[{key:"name",get:function(){return(0,M.Z)(this.props,this.props.name)}},{key:"dirty",get:function(){return!this.pristine}},{key:"pristine",
get:function(){return!(!this.ref.current||!this.ref.current.isPristine())}},{key:"value",get:function(){return this.ref.current&&this.ref.current.getValue()}}]),s}(a.Component);return s.propTypes={name:l().string.isRequired,component:b.Z,format:l().func,normalize:l().func,onBlur:l().func,onChange:l().func,onFocus:l().func,onDragStart:l().func,onDrop:l().func,parse:l().func,props:l().object,validate:l().oneOfType([l().func,l().arrayOf(l().func)]),warn:l().oneOfType([l().func,l().arrayOf(l().func)]),
forwardRef:l().bool,immutableProps:l().arrayOf(l().string),_reduxForm:l().object},(0,T.V5)(s)}(y.Z)},3910:(e,t,n)=>{n.d(t,{Z:()=>k});var r=n(7462),o=n(3144),i=n(4578),a=n(7294),s=n(5697),l=n.n(s),u=n(1143),c=n.n(u),f=n(3366),d=n(6604),p=n.n(d),h=n(8216),g=n(4890),m=n(4892),v=n(6376),y=["_reduxForm","value"],b=n(6525),w=n(3478),x=function(e,t){return e&&function(){for(var n,r=(n=e,Array.isArray(n)?n:[n]),o=0;o<r.length;o++){var i,a=r[o].apply(r,arguments);if(a)return(i={})[t]=a,i}}};const k=function(e){var t=
function(e){var t=e.deepEqual,n=e.getIn,s=e.size,u=e.equals,c=e.orderChanged,d=function(s){function l(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=s.call.apply(s,[this].concat(r))||this).ref=a.createRef(),e.getValue=function(t){return e.props.value&&n(e.props.value,String(t))},e}(0,i.Z)(l,s);var d=l.prototype;return d.shouldComponentUpdate=function(e){var n=this,r=this.props.value,o=e.value;if(r&&o){var i=u(o,r),a=c(r,o);if((r.length||r.size)!==(o.length||o.size)||
i&&a||e.rerenderOnEveryChange&&r.some(function(e,n){return!t(e,o[n])}))return!0}var s=Object.keys(e),l=Object.keys(this.props);return!!(this.props.children||e.children||s.length!==l.length||s.some(function(r){return!~y.indexOf(r)&&!t(n.props[r],e[r])}))},d.getRenderedComponent=function(){return this.ref.current},d.render=function(){var t=this.props,n=t.component,o=t.forwardRef,i=t.name,s=t._reduxForm,l=(t.validate,t.warn,t.rerenderOnEveryChange,(0,f.Z)(t,["component","forwardRef","name","_reduxForm",
"validate","warn","rerenderOnEveryChange"])),u=function(e,t,n,o,i,a){var s=e.getIn,l=a.arrayInsert,u=a.arrayMove,c=a.arrayPop,d=a.arrayPush,p=a.arrayRemove,h=a.arrayRemoveAll,g=a.arrayShift,m=a.arraySplice,v=a.arraySwap,y=a.arrayUnshift,b=a.asyncError,w=a.dirty,x=a.length,k=a.pristine,S=a.submitError,C=(a.state,a.submitFailed),O=a.submitting,E=a.syncError,M=a.syncWarning,T=a.value,_=a.props,A=(0,f.Z)(a,["arrayInsert","arrayMove","arrayPop","arrayPush","arrayRemove","arrayRemoveAll","arrayShift","arraySplice",
"arraySwap","arrayUnshift","asyncError","dirty","length","pristine","submitError","state","submitFailed","submitting","syncError","syncWarning","value","props"]),P=E||b||S,D=M,N=o?t.replace(o+".",""):t,R=(0,r.Z)({fields:{_isFieldArray:!0,forEach:function(e){return(T||[]).forEach(function(t,n){return e(N+"["+n+"]",n,R.fields)})},get:i,getAll:function(){return T},insert:l,length:x,map:function(e){return(T||[]).map(function(t,n){return e(N+"["+n+"]",n,R.fields)})},move:u,name:t,pop:function(){return c(),
s(T,String(x-1))},push:d,reduce:function(e,t){return(T||[]).reduce(function(t,n,r){return e(t,N+"["+r+"]",r,R.fields)},t)},remove:p,removeAll:h,shift:function(){return g(),s(T,"0")},splice:m,swap:v,unshift:y},meta:{dirty:w,error:P,form:n,warning:D,invalid:!!P,pristine:k,submitting:O,submitFailed:C,valid:!P}},_,{},A);return R}(e,i,s.form,s.sectionPrefix,this.getValue,l);return o&&(u.ref=this.ref),(0,a.createElement)(n,u)},(0,o.Z)(l,[{key:"dirty",get:function(){return this.props.dirty}},{key:"pristine",
get:function(){return this.props.pristine}},{key:"value",get:function(){return this.props.value}}]),l}(a.Component);return d.propTypes={component:v.Z,props:l().object,rerenderOnEveryChange:l().bool},d.defaultProps={rerenderOnEveryChange:!1},(0,h.$j)(function(e,r){var o=r.name,i=r._reduxForm,a=i.initialValues,l=(0,i.getFormState)(e),u=n(l,"initial."+o)||a&&n(a,o),c=n(l,"values."+o),f=n(l,"submitting"),d=function(e,t){return m.Z.getIn(e,t+"._error")}(n(l,"syncErrors"),o),p=function(e,t){return n(e,
t+"._warning")}(n(l,"syncWarnings"),o),h=t(c,u);return{asyncError:n(l,"asyncErrors."+o+"._error"),dirty:!h,pristine:h,state:n(l,"fields."+o),submitError:n(l,"submitErrors."+o+"._error"),submitFailed:n(l,"submitFailed"),submitting:f,syncError:d,syncWarning:p,value:c,length:s(c)}},function(e,t){var n=t.name,r=t._reduxForm,o=r.arrayInsert,i=r.arrayMove,a=r.arrayPop,s=r.arrayPush,l=r.arrayRemove,u=r.arrayRemoveAll,c=r.arrayShift,f=r.arraySplice,d=r.arraySwap,h=r.arrayUnshift;return p()({arrayInsert:o,
arrayMove:i,arrayPop:a,arrayPush:s,arrayRemove:l,arrayRemoveAll:u,arrayShift:c,arraySplice:f,arraySwap:d,arrayUnshift:h},function(t){return(0,g.DE)(t.bind(null,n),e)})},void 0,{forwardRef:!0})(d)}(e),n=function(e){function n(t){var n;if((n=e.call(this,t)||this).ref=a.createRef(),!t._reduxForm)throw new Error("FieldArray must be inside a component decorated with reduxForm()");return n}(0,i.Z)(n,e);var s=n.prototype;return s.componentDidMount=function(){var e=this;this.props._reduxForm.register(this.name,
"FieldArray",function(){return x(e.props.validate,"_error")},function(){return x(e.props.warn,"_warning")})},s.componentDidUpdate=function(e){var t=(0,b.Z)(e,e.name),n=(0,b.Z)(this.props,this.props.name);t!==n&&(this.props._reduxForm.unregister(t),this.props._reduxForm.register(n,"FieldArray"))},s.componentWillUnmount=function(){this.props._reduxForm.unregister(this.name)},s.getRenderedComponent=function(){return c()(this.props.forwardRef,"If you want to access getRenderedComponent(), you must specify a forwardRef prop to FieldArray"),
this.ref&&this.ref.current.getRenderedComponent()},s.render=function(){return(0,a.createElement)(t,(0,r.Z)({},this.props,{name:this.name,ref:this.ref}))},(0,o.Z)(n,[{key:"name",get:function(){return(0,b.Z)(this.props,this.props.name)}},{key:"dirty",get:function(){return!this.ref||this.ref.current.dirty}},{key:"pristine",get:function(){return!(!this.ref||!this.ref.current.pristine)}},{key:"value",get:function(){return this.ref?this.ref.current.value:void 0}}]),n}(a.Component);return n.propTypes={name:l().string.isRequired,
component:v.Z,props:l().object,validate:l().oneOfType([l().func,l().arrayOf(l().func)]),warn:l().oneOfType([l().func,l().arrayOf(l().func)]),forwardRef:l().bool,_reduxForm:l().object},(0,w.V5)(n)}(m.Z)},3478:(e,t,n)=>{n.d(t,{V5:()=>u,kT:()=>s});var r=n(4578),o=n(7462),i=n(3366),a=n(7294),s=a.createContext(null),l=function(e,t){var n=t.forwardedRef,r=(0,i.Z)(t,["forwardedRef"]);return function(t){return a.createElement(e,(0,o.Z)({},r,{_reduxForm:t,ref:n}))}},u=function(e){var t=function(t){function n(){return t.apply(this,
arguments)||this}return(0,r.Z)(n,t),n.prototype.render=function(){return a.createElement(s.Consumer,{children:l(e,this.props)})},n}(a.Component),n=a.forwardRef(function(e,n){return a.createElement(t,(0,o.Z)({},e,{forwardedRef:n}))});return n.displayName=e.displayName||e.name||"Component",n}},6448:(e,t,n)=>{n.d(t,{$U:()=>p,CO:()=>w,EK:()=>C,En:()=>b,FT:()=>o,IV:()=>v,Kn:()=>x,LD:()=>u,Lo:()=>T,O4:()=>r,Qm:()=>R,VZ:()=>_,Ve:()=>m,WF:()=>I,WL:()=>f,Wu:()=>E,_V:()=>M,bh:()=>A,c4:()=>D,cc:()=>k,dO:()=>
g,gV:()=>L,gm:()=>P,gy:()=>s,hL:()=>i,kF:()=>F,m$:()=>l,ou:()=>h,qh:()=>S,td:()=>O,tn:()=>j,ud:()=>d,v7:()=>y,w8:()=>c,z$:()=>a,zD:()=>N});var r="@@redux-form/",o=r+"ARRAY_INSERT",i=r+"ARRAY_MOVE",a=r+"ARRAY_POP",s=r+"ARRAY_PUSH",l=r+"ARRAY_REMOVE",u=r+"ARRAY_REMOVE_ALL",c=r+"ARRAY_SHIFT",f=r+"ARRAY_SPLICE",d=r+"ARRAY_UNSHIFT",p=r+"ARRAY_SWAP",h=r+"AUTOFILL",g=r+"BLUR",m=r+"CHANGE",v=r+"CLEAR_FIELDS",y=r+"CLEAR_SUBMIT",b=r+"CLEAR_SUBMIT_ERRORS",w=r+"CLEAR_ASYNC_ERROR",x=r+"DESTROY",k=r+"FOCUS",S=
r+"INITIALIZE",C=r+"REGISTER_FIELD",O=r+"RESET",E=r+"RESET_SECTION",M=r+"SET_SUBMIT_FAILED",T=r+"SET_SUBMIT_SUCCEEDED",_=r+"START_ASYNC_VALIDATION",A=r+"START_SUBMIT",P=r+"STOP_ASYNC_VALIDATION",D=r+"STOP_SUBMIT",N=r+"SUBMIT",R=r+"TOUCH",L=r+"UNREGISTER_FIELD",j=r+"UNTOUCH",I=r+"UPDATE_SYNC_ERRORS",F=r+"UPDATE_SYNC_WARNINGS"},4738:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(7462),o=n(6448);const i={arrayInsert:function(e,t,n,r){return{type:o.FT,meta:{form:e,field:t,index:n},payload:r}},arrayMove:function(e,
t,n,r){return{type:o.hL,meta:{form:e,field:t,from:n,to:r}}},arrayPop:function(e,t){return{type:o.z$,meta:{form:e,field:t}}},arrayPush:function(e,t,n){return{type:o.gy,meta:{form:e,field:t},payload:n}},arrayRemove:function(e,t,n){return{type:o.m$,meta:{form:e,field:t,index:n}}},arrayRemoveAll:function(e,t){return{type:o.LD,meta:{form:e,field:t}}},arrayShift:function(e,t){return{type:o.w8,meta:{form:e,field:t}}},arraySplice:function(e,t,n,r,i){var a={type:o.WL,meta:{form:e,field:t,index:n,removeNum:r}};
return void 0!==i&&(a.payload=i),a},arraySwap:function(e,t,n,r){if(n===r)throw new Error("Swap indices cannot be equal");if(n<0||r<0)throw new Error("Swap indices cannot be negative");return{type:o.$U,meta:{form:e,field:t,indexA:n,indexB:r}}},arrayUnshift:function(e,t,n){return{type:o.ud,meta:{form:e,field:t},payload:n}},autofill:function(e,t,n){return{type:o.ou,meta:{form:e,field:t},payload:n}},blur:function(e,t,n,r){return{type:o.dO,meta:{form:e,field:t,touch:r},payload:n}},change:function(e,t,
n,r,i){return{type:o.Ve,meta:{form:e,field:t,touch:r,persistentSubmitErrors:i},payload:n}},clearFields:function(e,t,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];return{type:o.IV,meta:{form:e,keepTouched:t,persistentSubmitErrors:n,fields:i}}},clearSubmit:function(e){return{type:o.v7,meta:{form:e}}},clearSubmitErrors:function(e){return{type:o.En,meta:{form:e}}},clearAsyncError:function(e,t){return{type:o.CO,meta:{form:e,field:t}}},destroy:function(){for(var e=
arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return{type:o.Kn,meta:{form:t}}},focus:function(e,t){return{type:o.cc,meta:{form:e,field:t}}},initialize:function(e,t,n,i){return void 0===i&&(i={}),n instanceof Object&&(i=n,n=!1),{type:o.qh,meta:(0,r.Z)({form:e,keepDirty:n},i),payload:t}},registerField:function(e,t,n){return{type:o.EK,meta:{form:e},payload:{name:t,type:n}}},reset:function(e){return{type:o.td,meta:{form:e}}},resetSection:function(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{type:o.Wu,meta:{form:e,sections:n}}},startAsyncValidation:function(e,t){return{type:o.VZ,meta:{form:e,field:t}}},startSubmit:function(e){return{type:o.bh,meta:{form:e}}},stopAsyncValidation:function(e,t){return{type:o.gm,meta:{form:e},payload:t,error:!(!t||!Object.keys(t).length)}},stopSubmit:function(e,t){return{type:o.c4,meta:{form:e},payload:t,error:!(!t||!Object.keys(t).length)}},submit:function(e){return{type:o.zD,meta:{form:e}}},setSubmitFailed:function(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{type:o._V,meta:{form:e,fields:n},error:!0}},setSubmitSucceeded:function(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{type:o.Lo,meta:{form:e,fields:n},error:!1}},touch:function(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{type:o.Qm,meta:{form:e,fields:n}}},unregisterField:function(e,t,n){return void 0===n&&(n=!0),{type:o.gV,meta:{form:e},
payload:{name:t,destroyOnUnmount:n}}},untouch:function(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{type:o.tn,meta:{form:e,fields:n}}},updateSyncErrors:function(e,t,n){return void 0===t&&(t={}),{type:o.WF,meta:{form:e},payload:{syncErrors:t,error:n}}},updateSyncWarnings:function(e,t,n){return void 0===t&&(t={}),{type:o.kF,meta:{form:e},payload:{syncWarnings:t,warning:n}}}}},6018:(e,t,n)=>{n.d(t,{Z:()=>r});const r=function(e){return!!(e&&e.stopPropagation&&
e.preventDefault)}},2772:(e,t,n)=>{n.d(t,{m:()=>o});var r=n(4738),o=(r.Z.arrayInsert,r.Z.arrayMove,r.Z.arrayPop,r.Z.arrayPush,r.Z.arrayRemove,r.Z.arrayRemoveAll,r.Z.arrayShift,r.Z.arraySplice,r.Z.arraySwap,r.Z.arrayUnshift,r.Z.autofill,r.Z.blur,r.Z.change);r.Z.clearAsyncError,r.Z.clearFields,r.Z.clearSubmit,r.Z.clearSubmitErrors,r.Z.destroy,r.Z.focus,r.Z.initialize,r.Z.registerField,r.Z.reset,r.Z.resetSection,r.Z.setSubmitFailed,r.Z.setSubmitSucceeded,r.Z.startAsyncValidation,r.Z.startSubmit,r.Z.stopAsyncValidation,
r.Z.stopSubmit,r.Z.submit,r.Z.touch,r.Z.unregisterField,r.Z.untouch,r.Z.updateSyncWarnings,r.Z.updateSyncErrors},496:(e,t,n)=>{n.d(t,{Z:()=>d});var r=n(3366),o=n(3560),i=n.n(o),a=n(6448),s=n(84),l=n.n(s);const u=function(e){var t=function(e){return function(t,n){return void 0!==e.getIn(t,n)}},n=e.deepEqual,r=e.empty,o=e.getIn,i=e.deleteIn,a=e.setIn;return function(s){return void 0===s&&(s=t),function t(u,c){if("]"===c[c.length-1]){var f=l()(c);return f.pop(),o(u,f.join("."))?a(u,c):u}var d=u;s(e)(u,
c)&&(d=i(u,c));var p=c.lastIndexOf(".");if(p>0){var h=c.substring(0,p);if("]"!==h[h.length-1]){var g=o(d,h);if(n(g,r))return t(d,h)}}return d}}};var c=n(4892),f=function(e){var t=e.getIn;return function(e,n){var r=null;/^values/.test(n)&&(r=n.replace("values","initial"));var o=!r||void 0===t(e,r);return void 0!==t(e,n)&&o}};const d=(p=c.Z,g=p.deepEqual,m=p.empty,v=p.forEach,y=p.getIn,b=p.setIn,w=p.deleteIn,x=p.fromJS,k=p.keys,S=p.size,C=p.some,O=p.splice,E=u(p)(f),M=u(c.Z)(f),T=function(e,t,n,r,o,
i,a){var s=y(e,t+"."+n);return s||a?b(e,t+"."+n,O(s,r,o,i)):e},_=function(e,t,n,r,o,i,a){var s=y(e,t),l=c.Z.getIn(s,n);return l||a?b(e,t,c.Z.setIn(s,n,c.Z.splice(l,r,o,i))):e},A=["values","fields","submitErrors","asyncErrors"],P=function(e,t,n,r,o){var i=e,a=null!=o?m:void 0;return i=T(i,"values",t,n,r,o,!0),i=T(i,"fields",t,n,r,a),i=_(i,"syncErrors",t,n,r,void 0),i=_(i,"syncWarnings",t,n,r,void 0),i=T(i,"submitErrors",t,n,r,void 0),T(i,"asyncErrors",t,n,r,void 0)},(h={})[a.FT]=function(e,t){var n=
t.meta,r=n.field,o=n.index,i=t.payload;return P(e,r,o,0,i)},h[a.hL]=function(e,t){var n=t.meta,r=n.field,o=n.from,i=n.to,a=y(e,"values."+r),s=a?S(a):0,l=e;return s&&A.forEach(function(e){var t=e+"."+r;if(y(l,t)){var n=y(l,t+"["+o+"]");l=b(l,t,O(y(l,t),o,1)),l=b(l,t,O(y(l,t),i,0,n))}}),l},h[a.z$]=function(e,t){var n=t.meta.field,r=y(e,"values."+n),o=r?S(r):0;return o?P(e,n,o-1,1):e},h[a.gy]=function(e,t){var n=t.meta.field,r=t.payload,o=y(e,"values."+n),i=o?S(o):0;return P(e,n,i,0,r)},h[a.m$]=function(e,
t){var n=t.meta,r=n.field,o=n.index;return P(e,r,o,1)},h[a.LD]=function(e,t){var n=t.meta.field,r=y(e,"values."+n),o=r?S(r):0;return o?P(e,n,0,o):e},h[a.w8]=function(e,t){var n=t.meta.field;return P(e,n,0,1)},h[a.WL]=function(e,t){var n=t.meta,r=n.field,o=n.index,i=n.removeNum,a=t.payload;return P(e,r,o,i,a)},h[a.$U]=function(e,t){var n=t.meta,r=n.field,o=n.indexA,i=n.indexB,a=e;return A.forEach(function(e){var t=y(a,e+"."+r+"["+o+"]"),n=y(a,e+"."+r+"["+i+"]");void 0===t&&void 0===n||(a=b(a,e+"."+
r+"["+o+"]",n),a=b(a,e+"."+r+"["+i+"]",t))}),a},h[a.ud]=function(e,t){var n=t.meta.field,r=t.payload;return P(e,n,0,0,r)},h[a.ou]=function(e,t){var n=t.meta.field,r=t.payload,o=e;return o=E(o,"asyncErrors."+n),o=E(o,"submitErrors."+n),o=b(o,"fields."+n+".autofilled",!0),b(o,"values."+n,r)},h[a.dO]=function(e,t){var n=t.meta,r=n.field,o=n.touch,i=t.payload,a=e;return void 0===y(a,"initial."+r)&&""===i?a=E(a,"values."+r):void 0!==i&&(a=b(a,"values."+r,i)),r===y(a,"active")&&(a=w(a,"active")),a=w(a,
"fields."+r+".active"),o&&(a=b(a,"fields."+r+".touched",!0),a=b(a,"anyTouched",!0)),a},h[a.Ve]=function(e,t){var n=t.meta,r=n.field,o=n.touch,a=n.persistentSubmitErrors,s=t.payload,l=e;if(void 0===y(l,"initial."+r)&&""===s||void 0===s)l=E(l,"values."+r);else if(i()(s)){var u=y(e,"values."+r);l=b(l,"values."+r,s(u,e.values))}else l=b(l,"values."+r,s);return l=E(l,"asyncErrors."+r),a||(l=E(l,"submitErrors."+r)),l=E(l,"fields."+r+".autofilled"),o&&(l=b(l,"fields."+r+".touched",!0),l=b(l,"anyTouched",
!0)),l},h[a.v7]=function(e){return w(e,"triggerSubmit")},h[a.En]=function(e){var t=e;return t=E(t,"submitErrors"),w(t,"error")},h[a.CO]=function(e,t){var n=t.meta.field;return w(e,"asyncErrors."+n)},h[a.IV]=function(e,t){var n=t.meta,r=n.keepTouched,o=n.persistentSubmitErrors,i=n.fields,a=e;i.forEach(function(t){a=E(a,"asyncErrors."+t),o||(a=E(a,"submitErrors."+t)),a=E(a,"fields."+t+".autofilled"),r||(a=w(a,"fields."+t+".touched"));var n=y(e,"initial."+t);a=n?b(a,"values."+t,n):E(a,"values."+t)});
var s=C(k(y(a,"registeredFields")),function(e){return y(a,"fields."+e+".touched")});return a=s?b(a,"anyTouched",!0):w(a,"anyTouched")},h[a.cc]=function(e,t){var n=t.meta.field,r=e,o=y(e,"active");return r=w(r,"fields."+o+".active"),r=b(r,"fields."+n+".visited",!0),r=b(r,"fields."+n+".active",!0),b(r,"active",n)},h[a.qh]=function(e,t){var n=t.payload,r=t.meta,o=r.keepDirty,i=r.keepSubmitSucceeded,a=r.updateUnregisteredFields,s=r.keepValues,l=x(n),u=m,c=y(e,"warning");c&&(u=b(u,"warning",c));var f=
y(e,"syncWarnings");f&&(u=b(u,"syncWarnings",f));var d=y(e,"error");d&&(u=b(u,"error",d));var p=y(e,"syncErrors");p&&(u=b(u,"syncErrors",p));var h=y(e,"registeredFields");h&&(u=b(u,"registeredFields",h));var w=y(e,"values"),S=y(e,"initial"),C=l,O=w;if(o&&h){if(!g(C,S)){var E=function(e){var t=y(S,e),n=y(w,e);if(g(n,t)){var r=y(C,e);y(O,e)!==r&&(O=b(O,e,r))}};a||v(k(h),function(e){return E(e)}),v(k(C),function(e){if(void 0===y(S,e)){var t=y(C,e);O=b(O,e,t)}a&&E(e)})}}else O=C;return s&&(v(k(w),function(e){var t=
y(w,e);O=b(O,e,t)}),v(k(S),function(e){var t=y(S,e);C=b(C,e,t)})),i&&y(e,"submitSucceeded")&&(u=b(u,"submitSucceeded",!0)),u=b(u,"values",O),b(u,"initial",C)},h[a.EK]=function(e,t){var n=t.payload,r=n.name,o=n.type,i="registeredFields['"+r+"']",a=y(e,i);if(a){var s=y(a,"count")+1;a=b(a,"count",s)}else a=x({name:r,type:o,count:1});return b(e,i,a)},h[a.td]=function(e){var t=m,n=y(e,"registeredFields");n&&(t=b(t,"registeredFields",n));var r=y(e,"initial");return r&&(t=b(t,"values",r),t=b(t,"initial",
r)),t},h[a.Wu]=function(e,t){var n=t.meta.sections,r=e;n.forEach(function(t){r=E(r,"asyncErrors."+t),r=E(r,"submitErrors."+t),r=E(r,"fields."+t);var n=y(e,"initial."+t);r=n?b(r,"values."+t,n):E(r,"values."+t)});var o=C(k(y(r,"registeredFields")),function(e){return y(r,"fields."+e+".touched")});return r=o?b(r,"anyTouched",!0):w(r,"anyTouched")},h[a.zD]=function(e){return b(e,"triggerSubmit",!0)},h[a.VZ]=function(e,t){var n=t.meta.field;return b(e,"asyncValidating",n||!0)},h[a.bh]=function(e){return b(e,
"submitting",!0)},h[a.gm]=function(e,t){var n=t.payload,o=e;if(o=w(o,"asyncValidating"),n&&Object.keys(n).length){var i=n._error,a=(0,r.Z)(n,["_error"]);i&&(o=b(o,"error",i)),Object.keys(a).length&&(o=b(o,"asyncErrors",x(a)))}else o=w(o,"error"),o=w(o,"asyncErrors");return o},h[a.c4]=function(e,t){var n=t.payload,o=e;if(o=w(o,"submitting"),o=w(o,"submitFailed"),o=w(o,"submitSucceeded"),n&&Object.keys(n).length){var i=n._error,a=(0,r.Z)(n,["_error"]);o=i?b(o,"error",i):w(o,"error"),o=Object.keys(a).length?
b(o,"submitErrors",x(a)):w(o,"submitErrors"),o=b(o,"submitFailed",!0)}else o=w(o,"error"),o=w(o,"submitErrors");return o},h[a._V]=function(e,t){var n=t.meta.fields,r=e;return r=b(r,"submitFailed",!0),r=w(r,"submitSucceeded"),r=w(r,"submitting"),n.forEach(function(e){return r=b(r,"fields."+e+".touched",!0)}),n.length&&(r=b(r,"anyTouched",!0)),r},h[a.Lo]=function(e){var t=e;return t=w(t,"submitFailed"),b(t,"submitSucceeded",!0)},h[a.Qm]=function(e,t){var n=t.meta.fields,r=e;return n.forEach(function(e){return r=
b(r,"fields."+e+".touched",!0)}),r=b(r,"anyTouched",!0)},h[a.gV]=function(e,t){var n=t.payload,r=n.name,o=n.destroyOnUnmount,i=e,a="registeredFields['"+r+"']",s=y(i,a);if(!s)return i;var l=y(s,"count")-1;if(l<=0&&o){i=w(i,a),g(y(i,"registeredFields"),m)&&(i=w(i,"registeredFields"));var u=y(i,"syncErrors");u&&(u=M(u,r),i=c.Z.deepEqual(u,c.Z.empty)?w(i,"syncErrors"):b(i,"syncErrors",u));var f=y(i,"syncWarnings");f&&(f=M(f,r),i=c.Z.deepEqual(f,c.Z.empty)?w(i,"syncWarnings"):b(i,"syncWarnings",f)),i=
E(i,"submitErrors."+r),i=E(i,"asyncErrors."+r)}else s=b(s,"count",l),i=b(i,a,s);return i},h[a.tn]=function(e,t){var n=t.meta.fields,r=e;n.forEach(function(e){return r=w(r,"fields."+e+".touched")});var o=C(k(y(r,"registeredFields")),function(e){return y(r,"fields."+e+".touched")});return r=o?b(r,"anyTouched",!0):w(r,"anyTouched")},h[a.WF]=function(e,t){var n=t.payload,r=n.syncErrors,o=n.error,i=e;return o?(i=b(i,"error",o),i=b(i,"syncError",!0)):(i=w(i,"error"),i=w(i,"syncError")),Object.keys(r).length?
b(i,"syncErrors",r):w(i,"syncErrors")},h[a.kF]=function(e,t){var n=t.payload,r=n.syncWarnings,o=n.warning,i=e;return i=o?b(i,"warning",o):w(i,"warning"),Object.keys(r).length?b(i,"syncWarnings",r):w(i,"syncWarnings")},D=h,function e(t){return t.plugin=function(t,n){var r=this;return void 0===n&&(n={}),e(function(e,o){void 0===e&&(e=m),void 0===o&&(o={type:"NONE"});var i=function(n,r){var i=y(n,r),a=t[r](i,o,y(e,r));return a!==i?b(n,r,a):n},a=r(e,o),s=o&&o.meta&&o.meta.form;return s&&!n.receiveAllFormActions?
t[s]?i(a,s):a:Object.keys(t).reduce(i,a)})},t}(function(e,t){void 0===e&&(e=m),void 0===t&&(t={type:"NONE"});var n=t&&t.meta&&t.meta.form;if(!n||!function(e){return e&&e.type&&e.type.length>a.O4.length&&e.type.substring(0,a.O4.length)===a.O4}(t))return e;if(t.type===a.Kn&&t.meta&&t.meta.form)return t.meta.form.reduce(function(e,t){return E(e,t)},e);var r=y(e,n),o=function(e,t){void 0===e&&(e=m);var n=D[t.type];return n?n(e,t):e}(r,t);return o===r?e:b(e,n,o)}));var p,h,g,m,v,y,b,w,x,k,S,C,O,E,M,T,
_,A,P,D},2496:(e,t,n)=>{n.d(t,{Z:()=>ne});var r=n(3144),o=n(4578),i=n(7462),a=n(3366),s=n(3857),l=n.n(s),u=n(6604),c=n.n(u),f=n(8679),d=n.n(f),p=n(1143),h=n.n(p),g=n(6141),m=n.n(g),v=n(5697),y=n.n(v),b=n(7294),w=n(8216),x=n(4890),k=n(4738);const S=function(e){var t=e.initialized,n=e.trigger,r=e.pristine;if(!e.syncValidationPasses)return!1;switch(n){case "blur":case "change":return!0;case "submit":return!r||!t;default:return!1}},C=function(e){var t=e.values,n=e.nextProps,r=e.initialRender,o=e.lastFieldValidatorKeys,
i=e.fieldValidatorKeys,a=e.structure;return!!r||!a.deepEqual(t,n&&n.values)||!a.deepEqual(o,i)},O=function(e){var t=e.values,n=e.nextProps,r=e.initialRender,o=e.lastFieldValidatorKeys,i=e.fieldValidatorKeys,a=e.structure;return!!r||!a.deepEqual(t,n&&n.values)||!a.deepEqual(o,i)},E=function(e){var t=e.values,n=e.nextProps,r=e.initialRender,o=e.lastFieldValidatorKeys,i=e.fieldValidatorKeys,a=e.structure;return!!r||!a.deepEqual(t,n&&n.values)||!a.deepEqual(o,i)};var M=n(6018);const T=function(e){var t=
(0,M.Z)(e);return t&&e.preventDefault(),t};var _=n(4892);function A(e,t){var n=t.getIn;return function(t,r){var o={};return Object.keys(e).forEach(function(i){var a=function(e,t,n,r,o){for(var i=function(e){return Array.isArray(e)?e:[e]}(r),a=0;a<i.length;a++){var s=i[a](e,t,n,o);if(s)return s}}(n(t,i),t,r,e[i],i);a&&(o=_.Z.setIn(o,i,a))}),o}}function P(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 D=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,t);var n=P(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return Object.defineProperty(n,"message",{configurable:!0,enumerable:!1,value:e,writable:!0}),Object.defineProperty(n,"name",{configurable:!0,enumerable:!1,value:n.constructor.name,writable:!0}),Error.hasOwnProperty("captureStackTrace")?
(Error.captureStackTrace(n,n.constructor),P(n)):(Object.defineProperty(n,"stack",{configurable:!0,enumerable:!1,value:(new Error(e)).stack,writable:!0}),n)}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)}(t,e),t}(function(e){function t(){e.apply(this,
arguments)}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)),N="@@redux-form/submission-error-flag";function R(e){return!0===(e&&e.constructor&&e.constructor.__FLAG__===N)}(function(e){function t(t){var n;return(n=e.call(this,"Submit Validation Failed")||this).errors=t,n}return(0,o.Z)(t,e),t})(D).__FLAG__=N;var L=function(e,t,n){var r,o=n.dispatch,i=n.submitAsSideEffect,
a=n.onSubmitFail,s=n.onSubmitSuccess,l=n.startSubmit,u=n.stopSubmit,c=n.setSubmitFailed,f=n.setSubmitSucceeded,d=n.values;try{r=e(d,o,n)}catch(e){var p=R(e)?e.errors:void 0;if(u(p),c.apply(void 0,t),a&&a(p,o,e,n),p||a)return p;throw e;}if(i)r&&o(r);else{if(m()(r))return l(),r.then(function(e){return u(),f(),s&&s(e,o,n),e},function(e){var r=R(e)?e.errors:void 0;if(u(r),c.apply(void 0,t),a&&a(r,o,e,n),r||a)return r;throw e;});f(),s&&s(r,o,n)}return r};const j=function(e,t,n,r,o){var a=t.dispatch,s=
t.onSubmitFail,l=t.setSubmitFailed,u=t.syncErrors,c=t.asyncErrors,f=t.touch,d=t.persistentSubmitErrors;if(f.apply(void 0,o),n||d){var p=r&&r();return p?p.then(function(n){if(n)throw n;return L(e,o,t)}).catch(function(e){return l.apply(void 0,o),s&&s(e,a,null,t),Promise.reject(e)}):L(e,o,t)}l.apply(void 0,o);var h=function(e){var t=e.asyncErrors,n=e.syncErrors;return t&&"function"==typeof t.merge?t.merge(n).toJS():(0,i.Z)({},t,{},n)}({asyncErrors:c,syncErrors:u});return s&&s(h,a,null,t),h};var I=n(5078),
F=n(3478),z=k.Z.arrayInsert,H=k.Z.arrayMove,B=k.Z.arrayPop,V=k.Z.arrayPush,W=k.Z.arrayRemove,$=k.Z.arrayRemoveAll,U=k.Z.arrayShift,q=k.Z.arraySplice,Z=k.Z.arraySwap,K=k.Z.arrayUnshift,Y=k.Z.blur,G=k.Z.change,J=k.Z.focus,X=(0,a.Z)(k.Z,["arrayInsert","arrayMove","arrayPop","arrayPush","arrayRemove","arrayRemoveAll","arrayShift","arraySplice","arraySwap","arrayUnshift","blur","change","focus"]),Q={arrayInsert:z,arrayMove:H,arrayPop:B,arrayPush:V,arrayRemove:W,arrayRemoveAll:$,arrayShift:U,arraySplice:q,
arraySwap:Z,arrayUnshift:K},ee=[].concat(Object.keys(k.Z),["array","asyncErrors","initialValues","syncErrors","syncWarnings","values","registeredFields"]),te=function(e){if(!e||"function"!=typeof e)throw new Error("You must either pass handleSubmit() an onSubmit function or pass onSubmit as a prop");return e};const ne=(re=_.Z,oe=re.deepEqual,ie=re.empty,ae=re.getIn,se=re.setIn,le=re.keys,ue=re.fromJS,ce=re.toJS,fe=function(e){var t=e.getIn,n=e.keys,r=function(e){var t=e.getIn;return function(e,n,
r,o){return!!(n||r||o)&&function(e,t){switch(t){case "Field":return[e,e+"._error"];case "FieldArray":return[e+"._error"];default:throw new Error("Unknown field type");}}(t(e,"name"),t(e,"type")).some(function(e){return t(n,e)||t(r,e)||t(o,e)})}}(e);return function(e,o,i){return void 0===i&&(i=!1),function(a){var s=o||function(e){return t(e,"form")},l=s(a);if(t(l,e+".syncError"))return!1;if(!i&&t(l,e+".error"))return!1;var u=t(l,e+".syncErrors"),c=t(l,e+".asyncErrors"),f=i?void 0:t(l,e+".submitErrors");
if(!u&&!c&&!f)return!0;var d=t(l,e+".registeredFields");return!d||!n(d).filter(function(e){return t(d,"['"+e+"'].count")>0}).some(function(e){return r(t(d,"['"+e+"']"),u,c,f)})}}}(re),function(e){var t=(0,i.Z)({touchOnBlur:!0,touchOnChange:!1,persistentSubmitErrors:!1,destroyOnUnmount:!0,shouldAsyncValidate:S,shouldValidate:C,shouldError:O,shouldWarn:E,enableReinitialize:!1,keepDirtyOnReinitialize:!1,updateUnregisteredFields:!1,getFormState:function(e){return ae(e,"form")},pure:!0,forceUnregisterOnUnmount:!1,
submitAsSideEffect:!1},e);return function(e){var n,s=function(n){function r(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))||this).wrapped=b.createRef(),e.destroyed=!1,e.fieldCounts={},e.fieldValidators={},e.lastFieldValidatorKeys=[],e.fieldWarners={},e.lastFieldWarnerKeys=[],e.innerOnSubmit=void 0,e.submitPromise=void 0,e.initializedOnLoad=!1,e.initIfNeeded=function(t){var n=e.props.enableReinitialize;if(t){if((n||!t.initialized)&&
!oe(e.props.initialValues,t.initialValues)){var r=t.initialized&&e.props.keepDirtyOnReinitialize;return e.props.initialize(t.initialValues,r,{keepValues:t.keepValues,lastInitialValues:e.props.initialValues,updateUnregisteredFields:t.updateUnregisteredFields}),!0}}else if(e.props.initialValues&&(!e.props.initialized||n))return e.props.initialize(e.props.initialValues,e.props.keepDirtyOnReinitialize,{keepValues:e.props.keepValues,updateUnregisteredFields:e.props.updateUnregisteredFields}),!0;return!1},
e.updateSyncErrorsIfNeeded=function(t,n,r){var o=e.props,i=o.error,a=o.updateSyncErrors,s=!(r&&Object.keys(r).length||i),l=!(t&&Object.keys(t).length||n);s&&l||_.Z.deepEqual(r,t)&&_.Z.deepEqual(i,n)||a(t,n)},e.clearSubmitPromiseIfNeeded=function(t){var n=e.props.submitting;e.submitPromise&&n&&!t.submitting&&delete e.submitPromise},e.submitIfNeeded=function(t){var n=e.props,r=n.clearSubmit;!n.triggerSubmit&&t.triggerSubmit&&(r(),e.submit())},e.shouldErrorFunction=function(){var t=e.props,n=t.shouldValidate,
r=t.shouldError;return n!==C&&r===O?n:r},e.validateIfNeeded=function(t){var n=e.props,r=n.validate,o=n.values,i=e.shouldErrorFunction(),s=e.generateValidator();if(r||s){var u=void 0===t,c=Object.keys(e.getValidators());if(i({values:o,nextProps:t,props:e.props,initialRender:u,lastFieldValidatorKeys:e.lastFieldValidatorKeys,fieldValidatorKeys:c,structure:re})){var f=u||!t?e.props:t,d=l()(r&&r(f.values,f)||{},s&&s(f.values,f)||{}),p=d._error,h=(0,a.Z)(d,["_error"]);e.lastFieldValidatorKeys=c,e.updateSyncErrorsIfNeeded(h,
p,f.syncErrors)}}else e.lastFieldValidatorKeys=[]},e.updateSyncWarningsIfNeeded=function(t,n,r){var o=e.props,i=o.warning,a=o.updateSyncWarnings,s=!(r&&Object.keys(r).length||i),l=!(t&&Object.keys(t).length||n);s&&l||_.Z.deepEqual(r,t)&&_.Z.deepEqual(i,n)||a(t,n)},e.shouldWarnFunction=function(){var t=e.props,n=t.shouldValidate,r=t.shouldWarn;return n!==C&&r===E?n:r},e.warnIfNeeded=function(t){var n=e.props,r=n.warn,o=n.values,i=e.shouldWarnFunction(),s=e.generateWarner();if(r||s){var u=void 0===
t,c=Object.keys(e.getWarners());if(i({values:o,nextProps:t,props:e.props,initialRender:u,lastFieldValidatorKeys:e.lastFieldWarnerKeys,fieldValidatorKeys:c,structure:re})){var f=u||!t?e.props:t,d=l()(r?r(f.values,f):{},s?s(f.values,f):{}),p=d._warning,h=(0,a.Z)(d,["_warning"]);e.lastFieldWarnerKeys=c,e.updateSyncWarningsIfNeeded(h,p,f.syncWarnings)}}},e.getValues=function(){return e.props.values},e.isValid=function(){return e.props.valid},e.isPristine=function(){return e.props.pristine},e.register=
function(t,n,r,o){var i=(e.fieldCounts[t]||0)+1;e.fieldCounts[t]=i,e.props.registerField(t,n),r&&(e.fieldValidators[t]=r),o&&(e.fieldWarners[t]=o)},e.unregister=function(t){var n=e.fieldCounts[t];if(1===n?delete e.fieldCounts[t]:null!=n&&(e.fieldCounts[t]=n-1),!e.destroyed){var r=e.props,o=r.destroyOnUnmount,i=r.forceUnregisterOnUnmount,a=r.unregisterField;o||i?(a(t,o),e.fieldCounts[t]||(delete e.fieldValidators[t],delete e.fieldWarners[t],e.lastFieldValidatorKeys=e.lastFieldValidatorKeys.filter(function(e){return e!==
t}))):a(t,!1)}},e.getFieldList=function(t){var n=e.props.registeredFields;if(!n)return[];var r=le(n);return t&&(t.excludeFieldArray&&(r=r.filter(function(e){return"FieldArray"!==ae(n,"['"+e+"'].type")})),t.excludeUnregistered&&(r=r.filter(function(e){return 0!==ae(n,"['"+e+"'].count")}))),ce(r)},e.getValidators=function(){var t={};return Object.keys(e.fieldValidators).forEach(function(n){var r=e.fieldValidators[n]();r&&(t[n]=r)}),t},e.generateValidator=function(){var t=e.getValidators();return Object.keys(t).length?
A(t,re):void 0},e.getWarners=function(){var t={};return Object.keys(e.fieldWarners).forEach(function(n){var r=e.fieldWarners[n]();r&&(t[n]=r)}),t},e.generateWarner=function(){var t=e.getWarners();return Object.keys(t).length?A(t,re):void 0},e.asyncValidate=function(t,n,r){var o,i,a=e.props,s=a.asyncBlurFields,l=a.asyncChangeFields,u=a.asyncErrors,c=a.asyncValidate,f=a.dispatch,d=a.initialized,p=a.pristine,h=a.shouldAsyncValidate,g=a.startAsyncValidation,v=a.stopAsyncValidation,y=a.syncErrors,b=a.values,
w=!t;if(c){var x=w?b:se(b,t,n),k=w||!ae(y,t);if(o=s&&t&&~s.indexOf(t.replace(/\[[0-9]+]/g,"[]")),i=l&&t&&~l.indexOf(t.replace(/\[[0-9]+]/g,"[]")),(w||!s&&!l||("blur"===r?o:i))&&h({asyncErrors:u,initialized:d,trigger:w?"submit":r,blurredField:t,pristine:p,syncValidationPasses:k}))return function(e,t,n,r){t(r);var o=e();if(!m()(o))throw new Error("asyncValidate function passed to reduxForm must return a promise");var i=function(e){return function(t){if(e){if(t&&Object.keys(t).length)return n(t),t;throw n(),
new Error("Asynchronous validation promise was rejected without errors.");}return n(),Promise.resolve()}};return o.then(i(!1),i(!0))}(function(){return c(x,f,e.props,t)},g,v,t)}},e.submitCompleted=function(t){return delete e.submitPromise,t},e.submitFailed=function(t){throw delete e.submitPromise,t;},e.listenToSubmit=function(t){return m()(t)?(e.submitPromise=t,t.then(e.submitCompleted,e.submitFailed)):t},e.submit=function(t){var n,r=e.props,o=r.onSubmit,a=r.blur,s=r.change,l=r.dispatch;return t&&
!T(t)?(n=function(){return!e.submitPromise&&e.listenToSubmit(j(te(t),(0,i.Z)({},e.props,{},(0,x.DE)({blur:a,change:s},l)),e.props.validExceptSubmit,e.asyncValidate,e.getFieldList({excludeFieldArray:!0,excludeUnregistered:!0})))},function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return T(e)?n.apply(void 0,r):n.apply(void 0,[e].concat(r))}):e.submitPromise?void 0:e.innerOnSubmit&&e.innerOnSubmit!==e.submit?e.innerOnSubmit():e.listenToSubmit(j(te(o),(0,i.Z)({},
e.props,{},(0,x.DE)({blur:a,change:s},l)),e.props.validExceptSubmit,e.asyncValidate,e.getFieldList({excludeFieldArray:!0,excludeUnregistered:!0})))},e.reset=function(){return e.props.reset()},(0,I.Z)()||(e.initializedOnLoad=e.initIfNeeded()),h()(e.props.shouldValidate,"shouldValidate() is deprecated and will be removed in v9.0.0. Use shouldWarn() or shouldError() instead."),e}(0,o.Z)(r,n);var s=r.prototype;return s.UNSAFE_componentWillReceiveProps=function(e){if(!this.initIfNeeded(e)){this.validateIfNeeded(e),
this.warnIfNeeded(e),this.clearSubmitPromiseIfNeeded(e),this.submitIfNeeded(e);var t=e.onChange,n=e.values,r=e.dispatch;t&&!oe(n,this.props.values)&&t(n,r,e,this.props.values)}},s.shouldComponentUpdate=function(e){var n=this;if(!this.props.pure)return!0;var r=t.immutableProps,o=void 0===r?[]:r;return!!(this.props.children||e.children||Object.keys(e).some(function(t){return~o.indexOf(t)?n.props[t]!==e[t]:!~ee.indexOf(t)&&!oe(n.props[t],e[t])}))},s.componentDidMount=function(){if(!(0,I.Z)()){if(this.initializedOnLoad)return;
this.validateIfNeeded(),this.warnIfNeeded()}h()(this.props.shouldValidate,"shouldValidate() is deprecated and will be removed in v9.0.0. Use shouldWarn() or shouldError() instead.")},s.componentWillUnmount=function(){var e=this.props,t=e.destroyOnUnmount,n=e.destroy;t&&!(0,I.Z)()&&(this.destroyed=!0,n())},s.render=function(){var t,n,r=this,o=this.props,s=o.anyTouched,l=o.array,u=(o.arrayInsert,o.arrayMove,o.arrayPop,o.arrayPush,o.arrayRemove,o.arrayRemoveAll,o.arrayShift,o.arraySplice,o.arraySwap,
o.arrayUnshift,o.asyncErrors,o.asyncValidate,o.asyncValidating),c=o.blur,f=o.change,d=o.clearSubmit,p=o.destroy,h=(o.destroyOnUnmount,o.forceUnregisterOnUnmount,o.dirty),g=o.dispatch,m=(o.enableReinitialize,o.error),v=(o.focus,o.form),y=(o.getFormState,o.immutableProps,o.initialize),w=o.initialized,k=o.initialValues,S=o.invalid,C=(o.keepDirtyOnReinitialize,o.keepValues,o.updateUnregisteredFields,o.pristine),O=o.propNamespace,E=(o.registeredFields,o.registerField,o.reset),M=o.resetSection,T=(o.setSubmitFailed,
o.setSubmitSucceeded,o.shouldAsyncValidate,o.shouldValidate,o.shouldError,o.shouldWarn,o.startAsyncValidation,o.startSubmit,o.stopAsyncValidation,o.stopSubmit,o.submitAsSideEffect),_=o.submitting,A=o.submitFailed,P=o.submitSucceeded,D=o.touch,N=(o.touchOnBlur,o.touchOnChange,o.persistentSubmitErrors,o.syncErrors,o.syncWarnings,o.unregisterField,o.untouch),R=(o.updateSyncErrors,o.updateSyncWarnings,o.valid),L=(o.validExceptSubmit,o.values,o.warning),j=(0,a.Z)(o,["anyTouched","array","arrayInsert",
"arrayMove","arrayPop","arrayPush","arrayRemove","arrayRemoveAll","arrayShift","arraySplice","arraySwap","arrayUnshift","asyncErrors","asyncValidate","asyncValidating","blur","change","clearSubmit","destroy","destroyOnUnmount","forceUnregisterOnUnmount","dirty","dispatch","enableReinitialize","error","focus","form","getFormState","immutableProps","initialize","initialized","initialValues","invalid","keepDirtyOnReinitialize","keepValues","updateUnregisteredFields","pristine","propNamespace","registeredFields",
"registerField","reset","resetSection","setSubmitFailed","setSubmitSucceeded","shouldAsyncValidate","shouldValidate","shouldError","shouldWarn","startAsyncValidation","startSubmit","stopAsyncValidation","stopSubmit","submitAsSideEffect","submitting","submitFailed","submitSucceeded","touch","touchOnBlur","touchOnChange","persistentSubmitErrors","syncErrors","syncWarnings","unregisterField","untouch","updateSyncErrors","updateSyncWarnings","valid","validExceptSubmit","values","warning"]),I=(0,i.Z)({array:l,
anyTouched:s,asyncValidate:this.asyncValidate,asyncValidating:u},(0,x.DE)({blur:c,change:f},g),{clearSubmit:d,destroy:p,dirty:h,dispatch:g,error:m,form:v,handleSubmit:this.submit,initialize:y,initialized:w,initialValues:k,invalid:S,pristine:C,reset:E,resetSection:M,submitting:_,submitAsSideEffect:T,submitFailed:A,submitSucceeded:P,touch:D,untouch:N,valid:R,warning:L}),z=(0,i.Z)({},O?((t={})[O]=I,t):I,{},j);n=e,Boolean(n&&n.prototype&&"object"==typeof n.prototype.isReactComponent)&&(z.ref=this.wrapped);
var H=(0,i.Z)({},this.props,{getFormState:function(e){return ae(r.props.getFormState(e),r.props.form)},asyncValidate:this.asyncValidate,getValues:this.getValues,sectionPrefix:void 0,register:this.register,unregister:this.unregister,registerInnerOnSubmit:function(e){return r.innerOnSubmit=e}});return(0,b.createElement)(F.kT.Provider,{value:H,children:(0,b.createElement)(e,z)})},r}(b.Component);s.displayName="Form("+((n=e).displayName||n.name||"Component")+")",s.WrappedComponent=e,s.propTypes={destroyOnUnmount:y().bool,
forceUnregisterOnUnmount:y().bool,form:y().string.isRequired,immutableProps:y().arrayOf(y().string),initialValues:y().oneOfType([y().array,y().object]),getFormState:y().func,onSubmitFail:y().func,onSubmitSuccess:y().func,propNamespace:y().string,validate:y().func,warn:y().func,touchOnBlur:y().bool,touchOnChange:y().bool,triggerSubmit:y().bool,persistentSubmitErrors:y().bool,registeredFields:y().any};var u=(0,w.$j)(function(e,t){var n=t.form,r=t.getFormState,o=t.initialValues,i=t.enableReinitialize,
a=t.keepDirtyOnReinitialize,s=ae(r(e)||ie,n)||ie,l=ae(s,"initial"),u=!!l,c=i&&u&&!oe(o,l),f=c&&!a,d=o||l||ie;c||(d=l||ie);var p=ae(s,"values")||d;f&&(p=d);var h=f||oe(d,p),g=ae(s,"asyncErrors"),m=ae(s,"syncErrors")||_.Z.empty,v=ae(s,"syncWarnings")||_.Z.empty,y=ae(s,"registeredFields"),b=fe(n,r,!1)(e),w=fe(n,r,!0)(e),x=!!ae(s,"anyTouched"),k=!!ae(s,"submitting"),S=!!ae(s,"submitFailed"),C=!!ae(s,"submitSucceeded"),O=ae(s,"error"),E=ae(s,"warning"),M=ae(s,"triggerSubmit");return{anyTouched:x,asyncErrors:g,
asyncValidating:ae(s,"asyncValidating")||!1,dirty:!h,error:O,initialized:u,invalid:!b,pristine:h,registeredFields:y,submitting:k,submitFailed:S,submitSucceeded:C,syncErrors:m,syncWarnings:v,triggerSubmit:M,values:p,valid:b,validExceptSubmit:w,warning:E}},function(e,t){var n=function(e){return e.bind(null,t.form)},r=c()(X,n),o=c()(Q,n),a=n(J),s=(0,x.DE)(r,e),l={insert:(0,x.DE)(o.arrayInsert,e),move:(0,x.DE)(o.arrayMove,e),pop:(0,x.DE)(o.arrayPop,e),push:(0,x.DE)(o.arrayPush,e),remove:(0,x.DE)(o.arrayRemove,
e),removeAll:(0,x.DE)(o.arrayRemoveAll,e),shift:(0,x.DE)(o.arrayShift,e),splice:(0,x.DE)(o.arraySplice,e),swap:(0,x.DE)(o.arraySwap,e),unshift:(0,x.DE)(o.arrayUnshift,e)};return(0,i.Z)({},s,{},o,{blur:function(e,n){return Y(t.form,e,n,!!t.touchOnBlur)},change:function(e,n){return G(t.form,e,n,!!t.touchOnChange,!!t.persistentSubmitErrors)},array:l,focus:a,dispatch:e})},void 0,{forwardRef:!0}),f=d()(u(s),e);f.defaultProps=t;var p=function(e){function t(){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).ref=b.createRef(),t}(0,o.Z)(t,e);var n=t.prototype;return n.submit=function(){return this.ref.current&&this.ref.current.submit()},n.reset=function(){this.ref&&this.ref.current.reset()},n.render=function(){var e=this.props,t=e.initialValues,n=(0,a.Z)(e,["initialValues"]);return(0,b.createElement)(f,(0,i.Z)({},n,{ref:this.ref,initialValues:ue(t)}))},(0,r.Z)(t,[{key:"valid",get:function(){return!(!this.ref.current||!this.ref.current.isValid())}},
{key:"invalid",get:function(){return!this.valid}},{key:"pristine",get:function(){return!(!this.ref.current||!this.ref.current.isPristine())}},{key:"dirty",get:function(){return!this.pristine}},{key:"values",get:function(){return this.ref.current?this.ref.current.getValues():ie}},{key:"fieldList",get:function(){return this.ref.current?this.ref.current.getFieldList():[]}},{key:"wrappedInstance",get:function(){return this.ref.current&&this.ref.current.wrapped.current}}]),t}(b.Component),g=d()((0,F.V5)(p),
e);return g.defaultProps=t,g}});var re,oe,ie,ae,se,le,ue,ce,fe},4892:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(84),o=n.n(r),i=n(7462),a=function e(t,n,r,o){var a;if(o>=r.length)return n;var s=r[o],l=e(t&&(Array.isArray(t)?t[Number(s)]:t[s]),n,r,o+1);if(!t){var u;if(isNaN(s))return(u={})[s]=l,u;var c=[];return c[parseInt(s,10)]=l,c}if(Array.isArray(t)){var f=[].concat(t);return f[parseInt(s,10)]=l,f}return(0,i.Z)({},t,((a={})[s]=l,a))},s=n(4293),l=n.n(s),u=n(8368),c=n.n(u),f=n(7294),d=function(e){return l()(e)||
""===e||isNaN(e)},p=function(e,t){return e===t||(e||t?(!e||!t||e._error===t._error)&&(!e||!t||e._warning===t._warning)&&!f.isValidElement(e)&&!f.isValidElement(t)&&void 0:d(e)===d(t))};function h(e,t){if(null==e||null==t)return e;for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(r.length){if(Array.isArray(e)){if(isNaN(t))throw new Error('Must access array elements with a number, not "'+String(t)+'".');var a=Number(t);if(a<e.length){var s=h.apply(void 0,[e&&e[a]].concat(r));
if(s!==e[a]){var l=[].concat(e);return l[a]=s,l}}return e}if(t in e){var u,c=h.apply(void 0,[e&&e[t]].concat(r));return e[t]===c?e:(0,i.Z)({},e,((u={})[t]=c,u))}return e}if(Array.isArray(e)){if(isNaN(t))throw new Error('Cannot delete non-numerical index from an array. Given: "'+String(t));var f=Number(t);if(f<e.length){var d=[].concat(e);return d.splice(f,1),d}return e}if(t in e){var p=(0,i.Z)({},e);return delete p[t],p}return e}const g={allowsArrayErrors:!0,empty:{},emptyList:[],getIn:function(e,
t){if(!e)return e;var n=o()(t),r=n.length;if(r){for(var i=e,a=0;a<r&&i;++a)i=i[n[a]];return i}},setIn:function(e,t,n){return a(e,n,o()(t),0)},deepEqual:function(e,t){return c()(e,t,p)},deleteIn:function(e,t){return h.apply(void 0,[e].concat(o()(t)))},forEach:function(e,t){return e.forEach(t)},fromJS:function(e){return e},keys:function(e){return e?Array.isArray(e)?e.map(function(e){return e.name}):Object.keys(e):[]},size:function(e){return e?e.length:0},some:function(e,t){return e.some(t)},splice:function(e,
t,n,r){if(t<(e=e||[]).length){if(void 0===r&&!n){var o=[].concat(e);return o.splice(t,0,!0),o[t]=void 0,o}if(null!=r){var i=[].concat(e);return i.splice(t,n,r),i}var a=[].concat(e);return a.splice(t,n),a}if(n)return e;var s=[].concat(e);return s[t]=r,s},equals:function(e,t){return t.every(function(t){return~e.indexOf(t)})},orderChanged:function(e,t){return t.some(function(t,n){return t!==e[n]})},toJS:function(e){return e}}},5078:(e,t,n)=>{n.d(t,{Z:()=>r}),e=n.hmd(e);const r=function(){var t=e;return!(!t||
!t.hot||"function"!=typeof t.hot.status||"apply"!==t.hot.status())}},6525:(e,t,n)=>{n.d(t,{Z:()=>r});const r=function(e,t){var n=e._reduxForm.sectionPrefix;return n?n+"."+t:t}},6376:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(9864);const o=function(e,t,n){return(0,r.isValidElementType)(e[t])?null:new Error("Invalid prop `"+t+"` supplied to `"+n+"`.")}},2236:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ActionCreators=t.ActionTypes=void 0;var n={UNDO:"@@redux-undo/UNDO",REDO:"@@redux-undo/REDO",
JUMP_TO_FUTURE:"@@redux-undo/JUMP_TO_FUTURE",JUMP_TO_PAST:"@@redux-undo/JUMP_TO_PAST",JUMP:"@@redux-undo/JUMP",CLEAR_HISTORY:"@@redux-undo/CLEAR_HISTORY"};t.ActionTypes=n;var r={undo:function(){return{type:n.UNDO}},redo:function(){return{type:n.REDO}},jumpToFuture:function(e){return{type:n.JUMP_TO_FUTURE,index:e}},jumpToPast:function(e){return{type:n.JUMP_TO_PAST,index:e}},jump:function(e){return{type:n.JUMP,index:e}},clearHistory:function(){return{type:n.CLEAR_HISTORY}}};t.ActionCreators=r},8823:(e,
t)=>{function n(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(){throw new TypeError("Invalid attempt to spread non-iterable instance");}()}var r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.set=function(e){r=e},t.start=function(e,t){o={header:[],prev:[],action:[],next:[],msgs:[]},r&&(console.group?
(o.header=["%credux-undo","font-style: italic","action",e.type],o.action=a("action",i.action,e),o.prev=a("prev history",i.prevState,t)):(o.header=["redux-undo action",e.type],o.action=["action",e],o.prev=["prev history",t]))},t.end=function(e){var t,s,l,u,c,f,d,p,h,g,m,v,y,b,w,x;r&&(console.group?o.next=a("next history",i.nextState,e):o.next=["next history",e],v=(m=o).header,y=m.prev,b=m.next,w=m.action,x=m.msgs,console.group?((t=console).groupCollapsed.apply(t,n(v)),(s=console).log.apply(s,n(y)),
(l=console).log.apply(l,n(w)),(u=console).log.apply(u,n(b)),(c=console).log.apply(c,n(x)),console.groupEnd()):((f=console).log.apply(f,n(v)),(d=console).log.apply(d,n(y)),(p=console).log.apply(p,n(w)),(h=console).log.apply(h,n(b)),(g=console).log.apply(g,n(x))))},t.log=function(){if(r){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];o.msgs=o.msgs.concat([].concat(t,["\n"]))}};var i={prevState:"#9E9E9E",action:"#03A9F4",nextState:"#4CAF50"};function a(e,t,n){return["%c".concat(e),
"color: ".concat(t,"; font-weight: bold"),n]}},1619:(e,t)=>{function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Array.isArray(e)?e:"string"==typeof e?[e]:t}Object.defineProperty(t,"__esModule",{value:!0}),t.parseActions=n,t.isHistory=function(e){return void 0!==e.present&&void 0!==e.future&&void 0!==e.past&&Array.isArray(e.future)&&Array.isArray(e.past)},t.includeAction=function(e){var t=n(e);return function(e){return t.indexOf(e.type)>=0}},t.excludeAction=function(e){var t=
n(e);return function(e){return t.indexOf(e.type)<0}},t.combineFilters=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(e,t){return function(n,r,o){return e(n,r,o)&&t(n,r,o)}},function(){return!0})},t.groupByActionTypes=function(e){var t=n(e);return function(e){return t.indexOf(e.type)>=0?e.type:null}},t.newHistory=function(e,t,n){return{past:e,present:t,future:n,group:arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,_latestUnfiltered:t,
index:e.length,limit:e.length+n.length+1}}},1090:(e,t,n)=>{Object.defineProperty(t,"ZP",{enumerable:!0,get:function(){return o.default}}),n(2236),n(1619);var r,o=(r=n(2479))&&r.__esModule?r:{default:r}},2479:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=
function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o.set(t.debug);var n,r=u({limit:void 0,filter:function(){return!0},groupBy:function(){return null},undoType:i.ActionTypes.UNDO,redoType:i.ActionTypes.REDO,jumpToPastType:i.ActionTypes.JUMP_TO_PAST,jumpToFutureType:i.ActionTypes.JUMP_TO_FUTURE,jumpType:i.ActionTypes.JUMP,neverSkipReducer:!1,ignoreInitialState:!1,syncFilter:!1},t,{initTypes:(0,a.parseActions)(t.initTypes,["@@redux-undo/INIT"]),clearHistoryType:(0,a.parseActions)(t.clearHistoryType,
[i.ActionTypes.CLEAR_HISTORY])}),s=r.neverSkipReducer?function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return u({},t,{present:e.apply(void 0,[t.present,n].concat(o))})}:function(e){return e};return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o.start(i,t);for(var l,u,c=t,m=arguments.length,v=new Array(m>2?m-2:0),y=2;y<m;y++)v[y-2]=arguments[y];if(!n){if(o.log("history is uninitialized"),
void 0===t)return c=d(e.apply(void 0,[t,{type:"@@redux-undo/CREATE_HISTORY"}].concat(v)),r.ignoreInitialState),o.log("do not set initialState on probe actions"),o.end(c),c;(0,a.isHistory)(t)?(c=n=r.ignoreInitialState?t:(0,a.newHistory)(t.past,t.present,t.future),o.log("initialHistory initialized: initialState is a history",n)):(c=n=d(t,r.ignoreInitialState),o.log("initialHistory initialized: initialState is not a history",n))}switch(i.type){case void 0:return c;case r.undoType:return l=g(c,-1),o.log("perform undo"),
o.end(l),s.apply(void 0,[l,i].concat(v));case r.redoType:return l=g(c,1),o.log("perform redo"),o.end(l),s.apply(void 0,[l,i].concat(v));case r.jumpToPastType:return l=h(c,i.index),o.log("perform jumpToPast to ".concat(i.index)),o.end(l),s.apply(void 0,[l,i].concat(v));case r.jumpToFutureType:return l=p(c,i.index),o.log("perform jumpToFuture to ".concat(i.index)),o.end(l),s.apply(void 0,[l,i].concat(v));case r.jumpType:return l=g(c,i.index),o.log("perform jump to ".concat(i.index)),o.end(l),s.apply(void 0,
[l,i].concat(v));case u=i.type,r.clearHistoryType.indexOf(u)>-1?u:!u:return l=d(c.present,r.ignoreInitialState),o.log("perform clearHistory"),o.end(l),s.apply(void 0,[l,i].concat(v));default:if(l=e.apply(void 0,[c.present,i].concat(v)),r.initTypes.some(function(e){return e===i.type}))return o.log("reset history due to init action"),o.end(n),n;if(c._latestUnfiltered===l)return c;if("function"==typeof r.filter&&!r.filter(i,l,c)){var b=(0,a.newHistory)(c.past,l,c.future,c.group);return r.syncFilter||
(b._latestUnfiltered=c._latestUnfiltered),o.log("filter ignored action, not storing it in past"),o.end(b),b}var w=r.groupBy(i,l,c);if(null!=w&&w===c.group){var x=(0,a.newHistory)(c.past,l,c.future,c.group);return o.log("groupBy grouped the action with the previous action"),o.end(x),x}return c=function(e,t,n,r){var i=e.past.length+1;o.log("inserting",t),o.log("new free: ",n-i);var s=e.past,l=e._latestUnfiltered,u=n&&n<=i,c=s.slice(u?1:0),d=null!=l?[].concat(f(c),[l]):c;return(0,a.newHistory)(d,t,[],
r)}(c,l,r.limit,w),o.log("inserted new state into history"),o.end(c),c}}};var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(8823)),
i=n(2236),a=n(1619);function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?
Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(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(){throw new TypeError("Invalid attempt to spread non-iterable instance");}()}function d(e,t){var n=(0,a.newHistory)([],e,[]);return t&&(n._latestUnfiltered=null),n}function p(e,t){if(t<0||t>=e.future.length)return e;var n=e.past,r=e.future,o=e._latestUnfiltered,i=[].concat(f(n),[o],f(r.slice(0,t))),s=r[t],l=r.slice(t+1);return(0,a.newHistory)(i,s,l)}function h(e,t){if(t<0||t>=e.past.length)return e;var n=e.past,r=e.future,o=e._latestUnfiltered,i=n.slice(0,t),s=[].concat(f(n.slice(t+1)),[o],
f(r)),l=n[t];return(0,a.newHistory)(i,l,s)}function g(e,t){return t>0?p(e,t-1):t<0?h(e,e.past.length+t):e}},4890:(e,t,n)=>{function r(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}n.d(t,{DE:()=>c,MT:()=>s,UY:()=>l});var o="function"==typeof Symbol&&Symbol.observable||"@@observable",i=function(){return Math.random().toString(36).substring(7).split("").join(".")},a={INIT:"@@redux/INIT"+
i(),REPLACE:"@@redux/REPLACE"+i(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+i()}};function s(e,t,n){var i;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(r(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(r(1));return n(s)(e,t)}if("function"!=typeof e)throw new Error(r(2));var l=e,u=t,c=[],f=c,d=!1;function p(){f===c&&(f=c.slice())}function h(){if(d)throw new Error(r(3));
return u}function g(e){if("function"!=typeof e)throw new Error(r(4));if(d)throw new Error(r(5));var t=!0;return p(),f.push(e),function(){if(t){if(d)throw new Error(r(6));t=!1,p();var n=f.indexOf(e);f.splice(n,1),c=null}}}function m(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(r(7));if(void 0===e.type)throw new Error(r(8));if(d)throw new Error(r(9));try{d=!0,
u=l(u,e)}finally{d=!1}for(var t=c=f,n=0;n<t.length;n++)(0,t[n])();return e}return m({type:a.INIT}),(i={dispatch:m,subscribe:g,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error(r(10));l=e,m({type:a.REPLACE})}})[o]=function(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(r(11));function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[o]=function(){return this},e},i}function l(e){for(var t=Object.keys(e),n={},o=0;o<t.length;o++){var i=
t[o];"function"==typeof e[i]&&(n[i]=e[i])}var s,l=Object.keys(n);try{!function(e){Object.keys(e).forEach(function(t){var n=e[t];if(void 0===n(void 0,{type:a.INIT}))throw new Error(r(12));if(void 0===n(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13));})}(n)}catch(e){s=e}return function(e,t){if(void 0===e&&(e={}),s)throw s;for(var o=!1,i={},a=0;a<l.length;a++){var u=l[a],c=n[u],f=e[u],d=c(f,t);if(void 0===d)throw t&&t.type,new Error(r(14));i[u]=d,o=o||d!==f}return(o=o||l.length!==Object.keys(e).length)?
i:e}}function u(e,t){return function(){return t(e.apply(this,arguments))}}function c(e,t){if("function"==typeof e)return u(e,t);if("object"!=typeof e||null===e)throw new Error(r(16));var n={};for(var o in e){var i=e[o];"function"==typeof i&&(n[o]=u(i,t))}return n}},3697:(e,t,n)=>{var r=n(5972).functionsHaveConfigurableNames(),o=Object,i=TypeError;e.exports=function(){if(null!=this&&this!==o(this))throw new i("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+=
"d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.unicodeSets&&(e+="v"),this.sticky&&(e+="y"),e},r&&Object.defineProperty&&Object.defineProperty(e.exports,"name",{value:"get flags"})},2847:(e,t,n)=>{var r=n(4289),o=n(5559),i=n(3697),a=n(1721),s=n(2753),l=o(a());r(l,{getPolyfill:a,implementation:i,shim:s}),e.exports=l},1721:(e,t,n)=>{var r=n(3697),o=n(4289).supportsDescriptors,i=Object.getOwnPropertyDescriptor;e.exports=
function(){if(o&&"gim"===/a/gim.flags){var e=i(RegExp.prototype,"flags");if(e&&"function"==typeof e.get&&"boolean"==typeof RegExp.prototype.dotAll&&"boolean"==typeof RegExp.prototype.hasIndices){var t="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(n,"sticky",{get:function(){t+="y"}}),"dy"===t)return e.get}}return r}},2753:(e,t,n)=>{var r=n(4289).supportsDescriptors,o=n(1721),i=Object.getOwnPropertyDescriptor,a=Object.defineProperty,s=TypeError,l=Object.getPrototypeOf,
u=/a/;e.exports=function(){if(!r||!l)throw new s("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=o(),t=l(u),n=i(t,"flags");return n&&n.get===e||a(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},53:(e,t)=>{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,l=s.now();t.unstable_now=function(){return s.now()-l}}if("undefined"==typeof window||
"function"!=typeof MessageChannel){var u=null,c=null,f=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(f,0),e;}};n=function(e){null!==u?setTimeout(n,0,e):(u=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,m=null,v=-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,x=w.port2;w.port1.onmessage=function(){if(null!==m){var e=t.unstable_now();b=e+y;try{m(!0,e)?x.postMessage(null):(g=!1,m=null)}catch(e){throw x.postMessage(null),e;}}else g=!1},n=function(e){m=e,g||(g=!0,x.postMessage(null))},r=function(e,n){v=d(function(){e(t.unstable_now())},n)},o=function(){p(v),v=-1}}function k(e,
t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<O(o,t)))break e;e[r]=t,e[n]=o,n=r}}function S(e){return void 0===(e=e[0])?null:e}function C(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,l=e[s];if(void 0!==a&&0>O(a,n))void 0!==l&&0>O(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==l&&0>O(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function O(e,t){var n=e.sortIndex-t.sortIndex;
return 0!==n?n:e.id-t.id}var E=[],M=[],T=1,_=null,A=3,P=!1,D=!1,N=!1;function R(e){for(var t=S(M);null!==t;){if(null===t.callback)C(M);else{if(!(t.startTime<=e))break;C(M),t.sortIndex=t.expirationTime,k(E,t)}t=S(M)}}function L(e){if(N=!1,R(e),!D)if(null!==S(E))D=!0,n(j);else{var t=S(M);null!==t&&r(L,t.startTime-e)}}function j(e,n){D=!1,N&&(N=!1,o()),P=!0;var i=A;try{for(R(n),_=S(E);null!==_&&(!(_.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=_.callback;if("function"==typeof a){_.callback=
null,A=_.priorityLevel;var s=a(_.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?_.callback=s:_===S(E)&&C(E),R(n)}else C(E);_=S(E)}if(null!==_)var l=!0;else{var u=S(M);null!==u&&r(L,u.startTime-n),l=!1}return l}finally{_=null,A=i,P=!1}}var I=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(){D||P||(D=!0,n(j))},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_getFirstCallbackNode=function(){return S(E)},t.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=I,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=A;A=e;try{return t()}finally{A=n}},t.unstable_scheduleCallback=
function(e,i,a){var s=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?s+a:s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1E4;break;default:l=5E3}return e={id:T++,callback:i,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>s?(e.sortIndex=a,k(M,e),null===S(E)&&e===S(M)&&(N?o():N=!0,r(L,a-s))):(e.sortIndex=l,k(E,e),D||P||(D=!0,n(j))),e},t.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;
try{return e.apply(this,arguments)}finally{A=n}}}},3840:(e,t,n)=>{e.exports=n(53)},7061:(e,t,n)=>{var r=n(8698).default;function o(){e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,
t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),s=new T(r||[]);return a(i,"_invoke",{value:C(e,n,s)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var h={};function g(){}function m(){}function v(){}var y={};f(y,l,function(){return this});var b=Object.getPrototypeOf,w=b&&b(b(_([])));w&&
w!==n&&i.call(w,l)&&(y=w);var x=v.prototype=g.prototype=Object.create(y);function k(e){["next","throw","return"].forEach(function(t){f(e,t,function(e){return this._invoke(t,e)})})}function S(e,t){function n(o,a,s,l){var u=p(e[o],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==r(f)&&i.call(f,"__await")?t.resolve(f.__await).then(function(e){n("next",e,s,l)},function(e){n("throw",e,s,l)}):t.resolve(f).then(function(e){c.value=e,s(c)},function(e){return n("throw",e,s,l)})}l(u.arg)}
var o;a(this,"_invoke",{value:function(e,r){function i(){return new t(function(t,o){n(e,r,t,o)})}return o=o?o.then(i,i):i()}})}function C(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===
r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=p(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function O(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==n&&
(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=p(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,h;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=
e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function _(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:A}}function A(){return{value:void 0,
done:!0}}return m.prototype=v,a(x,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:m,configurable:!0}),m.displayName=f(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,f(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},k(S.prototype),
f(S.prototype,u,function(){return this}),t.AsyncIterator=S,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new S(d(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},k(x),f(x,c,"Generator"),f(x,l,function(){return this}),f(x,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=
!1,e}return e.done=!0,e}},t.values=_,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(M),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;
function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");
if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===
e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw new Error("illegal catch attempt");
},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},8698:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}
e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4687:(e,t,n)=>{var r=n(7061)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},8207:function(e){e.exports=function(){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}
var t=/^\s+/,n=/\s+$/;function r(o,i){if(i=i||{},(o=o||"")instanceof r)return o;if(!(this instanceof r))return new r(o,i);var a=function(r){var o,i,a,s={r:0,g:0,b:0},l=1,u=null,c=null,f=null,d=!1,p=!1;return"string"==typeof r&&(r=function(e){e=e.replace(t,"").replace(n,"").toLowerCase();var r,o=!1;if(w[e])e=w[e],o=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(r=N.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=N.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=N.hsl.exec(e))?{h:r[1],
s:r[2],l:r[3]}:(r=N.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=N.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=N.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=N.hex8.exec(e))?{r:O(r[1]),g:O(r[2]),b:O(r[3]),a:_(r[4]),format:o?"name":"hex8"}:(r=N.hex6.exec(e))?{r:O(r[1]),g:O(r[2]),b:O(r[3]),format:o?"name":"hex"}:(r=N.hex4.exec(e))?{r:O(r[1]+""+r[1]),g:O(r[2]+""+r[2]),b:O(r[3]+""+r[3]),a:_(r[4]+""+r[4]),format:o?"name":"hex8"}:!!(r=N.hex3.exec(e))&&{r:O(r[1]+""+r[1]),g:O(r[2]+""+r[2]),b:O(r[3]+""+r[3]),
format:o?"name":"hex"}}(r)),"object"==e(r)&&(R(r.r)&&R(r.g)&&R(r.b)?(o=r.r,i=r.g,a=r.b,s={r:255*S(o,255),g:255*S(i,255),b:255*S(a,255)},d=!0,p="%"===String(r.r).substr(-1)?"prgb":"rgb"):R(r.h)&&R(r.s)&&R(r.v)?(u=M(r.s),c=M(r.v),s=function(e,t,n){e=6*S(e,360),t=S(t,100),n=S(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6;return{r:255*[n,a,i,i,s,n][l],g:255*[s,n,n,a,i,i][l],b:255*[i,i,s,n,n,a][l]}}(r.h,u,c),d=!0,p="hsv"):R(r.h)&&R(r.s)&&R(r.l)&&(u=M(r.s),f=M(r.l),s=function(e,
t,n){var r,o,i;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=S(e,360),t=S(t,100),n=S(n,100),0===t)r=o=i=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=a(l,s,e+1/3),o=a(l,s,e),i=a(l,s,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(r.h,u,f),d=!0,p="hsl"),r.hasOwnProperty("a")&&(l=r.a)),l=k(l),{ok:d,format:r.format||p,r:Math.min(255,Math.max(s.r,0)),g:Math.min(255,Math.max(s.g,0)),b:Math.min(255,Math.max(s.b,0)),a:l}}(o);this._originalInput=o,this._r=
a.r,this._g=a.g,this._b=a.b,this._a=a.a,this._roundA=Math.round(100*this._a)/100,this._format=i.format||a.format,this._gradientType=i.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=a.ok}function o(e,t,n){e=S(e,255),t=S(t,255),n=S(n,255);var r,o,i=Math.max(e,t,n),a=Math.min(e,t,n),s=(i+a)/2;if(i==a)r=o=0;else{var l=i-a;switch(o=s>.5?l/(2-i-a):l/(i+a),i){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/
l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,l:s}}function i(e,t,n){e=S(e,255),t=S(t,255),n=S(n,255);var r,o,i=Math.max(e,t,n),a=Math.min(e,t,n),s=i,l=i-a;if(o=0===i?0:l/i,i==a)r=0;else{switch(i){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,v:s}}function a(e,t,n,r){var o=[E(Math.round(e).toString(16)),E(Math.round(t).toString(16)),E(Math.round(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==
o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function s(e,t,n,r){return[E(T(r)),E(Math.round(e).toString(16)),E(Math.round(t).toString(16)),E(Math.round(n).toString(16))].join("")}function l(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.s-=t/100,n.s=C(n.s),r(n)}function u(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.s+=t/100,n.s=C(n.s),r(n)}function c(e){return r(e).desaturate(100)}function f(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.l+=t/100,n.l=C(n.l),r(n)}
function d(e,t){t=0===t?0:t||10;var n=r(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),r(n)}function p(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.l-=t/100,n.l=C(n.l),r(n)}function h(e,t){var n=r(e).toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,r(n)}function g(e){var t=r(e).toHsl();return t.h=(t.h+180)%360,r(t)}function m(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");
for(var n=r(e).toHsl(),o=[r(e)],i=360/t,a=1;a<t;a++)o.push(r({h:(n.h+a*i)%360,s:n.s,l:n.l}));return o}function v(e){var t=r(e).toHsl(),n=t.h;return[r(e),r({h:(n+72)%360,s:t.s,l:t.l}),r({h:(n+216)%360,s:t.s,l:t.l})]}function y(e,t,n){t=t||6,n=n||30;var o=r(e).toHsl(),i=360/n,a=[r(e)];for(o.h=(o.h-(i*t>>1)+720)%360;--t;)o.h=(o.h+i)%360,a.push(r(o));return a}function b(e,t){t=t||6;for(var n=r(e).toHsv(),o=n.h,i=n.s,a=n.v,s=[],l=1/t;t--;)s.push(r({h:o,s:i,v:a})),a=(a+l)%1;return s}r.prototype={isDark:function(){return this.getBrightness()<
128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1E3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=
.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=k(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=i(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=i(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=o(this._r,this._g,this._b);return{h:360*
e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=o(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return a(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[E(Math.round(e).toString(16)),E(Math.round(t).toString(16)),E(Math.round(n).toString(16)),E(T(r))];
return o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+
")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*S(this._r,255))+"%",g:Math.round(100*S(this._g,255))+"%",b:Math.round(100*S(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*S(this._r,255))+"%, "+Math.round(100*S(this._g,255))+"%, "+Math.round(100*S(this._b,255))+"%)":"rgba("+Math.round(100*S(this._r,255))+"%, "+Math.round(100*S(this._g,255))+
"%, "+Math.round(100*S(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(x[a(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+s(this._r,this._g,this._b,this._a),n=t,o=this._gradientType?"GradientType = 1, ":"";if(e){var i=r(e);n="#"+s(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=
0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},
clone:function(){return r(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(f,arguments)},brighten:function(){return this._applyModification(d,arguments)},darken:function(){return this._applyModification(p,arguments)},desaturate:function(){return this._applyModification(l,arguments)},saturate:function(){return this._applyModification(u,
arguments)},greyscale:function(){return this._applyModification(c,arguments)},spin:function(){return this._applyModification(h,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(y,arguments)},complement:function(){return this._applyCombination(g,arguments)},monochromatic:function(){return this._applyCombination(b,arguments)},splitcomplement:function(){return this._applyCombination(v,arguments)},triad:function(){return this._applyCombination(m,
[3])},tetrad:function(){return this._applyCombination(m,[4])}},r.fromRatio=function(t,n){if("object"==e(t)){var o={};for(var i in t)t.hasOwnProperty(i)&&(o[i]="a"===i?t[i]:M(t[i]));t=o}return r(t,n)},r.equals=function(e,t){return!(!e||!t)&&r(e).toRgbString()==r(t).toRgbString()},r.random=function(){return r.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},r.mix=function(e,t,n){n=0===n?0:n||50;var o=r(e).toRgb(),i=r(t).toRgb(),a=n/100;return r({r:(i.r-o.r)*a+o.r,g:(i.g-o.g)*a+o.g,b:(i.b-
o.b)*a+o.b,a:(i.a-o.a)*a+o.a})},r.readability=function(e,t){var n=r(e),o=r(t);return(Math.max(n.getLuminance(),o.getLuminance())+.05)/(Math.min(n.getLuminance(),o.getLuminance())+.05)},r.isReadable=function(e,t,n){var o,i,a,s,l,u=r.readability(e,t);switch(i=!1,(a=n,"AA"!==(s=((a=a||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==s&&(s="AA"),"small"!==(l=(a.size||"small").toLowerCase())&&"large"!==l&&(l="small"),o={level:s,size:l}).level+o.size){case "AAsmall":case "AAAlarge":i=u>=
4.5;break;case "AAlarge":i=u>=3;break;case "AAAsmall":i=u>=7}return i},r.mostReadable=function(e,t,n){var o,i,a,s,l=null,u=0;i=(n=n||{}).includeFallbackColors,a=n.level,s=n.size;for(var c=0;c<t.length;c++)(o=r.readability(e,t[c]))>u&&(u=o,l=r(t[c]));return r.isReadable(e,l,{level:a,size:s})||!i?l:(n.includeFallbackColors=!1,r.mostReadable(e,["#fff","#000"],n))};var w=r.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",
blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",
darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",
ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",
mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",
papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",
turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},x=r.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(w);function k(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function S(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),
n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1E-6?1:e%t/parseFloat(t)}function C(e){return Math.min(1,Math.max(0,e))}function O(e){return parseInt(e,16)}function E(e){return 1==e.length?"0"+e:""+e}function M(e){return e<=1&&(e=100*e+"%"),e}function T(e){return Math.round(255*parseFloat(e)).toString(16)}function _(e){return O(e)/255}var A,P,D,N=(P="[\\s|\\(]+("+(A="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?",D="[\\s|\\(]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+
A+")\\s*\\)?",{CSS_UNIT:new RegExp(A),rgb:new RegExp("rgb"+P),rgba:new RegExp("rgba"+D),hsl:new RegExp("hsl"+P),hsla:new RegExp("hsla"+D),hsv:new RegExp("hsv"+P),hsva:new RegExp("hsva"+D),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function R(e){return!!N.CSS_UNIT.exec(e)}
return r}()},907:(e,t,n)=>{function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},7326:(e,t,n)=>{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,{Z:()=>r})},5861:(e,t,n)=>{function r(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise(function(o,
i){var a=e.apply(t,n);function s(e){r(a,o,i,s,l,"next",e)}function l(e){r(a,o,i,s,l,"throw",e)}s(void 0)})}}n.d(t,{Z:()=>o})},5671:(e,t,n)=>{function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}n.d(t,{Z:()=>r})},3144:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(9142);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.Z)(o.key),o)}}function i(e,t,n){return t&&
o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},4942:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(9142);function o(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},7462:(e,t,n)=>{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,{Z:()=>r})},1120:(e,t,n)=>{function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:()=>r})},136:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(9611);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),
t&&(0,r.Z)(e,t)}},4578:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(9611);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},6459:(e,t,n)=>{function r(e){if(null==e)throw new TypeError("Cannot destructure "+e);}n.d(t,{Z:()=>r})},5987:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(3366);function o(e,t){if(null==e)return{};var n,o,i=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,
n)&&(i[n]=e[n])}return i}},3366:(e,t,n)=>{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,{Z:()=>r})},2963:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(1002),o=n(7326);function i(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},9611:(e,t,n)=>{function r(e,t){return r=Object.setPrototypeOf?
Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:()=>r})},885:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(181);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&
null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o;}}return s}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}()}},168:(e,t,n)=>{function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:()=>r})},2982:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(907),o=n(181);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||
function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}()}},9142:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(1002);function o(e){var t=function(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==
(0,r.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.");}return String(e)}(e);return"symbol"===(0,r.Z)(t)?t:String(t)}},1002:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},181:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(907);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,
t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},3845:(e,t,n)=>{n.d(t,{ML:()=>$e,hj:()=>re,vc:()=>Ye,NB:()=>Ge,DK:()=>Je,nU:()=>B,XP:()=>Ce,b5:()=>Oe,qv:()=>Ee,u9:()=>Te,QC:()=>_e,Nl:()=>R,Jo:()=>Se,tI:()=>Ae,Cf:()=>Ue,K9:()=>Xe,P1:()=>F,x2:()=>qe,zK:()=>Ze,S0:()=>Ke});var r=n(2376),o=n(4348),i=n(2337),a=n(7823),
s=n(8646);const l=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0),u=(e,t,n)=>{let o=function(e,t){let {$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}(e,n);if(!o)return!1;let i=d(o);if(!i){let n=o.blockRange(),r=n&&(0,s.k9)(n);return null!=r&&(t&&t(e.tr.lift(n,r).scrollIntoView()),!0)}let l=i.nodeBefore;if(!l.type.spec.isolating&&x(e,i,t))return!0;if(0==o.parent.content.size&&(c(l,"end")||r.qv.isSelectable(l))){let n=(0,s.dR)(e.doc,
o.before(),o.after(),a.p2.empty);if(n&&n.slice.size<n.to-n.from){if(t){let o=e.tr.step(n);o.setSelection(c(l,"end")?r.Y1.findFrom(o.doc.resolve(o.mapping.map(i.pos,-1)),-1):r.qv.create(o.doc,i.pos-l.nodeSize)),t(o.scrollIntoView())}return!0}}return!(!l.isAtom||i.depth!=o.depth-1||(t&&t(e.tr.delete(i.pos-l.nodeSize,i.pos).scrollIntoView()),0))};function c(e,t,n=!1){for(let r=e;r;r="start"==t?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&1!=r.childCount)return!1}return!1}const f=(e,t,n)=>
{let {$head:o,empty:i}=e.selection,a=o;if(!i)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):o.parentOffset>0)return!1;a=d(o)}let s=a&&a.nodeBefore;return!(!s||!r.qv.isSelectable(s)||(t&&t(e.tr.setSelection(r.qv.create(e.doc,a.pos-s.nodeSize)).scrollIntoView()),0))};function d(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}const p=(e,t,n)=>{let o=function(e,
t){let {$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)?null:n}(e,n);if(!o)return!1;let i=g(o);if(!i)return!1;let l=i.nodeAfter;if(x(e,i,t))return!0;if(0==o.parent.content.size&&(c(l,"start")||r.qv.isSelectable(l))){let n=(0,s.dR)(e.doc,o.before(),o.after(),a.p2.empty);if(n&&n.slice.size<n.to-n.from){if(t){let o=e.tr.step(n);o.setSelection(c(l,"start")?r.Y1.findFrom(o.doc.resolve(o.mapping.map(i.pos)),1):r.qv.create(o.doc,o.mapping.map(i.pos))),
t(o.scrollIntoView())}return!0}}return!(!l.isAtom||i.depth!=o.depth-1||(t&&t(e.tr.delete(i.pos,i.pos+l.nodeSize).scrollIntoView()),0))},h=(e,t,n)=>{let {$head:o,empty:i}=e.selection,a=o;if(!i)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):o.parentOffset<o.parent.content.size)return!1;a=g(o)}let s=a&&a.nodeAfter;return!(!s||!r.qv.isSelectable(s)||(t&&t(e.tr.setSelection(r.qv.create(e.doc,a.pos)).scrollIntoView()),0))};function g(e){if(!e.parent.type.spec.isolating)for(let t=
e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}const m=(e,t)=>{let {$head:n,$anchor:r}=e.selection;return!(!n.parent.type.spec.code||!n.sameParent(r)||(t&&t(e.tr.insertText("\n").scrollIntoView()),0))};function v(e){for(let t=0;t<e.edgeCount;t++){let {type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const y=(e,t)=>{let {$head:n,$anchor:o}=e.selection;if(!n.parent.type.spec.code||
!n.sameParent(o))return!1;let i=n.node(-1),a=n.indexAfter(-1),s=v(i.contentMatchAt(a));if(!s||!i.canReplaceWith(a,a,s))return!1;if(t){let o=n.after(),i=e.tr.replaceWith(o,o,s.createAndFill());i.setSelection(r.Y1.near(i.doc.resolve(o),1)),t(i.scrollIntoView())}return!0},b=(e,t)=>{let n=e.selection,{$from:o,$to:i}=n;if(n instanceof r.C1||o.parent.inlineContent||i.parent.inlineContent)return!1;let a=v(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let n=(!o.parentOffset&&
i.index()<i.parent.childCount?o:i).pos,s=e.tr.insert(n,a.createAndFill());s.setSelection(r.Bs.create(s.doc,n+1)),t(s.scrollIntoView())}return!0},w=(e,t)=>{let {$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if((0,s.Ax)(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),o=r&&(0,s.k9)(r);return null!=o&&(t&&t(e.tr.lift(r,o).scrollIntoView()),!0)};function x(e,t,n){let o,i,l=t.nodeBefore,u=t.nodeAfter;if(l.type.spec.isolating||
u.type.spec.isolating)return!1;if(function(e,t,n){let r=t.nodeBefore,o=t.nodeAfter,i=t.index();return!(!(r&&o&&r.type.compatibleContent(o.type))||(!r.content.size&&t.parent.canReplace(i-1,i)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),0):!t.parent.canReplace(i,i+1)||!o.isTextblock&&!(0,s.Mn)(e.doc,t.pos)||(n&&n(e.tr.clearIncompatible(t.pos,r.type,r.contentMatchAt(r.childCount)).join(t.pos).scrollIntoView()),0)))}(e,t,n))return!0;let f=t.parent.canReplace(t.index(),t.index()+1);if(f&&
(o=(i=l.contentMatchAt(l.childCount)).findWrapping(u.type))&&i.matchType(o[0]||u.type).validEnd){if(n){let r=t.pos+u.nodeSize,i=a.HY.empty;for(let e=o.length-1;e>=0;e--)i=a.HY.from(o[e].create(null,i));i=a.HY.from(l.copy(i));let c=e.tr.step(new s.FC(t.pos-1,r,t.pos,r,new a.p2(i,1,0),o.length,!0)),f=r+2*o.length;(0,s.Mn)(c.doc,f)&&c.join(f),n(c.scrollIntoView())}return!0}let d=r.Y1.findFrom(t,1),p=d&&d.$from.blockRange(d.$to),h=p&&(0,s.k9)(p);if(null!=h&&h>=t.depth)return n&&n(e.tr.lift(p,h).scrollIntoView()),
!0;if(f&&c(u,"start",!0)&&c(l,"end")){let r=l,o=[];for(;o.push(r),!r.isTextblock;)r=r.lastChild;let i=u,c=1;for(;!i.isTextblock;i=i.firstChild)c++;if(r.canReplace(r.childCount,r.childCount,i.content)){if(n){let r=a.HY.empty;for(let e=o.length-1;e>=0;e--)r=a.HY.from(o[e].copy(r));n(e.tr.step(new s.FC(t.pos-o.length,t.pos+u.nodeSize,t.pos+c,t.pos+u.nodeSize-c,new a.p2(r,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function k(e){return function(t,n){let o=t.selection,i=e<0?o.$from:o.$to,a=
i.depth;for(;i.node(a).isInline;){if(!a)return!1;a--}return!!i.node(a).isTextblock&&(n&&n(t.tr.setSelection(r.Bs.create(t.doc,e<0?i.start(a):i.end(a)))),!0)}}const S=k(-1),C=k(1);function O(e,t=null){return function(n,r){let o=!1;for(let r=0;r<n.selection.ranges.length&&!o;r++){let {$from:{pos:i},$to:{pos:a}}=n.selection.ranges[r];n.doc.nodesBetween(i,a,(r,i)=>{if(o)return!1;if(r.isTextblock&&!r.hasMarkup(e,t))if(r.type==e)o=!0;else{let t=n.doc.resolve(i),r=t.index();o=t.parent.canReplaceWith(r,r+
1,e)}})}if(!o)return!1;if(r){let o=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let {$from:{pos:i},$to:{pos:a}}=n.selection.ranges[r];o.setBlockType(i,a,e,t)}r(o.scrollIntoView())}return!0}}function E(...e){return function(t,n,r){for(let o=0;o<e.length;o++)if(e[o](t,n,r))return!0;return!1}}let M=E(l,u,f),T=E(l,p,h);const _={Enter:E(m,b,w,(e,t)=>{let {$from:n,$to:o}=e.selection;if(e.selection instanceof r.qv&&e.selection.node.isBlock)return!(!n.parentOffset||!(0,s.Ax)(e.doc,n.pos)||(t&&t(e.tr.split(n.pos).scrollIntoView()),
0));if(!n.parent.isBlock)return!1;if(t){let i=o.parentOffset==o.parent.content.size,a=e.tr;(e.selection instanceof r.Bs||e.selection instanceof r.C1)&&a.deleteSelection();let l=0==n.depth?null:v(n.node(-1).contentMatchAt(n.indexAfter(-1))),u=i&&l?[{type:l}]:void 0,c=(0,s.Ax)(a.doc,a.mapping.map(n.pos),1,u);if(u||c||!(0,s.Ax)(a.doc,a.mapping.map(n.pos),1,l?[{type:l}]:void 0)||(l&&(u=[{type:l}]),c=!0),c&&(a.split(a.mapping.map(n.pos),1,u),!i&&!n.parentOffset&&n.parent.type!=l)){let e=a.mapping.map(n.before()),
t=a.doc.resolve(e);l&&n.node(-1).canReplaceWith(t.index(),t.index()+1,l)&&a.setNodeMarkup(a.mapping.map(n.before()),l)}t(a.scrollIntoView())}return!0}),"Mod-Enter":y,Backspace:M,"Mod-Backspace":M,"Shift-Backspace":M,Delete:T,"Mod-Delete":T,"Mod-a":(e,t)=>(t&&t(e.tr.setSelection(new r.C1(e.doc))),!0)},A={"Ctrl-h":_.Backspace,"Alt-Backspace":_["Mod-Backspace"],"Ctrl-d":_.Delete,"Ctrl-Alt-Backspace":_["Mod-Delete"],"Alt-Delete":_["Mod-Delete"],"Alt-d":_["Mod-Delete"],"Ctrl-a":S,"Ctrl-e":C};for(let e in _)A[e]=
_[e];function P(e){const {state:t,transaction:n}=e;let {selection:r}=n,{doc:o}=n,{storedMarks:i}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),filterTransaction:t.filterTransaction,plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return i},get selection(){return r},get doc(){return o},get tr(){return r=n.selection,o=n.doc,i=n.storedMarks,n}}}"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):
"undefined"!=typeof os&&os.platform&&os.platform();class D{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const {rawCommands:e,editor:t,state:n}=this,{view:r}=t,{tr:o}=n,i=this.buildProps(o);return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,(...e)=>{const n=t(...e)(i);return o.getMeta("preventDispatch")||
this.hasCustomState||r.dispatch(o),n}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){const {rawCommands:n,editor:r,state:o}=this,{view:i}=r,a=[],s=!!e,l=e||o.tr,u={...Object.fromEntries(Object.entries(n).map(([e,n])=>[e,(...e)=>{const r=this.buildProps(l,t),o=n(...e)(r);return a.push(o),u}])),run:()=>(s||!t||l.getMeta("preventDispatch")||this.hasCustomState||i.dispatch(l),a.every(e=>!0===e))};return u}createCan(e){const {rawCommands:t,state:n}=
this,r=e||n.tr,o=this.buildProps(r,!1);return{...Object.fromEntries(Object.entries(t).map(([e,t])=>[e,(...e)=>t(...e)({...o,dispatch:void 0})])),chain:()=>this.createChain(r,!1)}}buildProps(e,t=!0){const {rawCommands:n,editor:r,state:o}=this,{view:i}=r,a={tr:e,editor:r,view:i,state:P({state:o,transaction:e}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([e,t])=>[e,(...e)=>t(...e)(a)]))}};return a}}
class N{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const n=this.callbacks[e];return n&&n.forEach(e=>e.apply(this,t)),this}off(e,t){const n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter(e=>e!==t):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}}function R(e,t,n){return void 0===e.config[t]&&e.parent?R(e.parent,t,n):"function"==typeof e.config[t]?e.config[t].bind({...n,parent:e.parent?
R(e.parent,t,n):null}):e.config[t]}function L(e){return{baseExtensions:e.filter(e=>"extension"===e.type),nodeExtensions:e.filter(e=>"node"===e.type),markExtensions:e.filter(e=>"mark"===e.type)}}function j(e){const t=[],{nodeExtensions:n,markExtensions:r}=L(e),o=[...n,...r],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach(e=>{const n=R(e,"addGlobalAttributes",{name:e.name,options:e.options,storage:e.storage});n&&n().forEach(e=>{e.types.forEach(n=>
{Object.entries(e.attributes).forEach(([e,r])=>{t.push({type:n,name:e,attribute:{...i,...r}})})})})}),o.forEach(e=>{const n={name:e.name,options:e.options,storage:e.storage},r=R(e,"addAttributes",n);if(!r)return;const o=r();Object.entries(o).forEach(([n,r])=>{const o={...i,...r};"function"==typeof(null==o?void 0:o.default)&&(o.default=o.default()),(null==o?void 0:o.isRequired)&&void 0===(null==o?void 0:o.default)&&delete o.default,t.push({type:e.name,name:n,attribute:o})})}),t}function I(e,t){if("string"==
typeof e){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}function F(...e){return e.filter(e=>!!e).reduce((e,t)=>{const n={...e};return Object.entries(t).forEach(([e,t])=>{if(n[e])if("class"===e){const r=t?t.split(" "):[],o=n[e]?n[e].split(" "):[],i=r.filter(e=>!o.includes(e));n[e]=[...o,...i].join(" ")}else n[e]="style"===e?[n[e],t].join("; "):t;else n[e]=t}),n},{})}function z(e,t){return t.filter(e=>e.attribute.rendered).map(t=>
t.attribute.renderHTML?t.attribute.renderHTML(e.attrs)||{}:{[t.name]:e.attrs[t.name]}).reduce((e,t)=>F(e,t),{})}function H(e){return"function"==typeof e}function B(e,t=void 0,...n){return H(e)?t?e.bind(t)(...n):e(...n):e}function V(e,t){return e.style?e:{...e,getAttrs:n=>{const r=e.getAttrs?e.getAttrs(n):e.attrs;if(!1===r)return!1;const o=t.reduce((e,t)=>{const r=t.attribute.parseHTML?t.attribute.parseHTML(n):function(e){return"string"!=typeof e?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):"true"===
e||"false"!==e&&e}(n.getAttribute(t.name));return null==r?e:{...e,[t.name]:r}},{});return{...r,...o}}}}function W(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>("attrs"!==e||!function(e={}){return 0===Object.keys(e).length&&e.constructor===Object}(t))&&null!=t))}function $(e,t){return t.nodes[e]||t.marks[e]||null}function U(e,t){return Array.isArray(t)?t.some(t=>("string"==typeof t?t:t.name)===e.name):t}const q=(e,t=500)=>{let n="";const r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,
r-t),r,(e,t,o,i)=>{var a,s;const l=(null===(s=(a=e.type.spec).toText)||void 0===s?void 0:s.call(a,{node:e,pos:t,parent:o,index:i}))||e.textContent||"%leaf%";n+=l.slice(0,Math.max(0,r-t))}),n};function Z(e){return"[object RegExp]"===Object.prototype.toString.call(e)}class K{constructor(e){this.find=e.find,this.handler=e.handler}}const Y=(e,t)=>{if(Z(t))return t.exec(e);const n=t(e);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||
console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function G(e){var t;const {editor:n,from:r,to:o,text:i,rules:a,plugin:s}=e,{view:l}=n;if(l.composing)return!1;const u=l.state.doc.resolve(r);if(u.parent.type.spec.code||(null===(t=u.nodeBefore||u.nodeAfter)||void 0===t?void 0:t.marks.find(e=>e.type.spec.code)))return!1;let c=!1;const f=q(u)+i;return a.forEach(e=>{if(c)return;const t=Y(f,e.find);if(!t)return;const a=l.state.tr,
u=P({state:l.state,transaction:a}),d={from:r-(t[0].length-i.length),to:o},{commands:p,chain:h,can:g}=new D({editor:n,state:u});null!==e.handler({state:u,range:d,match:t,commands:p,chain:h,can:g})&&a.steps.length&&(a.setMeta(s,{transform:a,from:r,to:o,text:i}),l.dispatch(a),c=!0)}),c}function J(e){const {editor:t,rules:n}=e,o=new r.Sy({state:{init:()=>null,apply:(e,t)=>e.getMeta(o)||(e.selectionSet||e.docChanged?null:t)},props:{handleTextInput:(e,r,i,a)=>G({editor:t,from:r,to:i,text:a,rules:n,plugin:o}),
handleDOMEvents:{compositionend:e=>(setTimeout(()=>{const {$cursor:r}=e.state.selection;r&&G({editor:t,from:r.pos,to:r.pos,text:"",rules:n,plugin:o})}),!1)},handleKeyDown(e,r){if("Enter"!==r.key)return!1;const {$cursor:i}=e.state.selection;return!!i&&G({editor:t,from:i.pos,to:i.pos,text:"\n",rules:n,plugin:o})}},isInputRules:!0});return o}class X{constructor(e){this.find=e.find,this.handler=e.handler}}function Q(e){const {editor:t,rules:n}=e;let o=null,i=!1,a=!1,s=new ClipboardEvent("paste"),l=new DragEvent("drop");
const u=n.map(e=>new r.Sy({view(e){const t=t=>{var n;o=(null===(n=e.dom.parentElement)||void 0===n?void 0:n.contains(t.target))?e.dom.parentElement:null};return window.addEventListener("dragstart",t),{destroy(){window.removeEventListener("dragstart",t)}}},props:{handleDOMEvents:{drop:(e,t)=>(a=o===e.dom.parentElement,l=t,!1),paste:(e,t)=>{var n;const r=null===(n=t.clipboardData)||void 0===n?void 0:n.getData("text/html");return s=t,i=!!(null==r?void 0:r.includes("data-pm-slice")),!1}}},appendTransaction:(n,
r,o)=>{const u=n[0],c="paste"===u.getMeta("uiEvent")&&!i,f="drop"===u.getMeta("uiEvent")&&!a;if(!c&&!f)return;const d=r.doc.content.findDiffStart(o.doc.content),p=r.doc.content.findDiffEnd(o.doc.content);if("number"!=typeof d||!p||d===p.b)return;const h=o.tr,g=P({state:o,transaction:h}),m=function(e){const {editor:t,state:n,from:r,to:o,rule:i,pasteEvent:a,dropEvent:s}=e,{commands:l,chain:u,can:c}=new D({editor:t,state:n}),f=[];return n.doc.nodesBetween(r,o,(e,t)=>{if(!e.isTextblock||e.type.spec.code)return;
const d=Math.max(r,t),p=Math.min(o,t+e.content.size);((e,t)=>{if(Z(t))return[...e.matchAll(t)];const n=t(e);return n?n.map(t=>{const n=[t.text];return n.index=t.index,n.input=e,n.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),n.push(t.replaceWith)),n}):[]})(e.textBetween(d-t,p-t,void 0,"\ufffc"),i.find).forEach(e=>{if(void 0===e.index)return;const t=d+e.index+1,r=t+e[0].length,o={from:n.tr.mapping.map(t),
to:n.tr.mapping.map(r)},p=i.handler({state:n,range:o,match:e,commands:l,chain:u,can:c,pasteEvent:a,dropEvent:s});f.push(p)})}),f.every(e=>null!==e)}({editor:t,state:g,from:Math.max(d-1,0),to:p.b-1,rule:e,pasteEvent:s,dropEvent:l});return m&&h.steps.length?(l=new DragEvent("drop"),s=new ClipboardEvent("paste"),h):void 0}}));return u}class ee{constructor(e,t){this.splittableMarks=[],this.editor=t,this.extensions=ee.resolve(e),this.schema=function(e,t){var n;const r=j(e),{nodeExtensions:o,markExtensions:i}=
L(e),s=null===(n=o.find(e=>R(e,"topNode")))||void 0===n?void 0:n.name,l=Object.fromEntries(o.map(n=>{const o=r.filter(e=>e.type===n.name),i={name:n.name,options:n.options,storage:n.storage,editor:t},a=W({...e.reduce((e,t)=>{const r=R(t,"extendNodeSchema",i);return{...e,...(r?r(n):{})}},{}),content:B(R(n,"content",i)),marks:B(R(n,"marks",i)),group:B(R(n,"group",i)),inline:B(R(n,"inline",i)),atom:B(R(n,"atom",i)),selectable:B(R(n,"selectable",i)),draggable:B(R(n,"draggable",i)),code:B(R(n,"code",i)),
defining:B(R(n,"defining",i)),isolating:B(R(n,"isolating",i)),attrs:Object.fromEntries(o.map(e=>{var t;return[e.name,{default:null===(t=null==e?void 0:e.attribute)||void 0===t?void 0:t.default}]}))}),s=B(R(n,"parseHTML",i));s&&(a.parseDOM=s.map(e=>V(e,o)));const l=R(n,"renderHTML",i);l&&(a.toDOM=e=>l({node:e,HTMLAttributes:z(e,o)}));const u=R(n,"renderText",i);return u&&(a.toText=u),[n.name,a]})),u=Object.fromEntries(i.map(n=>{const o=r.filter(e=>e.type===n.name),i={name:n.name,options:n.options,
storage:n.storage,editor:t},a=W({...e.reduce((e,t)=>{const r=R(t,"extendMarkSchema",i);return{...e,...(r?r(n):{})}},{}),inclusive:B(R(n,"inclusive",i)),excludes:B(R(n,"excludes",i)),group:B(R(n,"group",i)),spanning:B(R(n,"spanning",i)),code:B(R(n,"code",i)),attrs:Object.fromEntries(o.map(e=>{var t;return[e.name,{default:null===(t=null==e?void 0:e.attribute)||void 0===t?void 0:t.default}]}))}),s=B(R(n,"parseHTML",i));s&&(a.parseDOM=s.map(e=>V(e,o)));const l=R(n,"renderHTML",i);return l&&(a.toDOM=e=>
l({mark:e,HTMLAttributes:z(e,o)})),[n.name,a]}));return new a.V_({topNode:s,nodes:l,marks:u})}(this.extensions,t),this.extensions.forEach(e=>{var t;this.editor.extensionStorage[e.name]=e.storage;const n={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:$(e.name,this.schema)};"mark"===e.type&&(null===(t=B(R(e,"keepOnSplit",n)))||void 0===t||t)&&this.splittableMarks.push(e.name);const r=R(e,"onBeforeCreate",n);r&&this.editor.on("beforeCreate",r);const o=R(e,"onCreate",n);o&&this.editor.on("create",
o);const i=R(e,"onUpdate",n);i&&this.editor.on("update",i);const a=R(e,"onSelectionUpdate",n);a&&this.editor.on("selectionUpdate",a);const s=R(e,"onTransaction",n);s&&this.editor.on("transaction",s);const l=R(e,"onFocus",n);l&&this.editor.on("focus",l);const u=R(e,"onBlur",n);u&&this.editor.on("blur",u);const c=R(e,"onDestroy",n);c&&this.editor.on("destroy",c)})}static resolve(e){const t=ee.sort(ee.flatten(e)),n=function(e){const t=e.filter((t,n)=>e.indexOf(t)!==n);return[...(new Set(t))]}(t.map(e=>
e.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(e=>`'${e}'`).join(", ")}]. This can lead to issues.`),t}static flatten(e){return e.map(e=>{const t=R(e,"addExtensions",{name:e.name,options:e.options,storage:e.storage});return t?[e,...this.flatten(t())]:e}).flat(10)}static sort(e){return e.sort((e,t)=>{const n=R(e,"priority")||100,r=R(t,"priority")||100;return n>r?-1:n<r?1:0})}get commands(){return this.extensions.reduce((e,t)=>{const n=R(t,"addCommands",
{name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:$(t.name,this.schema)});return n?{...e,...n()}:e},{})}get plugins(){const {editor:e}=this,t=ee.sort([...this.extensions].reverse()),n=[],r=[],o=t.map(t=>{const o={name:t.name,options:t.options,storage:t.storage,editor:e,type:$(t.name,this.schema)},a=[],s=R(t,"addKeyboardShortcuts",o);let l={};if("mark"===t.type&&t.config.exitable&&(l.ArrowRight=()=>Ye.handleExit({editor:e,mark:t})),s){const t=Object.fromEntries(Object.entries(s()).map(([t,
n])=>[t,()=>n({editor:e})]));l={...l,...t}}const u=(0,i.h)(l);a.push(u);const c=R(t,"addInputRules",o);U(t,e.options.enableInputRules)&&c&&n.push(...c());const f=R(t,"addPasteRules",o);U(t,e.options.enablePasteRules)&&f&&r.push(...f());const d=R(t,"addProseMirrorPlugins",o);if(d){const e=d();a.push(...e)}return a}).flat();return[J({editor:e,rules:n}),...Q({editor:e,rules:r}),...o]}get attributes(){return j(this.extensions)}get nodeViews(){const {editor:e}=this,{nodeExtensions:t}=L(this.extensions);
return Object.fromEntries(t.filter(e=>!!R(e,"addNodeView")).map(t=>{const n=this.attributes.filter(e=>e.type===t.name),r={name:t.name,options:t.options,storage:t.storage,editor:e,type:I(t.name,this.schema)},o=R(t,"addNodeView",r);return o?[t.name,(r,i,a,s)=>{const l=z(r,n);return o()({editor:e,node:r,getPos:a,decorations:s,HTMLAttributes:l,extension:t})}]:[]}))}}function te(e){return"Object"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)&&e.constructor===Object&&Object.getPrototypeOf(e)===
Object.prototype}function ne(e,t){const n={...e};return te(e)&&te(t)&&Object.keys(t).forEach(r=>{te(t[r])?r in e?n[r]=ne(e[r],t[r]):Object.assign(n,{[r]:t[r]}):Object.assign(n,{[r]:t[r]})}),n}class re{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),
this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=B(R(this,"addOptions",{name:this.name}))),this.storage=B(R(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new re(e)}configure(e={}){const t=this.extend();return t.options=ne(this.options,e),t.storage=B(R(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new re(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),
t.options=B(R(t,"addOptions",{name:t.name})),t.storage=B(R(t,"addStorage",{name:t.name,options:t.options})),t}}function oe(e,t,n){const {from:r,to:o}=t,{blockSeparator:i="\n\n",textSerializers:a={}}=n||{};let s="",l=!0;return e.nodesBetween(r,o,(e,n,u,c)=>{var f;const d=null==a?void 0:a[e.type.name];d?(e.isBlock&&!l&&(s+=i,l=!0),u&&(s+=d({node:e,pos:n,parent:u,index:c,range:t}))):e.isText?(s+=null===(f=null==e?void 0:e.text)||void 0===f?void 0:f.slice(Math.max(r,n)-n,o-n),l=!1):e.isBlock&&!l&&(s+=
i,l=!0)}),s}function ie(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}const ae=re.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new r.Sy({key:new r.H$("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const {editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:o}=t,{ranges:i}=o;return oe(r,{from:Math.min(...i.map(e=>e.$from.pos)),to:Math.max(...i.map(e=>e.$to.pos))},{textSerializers:ie(n)})}}})]}});
function se(e,t,n={strict:!0}){const r=Object.keys(t);return!r.length||r.every(r=>n.strict?t[r]===e[r]:Z(t[r])?t[r].test(e[r]):t[r]===e[r])}function le(e,t,n={}){return e.find(e=>e.type===t&&se(e.attrs,n))}function ue(e,t,n={}){return!!le(e,t,n)}function ce(e,t,n={}){if(!e||!t)return;let r=e.parent.childAfter(e.parentOffset);if(e.parentOffset===r.offset&&0!==r.offset&&(r=e.parent.childBefore(e.parentOffset)),!r.node)return;const o=le([...r.node.marks],t,n);if(!o)return;let i=r.index,a=e.start()+r.offset,
s=i+1,l=a+r.node.nodeSize;for(le([...r.node.marks],t,n);i>0&&o.isInSet(e.parent.child(i-1).marks);)i-=1,a-=e.parent.child(i).nodeSize;for(;s<e.parent.childCount&&ue([...e.parent.child(s).marks],t,n);)l+=e.parent.child(s).nodeSize,s+=1;return{from:a,to:l}}function fe(e,t){if("string"==typeof e){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}function de(e){return e instanceof r.Bs}function pe(e=0,t=0,n=0){return Math.min(Math.max(e,
t),n)}function he(e,t=null){if(!t)return null;const n=r.Y1.atStart(e),o=r.Y1.atEnd(e);if("start"===t||!0===t)return n;if("end"===t)return o;const i=n.from,a=o.to;return"all"===t?r.Bs.create(e,pe(0,i,a),pe(e.content.size,i,a)):r.Bs.create(e,pe(t,i,a),pe(t,i,a))}function ge(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function me(e){const t=`<body>${e}</body>`;return(new window.DOMParser).parseFromString(t,
"text/html").body}function ve(e,t,n){if(n={slice:!0,parseOptions:{},...n},"object"==typeof e&&null!==e)try{return Array.isArray(e)&&e.length>0?a.HY.fromArray(e.map(e=>t.nodeFromJSON(e))):t.nodeFromJSON(e)}catch(r){return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",r),ve("",t,n)}if("string"==typeof e){const r=a.aw.fromSchema(t);return n.slice?r.parseSlice(me(e),n.parseOptions).content:r.parse(me(e),n.parseOptions)}return ve("",t,n)}function ye(){return"undefined"!=typeof navigator&&
/Mac/.test(navigator.platform)}function be(e,t,n={}){const {from:r,to:o,empty:i}=e.selection,a=t?I(t,e.schema):null,s=[];e.doc.nodesBetween(r,o,(e,t)=>{if(e.isText)return;const n=Math.max(r,t),i=Math.min(o,t+e.nodeSize);s.push({node:e,from:n,to:i})});const l=o-r,u=s.filter(e=>!a||a.name===e.node.type.name).filter(e=>se(e.node.attrs,n,{strict:!1}));return i?!!u.length:u.reduce((e,t)=>e+t.to-t.from,0)>=l}function we(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function xe(e,t){const n="string"==
typeof t?[t]:t;return Object.keys(e).reduce((t,r)=>(n.includes(r)||(t[r]=e[r]),t),{})}function ke(e,t,n={}){return ve(e,t,{slice:!1,parseOptions:n})}function Se(e,t){const n=fe(t,e.schema),{from:r,to:o,empty:i}=e.selection,a=[];i?(e.storedMarks&&a.push(...e.storedMarks),a.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,o,e=>{a.push(...e.marks)});const s=a.find(e=>e.type.name===n.name);return s?{...s.attrs}:{}}function Ce(e,t){const n=new s.wx(e);return t.forEach(e=>{e.steps.forEach(e=>{n.step(e)})}),
n}function Oe(e,t,n){const r=[];return e.nodesBetween(t.from,t.to,(e,t)=>{n(e)&&r.push({node:e,pos:t})}),r}function Ee(e,t){for(let n=e.depth;n>0;n-=1){const r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function Me(e){return t=>Ee(t.$from,e)}function Te(e,t){const n=we("string"==typeof t?t:t.name,e.schema);return"node"===n?function(e,t){const n=I(t,e.schema),{from:r,to:o}=e.selection,i=[];e.doc.nodesBetween(r,o,e=>{i.push(e)});const a=i.reverse().find(e=>e.type.name===
n.name);return a?{...a.attrs}:{}}(e,t):"mark"===n?Se(e,t):{}}function _e(e){const {mapping:t,steps:n}=e,r=[];return t.maps.forEach((e,o)=>{const i=[];if(e.ranges.length)e.forEach((e,t)=>{i.push({from:e,to:t})});else{const {from:e,to:t}=n[o];if(void 0===e||void 0===t)return;i.push({from:e,to:t})}i.forEach(({from:e,to:n})=>{const i=t.slice(o).map(e,-1),a=t.slice(o).map(n),s=t.invert().map(i,-1),l=t.invert().map(a);r.push({oldRange:{from:s,to:l},newRange:{from:i,to:a}})})}),function(e){const t=function(e,
t=JSON.stringify){const n={};return e.filter(e=>{const r=t(e);return!Object.prototype.hasOwnProperty.call(n,r)&&(n[r]=!0)})}(e);return 1===t.length?t:t.filter((e,n)=>!t.filter((e,t)=>t!==n).some(t=>e.oldRange.from>=t.oldRange.from&&e.oldRange.to<=t.oldRange.to&&e.newRange.from>=t.newRange.from&&e.newRange.to<=t.newRange.to))}(r)}function Ae(e,t,n){const r=[];return e===t?n.resolve(e).marks().forEach(t=>{const o=ce(n.resolve(e-1),t.type);o&&r.push({mark:t,...o})}):n.nodesBetween(e,t,(e,t)=>{r.push(...e.marks.map(n=>
({from:t,to:t+e.nodeSize,mark:n})))}),r}function Pe(e,t,n){return Object.fromEntries(Object.entries(n).filter(([n])=>{const r=e.find(e=>e.type===t&&e.name===n);return!!r&&r.attribute.keepOnSplit}))}function De(e,t,n={}){const {empty:r,ranges:o}=e.selection,i=t?fe(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(e=>!i||i.name===e.type.name).find(e=>se(e.attrs,n,{strict:!1}));let a=0;const s=[];if(o.forEach(({$from:t,$to:n})=>{const r=t.pos,o=n.pos;e.doc.nodesBetween(r,
o,(e,t)=>{if(!e.isText&&!e.marks.length)return;const n=Math.max(r,t),i=Math.min(o,t+e.nodeSize);a+=i-n,s.push(...e.marks.map(e=>({mark:e,from:n,to:i})))})}),0===a)return!1;const l=s.filter(e=>!i||i.name===e.mark.type.name).filter(e=>se(e.mark.attrs,n,{strict:!1})).reduce((e,t)=>e+t.to-t.from,0),u=s.filter(e=>!i||e.mark.type!==i&&e.mark.type.excludes(i)).reduce((e,t)=>e+t.to-t.from,0);return(l>0?l+u:l)>=a}function Ne(e,t){const {nodeExtensions:n}=L(t),r=n.find(t=>t.name===e);if(!r)return!1;const o=
B(R(r,"group",{name:r.name,options:r.options,storage:r.storage}));return"string"==typeof o&&o.split(" ").includes("list")}function Re(e,t){const n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){const r=n.filter(e=>null==t?void 0:t.includes(e.type.name));e.tr.ensureMarks(r)}}const Le=(e,t)=>{const n=Me(e=>e.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(void 0===r)return!0;const o=e.doc.nodeAt(r);return n.node.type!==
(null==o?void 0:o.type)||!(0,s.Mn)(e.doc,n.pos)||(e.join(n.pos),!0)},je=(e,t)=>{const n=Me(e=>e.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(n.start).after(n.depth);if(void 0===r)return!0;const o=e.doc.nodeAt(r);return n.node.type!==(null==o?void 0:o.type)||!(0,s.Mn)(e.doc,r)||(e.join(r),!0)};var Ie=Object.freeze({__proto__:null,blur:()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(t.dom.blur(),null===(n=null===window||void 0===window?void 0:window.getSelection())||
void 0===n||n.removeAllRanges())}),!0),clearContent:(e=!1)=>({commands:t})=>t.setContent("",e),clearNodes:()=>({state:e,tr:t,dispatch:n})=>{const {selection:r}=t,{ranges:o}=r;return!n||(o.forEach(({$from:n,$to:r})=>{e.doc.nodesBetween(n.pos,r.pos,(e,n)=>{if(e.type.isText)return;const {doc:r,mapping:o}=t,i=r.resolve(o.map(n)),a=r.resolve(o.map(n+e.nodeSize)),l=i.blockRange(a);if(!l)return;const u=(0,s.k9)(l);if(e.type.isTextblock){const {defaultType:e}=i.parent.contentMatchAt(i.index());t.setNodeMarkup(l.start,
e)}(u||0===u)&&t.lift(l,u)})}),!0)},command:e=>t=>e(t),createParagraphNear:()=>({state:e,dispatch:t})=>b(e,t),cut:(e,t)=>({editor:n,tr:o})=>{const {state:i}=n,a=i.doc.slice(e.from,e.to);o.deleteRange(e.from,e.to);const s=o.mapping.map(t);return o.insert(s,a.content),o.setSelection(new r.Bs(o.doc.resolve(s-1))),!0},deleteCurrentNode:()=>({tr:e,dispatch:t})=>{const {selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;const o=e.selection.$anchor;for(let n=o.depth;n>0;n-=1)if(o.node(n).type===
r.type){if(t){const t=o.before(n),r=o.after(n);e.delete(t,r).scrollIntoView()}return!0}return!1},deleteNode:e=>({tr:t,state:n,dispatch:r})=>{const o=I(e,n.schema),i=t.selection.$anchor;for(let e=i.depth;e>0;e-=1)if(i.node(e).type===o){if(r){const n=i.before(e),r=i.after(e);t.delete(n,r).scrollIntoView()}return!0}return!1},deleteRange:e=>({tr:t,dispatch:n})=>{const {from:r,to:o}=e;return n&&t.delete(r,o),!0},deleteSelection:()=>({state:e,dispatch:t})=>l(e,t),enter:()=>({commands:e})=>e.keyboardShortcut("Enter"),
exitCode:()=>({state:e,dispatch:t})=>y(e,t),extendMarkRange:(e,t={})=>({tr:n,state:o,dispatch:i})=>{const a=fe(e,o.schema),{doc:s,selection:l}=n,{$from:u,from:c,to:f}=l;if(i){const e=ce(u,a,t);if(e&&e.from<=c&&e.to>=f){const t=r.Bs.create(s,e.from,e.to);n.setSelection(t)}}return!0},first:e=>t=>{const n="function"==typeof e?e(t):e;for(let e=0;e<n.length;e+=1)if(n[e](t))return!0;return!1},focus:(e=null,t={})=>({editor:n,view:r,tr:o,dispatch:i})=>{t={scrollIntoView:!0,...t};const a=()=>{ge()&&r.dom.focus(),
requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),(null==t?void 0:t.scrollIntoView)&&n.commands.scrollIntoView())})};if(r.hasFocus()&&null===e||!1===e)return!0;if(i&&null===e&&!de(n.state.selection))return a(),!0;const s=he(o.doc,e)||n.state.selection,l=n.state.selection.eq(s);return i&&(l||o.setSelection(s),l&&o.storedMarks&&o.setStoredMarks(o.storedMarks),a()),!0},forEach:(e,t)=>n=>e.every((e,r)=>t(e,{...n,index:r})),insertContent:(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,
to:n.selection.to},e,t),insertContentAt:(e,t,n)=>({tr:o,dispatch:i,editor:a})=>{if(i){n={parseOptions:{},updateSelection:!0,...n};const i=ve(t,a.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions}});if("<>"===i.toString())return!0;let {from:l,to:u}="number"==typeof e?{from:e,to:e}:{from:e.from,to:e.to},c=!0,f=!0;if((i.toString().startsWith("<")?i:[i]).forEach(e=>{e.check(),c=!!c&&e.isText&&0===e.marks.length,f=!!f&&e.isBlock}),l===u&&f){const {parent:e}=o.doc.resolve(l);e.isTextblock&&
!e.type.spec.code&&!e.childCount&&(l-=1,u+=1)}c?Array.isArray(t)?o.insertText(t.map(e=>e.text||"").join(""),l,u):"object"==typeof t&&t&&t.text?o.insertText(t.text,l,u):o.insertText(t,l,u):o.replaceWith(l,u,i),n.updateSelection&&function(e,t,n){const o=e.steps.length-1;if(o<t)return;const i=e.steps[o];if(!(i instanceof s.Pu||i instanceof s.FC))return;const a=e.mapping.maps[o];let l=0;a.forEach((e,t,n,r)=>{0===l&&(l=r)}),e.setSelection(r.Y1.near(e.doc.resolve(l),-1))}(o,o.steps.length-1)}return!0},
joinUp:()=>({state:e,dispatch:t})=>((e,t)=>{let n,o=e.selection,i=o instanceof r.qv;if(i){if(o.node.isTextblock||!(0,s.Mn)(e.doc,o.from))return!1;n=o.from}else if(n=(0,s.GJ)(e.doc,o.from,-1),null==n)return!1;if(t){let o=e.tr.join(n);i&&o.setSelection(r.qv.create(o.doc,n-e.doc.resolve(n).nodeBefore.nodeSize)),t(o.scrollIntoView())}return!0})(e,t),joinDown:()=>({state:e,dispatch:t})=>((e,t)=>{let n,o=e.selection;if(o instanceof r.qv){if(o.node.isTextblock||!(0,s.Mn)(e.doc,o.to))return!1;n=o.to}else if(n=
(0,s.GJ)(e.doc,o.to,1),null==n)return!1;return t&&t(e.tr.join(n).scrollIntoView()),!0})(e,t),joinBackward:()=>({state:e,dispatch:t})=>u(e,t),joinForward:()=>({state:e,dispatch:t})=>p(e,t),joinItemBackward:()=>({tr:e,state:t,dispatch:n})=>{try{const r=(0,s.GJ)(t.doc,t.selection.$from.pos,-1);return null!=r&&(e.join(r,2),n&&n(e),!0)}catch{return!1}},joinItemForward:()=>({state:e,dispatch:t,tr:n})=>{try{const r=(0,s.GJ)(e.doc,e.selection.$from.pos,1);return null!=r&&(n.join(r,2),t&&t(n),!0)}catch(e){return!1}},
keyboardShortcut:e=>({editor:t,view:n,tr:r,dispatch:o})=>{const i=function(e){const t=e.split(/-(?!$)/);let n,r,o,i,a=t[t.length-1];"Space"===a&&(a=" ");for(let e=0;e<t.length-1;e+=1){const a=t[e];if(/^(cmd|meta|m)$/i.test(a))i=!0;else if(/^a(lt)?$/i.test(a))n=!0;else if(/^(c|ctrl|control)$/i.test(a))r=!0;else if(/^s(hift)?$/i.test(a))o=!0;else{if(!/^mod$/i.test(a))throw new Error(`Unrecognized modifier name: ${a}`);ge()||ye()?i=!0:r=!0}}return n&&(a=`Alt-${a}`),r&&(a=`Ctrl-${a}`),i&&(a=`Meta-${a}`),
o&&(a=`Shift-${a}`),a}(e).split(/-(?!$)/),a=i.find(e=>!["Alt","Ctrl","Meta","Shift"].includes(e)),s=new KeyboardEvent("keydown",{key:"Space"===a?" ":a,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),l=t.captureTransaction(()=>{n.someProp("handleKeyDown",e=>e(n,s))});return null==l||l.steps.forEach(e=>{const t=e.map(r.mapping);t&&o&&r.maybeStep(t)}),!0},lift:(e,t={})=>({state:n,dispatch:r})=>!!be(n,I(e,n.schema),
t)&&((e,t)=>{let {$from:n,$to:r}=e.selection,o=n.blockRange(r),i=o&&(0,s.k9)(o);return null!=i&&(t&&t(e.tr.lift(o,i).scrollIntoView()),!0)})(n,r),liftEmptyBlock:()=>({state:e,dispatch:t})=>w(e,t),liftListItem:e=>({state:t,dispatch:n})=>{return(r=I(e,t.schema),function(e,t){let {$from:n,$to:o}=e.selection,i=n.blockRange(o,e=>e.childCount>0&&e.firstChild.type==r);return!!i&&(!t||(n.node(i.depth-1).type==r?function(e,t,n,r){let o=e.tr,i=r.end,l=r.$to.end(r.depth);i<l&&(o.step(new s.FC(i-1,l,i,l,new a.p2(a.HY.from(n.create(null,
r.parent.copy())),1,0),1,!0)),r=new a.Ts(o.doc.resolve(r.$from.pos),o.doc.resolve(l),r.depth));const u=(0,s.k9)(r);if(null==u)return!1;o.lift(r,u);let c=o.mapping.map(i,-1)-1;return(0,s.Mn)(o.doc,c)&&o.join(c),t(o.scrollIntoView()),!0}(e,t,r,i):function(e,t,n){let r=e.tr,o=n.parent;for(let e=n.end,t=n.endIndex-1,i=n.startIndex;t>i;t--)e-=o.child(t).nodeSize,r.delete(e-1,e+1);let i=r.doc.resolve(n.start),l=i.nodeAfter;if(r.mapping.map(n.end)!=n.start+i.nodeAfter.nodeSize)return!1;let u=0==n.startIndex,
c=n.endIndex==o.childCount,f=i.node(-1),d=i.index(-1);if(!f.canReplace(d+(u?0:1),d+1,l.content.append(c?a.HY.empty:a.HY.from(o))))return!1;let p=i.pos,h=p+l.nodeSize;return r.step(new s.FC(p-(u?1:0),h+(c?1:0),p+1,h-1,new a.p2((u?a.HY.empty:a.HY.from(o.copy(a.HY.empty))).append(c?a.HY.empty:a.HY.from(o.copy(a.HY.empty))),u?0:1,c?0:1),u?0:1)),t(r.scrollIntoView()),!0}(e,t,i)))})(t,n);var r},newlineInCode:()=>({state:e,dispatch:t})=>m(e,t),resetAttributes:(e,t)=>({tr:n,state:r,dispatch:o})=>{let i=null,
a=null;const s=we("string"==typeof e?e:e.name,r.schema);return!!s&&("node"===s&&(i=I(e,r.schema)),"mark"===s&&(a=fe(e,r.schema)),o&&n.selection.ranges.forEach(e=>{r.doc.nodesBetween(e.$from.pos,e.$to.pos,(e,r)=>{i&&i===e.type&&n.setNodeMarkup(r,void 0,xe(e.attrs,t)),a&&e.marks.length&&e.marks.forEach(o=>{a===o.type&&n.addMark(r,r+e.nodeSize,a.create(xe(o.attrs,t)))})})}),!0)},scrollIntoView:()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),selectAll:()=>({tr:e,commands:t})=>t.setTextSelection({from:0,
to:e.doc.content.size}),selectNodeBackward:()=>({state:e,dispatch:t})=>f(e,t),selectNodeForward:()=>({state:e,dispatch:t})=>h(e,t),selectParentNode:()=>({state:e,dispatch:t})=>((e,t)=>{let n,{$from:o,to:i}=e.selection,a=o.sharedDepth(i);return 0!=a&&(n=o.before(a),t&&t(e.tr.setSelection(r.qv.create(e.doc,n))),!0)})(e,t),selectTextblockEnd:()=>({state:e,dispatch:t})=>C(e,t),selectTextblockStart:()=>({state:e,dispatch:t})=>S(e,t),setContent:(e,t=!1,n={})=>({tr:r,editor:o,dispatch:i})=>{const {doc:a}=
r,s=ke(e,o.schema,n);return i&&r.replaceWith(0,a.content.size,s).setMeta("preventUpdate",!t),!0},setMark:(e,t={})=>({tr:n,state:r,dispatch:o})=>{const {selection:i}=n,{empty:a,ranges:s}=i,l=fe(e,r.schema);if(o)if(a){const e=Se(r,l);n.addStoredMark(l.create({...e,...t}))}else s.forEach(e=>{const o=e.$from.pos,i=e.$to.pos;r.doc.nodesBetween(o,i,(e,r)=>{const a=Math.max(r,o),s=Math.min(r+e.nodeSize,i);e.marks.find(e=>e.type===l)?e.marks.forEach(e=>{l===e.type&&n.addMark(a,s,l.create({...e.attrs,...t}))}):
n.addMark(a,s,l.create(t))})});return function(e,t,n){var r;const {selection:o}=t;let i=null;if(de(o)&&(i=o.$cursor),i){const t=null!==(r=e.storedMarks)&&void 0!==r?r:i.marks();return!!n.isInSet(t)||!t.some(e=>e.type.excludes(n))}const {ranges:a}=o;return a.some(({$from:t,$to:r})=>{let o=0===t.depth&&e.doc.inlineContent&&e.doc.type.allowsMarkType(n);return e.doc.nodesBetween(t.pos,r.pos,(e,t,r)=>{if(o)return!1;if(e.isInline){const t=!r||r.type.allowsMarkType(n),i=!!n.isInSet(e.marks)||!e.marks.some(e=>
e.type.excludes(n));o=t&&i}return!o}),o})}(r,n,l)},setMeta:(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),setNode:(e,t={})=>({state:n,dispatch:r,chain:o})=>{const i=I(e,n.schema);return i.isTextblock?o().command(({commands:e})=>!!O(i,t)(n)||e.clearNodes()).command(({state:e})=>O(i,t)(e,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},setNodeSelection:e=>({tr:t,dispatch:n})=>{if(n){const {doc:n}=t,o=pe(e,0,n.content.size),i=r.qv.create(n,o);t.setSelection(i)}return!0},
setTextSelection:e=>({tr:t,dispatch:n})=>{if(n){const {doc:n}=t,{from:o,to:i}="number"==typeof e?{from:e,to:e}:e,a=r.Bs.atStart(n).from,s=r.Bs.atEnd(n).to,l=pe(o,a,s),u=pe(i,a,s),c=r.Bs.create(n,l,u);t.setSelection(c)}return!0},sinkListItem:e=>({state:t,dispatch:n})=>{const r=I(e,t.schema);return(o=r,function(e,t){let {$from:n,$to:r}=e.selection,i=n.blockRange(r,e=>e.childCount>0&&e.firstChild.type==o);if(!i)return!1;let l=i.startIndex;if(0==l)return!1;let u=i.parent,c=u.child(l-1);if(c.type!=o)return!1;
if(t){let n=c.lastChild&&c.lastChild.type==u.type,r=a.HY.from(n?o.create():null),l=new a.p2(a.HY.from(o.create(null,a.HY.from(u.type.create(null,r)))),n?3:1,0),f=i.start,d=i.end;t(e.tr.step(new s.FC(f-(n?3:1),d,f,d,l,1,!0)).scrollIntoView())}return!0})(t,n);var o},splitBlock:({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:o,editor:i})=>{const {selection:a,doc:l}=t,{$from:u,$to:c}=a,f=Pe(i.extensionManager.attributes,u.node().type.name,u.node().attrs);if(a instanceof r.qv&&a.node.isBlock)return!(!u.parentOffset||
!(0,s.Ax)(l,u.pos)||(o&&(e&&Re(n,i.extensionManager.splittableMarks),t.split(u.pos).scrollIntoView()),0));if(!u.parent.isBlock)return!1;if(o){const o=c.parentOffset===c.parent.content.size;a instanceof r.Bs&&t.deleteSelection();const l=0===u.depth?void 0:function(e){for(let t=0;t<e.edgeCount;t+=1){const {type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}(u.node(-1).contentMatchAt(u.indexAfter(-1)));let d=o&&l?[{type:l,attrs:f}]:void 0,p=(0,s.Ax)(t.doc,t.mapping.map(u.pos),
1,d);if(d||p||!(0,s.Ax)(t.doc,t.mapping.map(u.pos),1,l?[{type:l}]:void 0)||(p=!0,d=l?[{type:l,attrs:f}]:void 0),p&&(t.split(t.mapping.map(u.pos),1,d),l&&!o&&!u.parentOffset&&u.parent.type!==l)){const e=t.mapping.map(u.before()),n=t.doc.resolve(e);u.node(-1).canReplaceWith(n.index(),n.index()+1,l)&&t.setNodeMarkup(t.mapping.map(u.before()),l)}e&&Re(n,i.extensionManager.splittableMarks),t.scrollIntoView()}return!0},splitListItem:e=>({tr:t,state:n,dispatch:o,editor:i})=>{var l;const u=I(e,n.schema),
{$from:c,$to:f}=n.selection,d=n.selection.node;if(d&&d.isBlock||c.depth<2||!c.sameParent(f))return!1;const p=c.node(-1);if(p.type!==u)return!1;const h=i.extensionManager.attributes;if(0===c.parent.content.size&&c.node(-1).childCount===c.indexAfter(-1)){if(2===c.depth||c.node(-3).type!==u||c.index(-2)!==c.node(-2).childCount-1)return!1;if(o){let e=a.HY.empty;const n=c.index(-1)?1:c.index(-2)?2:3;for(let t=c.depth-n;t>=c.depth-3;t-=1)e=a.HY.from(c.node(t).copy(e));const o=c.indexAfter(-1)<c.node(-2).childCount?
1:c.indexAfter(-2)<c.node(-3).childCount?2:3,i=Pe(h,c.node().type.name,c.node().attrs),s=(null===(l=u.contentMatch.defaultType)||void 0===l?void 0:l.createAndFill(i))||void 0;e=e.append(a.HY.from(u.createAndFill(null,s)||void 0));const f=c.before(c.depth-(n-1));t.replace(f,c.after(-o),new a.p2(e,4-n,0));let d=-1;t.doc.nodesBetween(f,t.doc.content.size,(e,t)=>{if(d>-1)return!1;e.isTextblock&&0===e.content.size&&(d=t+1)}),d>-1&&t.setSelection(r.Bs.near(t.doc.resolve(d))),t.scrollIntoView()}return!0}const g=
f.pos===c.end()?p.contentMatchAt(0).defaultType:null,m=Pe(h,p.type.name,p.attrs),v=Pe(h,c.node().type.name,c.node().attrs);t.delete(c.pos,f.pos);const y=g?[{type:u,attrs:m},{type:g,attrs:v}]:[{type:u,attrs:m}];if(!(0,s.Ax)(t.doc,c.pos,2))return!1;if(o){const {selection:e,storedMarks:r}=n,{splittableMarks:a}=i.extensionManager,s=r||e.$to.parentOffset&&e.$from.marks();if(t.split(c.pos,2,y).scrollIntoView(),!s||!o)return!0;const l=s.filter(e=>a.includes(e.type.name));t.ensureMarks(l)}return!0},toggleList:(e,
t,n,r={})=>({editor:o,tr:i,state:a,dispatch:s,chain:l,commands:u,can:c})=>{const {extensions:f,splittableMarks:d}=o.extensionManager,p=I(e,a.schema),h=I(t,a.schema),{selection:g,storedMarks:m}=a,{$from:v,$to:y}=g,b=v.blockRange(y),w=m||g.$to.parentOffset&&g.$from.marks();if(!b)return!1;const x=Me(e=>Ne(e.type.name,f))(g);if(b.depth>=1&&x&&b.depth-x.depth<=1){if(x.node.type===p)return u.liftListItem(h);if(Ne(x.node.type.name,f)&&p.validContent(x.node.content)&&s)return l().command(()=>(i.setNodeMarkup(x.pos,
p),!0)).command(()=>Le(i,p)).command(()=>je(i,p)).run()}return n&&w&&s?l().command(()=>{const e=c().wrapInList(p,r),t=w.filter(e=>d.includes(e.type.name));return i.ensureMarks(t),!!e||u.clearNodes()}).wrapInList(p,r).command(()=>Le(i,p)).command(()=>je(i,p)).run():l().command(()=>!!c().wrapInList(p,r)||u.clearNodes()).wrapInList(p,r).command(()=>Le(i,p)).command(()=>je(i,p)).run()},toggleMark:(e,t={},n={})=>({state:r,commands:o})=>{const {extendEmptyMarkRange:i=!1}=n,a=fe(e,r.schema);return De(r,
a,t)?o.unsetMark(a,{extendEmptyMarkRange:i}):o.setMark(a,t)},toggleNode:(e,t,n={})=>({state:r,commands:o})=>{const i=I(e,r.schema),a=I(t,r.schema);return be(r,i,n)?o.setNode(a):o.setNode(i,n)},toggleWrap:(e,t={})=>({state:n,commands:r})=>{const o=I(e,n.schema);return be(n,o,t)?r.lift(o):r.wrapIn(o,t)},undoInputRule:()=>({state:e,dispatch:t})=>{const n=e.plugins;for(let r=0;r<n.length;r+=1){const o=n[r];let i;if(o.spec.isInputRules&&(i=o.getState(e))){if(t){const t=e.tr,n=i.transform;for(let e=n.steps.length-
1;e>=0;e-=1)t.step(n.steps[e].invert(n.docs[e]));if(i.text){const n=t.doc.resolve(i.from).marks();t.replaceWith(i.from,i.to,e.schema.text(i.text,n))}else t.delete(i.from,i.to)}return!0}}return!1},unsetAllMarks:()=>({tr:e,dispatch:t})=>{const {selection:n}=e,{empty:r,ranges:o}=n;return r||t&&o.forEach(t=>{e.removeMark(t.$from.pos,t.$to.pos)}),!0},unsetMark:(e,t={})=>({tr:n,state:r,dispatch:o})=>{var i;const {extendEmptyMarkRange:a=!1}=t,{selection:s}=n,l=fe(e,r.schema),{$from:u,empty:c,ranges:f}=s;
if(!o)return!0;if(c&&a){let {from:e,to:t}=s;const r=null===(i=u.marks().find(e=>e.type===l))||void 0===i?void 0:i.attrs,o=ce(u,l,r);o&&(e=o.from,t=o.to),n.removeMark(e,t,l)}else f.forEach(e=>{n.removeMark(e.$from.pos,e.$to.pos,l)});return n.removeStoredMark(l),!0},updateAttributes:(e,t={})=>({tr:n,state:r,dispatch:o})=>{let i=null,a=null;const s=we("string"==typeof e?e:e.name,r.schema);return!!s&&("node"===s&&(i=I(e,r.schema)),"mark"===s&&(a=fe(e,r.schema)),o&&n.selection.ranges.forEach(e=>{const o=
e.$from.pos,s=e.$to.pos;r.doc.nodesBetween(o,s,(e,r)=>{i&&i===e.type&&n.setNodeMarkup(r,void 0,{...e.attrs,...t}),a&&e.marks.length&&e.marks.forEach(i=>{if(a===i.type){const l=Math.max(r,o),u=Math.min(r+e.nodeSize,s);n.addMark(l,u,a.create({...i.attrs,...t}))}})})}),!0)},wrapIn:(e,t={})=>({state:n,dispatch:r})=>function(e,t=null){return function(n,r){let {$from:o,$to:i}=n.selection,a=o.blockRange(i),l=a&&(0,s.nd)(a,e,t);return!!l&&(r&&r(n.tr.wrap(a,l).scrollIntoView()),!0)}}(I(e,n.schema),t)(n,r),
wrapInList:(e,t={})=>({state:n,dispatch:r})=>function(e,t=null){return function(n,r){let {$from:o,$to:i}=n.selection,l=o.blockRange(i),u=!1,c=l;if(!l)return!1;if(l.depth>=2&&o.node(l.depth-1).type.compatibleContent(e)&&0==l.startIndex){if(0==o.index(l.depth-1))return!1;let e=n.doc.resolve(l.start-2);c=new a.Ts(e,e,l.depth),l.endIndex<l.parent.childCount&&(l=new a.Ts(o,n.doc.resolve(i.end(l.depth)),l.depth)),u=!0}let f=(0,s.nd)(c,e,t,l);return!!f&&(r&&r(function(e,t,n,r,o){let i=a.HY.empty;for(let e=
n.length-1;e>=0;e--)i=a.HY.from(n[e].type.create(n[e].attrs,i));e.step(new s.FC(t.start-(r?2:0),t.end,t.start,t.end,new a.p2(i,0,0),n.length,!0));let l=0;for(let e=0;e<n.length;e++)n[e].type==o&&(l=e+1);let u=n.length-l,c=t.start+n.length-(r?2:0),f=t.parent;for(let n=t.startIndex,r=t.endIndex,o=!0;n<r;n++,o=!1)!o&&(0,s.Ax)(e.doc,c,u)&&(e.split(c,u),c+=2*u),c+=f.child(n).nodeSize;return e}(n.tr,l,f,u,e).scrollIntoView()),!0)}}(I(e,n.schema),t)(n,r)});const Fe=re.create({name:"commands",addCommands:()=>
({...Ie})}),ze=re.create({name:"editable",addProseMirrorPlugins(){return[new r.Sy({key:new r.H$("editable"),props:{editable:()=>this.editor.options.editable}})]}}),He=re.create({name:"focusEvents",addProseMirrorPlugins(){const {editor:e}=this;return[new r.Sy({key:new r.H$("focusEvents"),props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;const r=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;const r=e.state.tr.setMeta("blur",
{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}}}})]}}),Be=re.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first(({commands:e})=>[()=>e.undoInputRule(),()=>e.command(({tr:t})=>{const {selection:n,doc:o}=t,{empty:i,$anchor:a}=n,{pos:s,parent:l}=a,u=a.parent.isTextblock?t.doc.resolve(s-1):a,c=u.parent.type.spec.isolating,f=a.pos-a.parentOffset,d=c&&1===u.parent.childCount?f===a.pos:r.Y1.atStart(o).from===s;return!(!(i&&d&&l.type.isTextblock)||l.textContent.length)&&
e.clearNodes()}),()=>e.deleteSelection(),()=>e.joinBackward(),()=>e.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:e})=>[()=>e.deleteSelection(),()=>e.deleteCurrentNode(),()=>e.joinForward(),()=>e.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:e})=>[()=>e.newlineInCode(),()=>e.createParagraphNear(),()=>e.liftEmptyBlock(),()=>e.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,
"Mod-a":()=>this.editor.commands.selectAll()},o={...n},i={...n,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return ge()||ye()?i:o},addProseMirrorPlugins(){return[new r.Sy({key:new r.H$("clearDocument"),appendTransaction:(e,t,n)=>{if(!e.some(e=>e.docChanged)||t.doc.eq(n.doc))return;const {empty:o,from:i,to:a}=t.selection,s=r.Y1.atStart(t.doc).from,
l=r.Y1.atEnd(t.doc).to;if(o||i!==s||a!==l)return;if(0!==n.doc.textBetween(0,n.doc.content.size," "," ").length)return;const u=n.tr,c=P({state:n,transaction:u}),{commands:f}=new D({editor:this.editor,state:c});return f.clearNodes(),u.steps.length?u:void 0}})]}}),Ve=re.create({name:"tabindex",addProseMirrorPlugins(){return[new r.Sy({key:new r.H$("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var We=Object.freeze({__proto__:null,ClipboardTextSerializer:ae,Commands:Fe,Editable:ze,
FocusEvents:He,Keymap:Be,Tabindex:Ve});class $e extends N{constructor(e={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>
null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),
this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=function(e,t,n){const r=document.querySelector("style[data-tiptap-style]");
if(null!==r)return r;const o=document.createElement("style");return t&&o.setAttribute("nonce",t),o.setAttribute("data-tiptap-style",""),o.innerHTML='.ProseMirror {\n  position: relative;\n}\n\n.ProseMirror {\n  word-wrap: break-word;\n  white-space: pre-wrap;\n  white-space: break-spaces;\n  -webkit-font-variant-ligatures: none;\n  font-variant-ligatures: none;\n  font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\n.ProseMirror [contenteditable="false"] {\n  white-space: normal;\n}\n\n.ProseMirror [contenteditable="false"] [contenteditable="true"] {\n  white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n  white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n  display: inline !important;\n  border: none !important;\n  margin: 0 !important;\n  width: 1px !important;\n  height: 1px !important;\n}\n\n.ProseMirror-gapcursor {\n  display: none;\n  pointer-events: none;\n  position: absolute;\n  margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n  content: "";\n  display: block;\n  position: absolute;\n  top: -2px;\n  width: 20px;\n  border-top: 1px solid black;\n  animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n  to {\n    visibility: hidden;\n  }\n}\n\n.ProseMirror-hideselection *::selection {\n  background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n  background: transparent;\n}\n\n.ProseMirror-hideselection * {\n  caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n  display: block;\n}\n\n.tippy-box[data-animation=fade][data-state=hidden] {\n  opacity: 0\n}',
document.getElementsByTagName("head")[0].appendChild(o),o}(0,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},this.view&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,
t){const n=H(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:n});this.view.updateState(r)}unregisterPlugin(e){if(this.isDestroyed)return;const t="string"==typeof e?`${e}$`:e.key,n=this.state.reconfigure({plugins:this.state.plugins.filter(e=>!e.key.startsWith(t))});this.view.updateState(n)}createExtensionManager(){const e=[...(this.options.enableCoreExtensions?Object.values(We):[]),...this.options.extensions].filter(e=>["extension","node","mark"].includes(null==
e?void 0:e.type));this.extensionManager=new ee(e,this)}createCommandManager(){this.commandManager=new D({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const e=ke(this.options.content,this.schema,this.options.parseOptions),t=he(e,this.options.autofocus);this.view=new o.tk(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:r.yy.create({doc:e,selection:t||void 0})});const n=this.state.reconfigure({plugins:this.extensionManager.plugins});
this.view.updateState(n),this.createNodeViews(),this.prependClass(),this.view.dom.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction)return this.capturedTransaction?
void e.steps.forEach(e=>{var t;return null===(t=this.capturedTransaction)||void 0===t?void 0:t.step(e)}):void(this.capturedTransaction=e);const t=this.state.apply(e),n=!this.state.selection.eq(t.selection);this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e}),n&&this.emit("selectionUpdate",{editor:this,transaction:e});const r=e.getMeta("focus"),o=e.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:e}),o&&this.emit("blur",{editor:this,event:o.event,
transaction:e}),e.docChanged&&!e.getMeta("preventUpdate")&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return Te(this.state,e)}isActive(e,t){const n="string"==typeof e?e:null,r="string"==typeof e?t:e;return function(e,t,n={}){if(!t)return be(e,null,n)||De(e,null,n);const r=we(t,e.schema);return"node"===r?be(e,t,n):"mark"===r&&De(e,t,n)}(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return function(e,t){const n=a.PW.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement("div");
return r.appendChild(n),r.innerHTML}(this.state.doc.content,this.schema)}getText(e){const {blockSeparator:t="\n\n",textSerializers:n={}}=e||{};return function(e,t){return oe(e,{from:0,to:e.content.size},t)}(this.state.doc,{blockSeparator:t,textSerializers:{...ie(this.schema),...n}})}get isEmpty(){return function(e){var t;const n=null===(t=e.type.createAndFill())||void 0===t?void 0:t.toJSON(),r=e.toJSON();return JSON.stringify(n)===JSON.stringify(r)}(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),
this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var e;return!(null===(e=this.view)||void 0===e?void 0:e.docView)}}function Ue(e){return new K({find:e.find,handler:({state:t,range:n,match:r})=>{const o=B(e.getAttributes,void 0,r);if(!1===o||null===o)return null;const {tr:i}=t,a=r[r.length-1],s=r[0];if(a){const r=s.search(/\S/),l=n.from+s.indexOf(a),u=l+a.length;if(Ae(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>
n===e.type&&n!==t.mark.type)).filter(e=>e.to>l).length)return null;u<n.to&&i.delete(u,n.to),l>n.from&&i.delete(n.from+r,l);const c=n.from+r+a.length;i.addMark(n.from+r,c,e.type.create(o||{})),i.removeStoredMark(e.type)}}})}function qe(e){return new K({find:e.find,handler:({state:t,range:n,match:r})=>{const o=B(e.getAttributes,void 0,r)||{},{tr:i}=t,a=n.from;let s=n.to;const l=e.type.create(o);if(r[1]){let e=a+r[0].lastIndexOf(r[1]);e>s?e=s:s=e+r[1].length;const t=r[0][r[0].length-1];i.insertText(t,
a+r[0].length-1),i.replaceWith(e,s,l)}else r[0]&&i.insert(a-1,e.type.create(o)).delete(i.mapping.map(a),i.mapping.map(s));i.scrollIntoView()}})}function Ze(e){return new K({find:e.find,handler:({state:t,range:n,match:r})=>{const o=t.doc.resolve(n.from),i=B(e.getAttributes,void 0,r)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,i)}})}function Ke(e){return new K({find:e.find,handler:({state:t,range:n,match:r,
chain:o})=>{const i=B(e.getAttributes,void 0,r)||{},a=t.tr.delete(n.from,n.to),l=a.doc.resolve(n.from).blockRange(),u=l&&(0,s.nd)(l,e.type,i);if(!u)return null;if(a.wrap(l,u),e.keepMarks&&e.editor){const {selection:n,storedMarks:r}=t,{splittableMarks:o}=e.editor.extensionManager,i=r||n.$to.parentOffset&&n.$from.marks();if(i){const e=i.filter(e=>o.includes(e.type.name));a.ensureMarks(e)}}if(e.keepAttributes){const t="bulletList"===e.type.name||"orderedList"===e.type.name?"listItem":"taskList";o().updateAttributes(t,
i).run()}const c=a.doc.resolve(n.from-1).nodeBefore;c&&c.type===e.type&&(0,s.Mn)(a.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,c))&&a.join(n.from-1)}})}class Ye{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),
this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=B(R(this,"addOptions",{name:this.name}))),this.storage=B(R(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Ye(e)}configure(e={}){const t=this.extend();return t.options=ne(this.options,e),t.storage=B(R(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new Ye(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),
t.options=B(R(t,"addOptions",{name:t.name})),t.storage=B(R(t,"addStorage",{name:t.name,options:t.options})),t}static handleExit({editor:e,mark:t}){const {tr:n}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){const o=r.marks();if(!o.find(e=>(null==e?void 0:e.type.name)===t.name))return!1;const i=o.find(e=>(null==e?void 0:e.type.name)===t.name);return i&&n.removeStoredMark(i),n.insertText(" ",r.pos),e.view.dispatch(n),!0}return!1}}class Ge{constructor(e={}){this.type="node",this.name="node",this.parent=
null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=B(R(this,"addOptions",{name:this.name}))),this.storage=B(R(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e=
{}){return new Ge(e)}configure(e={}){const t=this.extend();return t.options=ne(this.options,e),t.storage=B(R(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new Ge(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=B(R(t,"addOptions",{name:t.name})),t.storage=B(R(t,"addStorage",{name:t.name,
options:t.options})),t}}class Je{constructor(e,t,n){this.isDragging=!1,this.component=e,this.editor=t.editor,this.options={stopEvent:null,ignoreMutation:null,...n},this.extension=t.extension,this.node=t.node,this.decorations=t.decorations,this.getPos=t.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(e){var t,n,o,i,a,s,l;const {view:u}=this.editor,c=e.target,f=3===c.nodeType?null===(t=c.parentElement)||void 0===t?void 0:t.closest("[data-drag-handle]"):
c.closest("[data-drag-handle]");if(!this.dom||(null===(n=this.contentDOM)||void 0===n?void 0:n.contains(c))||!f)return;let d=0,p=0;if(this.dom!==f){const t=this.dom.getBoundingClientRect(),n=f.getBoundingClientRect(),r=null!==(o=e.offsetX)&&void 0!==o?o:null===(i=e.nativeEvent)||void 0===i?void 0:i.offsetX,l=null!==(a=e.offsetY)&&void 0!==a?a:null===(s=e.nativeEvent)||void 0===s?void 0:s.offsetY;d=n.x-t.x+r,p=n.y-t.y+l}null===(l=e.dataTransfer)||void 0===l||l.setDragImage(this.dom,d,p);const h=r.qv.create(u.state.doc,
this.getPos()),g=u.state.tr.setSelection(h);u.dispatch(g)}stopEvent(e){var t;if(!this.dom)return!1;if("function"==typeof this.options.stopEvent)return this.options.stopEvent({event:e});const n=e.target;if(!this.dom.contains(n)||(null===(t=this.contentDOM)||void 0===t?void 0:t.contains(n)))return!1;const o=e.type.startsWith("drag"),i="drop"===e.type;if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(n.tagName)||n.isContentEditable)&&!i&&!o)return!0;const {isEditable:a}=this.editor,{isDragging:s}=
this,l=!!this.node.type.spec.draggable,u=r.qv.isSelectable(this.node),c="copy"===e.type,f="paste"===e.type,d="cut"===e.type,p="mousedown"===e.type;if(!l&&u&&o&&e.preventDefault(),l&&o&&!s)return e.preventDefault(),!1;if(l&&a&&!s&&p){const e=n.closest("[data-drag-handle]");e&&(this.dom===e||this.dom.contains(e))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("drop",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",
()=>{this.isDragging=!1},{once:!0}))}return!(s||i||c||f||d||p&&u)}ignoreMutation(e){return!this.dom||!this.contentDOM||("function"==typeof this.options.ignoreMutation?this.options.ignoreMutation({mutation:e}):!(!this.node.isLeaf&&!this.node.isAtom&&("selection"===e.type||this.dom.contains(e.target)&&"childList"===e.type&&(ge()||"Android"===navigator.platform||/android/i.test(navigator.userAgent))&&this.editor.isFocused&&[...Array.from(e.addedNodes),...Array.from(e.removedNodes)].every(e=>e.isContentEditable)||
(this.contentDOM!==e.target||"attributes"!==e.type)&&this.contentDOM.contains(e.target))))}updateAttributes(e){this.editor.commands.command(({tr:t})=>{const n=this.getPos();return t.setNodeMarkup(n,void 0,{...this.node.attrs,...e}),!0})}deleteNode(){const e=this.getPos(),t=e+this.node.nodeSize;this.editor.commands.deleteRange({from:e,to:t})}}function Xe(e){return new X({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:o})=>{const i=B(e.getAttributes,void 0,r,o);if(!1===i||null===i)return null;
const {tr:a}=t,s=r[r.length-1],l=r[0];let u=n.to;if(s){const r=l.search(/\S/),o=n.from+l.indexOf(s),c=o+s.length;if(Ae(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>o).length)return null;c<n.to&&a.delete(c,n.to),o>n.from&&a.delete(n.from+r,o),u=n.from+r+s.length,a.addMark(n.from+r,u,e.type.create(i||{})),a.removeStoredMark(e.type)}}})}},9734:(e,t,n)=>{n.d(t,{ZP:()=>i});var r=n(3845);const o=/^\s*>\s$/,i=r.NB.create({name:"blockquote",addOptions:()=>
({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:e}){return["blockquote",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[(0,r.S0)({find:o,
type:this.type})]}})},7937:(e,t,n)=>{n.d(t,{ZP:()=>l});var r=n(3845);const o=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,i=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,a=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,s=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,l=r.vc.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!==e.style.fontWeight&&null},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],renderHTML({HTMLAttributes:e}){return["strong",
(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[(0,r.Cf)({find:o,type:this.type}),(0,r.Cf)({find:a,type:this.type})]},addPasteRules(){return[(0,r.K9)({find:i,type:this.type}),(0,r.K9)({find:s,
type:this.type})]}})},561:(e,t,n)=>{n.d(t,{ZP:()=>s});var r=n(3845);const o=r.NB.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",(0,r.P1)(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>
this.editor.commands.liftListItem(this.name)}}}),i=r.vc.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:e=>!!e.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:e}){return["span",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:e,commands:t})=>{const n=(0,r.Jo)(e,this.type);return!!Object.entries(n).some(([,e])=>!!e)||t.unsetMark(this.name)}}}}),a=/^\s*([-+*])\s$/,s=r.NB.create({name:"bulletList",
addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:e}){return["ul",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(o.name,this.editor.getAttributes(i.name)).run():
e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=(0,r.S0)({find:a,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,r.S0)({find:a,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(i.name),editor:this.editor})),[e]}})},353:(e,t,n)=>{n.d(t,{Z:()=>
r}),n(3621);const r=n(3845).hj.create({name:"color",addOptions:()=>({types:["textStyle"]}),addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:e=>{var t;return null===(t=e.style.color)||void 0===t?void 0:t.replace(/['"]+/g,"")},renderHTML:e=>e.color?{style:`color: ${e.color}`}:{}}}}]},addCommands:()=>({setColor:e=>({chain:t})=>t().setMark("textStyle",{color:e}).run(),unsetColor:()=>({chain:e})=>e().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()})})},
336:(e,t,n)=>{n.d(t,{Z:()=>r});const r=n(3845).NB.create({name:"doc",topNode:!0,content:"block+"})},9966:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(3845),o=n(2337),i=n(2376),a=n(7823),s=n(4348);class l extends i.Y1{constructor(e){super(e,e)}map(e,t){let n=e.resolve(t.map(this.head));return l.valid(n)?new l(n):i.Y1.near(n)}content(){return a.p2.empty}eq(e){return e instanceof l&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");
return new l(e.resolve(t.pos))}getBookmark(){return new u(this.anchor)}static valid(e){let t=e.parent;if(t.isTextblock||!function(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(0!=n)for(let e=r.child(n-1);;e=e.lastChild){if(0==e.childCount&&!e.inlineContent||e.isAtom||e.type.spec.isolating)return!0;if(e.inlineContent)return!1}else if(r.type.spec.isolating)return!0}return!0}(e)||!function(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n!=r.childCount)for(let e=
r.child(n);;e=e.firstChild){if(0==e.childCount&&!e.inlineContent||e.isAtom||e.type.spec.isolating)return!0;if(e.inlineContent)return!1}else if(r.type.spec.isolating)return!0}return!0}(e))return!1;let n=t.type.spec.allowGapCursor;if(null!=n)return n;let r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(e,t,n=!1){e:for(;;){if(!n&&l.valid(e))return e;let r=e.pos,o=null;for(let n=e.depth;;n--){let i=e.node(n);if(t>0?e.indexAfter(n)<i.childCount:e.index(n)>0){o=
i.child(t>0?e.indexAfter(n):e.index(n)-1);break}if(0==n)return null;r+=t;let a=e.doc.resolve(r);if(l.valid(a))return a}for(;;){let a=t>0?o.firstChild:o.lastChild;if(!a){if(o.isAtom&&!o.isText&&!i.qv.isSelectable(o)){e=e.doc.resolve(r+o.nodeSize*t),n=!1;continue e}break}o=a,r+=t;let s=e.doc.resolve(r);if(l.valid(s))return s}return null}}}l.prototype.visible=!1,l.findFrom=l.findGapCursorFrom,i.Y1.jsonID("gapcursor",l);class u{constructor(e){this.pos=e}map(e){return new u(e.map(this.pos))}resolve(e){let t=
e.resolve(this.pos);return l.valid(t)?new l(t):i.Y1.near(t)}}const c=(0,o.$)({ArrowLeft:f("horiz",-1),ArrowRight:f("horiz",1),ArrowUp:f("vert",-1),ArrowDown:f("vert",1)});function f(e,t){const n="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,r,o){let a=e.selection,s=t>0?a.$to:a.$from,u=a.empty;if(a instanceof i.Bs){if(!o.endOfTextblock(n)||0==s.depth)return!1;u=!1,s=e.doc.resolve(t>0?s.after():s.before())}let c=l.findGapCursorFrom(s,t,u);return!!c&&(r&&r(e.tr.setSelection(new l(c))),
!0)}}function d(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!l.valid(r))return!1;let o=e.posAtCoords({left:n.clientX,top:n.clientY});return!(o&&o.inside>-1&&i.qv.isSelectable(e.state.doc.nodeAt(o.inside))||(e.dispatch(e.state.tr.setSelection(new l(r))),0))}function p(e,t){if("insertCompositionText"!=t.inputType||!(e.state.selection instanceof l))return!1;let {$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;
let o=a.HY.empty;for(let e=r.length-1;e>=0;e--)o=a.HY.from(r[e].createAndFill(null,o));let s=e.state.tr.replace(n.pos,n.pos,new a.p2(o,0,0));return s.setSelection(i.Bs.near(s.doc.resolve(n.pos+1))),e.dispatch(s),!1}function h(e){if(!(e.selection instanceof l))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",s.EH.create(e.doc,[s.p.widget(e.selection.head,t,{key:"gapcursor"})])}const g=r.hj.create({name:"gapCursor",addProseMirrorPlugins:()=>[new i.Sy({props:{decorations:h,
createSelectionBetween:(e,t,n)=>t.pos==n.pos&&l.valid(n)?new l(n):null,handleClick:d,handleKeyDown:c,handleDOMEvents:{beforeinput:p}}})],extendNodeSchema(e){var t;const n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:null!==(t=(0,r.nU)((0,r.Nl)(e,"allowGapCursor",n)))&&void 0!==t?t:null}}})},5525:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(3845);const o=r.NB.create({name:"hardBreak",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,parseHTML:()=>
[{tag:"br"}],renderHTML({HTMLAttributes:e}){return["br",(0,r.P1)(this.options.HTMLAttributes,e)]},renderText:()=>"\n",addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{const {selection:e,storedMarks:o}=n;if(e.$from.parent.type.spec.isolating)return!1;const {keepMarks:i}=this.options,{splittableMarks:a}=r.extensionManager,s=o||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>
{if(t&&s&&i){const t=s.filter(e=>a.includes(e.type.name));e.ensureMarks(t)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}})},7490:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(3845);const o=r.NB.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map(e=>
({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,(0,r.P1)(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.setNode(this.name,e),toggleHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>
({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>(0,r.zK)({find:new RegExp(`^(#{1,${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}})},8486:(e,t,n)=>{n.d(t,{Z:()=>E});var r=n(3845),o=200,i=function(){};i.prototype.append=function(e){return e.length?(e=i.from(e),!this.length&&e||e.length<o&&this.leafAppend(e)||this.length<o&&e.leafPrepend(this)||this.appendInner(e)):this},i.prototype.prepend=function(e){return e.length?
i.from(e).append(this):this},i.prototype.appendInner=function(e){return new s(this,e)},i.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t?i.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},i.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},i.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},i.prototype.map=function(e,t,n){void 0===
t&&(t=0),void 0===n&&(n=this.length);var r=[];return this.forEach(function(t,n){return r.push(e(t,n))},t,n),r},i.from=function(e){return e instanceof i?e:e&&e.length?new a(e):i.empty};var a=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?
this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var o=t;o<n;o++)if(!1===e(this.values[o],r+o))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var o=t-1;o>=n;o--)if(!1===e(this.values[o],r+o))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=o)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=o)return new t(e.flatten().concat(this.values))},
n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(i);i.empty=new a([]);var s=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<
this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var o=this.left.length;return!(t<o&&!1===this.left.forEachInner(e,t,Math.min(n,o),r))&&!(n>o&&!1===this.right.forEachInner(e,Math.max(t-o,0),Math.min(this.length,n)-o,r+o))&&void 0},t.prototype.forEachInvertedInner=function(e,t,n,r){var o=this.left.length;return!(t>o&&!1===this.right.forEachInvertedInner(e,t-o,Math.max(n,o)-o,r+o))&&!(n<o&&!1===this.left.forEachInvertedInner(e,Math.min(t,
o),n,r))&&void 0},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,
e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(i);const l=i;var u=n(8646),c=n(2376);class f{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){if(0==this.eventCount)return null;let n,r,o=this.items.length;for(;;o--)if(this.items.get(o-1).selection){--o;break}t&&(n=this.remapping(o,this.items.length),r=n.maps.length);let i,a,s=e.tr,l=[],u=[];return this.items.forEach((e,t)=>{if(!e.step)return n||(n=this.remapping(o,t+1),r=n.maps.length),r--,void u.push(e);if(n){u.push(new d(e.map));
let t,o=e.step.map(n.slice(r));o&&s.maybeStep(o).doc&&(t=s.mapping.maps[s.mapping.maps.length-1],l.push(new d(t,void 0,void 0,l.length+u.length))),r--,t&&n.appendMap(t,r)}else s.maybeStep(e.step);return e.selection?(i=n?e.selection.map(n.slice(r)):e.selection,a=new f(this.items.slice(0,o).append(u.reverse().concat(l)),this.eventCount-1),!1):void 0},this.items.length,0),{remaining:a,transform:s,selection:i}}addTransform(e,t,n,r){let o=[],i=this.eventCount,a=this.items,s=!r&&a.length?a.get(a.length-
1):null;for(let n=0;n<e.steps.length;n++){let l,u=e.steps[n].invert(e.docs[n]),c=new d(e.mapping.maps[n],u,t);(l=s&&s.merge(c))&&(c=l,n?o.pop():a=a.slice(0,a.length-1)),o.push(c),t&&(i++,t=void 0),r||(s=c)}let l=i-n.depth;return l>h&&(a=function(e,t){let n;return e.forEach((e,r)=>{if(e.selection&&0==t--)return n=r,!1}),e.slice(n)}(a,l),i-=l),new f(a.append(o),i)}remapping(e,t){let n=new u.vs;return this.items.forEach((t,r)=>{let o=null!=t.mirrorOffset&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:
void 0;n.appendMap(t.map,o)},e,t),n}addMaps(e){return 0==this.eventCount?this:new f(this.items.append(e.map(e=>new d(e))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-t),o=e.mapping,i=e.steps.length,a=this.eventCount;this.items.forEach(e=>{e.selection&&a--},r);let s=t;this.items.forEach(t=>{let r=o.getMirror(--s);if(null==r)return;i=Math.min(i,r);let l=o.maps[r];if(t.step){let i=e.steps[r].invert(e.docs[r]),u=t.selection&&t.selection.map(o.slice(s+
1,r));u&&a++,n.push(new d(l,i,u))}else n.push(new d(l))},r);let l=[];for(let e=t;e<i;e++)l.push(new d(o.maps[e]));let u=this.items.slice(0,r).append(l).append(n),c=new f(u,a);return c.emptyItemCount()>500&&(c=c.compress(this.items.length-n.length)),c}emptyItemCount(){let e=0;return this.items.forEach(t=>{t.step||e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),n=t.maps.length,r=[],o=0;return this.items.forEach((i,a)=>{if(a>=e)r.push(i),i.selection&&o++;else if(i.step){let e=i.step.map(t.slice(n)),
a=e&&e.getMap();if(n--,a&&t.appendMap(a,n),e){let s=i.selection&&i.selection.map(t.slice(n));s&&o++;let l,u=new d(a.invert(),e,s),c=r.length-1;(l=r.length&&r[c].merge(u))?r[c]=l:r.push(u)}}else i.map&&n--},this.items.length,0),new f(l.from(r.reverse()),o)}}f.empty=new f(l.empty,0);class d{constructor(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new d(t.getMap().invert(),t,this.selection)}}}
class p{constructor(e,t,n,r,o){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=o}}const h=20;function g(e){let t=[];return e.forEach((e,n,r,o)=>t.push(r,o)),t}function m(e,t){if(!e)return null;let n=[];for(let r=0;r<e.length;r+=2){let o=t.map(e[r],1),i=t.map(e[r+1],-1);o<=i&&n.push(o,i)}return n}function v(e,t,n,r){let o=w(t),i=x.get(t).spec.config,a=(r?e.undone:e.done).popEvent(t,o);if(!a)return;let s=a.selection.resolve(a.transform.doc),l=(r?e.done:e.undone).addTransform(a.transform,
t.selection.getBookmark(),i,o),u=new p(r?l:a.remaining,r?a.remaining:l,null,0,-1);n(a.transform.setSelection(s).setMeta(x,{redo:r,historyState:u}).scrollIntoView())}let y=!1,b=null;function w(e){let t=e.plugins;if(b!=t){y=!1,b=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){y=!0;break}}return y}const x=new c.H$("history"),k=new c.H$("closeHistory");function S(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new c.Sy({key:x,state:{init:()=>new p(f.empty,f.empty,
null,0,-1),apply:(t,n,r)=>function(e,t,n,r){let o,i=n.getMeta(x);if(i)return i.historyState;n.getMeta(k)&&(e=new p(e.done,e.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(a&&a.getMeta(x))return a.getMeta(x).redo?new p(e.done.addTransform(n,void 0,r,w(t)),e.undone,g(n.mapping.maps[n.steps.length-1]),e.prevTime,e.prevComposition):new p(e.done,e.undone.addTransform(n,void 0,r,w(t)),null,e.prevTime,e.prevComposition);if(!1===n.getMeta("addToHistory")||a&&!1===
a.getMeta("addToHistory"))return(o=n.getMeta("rebased"))?new p(e.done.rebased(n,o),e.undone.rebased(n,o),m(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new p(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),m(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);{let o=n.getMeta("composition"),i=0==e.prevTime||!a&&e.prevComposition!=o&&(e.prevTime<(n.time||0)-r.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((e,
r)=>{for(let o=0;o<t.length;o+=2)e<=t[o+1]&&r>=t[o]&&(n=!0)}),n}(n,e.prevRanges)),s=a?m(e.prevRanges,n.mapping):g(n.mapping.maps[n.steps.length-1]);return new p(e.done.addTransform(n,i?t.selection.getBookmark():void 0,r,w(t)),f.empty,s,n.time,null==o?e.prevComposition:o)}}(n,r,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r="historyUndo"==n?C:"historyRedo"==n?O:null;return!!r&&(t.preventDefault(),r(e.state,e.dispatch))}}}})}const C=(e,t)=>{let n=x.getState(e);return!(!n||
0==n.done.eventCount||(t&&v(n,e,t,!1),0))},O=(e,t)=>{let n=x.getState(e);return!(!n||0==n.undone.eventCount||(t&&v(n,e,t,!0),0))},E=r.hj.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:e,dispatch:t})=>C(e,t),redo:()=>({state:e,dispatch:t})=>O(e,t)}),addProseMirrorPlugins(){return[S(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-Z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),
"Mod-Y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Shift-Mod-Z":()=>this.editor.commands.redo(),"Mod-\u044f":()=>this.editor.commands.undo(),"Shift-Mod-\u044f":()=>this.editor.commands.redo()}}})},6761:(e,t,n)=>{n.d(t,{ZP:()=>i});var r=n(3845);const o=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,i=r.NB.create({name:"image",addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{}}),inline(){return this.options.inline},group(){return this.options.inline?
"inline":"block"},draggable:!0,addAttributes:()=>({src:{default:null},alt:{default:null},title:{default:null}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",(0,r.P1)(this.options.HTMLAttributes,e)]},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[(0,r.x2)({find:o,type:this.type,getAttributes:e=>{const [,,t,n,r]=e;return{src:n,alt:t,title:r}}})]}})},
3816:(e,t,n)=>{n.d(t,{ZP:()=>l});var r=n(3845);const o=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,i=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,a=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,s=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,l=r.vc.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"em"},{tag:"i",getAttrs:e=>"normal"!==e.style.fontStyle&&null},{style:"font-style=italic"}],renderHTML({HTMLAttributes:e}){return["em",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>
({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[(0,r.Cf)({find:o,type:this.type}),(0,r.Cf)({find:a,type:this.type})]},addPasteRules(){return[(0,r.K9)({find:i,type:this.type}),(0,r.K9)({find:s,type:this.type})]}})},6484:(e,t,n)=>{n.d(t,{Z:()=>$e});
var r=n(3845);const o=" \u00f6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u0elos6wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",
i="\u03b5\u03bb1\u03c52\u0431\u04331\u0435\u043b3\u0434\u0435\u0442\u04384\u0435\u044e2\u043a\u0430\u0442\u043e\u043b\u0438\u043a6\u043e\u043c3\u043c\u043a\u04342\u043e\u043d1\u0441\u043a\u0432\u04306\u043e\u043d\u043b\u0430\u0439\u043d5\u0440\u04333\u0440\u0443\u04412\u04442\u0441\u0430\u0439\u04423\u0440\u04313\u0443\u043a\u04403\u049b\u0430\u04373\u0570\u0561\u05753\u05d9\u05e9\u05e8\u05d0\u05dc5\u05e7\u05d5\u05dd3\u0627\u0628\u0648\u0638\u0628\u064a5\u062a\u0635\u0627\u0644\u0627\u062a6\u0631\u0627\u0645\u0643\u06485\u0644\u0627\u0631\u062f\u06464\u0628\u062d\u0631\u064a\u06465\u062c\u0632\u0627\u0626\u06315\u0633\u0639\u0648\u062f\u064a\u06296\u0639\u0644\u064a\u0627\u06465\u0645\u063a\u0631\u06285\u0645\u0627\u0631\u0627\u062a5\u06cc\u0631\u0627\u06465\u0628\u0627\u0631\u062a2\u0632\u0627\u06314\u064a\u062a\u06433\u06be\u0627\u0631\u062a5\u062a\u0648\u0646\u06334\u0633\u0648\u062f\u0627\u06463\u0631\u064a\u06295\u0634\u0628\u0643\u06294\u0639\u0631\u0627\u06422\u06282\u0645\u0627\u06464\u0641\u0644\u0633\u0637\u064a\u06466\u0642\u0637\u06313\u0643\u0627\u062b\u0648\u0644\u064a\u06436\u0648\u06453\u0645\u0635\u06312\u0644\u064a\u0633\u064a\u06275\u0648\u0631\u064a\u062a\u0627\u0646\u064a\u06277\u0642\u06394\u0647\u0645\u0631\u0627\u06475\u067e\u0627\u06a9\u0633\u062a\u0627\u06467\u0680\u0627\u0631\u062a4\u0915\u0949\u092e3\u0928\u0947\u091f3\u092d\u093e\u0930\u09240\u092e\u094d3\u094b\u09245\u0938\u0902\u0917\u0920\u09285\u09ac\u09be\u0982\u09b2\u09be5\u09ad\u09be\u09b0\u09a42\u09f0\u09a44\u0a2d\u0a3e\u0a30\u0a244\u0aad\u0abe\u0ab0\u0aa44\u0b2d\u0b3e\u0b30\u0b244\u0b87\u0ba8\u0bcd\u0ba4\u0bbf\u0baf\u0bbe6\u0bb2\u0b99\u0bcd\u0b95\u0bc86\u0b9a\u0bbf\u0b99\u0bcd\u0b95\u0baa\u0bcd\u0baa\u0bc2\u0bb0\u0bcd11\u0c2d\u0c3e\u0c30\u0c24\u0c4d5\u0cad\u0cbe\u0cb0\u0ca44\u0d2d\u0d3e\u0d30\u0d24\u0d025\u0dbd\u0d82\u0d9a\u0dcf4\u0e04\u0e2d\u0e213\u0e44\u0e17\u0e223\u0ea5\u0eb2\u0ea73\u10d2\u10d42\u307f\u3093\u306a3\u30a2\u30de\u30be\u30f34\u30af\u30e9\u30a6\u30c94\u30b0\u30fc\u30b0\u30eb4\u30b3\u30e02\u30b9\u30c8\u30a23\u30bb\u30fc\u30eb3\u30d5\u30a1\u30c3\u30b7\u30e7\u30f36\u30dd\u30a4\u30f3\u30c84\u4e16\u754c2\u4e2d\u4fe11\u56fd1\u570b1\u6587\u7f513\u4e9a\u9a6c\u900a3\u4f01\u4e1a2\u4f5b\u5c712\u4fe1\u606f2\u5065\u5eb72\u516b\u53662\u516c\u53f81\u76ca2\u53f0\u6e7e1\u70632\u5546\u57ce1\u5e971\u68072\u5609\u91cc0\u5927\u9152\u5e975\u5728\u7ebf2\u5927\u62ff2\u5929\u4e3b\u65593\u5a31\u4e502\u5bb6\u96fb2\u5e7f\u4e1c2\u5fae\u535a2\u6148\u55842\u6211\u7231\u4f603\u624b\u673a2\u62db\u80582\u653f\u52a11\u5e9c2\u65b0\u52a0\u57612\u95fb2\u65f6\u5c1a2\u66f8\u7c4d2\u673a\u67842\u6de1\u9a6c\u95213\u6e38\u620f2\u6fb3\u95802\u70b9\u770b2\u79fb\u52a82\u7ec4\u7ec7\u673a\u67844\u7f51\u57401\u5e971\u7ad91\u7edc2\u8054\u901a2\u8c37\u6b4c2\u8d2d\u72692\u901a\u8ca92\u96c6\u56e22\u96fb\u8a0a\u76c8\u79d14\u98de\u5229\u6d663\u98df\u54c12\u9910\u53852\u9999\u683c\u91cc\u62c93\u6e2f2\ub2f7\ub1371\ucef42\uc0bc\uc1312\ud55c\uad6d2",
a=(e,t)=>{for(const n in t)e[n]=t[n];return e},s="numeric",l="ascii",u="alpha",c="asciinumeric",f="alphanumeric",d="domain",p="emoji",h="scheme",g="slashscheme",m="whitespace";function v(e,t){return e in t||(t[e]=[]),t[e]}function y(e,t,n){t[s]&&(t[c]=!0,t[f]=!0),t[l]&&(t[c]=!0,t[u]=!0),t[c]&&(t[f]=!0),t[u]&&(t[f]=!0),t[f]&&(t[d]=!0),t[p]&&(t[d]=!0);for(const r in t){const t=v(r,n);t.indexOf(e)<0&&t.push(e)}}function b(e){void 0===e&&(e=null),this.j={},this.jr=[],this.jd=null,this.t=e}b.groups={},
b.prototype={accepts(){return!!this.t},go(e){const t=this,n=t.j[e];if(n)return n;for(let n=0;n<t.jr.length;n++){const r=t.jr[n][0],o=t.jr[n][1];if(o&&r.test(e))return o}return t.jd},has(e,t){return void 0===t&&(t=!1),t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let o=0;o<e.length;o++)this.tt(e[o],t,n,r)},tr(e,t,n,r){let o;return r=r||b.groups,t&&t.j?o=t:(o=new b(t),n&&r&&y(t,n,r)),this.jr.push([e,o]),o},ts(e,t,n,r){let o=this;const i=e.length;if(!i)return o;for(let t=0;t<i-1;t++)o=o.tt(e[t]);return o.tt(e[i-
1],t,n,r)},tt(e,t,n,r){r=r||b.groups;const o=this;if(t&&t.j)return o.j[e]=t,t;const i=t;let s,l=o.go(e);if(l?(s=new b,a(s.j,l.j),s.jr.push.apply(s.jr,l.jr),s.jd=l.jd,s.t=l.t):s=new b,i){if(r)if(s.t&&"string"==typeof s.t){const e=a(function(e,t){const n={};for(const r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}(s.t,r),n);y(i,e,r)}else n&&y(i,n,r);s.t=i}return o.j[e]=s,s}};const w=(e,t,n,r,o)=>e.ta(t,n,r,o),x=(e,t,n,r,o)=>e.tr(t,n,r,o),k=(e,t,n,r,o)=>e.ts(t,n,r,o),S=(e,t,n,r,o)=>e.tt(t,n,r,o),C="WORD",
O="UWORD",E="LOCALHOST",M="TLD",T="UTLD",_="SCHEME",A="SLASH_SCHEME",P="NUM",D="WS",N="NL",R="OPENBRACE",L="OPENBRACKET",j="OPENANGLEBRACKET",I="OPENPAREN",F="CLOSEBRACE",z="CLOSEBRACKET",H="CLOSEANGLEBRACKET",B="CLOSEPAREN",V="AMPERSAND",W="APOSTROPHE",$="ASTERISK",U="AT",q="BACKSLASH",Z="BACKTICK",K="CARET",Y="COLON",G="COMMA",J="DOLLAR",X="DOT",Q="EQUALS",ee="EXCLAMATION",te="HYPHEN",ne="PERCENT",re="PIPE",oe="PLUS",ie="POUND",ae="QUERY",se="QUOTE",le="SEMI",ue="SLASH",ce="TILDE",fe="UNDERSCORE",
de="EMOJI",pe="SYM";var he=Object.freeze({__proto__:null,WORD:C,UWORD:O,LOCALHOST:E,TLD:M,UTLD:T,SCHEME:_,SLASH_SCHEME:A,NUM:P,WS:D,NL:N,OPENBRACE:R,OPENBRACKET:L,OPENANGLEBRACKET:j,OPENPAREN:I,CLOSEBRACE:F,CLOSEBRACKET:z,CLOSEANGLEBRACKET:H,CLOSEPAREN:B,AMPERSAND:V,APOSTROPHE:W,ASTERISK:$,AT:U,BACKSLASH:q,BACKTICK:Z,CARET:K,COLON:Y,COMMA:G,DOLLAR:J,DOT:X,EQUALS:Q,EXCLAMATION:ee,HYPHEN:te,PERCENT:ne,PIPE:re,PLUS:oe,POUND:ie,QUERY:ae,QUOTE:se,SEMI:le,SLASH:ue,TILDE:ce,UNDERSCORE:fe,EMOJI:de,SYM:pe});
const ge=/[a-z]/,me=/\p{L}/u,ve=/\p{Emoji}/u,ye=/\d/,be=/\s/,we="\n",xe="\ufe0f",ke="\u200d";let Se=null,Ce=null;function Oe(e,t,n,r,o){let i;const a=t.length;for(let n=0;n<a-1;n++){const a=t[n];e.j[a]?i=e.j[a]:(i=new b(r),i.jr=o.slice(),e.j[a]=i),e=i}return i=new b(n),i.jr=o.slice(),e.j[t[a-1]]=i,i}function Ee(e){const t=[],n=[];let r=0;for(;r<e.length;){let o=0;for(;"0123456789".indexOf(e[r+o])>=0;)o++;if(o>0){t.push(n.join(""));for(let t=parseInt(e.substring(r,r+o),10);t>0;t--)n.pop();r+=o}else n.push(e[r]),
r++}return t}const Me={defaultProtocol:"http",events:null,format:_e,formatHref:_e,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Te(e,t){void 0===t&&(t=null);let n=a({},Me);e&&(n=a(n,e instanceof Te?e.o:e));const r=n.ignoreTags,o=[];for(let e=0;e<r.length;e++)o.push(r[e].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=o}function _e(e){return e}function Ae(e,t){this.t="token",this.v=e,this.tk=t}
function Pe(e,t){class n extends Ae{constructor(t,n){super(t,n),this.t=e}}for(const e in t)n.prototype[e]=t[e];return n.t=e,n}Te.prototype={o:Me,ignoreTags:[],defaultRender:e=>e,check(e){return this.get("validate",e.toString(),e)},get(e,t,n){const r=null!=t;let o=this.o[e];return o?("object"==typeof o?(o=n.t in o?o[n.t]:Me[e],"function"==typeof o&&r&&(o=o(t,n))):"function"==typeof o&&r&&(o=o(t,n.t,n)),o):o},getObj(e,t,n){let r=this.o[e];return"function"==typeof r&&null!=t&&(r=r(t,n.t,n)),r},render(e){const t=
e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}},Ae.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"\u2026":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e){return void 0===
e&&(e=Me.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,n=this.toHref(e.get("defaultProtocol")),r=e.get("formatHref",n,this),o=e.get("tagName",n,t),i=this.toFormattedString(e),
s={},l=e.get("className",n,t),u=e.get("target",n,t),c=e.get("rel",n,t),f=e.getObj("attributes",n,t),d=e.getObj("events",n,t);return s.href=r,l&&(s.class=l),u&&(s.target=u),c&&(s.rel=c),f&&a(s,f),{tagName:o,attributes:s,content:i,eventListeners:d}}};const De=Pe("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Ne=Pe("text"),Re=Pe("nl"),Le=Pe("url",{isLink:!0,toHref(e){return void 0===e&&(e=Me.defaultProtocol),this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;
return e.length>=2&&e[0].t!==E&&e[1].t===Y}}),je=e=>new b(e);function Ie(e,t,n){const r=n[0].s,o=n[n.length-1].e;return new e(t.slice(r,o),n)}const Fe="undefined"!=typeof console&&console&&console.warn||(()=>{}),ze={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function He(e,t){if(void 0===t&&(t=!1),ze.initialized&&Fe(`linkifyjs: already initialized - will not register custom scheme "${e}" until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`),
!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw new Error('linkifyjs: incorrect scheme format.\n 1. Must only contain digits, lowercase ASCII letters or "-"\n 2. Cannot start or end with "-"\n 3. "-" cannot repeat');ze.customSchemes.push([e,t])}function Be(e){return ze.initialized||function(){ze.scanner=function(e){void 0===e&&(e=[]);const t={};b.groups=t;const n=new b;null==Se&&(Se=Ee(o)),null==Ce&&(Ce=Ee(i)),S(n,"'",W),S(n,"{",R),S(n,"[",L),S(n,"<",j),S(n,"(",I),S(n,"}",F),S(n,"]",z),S(n,">",H),S(n,")",
B),S(n,"&",V),S(n,"*",$),S(n,"@",U),S(n,"`",Z),S(n,"^",K),S(n,":",Y),S(n,",",G),S(n,"$",J),S(n,".",X),S(n,"=",Q),S(n,"!",ee),S(n,"-",te),S(n,"%",ne),S(n,"|",re),S(n,"+",oe),S(n,"#",ie),S(n,"?",ae),S(n,'"',se),S(n,"/",ue),S(n,";",le),S(n,"~",ce),S(n,"_",fe),S(n,"\\",q);const r=x(n,ye,P,{[s]:!0});x(r,ye,r);const f=x(n,ge,C,{[l]:!0});x(f,ge,f);const v=x(n,me,O,{[u]:!0});x(v,ge),x(v,me,v);const w=x(n,be,D,{[m]:!0});S(n,we,N,{[m]:!0}),S(w,we),x(w,be,w);const Me=x(n,ve,de,{[p]:!0});x(Me,ve,Me),S(Me,xe,
Me);const Te=S(Me,ke);x(Te,ve,Me);const _e=[[ge,f]],Ae=[[ge,null],[me,v]];for(let e=0;e<Se.length;e++)Oe(n,Se[e],M,C,_e);for(let e=0;e<Ce.length;e++)Oe(n,Ce[e],T,O,Ae);y(M,{tld:!0,ascii:!0},t),y(T,{utld:!0,alpha:!0},t),Oe(n,"file",_,C,_e),Oe(n,"mailto",_,C,_e),Oe(n,"http",A,C,_e),Oe(n,"https",A,C,_e),Oe(n,"ftp",A,C,_e),Oe(n,"ftps",A,C,_e),y(_,{scheme:!0,ascii:!0},t),y(A,{slashscheme:!0,ascii:!0},t),e=e.sort((e,t)=>e[0]>t[0]?1:-1);for(let t=0;t<e.length;t++){const r=e[t][0],o=e[t][1]?{[h]:!0}:{[g]:!0};
r.indexOf("-")>=0?o[d]=!0:ge.test(r)?ye.test(r)?o[c]=!0:o[l]=!0:o[s]=!0,k(n,r,r,o)}return k(n,"localhost",E,{ascii:!0}),n.jd=new b(pe),{start:n,tokens:a({groups:t},he)}}(ze.customSchemes);for(let e=0;e<ze.tokenQueue.length;e++)ze.tokenQueue[e][1]({scanner:ze.scanner});ze.parser=function(e){let {groups:t}=e;const n=t.domain.concat([V,$,U,q,Z,K,J,Q,te,P,ne,re,oe,ie,ue,pe,ce,fe]),r=[W,H,F,z,B,Y,G,X,ee,j,R,L,I,ae,se,le],o=[V,W,$,q,Z,K,F,J,Q,te,R,ne,re,oe,ie,ae,ue,pe,ce,fe],i=je(),a=S(i,ce);w(a,o,a),w(a,
t.domain,a);const s=je(),l=je(),u=je();w(i,t.domain,s),w(i,t.scheme,l),w(i,t.slashscheme,u),w(s,o,a),w(s,t.domain,s);const c=S(s,U);S(a,U,c),S(l,U,c),S(u,U,c);const f=S(a,X);w(f,o,a),w(f,t.domain,a);const d=je();w(c,t.domain,d),w(d,t.domain,d);const p=S(d,X);w(p,t.domain,d);const h=je(De);w(p,t.tld,h),w(p,t.utld,h),S(c,E,h);const g=S(d,te);w(g,t.domain,d),w(h,t.domain,d),S(h,X,p),S(h,te,g);const m=S(h,Y);w(m,t.numeric,De);const v=S(s,te),y=S(s,X);w(v,t.domain,s),w(y,o,a),w(y,t.domain,s);const b=je(Le);
w(y,t.tld,b),w(y,t.utld,b),w(b,t.domain,s),w(b,o,a),S(b,X,y),S(b,te,v),S(b,U,c);const x=S(b,Y),k=je(Le);w(x,t.numeric,k);const C=je(Le),O=je();w(C,n,C),w(C,r,O),w(O,n,C),w(O,r,O),S(b,ue,C),S(k,ue,C);const M=S(l,Y),T=S(u,Y),_=S(T,ue),A=S(_,ue);w(l,t.domain,s),S(l,X,y),S(l,te,v),w(u,t.domain,s),S(u,X,y),S(u,te,v),w(M,t.domain,C),S(M,ue,C),w(A,t.domain,C),w(A,n,C),S(A,ue,C);const D=S(C,R),de=S(C,L),ge=S(C,j),me=S(C,I);S(O,R,D),S(O,L,de),S(O,j,ge),S(O,I,me),S(D,F,C),S(de,z,C),S(ge,H,C),S(me,B,C),S(D,
F,C);const ve=je(Le),ye=je(Le),be=je(Le),we=je(Le);w(D,n,ve),w(de,n,ye),w(ge,n,be),w(me,n,we);const xe=je(),ke=je(),Se=je(),Ce=je();return w(D,r),w(de,r),w(ge,r),w(me,r),w(ve,n,ve),w(ye,n,ye),w(be,n,be),w(we,n,we),w(ve,r,ve),w(ye,r,ye),w(be,r,be),w(we,r,we),w(xe,n,xe),w(ke,n,ye),w(Se,n,be),w(Ce,n,we),w(xe,r,xe),w(ke,r,ke),w(Se,r,Se),w(Ce,r,Ce),S(ye,z,C),S(be,H,C),S(we,B,C),S(ve,F,C),S(ke,z,C),S(Se,H,C),S(Ce,B,C),S(xe,B,C),S(i,E,b),S(i,N,Re),{start:i,tokens:he}}(ze.scanner.tokens);for(let e=0;e<ze.pluginQueue.length;e++)ze.pluginQueue[e][1]({scanner:ze.scanner,
parser:ze.parser});ze.initialized=!0}(),function(e,t,n){let r=n.length,o=0,i=[],a=[];for(;o<r;){let s=e,l=null,u=null,c=0,f=null,d=-1;for(;o<r&&!(l=s.go(n[o].t));)a.push(n[o++]);for(;o<r&&(u=l||s.go(n[o].t));)l=null,s=u,s.accepts()?(d=0,f=s):d>=0&&d++,o++,c++;if(d<0)o-=c,o<r&&(a.push(n[o]),o++);else{a.length>0&&(i.push(Ie(Ne,t,a)),a=[]),o-=d,c-=d;const e=f.t,r=n.slice(o-c,o);i.push(Ie(e,t,r))}}return a.length>0&&i.push(Ie(Ne,t,a)),i}(ze.parser.start,e,function(e,t){const n=function(e){const t=[],
n=e.length;let r=0;for(;r<n;){let o,i=e.charCodeAt(r),a=i<55296||i>56319||r+1===n||(o=e.charCodeAt(r+1))<56320||o>57343?e[r]:e.slice(r,r+2);t.push(a),r+=a.length}return t}(t.replace(/[A-Z]/g,e=>e.toLowerCase())),r=n.length,o=[];let i=0,a=0;for(;a<r;){let s=e,l=null,u=0,c=null,f=-1,d=-1;for(;a<r&&(l=s.go(n[a]));)s=l,s.accepts()?(f=0,d=0,c=s):f>=0&&(f+=n[a].length,d++),u+=n[a].length,i+=n[a].length,a++;i-=f,a-=d,u-=f,o.push({t:c.t,v:t.slice(i-u,i),s:i-u,e:i})}return o}(ze.scanner.start,e))}function Ve(e,
t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),t&&"object"==typeof t){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}const r=new Te(n),o=Be(e),i=[];for(let e=0;e<o.length;e++){const n=o[e];!n.isLink||t&&n.t!==t||i.push(n.toFormattedObject(r))}return i}var We=n(2376);const $e=r.vc.create({name:"link",priority:1E3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(e=>{"string"!=typeof e?He(e.scheme,e.optionalSlashes):He(e)})},onDestroy(){b.groups={},ze.scanner=
null,ze.parser=null,ze.tokenQueue=[],ze.pluginQueue=[],ze.customSchemes=[],ze.initialized=!1},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}),addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML:()=>
[{tag:'a[href]:not([href *= "javascript:" i])'}],renderHTML({HTMLAttributes:e}){return["a",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setLink:e=>({chain:t})=>t().setMark(this.name,e).setMeta("preventAutolink",!0).run(),toggleLink:e=>({chain:t})=>t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[(0,r.K9)({find:e=>
Ve(e).filter(e=>!this.options.validate||this.options.validate(e.value)).filter(e=>e.isLink).map(e=>({text:e.value,index:e.start,data:e})),type:this.type,getAttributes:(e,t)=>{var n,r;const o=null===(n=null==t?void 0:t.clipboardData)||void 0===n?void 0:n.getData("text/html"),i=null==o?void 0:o.match(/href="([^"]*)"/);return i?{href:i[1]}:{href:null===(r=e.data)||void 0===r?void 0:r.href}}})]},addProseMirrorPlugins(){const e=[];return this.options.autolink&&e.push((t={type:this.type,validate:this.options.validate},
new We.Sy({key:new We.H$("autolink"),appendTransaction:(e,n,o)=>{const i=e.some(e=>e.docChanged)&&!n.doc.eq(o.doc),a=e.some(e=>e.getMeta("preventAutolink"));if(!i||a)return;const {tr:s}=o,l=(0,r.XP)(n.doc,[...e]);return(0,r.QC)(l).forEach(({newRange:e})=>{const n=(0,r.b5)(o.doc,e,e=>e.isTextblock);let i,a;if(n.length>1?(i=n[0],a=o.doc.textBetween(i.pos,i.pos+i.node.nodeSize,void 0," ")):n.length&&o.doc.textBetween(e.from,e.to," "," ").endsWith(" ")&&(i=n[0],a=o.doc.textBetween(i.pos,e.to,void 0," ")),
i&&a){const e=a.split(" ").filter(e=>""!==e);if(e.length<=0)return!1;const n=e[e.length-1],l=i.pos+a.lastIndexOf(n);if(!n)return!1;Ve(n).filter(e=>e.isLink).map(e=>({...e,from:l+e.start+1,to:l+e.end+1})).filter(e=>!o.schema.marks.code||!o.doc.rangeHasMark(e.from,e.to,o.schema.marks.code)).filter(e=>!t.validate||t.validate(e.value)).forEach(e=>{(0,r.tI)(e.from,e.to,o.doc).some(e=>e.mark.type===t.type)||s.addMark(e.from,e.to,t.type.create({href:e.href}))})}}),s.steps.length?s:void 0}}))),this.options.openOnClick&&
e.push(function(e){return new We.Sy({key:new We.H$("handleClickLink"),props:{handleClick:(t,n,o)=>{var i,a;if(0!==o.button)return!1;if("A"!==o.target.nodeName)return!1;const s=(0,r.u9)(t.state,e.type.name),l=o.target,u=null!==(i=null==l?void 0:l.href)&&void 0!==i?i:s.href,c=null!==(a=null==l?void 0:l.target)&&void 0!==a?a:s.target;return!(!l||!u||(t.editable&&window.open(u,c),0))}}})}({type:this.type})),this.options.linkOnPaste&&e.push(function(e){return new We.Sy({key:new We.H$("handlePasteLink"),
props:{handlePaste:(t,n,r)=>{var o;const {state:i}=t,{selection:a}=i,{empty:s}=a;if(s)return!1;let l="";r.content.forEach(e=>{l+=e.textContent});const u=Ve(l).find(e=>e.isLink&&e.value===l);if(!l||!u)return!1;const c=null===(o=n.clipboardData)||void 0===o?void 0:o.getData("text/html"),f=null==c?void 0:c.match(/href="([^"]*)"/),d=f?f[1]:u.href;return e.editor.commands.setMark(e.type,{href:d}),!0}}})}({editor:this.editor,type:this.type})),e;var t}})},4565:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(3845);const o=
r.NB.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",(0,r.P1)(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}})},1575:(e,t,n)=>
{n.d(t,{ZP:()=>s});var r=n(3845);const o=r.NB.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",(0,r.P1)(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),
i=r.vc.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:e=>!!e.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:e}){return["span",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:e,commands:t})=>{const n=(0,r.Jo)(e,this.type);return!!Object.entries(n).some(([,e])=>!!e)||t.unsetMark(this.name)}}}}),a=/^(\d+)\.\s$/,s=r.NB.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},
keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:e}){const {start:t,...n}=e;return 1===t?["ol",(0,r.P1)(this.options.HTMLAttributes,n),0]:["ol",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?
t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(o.name,this.editor.getAttributes(i.name)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=(0,r.S0)({find:a,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&
(e=(0,r.S0)({find:a,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(i.name)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}})},6022:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(3845);const o=r.NB.create({name:"paragraph",priority:1E3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:e}){return["p",
(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}})},658:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(3845);const o=r.NB.create({name:"tableCell",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{const t=e.getAttribute("colwidth");return t?[parseInt(t,10)]:
null}}}),tableRole:"cell",isolating:!0,parseHTML:()=>[{tag:"td"}],renderHTML({HTMLAttributes:e}){return["td",(0,r.P1)(this.options.HTMLAttributes,e),0]}})},3626:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(3845);const o=r.NB.create({name:"tableHeader",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{const t=e.getAttribute("colwidth");return t?[parseInt(t,10)]:null}}}),tableRole:"header_cell",isolating:!0,parseHTML:()=>
[{tag:"th"}],renderHTML({HTMLAttributes:e}){return["th",(0,r.P1)(this.options.HTMLAttributes,e),0]}})},3991:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(3845);const o=r.NB.create({name:"tableRow",addOptions:()=>({HTMLAttributes:{}}),content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML:()=>[{tag:"tr"}],renderHTML({HTMLAttributes:e}){return["tr",(0,r.P1)(this.options.HTMLAttributes,e),0]}})},1347:(e,t,n)=>{n.d(t,{ZP:()=>ge});var r,o,i=n(3845),a=n(2376),s=n(7823),l=n(4348),u=n(2337),c=n(8646);if("undefined"!=
typeof WeakMap){let e=new WeakMap;r=t=>e.get(t),o=(t,n)=>(e.set(t,n),n)}else{const e=[],t=10;let n=0;r=t=>{for(let n=0;n<e.length;n+=2)if(e[n]==t)return e[n+1]},o=(r,o)=>(n==t&&(n=0),e[n++]=r,e[n++]=o)}var f=class{constructor(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r}findCell(e){for(let t=0;t<this.map.length;t++){const n=this.map[t];if(n!=e)continue;const r=t%this.width,o=t/this.width|0;let i=r+1,a=o+1;for(let e=1;i<this.width&&this.map[t+e]==n;e++)i++;for(let e=1;a<this.height&&
this.map[t+this.width*e]==n;e++)a++;return{left:r,top:o,right:i,bottom:a}}throw new RangeError(`No cell with offset ${e} found`);}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw new RangeError(`No cell with offset ${e} found`);}nextCell(e,t,n){const {left:r,right:o,top:i,bottom:a}=this.findCell(e);return"horiz"==t?(n<0?0==r:o==this.width)?null:this.map[i*this.width+(n<0?r-1:o)]:(n<0?0==i:a==this.height)?null:this.map[r+this.width*(n<0?i-1:a)]}rectBetween(e,
t){const {left:n,right:r,top:o,bottom:i}=this.findCell(e),{left:a,right:s,top:l,bottom:u}=this.findCell(t);return{left:Math.min(n,a),top:Math.min(o,l),right:Math.max(r,s),bottom:Math.max(i,u)}}cellsInRect(e){const t=[],n={};for(let r=e.top;r<e.bottom;r++)for(let o=e.left;o<e.right;o++){const i=r*this.width+o,a=this.map[i];n[a]||(n[a]=!0,o==e.left&&o&&this.map[i-1]==a||r==e.top&&r&&this.map[i-this.width]==a||t.push(a))}return t}positionAt(e,t,n){for(let r=0,o=0;;r++){const i=o+n.child(r).nodeSize;
if(r==e){let n=t+e*this.width;const r=(e+1)*this.width;for(;n<r&&this.map[n]<o;)n++;return n==r?i-1:this.map[n]}o=i}}static get(e){return r(e)||o(e,function(e){if("table"!=e.type.spec.tableRole)throw new RangeError("Not a table node: "+e.type.name);const t=function(e){let t=-1,n=!1;for(let r=0;r<e.childCount;r++){const o=e.child(r);let i=0;if(n)for(let t=0;t<r;t++){const n=e.child(t);for(let e=0;e<n.childCount;e++){const o=n.child(e);t+o.attrs.rowspan>r&&(i+=o.attrs.colspan)}}for(let e=0;e<o.childCount;e++){const t=
o.child(e);i+=t.attrs.colspan,t.attrs.rowspan>1&&(n=!0)}-1==t?t=i:t!=i&&(t=Math.max(t,i))}return t}(e),n=e.childCount,r=[];let o=0,i=null;const a=[];for(let e=0,o=t*n;e<o;e++)r[e]=0;for(let s=0,l=0;s<n;s++){const u=e.child(s);l++;for(let e=0;;e++){for(;o<r.length&&0!=r[o];)o++;if(e==u.childCount)break;const c=u.child(e),{colspan:f,rowspan:d,colwidth:p}=c.attrs;for(let e=0;e<d;e++){if(e+s>=n){(i||(i=[])).push({type:"overlong_rowspan",pos:l,n:d-e});break}const u=o+e*t;for(let e=0;e<f;e++){0==r[u+e]?
r[u+e]=l:(i||(i=[])).push({type:"collision",row:s,pos:l,n:f-e});const n=p&&p[e];if(n){const r=(u+e)%t*2,o=a[r];null==o||o!=n&&1==a[r+1]?(a[r]=n,a[r+1]=1):o==n&&a[r+1]++}}}o+=f,l+=c.nodeSize}const c=(s+1)*t;let f=0;for(;o<c;)0==r[o++]&&f++;f&&(i||(i=[])).push({type:"missing",row:s,n:f}),l++}const s=new f(t,n,r,i);let l=!1;for(let e=0;!l&&e<a.length;e+=2)null!=a[e]&&a[e+1]<n&&(l=!0);return l&&function(e,t,n){e.problems||(e.problems=[]);const r={};for(let o=0;o<e.map.length;o++){const i=e.map[o];if(r[i])continue;
r[i]=!0;const a=n.nodeAt(i);if(!a)throw new RangeError(`No cell with offset ${i} found`);let s=null;const l=a.attrs;for(let n=0;n<l.colspan;n++){const r=t[(o+n)%e.width*2];null==r||l.colwidth&&l.colwidth[n]==r||((s||(s=d(l)))[n]=r)}s&&e.problems.unshift({type:"colwidth mismatch",pos:i,colwidth:s})}}(s,a,e),s}(e))}};function d(e){if(e.colwidth)return e.colwidth.slice();const t=[];for(let n=0;n<e.colspan;n++)t.push(0);return t}function p(e){let t=e.cached.tableNodeTypes;if(!t){t=e.cached.tableNodeTypes=
{};for(const n in e.nodes){const r=e.nodes[n],o=r.spec.tableRole;o&&(t[o]=r)}}return t}var h=new a.H$("selectingCells");function g(e){for(let t=e.depth-1;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return e.node(0).resolve(e.before(t+1));return null}function m(e){const t=e.selection.$head;for(let e=t.depth;e>0;e--)if("row"==t.node(e).type.spec.tableRole)return!0;return!1}function v(e){const t=e.selection;if("$anchorCell"in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:
t.$headCell;if("node"in t&&t.node&&"cell"==t.node.type.spec.tableRole)return t.$anchor;const n=g(t.$head)||function(e){for(let t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){const r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n)}for(let t=e.nodeBefore,n=e.pos;t;t=t.lastChild,n--){const r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n-t.nodeSize)}}(t.$head);if(n)return n;throw new RangeError(`No cell found around position ${t.head}`);}function y(e){return"row"==
e.parent.type.spec.tableRole&&!!e.nodeAfter}function b(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function w(e,t,n){const r=e.node(-1),o=f.get(r),i=e.start(-1),a=o.nextCell(e.pos-i,t,n);return null==a?null:e.node(0).resolve(i+a)}function x(e,t,n=1){const r={...e,colspan:e.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some(e=>e>0)||(r.colwidth=null)),r}function k(e,t,n=1){const r={...e,colspan:e.colspan+n};if(r.colwidth){r.colwidth=
r.colwidth.slice();for(let e=0;e<n;e++)r.colwidth.splice(t,0,0)}return r}var S=class extends a.Y1{constructor(e,t=e){const n=e.node(-1),r=f.get(n),o=e.start(-1),i=r.rectBetween(e.pos-o,t.pos-o),s=e.node(0),l=r.cellsInRect(i).filter(e=>e!=t.pos-o);l.unshift(t.pos-o);const u=l.map(e=>{const t=n.nodeAt(e);if(!t)throw RangeError(`No cell with offset ${e} found`);const r=o+e+1;return new a.xm(s.resolve(r),s.resolve(r+t.content.size))});super(u[0].$from,u[0].$to,u),this.$anchorCell=e,this.$headCell=t}map(e,
t){const n=e.resolve(t.map(this.$anchorCell.pos)),r=e.resolve(t.map(this.$headCell.pos));if(y(n)&&y(r)&&b(n,r)){const e=this.$anchorCell.node(-1)!=n.node(-1);return e&&this.isRowSelection()?S.rowSelection(n,r):e&&this.isColSelection()?S.colSelection(n,r):new S(n,r)}return a.Bs.between(n,r)}content(){const e=this.$anchorCell.node(-1),t=f.get(e),n=this.$anchorCell.start(-1),r=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),o={},i=[];for(let n=r.top;n<r.bottom;n++){const a=[];for(let i=n*
t.width+r.left,s=r.left;s<r.right;s++,i++){const n=t.map[i];if(o[n])continue;o[n]=!0;const s=t.findCell(n);let l=e.nodeAt(n);if(!l)throw RangeError(`No cell with offset ${n} found`);const u=r.left-s.left,c=s.right-r.right;if(u>0||c>0){let e=l.attrs;if(u>0&&(e=x(e,0,u)),c>0&&(e=x(e,e.colspan-c,c)),s.left<r.left){if(l=l.type.createAndFill(e),!l)throw RangeError(`Could not create cell with attrs ${JSON.stringify(e)}`);}else l=l.type.create(e,l.content)}if(s.top<r.top||s.bottom>r.bottom){const e={...l.attrs,
rowspan:Math.min(s.bottom,r.bottom)-Math.max(s.top,r.top)};l=s.top<r.top?l.type.createAndFill(e):l.type.create(e,l.content)}a.push(l)}i.push(e.child(n).copy(s.HY.from(a)))}const a=this.isColSelection()&&this.isRowSelection()?e:i;return new s.p2(s.HY.from(a),1,1)}replace(e,t=s.p2.empty){const n=e.steps.length,r=this.ranges;for(let o=0;o<r.length;o++){const {$from:i,$to:a}=r[o],l=e.mapping.slice(n);e.replace(l.map(i.pos),l.map(a.pos),o?s.p2.empty:t)}const o=a.Y1.findFrom(e.doc.resolve(e.mapping.slice(n).map(this.to)),
-1);o&&e.setSelection(o)}replaceWith(e,t){this.replace(e,new s.p2(s.HY.from(t),0,0))}forEachCell(e){const t=this.$anchorCell.node(-1),n=f.get(t),r=this.$anchorCell.start(-1),o=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r));for(let n=0;n<o.length;n++)e(t.nodeAt(o[n]),r+o[n])}isColSelection(){const e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(Math.min(e,t)>0)return!1;const n=e+this.$anchorCell.nodeAfter.attrs.rowspan,r=t+this.$headCell.nodeAfter.attrs.rowspan;
return Math.max(n,r)==this.$headCell.node(-1).childCount}static colSelection(e,t=e){const n=e.node(-1),r=f.get(n),o=e.start(-1),i=r.findCell(e.pos-o),a=r.findCell(t.pos-o),s=e.node(0);return i.top<=a.top?(i.top>0&&(e=s.resolve(o+r.map[i.left])),a.bottom<r.height&&(t=s.resolve(o+r.map[r.width*(r.height-1)+a.right-1]))):(a.top>0&&(t=s.resolve(o+r.map[a.left])),i.bottom<r.height&&(e=s.resolve(o+r.map[r.width*(r.height-1)+i.right-1]))),new S(e,t)}isRowSelection(){const e=this.$anchorCell.node(-1),t=f.get(e),
n=this.$anchorCell.start(-1),r=t.colCount(this.$anchorCell.pos-n),o=t.colCount(this.$headCell.pos-n);if(Math.min(r,o)>0)return!1;const i=r+this.$anchorCell.nodeAfter.attrs.colspan,a=o+this.$headCell.nodeAfter.attrs.colspan;return Math.max(i,a)==t.width}eq(e){return e instanceof S&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos}static rowSelection(e,t=e){const n=e.node(-1),r=f.get(n),o=e.start(-1),i=r.findCell(e.pos-o),a=r.findCell(t.pos-o),s=e.node(0);return i.left<=
a.left?(i.left>0&&(e=s.resolve(o+r.map[i.top*r.width])),a.right<r.width&&(t=s.resolve(o+r.map[r.width*(a.top+1)-1]))):(a.left>0&&(t=s.resolve(o+r.map[a.top*r.width])),i.right<r.width&&(e=s.resolve(o+r.map[r.width*(i.top+1)-1]))),new S(e,t)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(e,t){return new S(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){return new S(e.resolve(t),e.resolve(n))}getBookmark(){return new C(this.$anchorCell.pos,
this.$headCell.pos)}};S.prototype.visible=!1,a.Y1.jsonID("cell",S);var C=class{constructor(e,t){this.anchor=e,this.head=t}map(e){return new C(e.map(this.anchor),e.map(this.head))}resolve(e){const t=e.resolve(this.anchor),n=e.resolve(this.head);return"row"==t.parent.type.spec.tableRole&&"row"==n.parent.type.spec.tableRole&&t.index()<t.parent.childCount&&n.index()<n.parent.childCount&&b(t,n)?new S(t,n):a.Y1.near(n,1)}};function O(e){if(!(e.selection instanceof S))return null;const t=[];return e.selection.forEachCell((e,
n)=>{t.push(l.p.node(n,n+e.nodeSize,{class:"selectedCell"}))}),l.EH.create(e.doc,t)}var E=new a.H$("fix-tables");function M(e,t,n,r){const o=e.childCount,i=t.childCount;e:for(let a=0,s=0;a<i;a++){const i=t.child(a);for(let t=s,r=Math.min(o,a+3);t<r;t++)if(e.child(t)==i){s=t+1,n+=i.nodeSize;continue e}r(i,n),s<o&&e.child(s).sameMarkup(i)?M(e.child(s),i,n+1,r):i.nodesBetween(0,i.content.size,r,n+1),n+=i.nodeSize}}function T(e,t){let n;const r=(t,r)=>{"table"==t.type.spec.tableRole&&(n=function(e,t,
n,r){const o=f.get(t);if(!o.problems)return r;r||(r=e.tr);const i=[];for(let e=0;e<o.height;e++)i.push(0);for(let e=0;e<o.problems.length;e++){const a=o.problems[e];if("collision"==a.type){const e=t.nodeAt(a.pos);if(!e)continue;const o=e.attrs;for(let e=0;e<o.rowspan;e++)i[a.row+e]+=a.n;r.setNodeMarkup(r.mapping.map(n+1+a.pos),null,x(o,o.colspan-a.n,a.n))}else if("missing"==a.type)i[a.row]+=a.n;else if("overlong_rowspan"==a.type){const e=t.nodeAt(a.pos);if(!e)continue;r.setNodeMarkup(r.mapping.map(n+
1+a.pos),null,{...e.attrs,rowspan:e.attrs.rowspan-a.n})}else if("colwidth mismatch"==a.type){const e=t.nodeAt(a.pos);if(!e)continue;r.setNodeMarkup(r.mapping.map(n+1+a.pos),null,{...e.attrs,colwidth:a.colwidth})}}let a,s;for(let e=0;e<i.length;e++)i[e]&&(null==a&&(a=e),s=e);for(let l=0,u=n+1;l<o.height;l++){const n=t.child(l),o=u+n.nodeSize,c=i[l];if(c>0){let t="cell";n.firstChild&&(t=n.firstChild.type.spec.tableRole);const i=[];for(let n=0;n<c;n++){const n=p(e.schema)[t].createAndFill();n&&i.push(n)}const f=
0!=l&&a!=l-1||s!=l?o-1:u+1;r.insert(r.mapping.map(f),i)}u=o}return r.setMeta(E,{fixTables:!0})}(e,t,r,n))};return t?t.doc!=e.doc&&M(t.doc,e.doc,0,r):e.doc.descendants(r),n}function _(e,t){const n=e.createAndFill();return(new c.wx(n)).replace(0,n.content.size,t).doc}function A(e,t,n,r,o,i,a,s){if(0==a||a==t.height)return!1;let l=!1;for(let u=o;u<i;u++){const o=a*t.width+u,i=t.map[o];if(t.map[o-t.width]==i){l=!0;const o=n.nodeAt(i),{top:c,left:f}=t.findCell(i);e.setNodeMarkup(e.mapping.slice(s).map(i+
r),null,{...o.attrs,rowspan:a-c}),e.insert(e.mapping.slice(s).map(t.positionAt(a,f,n)),o.type.createAndFill({...o.attrs,rowspan:c+o.attrs.rowspan-a})),u+=o.attrs.colspan-1}}return l}function P(e,t,n,r,o,i,a,s){if(0==a||a==t.width)return!1;let l=!1;for(let u=o;u<i;u++){const o=u*t.width+a,i=t.map[o];if(t.map[o-1]==i){l=!0;const o=n.nodeAt(i),c=t.colCount(i),f=e.mapping.slice(s).map(i+r);e.setNodeMarkup(f,null,x(o.attrs,a-c,o.attrs.colspan-(a-c))),e.insert(f+o.nodeSize,o.type.createAndFill(x(o.attrs,
0,a-c))),u+=o.attrs.rowspan-1}}return l}function D(e,t,n,r,o){let i=n?e.doc.nodeAt(n-1):e.doc;if(!i)throw new Error("No table found");let a=f.get(i);const {top:l,left:u}=r,c=u+o.width,d=l+o.height,h=e.tr;let g=0;function m(){if(i=n?h.doc.nodeAt(n-1):h.doc,!i)throw new Error("No table found");a=f.get(i),g=h.mapping.maps.length}(function(e,t,n,r,o,i,a){const l=p(e.doc.type.schema);let u,c;if(o>t.width)for(let i=0,s=0;i<t.height;i++){const f=n.child(i);s+=f.nodeSize;const d=[];let p;p=null==f.lastChild||
f.lastChild.type==l.cell?u||(u=l.cell.createAndFill()):c||(c=l.header_cell.createAndFill());for(let e=t.width;e<o;e++)d.push(p);e.insert(e.mapping.slice(a).map(s-1+r),d)}if(i>t.height){const f=[];for(let e=0,r=(t.height-1)*t.width;e<Math.max(t.width,o);e++){const o=!(e>=t.width)&&n.nodeAt(t.map[r+e]).type==l.header_cell;f.push(o?c||(c=l.header_cell.createAndFill()):u||(u=l.cell.createAndFill()))}const d=l.row.create(null,s.HY.from(f)),p=[];for(let e=t.height;e<i;e++)p.push(d);e.insert(e.mapping.slice(a).map(r+
n.nodeSize-2),p)}return!(!u&&!c)})(h,a,i,n,c,d,g)&&m(),A(h,a,i,n,u,c,l,g)&&m(),A(h,a,i,n,u,c,d,g)&&m(),P(h,a,i,n,l,d,u,g)&&m(),P(h,a,i,n,l,d,c,g)&&m();for(let e=l;e<d;e++){const t=a.positionAt(e,u,i),r=a.positionAt(e,c,i);h.replace(h.mapping.slice(g).map(t+n),h.mapping.slice(g).map(r+n),new s.p2(o.rows[e-l],0,0))}m(),h.setSelection(new S(h.doc.resolve(n+a.positionAt(l,u,i)),h.doc.resolve(n+a.positionAt(d-1,c-1,i)))),t(h)}var N=(0,u.$)({ArrowLeft:L("horiz",-1),ArrowRight:L("horiz",1),ArrowUp:L("vert",
-1),ArrowDown:L("vert",1),"Shift-ArrowLeft":j("horiz",-1),"Shift-ArrowRight":j("horiz",1),"Shift-ArrowUp":j("vert",-1),"Shift-ArrowDown":j("vert",1),Backspace:I,"Mod-Backspace":I,Delete:I,"Mod-Delete":I});function R(e,t,n){return!n.eq(e.selection)&&(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function L(e,t){return(n,r,o)=>{if(!o)return!1;const i=n.selection;if(i instanceof S)return R(n,r,a.Y1.near(i.$headCell,t));if("horiz"!=e&&!i.empty)return!1;const s=B(o,e,t);if(null==s)return!1;if("horiz"==
e)return R(n,r,a.Y1.near(n.doc.resolve(i.head+t),t));{const o=n.doc.resolve(s),i=w(o,e,t);let l;return l=i?a.Y1.near(i,1):t<0?a.Y1.near(n.doc.resolve(o.before(-1)),-1):a.Y1.near(n.doc.resolve(o.after(-1)),1),R(n,r,l)}}}function j(e,t){return(n,r,o)=>{if(!o)return!1;const i=n.selection;let a;if(i instanceof S)a=i;else{const r=B(o,e,t);if(null==r)return!1;a=new S(n.doc.resolve(r))}const s=w(a.$headCell,e,t);return!!s&&R(n,r,new S(a.$anchorCell,s))}}function I(e,t){const n=e.selection;if(!(n instanceof
S))return!1;if(t){const r=e.tr,o=p(e.schema).cell.createAndFill().content;n.forEachCell((e,t)=>{e.content.eq(o)||r.replace(r.mapping.map(t+1),r.mapping.map(t+e.nodeSize-1),new s.p2(o,0,0))}),r.docChanged&&t(r)}return!0}function F(e,t){const n=g(e.state.doc.resolve(t));return!!n&&(e.dispatch(e.state.tr.setSelection(new S(n))),!0)}function z(e,t,n){if(!m(e.state))return!1;let r=function(e){if(!e.size)return null;let {content:t,openStart:n,openEnd:r}=e;for(;1==t.childCount&&(n>0&&r>0||"table"==t.child(0).type.spec.tableRole);)n--,
r--,t=t.child(0).content;const o=t.child(0),i=o.type.spec.tableRole,a=o.type.schema,l=[];if("row"==i)for(let e=0;e<t.childCount;e++){let o=t.child(e).content;const i=e?0:Math.max(0,n-1),u=e<t.childCount-1?0:Math.max(0,r-1);(i||u)&&(o=_(p(a).row,new s.p2(o,i,u)).content),l.push(o)}else{if("cell"!=i&&"header_cell"!=i)return null;l.push(n||r?_(p(a).row,new s.p2(t,n,r)).content:t)}return function(e,t){const n=[];for(let e=0;e<t.length;e++){const r=t[e];for(let t=r.childCount-1;t>=0;t--){const {rowspan:o,
colspan:i}=r.child(t).attrs;for(let t=e;t<e+o;t++)n[t]=(n[t]||0)+i}}let r=0;for(let e=0;e<n.length;e++)r=Math.max(r,n[e]);for(let o=0;o<n.length;o++)if(o>=t.length&&t.push(s.HY.empty),n[o]<r){const i=p(e).cell.createAndFill(),a=[];for(let e=n[o];e<r;e++)a.push(i);t[o]=t[o].append(s.HY.from(a))}return{height:t.length,width:r,rows:t}}(a,l)}(n);const o=e.state.selection;if(o instanceof S){r||(r={width:1,height:1,rows:[s.HY.from(_(p(e.state.schema).cell,n))]});const t=o.$anchorCell.node(-1),i=o.$anchorCell.start(-1),
a=f.get(t).rectBetween(o.$anchorCell.pos-i,o.$headCell.pos-i);return r=function({width:e,height:t,rows:n},r,o){if(e!=r){const t=[],o=[];for(let e=0;e<n.length;e++){const i=n[e],a=[];for(let n=t[e]||0,o=0;n<r;o++){let s=i.child(o%i.childCount);n+s.attrs.colspan>r&&(s=s.type.createChecked(x(s.attrs,s.attrs.colspan,n+s.attrs.colspan-r),s.content)),a.push(s),n+=s.attrs.colspan;for(let n=1;n<s.attrs.rowspan;n++)t[e+n]=(t[e+n]||0)+s.attrs.colspan}o.push(s.HY.from(a))}n=o,e=r}if(t!=o){const e=[];for(let r=
0,i=0;r<o;r++,i++){const a=[],l=n[i%t];for(let e=0;e<l.childCount;e++){let t=l.child(e);r+t.attrs.rowspan>o&&(t=t.type.create({...t.attrs,rowspan:Math.max(1,o-t.attrs.rowspan)},t.content)),a.push(t)}e.push(s.HY.from(a))}n=e,t=o}return{width:e,height:t,rows:n}}(r,a.right-a.left,a.bottom-a.top),D(e.state,e.dispatch,i,a,r),!0}if(r){const t=v(e.state),n=t.start(-1);return D(e.state,e.dispatch,n,f.get(t.node(-1)).findCell(t.pos-n),r),!0}return!1}function H(e,t){var n;if(t.ctrlKey||t.metaKey)return;const r=
V(e,t.target);let o;if(t.shiftKey&&e.state.selection instanceof S)i(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&r&&null!=(o=g(e.state.selection.$anchor))&&(null==(n=W(e,t))?void 0:n.pos)!=o.pos)i(o,t),t.preventDefault();else if(!r)return;function i(t,n){let r=W(e,n);const o=null==h.getState(e.state);if(!r||!b(t,r)){if(!o)return;r=t}const i=new S(t,r);if(o||!e.state.selection.eq(i)){const n=e.state.tr.setSelection(i);o&&n.setMeta(h,t.pos),e.dispatch(n)}}function a(){e.root.removeEventListener("mouseup",
a),e.root.removeEventListener("dragstart",a),e.root.removeEventListener("mousemove",s),null!=h.getState(e.state)&&e.dispatch(e.state.tr.setMeta(h,-1))}function s(n){const o=n,s=h.getState(e.state);let l;if(null!=s)l=e.state.doc.resolve(s);else if(V(e,o.target)!=r&&(l=W(e,t),!l))return a();l&&i(l,o)}e.root.addEventListener("mouseup",a),e.root.addEventListener("dragstart",a),e.root.addEventListener("mousemove",s)}function B(e,t,n){if(!(e.state.selection instanceof a.Bs))return null;const {$head:r}=
e.state.selection;for(let o=r.depth-1;o>=0;o--){const i=r.node(o);if((n<0?r.index(o):r.indexAfter(o))!=(n<0?0:i.childCount))return null;if("cell"==i.type.spec.tableRole||"header_cell"==i.type.spec.tableRole){const i=r.before(o),a="vert"==t?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(a)?i:null}}return null}function V(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t;return null}function W(e,t){const n=e.posAtCoords({left:t.clientX,top:t.clientY});return n&&
n?g(e.state.doc.resolve(n.pos)):null}var $=class{constructor(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),U(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type==this.node.type&&(this.node=e,U(e,this.colgroup,this.table,this.cellMinWidth),
!0)}ignoreMutation(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))}};function U(e,t,n,r,o,i){var a;let s=0,l=!0,u=t.firstChild;const c=e.firstChild;if(c){for(let e=0,n=0;e<c.childCount;e++){const {colspan:a,colwidth:f}=c.child(e).attrs;for(let e=0;e<a;e++,n++){const a=o==n?i:f&&f[e],c=a?a+"px":"";s+=a||r,a||(l=!1),u?(u.style.width!=c&&(u.style.width=c),u=u.nextSibling):t.appendChild(document.createElement("col")).style.width=c}}for(;u;){const e=u.nextSibling;
null==(a=u.parentNode)||a.removeChild(u),u=e}l?(n.style.width=s+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=s+"px")}}var q=new a.H$("tableColumnResizing");function Z({handleWidth:e=5,cellMinWidth:t=25,View:n=$,lastColumnResizable:r=!0}={}){const o=new a.Sy({key:q,state:{init:(e,r)=>(o.spec.props.nodeViews[p(r.schema).table.name]=(e,r)=>new n(e,t,r),new K(-1,!1)),apply:(e,t)=>t.apply(e)},props:{attributes:e=>{const t=q.getState(e);return t&&t.activeHandle>-1?{class:"resize-cursor"}:
{}},handleDOMEvents:{mousemove:(t,n)=>{!function(e,t,n,r,o){const i=q.getState(e.state);if(i&&!i.dragging){const r=function(e){for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.classList&&e.classList.contains("ProseMirror")?null:e.parentNode;return e}(t.target);let a=-1;if(r){const {left:o,right:i}=r.getBoundingClientRect();t.clientX-o<=n?a=Y(e,t,"left",n):i-t.clientX<=n&&(a=Y(e,t,"right",n))}if(a!=i.activeHandle){if(!o&&-1!==a){const t=e.state.doc.resolve(a),n=t.node(-1),r=f.get(n),o=t.start(-1);if(r.colCount(t.pos-
o)+t.nodeAfter.attrs.colspan-1==r.width-1)return}J(e,a)}}}(t,n,e,0,r)},mouseleave:e=>{!function(e){const t=q.getState(e.state);t&&t.activeHandle>-1&&!t.dragging&&J(e,-1)}(e)},mousedown:(e,n)=>{!function(e,t,n){const r=q.getState(e.state);if(!r||-1==r.activeHandle||r.dragging)return!1;const o=e.state.doc.nodeAt(r.activeHandle),i=function(e,t,{colspan:n,colwidth:r}){const o=r&&r[r.length-1];if(o)return o;const i=e.domAtPos(t);let a=i.node.childNodes[i.offset].offsetWidth,s=n;if(r)for(let e=0;e<n;e++)r[e]&&
(a-=r[e],s--);return a/s}(e,r.activeHandle,o.attrs);function a(t){window.removeEventListener("mouseup",a),window.removeEventListener("mousemove",s);const r=q.getState(e.state);(null==r?void 0:r.dragging)&&(function(e,t,n){const r=e.state.doc.resolve(t),o=r.node(-1),i=f.get(o),a=r.start(-1),s=i.colCount(r.pos-a)+r.nodeAfter.attrs.colspan-1,l=e.state.tr;for(let e=0;e<i.height;e++){const t=e*i.width+s;if(e&&i.map[t]==i.map[t-i.width])continue;const r=i.map[t],c=o.nodeAt(r).attrs,f=1==c.colspan?0:s-i.colCount(r);
if(c.colwidth&&c.colwidth[f]==n)continue;const d=c.colwidth?c.colwidth.slice():(u=c.colspan,Array(u).fill(0));d[f]=n,l.setNodeMarkup(a+r,null,{...c,colwidth:d})}var u;l.docChanged&&e.dispatch(l)}(e,r.activeHandle,G(r.dragging,t,n)),e.dispatch(e.state.tr.setMeta(q,{setDragging:null})))}function s(t){if(!t.which)return a(t);const r=q.getState(e.state);if(r&&r.dragging){const o=G(r.dragging,t,n);!function(e,t,n,r){const o=e.state.doc.resolve(t),i=o.node(-1),a=o.start(-1),s=f.get(i).colCount(o.pos-a)+
o.nodeAfter.attrs.colspan-1;let l=e.domAtPos(o.start(-1)).node;for(;l&&"TABLE"!=l.nodeName;)l=l.parentNode;l&&U(i,l.firstChild,l,r,s,n)}(e,r.activeHandle,o,n)}}e.dispatch(e.state.tr.setMeta(q,{setDragging:{startX:t.clientX,startWidth:i}})),window.addEventListener("mouseup",a),window.addEventListener("mousemove",s),t.preventDefault()}(e,n,t)}},decorations:e=>{const t=q.getState(e);if(t&&t.activeHandle>-1)return function(e,t){const n=[],r=e.doc.resolve(t),o=r.node(-1);if(!o)return l.EH.empty;const i=
f.get(o),a=r.start(-1),s=i.colCount(r.pos-a)+r.nodeAfter.attrs.colspan;for(let e=0;e<i.height;e++){const t=s+e*i.width-1;if(!(s!=i.width&&i.map[t]==i.map[t+1]||0!=e&&i.map[t]==i.map[t-i.width])){const e=i.map[t],r=a+e+o.nodeAt(e).nodeSize-1,s=document.createElement("div");s.className="column-resize-handle",n.push(l.p.widget(r,s))}}return l.EH.create(e.doc,n)}(e,t.activeHandle)},nodeViews:{}}});return o}var K=class{constructor(e,t){this.activeHandle=e,this.dragging=t}apply(e){const t=this,n=e.getMeta(q);
if(n&&null!=n.setHandle)return new K(n.setHandle,!1);if(n&&void 0!==n.setDragging)return new K(t.activeHandle,n.setDragging);if(t.activeHandle>-1&&e.docChanged){let n=e.mapping.map(t.activeHandle,-1);return y(e.doc.resolve(n))||(n=-1),new K(n,t.dragging)}return t}};function Y(e,t,n,r){const o="right"==n?-r:r,i=e.posAtCoords({left:t.clientX+o,top:t.clientY});if(!i)return-1;const {pos:a}=i,s=g(e.state.doc.resolve(a));if(!s)return-1;if("right"==n)return s.pos;const l=f.get(s.node(-1)),u=s.start(-1),
c=l.map.indexOf(s.pos-u);return c%l.width==0?-1:u+l.map[c-1]}function G(e,t,n){const r=t.clientX-e.startX;return Math.max(n,e.startWidth+r)}function J(e,t){e.dispatch(e.state.tr.setMeta(q,{setHandle:t}))}function X(e){const t=e.selection,n=v(e),r=n.node(-1),o=n.start(-1),i=f.get(r);return{...(t instanceof S?i.rectBetween(t.$anchorCell.pos-o,t.$headCell.pos-o):i.findCell(n.pos-o)),tableStart:o,map:i,table:r}}function Q(e,{map:t,tableStart:n,table:r},o){let i=o>0?-1:0;(function(e,t,n){const r=p(t.type.schema).header_cell;
for(let o=0;o<e.height;o++)if(t.nodeAt(e.map[n+o*e.width]).type!=r)return!1;return!0})(t,r,o+i)&&(i=0==o||o==t.width?null:0);for(let a=0;a<t.height;a++){const s=a*t.width+o;if(o>0&&o<t.width&&t.map[s-1]==t.map[s]){const i=t.map[s],l=r.nodeAt(i);e.setNodeMarkup(e.mapping.map(n+i),null,k(l.attrs,o-t.colCount(i))),a+=l.attrs.rowspan-1}else{const l=null==i?p(r.type.schema).cell:r.nodeAt(t.map[s+i]).type,u=t.positionAt(a,o,r);e.insert(e.mapping.map(n+u),l.createAndFill())}}return e}function ee(e,{map:t,
table:n,tableStart:r},o){const i=e.mapping.maps.length;for(let a=0;a<t.height;){const s=a*t.width+o,l=t.map[s],u=n.nodeAt(l),c=u.attrs;if(o>0&&t.map[s-1]==l||o<t.width-1&&t.map[s+1]==l)e.setNodeMarkup(e.mapping.slice(i).map(r+l),null,x(c,o-t.colCount(l)));else{const t=e.mapping.slice(i).map(r+l);e.delete(t,t+u.nodeSize)}a+=c.rowspan}}function te(e,{map:t,tableStart:n,table:r},o){var i;let a=n;for(let e=0;e<o;e++)a+=r.child(e).nodeSize;const s=[];let l=o>0?-1:0;(function(e,t,n){var r;const o=p(t.type.schema).header_cell;
for(let i=0;i<e.width;i++)if((null==(r=t.nodeAt(e.map[i+n*e.width]))?void 0:r.type)!=o)return!1;return!0})(t,r,o+l)&&(l=0==o||o==t.height?null:0);for(let a=0,u=t.width*o;a<t.width;a++,u++)if(o>0&&o<t.height&&t.map[u]==t.map[u-t.width]){const o=t.map[u],i=r.nodeAt(o).attrs;e.setNodeMarkup(n+o,null,{...i,rowspan:i.rowspan+1}),a+=i.colspan-1}else{const e=null==l?p(r.type.schema).cell:null==(i=r.nodeAt(t.map[u+l*t.width]))?void 0:i.type,n=null==e?void 0:e.createAndFill();n&&s.push(n)}return e.insert(a,
p(r.type.schema).row.create(null,s)),e}function ne(e,{map:t,table:n,tableStart:r},o){let i=0;for(let e=0;e<o;e++)i+=n.child(e).nodeSize;const a=i+n.child(o).nodeSize,s=e.mapping.maps.length;e.delete(i+r,a+r);for(let i=0,a=o*t.width;i<t.width;i++,a++){const l=t.map[a];if(o>0&&l==t.map[a-t.width]){const t=n.nodeAt(l).attrs;e.setNodeMarkup(e.mapping.slice(s).map(l+r),null,{...t,rowspan:t.rowspan-1}),i+=t.colspan-1}else if(o<t.width&&l==t.map[a+t.width]){const a=n.nodeAt(l),u=a.attrs,c=a.type.create({...u,
rowspan:a.attrs.rowspan-1},a.content),f=t.positionAt(o+1,i,n);e.insert(e.mapping.slice(s).map(r+f),c),i+=u.colspan-1}}}function re(e){const t=e.content;return 1==t.childCount&&t.child(0).isTextblock&&0==t.child(0).childCount}function oe(e,t){const n=e.selection;if(!(n instanceof S)||n.$anchorCell.pos==n.$headCell.pos)return!1;const r=X(e),{map:o}=r;if(function({width:e,height:t,map:n},r){let o=r.top*e+r.left,i=o,a=(r.bottom-1)*e+r.left,s=o+(r.right-r.left-1);for(let t=r.top;t<r.bottom;t++){if(r.left>
0&&n[i]==n[i-1]||r.right<e&&n[s]==n[s+1])return!0;i+=e,s+=e}for(let i=r.left;i<r.right;i++){if(r.top>0&&n[o]==n[o-e]||r.bottom<t&&n[a]==n[a+e])return!0;o++,a++}return!1}(o,r))return!1;if(t){const n=e.tr,i={};let a,l,u=s.HY.empty;for(let e=r.top;e<r.bottom;e++)for(let t=r.left;t<r.right;t++){const s=o.map[e*o.width+t],c=r.table.nodeAt(s);if(!i[s]&&c)if(i[s]=!0,null==a)a=s,l=c;else{re(c)||(u=u.append(c.content));const e=n.mapping.map(s+r.tableStart);n.delete(e,e+c.nodeSize)}}if(null==a||null==l)return!0;
if(n.setNodeMarkup(a+r.tableStart,null,{...k(l.attrs,l.attrs.colspan,r.right-r.left-l.attrs.colspan),rowspan:r.bottom-r.top}),u.size){const e=a+1+l.content.size,t=re(l)?a+1:e;n.replaceWith(t+r.tableStart,e+r.tableStart,u)}n.setSelection(new S(n.doc.resolve(a+r.tableStart))),t(n)}return!0}function ie(e,t){const n=p(e.schema);return(r=({node:e})=>n[e.type.spec.tableRole],(e,t)=>{var n;const o=e.selection;let i,a;if(o instanceof S){if(o.$anchorCell.pos!=o.$headCell.pos)return!1;i=o.$anchorCell.nodeAfter,
a=o.$anchorCell.pos}else{if(i=function(e){for(let t=e.depth;t>0;t--){const n=e.node(t).type.spec.tableRole;if("cell"===n||"header_cell"===n)return e.node(t)}return null}(o.$from),!i)return!1;a=null==(n=g(o.$from))?void 0:n.pos}if(null==i||null==a)return!1;if(1==i.attrs.colspan&&1==i.attrs.rowspan)return!1;if(t){let n=i.attrs;const s=[],l=n.colwidth;n.rowspan>1&&(n={...n,rowspan:1}),n.colspan>1&&(n={...n,colspan:1});const u=X(e),c=e.tr;for(let e=0;e<u.right-u.left;e++)s.push(l?{...n,colwidth:l&&l[e]?
[l[e]]:null}:n);let f;for(let e=u.top;e<u.bottom;e++){let t=u.map.positionAt(e,u.left,u.table);e==u.top&&(t+=i.nodeSize);for(let n=u.left,o=0;n<u.right;n++,o++)n==u.left&&e==u.top||c.insert(f=c.mapping.map(t+u.tableStart,1),r({node:i,row:e,col:n}).createAndFill(s[o]))}c.setNodeMarkup(a,r({node:i,row:u.top,col:u.left}),s[0]),o instanceof S&&c.setSelection(new S(c.doc.resolve(o.$anchorCell.pos),f?c.doc.resolve(f):void 0)),t(c)}return!0})(e,t);var r}function ae(e,t,n){const r=t.map.cellsInRect({left:0,
top:0,right:"row"==e?t.map.width:1,bottom:"column"==e?t.map.height:1});for(let e=0;e<r.length;e++){const o=t.table.nodeAt(r[e]);if(o&&o.type!==n.header_cell)return!1}return!0}function se(e,t){return(t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic?function(e){return function(t,n){if(!m(t))return!1;if(n){const r=p(t.schema),o=X(t),i=t.tr,a=o.map.cellsInRect("column"==e?{left:o.left,top:0,right:o.right,bottom:o.map.height}:"row"==e?{left:0,top:o.top,right:o.map.width,bottom:o.bottom}:o),s=a.map(e=>
o.table.nodeAt(e));for(let e=0;e<a.length;e++)s[e].type==r.header_cell&&i.setNodeMarkup(o.tableStart+a[e],r.cell,s[e].attrs);if(0==i.steps.length)for(let e=0;e<a.length;e++)i.setNodeMarkup(o.tableStart+a[e],r.header_cell,s[e].attrs);n(i)}return!0}}(e):function(t,n){if(!m(t))return!1;if(n){const r=p(t.schema),o=X(t),i=t.tr,a=ae("row",o,r),s=ae("column",o,r),l=("column"===e?a:"row"===e&&s)?1:0,u="column"==e?{left:0,top:l,right:1,bottom:o.map.height}:"row"==e?{left:l,top:0,right:o.map.width,bottom:1}:
o,c="column"==e?s?r.cell:r.header_cell:"row"==e?a?r.cell:r.header_cell:r.cell;o.map.cellsInRect(u).forEach(e=>{const t=e+o.tableStart,n=i.doc.nodeAt(t);n&&i.setNodeMarkup(t,c,n.attrs)}),n(i)}return!0}}se("row",{useDeprecatedLogic:!0}),se("column",{useDeprecatedLogic:!0});var le=se("cell",{useDeprecatedLogic:!0});function ue(e){return function(t,n){if(!m(t))return!1;const r=function(e,t){if(t<0){const t=e.nodeBefore;if(t)return e.pos-t.nodeSize;for(let t=e.index(-1)-1,n=e.before();t>=0;t--){const r=
e.node(-1).child(t),o=r.lastChild;if(o)return n-1-o.nodeSize;n-=r.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;const t=e.node(-1);for(let n=e.indexAfter(-1),r=e.after();n<t.childCount;n++){const e=t.child(n);if(e.childCount)return r+1;r+=e.nodeSize}}return null}(v(t),e);if(null==r)return!1;if(n){const e=t.doc.resolve(r);n(t.tr.setSelection(a.Bs.between(e,(o=e,o.node(0).resolve(o.pos+o.nodeAfter.nodeSize)))).scrollIntoView())}var o;return!0}}function ce({allowTableNodeSelection:e=
!1}={}){return new a.Sy({key:h,state:{init:()=>null,apply(e,t){const n=e.getMeta(h);if(null!=n)return-1==n?null:n;if(null==t||!e.docChanged)return t;const {deleted:r,pos:o}=e.mapping.mapResult(t);return r?null:o}},props:{decorations:O,handleDOMEvents:{mousedown:H},createSelectionBetween:e=>null!=h.getState(e.state)?e.state.selection:null,handleTripleClick:F,handleKeyDown:N,handlePaste:z},appendTransaction:(t,n,r)=>function(e,t,n){const r=(t||e).selection,o=(t||e).doc;let i,s;if(r instanceof a.qv&&
(s=r.node.type.spec.tableRole))if("cell"==s||"header_cell"==s)i=S.create(o,r.from);else if("row"==s){const e=o.resolve(r.from+1);i=S.rowSelection(e,e)}else{if(!n){const e=f.get(r.node),t=r.from+1,n=t+e.map[e.width*e.height-1];i=S.create(o,t+1,n)}}else r instanceof a.Bs&&function({$from:e,$to:t}){if(e.pos==t.pos||e.pos<e.pos-6)return!1;let n=e.pos,r=t.pos,o=e.depth;for(;o>=0&&!(e.after(o+1)<e.end(o));o--,n++);for(let e=t.depth;e>=0&&!(t.before(e+1)>t.start(e));e--,r--);return n==r&&/row|table/.test(e.node(o).type.spec.tableRole)}(r)?
i=a.Bs.create(o,r.from):r instanceof a.Bs&&function({$from:e,$to:t}){let n,r;for(let t=e.depth;t>0;t--){const r=e.node(t);if("cell"===r.type.spec.tableRole||"header_cell"===r.type.spec.tableRole){n=r;break}}for(let e=t.depth;e>0;e--){const n=t.node(e);if("cell"===n.type.spec.tableRole||"header_cell"===n.type.spec.tableRole){r=n;break}}return n!==r&&0===t.parentOffset}(r)&&(i=a.Bs.create(o,r.$from.start(),r.$from.end()));return i&&(t||(t=e.tr)).setSelection(i),t}(r,T(r,n),e)})}function fe(e,t,n,r,
o,i){let a=0,s=!0,l=t.firstChild;const u=e.firstChild;for(let e=0,n=0;e<u.childCount;e+=1){const {colspan:c,colwidth:f}=u.child(e).attrs;for(let e=0;e<c;e+=1,n+=1){const u=o===n?i:f&&f[e],c=u?`${u}px`:"";a+=u||r,u||(s=!1),l?(l.style.width!==c&&(l.style.width=c),l=l.nextSibling):t.appendChild(document.createElement("col")).style.width=c}}for(;l;){const e=l.nextSibling;l.parentNode.removeChild(l),l=e}s?(n.style.width=`${a}px`,n.style.minWidth=""):(n.style.width="",n.style.minWidth=`${a}px`)}class de{constructor(e,
t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),fe(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type===this.node.type&&(this.node=e,fe(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){return"attributes"===e.type&&
(e.target===this.table||this.colgroup.contains(e.target))}}function pe(e,t){return t?e.createChecked(null,t):e.createAndFill()}const he=({editor:e})=>{const {selection:t}=e.state;if(!(t instanceof S))return!1;let n=0;const r=(0,i.qv)(t.ranges[0].$from,e=>"table"===e.type.name);return null==r||r.node.descendants(e=>{if("table"===e.type.name)return!1;["tableCell","tableHeader"].includes(e.type.name)&&(n+=1)}),n===t.ranges.length&&(e.commands.deleteTable(),!0)},ge=i.NB.create({name:"table",addOptions:()=>
({HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:de,lastColumnResizable:!0,allowTableNodeSelection:!1}),content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML:()=>[{tag:"table"}],renderHTML({HTMLAttributes:e}){return["table",(0,i.P1)(this.options.HTMLAttributes,e),["tbody",0]]},addCommands:()=>({insertTable:({rows:e=3,cols:t=3,withHeaderRow:n=!0}={})=>({tr:r,dispatch:o,editor:i})=>{const s=function(e,t,n,r,o){const i=function(e){if(e.cached.tableNodeTypes)return e.cached.tableNodeTypes;
const t={};return Object.keys(e.nodes).forEach(n=>{const r=e.nodes[n];r.spec.tableRole&&(t[r.spec.tableRole]=r)}),e.cached.tableNodeTypes=t,t}(e),a=[],s=[];for(let e=0;e<n;e+=1){const e=pe(i.cell,o);if(e&&s.push(e),r){const e=pe(i.header_cell,o);e&&a.push(e)}}const l=[];for(let e=0;e<t;e+=1)l.push(i.row.createChecked(null,r&&0===e?a:s));return i.table.createChecked(null,l)}(i.schema,e,t,n);if(o){const e=r.selection.anchor+1;r.replaceSelectionWith(s).scrollIntoView().setSelection(a.Bs.near(r.doc.resolve(e)))}return!0},
addColumnBefore:()=>({state:e,dispatch:t})=>function(e,t){if(!m(e))return!1;if(t){const n=X(e);t(Q(e.tr,n,n.left))}return!0}(e,t),addColumnAfter:()=>({state:e,dispatch:t})=>function(e,t){if(!m(e))return!1;if(t){const n=X(e);t(Q(e.tr,n,n.right))}return!0}(e,t),deleteColumn:()=>({state:e,dispatch:t})=>function(e,t){if(!m(e))return!1;if(t){const n=X(e),r=e.tr;if(0==n.left&&n.right==n.map.width)return!1;for(let e=n.right-1;ee(r,n,e),e!=n.left;e--){const e=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;
if(!e)throw RangeError("No table found");n.table=e,n.map=f.get(e)}t(r)}return!0}(e,t),addRowBefore:()=>({state:e,dispatch:t})=>function(e,t){if(!m(e))return!1;if(t){const n=X(e);t(te(e.tr,n,n.top))}return!0}(e,t),addRowAfter:()=>({state:e,dispatch:t})=>function(e,t){if(!m(e))return!1;if(t){const n=X(e);t(te(e.tr,n,n.bottom))}return!0}(e,t),deleteRow:()=>({state:e,dispatch:t})=>function(e,t){if(!m(e))return!1;if(t){const n=X(e),r=e.tr;if(0==n.top&&n.bottom==n.map.height)return!1;for(let e=n.bottom-
1;ne(r,n,e),e!=n.top;e--){const e=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!e)throw RangeError("No table found");n.table=e,n.map=f.get(n.table)}t(r)}return!0}(e,t),deleteTable:()=>({state:e,dispatch:t})=>function(e,t){const n=e.selection.$anchor;for(let r=n.depth;r>0;r--)if("table"==n.node(r).type.spec.tableRole)return t&&t(e.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0;return!1}(e,t),mergeCells:()=>({state:e,dispatch:t})=>oe(e,t),splitCell:()=>({state:e,dispatch:t})=>ie(e,t),
toggleHeaderColumn:()=>({state:e,dispatch:t})=>se("column")(e,t),toggleHeaderRow:()=>({state:e,dispatch:t})=>se("row")(e,t),toggleHeaderCell:()=>({state:e,dispatch:t})=>le(e,t),mergeOrSplit:()=>({state:e,dispatch:t})=>!!oe(e,t)||ie(e,t),setCellAttribute:(e,t)=>({state:n,dispatch:r})=>function(e,t){return function(n,r){if(!m(n))return!1;const o=v(n);if(o.nodeAfter.attrs[e]===t)return!1;if(r){const i=n.tr;n.selection instanceof S?n.selection.forEachCell((n,r)=>{n.attrs[e]!==t&&i.setNodeMarkup(r,null,
{...n.attrs,[e]:t})}):i.setNodeMarkup(o.pos,null,{...o.nodeAfter.attrs,[e]:t}),r(i)}return!0}}(e,t)(n,r),goToNextCell:()=>({state:e,dispatch:t})=>ue(1)(e,t),goToPreviousCell:()=>({state:e,dispatch:t})=>ue(-1)(e,t),fixTables:()=>({state:e,dispatch:t})=>(t&&T(e),!0),setCellSelection:e=>({tr:t,dispatch:n})=>{if(n){const n=S.create(t.doc,e.anchorCell,e.headCell);t.setSelection(n)}return!0}}),addKeyboardShortcuts(){return{Tab:()=>!!this.editor.commands.goToNextCell()||!!this.editor.can().addRowAfter()&&
this.editor.chain().addRowAfter().goToNextCell().run(),"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:he,"Mod-Backspace":he,Delete:he,"Mod-Delete":he}},addProseMirrorPlugins(){return[...(this.options.resizable&&this.editor.isEditable?[Z({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[]),ce({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(e){const t=
{name:e.name,options:e.options,storage:e.storage};return{tableRole:(0,i.nU)((0,i.Nl)(e,"tableRole",t))}}})},6279:(e,t,n)=>{n.d(t,{Z:()=>r});const r=n(3845).hj.create({name:"textAlign",addOptions:()=>({types:[],alignments:["left","center","right","justify"],defaultAlignment:"left"}),addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:e=>e.style.textAlign||this.options.defaultAlignment,renderHTML:e=>e.textAlign===this.options.defaultAlignment?
{}:{style:`text-align: ${e.textAlign}`}}}}]},addCommands(){return{setTextAlign:e=>({commands:t})=>!!this.options.alignments.includes(e)&&this.options.types.every(n=>t.updateAttributes(n,{textAlign:e})),unsetTextAlign:()=>({commands:e})=>this.options.types.every(t=>e.resetAttributes(t,"textAlign"))}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),
"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}})},3621:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(3845);const o=r.vc.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:e=>!!e.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:e}){return["span",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:e,commands:t})=>{const n=(0,r.Jo)(e,this.type);return!!Object.entries(n).some(([,e])=>!!e)||t.unsetMark(this.name)}}}})},
2701:(e,t,n)=>{n.d(t,{Z:()=>r});const r=n(3845).NB.create({name:"text",group:"inline"})},8510:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(3845);const o=r.vc.create({name:"underline",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("underline")&&{}}],renderHTML({HTMLAttributes:e}){return["u",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>
e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}})},1284:(e,t,n)=>{n.d(t,{T5:()=>d,fW:()=>g,jE:()=>c,kg:()=>l});var r=n(7294),o=n(3935),i=n(3845);const a=({renderers:e})=>r.createElement(r.Fragment,null,Object.entries(e).map(([e,t])=>o.createPortal(t.reactElement,t.element,e)));class s extends r.Component{constructor(e){super(e),this.editorContentRef=
r.createRef(),this.initialized=!1,this.state={renderers:{}}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){const {editor:e}=this.props;if(e&&e.options.element){if(e.contentComponent)return;const t=this.editorContentRef.current;t.append(...e.options.element.childNodes),e.setOptions({element:t}),e.contentComponent=this,e.createNodeViews(),this.initialized=!0}}maybeFlushSync(e){this.initialized?(0,o.flushSync)(e):e()}setRenderer(e,t){this.maybeFlushSync(()=>{this.setState(({renderers:n})=>
({renderers:{...n,[e]:t}}))})}removeRenderer(e){this.maybeFlushSync(()=>{this.setState(({renderers:t})=>{const n={...t};return delete n[e],{renderers:n}})})}componentWillUnmount(){const {editor:e}=this.props;if(!e)return;if(this.initialized=!1,e.isDestroyed||e.view.setProps({nodeViews:{}}),e.contentComponent=null,!e.options.element.firstChild)return;const t=document.createElement("div");t.append(...e.options.element.childNodes),e.setOptions({element:t})}render(){const {editor:e,...t}=this.props;return r.createElement(r.Fragment,
null,r.createElement("div",{ref:this.editorContentRef,...t}),r.createElement(a,{renderers:this.state.renderers}))}}const l=r.memo(e=>{const t=r.useMemo(()=>Math.floor(4294967295*Math.random()).toString(),[e.editor]);return r.createElement(s,{key:t,...e})});class u extends i.ML{constructor(){super(...arguments),this.contentComponent=null}}const c=(e={},t=[])=>{const [n,o]=(0,r.useState)(null),i=function(){const [,e]=(0,r.useState)(0);return()=>e(e=>e+1)}(),{onBeforeCreate:a,onBlur:s,onCreate:l,onDestroy:c,
onFocus:f,onSelectionUpdate:d,onTransaction:p,onUpdate:h}=e,g=(0,r.useRef)(a),m=(0,r.useRef)(s),v=(0,r.useRef)(l),y=(0,r.useRef)(c),b=(0,r.useRef)(f),w=(0,r.useRef)(d),x=(0,r.useRef)(p),k=(0,r.useRef)(h);return(0,r.useEffect)(()=>{n&&(a&&(n.off("beforeCreate",g.current),n.on("beforeCreate",a),g.current=a),s&&(n.off("blur",m.current),n.on("blur",s),m.current=s),l&&(n.off("create",v.current),n.on("create",l),v.current=l),c&&(n.off("destroy",y.current),n.on("destroy",c),y.current=c),f&&(n.off("focus",
b.current),n.on("focus",f),b.current=f),d&&(n.off("selectionUpdate",w.current),n.on("selectionUpdate",d),w.current=d),p&&(n.off("transaction",x.current),n.on("transaction",p),x.current=p),h&&(n.off("update",k.current),n.on("update",h),k.current=h))},[a,s,l,c,f,d,p,h,n]),(0,r.useEffect)(()=>{let t=!0;const n=new u(e);return o(n),n.on("transaction",()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{t&&i()})})}),()=>{t=!1}},t),(0,r.useEffect)(()=>()=>{null==n||n.destroy()},[n]),n},f=((0,r.createContext)({editor:null}).Consumer,
(0,r.createContext)({onDragStart:void 0})),d=r.forwardRef((e,t)=>{const {onDragStart:n}=(0,r.useContext)(f),o=e.as||"div";return r.createElement(o,{...e,ref:t,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...e.style}})});class p{constructor(e,{editor:t,props:n={},as:r="div",className:o="",attrs:i}){this.ref=null,this.id=Math.floor(4294967295*Math.random()).toString(),this.component=e,this.editor=t,this.props=n,this.element=document.createElement(r),this.element.classList.add("react-renderer"),
o&&this.element.classList.add(...o.split(" ")),i&&Object.keys(i).forEach(e=>{this.element.setAttribute(e,i[e])}),this.render()}render(){var e,t;const n=this.component,o=this.props;(function(e){return!("function"!=typeof e||!e.prototype||!e.prototype.isReactComponent)}(n)||function(e){var t;return!("object"!=typeof e||"Symbol(react.forward_ref)"!==(null===(t=e.$$typeof)||void 0===t?void 0:t.toString()))}(n))&&(o.ref=e=>{this.ref=e}),this.reactElement=r.createElement(n,{...o}),null===(t=null===(e=this.editor)||
void 0===e?void 0:e.contentComponent)||void 0===t||t.setRenderer(this.id,this)}updateProps(e={}){this.props={...this.props,...e},this.render()}destroy(){var e,t;null===(t=null===(e=this.editor)||void 0===e?void 0:e.contentComponent)||void 0===t||t.removeRenderer(this.id)}}class h extends i.DK{mount(){const e={editor:this.editor,node:this.node,decorations:this.decorations,selected:!1,extension:this.extension,getPos:()=>this.getPos(),updateAttributes:(e={})=>this.updateAttributes(e),deleteNode:()=>
this.deleteNode()};if(!this.component.displayName){const e=e=>e.charAt(0).toUpperCase()+e.substring(1);this.component.displayName=e(this.extension.name)}const t=e=>{const t=this.component,n=this.onDragStart.bind(this);return r.createElement(r.Fragment,null,r.createElement(f.Provider,{value:{onDragStart:n,nodeViewContentRef:e=>{e&&this.contentDOMElement&&e.firstChild!==this.contentDOMElement&&e.appendChild(this.contentDOMElement)}}},r.createElement(t,{...e})))};t.displayName="ReactNodeView",this.contentDOMElement=
this.node.isLeaf?null:document.createElement(this.node.isInline?"span":"div"),this.contentDOMElement&&(this.contentDOMElement.style.whiteSpace="inherit");let n=this.node.isInline?"span":"div";this.options.as&&(n=this.options.as);const {className:o=""}=this.options;this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.renderer=new p(t,{editor:this.editor,props:e,as:n,className:`node-${this.node.type.name} ${o}`.trim(),attrs:this.options.attrs})}get dom(){var e;
if(this.renderer.element.firstElementChild&&!(null===(e=this.renderer.element.firstElementChild)||void 0===e?void 0:e.hasAttribute("data-node-view-wrapper")))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.contentDOMElement}handleSelectionUpdate(){const {from:e,to:t}=this.editor.state.selection;e<=this.getPos()&&t>=this.getPos()+this.node.nodeSize?this.selectNode():this.deselectNode()}update(e,
t){const n=e=>{this.renderer.updateProps(e)};if(e.type!==this.node.type)return!1;if("function"==typeof this.options.update){const r=this.node,o=this.decorations;return this.node=e,this.decorations=t,this.options.update({oldNode:r,oldDecorations:o,newNode:e,newDecorations:t,updateProps:()=>n({node:e,decorations:t})})}return e===this.node&&this.decorations===t||(this.node=e,this.decorations=t,n({node:e,decorations:t})),!0}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),
this.renderer.element.classList.remove("ProseMirror-selectednode")}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate),this.contentDOMElement=null}}function g(e,t){return n=>n.editor.contentComponent?new h(e,n,t):{}}},2902:(e,t,n)=>{function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(e){return"'"+e+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf");
}function o(e){return!!e&&!!e[W]}function i(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===$}(e)||Array.isArray(e)||!!e[V]||!!(null===(t=e.constructor)||void 0===t?void 0:t[V])||c(e)||f(e))}function a(e,t,n){void 0===n&&(n=!1),0===s(e)?(n?Object.keys:U)(e).forEach(function(r){n&&"symbol"==typeof r||
t(r,e[r],e)}):e.forEach(function(n,r){return t(r,n,e)})}function s(e){var t=e[W];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:c(e)?2:f(e)?3:0}function l(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function u(e,t,n){var r=s(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function c(e){return F&&e instanceof Map}function f(e){return z&&e instanceof Set}function d(e){return e.o||e.t}function p(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=q(e);delete t[W];for(var n=
U(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function h(e,t){return void 0===t&&(t=!1),m(e)||o(e)||!i(e)||(s(e)>1&&(e.set=e.add=e.clear=e.delete=g),Object.freeze(e),t&&a(e,function(e,t){return h(t,!0)},!0)),e}function g(){r(2)}function m(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function v(e){var t=
Z[e];return t||r(18,e),t}function y(){return j}function b(e,t){t&&(v("Patches"),e.u=[],e.s=[],e.v=t)}function w(e){x(e),e.p.forEach(S),e.p=null}function x(e){e===j&&(j=e.l)}function k(e){return j={p:[],l:j,h:e,m:!0,_:0}}function S(e){var t=e[W];0===t.i||1===t.i?t.j():t.g=!0}function C(e,t){t._=t.p.length;var n=t.p[0],o=void 0!==e&&e!==n;return t.h.O||v("ES5").S(t,e,o),o?(n[W].P&&(w(t),r(4)),i(e)&&(e=O(t,e),t.l||M(t,e)),t.u&&v("Patches").M(n[W].t,e,t.u,t.s)):e=O(t,n,[]),w(t),t.u&&t.v(t.u,t.s),e!==
B?e:void 0}function O(e,t,n){if(m(t))return t;var r=t[W];if(!r)return a(t,function(o,i){return E(e,r,t,o,i,n)},!0),t;if(r.A!==e)return t;if(!r.P)return M(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=p(r.k):r.o,i=o,s=!1;3===r.i&&(i=new Set(o),o.clear(),s=!0),a(i,function(t,i){return E(e,r,o,t,i,n,s)}),M(e,o,!1),n&&e.u&&v("Patches").N(r,n,e.u,e.s)}return r.o}function E(e,t,n,r,a,s,c){if(o(a)){var f=O(e,a,s&&t&&3!==t.i&&!l(t.R,r)?s.concat(r):void 0);if(u(n,r,f),!o(f))return;e.m=!1}else c&&
n.add(a);if(i(a)&&!m(a)){if(!e.h.D&&e._<1)return;O(e,a),t&&t.A.l||M(e,a)}}function M(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&h(t,n)}function T(e,t){var n=e[W];return(n?d(n):e)[t]}function _(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function A(e){e.P||(e.P=!0,e.l&&A(e.l))}function P(e){e.o||(e.o=p(e.t))}function D(e,t,n){var r=c(t)?v("MapSet").F(t,n):f(t)?v("MapSet").T(t,n):e.O?function(e,t){var n=
Array.isArray(e),r={i:n?1:0,A:t?t.A:y(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=K;n&&(o=[r],i=Y);var a=Proxy.revocable(o,i),s=a.revoke,l=a.proxy;return r.k=l,r.j=s,l}(t,n):v("ES5").J(t,n);return(n?n.A:y()).p.push(r),r}function N(e){return o(e)||r(22,e),function e(t){if(!i(t))return t;var n,r=t[W],o=s(t);if(r){if(!r.P&&(r.i<4||!v("ES5").K(r)))return r.t;r.I=!0,n=R(t,o),r.I=!1}else n=R(t,o);return a(n,function(t,o){r&&function(e,t){return 2===s(e)?e.get(t):e[t]}(r.t,t)===o||u(n,t,e(o))}),
3===o?new Set(n):n}(e)}function R(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return p(e)}n.d(t,{Vk:()=>N,ZP:()=>Q});var L,j,I="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),F="undefined"!=typeof Map,z="undefined"!=typeof Set,H="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,B=I?Symbol.for("immer-nothing"):((L={})["immer-nothing"]=!0,L),V=I?Symbol.for("immer-draftable"):"__$immer_draftable",W=I?Symbol.for("immer-state"):"__$immer_state",
$=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),U="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,q=Object.getOwnPropertyDescriptors||function(e){var t={};return U(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},Z={},K={get:function(e,t){if(t===W)return e;var n=d(e);if(!l(n,t))return function(e,
t,n){var r,o=_(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!i(r)?r:r===T(e.t,t)?(P(e),e.o[t]=D(e.A.h,r,e)):r},has:function(e,t){return t in d(e)},ownKeys:function(e){return Reflect.ownKeys(d(e))},set:function(e,t,n){var r=_(d(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=T(d(e),t),i=null==o?void 0:o[W];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&
t!=t}(n,o)&&(void 0!==n||l(e.t,t)))return!0;P(e),A(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==T(e.t,t)||t in e.t?(e.R[t]=!1,P(e),A(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=d(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){r(11)},
getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){r(12)}},Y={};a(K,function(e,t){Y[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Y.deleteProperty=function(e,t){return Y.set.call(this,e,t,void 0)},Y.set=function(e,t,n){return K.set.call(this,e[0],t,n,e[0])};var G=function(){function e(e){var t=this;this.O=H,this.D=!0,this.produce=function(e,n,o){if("function"==typeof e&&"function"!=typeof n){var a=n;n=e;var s=t;return function(e){var t=
this;void 0===e&&(e=a);for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return s.produce(e,function(e){var r;return(r=n).call.apply(r,[t,e].concat(o))})}}var l;if("function"!=typeof n&&r(6),void 0!==o&&"function"!=typeof o&&r(7),i(e)){var u=k(t),c=D(t,e,void 0),f=!0;try{l=n(c),f=!1}finally{f?w(u):x(u)}return"undefined"!=typeof Promise&&l instanceof Promise?l.then(function(e){return b(u,o),C(e,u)},function(e){throw w(u),e;}):(b(u,o),C(l,u))}if(!e||"object"!=typeof e){if(void 0===
(l=n(e))&&(l=e),l===B&&(l=void 0),t.D&&h(l,!0),o){var d=[],p=[];v("Patches").M(e,l,d,p),o(d,p)}return l}r(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,function(t){return e.apply(void 0,[t].concat(o))})};var r,o,i=t.produce(e,n,function(e,t){r=e,o=t});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(function(e){return[e,r,o]}):[i,r,o]},
"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){i(e)||r(8),o(e)&&(e=N(e));var t=k(this),n=D(this,e,void 0);return n[W].C=!0,x(t),n},t.finishDraft=function(e,t){var n=(e&&e[W]).A;return b(n,t),C(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!H&&r(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-
1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=v("Patches").$;return o(e)?i(e,t):this.produce(e,function(e){return i(e,t)})},e}(),J=new G,X=J.produce;J.produceWithPatches.bind(J),J.setAutoFreeze.bind(J),J.setUseProxies.bind(J),J.applyPatches.bind(J),J.createDraft.bind(J),J.finishDraft.bind(J);const Q=X},2337:(e,t,n)=>{n.d(t,{$:()=>h,h:()=>p});for(var r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",
20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},o={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",
54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},i="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),a="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),s=0;s<10;s++)r[48+s]=r[96+s]=String(s);for(s=1;s<=24;s++)r[s+111]="F"+s;for(s=65;s<=90;s++)r[s]=String.fromCharCode(s+32),o[s]=String.fromCharCode(s);for(var l in r)o.hasOwnProperty(l)||(o[l]=
r[l]);var u=n(2376);const c="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function f(e){let t,n,r,o,i=e.split(/-(?!$)/),a=i[i.length-1];"Space"==a&&(a=" ");for(let e=0;e<i.length-1;e++){let a=i[e];if(/^(cmd|meta|m)$/i.test(a))o=!0;else if(/^a(lt)?$/i.test(a))t=!0;else if(/^(c|ctrl|control)$/i.test(a))n=!0;else if(/^s(hift)?$/i.test(a))r=!0;else{if(!/^mod$/i.test(a))throw new Error("Unrecognized modifier name: "+a);c?o=!0:n=!0}}return t&&(a="Alt-"+a),n&&(a="Ctrl-"+a),
o&&(a="Meta-"+a),r&&(a="Shift-"+a),a}function d(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function p(e){return new u.Sy({props:{handleKeyDown:h(e)}})}function h(e){let t=function(e){let t=Object.create(null);for(let n in e)t[f(n)]=e[n];return t}(e);return function(e,n){let s,l=function(e){var t=!(i&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||a&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?
o:r)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(n),u=t[d(l,n)];if(u&&u(e.state,e.dispatch,e))return!0;if(1==l.length&&" "!=l){if(n.shiftKey){let r=t[d(l,n,!1)];if(r&&r(e.state,e.dispatch,e))return!0}if((n.shiftKey||n.altKey||n.metaKey||l.charCodeAt(0)>127)&&(s=r[n.keyCode])&&s!=l){let r=t[d(s,n)];if(r&&r(e.state,e.dispatch,e))return!0}}return!1}}},
7823:(e,t,n)=>{function r(e){this.content=e}n.d(t,{aw:()=>J,PW:()=>se,HY:()=>s,vc:()=>f,ZU:()=>K,NB:()=>P,Ts:()=>_,e4:()=>d,V_:()=>Y,p2:()=>p}),r.prototype={constructor:r,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return-1==t?void 0:this.content[t+1]},update:function(e,t,n){var o=n&&n!=e?this.remove(n):this,i=o.find(e),a=o.content.slice();return-1==i?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new r(a)},remove:function(e){var t=
this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new r(n)},addToStart:function(e,t){return new r([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new r(n)},addBefore:function(e,t,n){var o=this.remove(t),i=o.content.slice(),a=o.find(e);return i.splice(-1==a?i.length:a,0,t,n),new r(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=
r.from(e)).size?new r(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=r.from(e)).size?new r(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=r.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},r.from=function(e){if(e instanceof r)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new r(t)};
const o=r;function i(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let o=e.child(r),a=t.child(r);if(o!=a){if(!o.sameMarkup(a))return n;if(o.isText&&o.text!=a.text){for(let e=0;o.text[e]==a.text[e];e++)n++;return n}if(o.content.size||a.content.size){let e=i(o.content,a.content,n+1);if(null!=e)return e}n+=o.nodeSize}else n+=o.nodeSize}}function a(e,t,n,r){for(let o=e.childCount,i=t.childCount;;){if(0==o||0==i)return o==i?null:{a:n,b:r};let s=e.child(--o),
l=t.child(--i),u=s.nodeSize;if(s!=l){if(!s.sameMarkup(l))return{a:n,b:r};if(s.isText&&s.text!=l.text){let e=0,t=Math.min(s.text.length,l.text.length);for(;e<t&&s.text[s.text.length-e-1]==l.text[l.text.length-e-1];)e++,n--,r--;return{a:n,b:r}}if(s.content.size||l.content.size){let e=a(s.content,l.content,n-1,r-1);if(e)return e}n-=u,r-=u}else n-=u,r-=u}}class s{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,o){for(let i=
0,a=0;a<t;i++){let s=this.content[i],l=a+s.nodeSize;if(l>e&&!1!==n(s,r+a,o||null,i)&&s.content.size){let o=a+1;s.nodesBetween(Math.max(0,e-o),Math.min(s.content.size,t-o),n,r+o)}a=l}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let o="",i=!0;return this.nodesBetween(e,t,(a,s)=>{a.isText?(o+=a.text.slice(Math.max(e,s)-s,t-s),i=!n):a.isLeaf?(r?o+="function"==typeof r?r(a):r:a.type.spec.leafText&&(o+=a.type.spec.leafText(a)),i=!n):!i&&a.isBlock&&(o+=n,i=!0)},0),o}append(e){if(!e.size)return this;
if(!this.size)return e;let t=this.lastChild,n=e.firstChild,r=this.content.slice(),o=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),o=1);o<e.content.length;o++)r.push(e.content[o]);return new s(r,this.size+e.size)}cut(e,t=this.size){if(0==e&&t==this.size)return this;let n=[],r=0;if(t>e)for(let o=0,i=0;i<t;o++){let a=this.content[o],s=i+a.nodeSize;s>e&&((i<e||s>t)&&(a=a.isText?a.cut(Math.max(0,e-i),Math.min(a.text.length,t-i)):a.cut(Math.max(0,e-i-1),Math.min(a.content.size,
t-i-1))),n.push(a),r+=a.nodeSize),i=s}return new s(n,r)}cutByIndex(e,t){return e==t?s.empty:0==e&&t==this.content.length?this:new s(this.content.slice(e,t))}replaceChild(e,t){let n=this.content[e];if(n==t)return this;let r=this.content.slice(),o=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new s(r,o)}addToStart(e){return new s([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new s(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;
for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];
e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return i(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return a(this,e,t,n)}findIndex(e,t=-1){if(0==e)return u(0,e);if(e==this.size)return u(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let o=r+this.child(n).nodeSize;if(o>=e)return o==e||t>0?u(n+1,o):u(n,r);r=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?
this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return s.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new s(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return s.empty;let t,n=0;for(let r=0;r<e.length;r++){let o=e[r];n+=o.nodeSize,r&&o.isText&&e[r-1].sameMarkup(o)?(t||(t=e.slice(0,r)),t[t.length-1]=o.withText(t[t.length-1].text+o.text)):t&&t.push(o)}return new s(t||e,n)}static from(e){if(!e)return s.empty;if(e instanceof s)return e;
if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new s([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""));}}s.empty=new s([],0);const l={index:0,offset:0};function u(e,t){return l.index=e,l.offset=t,l}function c(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;
for(let n=0;n<e.length;n++)if(!c(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!c(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}class f{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let o=e[r];if(this.eq(o))return e;if(this.type.excludes(o.type))t||(t=e.slice(0,r));else{if(o.type.excludes(this.type))return e;!n&&o.type.rank>this.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(o)}}return t||(t=e.slice()),n||t.push(this),
t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&c(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let n=e.marks[t.type];if(!n)throw new RangeError(`There is no mark type ${t.type} in this schema`);
return n.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&0==e.length)return f.none;if(e instanceof f)return[e];let t=e.slice();return t.sort((e,t)=>e.type.rank-t.type.rank),t}}f.none=[];class d extends Error{}class p{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let n=
g(this.content,e+this.openStart,t);return n&&new p(n,this.openStart,this.openEnd)}removeBetween(e,t){return new p(h(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>
0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return p.empty;let n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new p(s.fromJSON(e,t.content),n,r)}static maxOpen(e,t=!0){let n=0,r=0;for(let r=e.firstChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.firstChild)n++;for(let n=e.lastChild;n&&!n.isLeaf&&(t||!n.type.spec.isolating);n=n.lastChild)r++;return new p(e,n,r)}}function h(e,t,n){let {index:r,
offset:o}=e.findIndex(t),i=e.maybeChild(r),{index:a,offset:s}=e.findIndex(n);if(o==t||i.isText){if(s!=n&&!e.child(a).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=a)throw new RangeError("Removing non-flat range");return e.replaceChild(r,i.copy(h(i.content,t-o-1,n-o-1)))}function g(e,t,n,r){let {index:o,offset:i}=e.findIndex(t),a=e.maybeChild(o);if(i==t||a.isText)return r&&!r.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let s=g(a.content,
t-i-1,n);return s&&e.replaceChild(o,a.copy(s))}function m(e,t,n){if(n.openStart>e.depth)throw new d("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new d("Inconsistent open depths");return v(e,t,n,0)}function v(e,t,n,r){let o=e.index(r),i=e.node(r);if(o==t.index(r)&&r<e.depth-n.openStart){let a=v(e,t,n,r+1);return i.copy(i.content.replaceChild(o,a))}if(n.content.size){if(n.openStart||n.openEnd||e.depth!=r||t.depth!=r){let {start:o,end:a}=function(e,
t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(s.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}(n,e);return k(i,S(e,o,a,t,r))}{let r=e.parent,o=r.content;return k(r,o.cut(0,e.parentOffset).append(n.content).append(o.cut(t.parentOffset)))}}return k(i,C(e,t,r))}function y(e,t){if(!t.type.compatibleContent(e.type))throw new d("Cannot join "+t.type.name+" onto "+e.type.name);}function b(e,t,n){let r=
e.node(n);return y(r,t.node(n)),r}function w(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function x(e,t,n,r){let o=(t||e).node(n),i=0,a=t?t.index(n):o.childCount;e&&(i=e.index(n),e.depth>n?i++:e.textOffset&&(w(e.nodeAfter,r),i++));for(let e=i;e<a;e++)w(o.child(e),r);t&&t.depth==n&&t.textOffset&&w(t.nodeBefore,r)}function k(e,t){return e.type.checkContent(t),e.copy(t)}function S(e,t,n,r,o){let i=e.depth>o&&b(e,t,o+1),a=r.depth>o&&b(n,r,o+1),
l=[];return x(null,e,o,l),i&&a&&t.index(o)==n.index(o)?(y(i,a),w(k(i,S(e,t,n,r,o+1)),l)):(i&&w(k(i,C(e,t,o+1)),l),x(t,n,o,l),a&&w(k(a,C(n,r,o+1)),l)),x(r,null,o,l),new s(l)}function C(e,t,n){let r=[];return x(null,e,n,r),e.depth>n&&w(k(b(e,t,n+1),C(e,t,n+1)),r),x(t,null,n,r),new s(r)}p.empty=new p(s.empty,0,0);class O{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*
this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position after the top-level node");
return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);
let n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return f.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let o=n.marks;for(var i=0;i<o.length;i++)!1!==o[i].type.spec.inclusive||r&&o[i].isInSet(r.marks)||(o=o[i--].removeFromSet(o));return o}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;
let n=t.marks,r=e.parent.maybeChild(e.index());for(var o=0;o<n.length;o++)!1!==n[o].type.spec.inclusive||r&&n[o].isInSet(r.marks)||(n=n[o--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new _(this,e,n);return null}sameParent(e){return this.pos-
this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let n=[],r=0,o=t;for(let t=e;;){let {index:e,offset:i}=t.content.findIndex(o),a=o-i;if(n.push(t,e,r+i),!a)break;if(t=t.child(e),t.isText)break;o=a-1,
r+=i+1}return new O(t,n,o)}static resolveCached(e,t){for(let n=0;n<E.length;n++){let r=E[n];if(r.pos==t&&r.doc==e)return r}let n=E[M]=O.resolve(e,t);return M=(M+1)%T,n}}let E=[],M=0,T=12;class _{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}
const A=Object.create(null);class P{constructor(e,t,n,r=f.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||s.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&
this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&c(this.attrs,t||e.defaultAttrs||A)&&f.sameSet(this.marks,n||f.none)}copy(e=null){return e==
this.content?this:new P(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new P(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return p.empty;let r=this.resolve(e),o=this.resolve(t),i=n?0:r.sharedDepth(t),a=r.start(i),s=r.node(i).content.cut(r.pos-a,o.pos-a);return new p(s,r.depth-i,o.depth-i)}replace(e,t,n){return m(this.resolve(e),this.resolve(t),
n)}nodeAt(e){for(let t=this;;){let {index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let {index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let {index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return O.resolveCached(this,
e)}resolveNoCache(e){return O.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);
let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),N(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,n=s.empty,r=0,o=n.childCount){let i=this.contentMatchAt(e).matchFragment(n,r,o),a=i&&i.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(let e=r;e<o;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;
return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let o=this.contentMatchAt(e).matchType(n),i=o&&o.matchFragment(this.content,t);return!!i&&i.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content);let e=f.none;for(let t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!f.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>
e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let n=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=
typeof t.text)throw new RangeError("Invalid text node in JSON");return e.text(t.text,n)}let r=s.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)}}P.prototype.text=void 0;class D extends P{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):N(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,
t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new D(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new D(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function N(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class R{constructor(e){this.validEnd=
e,this.next=[],this.wrapCache=[]}static parse(e,t){let n=new L(e,t);if(null==n.next)return R.empty;let r=j(n);n.next&&n.err("Unexpected trailing text");let o=function(e){let t=Object.create(null);return function n(r){let o=[];r.forEach(t=>{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e<o.length;e++)o[e][0]==t&&(r=o[e][1]);V(e,n).forEach(e=>{r||o.push([t,r=[]]),-1==r.indexOf(e)&&r.push(e)})})});let i=t[r.join(",")]=new R(r.indexOf(e.length-1)>-1);for(let e=0;e<o.length;e++){let r=
o[e][1].sort(B);i.next.push({type:o[e][0],next:t[r.join(",")]||n(r)})}return i}(V(e,0))}(function(e){let t=[[]];return o(function e(t,i){if("choice"==t.type)return t.exprs.reduce((t,n)=>t.concat(e(n,i)),[]);if("seq"!=t.type){if("star"==t.type){let a=n();return r(i,a),o(e(t.expr,a),a),[r(a)]}if("plus"==t.type){let a=n();return o(e(t.expr,i),a),o(e(t.expr,a),a),[r(a)]}if("opt"==t.type)return[r(i)].concat(e(t.expr,i));if("range"==t.type){let a=i;for(let r=0;r<t.min;r++){let r=n();o(e(t.expr,a),r),a=
r}if(-1==t.max)o(e(t.expr,a),a);else for(let i=t.min;i<t.max;i++){let i=n();r(a,i),o(e(t.expr,a),i),a=i}return[r(a)]}if("name"==t.type)return[r(i,void 0,t.value)];throw new Error("Unknown expr type");}for(let r=0;;r++){let a=e(t.exprs[r],i);if(r==t.exprs.length-1)return a;o(a,i=n())}}(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let o={term:r,to:n};return t[e].push(o),o}function o(e,t){e.forEach(e=>e.to=t)}}(r));return function(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],o=
!e.validEnd,i=[];for(let t=0;t<e.next.length;t++){let {type:n,next:a}=e.next[t];i.push(n.name),!o||n.isText||n.hasRequiredAttrs()||(o=!1),-1==r.indexOf(a)&&r.push(a)}o&&t.err("Only non-generatable nodes ("+i.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(o,n),o}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let o=t;r&&o<n;o++)r=r.matchType(e.child(o).type);
return r}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let {type:t}=this.next[e];if(!t.isText&&!t.hasRequiredAttrs())return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];return function o(i,a){let l=i.matchFragment(e,n);if(l&&(!t||l.validEnd))return s.from(a.map(e=>e.createAndFill()));
for(let e=0;e<i.next.length;e++){let {type:t,next:n}=i.next[e];if(!t.isText&&!t.hasRequiredAttrs()&&-1==r.indexOf(n)){r.push(n);let e=o(n,a.concat(t));if(e)return e}}return null}(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),o=r.match;if(o.matchType(e)){let e=
[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<o.next.length;e++){let {type:i,next:a}=o.next[e];i.isLeaf||i.hasRequiredAttrs()||i.name in t||r.type&&!a.validEnd||(n.push({match:i.contentMatch,type:i,via:r}),t[i.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];return function t(n){e.push(n);for(let r=0;r<n.next.length;r++)-1==
e.indexOf(n.next[r].next)&&t(n.next[r].next)}(this),e.map((t,n)=>{let r=n+(t.validEnd?"*":" ")+" ";for(let n=0;n<t.next.length;n++)r+=(n?", ":"")+t.next[n].type.name+"->"+e.indexOf(t.next[n].next);return r}).join("\n")}}R.empty=new R(!0);class L{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==
e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')");}}function j(e){let t=[];do t.push(I(e));while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function I(e){let t=[];do t.push(F(e));while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function F(e){let t=function(e){if(e.eat("(")){let t=j(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){let t=function(e,t){let n=e.nodeTypes,r=
n[t];if(r)return[r];let o=[];for(let e in n){let r=n[e];r.groups.indexOf(t)>-1&&o.push(r)}return 0==o.length&&e.err("No node type or group '"+t+"' found"),o}(e,e.next).map(t=>(null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}));return e.pos++,1==t.length?t[0]:{type:"choice",exprs:t}}e.err("Unexpected token '"+e.next+"'")}(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t=
{type:"opt",expr:t};else{if(!e.eat("{"))break;t=H(e,t)}return t}function z(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function H(e,t){let n=z(e),r=n;return e.eat(",")&&(r="}"!=e.next?z(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function B(e,t){return t-e}function V(e,t){let n=[];return function t(r){let o=e[r];if(1==o.length&&!o[0].term)return t(o[0].to);n.push(r);for(let e=0;e<o.length;e++){let {term:r,
to:i}=o[e];r||-1!=n.indexOf(i)||t(i)}}(t),n.sort(B)}function W(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function $(e,t){let n=Object.create(null);for(let r in e){let o=t&&t[r];if(void 0===o){let t=e[r];if(!t.hasDefault)throw new RangeError("No value supplied for attribute "+r);o=t.default}n[r]=o}return n}function U(e){let t=Object.create(null);if(e)for(let n in e)t[n]=new Z(e[n]);return t}class q{constructor(e,t,n){this.name=e,this.schema=
t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=U(n.attrs),this.defaultAttrs=W(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==R.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;
return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:$(this.attrs,e)}create(e=null,t,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new P(this,this.computeAttrs(e),s.from(t),f.setFrom(n))}createChecked(e=null,t,n){return t=s.from(t),this.checkContent(t),new P(this,this.computeAttrs(e),t,f.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),(t=s.from(t)).size){let e=
this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),o=r&&r.fillBefore(s.empty,!0);return o?new P(this,e,t.append(o),f.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`);}allowsMarkType(e){return null==
this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(null==this.markSet)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:f.none:e}static compile(e,t){let n=Object.create(null);e.forEach((e,r)=>n[e]=new q(e,t,r));let r=t.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+
r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let e in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}}class Z{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class K{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=U(r.attrs),this.excluded=null;let o=W(this.attrs);this.instance=o?new f(this,
o):null}create(e=null){return!e&&this.instance?this.instance:new f(this,$(this.attrs,e))}static compile(e,t){let n=Object.create(null),r=0;return e.forEach((e,o)=>n[e]=new K(e,r++,t,o)),n}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}excludes(e){return this.excluded.indexOf(e)>-1}}class Y{constructor(e){this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=
e[n];t.nodes=o.from(e.nodes),t.marks=o.from(e.marks||{}),this.nodes=q.compile(this.spec.nodes,this),this.marks=K.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw new RangeError(e+" can not be both a node and a mark");let t=this.nodes[e],r=t.spec.content||"",o=t.spec.marks;t.contentMatch=n[r]||(n[r]=R.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.markSet="_"==o?null:o?G(this,o.split(" ")):""!=o&&t.inlineContent?null:[]}for(let e in this.marks){let t=
this.marks[e],n=t.spec.excludes;t.excluded=null==n?[t]:""==n?[]:G(this,n.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof q))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")");}return e.createChecked(t,
n,r)}text(e,t){let n=this.nodes.text;return new D(n,n.defaultAttrs,e,f.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return P.fromJSON(this,e)}markFromJSON(e){return f.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function G(e,t){let n=[];for(let r=0;r<t.length;r++){let o=t[r],i=e.marks[o],a=i;if(i)n.push(i);else for(let t in e.marks){let r=e.marks[t];("_"==o||r.spec.group&&r.spec.group.split(" ").indexOf(o)>
-1)&&n.push(a=r)}if(!a)throw new SyntaxError("Unknown mark type: '"+t[r]+"'");}return n}class J{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach(e=>{e.tag?this.tags.push(e):e.style&&this.styles.push(e)}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new re(this,t,!1);return n.addAll(e,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new re(this,t,
!0);return n.addAll(e,t.from,t.to),p.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let n=this.tags[r];if(oe(e,n.tag)&&(void 0===n.namespace||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(!1===t)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let o=r?this.styles.indexOf(r)+1:0;o<this.styles.length;o++){let r=this.styles[o],i=r.style;if(!(0!=i.indexOf(e)||r.context&&!n.matchesContext(r.context)||
i.length>e.length&&(61!=i.charCodeAt(e.length)||i.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(!1===e)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=null==e.priority?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((null==e.priority?50:e.priority)<n)break}t.splice(r,0,e)}for(let t in e.marks){let r=e.marks[t].spec.parseDOM;r&&r.forEach(e=>{n(e=ie(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;
r&&r.forEach(e=>{n(e=ie(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new J(e,J.schemaRules(e)))}}const X={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Q={head:!0,noscript:!0,object:!0,script:!0,style:!0,
title:!0},ee={ol:!0,ul:!0};function te(e,t,n){return null!=t?(t?1:0)|("full"===t?2:0):e&&"pre"==e.whitespace?3:-5&n}class ne{constructor(e,t,n,r,o,i,a){this.type=e,this.attrs=t,this.marks=n,this.pendingMarks=r,this.solid=o,this.options=a,this.content=[],this.activeMarks=f.none,this.stashMarks=[],this.match=i||(4&a?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(s.from(e));if(!t){let t,n=this.type.contentMatch;return(t=n.findWrapping(e.type))?
(this.match=n,t):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let e,t=this.content[this.content.length-1];if(t&&t.isText&&(e=/[ \t\r\n\u000c]+$/.exec(t.text))){let n=t;t.text.length==e[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-e[0].length))}}let t=s.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(s.empty,!0))),this.type?this.type.create(this.attrs,
t,this.marks):t}popFromStashMark(e){for(let t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]}applyPending(e){for(let t=0,n=this.pendingMarks;t<n.length;t++){let r=n[t];(this.type?this.type.allowsMarkType(r.type):ae(r.type,e))&&!r.isInSet(this.activeMarks)&&(this.activeMarks=r.addToSet(this.activeMarks),this.pendingMarks=r.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:
e.parentNode&&!X.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class re{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0;let r,o=t.topNode,i=te(null,t.preserveWhitespace,0)|(n?4:0);r=o?new ne(o.type,o.attrs,f.none,f.none,!0,t.topMatch||o.type.contentMatch,i):new ne(n?null:e.schema.topNodeType,null,f.none,f.none,!0,null,i),this.nodes=[r],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){3==e.nodeType?this.addTextNode(e):1==
e.nodeType&&this.addElement(e)}withStyleRules(e,t){let n=e.getAttribute("style");if(!n)return t();let r=this.readStyles(function(e){let t,n=/\s*([\w-]+)\s*:\s*([^;]+)/g,r=[];for(;t=n.exec(e);)r.push(t[1],t[2].trim());return r}(n));if(!r)return;let [o,i]=r,a=this.top;for(let e=0;e<i.length;e++)this.removePendingMark(i[e],a);for(let e=0;e<o.length;e++)this.addPendingMark(o[e]);t();for(let e=0;e<o.length;e++)this.removePendingMark(o[e],a);for(let e=0;e<i.length;e++)this.addPendingMark(i[e])}addTextNode(e){let t=
e.nodeValue,n=this.top;if(2&n.options||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(t)){if(1&n.options)t=2&n.options?t.replace(/\r\n?/g,"\n"):t.replace(/\r?\n|\r/g," ");else if(t=t.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(t)&&this.open==this.nodes.length-1){let r=n.content[n.content.length-1],o=e.previousSibling;(!r||o&&"BR"==o.nodeName||r.isText&&/[ \t\r\n\u000c]$/.test(r.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t)),this.findInText(e)}else this.findInside(e)}addElement(e,
t){let n,r=e.nodeName.toLowerCase();ee.hasOwnProperty(r)&&this.parser.normalizeLists&&function(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&ee.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):"li"==e?n=t:e&&(n=null)}}(e);let o=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(n=this.parser.matchTag(e,this,t));if(o?o.ignore:Q.hasOwnProperty(r))this.findInside(e),this.ignoreFallback(e);else if(!o||o.skip||o.closeParent){o&&o.closeParent?
this.open=Math.max(0,this.open-1):o&&o.skip.nodeType&&(e=o.skip);let t,n=this.top,i=this.needsBlock;if(X.hasOwnProperty(r))n.content.length&&n.content[0].isInline&&this.open&&(this.open--,n=this.top),t=!0,n.type||(this.needsBlock=!0);else if(!e.firstChild)return void this.leafFallback(e);o&&o.skip?this.addAll(e):this.withStyleRules(e,()=>this.addAll(e)),t&&this.sync(n),this.needsBlock=i}else this.withStyleRules(e,()=>{this.addElementByRule(e,o,!1===o.consuming?n:void 0)})}leafFallback(e){"BR"==e.nodeName&&
this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"))}ignoreFallback(e){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"))}readStyles(e){let t=f.none,n=f.none;for(let r=0;r<e.length;r+=2)for(let o;;){let i=this.parser.matchStyle(e[r],e[r+1],this,o);if(!i)break;if(i.ignore)return null;if(i.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach(e=>{i.clearMark(e)&&(n=e.addToSet(n))}):t=
this.parser.schema.marks[i.mark].create(i.attrs).addToSet(t),!1!==i.consuming)break;o=i}return[t,n]}addElementByRule(e,t,n){let r,o,i;t.node?(o=this.parser.schema.nodes[t.node],o.isLeaf?this.insertNode(o.create(t.attrs))||this.leafFallback(e):r=this.enter(o,t.attrs||null,t.preserveWhitespace)):(i=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(i));let a=this.top;if(o&&o.isLeaf)this.findInside(e);else if(n)this.addElement(e,n);else if(t.getContent)this.findInside(e),t.getContent(e,
this.parser.schema).forEach(e=>this.insertNode(e));else{let n=e;"string"==typeof t.contentElement?n=e.querySelector(t.contentElement):"function"==typeof t.contentElement?n=t.contentElement(e):t.contentElement&&(n=t.contentElement),this.findAround(e,n,!0),this.addAll(n)}r&&this.sync(a)&&this.open--,i&&this.removePendingMark(i,a)}addAll(e,t,n){let r=t||0;for(let o=t?e.childNodes[t]:e.firstChild,i=null==n?null:e.childNodes[n];o!=i;o=o.nextSibling,++r)this.findAtPoint(e,r),this.addDOM(o);this.findAtPoint(e,
r)}findPlace(e){let t,n;for(let r=this.open;r>=0;r--){let o=this.nodes[r],i=o.findWrapping(e);if(i&&(!t||t.length>i.length)&&(t=i,n=o,!i.length))break;if(o.solid)break}if(!t)return!1;this.sync(n);for(let e=0;e<t.length;e++)this.enterInner(t[e],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&this.enterInner(e)}if(this.findPlace(e)){this.closeExtra();let t=this.top;t.applyPending(e.type),t.match&&(t.match=t.match.matchType(e.type));
let n=t.activeMarks;for(let r=0;r<e.marks.length;r++)t.type&&!t.type.allowsMarkType(e.marks[r].type)||(n=e.marks[r].addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n){let r=this.findPlace(e.create(t));return r&&this.enterInner(e,t,!0,n),r}enterInner(e,t=null,n=!1,r){this.closeExtra();let o=this.top;o.applyPending(e),o.match=o.match&&o.match.matchType(e);let i=te(e,r,o.options);4&o.options&&0==o.content.length&&(i|=4),this.nodes.push(new ne(e,t,o.activeMarks,o.pendingMarks,n,null,
i)),this.open++}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-
1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)null==this.find[r].pos&&1==e.nodeType&&e.contains(this.find[r].node)&&t.compareDocumentPosition(this.find[r].node)&
(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),n=this.options.context,r=!(this.isOpen||n&&n.parent.type!=this.nodes[0].type),o=-(n?n.depth+1:0)+(r?0:1),i=(e,a)=>{for(;e>=0;e--){let s=t[e];if(""==s){if(e==t.length-1||0==e)continue;
for(;a>=o;a--)if(i(e-1,a))return!0;return!1}{let e=a>0||0==a&&r?this.nodes[a].type:n&&a>=o?n.node(a-o).type:null;if(!e||e.name!=s&&-1==e.groups.indexOf(s))return!1;a--}}return!0};return i(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}addPendingMark(e){let t=
function(e,t){for(let n=0;n<t.length;n++)if(e.eq(t[n]))return t[n]}(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,t){for(let n=this.open;n>=0;n--){let r=this.nodes[n];if(r.pendingMarks.lastIndexOf(e)>-1)r.pendingMarks=e.removeFromSet(r.pendingMarks);else{r.activeMarks=e.removeFromSet(r.activeMarks);let t=r.popFromStashMark(e);t&&r.type&&r.type.allowsMarkType(t.type)&&(r.activeMarks=t.addToSet(r.activeMarks))}if(r==
t)break}}}function oe(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function ie(e){let t={};for(let n in e)t[n]=e[n];return t}function ae(e,t){let n=t.schema.nodes;for(let r in n){let o=n[r];if(!o.allowsMarkType(e))continue;let i=[],a=e=>{i.push(e);for(let n=0;n<e.edgeCount;n++){let {type:r,next:o}=e.edge(n);if(r==t)return!0;if(i.indexOf(o)<0&&a(o))return!0}};if(a(o.contentMatch))return!0}}class se{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,
t={},n){n||(n=ue(t).createDocumentFragment());let r=n,o=[];return e.forEach(e=>{if(o.length||e.marks.length){let n=0,i=0;for(;n<o.length&&i<e.marks.length;){let t=e.marks[i];if(this.marks[t.type.name]){if(!t.eq(o[n][0])||!1===t.type.spec.spanning)break;n++,i++}else i++}for(;n<o.length;)r=o.pop()[1];for(;i<e.marks.length;){let n=e.marks[i++],a=this.serializeMark(n,e.isInline,t);a&&(o.push([n,r]),r.appendChild(a.dom),r=a.contentDOM||a.dom)}}r.appendChild(this.serializeNodeInner(e,t))}),n}serializeNodeInner(e,
t){let {dom:n,contentDOM:r}=se.renderSpec(ue(t),this.nodes[e.type.name](e));if(r){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let o=this.serializeMark(e.marks[r],e.isInline,t);o&&((o.contentDOM||o.dom).appendChild(n),n=o.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&se.renderSpec(ue(n),r(e,
t))}static renderSpec(e,t,n=null){if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let r,o=t[0],i=o.indexOf(" ");i>0&&(n=o.slice(0,i),o=o.slice(i+1));let a=n?e.createElementNS(n,o):e.createElement(o),s=t[1],l=1;if(s&&"object"==typeof s&&null==s.nodeType&&!Array.isArray(s)){l=2;for(let e in s)if(null!=s[e]){let t=e.indexOf(" ");t>0?a.setAttributeNS(e.slice(0,t),e.slice(t+1),s[e]):a.setAttribute(e,s[e])}}for(let o=l;o<t.length;o++){let i=
t[o];if(0===i){if(o<t.length-1||o>l)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}{let {dom:t,contentDOM:o}=se.renderSpec(e,i,n);if(a.appendChild(t),o){if(r)throw new RangeError("Multiple content holes");r=o}}}return{dom:a,contentDOM:r}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new se(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=le(e.nodes);return t.text||(t.text=e=>e.text),
t}static marksFromSchema(e){return le(e.marks)}}function le(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function ue(e){return e.document||window.document}},2376:(e,t,n)=>{n.d(t,{Bs:()=>c,C1:()=>h,H$:()=>T,Sy:()=>O,Y1:()=>a,qv:()=>d,xm:()=>s,yy:()=>S});var r=n(7823),o=n(8646);const i=Object.create(null);class a{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new s(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=
this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=r.p2.empty){let n=t.content.lastChild,o=null;for(let e=0;e<t.openEnd;e++)o=n,n=n.lastChild;let i=e.steps.length,a=this.ranges;for(let s=0;s<a.length;s++){let {$from:l,$to:u}=a[s],c=e.mapping.slice(i);e.replaceRange(c.map(l.pos),c.map(u.pos),s?r.p2.empty:t),0==s&&v(e,i,(n?n.isInline:o&&o.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,
r=this.ranges;for(let o=0;o<r.length;o++){let {$from:i,$to:a}=r[o],s=e.mapping.slice(n),l=s.map(i.pos),u=s.map(a.pos);o?e.deleteRange(l,u):(e.replaceRangeWith(l,u,t),v(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new c(e):m(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let r=e.depth-1;r>=0;r--){let o=t<0?m(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):m(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,n);if(o)return o}return null}static near(e,t=1){return this.findFrom(e,
t)||this.findFrom(e,-t)||new h(e.node(0))}static atStart(e){return m(e,e,0,0,1)||new h(e)}static atEnd(e){return m(e,e,e.content.size,e.childCount,-1)||new h(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=i[t.type];if(!n)throw new RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in i)throw new RangeError("Duplicate use of selection JSON ID "+e);return i[e]=t,t.prototype.jsonID=e,t}getBookmark(){return c.between(this.$anchor,
this.$head).getBookmark()}}a.prototype.visible=!0;class s{constructor(e,t){this.$from=e,this.$to=t}}let l=!1;function u(e){l||e.parent.inlineContent||(l=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class c extends a{constructor(e,t=e){u(e),u(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let n=e.resolve(t.map(this.head));if(!n.parent.inlineContent)return a.near(n);let r=e.resolve(t.map(this.anchor));
return new c(r.parent.inlineContent?r:n,n)}replace(e,t=r.p2.empty){if(super.replace(e,t),t==r.p2.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof c&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new f(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new c(e.resolve(t.anchor),
e.resolve(t.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(e,t,n){let r=e.pos-t.pos;if(n&&!r||(n=r>=0?1:-1),!t.parent.inlineContent){let e=a.findFrom(t,n,!0)||a.findFrom(t,-n,!0);if(!e)return a.near(t,n);t=e.$head}return e.parent.inlineContent||(0==r||(e=(a.findFrom(e,-n,!0)||a.findFrom(e,n,!0)).$anchor).pos<t.pos!=r<0)&&(e=t),new c(e,t)}}a.jsonID("text",c);class f{constructor(e,t){this.anchor=e,this.head=t}map(e){return new f(e.map(this.anchor),
e.map(this.head))}resolve(e){return c.between(e.resolve(this.anchor),e.resolve(this.head))}}class d extends a{constructor(e){let t=e.nodeAfter,n=e.node(0).resolve(e.pos+t.nodeSize);super(e,n),this.node=t}map(e,t){let {deleted:n,pos:r}=t.mapResult(this.anchor),o=e.resolve(r);return n?a.near(o):new d(o)}content(){return new r.p2(r.HY.from(this.node),0,0)}eq(e){return e instanceof d&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new p(this.anchor)}static fromJSON(e,
t){if("number"!=typeof t.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new d(e.resolve(t.anchor))}static create(e,t){return new d(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}d.prototype.visible=!1,a.jsonID("node",d);class p{constructor(e){this.anchor=e}map(e){let {deleted:t,pos:n}=e.mapResult(this.anchor);return t?new f(n,n):new p(n)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&d.isSelectable(n)?new d(t):a.near(t)}}
class h extends a{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=r.p2.empty){if(t==r.p2.empty){e.delete(0,e.doc.content.size);let t=a.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new h(e)}map(e){return new h(e)}eq(e){return e instanceof h}getBookmark(){return g}}a.jsonID("all",h);const g={map(){return this},resolve:e=>new h(e)};function m(e,t,n,r,o,i=!1){if(t.inlineContent)return c.create(e,
n);for(let a=r-(o>0?0:1);o>0?a<t.childCount:a>=0;a+=o){let r=t.child(a);if(r.isAtom){if(!i&&d.isSelectable(r))return d.create(e,n-(o<0?r.nodeSize:0))}else{let t=m(e,r,n+o,o<0?r.childCount:0,o,i);if(t)return t}n+=r.nodeSize*o}return null}function v(e,t,n){let r=e.steps.length-1;if(r<t)return;let i,s=e.steps[r];(s instanceof o.Pu||s instanceof o.FC)&&(e.mapping.maps[r].forEach((e,t,n,r)=>{null==i&&(i=r)}),e.setSelection(a.near(e.doc.resolve(i),n)))}class y extends o.wx{constructor(e){super(e.doc),this.curSelectionFor=
0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,
this.curSelectionFor=this.steps.length,this.updated=-3&(1|this.updated),this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=2,this}ensureMarks(e){return r.vc.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||
this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(e,t){super.addStep(e,t),this.updated=-3&this.updated,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||r.vc.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,
t,n){let r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(null==n&&(n=t),n=null==n?t:n,!e)return this.deleteRange(t,n);let o=this.storedMarks;if(!o){let e=this.doc.resolve(t);o=n==t?e.marks():e.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,o)),this.selection.empty||this.setSelection(a.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==
typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function b(e,t){return t&&e?e.bind(t):e}class w{constructor(e,t,n){this.name=e,this.init=b(t.init,n),this.apply=b(t.apply,n)}}const x=[new w("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new w("selection",{init:(e,t)=>e.selection||a.atStart(t.doc),apply:e=>e.selection}),new w("storedMarks",{init:e=>e.storedMarks||
null,apply:(e,t,n,r)=>r.selection.$cursor?e.storedMarks:null}),new w("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t})];class k{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=x.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new w(e.key,e.spec.state,e))})}}class S{constructor(e){this.config=
e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=t){let t=this.config.plugins[n];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],n=this.applyInner(e),r=null;for(;;){let o=!1;for(let i=0;i<this.config.plugins.length;i++){let a=
this.config.plugins[i];if(a.spec.appendTransaction){let s=r?r[i].n:0,l=r?r[i].state:this,u=s<t.length&&a.spec.appendTransaction.call(a,s?t.slice(s):t,l,n);if(u&&n.filterTransaction(u,i)){if(u.setMeta("appendedTransaction",e),!r){r=[];for(let e=0;e<this.config.plugins.length;e++)r.push(e<i?{state:n,n:t.length}:{state:this,n:0})}t.push(u),n=n.applyInner(u),o=!0}r&&(r[i]={state:n,n:t.length})}}if(!o)return{state:n,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");
let t=new S(this.config),n=this.config.fields;for(let r=0;r<n.length;r++){let o=n[r];t[o.name]=o.apply(e,this[o.name],this,t)}return t}get tr(){return new y(this)}static create(e){let t=new k(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new S(t);for(let r=0;r<t.fields.length;r++)n[t.fields[r].name]=t.fields[r].init(e,n);return n}reconfigure(e){let t=new k(this.schema,e.plugins),n=t.fields,r=new S(t);for(let t=0;t<n.length;t++){let o=n[t].name;r[o]=this.hasOwnProperty(o)?this[o]:n[t].init(e,r)}return r}toJSON(e){let t=
{doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&"object"==typeof e)for(let n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],o=r.spec.state;o&&o.toJSON&&(t[n]=o.toJSON.call(r,this[r.key]))}return t}static fromJSON(e,t,n){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");
let o=new k(e.schema,e.plugins),i=new S(o);return o.fields.forEach(o=>{if("doc"==o.name)i.doc=r.NB.fromJSON(e.schema,t.doc);else if("selection"==o.name)i.selection=a.fromJSON(i.doc,t.selection);else if("storedMarks"==o.name)t.storedMarks&&(i.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(let r in n){let a=n[r],s=a.spec.state;if(a.key==o.name&&s&&s.fromJSON&&Object.prototype.hasOwnProperty.call(t,r))return void(i[o.name]=s.fromJSON.call(a,e,t[r],i))}i[o.name]=o.init(e,i)}}),i}}
function C(e,t,n){for(let r in e){let o=e[r];o instanceof Function?o=o.bind(t):"handleDOMEvents"==r&&(o=C(o,t,{})),n[r]=o}return n}class O{constructor(e){this.spec=e,this.props={},e.props&&C(e.props,this,this.props),this.key=e.key?e.key.key:M("plugin")}getState(e){return e[this.key]}}const E=Object.create(null);function M(e){return e in E?e+"$"+ ++E[e]:(E[e]=0,e+"$")}class T{constructor(e="key"){this.key=M(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}},8646:(e,
t,n)=>{n.d(t,{Ax:()=>C,FC:()=>y,GJ:()=>M,Mn:()=>O,Pu:()=>v,dR:()=>_,k9:()=>x,nd:()=>k,nj:()=>T,vs:()=>l,wx:()=>V});var r=n(7823);const o=Math.pow(2,16);function i(e){return 65535&e}class a{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class s{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&s.empty)return s.empty}recover(e){let t=
0,n=i(e);if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[3*e+2]-this.ranges[3*e+1];return this.ranges[3*n]+t+function(e){return(e-(65535&e))/o}(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let u=this.ranges[l]-(this.inverted?r:0);if(u>e)break;let c=this.ranges[l+i],f=this.ranges[l+s],d=u+c;if(e<=d){let i=u+r+((c?e==u?-1:e==d?1:t:t)<0?0:f);if(n)return i;let s=
e==u?2:e==d?1:4;return(t<0?e!=u:e!=d)&&(s|=8),new a(i,s,e==(t<0?u:d)?null:l/3+(e-u)*o)}r+=f-c}return n?e+r:new a(e+r,0,null)}touches(e,t){let n=0,r=i(t),o=this.inverted?2:1,a=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let i=this.ranges[t]-(this.inverted?n:0);if(i>e)break;let s=this.ranges[t+o];if(e<=i+s&&t==3*r)return!0;n+=this.ranges[t+a]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,o=0;r<this.ranges.length;r+=3){let i=this.ranges[r],a=i-(this.inverted?
o:0),s=i+(this.inverted?0:o),l=this.ranges[r+t],u=this.ranges[r+n];e(a,a+l,s,s+u),o+=u-l}}invert(){return new s(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?s.empty:new s(e<0?[0,-e,0]:[0,0,e])}}s.empty=new s([]);class l{constructor(e=[],t,n=0,r=e.length){this.maps=e,this.mirror=t,this.from=n,this.to=r}slice(e=0,t=this.maps.length){return new l(this.maps,this.mirror,e,t)}copy(){return new l(this.maps.slice(),this.mirror&&
this.mirror.slice(),this.from,this.to)}appendMap(e,t){this.to=this.maps.push(e),null!=t&&this.setMirror(this.maps.length-1,t)}appendMapping(e){for(let t=0,n=this.maps.length;t<e.maps.length;t++){let r=e.getMirror(t);this.appendMap(e.maps[t],null!=r&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror)for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-
1,n=this.maps.length+e.maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=r&&r>t?n-r-1:void 0)}}invert(){let e=new l;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this.maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let n=this.from;n<this.to;n++){let o=this.maps[n].mapResult(e,t);if(null!=o.recover){let t=this.getMirror(n);if(null!=t&&t>n&&t<this.to){n=
t,e=this.maps[t].recover(o.recover);continue}}r|=o.delInfo,e=o.pos}return n?e:new a(e,r,null)}}const u=Object.create(null);class c{getMap(){return s.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=u[t.stepType];if(!n)throw new RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in u)throw new RangeError("Duplicate use of step JSON ID "+e);return u[e]=t,t.prototype.jsonID=e,
t}}class f{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new f(e,null)}static fail(e){return new f(null,e)}static fromReplace(e,t,n,o){try{return f.ok(e.replace(t,n,o))}catch(e){if(e instanceof r.e4)return f.fail(e.message);throw e;}}}function d(e,t,n){let o=[];for(let r=0;r<e.childCount;r++){let i=e.child(r);i.content.size&&(i=i.copy(d(i.content,t,i))),i.isInline&&(i=t(i,n,r)),o.push(i)}return r.HY.fromArray(o)}class p extends c{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=
n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),o=n.node(n.sharedDepth(this.to)),i=new r.p2(d(t.content,(e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,o),t.openStart,t.openEnd);return f.fromReplace(e,this.from,this.to,i)}invert(){return new h(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new p(t.pos,n.pos,this.mark)}merge(e){return e instanceof
p&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new p(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new p(t.from,t.to,e.markFromJSON(t.mark))}}c.jsonID("addMark",p);class h extends c{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=
e.slice(this.from,this.to),n=new r.p2(d(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return f.fromReplace(e,this.from,this.to,n)}invert(){return new p(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new h(t.pos,n.pos,this.mark)}merge(e){return e instanceof h&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new h(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):
null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new h(t.from,t.to,e.markFromJSON(t.mark))}}c.jsonID("removeMark",h);class g extends c{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return f.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));
return f.fromReplace(e,this.pos,this.pos+1,new r.p2(r.HY.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let n=0;n<t.marks.length;n++)if(!t.marks[n].isInSet(e))return new g(this.pos,t.marks[n]);return new g(this.pos,this.mark)}}return new m(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new g(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,
t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new g(t.pos,e.markFromJSON(t.mark))}}c.jsonID("addNodeMark",g);class m extends c{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return f.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return f.fromReplace(e,this.pos,this.pos+1,new r.p2(r.HY.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);
return t&&this.mark.isInSet(t.marks)?new g(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new m(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new m(t.pos,e.markFromJSON(t.mark))}}c.jsonID("removeNodeMark",m);class v extends c{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=
n,this.structure=r}apply(e){return this.structure&&b(e,this.from,this.to)?f.fail("Structure replace would overwrite content"):f.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new s([this.from,this.to-this.from,this.slice.size])}invert(e){return new v(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deletedAcross&&n.deletedAcross?null:new v(t.pos,Math.max(t.pos,n.pos),this.slice)}merge(e){if(!(e instanceof
v)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;{let t=this.slice.size+e.slice.size==0?r.p2.empty:new r.p2(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new v(e.from,this.to,t,this.structure)}}{let t=this.slice.size+e.slice.size==0?r.p2.empty:new r.p2(this.slice.content.append(e.slice.content),this.slice.openStart,
e.slice.openEnd);return new v(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new v(t.from,t.to,r.p2.fromJSON(e,t.slice),!!t.structure)}}c.jsonID("replace",v);class y extends c{constructor(e,t,n,r,o,i,a=!1){super(),
this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=o,this.insert=i,this.structure=a}apply(e){if(this.structure&&(b(e,this.from,this.gapFrom)||b(e,this.gapTo,this.to)))return f.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return f.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,t.content);return n?f.fromReplace(e,this.from,this.to,n):f.fail("Content does not fit in gap")}getMap(){return new s([this.from,
this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new y(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),r=e.map(this.gapFrom,-1),o=e.map(this.gapTo,1);return t.deletedAcross&&n.deletedAcross||
r<t.pos||o>n.pos?null:new y(t.pos,n.pos,r,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");
return new y(t.from,t.to,t.gapFrom,t.gapTo,r.p2.fromJSON(e,t.slice),t.insert,!!t.structure)}}function b(e,t,n){let r=e.resolve(t),o=n-t,i=r.depth;for(;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0){let e=r.node(i).maybeChild(r.indexAfter(i));for(;o>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,o--}}return!1}function w(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function x(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=
e.depth;;--n){let r=e.$from.node(n),o=e.$from.index(n),i=e.$to.indexAfter(n);if(n<e.depth&&r.canReplace(o,i,t))return n;if(0==n||r.type.spec.isolating||!w(r,o,i))break}return null}function k(e,t,n=null,r=e){let o=function(e,t){let {parent:n,startIndex:r,endIndex:o}=e,i=n.contentMatchAt(r).findWrapping(t);if(!i)return null;let a=i.length?i[0]:t;return n.canReplaceWith(r,o,a)?i:null}(e,t),i=o&&function(e,t){let {parent:n,startIndex:r,endIndex:o}=e,i=n.child(r),a=t.contentMatch.findWrapping(i.type);
if(!a)return null;let s=(a.length?a[a.length-1]:t).contentMatch;for(let e=r;s&&e<o;e++)s=s.matchType(n.child(e).type);return s&&s.validEnd?a:null}(r,t);return i?o.map(S).concat({type:t,attrs:n}).concat(i.map(S)):null}function S(e){return{type:e,attrs:null}}function C(e,t,n=1,r){let o=e.resolve(t),i=o.depth-n,a=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!a.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;
for(let e=o.depth-1,t=n-2;e>i;e--,t--){let n=o.node(e),i=o.index(e);if(n.type.spec.isolating)return!1;let a=n.content.cutByIndex(i,n.childCount),s=r&&r[t+1];s&&(a=a.replaceChild(0,s.type.create(s.attrs)));let l=r&&r[t]||n;if(!n.canReplace(i+1,n.childCount)||!l.type.validContent(a))return!1}let s=o.indexAfter(i),l=r&&r[0];return o.node(i).canReplaceWith(s,s,l?l.type:o.node(i+1).type)}function O(e,t){let n=e.resolve(t),r=n.index();return E(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function E(e,
t){return!(!e||!t||e.isLeaf||!e.canAppend(t))}function M(e,t,n=-1){let r=e.resolve(t);for(let e=r.depth;;e--){let o,i,a=r.index(e);if(e==r.depth?(o=r.nodeBefore,i=r.nodeAfter):n>0?(o=r.node(e+1),a++,i=r.node(e).maybeChild(a)):(o=r.node(e).maybeChild(a-1),i=r.node(e+1)),o&&!o.isTextblock&&E(o,i)&&r.node(e).canReplace(a,a+1))return t;if(0==e)break;t=n<0?r.before(e):r.after(e)}}function T(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let o=n.content;for(let e=0;e<n.openStart;e++)o=o.firstChild.content;
for(let e=1;e<=(0==n.openStart&&n.size?2:1);e++)for(let t=r.depth;t>=0;t--){let n=t==r.depth?0:r.pos<=(r.start(t+1)+r.end(t+1))/2?-1:1,i=r.index(t)+(n>0?1:0),a=r.node(t),s=!1;if(1==e)s=a.canReplace(i,i,o);else{let e=a.contentMatchAt(i).findWrapping(o.firstChild.type);s=e&&a.canReplaceWith(i,i,e[0])}if(s)return 0==n?r.pos:n<0?r.before(t+1):r.after(t+1)}return null}function _(e,t,n=t,o=r.p2.empty){if(t==n&&!o.size)return null;let i=e.resolve(t),a=e.resolve(n);return A(i,a,o)?new v(t,n,o):(new P(i,a,
o)).fit()}function A(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}c.jsonID("replaceAround",y);class P{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=r.HY.empty;for(let t=0;t<=e.depth;t++){let n=e.node(t);this.frontier.push({type:n.type,match:n.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=r.HY.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-
1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,o=this.close(e<0?this.$to:n.doc.resolve(e));if(!o)return null;let i=this.placed,a=n.depth,s=o.depth;for(;a&&s&&1==i.childCount;)i=i.firstChild.content,a--,s--;let l=new r.p2(i,a,s);return e>-1?new y(n.pos,e,this.$to.pos,this.$to.end(),l,t):l.size||n.pos!=this.$to.pos?new v(n.pos,o.pos,l):null}findFittable(){let e=
this.unplaced.openStart;for(let t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let o=t.firstChild;if(t.childCount>1&&(r=0),o.type.spec.isolating&&r<=n){e=n;break}t=o.content}for(let t=1;t<=2;t++)for(let n=1==t?e:this.unplaced.openStart;n>=0;n--){let e,o=null;n?(o=R(this.unplaced.content,n-1).firstChild,e=o.content):e=this.unplaced.content;let i=e.firstChild;for(let e=this.depth;e>=0;e--){let a,{type:s,match:l}=this.frontier[e],u=null;if(1==t&&(i?l.matchType(i.type)||(u=l.fillBefore(r.HY.from(i),
!1)):o&&s.compatibleContent(o.type)))return{sliceDepth:n,frontierDepth:e,parent:o,inject:u};if(2==t&&i&&(a=l.findWrapping(i.type)))return{sliceDepth:n,frontierDepth:e,parent:o,wrap:a};if(o&&l.matchType(o.type))break}}}openMore(){let {content:e,openStart:t,openEnd:n}=this.unplaced,o=R(e,t);return!(!o.childCount||o.firstChild.isLeaf||(this.unplaced=new r.p2(e,t+1,Math.max(n,o.size+t>=e.size-n?t+1:0)),0))}dropNode(){let {content:e,openStart:t,openEnd:n}=this.unplaced,o=R(e,t);if(o.childCount<=1&&t>0){let i=
e.size-t<=t+o.size;this.unplaced=new r.p2(D(e,t-1,1),t-1,i?t-1:n)}else this.unplaced=new r.p2(D(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:o,wrap:i}){for(;this.depth>t;)this.closeFrontierNode();if(i)for(let e=0;e<i.length;e++)this.openFrontierNode(i[e]);let a=this.unplaced,s=n?n.content:a.content,l=a.openStart-e,u=0,c=[],{match:f,type:d}=this.frontier[t];if(o){for(let e=0;e<o.childCount;e++)c.push(o.child(e));f=f.matchFragment(o)}let p=s.size+e-(a.content.size-a.openEnd);
for(;u<s.childCount;){let e=s.child(u),t=f.matchType(e.type);if(!t)break;u++,(u>1||0==l||e.content.size)&&(f=t,c.push(L(e.mark(d.allowedMarks(e.marks)),1==u?l:0,u==s.childCount?p:-1)))}let h=u==s.childCount;h||(p=-1),this.placed=N(this.placed,t,r.HY.from(c)),this.frontier[t].match=f,h&&p<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=s;e<p;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=
h?0==e?r.p2.empty:new r.p2(D(a.content,e-1,1),e-1,p<0?a.openEnd:e-1):new r.p2(D(a.content,e,u),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e,t=this.frontier[this.depth];if(!t.type.isTextblock||!j(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return-1;let {depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){e:for(let t=Math.min(this.depth,
e.depth);t>=0;t--){let {match:n,type:r}=this.frontier[t],o=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),i=j(e,t,r,n,o);if(i){for(let n=t-1;n>=0;n--){let {match:t,type:r}=this.frontier[n],o=j(e,n,r,t,!0);if(!o||o.childCount)continue e}return{depth:t,fit:i,move:o?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=N(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=
e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t=null,n){let o=this.frontier[this.depth];o.match=o.match.matchType(e),this.placed=N(this.placed,this.depth,r.HY.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(r.HY.empty,!0);e.childCount&&(this.placed=N(this.placed,this.frontier.length,e))}}function D(e,t,n){return 0==t?e.cutByIndex(n,
e.childCount):e.replaceChild(0,e.firstChild.copy(D(e.firstChild.content,t-1,n)))}function N(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(N(e.lastChild.content,t-1,n)))}function R(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function L(e,t,n){if(t<=0)return e;let o=e.content;return t>1&&(o=o.replaceChild(0,L(o.firstChild,t-1,1==o.childCount?n-1:0))),t>0&&(o=e.type.contentMatch.fillBefore(o).append(o),n<=0&&(o=o.append(e.type.contentMatch.matchFragment(o).fillBefore(r.HY.empty,
!0)))),e.copy(o)}function j(e,t,n,r,o){let i=e.node(t),a=o?e.indexAfter(t):e.index(t);if(a==i.childCount&&!n.compatibleContent(i.type))return null;let s=r.fillBefore(i.content,!0,a);return s&&!function(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}(n,i.content,a)?s:null}function I(e,t,n,o,i){if(t<n){let r=e.firstChild;e=e.replaceChild(0,r.copy(I(r.content,t+1,n,o,r)))}if(t>o){let t=i.contentMatchAt(0),n=t.fillBefore(e).append(e);e=n.append(t.matchFragment(n).fillBefore(r.HY.empty,
!0))}return e}function F(e,t){let n=[];for(let r=Math.min(e.depth,t.depth);r>=0;r--){let o=e.start(r);if(o<e.pos-(e.depth-r)||t.end(r)>t.pos+(t.depth-r)||e.node(r).type.spec.isolating||t.node(r).type.spec.isolating)break;(o==t.start(r)||r==e.depth&&r==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&r&&t.start(r-1)==o-1)&&n.push(r)}return n}class z extends c{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return f.fail("No node at attribute step's position");
let n=Object.create(null);for(let e in t.attrs)n[e]=t.attrs[e];n[this.attr]=this.value;let o=t.type.create(n,null,t.marks);return f.fromReplace(e,this.pos,this.pos+1,new r.p2(r.HY.from(o),0,t.isLeaf?0:1))}getMap(){return s.empty}invert(e){return new z(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new z(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,
t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new z(t.pos,t.attr,t.value)}}c.jsonID("attr",z);class H extends c{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;let n=e.type.create(t,e.content,e.marks);return f.ok(n)}getMap(){return s.empty}invert(e){return new H(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",
attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new H(t.attr,t.value)}}c.jsonID("docAttr",H);let B=class extends Error{};B=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},(B.prototype=Object.create(Error.prototype)).constructor=B,B.prototype.name="TransformError";class V{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new l}get before(){return this.docs.length?
this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new B(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=r.p2.empty){let o=_(this.doc,e,t,n);return o&&this.step(o),this}replaceWith(e,t,n){return this.replace(e,t,new r.p2(r.HY.from(n),0,0))}delete(e,t){return this.replace(e,
t,r.p2.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return function(e,t,n,o){if(!o.size)return e.deleteRange(t,n);let i=e.doc.resolve(t),a=e.doc.resolve(n);if(A(i,a,o))return e.step(new v(t,n,o));let s=F(i,e.doc.resolve(n));0==s[s.length-1]&&s.pop();let l=-(i.depth+1);s.unshift(l);for(let e=i.depth,t=i.pos-1;e>0;e--,t--){let n=i.node(e).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;s.indexOf(e)>-1?l=e:i.before(e)==t&&s.splice(1,0,-e)}let u=s.indexOf(l),c=
[],f=o.openStart;for(let e=o.content,t=0;;t++){let n=e.firstChild;if(c.push(n),t==o.openStart)break;e=n.content}for(let e=f-1;e>=0;e--){let t=c[e],n=(d=t.type).spec.defining||d.spec.definingForContent;if(n&&!t.sameMarkup(i.node(Math.abs(l)-1)))f=e;else if(n||!t.type.isTextblock)break}var d;for(let t=o.openStart;t>=0;t--){let l=(t+f+1)%(o.openStart+1),d=c[l];if(d)for(let t=0;t<s.length;t++){let c=s[(t+u)%s.length],f=!0;c<0&&(f=!1,c=-c);let p=i.node(c-1),h=i.index(c-1);if(p.canReplaceWith(h,h,d.type,
d.marks))return e.replace(i.before(c),f?a.after(c):n,new r.p2(I(o.content,0,o.openStart,l),l,o.openEnd))}}let p=e.steps.length;for(let r=s.length-1;r>=0&&(e.replace(t,n,o),!(e.steps.length>p));r--){let e=s[r];e<0||(t=i.before(e),n=a.after(e))}}(this,e,t,n),this}replaceRangeWith(e,t,n){return function(e,t,n,o){if(!o.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let r=function(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(let e=
r.depth-1;e>=0;e--){let t=r.index(e);if(r.node(e).canReplaceWith(t,t,n))return r.before(e+1);if(t>0)return null}if(r.parentOffset==r.parent.content.size)for(let e=r.depth-1;e>=0;e--){let t=r.indexAfter(e);if(r.node(e).canReplaceWith(t,t,n))return r.after(e+1);if(t<r.node(e).childCount)return null}return null}(e.doc,t,o.type);null!=r&&(t=n=r)}e.replaceRange(t,n,new r.p2(r.HY.from(o),0,0))}(this,e,t,n),this}deleteRange(e,t){return function(e,t,n){let r=e.doc.resolve(t),o=e.doc.resolve(n),i=F(r,o);for(let t=
0;t<i.length;t++){let n=i[t],a=t==i.length-1;if(a&&0==n||r.node(n).type.contentMatch.validEnd)return e.delete(r.start(n),o.end(n));if(n>0&&(a||r.node(n-1).canReplace(r.index(n-1),o.indexAfter(n-1))))return e.delete(r.before(n),o.after(n))}for(let i=1;i<=r.depth&&i<=o.depth;i++)if(t-r.start(i)==r.depth-i&&n>r.end(i)&&o.end(i)-n!=o.depth-i)return e.delete(r.before(i),n);e.delete(t,n)}(this,e,t),this}lift(e,t){return function(e,t,n){let {$from:o,$to:i,depth:a}=t,s=o.before(a+1),l=i.after(a+1),u=s,c=
l,f=r.HY.empty,d=0;for(let e=a,t=!1;e>n;e--)t||o.index(e)>0?(t=!0,f=r.HY.from(o.node(e).copy(f)),d++):u--;let p=r.HY.empty,h=0;for(let e=a,t=!1;e>n;e--)t||i.after(e+1)<i.end(e)?(t=!0,p=r.HY.from(i.node(e).copy(p)),h++):c++;e.step(new y(u,c,s,l,new r.p2(f.append(p),d,h),f.size-d,!0))}(this,e,t),this}join(e,t=1){return function(e,t,n){let o=new v(t-n,t+n,r.p2.empty,!0);e.step(o)}(this,e,t),this}wrap(e,t){return function(e,t,n){let o=r.HY.empty;for(let e=n.length-1;e>=0;e--){if(o.size){let t=n[e].type.contentMatch.matchFragment(o);
if(!t||!t.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper");}o=r.HY.from(n[e].type.create(n[e].attrs,o))}let i=t.start,a=t.end;e.step(new y(i,a,i,a,new r.p2(o,0,0),n.length,!0))}(this,e,t),this}setBlockType(e,t=e,n,o=null){return function(e,t,n,o,i){if(!o.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let a=e.steps.length;e.doc.nodesBetween(t,n,(t,n)=>{if(t.isTextblock&&!t.hasMarkup(o,i)&&function(e,
t,n){let r=e.resolve(t),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}(e.doc,e.mapping.slice(a).map(n),o)){e.clearIncompatible(e.mapping.slice(a).map(n,1),o);let s=e.mapping.slice(a),l=s.map(n,1),u=s.map(n+t.nodeSize,1);return e.step(new y(l,u,l+1,u-1,new r.p2(r.HY.from(o.create(i,null,t.marks)),0,0),1,!0)),!1}})}(this,e,t,n,o),this}setNodeMarkup(e,t,n=null,o){return function(e,t,n,o,i){let a=e.doc.nodeAt(t);if(!a)throw new RangeError("No node at given position");n||(n=a.type);let s=n.create(o,
null,i||a.marks);if(a.isLeaf)return e.replaceWith(t,t+a.nodeSize,s);if(!n.validContent(a.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new y(t,t+a.nodeSize,t+1,t+a.nodeSize-1,new r.p2(r.HY.from(s),0,0),1,!0))}(this,e,t,n,o),this}setNodeAttribute(e,t,n){return this.step(new z(e,t,n)),this}setDocAttribute(e,t){return this.step(new H(e,t)),this}addNodeMark(e,t){return this.step(new g(e,t)),this}removeNodeMark(e,t){if(!(t instanceof r.vc)){let n=this.doc.nodeAt(e);if(!n)throw new RangeError("No node at position "+
e);if(!(t=t.isInSet(n.marks)))return this}return this.step(new m(e,t)),this}split(e,t=1,n){return function(e,t,n=1,o){let i=e.doc.resolve(t),a=r.HY.empty,s=r.HY.empty;for(let e=i.depth,t=i.depth-n,l=n-1;e>t;e--,l--){a=r.HY.from(i.node(e).copy(a));let t=o&&o[l];s=r.HY.from(t?t.type.create(t.attrs,s):i.node(e).copy(s))}e.step(new v(t,t,new r.p2(a.append(s),n,n),!0))}(this,e,t,n),this}addMark(e,t,n){return function(e,t,n,r){let o,i,a=[],s=[];e.doc.nodesBetween(t,n,(e,l,u)=>{if(!e.isInline)return;let c=
e.marks;if(!r.isInSet(c)&&u.type.allowsMarkType(r.type)){let u=Math.max(l,t),f=Math.min(l+e.nodeSize,n),d=r.addToSet(c);for(let e=0;e<c.length;e++)c[e].isInSet(d)||(o&&o.to==u&&o.mark.eq(c[e])?o.to=f:a.push(o=new h(u,f,c[e])));i&&i.to==u?i.to=f:s.push(i=new p(u,f,r))}}),a.forEach(t=>e.step(t)),s.forEach(t=>e.step(t))}(this,e,t,n),this}removeMark(e,t,n){return function(e,t,n,o){let i=[],a=0;e.doc.nodesBetween(t,n,(e,s)=>{if(!e.isInline)return;a++;let l=null;if(o instanceof r.ZU){let t,n=e.marks;for(;t=
o.isInSet(n);)(l||(l=[])).push(t),n=t.removeFromSet(n)}else o?o.isInSet(e.marks)&&(l=[o]):l=e.marks;if(l&&l.length){let r=Math.min(s+e.nodeSize,n);for(let e=0;e<l.length;e++){let n,o=l[e];for(let e=0;e<i.length;e++){let t=i[e];t.step==a-1&&o.eq(i[e].style)&&(n=t)}n?(n.to=r,n.step=a):i.push({style:o,from:Math.max(s,t),to:r,step:a})}}}),i.forEach(t=>e.step(new h(t.from,t.to,t.style)))}(this,e,t,n),this}clearIncompatible(e,t,n){return function(e,t,n,o=n.contentMatch){let i=e.doc.nodeAt(t),a=[],s=t+1;
for(let t=0;t<i.childCount;t++){let l=i.child(t),u=s+l.nodeSize,c=o.matchType(l.type);if(c){o=c;for(let t=0;t<l.marks.length;t++)n.allowsMarkType(l.marks[t].type)||e.step(new h(s,u,l.marks[t]));if(l.isText&&!n.spec.code){let e,t,o=/\r?\n|\r/g;for(;e=o.exec(l.text);)t||(t=new r.p2(r.HY.from(n.schema.text(" ",n.allowedMarks(l.marks))),0,0)),a.push(new v(s+e.index,s+e.index+e[0].length,t))}}else a.push(new v(s,u,r.p2.empty));s=u}if(!o.validEnd){let t=o.fillBefore(r.HY.empty,!0);e.replace(s,s,new r.p2(t,
0,0))}for(let t=a.length-1;t>=0;t--)e.step(a[t])}(this,e,t,n),this}}},4348:(e,t,n)=>{n.d(t,{EH:()=>zt,p:()=>jt,tk:()=>sn});var r=n(2376),o=n(7823),i=n(8646);const a=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},s=function(e){let t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t};let l=null;const u=function(e,t,n){let r=l||(l=document.createRange());return r.setEnd(e,null==n?e.nodeValue.length:n),r.setStart(e,t||0),r},c=function(e,t,n,r){return n&&(d(e,t,n,r,-1)||
d(e,t,n,r,1))},f=/^(img|br|input|textarea|hr)$/i;function d(e,t,n,r,o){for(;;){if(e==n&&t==r)return!0;if(t==(o<0?0:p(e))){let n=e.parentNode;if(!n||1!=n.nodeType||h(e)||f.test(e.nodeName)||"false"==e.contentEditable)return!1;t=a(e)+(o<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if("false"==(e=e.childNodes[t+(o<0?-1:0)]).contentEditable)return!1;t=o<0?p(e):0}}}function p(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function h(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);
return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const g=function(e){return e.focusNode&&c(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function m(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}const v="undefined"!=typeof navigator?navigator:null,y="undefined"!=typeof document?document:null,b=v&&v.userAgent||"",w=/Edge\/(\d+)/.exec(b),x=/MSIE \d/.exec(b),k=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(b),S=!!(x||k||
w),C=x?document.documentMode:k?+k[1]:w?+w[1]:0,O=!S&&/gecko\/(\d+)/i.test(b);O&&(/Firefox\/(\d+)/.exec(b)||[0,0])[1];const E=!S&&/Chrome\/(\d+)/.exec(b),M=!!E,T=E?+E[1]:0,_=!S&&!!v&&/Apple Computer/.test(v.vendor),A=_&&(/Mobile\/\w+/.test(b)||!!v&&v.maxTouchPoints>2),P=A||!!v&&/Mac/.test(v.platform),D=!!v&&/Win/.test(v.platform),N=/Android \d/.test(b),R=!!y&&"webkitFontSmoothing"in y.documentElement.style,L=R?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function j(e){return{left:0,
right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function I(e,t){return"number"==typeof e?e:e[t]}function F(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function z(e,t,n){let r=e.someProp("scrollThreshold")||0,o=e.someProp("scrollMargin")||5,i=e.dom.ownerDocument;for(let a=n||e.dom;a;a=s(a)){if(1!=a.nodeType)continue;let e=a,n=e==i.body,
s=n?j(i):F(e),l=0,u=0;if(t.top<s.top+I(r,"top")?u=-(s.top-t.top+I(o,"top")):t.bottom>s.bottom-I(r,"bottom")&&(u=t.bottom-t.top>s.bottom-s.top?t.top+I(o,"top")-s.top:t.bottom-s.bottom+I(o,"bottom")),t.left<s.left+I(r,"left")?l=-(s.left-t.left+I(o,"left")):t.right>s.right-I(r,"right")&&(l=t.right-s.right+I(o,"right")),l||u)if(n)i.defaultView.scrollBy(l,u);else{let n=e.scrollLeft,r=e.scrollTop;u&&(e.scrollTop+=u),l&&(e.scrollLeft+=l);let o=e.scrollLeft-n,i=e.scrollTop-r;t={left:t.left-o,top:t.top-i,
right:t.right-o,bottom:t.bottom-i}}if(n||/^(fixed|sticky)$/.test(getComputedStyle(a).position))break}}function H(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=s(r));return t}function B(e,t){for(let n=0;n<e.length;n++){let {dom:r,top:o,left:i}=e[n];r.scrollTop!=o+t&&(r.scrollTop=o+t),r.scrollLeft!=i&&(r.scrollLeft=i)}}let V=null;function W(e,t){let n,r,o,i,a=2E8,s=0,l=t.top,c=t.top;for(let f=e.firstChild,d=0;f;f=f.nextSibling,d++){let e;if(1==
f.nodeType)e=f.getClientRects();else{if(3!=f.nodeType)continue;e=u(f).getClientRects()}for(let u=0;u<e.length;u++){let p=e[u];if(p.top<=l&&p.bottom>=c){l=Math.max(p.bottom,l),c=Math.min(p.top,c);let e=p.left>t.left?p.left-t.left:p.right<t.left?t.left-p.right:0;if(e<a){n=f,a=e,r=e&&3==n.nodeType?{left:p.right<t.left?p.right:p.left,top:t.top}:t,1==f.nodeType&&e&&(s=d+(t.left>=(p.left+p.right)/2?1:0));continue}}else p.top>t.top&&!o&&p.left<=t.left&&p.right>=t.left&&(o=f,i={left:Math.max(p.left,Math.min(p.right,
t.left)),top:p.top});!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(s=d+1)}}return!n&&o&&(n=o,r=i,a=0),n&&3==n.nodeType?function(e,t){let n=e.nodeValue.length,r=document.createRange();for(let o=0;o<n;o++){r.setEnd(e,o+1),r.setStart(e,o);let n=K(r,1);if(n.top!=n.bottom&&$(t,n))return{node:e,offset:o+(t.left>=(n.left+n.right)/2?1:0)}}return{node:e,offset:0}}(n,r):!n||a&&1==n.nodeType?{node:e,offset:s}:W(n,r)}function $(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=
t.top-1&&e.top<=t.bottom+1}function U(e,t,n){let r=e.childNodes.length;if(r&&n.top<n.bottom)for(let o=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),i=o;;){let n=e.childNodes[i];if(1==n.nodeType){let e=n.getClientRects();for(let r=0;r<e.length;r++){let o=e[r];if($(t,o))return U(n,t,o)}}if((i=(i+1)%r)==o)break}return e}function q(e,t){let n,r=e.dom.ownerDocument,o=0,i=function(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,
offset:r.offset}}catch(e){}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:r.startOffset}}}(r,t.left,t.top);i&&({node:n,offset:o}=i);let a,l=(e.root.elementFromPoint?e.root:r).elementFromPoint(t.left,t.top);if(!l||!e.dom.contains(1!=l.nodeType?l.parentNode:l)){let n=e.dom.getBoundingClientRect();if(!$(t,n))return null;if(l=U(e.dom,t,n),!l)return null}if(_)for(let e=l;n&&e;e=s(e))e.draggable&&(n=void 0);if(l=function(e,t){let n=e.parentNode;return n&&
/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}(l,t),n){if(O&&1==n.nodeType&&(o=Math.min(o,n.childNodes.length),o<n.childNodes.length)){let e,r=n.childNodes[o];"IMG"==r.nodeName&&(e=r.getBoundingClientRect()).right<=t.left&&e.bottom>t.top&&o++}let r;R&&o&&1==n.nodeType&&1==(r=n.childNodes[o-1]).nodeType&&"false"==r.contentEditable&&r.getBoundingClientRect().top>=t.top&&o--,n==e.dom&&o==n.childNodes.length-1&&1==n.lastChild.nodeType&&t.top>n.lastChild.getBoundingClientRect().bottom?
a=e.state.doc.content.size:0!=o&&1==n.nodeType&&"BR"==n.childNodes[o-1].nodeName||(a=function(e,t,n,r){let o=-1;for(let n=t,i=!1;n!=e.dom;){let t=e.docView.nearestDesc(n,!0);if(!t)return null;if(1==t.dom.nodeType&&(t.node.isBlock&&t.parent&&!i||!t.contentDOM)){let e=t.dom.getBoundingClientRect();if(t.node.isBlock&&t.parent&&!i&&(i=!0,e.left>r.left||e.top>r.top?o=t.posBefore:(e.right<r.left||e.bottom<r.top)&&(o=t.posAfter)),!t.contentDOM&&o<0&&!t.node.isText)return(t.node.isBlock?r.top<(e.top+e.bottom)/
2:r.left<(e.left+e.right)/2)?t.posBefore:t.posAfter}n=t.dom.parentNode}return o>-1?o:e.docView.posFromDOM(t,n,-1)}(e,n,o,t))}null==a&&(a=function(e,t,n){let {node:r,offset:o}=W(t,n),i=-1;if(1==r.nodeType&&!r.firstChild){let e=r.getBoundingClientRect();i=e.left!=e.right&&n.left>(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(r,o,i)}(e,l,t));let u=e.docView.nearestDesc(l,!0);return{pos:a,inside:u?u.posAtStart-u.border:-1}}function Z(e){return e.top<e.bottom||e.left<e.right}function K(e,t){let n=
e.getClientRects();if(n.length){let e=n[t<0?0:n.length-1];if(Z(e))return e}return Array.prototype.find.call(n,Z)||e.getBoundingClientRect()}const Y=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function G(e,t,n){let {node:r,offset:o,atom:i}=e.docView.domFromPos(t,n<0?-1:1),a=R||O;if(3==r.nodeType){if(!a||!Y.test(r.nodeValue)&&(n<0?o:o!=r.nodeValue.length)){let e=o,t=o,i=n<0?1:-1;return n<0&&!o?(t++,i=-1):n>=0&&o==r.nodeValue.length?(e--,i=1):n<0?e--:t++,J(K(u(r,e,t),i),i<0)}{let e=K(u(r,o,o),n);if(O&&
o&&/\s/.test(r.nodeValue[o-1])&&o<r.nodeValue.length){let t=K(u(r,o-1,o-1),-1);if(t.top==e.top){let n=K(u(r,o,o+1),-1);if(n.top!=e.top)return J(n,n.left<t.left)}}return e}}if(!e.state.doc.resolve(t-(i||0)).parent.inlineContent){if(null==i&&o&&(n<0||o==p(r))){let e=r.childNodes[o-1];if(1==e.nodeType)return X(e.getBoundingClientRect(),!1)}if(null==i&&o<p(r)){let e=r.childNodes[o];if(1==e.nodeType)return X(e.getBoundingClientRect(),!0)}return X(r.getBoundingClientRect(),n>=0)}if(null==i&&o&&(n<0||o==
p(r))){let e=r.childNodes[o-1],t=3==e.nodeType?u(e,p(e)-(a?0:1)):1!=e.nodeType||"BR"==e.nodeName&&e.nextSibling?null:e;if(t)return J(K(t,1),!1)}if(null==i&&o<p(r)){let e=r.childNodes[o];for(;e.pmViewDesc&&e.pmViewDesc.ignoreForCoords;)e=e.nextSibling;let t=e?3==e.nodeType?u(e,0,a?0:1):1==e.nodeType?e:null:null;if(t)return J(K(t,-1),!0)}return J(K(3==r.nodeType?u(r):r,-n),n>=0)}function J(e,t){if(0==e.width)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function X(e,
t){if(0==e.height)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function Q(e,t,n){let r=e.state,o=e.root.activeElement;r!=t&&e.updateState(t),o!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),o!=e.dom&&o&&o.focus()}}const ee=/[\u0590-\u08ac]/;let te=null,ne=null,re=!1;class oe{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,this.contentDOM=r,this.dirty=0,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,
t,n){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,n=this.posAtStart;;t++){let r=this.children[t];if(r==e)return n;n+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?
this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,n){if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode)){if(n<0){let n,r;if(e==this.contentDOM)n=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.previousSibling}for(;n&&(!(r=n.pmViewDesc)||r.parent!=this);)n=n.previousSibling;return n?this.posBeforeChild(r)+r.size:this.posAtStart}{let n,
r;if(e==this.contentDOM)n=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.nextSibling}for(;n&&(!(r=n.pmViewDesc)||r.parent!=this);)n=n.nextSibling;return n?this.posBeforeChild(r):this.posAtEnd}}let r;if(e==this.dom&&this.contentDOM)r=t>a(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(let t=e;;t=t.parentNode){if(t==this.dom){r=
!1;break}if(t.previousSibling)break}if(null==r&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!0;break}if(t.nextSibling)break}}return(null==r?n>0:r)?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let n=!0,r=e;r;r=r.parentNode){let o,i=this.getDesc(r);if(i&&(!t||i.node)){if(!n||!(o=i.nodeDOM)||(1==o.nodeType?o.contains(1==e.nodeType?e:e.parentNode):o==e))return i;n=!1}}}getDesc(e){let t=e.pmViewDesc;for(let e=t;e;e=e.parent)if(e==this)return t}posFromDOM(e,t,n){for(let r=
e;r;r=r.parentNode){let o=this.getDesc(r);if(o)return o.localPosFromDOM(e,t,n)}return-1}descAt(e){for(let t=0,n=0;t<this.children.length;t++){let r=this.children[t],o=n+r.size;if(n==e&&o!=n){for(;!r.border&&r.children.length;)r=r.children[0];return r}if(e<o)return r.descAt(e-n-r.border);n=o}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let n=0,r=0;for(let t=0;n<this.children.length;n++){let o=this.children[n],i=t+o.size;if(i>e||o instanceof fe){r=e-t;break}t=i}if(r)return this.children[n].domFromPos(r-
this.children[n].border,t);for(let e;n&&!(e=this.children[n-1]).size&&e instanceof ie&&e.side>=0;n--);if(t<=0){let e,r=!0;for(;e=n?this.children[n-1]:null,e&&e.dom.parentNode!=this.contentDOM;n--,r=!1);return e&&t&&r&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?a(e.dom)+1:0}}{let e,r=!0;for(;e=n<this.children.length?this.children[n]:null,e&&e.dom.parentNode!=this.contentDOM;n++,r=!1);return e&&r&&!e.border&&!e.domAtom?e.domFromPos(0,t):{node:this.contentDOM,offset:e?
a(e.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,n=0){if(0==this.children.length)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,o=-1;for(let i=n,s=0;;s++){let n=this.children[s],l=i+n.size;if(-1==r&&e<=l){let o=i+n.border;if(e>=o&&t<=l-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(e,t,o);e=i;for(let t=s;t>0;t--){let n=this.children[t-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){r=
a(n.dom)+1;break}e-=n.size}-1==r&&(r=0)}if(r>-1&&(l>t||s==this.children.length-1)){t=l;for(let e=s+1;e<this.children.length;e++){let n=this.children[e];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(-1)){o=a(n.dom);break}t+=n.size}-1==o&&(o=this.contentDOM.childNodes.length);break}i=l}return{node:this.contentDOM,from:e,to:t,fromOffset:r,toOffset:o}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return 0==
t.size||t.emptyChildAt(e)}domAfterPos(e){let {node:t,offset:n}=this.domFromPos(e,0);if(1!=t.nodeType||n==t.childNodes.length)throw new RangeError("No node after pos "+e);return t.childNodes[n]}setSelection(e,t,n,r=!1){let o=Math.min(e,t),i=Math.max(e,t);for(let a=0,s=0;a<this.children.length;a++){let l=this.children[a],u=s+l.size;if(o>s&&i<u)return l.setSelection(e-s-l.border,t-s-l.border,n,r);s=u}let s=this.domFromPos(e,e?-1:1),l=t==e?s:this.domFromPos(t,t?-1:1),u=n.getSelection(),f=!1;if((O||_)&&
e==t){let {node:e,offset:t}=s;if(3==e.nodeType){if(f=!(!t||"\n"!=e.nodeValue[t-1]),f&&t==e.nodeValue.length)for(let t,n=e;n;n=n.parentNode){if(t=n.nextSibling){"BR"==t.nodeName&&(s=l={node:t.parentNode,offset:a(t)+1});break}let e=n.pmViewDesc;if(e&&e.node&&e.node.isBlock)break}}else{let n=e.childNodes[t-1];f=n&&("BR"==n.nodeName||"false"==n.contentEditable)}}if(O&&u.focusNode&&u.focusNode!=l.node&&1==u.focusNode.nodeType){let e=u.focusNode.childNodes[u.focusOffset];e&&"false"==e.contentEditable&&
(r=!0)}if(!(r||f&&_)&&c(s.node,s.offset,u.anchorNode,u.anchorOffset)&&c(l.node,l.offset,u.focusNode,u.focusOffset))return;let d=!1;if((u.extend||e==t)&&!f){u.collapse(s.node,s.offset);try{e!=t&&u.extend(l.node,l.offset),d=!0}catch(e){}}if(!d){if(e>t){let e=s;s=l,l=e}let n=document.createRange();n.setEnd(l.node,l.offset),n.setStart(s.node,s.offset),u.removeAllRanges(),u.addRange(n)}}ignoreMutation(e){return!this.contentDOM&&"selection"!=e.type}get contentLost(){return this.contentDOM&&this.contentDOM!=
this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let n=0,r=0;r<this.children.length;r++){let o=this.children[r],i=n+o.size;if(n==i?e<=i&&t>=n:e<i&&t>n){let r=n+o.border,a=i-o.border;if(e>=r&&t<=a)return this.dirty=e==n||t==i?2:1,void(e!=r||t!=a||!o.contentLost&&o.dom.parentNode==this.contentDOM?o.markDirty(e-r,t-r):o.dirty=3);o.dirty=o.dom!=o.contentDOM||o.dom.parentNode!=this.contentDOM||o.children.length?3:2}n=i}this.dirty=2}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,
e++){let n=1==e?2:1;t.dirty<n&&(t.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}}class ie extends oe{constructor(e,t,n,r){let o,i=t.type.toDOM;if("function"==typeof i&&(i=i(n,()=>o?o.parent?o.parent.posBeforeChild(o):void 0:r)),!t.type.spec.raw){if(1!=i.nodeType){let e=document.createElement("span");e.appendChild(i),i=e}i.contentEditable="false",i.classList.add("ProseMirror-widget")}super(e,[],i,null),this.widget=t,this.widget=t,o=this}matchesWidget(e){return 0==this.dirty&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=
this.widget.spec.stopEvent;return!!t&&t(e)}ignoreMutation(e){return"selection"!=e.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class ae extends oe{constructor(e,t,n,r){super(e,[],t,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,
offset:e}}ignoreMutation(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue}}class se extends oe{constructor(e,t,n,r){super(e,[],n,r),this.mark=t}static create(e,t,n,r){let i=r.nodeViews[t.type.name],a=i&&i(t,r,n);return a&&a.dom||(a=o.PW.renderSpec(document,t.type.spec.toDOM(t,n))),new se(e,t,a.dom,a.contentDOM||a.dom)}parseRule(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return 3!=
this.dirty&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),0!=this.dirty){let e=this.parent;for(;!e.node;)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=0}}slice(e,t,n){let r=se.create(this.parent,this.mark,!0,n),o=this.children,i=this.size;t<i&&(o=Ce(o,t,i,n)),e>0&&(o=Ce(o,0,e,n));for(let e=0;e<o.length;e++)o[e].parent=r;return r.children=o,r}}class le extends oe{constructor(e,t,n,r,o,i,a,s,l){super(e,[],o,i),this.node=t,this.outerDeco=n,this.innerDeco=r,this.nodeDOM=a}static create(e,
t,n,r,i,a){let s,l=i.nodeViews[t.type.name],u=l&&l(t,i,()=>s?s.parent?s.parent.posBeforeChild(s):void 0:a,n,r),c=u&&u.dom,f=u&&u.contentDOM;if(t.isText)if(c){if(3!=c.nodeType)throw new RangeError("Text must be rendered as a DOM text node");}else c=document.createTextNode(t.text);else c||({dom:c,contentDOM:f}=o.PW.renderSpec(document,t.type.spec.toDOM(t)));f||t.isText||"BR"==c.nodeName||(c.hasAttribute("contenteditable")||(c.contentEditable="false"),t.type.spec.draggable&&(c.draggable=!0));let d=c;
return c=be(c,n,t),u?s=new de(e,t,n,r,c,f||null,d,u,i,a+1):t.isText?new ce(e,t,n,r,c,d,i):new le(e,t,n,r,c,f||null,d,i,a+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(e.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let t=this.children.length-1;t>=0;t--){let n=this.children[t];if(this.dom.contains(n.dom.parentNode)){e.contentElement=n.dom.parentNode;break}}e.contentElement||
(e.getContent=()=>o.HY.empty)}else e.contentElement=this.contentDOM;else e.getContent=()=>this.node.content;return e}matchesNode(e,t,n){return 0==this.dirty&&e.eq(this.node)&&we(t,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let n=this.node.inlineContent,r=t,i=e.composing?this.localCompositionInfo(e,t):null,a=i&&i.pos>-1?i:null,s=i&&i.pos<0,l=new ke(this,a&&a.node,e);!function(e,t,n,r){let o=t.locals(e),i=0;
if(0==o.length){for(let n=0;n<e.childCount;n++){let a=e.child(n);r(a,o,t.forChild(i,a),n),i+=a.nodeSize}return}let a=0,s=[],l=null;for(let u=0;;){let c,f,d,p;for(;a<o.length&&o[a].to==i;){let e=o[a++];e.widget&&(c?(f||(f=[c])).push(e):c=e)}if(c)if(f){f.sort(Se);for(let e=0;e<f.length;e++)n(f[e],u,!!l)}else n(c,u,!!l);if(l)p=-1,d=l,l=null;else{if(!(u<e.childCount))break;p=u,d=e.child(u++)}for(let e=0;e<s.length;e++)s[e].to<=i&&s.splice(e--,1);for(;a<o.length&&o[a].from<=i&&o[a].to>i;)s.push(o[a++]);
let h=i+d.nodeSize;if(d.isText){let e=h;a<o.length&&o[a].from<e&&(e=o[a].from);for(let t=0;t<s.length;t++)s[t].to<e&&(e=s[t].to);e<h&&(l=d.cut(e-i),d=d.cut(0,e-i),h=e,p=-1)}r(d,d.isInline&&!d.isLeaf?s.filter(e=>!e.inline):s.slice(),t.forChild(i,d),p),i=h}}(this.node,this.innerDeco,(t,i,a)=>{t.spec.marks?l.syncToMarks(t.spec.marks,n,e):t.type.side>=0&&!a&&l.syncToMarks(i==this.node.childCount?o.vc.none:this.node.child(i).marks,n,e),l.placeWidget(t,e,r)},(t,o,a,u)=>{let c;l.syncToMarks(t.marks,n,e),
l.findNodeMatch(t,o,a,u)||s&&e.state.selection.from>r&&e.state.selection.to<r+t.nodeSize&&(c=l.findIndexWithChild(i.node))>-1&&l.updateNodeAt(t,o,a,c,e)||l.updateNextNode(t,o,a,e,u,r)||l.addNode(t,o,a,e,r),r+=t.nodeSize}),l.syncToMarks([],n,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(a&&this.protectLocalComposition(e,a),pe(this.contentDOM,this.children,e),A&&function(e){if("UL"==e.nodeName||"OL"==e.nodeName){let t=e.style.cssText;e.style.cssText=t+
"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}(this.dom))}localCompositionInfo(e,t){let {from:n,to:o}=e.state.selection;if(!(e.state.selection instanceof r.Bs)||n<t||o>t+this.node.content.size)return null;let i=e.domSelectionRange(),a=function(e,t){for(;;){if(3==e.nodeType)return e;if(1==e.nodeType&&t>0){if(e.childNodes.length>t&&3==e.childNodes[t].nodeType)return e.childNodes[t];t=p(e=e.childNodes[t-1])}else{if(!(1==e.nodeType&&t<e.childNodes.length))return null;
e=e.childNodes[t],t=0}}}(i.focusNode,i.focusOffset);if(!a||!this.dom.contains(a.parentNode))return null;if(this.node.inlineContent){let e=a.nodeValue,r=function(e,t,n,r){for(let o=0,i=0;o<e.childCount&&i<=r;){let a=e.child(o++),s=i;if(i+=a.nodeSize,!a.isText)continue;let l=a.text;for(;o<e.childCount;){let t=e.child(o++);if(i+=t.nodeSize,!t.isText)break;l+=t.text}if(i>=n){if(i>=r&&l.slice(r-t.length-s,r-s)==t)return r-t.length;let e=s<r?l.lastIndexOf(t,r-s-1):-1;if(e>=0&&e+t.length+s>=n)return s+e;
if(n==r&&l.length>=r+t.length-s&&l.slice(r-s,r-s+t.length)==t)return r}}return-1}(this.node.content,e,n-t,o-t);return r<0?null:{node:a,pos:r,text:e}}return{node:a,pos:-1,text:""}}protectLocalComposition(e,{node:t,pos:n,text:r}){if(this.getDesc(t))return;let o=t;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let i=new ae(this,o,t,r);
e.input.compositionNodes.push(i),this.children=Ce(this.children,n,n+r.length,e,i)}update(e,t,n,r){return!(3==this.dirty||!e.sameMarkup(this.node)||(this.updateInner(e,t,n,r),0))}updateInner(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=0}updateOuterDeco(e){if(we(e,this.outerDeco))return;let t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=ve(this.dom,this.nodeDOM,me(this.outerDeco,this.node,t),me(e,this.node,t)),this.dom!=
n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.dom.draggable=!0)}deselectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function ue(e,t,n,r,o){be(r,t,e);let i=new le(void 0,
e,t,n,r,r,r,o,0);return i.contentDOM&&i.updateChildren(o,0),i}class ce extends le{constructor(e,t,n,r,o,i,a){super(e,t,n,r,o,null,i,a,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,n,r){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!e.sameMarkup(this.node)||(this.updateOuterDeco(t),0==this.dirty&&e.text==this.node.text||e.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&
(r.trackWrites=null)),this.node=e,this.dirty=0,0))}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,n){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,n)}ignoreMutation(e){return"characterData"!=e.type&&"selection"!=e.type}slice(e,t,n){let r=this.node.cut(e,t),o=document.createTextNode(r.text);return new ce(this.parent,r,this.outerDeco,
this.innerDeco,o,o,n)}markDirty(e,t){super.markDirty(e,t),this.dom==this.nodeDOM||0!=e&&t!=this.nodeDOM.nodeValue.length||(this.dirty=3)}get domAtom(){return!1}}class fe extends oe{parseRule(){return{ignore:!0}}matchesHack(e){return 0==this.dirty&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class de extends le{constructor(e,t,n,r,o,i,a,s,l,u){super(e,t,n,r,o,i,a,l,u),this.spec=s}update(e,t,n,r){if(3==this.dirty)return!1;if(this.spec.update){let o=
this.spec.update(e,t,n);return o&&this.updateInner(e,t,n,r),o}return!(!this.contentDOM&&!e.isLeaf)&&super.update(e,t,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,n,r){this.spec.setSelection?this.spec.setSelection(e,t,n):super.setSelection(e,t,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)}ignoreMutation(e){return this.spec.ignoreMutation?
this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function pe(e,t,n){let r=e.firstChild,o=!1;for(let i=0;i<t.length;i++){let a=t[i],s=a.dom;if(s.parentNode==e){for(;s!=r;)r=xe(r),o=!0;r=r.nextSibling}else o=!0,e.insertBefore(s,r);if(a instanceof se){let t=r?r.previousSibling:e.lastChild;pe(a.contentDOM,a.children,n),r=t?t.nextSibling:e.firstChild}}for(;r;)r=xe(r),o=!0;o&&n.trackWrites==e&&(n.trackWrites=null)}const he=function(e){e&&(this.nodeName=e)};he.prototype=Object.create(null);const ge=
[new he];function me(e,t,n){if(0==e.length)return ge;let r=n?ge[0]:new he,o=[r];for(let i=0;i<e.length;i++){let a=e[i].type.attrs;if(a){a.nodeName&&o.push(r=new he(a.nodeName));for(let e in a){let i=a[e];null!=i&&(n&&1==o.length&&o.push(r=new he(t.isInline?"span":"div")),"class"==e?r.class=(r.class?r.class+" ":"")+i:"style"==e?r.style=(r.style?r.style+";":"")+i:"nodeName"!=e&&(r[e]=i))}}}return o}function ve(e,t,n,r){if(n==ge&&r==ge)return t;let o=t;for(let t=0;t<r.length;t++){let i=r[t],a=n[t];if(t){let t;
a&&a.nodeName==i.nodeName&&o!=e&&(t=o.parentNode)&&t.nodeName.toLowerCase()==i.nodeName||(t=document.createElement(i.nodeName),t.pmIsDeco=!0,t.appendChild(o),a=ge[0]),o=t}ye(o,a||ge[0],i)}return o}function ye(e,t,n){for(let r in t)"class"==r||"style"==r||"nodeName"==r||r in n||e.removeAttribute(r);for(let r in n)"class"!=r&&"style"!=r&&"nodeName"!=r&&n[r]!=t[r]&&e.setAttribute(r,n[r]);if(t.class!=n.class){let r=t.class?t.class.split(" ").filter(Boolean):[],o=n.class?n.class.split(" ").filter(Boolean):
[];for(let t=0;t<r.length;t++)-1==o.indexOf(r[t])&&e.classList.remove(r[t]);for(let t=0;t<o.length;t++)-1==r.indexOf(o[t])&&e.classList.add(o[t]);0==e.classList.length&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style){let n,r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;for(;n=r.exec(t.style);)e.style.removeProperty(n[1])}n.style&&(e.style.cssText+=n.style)}}function be(e,t,n){return ve(e,e,ge,me(t,n,1!=e.nodeType))}function we(e,t){if(e.length!=t.length)return!1;
for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function xe(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class ke{constructor(e,t,n){this.lock=t,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=function(e,t){let n=t,r=n.children.length,o=e.childCount,i=new Map,a=[];e:for(;o>0;){let s;for(;;)if(r){let e=n.children[r-1];if(!(e instanceof se)){s=e,r--;break}n=e,r=e.children.length}else{if(n==t)break e;r=n.parent.children.indexOf(n),
n=n.parent}let l=s.node;if(l){if(l!=e.child(o-1))break;--o,i.set(s,o),a.push(s)}}return{index:o,matched:i,matches:a.reverse()}}(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,n){let r=0,o=this.stack.length>>1,i=Math.min(o,e.length);for(;r<i&&(r==o-1?this.top:this.stack[r+1<<1]).matchesMark(e[r])&&!1!==e[r].type.spec.spanning;)r++;
for(;r<o;)this.destroyRest(),this.top.dirty=0,this.index=this.stack.pop(),this.top=this.stack.pop(),o--;for(;o<e.length;){this.stack.push(this.top,this.index+1);let r=-1;for(let t=this.index;t<Math.min(this.index+3,this.top.children.length);t++){let n=this.top.children[t];if(n.matchesMark(e[o])&&!this.isLocked(n.dom)){r=t;break}}if(r>-1)r>this.index&&(this.changed=!0,this.destroyBetween(this.index,r)),this.top=this.top.children[this.index];else{let r=se.create(this.top,e[o],t,n);this.top.children.splice(this.index,
0,r),this.top=r,this.changed=!0}this.index=0,o++}}findNodeMatch(e,t,n,r){let o,i=-1;if(r>=this.preMatch.index&&(o=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&o.matchesNode(e,t,n))i=this.top.children.indexOf(o,this.index);else for(let r=this.index,o=Math.min(this.top.children.length,r+5);r<o;r++){let o=this.top.children[r];if(o.matchesNode(e,t,n)&&!this.preMatch.matched.has(o)){i=r;break}}return!(i<0||(this.destroyBetween(this.index,i),this.index++,0))}updateNodeAt(e,t,n,r,o){let i=
this.top.children[r];return 3==i.dirty&&i.dom==i.contentDOM&&(i.dirty=2),!!i.update(e,t,n,o)&&(this.destroyBetween(this.index,r),this.index++,!0)}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let t=e.pmViewDesc;if(t)for(let e=this.index;e<this.top.children.length;e++)if(this.top.children[e]==t)return e;return-1}e=t}}updateNextNode(e,t,n,r,o,i){for(let a=this.index;a<this.top.children.length;a++){let s=this.top.children[a];if(s instanceof le){let l=this.preMatch.matched.get(s);
if(null!=l&&l!=o)return!1;let u,c=s.dom,f=this.isLocked(c)&&!(e.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==e.text&&3!=s.dirty&&we(t,s.outerDeco));if(!f&&s.update(e,t,n,r))return this.destroyBetween(this.index,a),s.dom!=c&&(this.changed=!0),this.index++,!0;if(!f&&(u=this.recreateWrapper(s,e,t,n,r,i)))return this.top.children[this.index]=u,u.contentDOM&&(u.dirty=2,u.updateChildren(r,i+1),u.dirty=0),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,n,r,o,i){if(e.dirty||t.isAtom||
!e.children.length||!e.node.content.eq(t.content))return null;let a=le.create(this.top,t,n,r,o,i);if(a.contentDOM){a.children=e.children,e.children=[];for(let e of a.children)e.parent=a}return e.destroy(),a}addNode(e,t,n,r,o){let i=le.create(this.top,e,t,n,r,o);i.contentDOM&&i.updateChildren(r,o+1),this.top.children.splice(this.index++,0,i),this.changed=!0}placeWidget(e,t,n){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(!r||!r.matchesWidget(e)||e!=r.widget&&r.widget.type.toDOM.parentNode){let r=
new ie(this.top,e,t,n);this.top.children.splice(this.index++,0,r),this.changed=!0}else this.index++}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof se;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof ce)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((_||M)&&e&&"false"==e.dom.contentEditable&&this.addHackNode("IMG",t),this.addHackNode("BR",this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&
t.children[this.index].matchesHack(e))this.index++;else{let n=document.createElement(e);"IMG"==e&&(n.className="ProseMirror-separator",n.alt=""),"BR"==e&&(n.className="ProseMirror-trailingBreak");let r=new fe(this.top,[],n,null);t!=this.top?t.children.push(r):t.children.splice(this.index++,0,r),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||1==e.nodeType&&e.contains(this.lock.parentNode))}}function Se(e,t){return e.type.side-t.type.side}function Ce(e,t,n,r,o){let i=[];for(let a=0,s=
0;a<e.length;a++){let l=e[a],u=s,c=s+=l.size;u>=n||c<=t?i.push(l):(u<t&&i.push(l.slice(0,t-u,r)),o&&(i.push(o),o=void 0),c>n&&i.push(l.slice(n-u,l.size,r)))}return i}function Oe(e,t=null){let n=e.domSelectionRange(),o=e.state.doc;if(!n.focusNode)return null;let i=e.docView.nearestDesc(n.focusNode),s=i&&0==i.size,l=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(l<0)return null;let u,c,f=o.resolve(l);if(g(n)){for(u=f;i&&!i.node;)i=i.parent;let e=i.node;if(i&&e.isAtom&&r.qv.isSelectable(e)&&i.parent&&
(!e.isInline||!function(e,t,n){for(let r=0==t,o=t==p(e);r||o;){if(e==n)return!0;let t=a(e);if(!(e=e.parentNode))return!1;r=r&&0==t,o=o&&t==p(e)}}(n.focusNode,n.focusOffset,i.dom))){let e=i.posBefore;c=new r.qv(l==e?f:o.resolve(e))}}else{let t=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(t<0)return null;u=o.resolve(t)}return c||(c=Re(e,u,f,"pointer"==t||e.state.selection.head<f.pos&&!s?1:-1)),c}function Ee(e){return e.editable?e.hasFocus():je(e)&&document.activeElement&&document.activeElement.contains(e.dom)}
function Me(e,t=!1){let n=e.state.selection;if(De(e,n),Ee(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&M){let t=e.domSelectionRange(),n=e.domObserver.currentSelection;if(t.anchorNode&&n.anchorNode&&c(t.anchorNode,t.anchorOffset,n.anchorNode,n.anchorOffset))return e.input.mouseDown.delayedSelectionSync=!0,void e.domObserver.setCurSelection()}if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){let t=e.domSelection(),n=document.createRange(),r=e.cursorWrapper.dom,o="IMG"==
r.nodeName;o?n.setEnd(r.parentNode,a(r)+1):n.setEnd(r,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!o&&!e.state.selection.visible&&S&&C<=11&&(r.disabled=!0,r.disabled=!1)}(e);else{let o,i,{anchor:a,head:s}=n;!Te||n instanceof r.Bs||(n.$from.parent.inlineContent||(o=_e(e,n.from)),n.empty||n.$from.parent.inlineContent||(i=_e(e,n.to))),e.docView.setSelection(a,s,e.root,t),Te&&(o&&Pe(o),i&&Pe(i)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),
"onselectionchange"in document&&function(e){let t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.input.hideSelectionGuard);let n=e.domSelectionRange(),r=n.anchorNode,o=n.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{n.anchorNode==r&&n.anchorOffset==o||(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{Ee(e)&&!e.state.selection.visible||e.dom.classList.remove("ProseMirror-hideselection")},20))})}(e))}e.domObserver.setCurSelection(),
e.domObserver.connectSelection()}}const Te=_||M&&T<63;function _e(e,t){let {node:n,offset:r}=e.docView.domFromPos(t,0),o=r<n.childNodes.length?n.childNodes[r]:null,i=r?n.childNodes[r-1]:null;if(_&&o&&"false"==o.contentEditable)return Ae(o);if(!(o&&"false"!=o.contentEditable||i&&"false"!=i.contentEditable)){if(o)return Ae(o);if(i)return Ae(i)}}function Ae(e){return e.contentEditable="true",_&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function Pe(e){e.contentEditable="false",e.wasDraggable&&
(e.draggable=!0,e.wasDraggable=null)}function De(e,t){if(t instanceof r.qv){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(Ne(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else Ne(e)}function Ne(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function Re(e,t,n,o){return e.someProp("createSelectionBetween",r=>r(e,t,n))||r.Bs.between(t,n,o)}function Le(e){return!(e.editable&&!e.hasFocus())&&je(e)}function je(e){let t=
e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(e){return!1}}function Ie(e,t){let {$anchor:n,$head:o}=e.selection,i=t>0?n.max(o):n.min(o),a=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return a&&r.Y1.findFrom(a,t)}function Fe(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),
!0}function ze(e,t,n){let o=e.state.selection;if(!(o instanceof r.Bs)){if(o instanceof r.qv&&o.node.isInline)return Fe(e,new r.Bs(t>0?o.$to:o.$from));{let n=Ie(e.state,t);return!!n&&Fe(e,n)}}if(n.indexOf("s")>-1){let {$head:n}=o,i=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let a=e.state.doc.resolve(n.pos+i.nodeSize*(t<0?-1:1));return Fe(e,new r.Bs(o.$anchor,a))}if(!o.empty)return!1;if(e.endOfTextblock(t>0?"forward":"backward")){let n=Ie(e.state,t);return!!(n&&
n instanceof r.qv)&&Fe(e,n)}if(!(P&&n.indexOf("m")>-1)){let n,i=o.$head,a=i.textOffset?null:t<0?i.nodeBefore:i.nodeAfter;if(!a||a.isText)return!1;let s=t<0?i.pos-a.nodeSize:i.pos;return!!(a.isAtom||(n=e.docView.descAt(s))&&!n.contentDOM)&&(r.qv.isSelectable(a)?Fe(e,new r.qv(t<0?e.state.doc.resolve(i.pos-a.nodeSize):i)):!!R&&Fe(e,new r.Bs(e.state.doc.resolve(t<0?s:s+a.nodeSize))))}}function He(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Be(e,t){let n=e.pmViewDesc;return n&&
0==n.size&&(t<0||e.nextSibling||"BR"!=e.nodeName)}function Ve(e,t){return t<0?function(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let o,i,s=!1;for(O&&1==n.nodeType&&r<He(n)&&Be(n.childNodes[r],-1)&&(s=!0);;)if(r>0){if(1!=n.nodeType)break;{let e=n.childNodes[r-1];if(Be(e,-1))o=n,i=--r;else{if(3!=e.nodeType)break;n=e,r=n.nodeValue.length}}}else{if(We(n))break;{let t=n.previousSibling;for(;t&&Be(t,-1);)o=n.parentNode,i=a(t),t=t.previousSibling;if(t)n=t,r=He(n);else{if(n=
n.parentNode,n==e.dom)break;r=0}}}s?$e(e,n,r):o&&$e(e,o,i)}(e):function(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let o,i,s=He(n);for(;;)if(r<s){if(1!=n.nodeType)break;if(!Be(n.childNodes[r],1))break;o=n,i=++r}else{if(We(n))break;{let t=n.nextSibling;for(;t&&Be(t,1);)o=t.parentNode,i=a(t)+1,t=t.nextSibling;if(t)n=t,r=0,s=He(n);else{if(n=n.parentNode,n==e.dom)break;r=s=0}}}o&&$e(e,o,i)}(e)}function We(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function $e(e,
t,n){if(3!=t.nodeType){let e,r;(r=function(e,t){for(;e&&t==e.childNodes.length&&!h(e);)t=a(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;e=n,t=0}}(t,n))?(t=r,n=0):(e=function(e,t){for(;e&&!t&&!h(e);)t=a(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;t=(e=n).childNodes.length}}(t,n))&&(t=e,n=e.nodeValue.length)}let r=
e.domSelection();if(g(r)){let e=document.createRange();e.setEnd(t,n),e.setStart(t,n),r.removeAllRanges(),r.addRange(e)}else r.extend&&r.extend(t,n);e.domObserver.setCurSelection();let {state:o}=e;setTimeout(()=>{e.state==o&&Me(e)},50)}function Ue(e,t){let n=e.state.doc.resolve(t);if(!M&&!D&&n.parent.inlineContent){let r=e.coordsAtPos(t);if(t>n.start()){let n=e.coordsAtPos(t-1),o=(n.top+n.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(n.left-r.left)>1)return n.left<r.left?"ltr":"rtl"}if(t<n.end()){let n=
e.coordsAtPos(t+1),o=(n.top+n.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(n.left-r.left)>1)return n.left>r.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(e.dom).direction?"rtl":"ltr"}function qe(e,t,n){let o=e.state.selection;if(o instanceof r.Bs&&!o.empty||n.indexOf("s")>-1)return!1;if(P&&n.indexOf("m")>-1)return!1;let {$from:i,$to:a}=o;if(!i.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let n=Ie(e.state,t);if(n&&n instanceof r.qv)return Fe(e,n)}if(!i.parent.inlineContent){let n=t<0?i:
a,s=o instanceof r.C1?r.Y1.near(n,t):r.Y1.findFrom(n,t);return!!s&&Fe(e,s)}return!1}function Ze(e,t){if(!(e.state.selection instanceof r.Bs))return!0;let {$head:n,$anchor:o,empty:i}=e.state.selection;if(!n.sameParent(o))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let a=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(a&&!a.isText){let r=e.state.tr;return t<0?r.delete(n.pos-a.nodeSize,n.pos):r.delete(n.pos,n.pos+a.nodeSize),e.dispatch(r),!0}return!1}function Ke(e,
t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function Ye(e,t){e.someProp("transformCopied",n=>{t=n(t,e)});let n=[],{content:r,openStart:i,openEnd:a}=t;for(;i>1&&a>1&&1==r.childCount&&1==r.firstChild.childCount;){i--,a--;let e=r.firstChild;n.push(e.type.name,e.attrs!=e.type.defaultAttrs?e.attrs:null),r=e.content}let s=e.someProp("clipboardSerializer")||o.PW.fromSchema(e.state.schema),l=it(),u=l.createElement("div");u.appendChild(s.serializeFragment(r,{document:l}));let c,f=u.firstChild,
d=0;for(;f&&1==f.nodeType&&(c=rt[f.nodeName.toLowerCase()]);){for(let e=c.length-1;e>=0;e--){let t=l.createElement(c[e]);for(;u.firstChild;)t.appendChild(u.firstChild);u.appendChild(t),d++}f=u.firstChild}return f&&1==f.nodeType&&f.setAttribute("data-pm-slice",`${i} ${a}${d?` -${d}`:""} ${JSON.stringify(n)}`),{dom:u,text:e.someProp("clipboardTextSerializer",n=>n(t,e))||t.content.textBetween(0,t.content.size,"\n\n")}}function Ge(e,t,n,r,i){let a,s,l=i.parent.type.spec.code;if(!n&&!t)return null;let u=
t&&(r||l||!n);if(u){if(e.someProp("transformPastedText",n=>{t=n(t,l||r,e)}),l)return t?new o.p2(o.HY.from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0):o.p2.empty;let n=e.someProp("clipboardTextParser",n=>n(t,i,r,e));if(n)s=n;else{let n=i.marks(),{schema:r}=e.state,s=o.PW.fromSchema(r);a=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(e=>{let t=a.appendChild(document.createElement("p"));e&&t.appendChild(s.serializeNode(r.text(e,n)))})}}else e.someProp("transformPastedHTML",t=>
{n=t(n,e)}),a=function(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n,r=it().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(e);if((n=o&&rt[o[1].toLowerCase()])&&(e=n.map(e=>"<"+e+">").join("")+e+n.map(e=>"</"+e+">").reverse().join("")),r.innerHTML=e,n)for(let e=0;e<n.length;e++)r=r.querySelector(n[e])||r;return r}(n),R&&function(e){let t=e.querySelectorAll(M?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<t.length;n++){let r=t[n];1==r.childNodes.length&&
"\u00a0"==r.textContent&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),r)}}(a);let c=a&&a.querySelector("[data-pm-slice]"),f=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(f&&f[3])for(let e=+f[3];e>0;e--){let e=a.firstChild;for(;e&&1!=e.nodeType;)e=e.nextSibling;if(!e)break;a=e}if(!s){let t=e.someProp("clipboardParser")||e.someProp("domParser")||o.aw.fromSchema(e.state.schema);s=t.parseSlice(a,{preserveWhitespace:!(!u&&!f),context:i,ruleFromNode:e=>
"BR"!=e.nodeName||e.nextSibling||!e.parentNode||Je.test(e.parentNode.nodeName)?null:{ignore:!0}})}if(f)s=function(e,t){if(!e.size)return e;let n,r=e.content.firstChild.type.schema;try{n=JSON.parse(t)}catch(t){return e}let {content:i,openStart:a,openEnd:s}=e;for(let e=n.length-2;e>=0;e-=2){let t=r.nodes[n[e]];if(!t||t.hasRequiredAttrs())break;i=o.HY.from(t.create(n[e+1],i)),a++,s++}return new o.p2(i,a,s)}(nt(s,+f[1],+f[2]),f[4]);else if(s=o.p2.maxOpen(function(e,t){if(e.childCount<2)return e;for(let n=
t.depth;n>=0;n--){let r,i=t.node(n).contentMatchAt(t.index(n)),a=[];if(e.forEach(e=>{if(!a)return;let t,n=i.findWrapping(e.type);if(!n)return a=null;if(t=a.length&&r.length&&Qe(n,r,e,a[a.length-1],0))a[a.length-1]=t;else{a.length&&(a[a.length-1]=et(a[a.length-1],r.length));let t=Xe(e,n);a.push(t),i=i.matchType(t.type),r=n}}),a)return o.HY.from(a)}return e}(s.content,i),!0),s.openStart||s.openEnd){let e=0,t=0;for(let t=s.content.firstChild;e<s.openStart&&!t.type.spec.isolating;e++,t=t.firstChild);
for(let e=s.content.lastChild;t<s.openEnd&&!e.type.spec.isolating;t++,e=e.lastChild);s=nt(s,e,t)}return e.someProp("transformPasted",t=>{s=t(s,e)}),s}const Je=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Xe(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,o.HY.from(e));return e}function Qe(e,t,n,r,i){if(i<e.length&&i<t.length&&e[i]==t[i]){let a=Qe(e,t,n,r.lastChild,i+1);if(a)return r.copy(r.content.replaceChild(r.childCount-
1,a));if(r.contentMatchAt(r.childCount).matchType(i==e.length-1?n.type:e[i+1]))return r.copy(r.content.append(o.HY.from(Xe(n,e,i+1))))}}function et(e,t){if(0==t)return e;let n=e.content.replaceChild(e.childCount-1,et(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(o.HY.empty,!0);return e.copy(n.append(r))}function tt(e,t,n,r,i,a){let s=t<0?e.firstChild:e.lastChild,l=s.content;return e.childCount>1&&(a=0),i<r-1&&(l=tt(l,t,n,r,i+1,a)),i>=n&&(l=t<0?s.contentMatchAt(0).fillBefore(l,a<=i).append(l):
l.append(s.contentMatchAt(s.childCount).fillBefore(o.HY.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,s.copy(l))}function nt(e,t,n){return t<e.openStart&&(e=new o.p2(tt(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new o.p2(tt(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}const rt={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let ot=
null;function it(){return ot||(ot=document.implementation.createHTMLDocument("title"))}const at={},st={},lt={touchstart:!0,touchmove:!0};class ut{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=
[],this.compositionEndedAt=-2E8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function ct(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function ft(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=t=>dt(e,t))})}function dt(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return!!r&&(r(e,
t)||t.defaultPrevented)})}function pt(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function ht(e){return{left:e.clientX,top:e.clientY}}function gt(e,t,n,r,o){if(-1==r)return!1;let i=e.state.doc.resolve(r);for(let r=i.depth+1;r>0;r--)if(e.someProp(t,t=>r>i.depth?t(e,n,i.nodeAfter,i.before(r),o,!0):t(e,n,i.node(r),i.before(r),o,!1)))return!0;return!1}function mt(e,
t,n){e.focused||e.focus();let r=e.state.tr.setSelection(t);"pointer"==n&&r.setMeta("pointer",!0),e.dispatch(r)}function vt(e,t,n,r){return gt(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",n=>n(e,t,r))}function yt(e,t,n,o){return gt(e,"handleTripleClickOn",t,n,o)||e.someProp("handleTripleClick",n=>n(e,t,o))||function(e,t,n){if(0!=n.button)return!1;let o=e.state.doc;if(-1==t)return!!o.inlineContent&&(mt(e,r.Bs.create(o,0,o.content.size),"pointer"),!0);let i=o.resolve(t);for(let t=i.depth+
1;t>0;t--){let n=t>i.depth?i.nodeAfter:i.node(t),a=i.before(t);if(n.inlineContent)mt(e,r.Bs.create(o,a+1,a+1+n.content.size),"pointer");else{if(!r.qv.isSelectable(n))continue;mt(e,r.qv.create(o,a),"pointer")}return!0}}(e,n,o)}function bt(e){return Et(e)}st.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=16==n.keyCode||n.shiftKey,!kt(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!N||!M||13!=n.keyCode))if(229!=n.keyCode&&e.domObserver.forceFlush(),!A||13!=n.keyCode||n.ctrlKey||
n.altKey||n.metaKey)e.someProp("handleKeyDown",t=>t(e,n))||function(e,t){let n=t.keyCode,r=function(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}(t);if(8==n||P&&72==n&&"c"==r)return Ze(e,-1)||Ve(e,-1);if(46==n&&!t.shiftKey||P&&68==n&&"c"==r)return Ze(e,1)||Ve(e,1);if(13==n||27==n)return!0;if(37==n||P&&66==n&&"c"==r){let t=37==n?"ltr"==Ue(e,e.state.selection.from)?-1:1:-1;return ze(e,t,r)||Ve(e,t)}if(39==n||P&&70==n&&"c"==r){let t=39==n?"ltr"==
Ue(e,e.state.selection.from)?1:-1:1;return ze(e,t,r)||Ve(e,t)}return 38==n||P&&80==n&&"c"==r?qe(e,-1,r)||Ve(e,-1):40==n||P&&78==n&&"c"==r?function(e){if(!_||e.state.selection.$head.parentOffset>0)return!1;let {focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&1==t.nodeType&&0==n&&t.firstChild&&"false"==t.firstChild.contentEditable){let n=t.firstChild;Ke(e,n,"true"),setTimeout(()=>Ke(e,n,"false"),20)}return!1}(e)||qe(e,1,r)||Ve(e,1):r==(P?"m":"c")&&(66==n||73==n||89==n||90==n)}(e,n)?n.preventDefault():
ct(e,"key");else{let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==t&&(e.someProp("handleKeyDown",t=>t(e,m(13,"Enter"))),e.input.lastIOSEnter=0)},200)}},st.keyup=(e,t)=>{16==t.keyCode&&(e.input.shiftKey=!1)},st.keypress=(e,t)=>{let n=t;if(kt(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||P&&n.metaKey)return;if(e.someProp("handleKeyPress",t=>t(e,n)))return void n.preventDefault();let o=e.state.selection;if(!(o instanceof r.Bs&&o.$from.sameParent(o.$to))){let t=
String.fromCharCode(n.charCode);/[\r\n]/.test(t)||e.someProp("handleTextInput",n=>n(e,o.$from.pos,o.$to.pos,t))||e.dispatch(e.state.tr.insertText(t).scrollIntoView()),n.preventDefault()}};const wt=P?"metaKey":"ctrlKey";at.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=bt(e),o=Date.now(),i="singleClick";o-e.input.lastClick.time<500&&function(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}(n,e.input.lastClick)&&!n[wt]&&("singleClick"==e.input.lastClick.type?i="doubleClick":
"doubleClick"==e.input.lastClick.type&&(i="tripleClick")),e.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:i};let a=e.posAtCoords(ht(n));a&&("singleClick"==i?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new xt(e,a,n,!!r)):("doubleClick"==i?vt:yt)(e,a.pos,a.inside,n)?n.preventDefault():ct(e,"pointer"))};class xt{constructor(e,t,n,o){let i,a;if(this.view=e,this.pos=t,this.event=n,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=
!!n[wt],this.allowDefault=n.shiftKey,t.inside>-1)i=e.state.doc.nodeAt(t.inside),a=t.inside;else{let n=e.state.doc.resolve(t.pos);i=n.parent,a=n.depth?n.before():0}const s=o?null:n.target,l=s?e.docView.nearestDesc(s,!0):null;this.target=l?l.dom:null;let {selection:u}=e.state;(0==n.button&&i.type.spec.draggable&&!1!==i.type.spec.selectable||u instanceof r.qv&&u.from<=a&&u.to>a)&&(this.mightDrag={node:i,pos:a,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!O||this.target.hasAttribute("contentEditable"))}),
this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),ct(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",
this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Me(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=
this.view.posAtCoords(ht(e))),this.updateAllowDefault(e),this.allowDefault||!t?ct(this.view,"pointer"):function(e,t,n,o,i){return gt(e,"handleClickOn",t,n,o)||e.someProp("handleClick",n=>n(e,t,o))||(i?function(e,t){if(-1==t)return!1;let n,o,i=e.state.selection;i instanceof r.qv&&(n=i.node);let a=e.state.doc.resolve(t);for(let e=a.depth+1;e>0;e--){let t=e>a.depth?a.nodeAfter:a.node(e);if(r.qv.isSelectable(t)){o=n&&i.$from.depth>0&&e>=i.$from.depth&&a.before(i.$from.depth+1)==i.$from.pos?a.before(i.$from.depth):
a.before(e);break}}return null!=o&&(mt(e,r.qv.create(e.state.doc,o),"pointer"),!0)}(e,n):function(e,t){if(-1==t)return!1;let n=e.state.doc.resolve(t),o=n.nodeAfter;return!!(o&&o.isAtom&&r.qv.isSelectable(o))&&(mt(e,new r.qv(n),"pointer"),!0)}(e,n))}(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||_&&this.mightDrag&&!this.mightDrag.node.isAtom||M&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=
2)?(mt(this.view,r.Y1.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):ct(this.view,"pointer")}move(e){this.updateAllowDefault(e),ct(this.view,"pointer"),0==e.buttons&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}function kt(e,t){return!!e.composing||!!(_&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500)&&(e.input.compositionEndedAt=-2E8,!0)}at.touchstart=e=>{e.input.lastTouch=
Date.now(),bt(e),ct(e,"pointer")},at.touchmove=e=>{e.input.lastTouch=Date.now(),ct(e,"pointer")},at.contextmenu=e=>bt(e);const St=N?5E3:-1;function Ct(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>Et(e),t))}function Ot(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=function(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}
function Et(e,t=!1){if(!(N&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),Ot(e),t||e.docView&&e.docView.dirty){let t=Oe(e);return t&&!t.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(t)):e.updateState(e.state),!0}return!1}}st.compositionstart=st.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let {state:t}=e,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(e=>!1===e.type.spec.inclusive)))e.markCursor=
e.state.storedMarks||n.marks(),Et(e,!0),e.markCursor=null;else if(Et(e),O&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.domSelectionRange();for(let n=t.focusNode,r=t.focusOffset;n&&1==n.nodeType&&0!=r;){let t=r<0?n.lastChild:n.childNodes[r-1];if(!t)break;if(3==t.nodeType){e.domSelection().collapse(t,t.nodeValue.length);break}n=t,r=-1}}e.input.composing=!0}Ct(e,St)},st.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,
e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,Ct(e,20))};const Mt=S&&C<15||A&&L<604;function Tt(e,t,n,r,i){let a=Ge(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",t=>t(e,i,a||o.p2.empty)))return!0;if(!a)return!1;let s=function(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}(a),l=s?e.state.tr.replaceSelectionWith(s,
r):e.state.tr.replaceSelection(a);return e.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function _t(e){let t=e.getData("text/html")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}at.copy=st.cut=(e,t)=>{let n=t,r=e.state.selection,o="cut"==n.type;if(r.empty)return;let i=Mt?null:n.clipboardData,a=r.content(),{dom:s,text:l}=Ye(e,a);i?(n.preventDefault(),i.clearData(),i.setData("text/html",s.innerHTML),i.setData("text/plain",
l)):function(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}(e,s),o&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},st.paste=(e,t)=>{let n=t;if(e.composing&&
!N)return;let r=Mt?null:n.clipboardData,o=e.input.shiftKey&&45!=e.input.lastKeyCode;r&&Tt(e,_t(r),r.getData("text/html"),o,n)?n.preventDefault():function(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=e.input.shiftKey&&45!=e.input.lastKeyCode;setTimeout(()=>{e.focus(),
r.parentNode&&r.parentNode.removeChild(r),n?Tt(e,r.value,null,o,t):Tt(e,r.textContent,r.innerHTML,o,t)},50)}(e,n)};class At{constructor(e,t){this.slice=e,this.move=t}}const Pt=P?"altKey":"ctrlKey";at.dragstart=(e,t)=>{let n=t,o=e.input.mouseDown;if(o&&o.done(),!n.dataTransfer)return;let i=e.state.selection,a=i.empty?null:e.posAtCoords(ht(n));if(a&&a.pos>=i.from&&a.pos<=(i instanceof r.qv?i.to-1:i.to));else if(o&&o.mightDrag)e.dispatch(e.state.tr.setSelection(r.qv.create(e.state.doc,o.mightDrag.pos)));
else if(n.target&&1==n.target.nodeType){let t=e.docView.nearestDesc(n.target,!0);t&&t.node.type.spec.draggable&&t!=e.docView&&e.dispatch(e.state.tr.setSelection(r.qv.create(e.state.doc,t.posBefore)))}let s=e.state.selection.content(),{dom:l,text:u}=Ye(e,s);n.dataTransfer.clearData(),n.dataTransfer.setData(Mt?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",Mt||n.dataTransfer.setData("text/plain",u),e.dragging=new At(s,!n[Pt])},at.dragend=e=>{let t=e.dragging;window.setTimeout(()=>
{e.dragging==t&&(e.dragging=null)},50)},st.dragover=st.dragenter=(e,t)=>t.preventDefault(),st.drop=(e,t)=>{let n=t,a=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let s=e.posAtCoords(ht(n));if(!s)return;let l=e.state.doc.resolve(s.pos),u=a&&a.slice;u?e.someProp("transformPasted",t=>{u=t(u,e)}):u=Ge(e,_t(n.dataTransfer),Mt?null:n.dataTransfer.getData("text/html"),!1,l);let c=!(!a||n[Pt]);if(e.someProp("handleDrop",t=>t(e,n,u||o.p2.empty,c)))return void n.preventDefault();if(!u)return;n.preventDefault();
let f=u?(0,i.nj)(e.state.doc,l.pos,u):l.pos;null==f&&(f=l.pos);let d=e.state.tr;c&&d.deleteSelection();let p=d.mapping.map(f),h=0==u.openStart&&0==u.openEnd&&1==u.content.childCount,g=d.doc;if(h?d.replaceRangeWith(p,p,u.content.firstChild):d.replaceRange(p,p,u),d.doc.eq(g))return;let m=d.doc.resolve(p);if(h&&r.qv.isSelectable(u.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(u.content.firstChild))d.setSelection(new r.qv(m));else{let t=d.mapping.map(f);d.mapping.maps[d.mapping.maps.length-
1].forEach((e,n,r,o)=>t=o),d.setSelection(Re(e,m,d.doc.resolve(t)))}e.focus(),e.dispatch(d.setMeta("uiEvent","drop"))},at.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&Me(e)},20))},at.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),
n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},at.beforeinput=(e,t)=>{if(M&&N&&"deleteContentBackward"==t.inputType){e.domObserver.flushSoon();let {domChangeCount:t}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=t)return;if(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",t=>t(e,m(8,"Backspace"))))return;let {$cursor:n}=e.state.selection;n&&n.pos>0&&e.dispatch(e.state.tr.delete(n.pos-1,n.pos).scrollIntoView())},50)}};for(let e in st)at[e]=
st[e];function Dt(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class Nt{constructor(e,t){this.toDOM=e,this.spec=t||Ft,this.side=this.spec.side||0}map(e,t,n,r){let {pos:o,deleted:i}=e.mapResult(t.from+r,this.side<0?-1:1);return i?null:new jt(o-n,o-n,this)}valid(){return!0}eq(e){return this==e||e instanceof Nt&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Dt(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}
class Rt{constructor(e,t){this.attrs=e,this.spec=t||Ft}map(e,t,n,r){let o=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,i=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return o>=i?null:new jt(o,i,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof Rt&&Dt(this.attrs,e.attrs)&&Dt(this.spec,e.spec)}static is(e){return e.type instanceof Rt}destroy(){}}class Lt{constructor(e,t){this.attrs=e,this.spec=t||Ft}map(e,t,n,r){let o=e.mapResult(t.from+r,1);if(o.deleted)return null;let i=e.mapResult(t.to+
r,-1);return i.deleted||i.pos<=o.pos?null:new jt(o.pos-n,i.pos-n,this)}valid(e,t){let n,{index:r,offset:o}=e.content.findIndex(t.from);return o==t.from&&!(n=e.child(r)).isText&&o+n.nodeSize==t.to}eq(e){return this==e||e instanceof Lt&&Dt(this.attrs,e.attrs)&&Dt(this.spec,e.spec)}destroy(){}}class jt{constructor(e,t,n){this.from=e,this.to=t,this.type=n}copy(e,t){return new jt(e,t,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,n){return this.type.map(e,
this,t,n)}static widget(e,t,n){return new jt(e,e,new Nt(t,n))}static inline(e,t,n,r){return new jt(e,t,new Rt(n,r))}static node(e,t,n,r){return new jt(e,t,new Lt(n,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof Rt}get widget(){return this.type instanceof Nt}}const It=[],Ft={};class zt{constructor(e,t){this.local=e.length?e:It,this.children=t.length?t:It}static create(e,t){return t.length?Ut(t,e,0,Ft):Ht}find(e,t,n){let r=[];return this.findInner(null==e?0:e,null==t?
1E9:t,r,0,n),r}findInner(e,t,n,r,o){for(let i=0;i<this.local.length;i++){let a=this.local[i];a.from<=t&&a.to>=e&&(!o||o(a.spec))&&n.push(a.copy(a.from+r,a.to+r))}for(let i=0;i<this.children.length;i+=3)if(this.children[i]<t&&this.children[i+1]>e){let a=this.children[i]+1;this.children[i+2].findInner(e-a,t-a,n,r+a,o)}}map(e,t,n){return this==Ht||0==e.maps.length?this:this.mapInner(e,t,0,0,n||Ft)}mapInner(e,t,n,r,o){let i;for(let a=0;a<this.local.length;a++){let s=this.local[a].map(e,n,r);s&&s.type.valid(t,
s)?(i||(i=[])).push(s):o.onRemove&&o.onRemove(this.local[a].spec)}return this.children.length?function(e,t,n,r,o,i,a){let s=e.slice();for(let e=0,t=i;e<n.maps.length;e++){let r=0;n.maps[e].forEach((e,n,i,a)=>{let l=a-i-(n-e);for(let a=0;a<s.length;a+=3){let u=s[a+1];if(u<0||e>u+t-r)continue;let c=s[a]+t-r;n>=c?s[a+1]=e<=c?-2:-1:i>=o&&l&&(s[a]+=l,s[a+1]+=l)}r+=l}),t=n.maps[e].map(t,-1)}let l=!1;for(let t=0;t<s.length;t+=3)if(s[t+1]<0){if(-2==s[t+1]){l=!0,s[t+1]=-1;continue}let u=n.map(e[t]+i),c=u-
o;if(c<0||c>=r.content.size){l=!0;continue}let f=n.map(e[t+1]+i,-1)-o,{index:d,offset:p}=r.content.findIndex(c),h=r.maybeChild(d);if(h&&p==c&&p+h.nodeSize==f){let r=s[t+2].mapInner(n,h,u+1,e[t]+i+1,a);r!=Ht?(s[t]=c,s[t+1]=f,s[t+2]=r):(s[t+1]=-2,l=!0)}else l=!0}if(l){let l=function(e,t,n,r,o,i,a){function s(e,t){for(let i=0;i<e.local.length;i++){let s=e.local[i].map(r,o,t);s?n.push(s):a.onRemove&&a.onRemove(e.local[i].spec)}for(let n=0;n<e.children.length;n+=3)s(e.children[n+2],e.children[n]+t+1)}
for(let n=0;n<e.length;n+=3)-1==e[n+1]&&s(e[n+2],t[n]+i+1);return n}(s,e,t,n,o,i,a),u=Ut(l,r,0,a);t=u.local;for(let e=0;e<s.length;e+=3)s[e+1]<0&&(s.splice(e,3),e-=3);for(let e=0,t=0;e<u.children.length;e+=3){let n=u.children[e];for(;t<s.length&&s[t]<n;)t+=3;s.splice(t,0,u.children[e],u.children[e+1],u.children[e+2])}}return new zt(t.sort(qt),s)}(this.children,i||[],e,t,n,r,o):i?new zt(i.sort(qt),It):Ht}add(e,t){return t.length?this==Ht?zt.create(e,t):this.addInner(e,t,0):this}addInner(e,t,n){let r,
o=0;e.forEach((e,i)=>{let a,s=i+n;if(a=Wt(t,e,s)){for(r||(r=this.children.slice());o<r.length&&r[o]<i;)o+=3;r[o]==i?r[o+2]=r[o+2].addInner(e,a,s+1):r.splice(o,0,i,i+e.nodeSize,Ut(a,e,s+1,Ft)),o+=3}});let i=Vt(o?$t(t):t,-n);for(let t=0;t<i.length;t++)i[t].type.valid(e,i[t])||i.splice(t--,1);return new zt(i.length?this.local.concat(i).sort(qt):this.local,r||this.children)}remove(e){return 0==e.length||this==Ht?this:this.removeInner(e,0)}removeInner(e,t){let n=this.children,r=this.local;for(let r=0;r<
n.length;r+=3){let o,i=n[r]+t,a=n[r+1]+t;for(let t,n=0;n<e.length;n++)(t=e[n])&&t.from>i&&t.to<a&&(e[n]=null,(o||(o=[])).push(t));if(!o)continue;n==this.children&&(n=this.children.slice());let s=n[r+2].removeInner(o,i+1);s!=Ht?n[r+2]=s:(n.splice(r,3),r-=3)}if(r.length)for(let n,o=0;o<e.length;o++)if(n=e[o])for(let e=0;e<r.length;e++)r[e].eq(n,t)&&(r==this.local&&(r=this.local.slice()),r.splice(e--,1));return n==this.children&&r==this.local?this:r.length||n.length?new zt(r,n):Ht}forChild(e,t){if(this==
Ht)return this;if(t.isLeaf)return zt.empty;let n,r;for(let t=0;t<this.children.length;t+=3)if(this.children[t]>=e){this.children[t]==e&&(n=this.children[t+2]);break}let o=e+1,i=o+t.content.size;for(let e=0;e<this.local.length;e++){let t=this.local[e];if(t.from<i&&t.to>o&&t.type instanceof Rt){let e=Math.max(o,t.from)-o,n=Math.min(i,t.to)-o;e<n&&(r||(r=[])).push(t.copy(e,n))}}if(r){let e=new zt(r.sort(qt),It);return n?new Bt([e,n]):e}return n||Ht}eq(e){if(this==e)return!0;if(!(e instanceof zt)||this.local.length!=
e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return Zt(this.localsInner(e))}localsInner(e){if(this==Ht)return It;if(e.inlineContent||!this.local.some(Rt.is))return this.local;let t=[];for(let e=0;e<this.local.length;e++)this.local[e].type instanceof
Rt||t.push(this.local[e]);return t}}zt.empty=new zt([],[]),zt.removeOverlap=Zt;const Ht=zt.empty;class Bt{constructor(e){this.members=e}map(e,t){const n=this.members.map(n=>n.map(e,t,Ft));return Bt.from(n)}forChild(e,t){if(t.isLeaf)return zt.empty;let n=[];for(let r=0;r<this.members.length;r++){let o=this.members[r].forChild(e,t);o!=Ht&&(o instanceof Bt?n=n.concat(o.members):n.push(o))}return Bt.from(n)}eq(e){if(!(e instanceof Bt)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;
return!0}locals(e){let t,n=!0;for(let r=0;r<this.members.length;r++){let o=this.members[r].localsInner(e);if(o.length)if(t){n&&(t=t.slice(),n=!1);for(let e=0;e<o.length;e++)t.push(o[e])}else t=o}return t?Zt(n?t:t.sort(qt)):It}static from(e){switch(e.length){case 0:return Ht;case 1:return e[0];default:return new Bt(e.every(e=>e instanceof zt)?e:e.reduce((e,t)=>e.concat(t instanceof zt?t:t.members),[]))}}}function Vt(e,t){if(!t||!e.length)return e;let n=[];for(let r=0;r<e.length;r++){let o=e[r];n.push(new jt(o.from+
t,o.to+t,o.type))}return n}function Wt(e,t,n){if(t.isLeaf)return null;let r=n+t.nodeSize,o=null;for(let t,i=0;i<e.length;i++)(t=e[i])&&t.from>n&&t.to<r&&((o||(o=[])).push(t),e[i]=null);return o}function $t(e){let t=[];for(let n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function Ut(e,t,n,r){let o=[],i=!1;t.forEach((t,a)=>{let s=Wt(e,t,a+n);if(s){i=!0;let e=Ut(s,t,n+a+1,r);e!=Ht&&o.push(a,a+t.nodeSize,e)}});let a=Vt(i?$t(e):e,-n).sort(qt);for(let e=0;e<a.length;e++)a[e].type.valid(t,a[e])||
(r.onRemove&&r.onRemove(a[e].spec),a.splice(e--,1));return a.length||o.length?new zt(a,o):Ht}function qt(e,t){return e.from-t.from||e.to-t.to}function Zt(e){let t=e;for(let n=0;n<t.length-1;n++){let r=t[n];if(r.from!=r.to)for(let o=n+1;o<t.length;o++){let i=t[o];if(i.from!=r.from){i.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,i.from),Kt(t,o,r.copy(i.from,r.to)));break}i.to!=r.to&&(t==e&&(t=e.slice()),t[o]=i.copy(i.from,r.to),Kt(t,o+1,i.copy(r.to,i.to)))}}return t}function Kt(e,t,n){for(;t<
e.length&&qt(n,e[t])>0;)t++;e.splice(t,0,n)}function Yt(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=Ht&&t.push(r)}),e.cursorWrapper&&t.push(zt.create(e.state.doc,[e.cursorWrapper.deco])),Bt.from(t)}const Gt={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Jt=S&&C<=11;class Xt{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=
e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class Qt{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new Xt,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(e=>
{for(let t=0;t<e.length;t++)this.queue.push(e[t]);S&&C<=11&&e.some(e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():this.flush()}),Jt&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},
20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,Gt)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&
this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Le(this.view)){if(this.suppressingSelectionUpdates)return Me(this.view);
if(S&&C<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&c(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t,n=new Set;for(let t=e.focusNode;t;t=s(t))n.add(t);for(let r=e.anchorNode;r;r=s(r))if(n.has(r)){t=r;break}let r=t&&this.view.docView.nearestDesc(t);return r&&r.ignoreMutation({type:"selection",
target:3==t.nodeType?t.parentNode:t})?(this.setCurSelection(),!0):void 0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let {view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let n=e.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&Le(e)&&!this.ignoreSelectionChange(n),i=-1,a=-1,s=!1,l=[];if(e.editable)for(let e=0;e<t.length;e++){let n=
this.registerMutation(t[e],l);n&&(i=i<0?n.from:Math.min(n.from,i),a=a<0?n.to:Math.max(n.to,a),n.typeOver&&(s=!0))}if(O&&l.length>1){let e=l.filter(e=>"BR"==e.nodeName);if(2==e.length){let t=e[0],n=e[1];t.parentNode&&t.parentNode.parentNode==n.parentNode?n.remove():t.remove()}}let u=null;i<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&g(n)&&(u=Oe(e))&&u.eq(r.Y1.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Me(e),this.currentSelection.set(n),
e.scrollToSelection()):(i>-1||o)&&(i>-1&&(e.docView.markDirty(i,a),function(e){if(!en.has(e)&&(en.set(e,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace))){if(e.requiresGeckoHackNode=O,tn)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),tn=!0}}(e)),this.handleDOMChange(i,a,s,l),e.docView&&e.docView.dirty?e.updateState(e.state):
this.currentSelection.eq(n)||Me(e),this.currentSelection.set(n))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(n==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(e))return null;if("childList"==e.type){for(let n=0;n<e.addedNodes.length;n++)t.push(e.addedNodes[n]);if(n.contentDOM&&n.contentDOM!=n.dom&&
!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};let r=e.previousSibling,o=e.nextSibling;if(S&&C<=11&&e.addedNodes.length)for(let t=0;t<e.addedNodes.length;t++){let {previousSibling:n,nextSibling:i}=e.addedNodes[t];(!n||Array.prototype.indexOf.call(e.addedNodes,n)<0)&&(r=n),(!i||Array.prototype.indexOf.call(e.addedNodes,i)<0)&&(o=i)}let i=r&&r.parentNode==e.target?a(r)+1:0,s=n.localPosFromDOM(e.target,i,-1),l=o&&o.parentNode==e.target?a(o):e.target.childNodes.length;return{from:s,
to:n.localPosFromDOM(e.target,l,1)}}return"attributes"==e.type?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}}}let en=new WeakMap,tn=!1;function nn(e){let t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(_&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let e=document.createElement("div");return e.appendChild(document.createElement("li")),{skip:e}}if(e.parentNode.lastChild==e||_&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==
e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const rn=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function on(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:Re(e,t.resolve(n.anchor),t.resolve(n.head))}function an(e,t,n){let r=e.depth,o=t?e.end():e.pos;for(;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,o++,t=!1;if(n){let t=
e.node(r).maybeChild(e.indexAfter(r));for(;t&&!t.isLeaf;)t=t.firstChild,o++}return o}class sn{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new ut,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(dn),this.dispatch=this.dispatch.bind(this),
this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):"function"==typeof e?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=cn(this),un(this),this.nodeViews=fn(this),this.docView=ue(this.state.doc,ln(this),Yt(this),this.dom,this),this.domObserver=new Qt(this,(e,t,n,i)=>function(e,t,n,i,a){let s=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let t=e.input.lastSelectionTime>Date.now()-50?
e.input.lastSelectionOrigin:null,n=Oe(e,t);if(n&&!e.state.selection.eq(n)){if(M&&N&&13===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",t=>t(e,m(13,"Enter"))))return;let r=e.state.tr.setSelection(n);"pointer"==t?r.setMeta("pointer",!0):"key"==t&&r.scrollIntoView(),s&&r.setMeta("composition",s),e.dispatch(r)}return}let l=e.state.doc.resolve(t),u=l.sharedDepth(n);t=l.before(u+1),n=e.state.doc.resolve(n).after(u+1);let c,f,d=e.state.selection,p=function(e,t,n){let r,
{node:i,fromOffset:a,toOffset:s,from:l,to:u}=e.docView.parseRange(t,n),c=e.domSelectionRange(),f=c.anchorNode;if(f&&e.dom.contains(1==f.nodeType?f:f.parentNode)&&(r=[{node:f,offset:c.anchorOffset}],g(c)||r.push({node:c.focusNode,offset:c.focusOffset})),M&&8===e.input.lastKeyCode)for(let e=s;e>a;e--){let t=i.childNodes[e-1],n=t.pmViewDesc;if("BR"==t.nodeName&&!n){s=e;break}if(!n||n.size)break}let d=e.state.doc,p=e.someProp("domParser")||o.aw.fromSchema(e.state.schema),h=d.resolve(l),m=null,v=p.parse(i,
{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:a,to:s,preserveWhitespace:"pre"!=h.parent.type.whitespace||"full",findPositions:r,ruleFromNode:nn,context:h});if(r&&null!=r[0].pos){let e=r[0].pos,t=r[1]&&r[1].pos;null==t&&(t=e),m={anchor:e+l,head:t+l}}return{doc:v,sel:m,from:l,to:u}}(e,t,n),h=e.state.doc,v=h.slice(p.from,p.to);8===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime?(c=e.state.selection.to,f="end"):(c=e.state.selection.from,f="start"),e.input.lastKeyCode=
null;let y=function(e,t,n,r,o){let i=e.findDiffStart(t,n);if(null==i)return null;let {a:a,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);return"end"==o&&(r-=a+Math.max(0,i-Math.min(a,s))-i),a<i&&e.size<t.size?(i-=r<=i&&r>=a?i-r:0,s=i+(s-a),a=i):s<i&&(i-=r<=i&&r>=s?i-r:0,a=i+(a-s),s=i),{start:i,endA:a,endB:s}}(v.content,p.doc.content,p.from,c,f);if((A&&e.input.lastIOSEnter>Date.now()-225||N)&&a.some(e=>1==e.nodeType&&!rn.test(e.nodeName))&&(!y||y.endA>=y.endB)&&e.someProp("handleKeyDown",t=>t(e,m(13,"Enter"))))return void(e.input.lastIOSEnter=
0);if(!y){if(!(i&&d instanceof r.Bs&&!d.empty&&d.$head.sameParent(d.$anchor))||e.composing||p.sel&&p.sel.anchor!=p.sel.head){if(p.sel){let t=on(e,e.state.doc,p.sel);if(t&&!t.eq(e.state.selection)){let n=e.state.tr.setSelection(t);s&&n.setMeta("composition",s),e.dispatch(n)}}return}y={start:d.from,endA:d.to,endB:d.to}}if(M&&e.cursorWrapper&&p.sel&&p.sel.anchor==e.cursorWrapper.deco.from&&p.sel.head==p.sel.anchor){let e=y.endB-y.start;p.sel={anchor:p.sel.anchor+e,head:p.sel.anchor+e}}e.input.domChangeCount++,
e.state.selection.from<e.state.selection.to&&y.start==y.endB&&e.state.selection instanceof r.Bs&&(y.start>e.state.selection.from&&y.start<=e.state.selection.from+2&&e.state.selection.from>=p.from?y.start=e.state.selection.from:y.endA<e.state.selection.to&&y.endA>=e.state.selection.to-2&&e.state.selection.to<=p.to&&(y.endB+=e.state.selection.to-y.endA,y.endA=e.state.selection.to)),S&&C<=11&&y.endB==y.start+1&&y.endA==y.start&&y.start>p.from&&" \u00a0"==p.doc.textBetween(y.start-p.from-1,y.start-p.from+
1)&&(y.start--,y.endA--,y.endB--);let b,w=p.doc.resolveNoCache(y.start-p.from),x=p.doc.resolveNoCache(y.endB-p.from),k=h.resolve(y.start),O=w.sameParent(x)&&w.parent.inlineContent&&k.end()>=y.endA;if((A&&e.input.lastIOSEnter>Date.now()-225&&(!O||a.some(e=>"DIV"==e.nodeName||"P"==e.nodeName))||!O&&w.pos<p.doc.content.size&&!w.sameParent(x)&&(b=r.Y1.findFrom(p.doc.resolve(w.pos+1),1,!0))&&b.head==x.pos)&&e.someProp("handleKeyDown",t=>t(e,m(13,"Enter"))))return void(e.input.lastIOSEnter=0);if(e.state.selection.anchor>
y.start&&function(e,t,n,r,o){if(!r.parent.isTextblock||n-t<=o.pos-r.pos||an(r,!0,!1)<o.pos)return!1;let i=e.resolve(t);if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let a=e.resolve(an(i,!0,!0));return!(!a.parent.isTextblock||a.pos>n||an(a,!0,!1)<n)&&r.parent.content.cut(r.parentOffset).eq(a.parent.content)}(h,y.start,y.endA,w,x)&&e.someProp("handleKeyDown",t=>t(e,m(8,"Backspace"))))return void(N&&M&&e.domObserver.suppressSelectionUpdates());M&&N&&y.endB==y.start&&(e.input.lastAndroidDelete=
Date.now()),N&&!O&&w.start()!=x.start()&&0==x.parentOffset&&w.depth==x.depth&&p.sel&&p.sel.anchor==p.sel.head&&p.sel.head==y.endA&&(y.endB-=2,x=p.doc.resolveNoCache(y.endB-p.from),setTimeout(()=>{e.someProp("handleKeyDown",function(t){return t(e,m(13,"Enter"))})},20));let E,T,_,P=y.start,D=y.endA;if(O)if(w.pos==x.pos)S&&C<=11&&0==w.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>Me(e),20)),E=e.state.tr.delete(P,D),T=h.resolve(y.start).marksAcross(h.resolve(y.endA));else if(y.endA==
y.endB&&(_=function(e,t){let n,r,i,a=e.firstChild.marks,s=t.firstChild.marks,l=a,u=s;for(let e=0;e<s.length;e++)l=s[e].removeFromSet(l);for(let e=0;e<a.length;e++)u=a[e].removeFromSet(u);if(1==l.length&&0==u.length)r=l[0],n="add",i=e=>e.mark(r.addToSet(e.marks));else{if(0!=l.length||1!=u.length)return null;r=u[0],n="remove",i=e=>e.mark(r.removeFromSet(e.marks))}let c=[];for(let e=0;e<t.childCount;e++)c.push(i(t.child(e)));if(o.HY.from(c).eq(e))return{mark:r,type:n}}(w.parent.content.cut(w.parentOffset,
x.parentOffset),k.parent.content.cut(k.parentOffset,y.endA-k.start()))))E=e.state.tr,"add"==_.type?E.addMark(P,D,_.mark):E.removeMark(P,D,_.mark);else if(w.parent.child(w.index()).isText&&w.index()==x.index()-(x.textOffset?0:1)){let t=w.parent.textBetween(w.parentOffset,x.parentOffset);if(e.someProp("handleTextInput",n=>n(e,P,D,t)))return;E=e.state.tr.insertText(t,P,D)}if(E||(E=e.state.tr.replace(P,D,p.doc.slice(y.start-p.from,y.endB-p.from))),p.sel){let t=on(e,E.doc,p.sel);t&&!(M&&N&&e.composing&&
t.empty&&(y.start!=y.endB||e.input.lastAndroidDelete<Date.now()-100)&&(t.head==P||t.head==E.mapping.map(D)-1)||S&&t.empty&&t.head==P)&&E.setSelection(t)}T&&E.ensureMarks(T),s&&E.setMeta("composition",s),e.dispatch(E.scrollIntoView())}(this,e,t,n,i)),this.domObserver.start(),function(e){for(let t in at){let n=at[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=t=>{!pt(e,t)||dt(e,t)||!e.editable&&t.type in st||n(e,t)},lt[t]?{passive:!0}:void 0)}_&&e.dom.addEventListener("input",()=>null),ft(e)}(this),
this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&ft(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(dn),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let e in this._props)t[e]=this._props[e];t.state=
this.state;for(let n in e)t[n]=e[n];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){let n=this.state,r=!1,o=!1;e.storedMarks&&this.composing&&(Ot(this),o=!0),this.state=e;let i=n.plugins!=e.plugins||this._props.plugins!=t.plugins;if(i||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let e=fn(this);(function(e,t){let n=0,r=0;for(let r in e){if(e[r]!=t[r])return!0;n++}for(let e in t)r++;return n!=r})(e,this.nodeViews)&&(this.nodeViews=e,r=
!0)}(i||t.handleDOMEvents!=this._props.handleDOMEvents)&&ft(this),this.editable=cn(this),un(this);let a=Yt(this),s=ln(this),l=n.plugins==e.plugins||n.doc.eq(e.doc)?e.scrollToSelection>n.scrollToSelection?"to selection":"preserve":"reset",u=r||!this.docView.matchesNode(e.doc,s,a);!u&&e.selection.eq(n.selection)||(o=!0);let f="preserve"==l&&o&&null==this.dom.style.overflowAnchor&&function(e){let t,n,r=e.dom.getBoundingClientRect(),o=Math.max(0,r.top);for(let i=(r.left+r.right)/2,a=o+1;a<Math.min(innerHeight,
r.bottom);a+=5){let r=e.root.elementFromPoint(i,a);if(!r||r==e.dom||!e.dom.contains(r))continue;let s=r.getBoundingClientRect();if(s.top>=o-20){t=r,n=s.top;break}}return{refDOM:t,refTop:n,stack:H(e.dom)}}(this);if(o){this.domObserver.stop();let t=u&&(S||M)&&!this.composing&&!n.selection.empty&&!e.selection.empty&&function(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}(n.selection,e.selection);if(u){let n=M?this.trackWrites=
this.domSelectionRange().focusNode:null;!r&&this.docView.update(e.doc,s,a,this)||(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=ue(e.doc,s,a,this.dom,this)),n&&!this.trackWrites&&(t=!0)}t||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&function(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return c(t.node,t.offset,n.anchorNode,n.anchorOffset)}(this))?Me(this,t):(De(this,e.selection),this.domObserver.setCurSelection()),
this.domObserver.start()}this.updatePluginViews(n),"reset"==l?this.dom.scrollTop=0:"to selection"==l?this.scrollToSelection():f&&function({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;B(n,0==r?0:r-t)}(f)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(this.someProp("handleScrollToSelection",e=>e(this)));else if(this.state.selection instanceof r.qv){let t=this.docView.domAfterPos(this.state.selection.from);1==t.nodeType&&z(this,t.getBoundingClientRect(),e)}else z(this,
this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(e&&e.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let t=0;t<this.pluginViews.length;t++){let n=this.pluginViews[t];n.update&&n.update(this,e)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let e=0;e<this.directPlugins.length;e++){let t=this.directPlugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}for(let e=
0;e<this.state.plugins.length;e++){let t=this.state.plugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}}}someProp(e,t){let n,r=this._props&&this._props[e];if(null!=r&&(n=t?t(r):r))return n;for(let r=0;r<this.directPlugins.length;r++){let o=this.directPlugins[r].props[e];if(null!=o&&(n=t?t(o):o))return n}let o=this.state.plugins;if(o)for(let r=0;r<o.length;r++){let i=o[r].props[e];if(null!=i&&(n=t?t(i):i))return n}}hasFocus(){if(S){let e=this.root.activeElement;if(e==this.dom)return!0;
if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if("false"==e.contentEditable)return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&function(e){if(e.setActive)return e.setActive();if(V)return e.focus(V);let t=H(e);e.focus(null==V?{get preventScroll(){return V={preventScroll:!0},!0}}:void 0),V||(V=!1,B(t,0))}(this.dom),Me(this),this.domObserver.start()}get root(){let e=this._root;if(null==e)for(let e=
this.dom.parentNode;e;e=e.parentNode)if(9==e.nodeType||11==e.nodeType&&e.host)return e.getSelection||(Object.getPrototypeOf(e).getSelection=()=>e.ownerDocument.getSelection()),this._root=e;return e||document}updateRoot(){this._root=null}posAtCoords(e){return q(this,e)}coordsAtPos(e,t=1){return G(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,n=-1){let r=this.docView.posFromDOM(e,t,n);if(null==r)throw new RangeError("DOM position not inside the editor");
return r}endOfTextblock(e,t){return function(e,t,n){return te==t&&ne==n?re:(te=t,ne=n,re="up"==n||"down"==n?function(e,t,n){let r=t.selection,o="up"==n?r.$from:r.$to;return Q(e,t,()=>{let {node:t}=e.docView.domFromPos(o.pos,"up"==n?-1:1);for(;;){let n=e.docView.nearestDesc(t,!0);if(!n)break;if(n.node.isBlock){t=n.contentDOM||n.dom;break}t=n.dom.parentNode}let r=G(e,o.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(1==e.nodeType)t=e.getClientRects();else{if(3!=e.nodeType)continue;t=u(e,0,
e.nodeValue.length).getClientRects()}for(let e=0;e<t.length;e++){let o=t[e];if(o.bottom>o.top+1&&("up"==n?r.top-o.top>2*(o.bottom-r.top):o.bottom-r.bottom>2*(r.bottom-o.top)))return!1}}return!0})}(e,t,n):function(e,t,n){let {$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let o=r.parentOffset,i=!o,a=o==r.parent.content.size,s=e.domSelection();return ee.test(r.parent.textContent)&&s.modify?Q(e,t,()=>{let {focusNode:t,focusOffset:o,anchorNode:i,anchorOffset:a}=e.domSelectionRange(),l=s.caretBidiLevel;
s.modify("move",n,"character");let u=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:c,focusOffset:f}=e.domSelectionRange(),d=c&&!u.contains(1==c.nodeType?c:c.parentNode)||t==c&&o==f;try{s.collapse(i,a),t&&(t!=i||o!=a)&&s.extend&&s.extend(t,o)}catch(e){}return null!=l&&(s.caretBidiLevel=l),d}):"left"==n||"backward"==n?i:a}(e,t,n))}(this,t||this.state,e)}pasteHTML(e,t){return Tt(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return Tt(this,e,null,!0,t||new ClipboardEvent("paste"))}destroy(){this.docView&&
(function(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Yt(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return null==this.docView}dispatchEvent(e){return function(e,
t){dt(e,t)||!at[t.type]||!e.editable&&t.type in st||at[t.type](e,t)}(this,e)}dispatch(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){return _&&11===this.root.nodeType&&function(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom?function(e){let t;function n(e){e.preventDefault(),e.stopImmediatePropagation(),t=e.getTargetRanges()[0]}e.dom.addEventListener("beforeinput",
n,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",n,!0);let r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,s=e.domAtPos(e.state.selection.anchor);return c(s.node,s.offset,i,a)&&([r,o,i,a]=[i,a,r,o]),{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:a}}(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function ln(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",
n=>{if("function"==typeof n&&(n=n(e.state)),n)for(let e in n)"class"==e?t.class+=" "+n[e]:"style"==e?t.style=(t.style?t.style+";":"")+n[e]:t[e]||"contenteditable"==e||"nodeName"==e||(t[e]=String(n[e]))}),t.translate||(t.translate="no"),[jt.node(0,e.state.doc.content.size,t)]}function un(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:jt.widget(e.state.selection.head,
t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function cn(e){return!e.someProp("editable",t=>!1===t(e.state))}function fn(e){let t=Object.create(null);function n(e){for(let n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function dn(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component");}}}]);
