react-survey-builder 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +7 -0
- package/README.md +236 -0
- package/dist/967.index.js +1 -0
- package/dist/app.css +1 -0
- package/dist/app.css.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.LICENSE.txt +46 -0
- package/lib/ItemTypes.js +10 -0
- package/lib/UUID.js +65 -0
- package/lib/dynamic-option-list.js +188 -0
- package/lib/fieldset/FieldSet.js +118 -0
- package/lib/fieldset/index.js +13 -0
- package/lib/form.js +604 -0
- package/lib/functions/index.js +45 -0
- package/lib/index.js +139 -0
- package/lib/language-provider/IntlMessages.js +15 -0
- package/lib/language-provider/entries/en-us.js +16 -0
- package/lib/language-provider/entries/it-it.js +16 -0
- package/lib/language-provider/entries/vi-vn.js +16 -0
- package/lib/language-provider/index.js +32 -0
- package/lib/language-provider/locales/en-us.json +97 -0
- package/lib/language-provider/locales/it-it.json +92 -0
- package/lib/language-provider/locales/vi-vn.json +82 -0
- package/lib/multi-column/MultiColumnRow.js +134 -0
- package/lib/multi-column/dustbin.js +152 -0
- package/lib/multi-column/grip.js +51 -0
- package/lib/multi-column/index.js +24 -0
- package/lib/preview.js +388 -0
- package/lib/sortable-element.js +177 -0
- package/lib/sortable-form-elements.js +67 -0
- package/lib/stores/registry.js +42 -0
- package/lib/stores/requests.js +31 -0
- package/lib/stores/store.js +138 -0
- package/lib/survey-dynamic-edit.js +54 -0
- package/lib/survey-elements/component-drag-handle.js +90 -0
- package/lib/survey-elements/component-drag-layer.js +68 -0
- package/lib/survey-elements/component-drag-preview.js +57 -0
- package/lib/survey-elements/component-header.js +29 -0
- package/lib/survey-elements/component-label.js +26 -0
- package/lib/survey-elements/custom-element.js +70 -0
- package/lib/survey-elements/date-picker.js +278 -0
- package/lib/survey-elements/header-bar.js +54 -0
- package/lib/survey-elements/index.js +1196 -0
- package/lib/survey-elements/myxss.js +29 -0
- package/lib/survey-elements/star-rating.js +335 -0
- package/lib/survey-elements-edit.js +613 -0
- package/lib/survey-place-holder.js +51 -0
- package/lib/survey-validator.js +103 -0
- package/lib/toolbar-draggable-item.js +59 -0
- package/lib/toolbar-group-item.js +39 -0
- package/lib/toolbar.js +680 -0
- package/lib/utils/custom-date-picker.js +93 -0
- package/package.json +114 -0
- package/types/index.d.ts +180 -0
package/dist/index.js
ADDED
@@ -0,0 +1,2 @@
|
|
1
|
+
/*! For license information please see index.js.LICENSE.txt */
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define("ReactSurveyBuilder",["react","react-dom"],t):"object"==typeof exports?exports.ReactSurveyBuilder=t(require("react"),require("react-dom")):e.ReactSurveyBuilder=t(e.React,e.ReactDOM)}(self,((e,t)=>(()=>{var n,r,o={5687:(e,t,n)=>{"use strict";function r(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}n.d(t,{kG:()=>r})},5957:(e,t,n)=>{"use strict";function r(e,t){var n=t&&t.cache?t.cache:l,r=t&&t.serializer?t.serializer:c;return(t&&t.strategy?t.strategy:s)(e,{cache:n,serializer:r})}function o(e,t,n,r){var o,i=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),a=t.get(i);return void 0===a&&(a=e.call(this,r),t.set(i,a)),a}function i(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function a(e,t,n,r,o){return n.bind(t,e,r,o)}function s(e,t){return a(e,this,1===e.length?o:i,t.cache.create(),t.serializer)}n.d(t,{A:()=>p,Z:()=>r});var c=function(){return JSON.stringify(arguments)};function u(){this.cache=Object.create(null)}u.prototype.get=function(e){return this.cache[e]},u.prototype.set=function(e,t){this.cache[e]=t};var l={create:function(){return new u}},p={variadic:function(e,t){return a(e,this,i,t.cache.create(),t.serializer)},monadic:function(e,t){return a(e,this,o,t.cache.create(),t.serializer)}}},9943:(e,t,n)=>{"use strict";n.d(t,{wD:()=>o,VG:()=>c,rp:()=>l,Ii:()=>y,O4:()=>s,uf:()=>u,Wh:()=>m,Jo:()=>d,yx:()=>h,Wi:()=>f,HI:()=>g,pe:()=>p,Qc:()=>ie});var r,o,i,a=n(7582);function s(e){return e.type===o.literal}function c(e){return e.type===o.argument}function u(e){return e.type===o.number}function l(e){return e.type===o.date}function p(e){return e.type===o.time}function f(e){return e.type===o.select}function d(e){return e.type===o.plural}function h(e){return e.type===o.pound}function g(e){return e.type===o.tag}function m(e){return!(!e||"object"!=typeof e||e.type!==i.number)}function y(e){return!(!e||"object"!=typeof e||e.type!==i.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(r||(r={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(o||(o={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(i||(i={}));var v=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,b=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function w(e){var t={};return e.replace(b,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var S=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,E=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,k=/^(@+)?(\+|#+)?[rs]?$/g,O=/(\*)(0+)|(#+)(0+)|(0+)/g,M=/^(0+)$/;function C(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(k,(function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function x(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function _(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!M.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function D(e){return x(e)||{}}function T(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=(0,a.pi)((0,a.pi)((0,a.pi)({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return(0,a.pi)((0,a.pi)({},e),D(t))}),{}));continue;case"engineering":t=(0,a.pi)((0,a.pi)((0,a.pi)({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return(0,a.pi)((0,a.pi)({},e),D(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(O,(function(e,n,r,o,i,a){if(n)t.minimumIntegerDigits=r.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(M.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(E.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(E,(function(e,n,r,o,i,a){return"*"===r?t.minimumFractionDigits=n.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var i=o.options[0];"w"===i?t=(0,a.pi)((0,a.pi)({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=(0,a.pi)((0,a.pi)({},t),C(i)))}else if(k.test(o.stem))t=(0,a.pi)((0,a.pi)({},t),C(o.stem));else{var s=x(o.stem);s&&(t=(0,a.pi)((0,a.pi)({},t),s));var c=_(o.stem);c&&(t=(0,a.pi)((0,a.pi)({},t),c))}}return t}var j,I={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function N(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(I[n||""]||I[r||""]||I["".concat(r,"-001")]||I["001"])[0]}var L=new RegExp("^".concat(v.source,"*")),A=new RegExp("".concat(v.source,"*$"));function P(e,t){return{start:e,end:t}}var R=!!String.prototype.startsWith,B=!!String.fromCodePoint,z=!!Object.fromEntries,F=!!String.prototype.codePointAt,U=!!String.prototype.trimStart,H=!!String.prototype.trimEnd,Z=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},K=!0;try{K="a"===(null===(j=X("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===j?void 0:j[0])}catch(e){K=!1}var Y,V=R?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},G=B?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,i=0;o>i;){if((n=e[i++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},W=z?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],i=o[0],a=o[1];t[i]=a}return t},q=F?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,o=e.charCodeAt(t);return o<55296||o>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?o:r-56320+(o-55296<<10)+65536}},Q=U?function(e){return e.trimStart()}:function(e){return e.replace(L,"")},J=H?function(e){return e.trimEnd()}:function(e){return e.replace(A,"")};function X(e,t){return new RegExp(e,t)}if(K){var $=X("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Y=function(e,t){var n;return $.lastIndex=t,null!==(n=$.exec(e)[1])&&void 0!==n?n:""}}else Y=function(e,t){for(var n=[];;){var r=q(e,t);if(void 0===r||ne(r)||re(r))break;n.push(r),t+=r>=65536?2:1}return G.apply(void 0,n)};var ee=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var i=[];!this.isEOF();){var a=this.char();if(123===a){if((s=this.parseArgument(e,n)).err)return s;i.push(s.val)}else{if(125===a&&e>0)break;if(35!==a||"plural"!==t&&"selectordinal"!==t){if(60===a&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(r.UNMATCHED_CLOSING_TAG,P(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&te(this.peek()||0)){if((s=this.parseTag(e,t)).err)return s;i.push(s.val)}else{var s;if((s=this.parseLiteral(e,t)).err)return s;i.push(s.val)}}else{var c=this.clonePosition();this.bump(),i.push({type:o.pound,location:P(c,this.clonePosition())})}}}return{val:i,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:o.literal,value:"<".concat(i,"/>"),location:P(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(e+1,t,!0);if(a.err)return a;var s=a.val,c=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!te(this.char()))return this.error(r.INVALID_TAG,P(c,this.clonePosition()));var u=this.clonePosition();return i!==this.parseTagName()?this.error(r.UNMATCHED_CLOSING_TAG,P(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:o.tag,value:i,children:s,location:P(n,this.clonePosition())},err:null}:this.error(r.INVALID_TAG,P(c,this.clonePosition())))}return this.error(r.UNCLOSED_TAG,P(n,this.clonePosition()))}return this.error(r.INVALID_TAG,P(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{var a=this.tryParseUnquoted(e,t);if(a)r+=a;else{var s=this.tryParseLeftAngleBracket();if(!s)break;r+=s}}}var c=P(n,this.clonePosition());return{val:{type:o.literal,value:r,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(te(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return G.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),G(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,P(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(r.EMPTY_ARGUMENT,P(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(r.MALFORMED_ARGUMENT,P(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,P(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:o.argument,value:i,location:P(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,P(n,this.clonePosition())):this.parseArgumentOptions(e,t,i,n);default:return this.error(r.MALFORMED_ARGUMENT,P(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=Y(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:P(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,s){var c,u=this.clonePosition(),l=this.parseIdentifierIfPossible().value,p=this.clonePosition();switch(l){case"":return this.error(r.EXPECT_ARGUMENT_TYPE,P(u,p));case"number":case"date":case"time":this.bumpSpace();var f=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition();if((E=this.parseSimpleArgStyleIfPossible()).err)return E;if(0===(y=J(E.val)).length)return this.error(r.EXPECT_ARGUMENT_STYLE,P(this.clonePosition(),this.clonePosition()));f={style:y,styleLocation:P(d,this.clonePosition())}}if((k=this.tryParseArgumentClose(s)).err)return k;var h=P(s,this.clonePosition());if(f&&V(null==f?void 0:f.style,"::",0)){var g=Q(f.style.slice(2));if("number"===l)return(E=this.parseNumberSkeletonFromString(g,f.styleLocation)).err?E:{val:{type:o.number,value:n,location:h,style:E.val},err:null};if(0===g.length)return this.error(r.EXPECT_DATE_TIME_SKELETON,h);var m=g;this.locale&&(m=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var i=0;r+1<e.length&&e.charAt(r+1)===o;)i++,r++;var a=1+(1&i),s=i<2?1:3+(i>>1),c=N(t);for("H"!=c&&"k"!=c||(s=0);s-- >0;)n+="a";for(;a-- >0;)n=c+n}else n+="J"===o?"H":o}return n}(g,this.locale));var y={type:i.dateTime,pattern:m,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?w(m):{}};return{val:{type:"date"===l?o.date:o.time,value:n,location:h,style:y},err:null}}return{val:{type:"number"===l?o.number:"date"===l?o.date:o.time,value:n,location:h,style:null!==(c=null==f?void 0:f.style)&&void 0!==c?c:null},err:null};case"plural":case"selectordinal":case"select":var v=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(r.EXPECT_SELECT_ARGUMENT_OPTIONS,P(v,(0,a.pi)({},v)));this.bumpSpace();var b=this.parseIdentifierIfPossible(),S=0;if("select"!==l&&"offset"===b.value){if(!this.bumpIf(":"))return this.error(r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,P(this.clonePosition(),this.clonePosition()));var E;if(this.bumpSpace(),(E=this.tryParseDecimalInteger(r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return E;this.bumpSpace(),b=this.parseIdentifierIfPossible(),S=E.val}var k,O=this.tryParsePluralOrSelectOptions(e,l,t,b);if(O.err)return O;if((k=this.tryParseArgumentClose(s)).err)return k;var M=P(s,this.clonePosition());return"select"===l?{val:{type:o.select,value:n,options:W(O.val),location:M},err:null}:{val:{type:o.plural,value:n,options:W(O.val),offset:S,pluralType:"plural"===l?"cardinal":"ordinal",location:M},err:null};default:return this.error(r.INVALID_ARGUMENT_TYPE,P(u,p))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,P(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,P(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(S).filter((function(e){return e.length>0}));n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],a=o.slice(1),s=0,c=a;s<c.length;s++)if(0===c[s].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:a})}return t}(e)}catch(e){return this.error(r.INVALID_NUMBER_SKELETON,t)}return{val:{type:i.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?T(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,o){for(var i,a=!1,s=[],c=new Set,u=o.value,l=o.location;;){if(0===u.length){var p=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var f=this.tryParseDecimalInteger(r.EXPECT_PLURAL_ARGUMENT_SELECTOR,r.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;l=P(p,this.clonePosition()),u=this.message.slice(p.offset,this.offset())}if(c.has(u))return this.error("select"===t?r.DUPLICATE_SELECT_ARGUMENT_SELECTOR:r.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===u&&(a=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,P(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(e+1,t,n);if(h.err)return h;var g=this.tryParseArgumentClose(d);if(g.err)return g;s.push([u,{value:h.val,location:P(d,this.clonePosition())}]),c.add(u),this.bumpSpace(),u=(i=this.parseIdentifierIfPossible()).value,l=i.location}return 0===s.length?this.error("select"===t?r.EXPECT_SELECT_ARGUMENT_SELECTOR:r.EXPECT_PLURAL_ARGUMENT_SELECTOR,P(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(r.MISSING_OTHER_CLAUSE,P(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var s=P(r,this.clonePosition());return o?Z(i*=n)?{val:i,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=q(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(V(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ne(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function te(e){return e>=97&&e<=122||e>=65&&e<=90}function ne(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function re(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function oe(e){e.forEach((function(e){if(delete e.location,f(e)||d(e))for(var t in e.options)delete e.options[t].location,oe(e.options[t].value);else u(e)&&m(e.style)||(l(e)||p(e))&&y(e.style)?delete e.style.location:g(e)&&oe(e.children)}))}function ie(e,t){void 0===t&&(t={}),t=(0,a.pi)({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new ee(e,t).parse();if(n.err){var o=SyntaxError(r[n.err.kind]);throw o.location=n.err.location,o.originalMessage=n.err.message,o}return(null==t?void 0:t.captureLocation)||oe(n.val),n.val}},8222:(e,t,n)=>{"use strict";n.d(t,{$6:()=>p,OV:()=>s,Qe:()=>u,Rw:()=>i,X9:()=>l,bc:()=>r,gb:()=>c,wI:()=>a});var r,o=n(7582);!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(r||(r={}));var i=function(e){function t(n,r,o){var i=this,a=o?o instanceof Error?o:new Error(String(o)):void 0;return(i=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r," \n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return(0,o.ZT)(t,e),t}(Error),a=function(e){function t(t,n){return e.call(this,r.UNSUPPORTED_FORMATTER,t,n)||this}return(0,o.ZT)(t,e),t}(i),s=function(e){function t(t,n){return e.call(this,r.INVALID_CONFIG,t,n)||this}return(0,o.ZT)(t,e),t}(i),c=function(e){function t(t,n){return e.call(this,r.MISSING_DATA,t,n)||this}return(0,o.ZT)(t,e),t}(i),u=function(e){function t(t,n,o){return e.call(this,r.FORMAT_ERROR,"".concat(t," \nLocale: ").concat(n,"\n"),o)||this}return(0,o.ZT)(t,e),t}(i),l=function(e){function t(t,n,r,o){var i=e.call(this,"".concat(t," \nMessageID: ").concat(null==r?void 0:r.id,"\nDefault Message: ").concat(null==r?void 0:r.defaultMessage,"\nDescription: ").concat(null==r?void 0:r.description," \n"),n,o)||this;return i.descriptor=r,i}return(0,o.ZT)(t,e),t}(u),p=function(e){function t(t,n){var o=e.call(this,r.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(n,'", using ').concat(t.defaultMessage?"default message":"id"," as fallback."))||this;return o.descriptor=t,o}return(0,o.ZT)(t,e),t}(i)},2644:(e,t,n)=>{"use strict";n.d(t,{L6:()=>s,Sn:()=>u,TB:()=>f,Z0:()=>c,ax:()=>p});var r=n(7582),o=n(6284),i=n(5957),a=n(8222);function s(e,t,n){return void 0===n&&(n={}),t.reduce((function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t}),{})}var c={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){},onWarn:function(e){}};function u(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function l(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function p(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,a=Intl.DisplayNames,s=(0,i.Z)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,r.ev)([void 0],t,!1)))}),{cache:l(e.dateTime),strategy:i.A.variadic}),c=(0,i.Z)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,(0,r.ev)([void 0],t,!1)))}),{cache:l(e.number),strategy:i.A.variadic}),u=(0,i.Z)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,(0,r.ev)([void 0],t,!1)))}),{cache:l(e.pluralRules),strategy:i.A.variadic});return{getDateTimeFormat:s,getNumberFormat:c,getMessageFormat:(0,i.Z)((function(e,t,n,i){return new o.C(e,t,n,(0,r.pi)({formatters:{getNumberFormat:c,getDateTimeFormat:s,getPluralRules:u}},i||{}))}),{cache:l(e.message),strategy:i.A.variadic}),getRelativeTimeFormat:(0,i.Z)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,(0,r.ev)([void 0],e,!1)))}),{cache:l(e.relativeTime),strategy:i.A.variadic}),getPluralRules:u,getListFormat:(0,i.Z)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,(0,r.ev)([void 0],e,!1)))}),{cache:l(e.list),strategy:i.A.variadic}),getDisplayNames:(0,i.Z)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(a.bind.apply(a,(0,r.ev)([void 0],e,!1)))}),{cache:l(e.displayNames),strategy:i.A.variadic})}}function f(e,t,n,r){var o,i=e&&e[t];if(i&&(o=i[n]),o)return o;r(new a.wI("No ".concat(t," format named: ").concat(n)))}},8195:(e,t,n)=>{"use strict";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})},9333:e=>{var t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n={uuid:function(e,n){var r,o,i=t,a=[];if(n=n||i.length,e)for(r=0;r<e;r++)a[r]=i[0|Math.random()*n];else for(a[8]=a[13]=a[18]=a[23]="-",a[14]="4",r=0;r<36;r++)a[r]||(o=0|16*Math.random(),a[r]=i[19==r?3&o|8:o]);return a.join("")},uuidFast:function(){for(var e,n=t,r=new Array(36),o=0,i=0;i<36;i++)8==i||13==i||18==i||23==i?r[i]="-":14==i?r[i]="4":(o<=2&&(o=33554432+16777216*Math.random()|0),e=15&o,o>>=4,r[i]=n[19==i?3&e|8:e]);return r.join("")},uuidCompact:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}};e.exports=n},4152:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(359),o=n.n(r),i=n(7582),a=n(4806),s=n(680);function c(e){var t=function(){var e=r.useContext(a._y);return(0,s.lq)(e),e}(),n=t.formatMessage,o=t.textComponent,i=void 0===o?r.Fragment:o,c=e.id,u=e.description,l=e.defaultMessage,p=e.values,f=e.children,d=e.tagName,h=void 0===d?i:d,g=n({id:c,description:u,defaultMessage:l},p,{ignoreTag:e.ignoreTag});return"function"==typeof f?f(Array.isArray(g)?g:[g]):h?r.createElement(h,null,r.Children.toArray(g)):r.createElement(r.Fragment,null,g)}c.displayName="FormattedMessage";var u=r.memo(c,(function(e,t){var n=e.values,r=(0,i._T)(e,["values"]),o=t.values,a=(0,i._T)(t,["values"]);return(0,s.wU)(o,n)&&(0,s.wU)(r,a)}));u.displayName="MemoizedFormattedMessage";const l=u,p=(0,a.ZP)((function(e){return o().createElement(l,e)}),{withRef:!1})},8708:e=>{e.exports=function(){var e={},t={register:function(n,r){if(!n)throw new Error("You must provide a valid name for this entry.");if(void 0!==e[n])throw new Error("'".concat(n,"' already registered"));if(!r)throw new Error("You must provide something to register as '".concat(n,"'"));return e[n]=r,t},list:function(){return Object.keys(e)},get:function(t){return e.hasOwnProperty(t)||console.error("No such entry '".concat(t,"'")),e[t]}};return t}()},2083:(e,t,n)=>{"use strict";n.d(t,{U:()=>s,v:()=>a});var r=n(4301),o=n.n(r),i={Accept:"application/json","Content-Type":"application/json; charset=utf-8",OPTIONS:""};function a(e,t){return o()(e,{method:"POST",headers:i,body:JSON.stringify(t)}).then((function(e){return e}))}function s(e){return o()(e,{method:"GET",headers:i}).then((function(e){return e.json()}))}},4184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!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)}()},2667:(e,t,n)=>{var r=n(9950),o=n(5419);function i(e){return null==e}function a(e){(e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{})).whiteList=e.whiteList||r.whiteList,e.onAttr=e.onAttr||r.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||r.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||r.safeAttrValue,this.options=e}n(7381),a.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,n=t.whiteList,r=t.onAttr,a=t.onIgnoreAttr,s=t.safeAttrValue;return o(e,(function(e,t,o,c,u){var l=n[o],p=!1;if(!0===l?p=l:"function"==typeof l?p=l(c):l instanceof RegExp&&(p=l.test(c)),!0!==p&&(p=!1),c=s(o,c)){var f,d={position:t,sourcePosition:e,source:u,isWhite:p};return p?i(f=r(o,c,d))?o+":"+c:f:i(f=a(o,c,d))?void 0:f}}))},e.exports=a},9950:(e,t)=>{function n(){return{"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1}}var r=/javascript\s*\:/gim;t.whiteList={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1},t.getDefaultWhiteList=n,t.onAttr=function(e,t,n){},t.onIgnoreAttr=function(e,t,n){},t.safeAttrValue=function(e,t){return r.test(t)?"":t}},9970:(e,t,n)=>{var r=n(9950),o=n(2667);for(var i in(t=e.exports=function(e,t){return new o(t).process(e)}).FilterCSS=o,r)t[i]=r[i];"undefined"!=typeof window&&(window.filterCSS=e.exports)},5419:(e,t,n)=>{var r=n(7381);e.exports=function(e,t){";"!==(e=r.trimRight(e))[e.length-1]&&(e+=";");var n=e.length,o=!1,i=0,a=0,s="";function c(){if(!o){var n=r.trim(e.slice(i,a)),c=n.indexOf(":");if(-1!==c){var u=r.trim(n.slice(0,c)),l=r.trim(n.slice(c+1));if(u){var p=t(i,s.length,u,l,n);p&&(s+=p+"; ")}}}i=a+1}for(;a<n;a++){var u=e[a];if("/"===u&&"*"===e[a+1]){var l=e.indexOf("*/",a+2);if(-1===l)break;i=(a=l+1)+1,o=!1}else"("===u?o=!0:")"===u?o=!1:";"===u?o||c():"\n"===u&&c()}return r.trim(s)}},7381:e=>{e.exports={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,o;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,o=e.length;r<o;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}}},9785:(e,t,n)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(329),a=n(4516),s=n(8777),c=n(7953),u=n(2307),l=n(4289),p=n(5027),f=n(8642),d=n(3393),h=n(1173),g=f("draft_tree_data_support"),m=g?c:s,y=d.List,v=d.Repeat,b={insertAtomicBlock:function(e,t,n){var o=e.getCurrentContent(),s=e.getSelection(),c=u.removeRange(o,s,"backward"),f=c.getSelectionAfter(),d=u.splitBlock(c,f),h=d.getSelectionAfter(),b=u.setBlockType(d,h,"atomic"),w=a.create({entity:t}),S={key:p(),type:"atomic",text:n,characterList:y(v(w,n.length))},E={key:p(),type:"unstyled"};g&&(S=r({},S,{nextSibling:E.key}),E=r({},E,{prevSibling:S.key}));var k=[new m(S),new m(E)],O=i.createFromArray(k),M=u.replaceWithFragment(b,h,O),C=M.merge({selectionBefore:s,selectionAfter:M.getSelectionAfter().set("hasFocus",!0)});return l.push(e,C,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o,i=e.getCurrentContent(),a=e.getSelection();if("before"===r||"after"===r){var s=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=h(i,t,s,r)}else{var c=u.removeRange(i,n,"backward"),p=c.getSelectionAfter(),f=c.getBlockForKey(p.getFocusKey());if(0===p.getStartOffset())o=h(c,t,f,"before");else if(p.getEndOffset()===f.getLength())o=h(c,t,f,"after");else{var d=u.splitBlock(c,p),g=d.getSelectionAfter(),m=d.getBlockForKey(g.getFocusKey());o=h(d,t,m,"before")}}var y=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return l.push(e,y,"move-block")}};e.exports=b},329:(e,t,n)=>{"use strict";var r=n(3393).OrderedMap,o={createFromArray:function(e){return r(e.map((function(e){return[e.getKey(),e]})))}};e.exports=o},4365:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(9407),i=n(6495),a=n(3393),s=a.List,c=a.Repeat,u=a.Record,l=function(){return!0},p=u({start:null,end:null}),f=u({start:null,end:null,decoratorKey:null,leaves:null}),d={generate:function(e,t,n){var r=t.getLength();if(!r)return s.of(new f({start:0,end:0,decoratorKey:null,leaves:s.of(new p({start:0,end:0}))}));var i=[],a=n?n.getDecorations(t,e):s(c(null,r)),u=t.getCharacterList();return o(a,h,l,(function(e,t){var n,r,c,d;i.push(new f({start:e,end:t,decoratorKey:a.get(e),leaves:(n=u.slice(e,t).toList(),r=e,c=[],d=n.map((function(e){return e.getStyle()})).toList(),o(d,h,l,(function(e,t){c.push(new p({start:e+r,end:t+r}))})),s(c))}))})),s(i)},fromJS:function(e){var t=e.leaves,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["leaves"]);return new f(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},n,{leaves:null!=t?s(Array.isArray(t)?t:i(t)).map((function(e){return p(e)})):null}))}};function h(e,t){return e===t}e.exports=d},4516:(e,t,n)=>{"use strict";var r=n(3393),o=r.Map,i=r.OrderedSet,a=r.Record,s=i(),c={style:s,entity:null},u=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.getStyle=function(){return this.get("style")},a.getEntity=function(){return this.get("entity")},a.hasStyle=function(e){return this.getStyle().includes(e)},r.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return r.create(n)},r.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return r.create(n)},r.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return r.create(n)},r.create=function(e){if(!e)return l;var t=o({style:s,entity:null}).merge(e),n=p.get(t);if(n)return n;var i=new r(t);return p=p.set(t,i),i},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?i(t):t,entity:Array.isArray(n)?i(n):n})},r}(a(c)),l=new u,p=o([[o(c),l]]);u.EMPTY=l,e.exports=u},5369:(e,t,n)=>{"use strict";var r=n(3393).List,o=function(){function e(e){var t,n;n=void 0,(t="_decorators")in this?Object.defineProperty(this,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[t]=n,this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(n,e,t)&&(function(e,t,n,r){for(var o=t;o<n;o++)e[o]=r}(n,e,t,o+"."+i),i++)}),t)})),r(n)},t.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},t.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();e.exports=o},8777:(e,t,n)=>{"use strict";var r=n(4516),o=n(9407),i=n(3393),a=i.List,s=i.Map,c=i.OrderedSet,u=i.Record,l=i.Repeat,p=c(),f=function(e){var t,n;function i(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=a(l(r.EMPTY,n.length))),e}(t))||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=i.prototype;return s.getKey=function(){return this.get("key")},s.getType=function(){return this.get("type")},s.getText=function(){return this.get("text")},s.getCharacterList=function(){return this.get("characterList")},s.getLength=function(){return this.getText().length},s.getDepth=function(){return this.get("depth")},s.getData=function(){return this.get("data")},s.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():p},s.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},s.findStyleRanges=function(e,t){o(this.getCharacterList(),d,e,t)},s.findEntityRanges=function(e,t){o(this.getCharacterList(),h,e,t)},i}(u({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:s()}));function d(e,t){return e.getStyle()===t.getStyle()}function h(e,t){return e.getEntity()===t.getEntity()}e.exports=f},7953:(e,t,n)=>{"use strict";var r=n(4516),o=n(9407),i=n(3393),a=i.List,s=i.Map,c=i.OrderedSet,u=i.Record,l=i.Repeat,p=c(),f={parent:null,characterList:a(),data:s(),depth:0,key:"",text:"",type:"unstyled",children:a(),prevSibling:null,nextSibling:null},d=function(e,t){return e.getStyle()===t.getStyle()},h=function(e,t){return e.getEntity()===t.getEntity()},g=function(e){var t,n;function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=a(l(r.EMPTY,n.length))),e}(t))||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=i.prototype;return s.getKey=function(){return this.get("key")},s.getType=function(){return this.get("type")},s.getText=function(){return this.get("text")},s.getCharacterList=function(){return this.get("characterList")},s.getLength=function(){return this.getText().length},s.getDepth=function(){return this.get("depth")},s.getData=function(){return this.get("data")},s.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():p},s.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},s.getChildKeys=function(){return this.get("children")},s.getParentKey=function(){return this.get("parent")},s.getPrevSiblingKey=function(){return this.get("prevSibling")},s.getNextSiblingKey=function(){return this.get("nextSibling")},s.findStyleRanges=function(e,t){o(this.getCharacterList(),d,e,t)},s.findEntityRanges=function(e,t){o(this.getCharacterList(),h,e,t)},i}(u(f));e.exports=g},6912:(e,t,n)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(329),a=n(4516),s=n(8777),c=n(7953),u=n(2222),l=n(5110),p=n(5027),f=n(6495),d=n(8642),h=n(3393),g=n(5283),m=h.List,y=h.Record,v=h.Repeat,b=h.Map,w=h.OrderedMap,S=y({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),E=d("draft_tree_data_support")?c:s,k=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=o.prototype;return s.getEntityMap=function(){return u},s.getBlockMap=function(){return this.get("blockMap")},s.getSelectionBefore=function(){return this.get("selectionBefore")},s.getSelectionAfter=function(){return this.get("selectionAfter")},s.getBlockForKey=function(e){return this.getBlockMap().get(e)},s.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},s.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},s.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},s.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},s.getBlocksAsArray=function(){return this.getBlockMap().toArray()},s.getFirstBlock=function(){return this.getBlockMap().first()},s.getLastBlock=function(){return this.getBlockMap().last()},s.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},s.getLastCreatedEntityKey=function(){return u.__getLastCreatedEntityKey()},s.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},s.createEntity=function(e,t,n){return u.__create(e,t,n),this},s.mergeEntityData=function(e,t){return u.__mergeData(e,t),this},s.replaceEntityData=function(e,t){return u.__replaceData(e,t),this},s.addEntity=function(e){return u.__add(e),this},s.getEntity=function(e){return u.__get(e)},s.getAllEntities=function(){return u.__getAll()},s.loadWithEntities=function(e){return u.__loadWithEntities(e)},o.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,r=i.createFromArray(n),a=r.isEmpty()?new l:l.createEmpty(r.first().getKey());return new o({blockMap:r,entityMap:t||u,selectionBefore:a,selectionAfter:a})},o.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t).map((function(e){return e=g(e),new E({key:p(),text:e,type:"unstyled",characterList:m(v(a.EMPTY,e.length))})}));return o.createFromBlockArray(n)},o.fromJS=function(e){return new o(r({},e,{blockMap:w(e.blockMap).map(o.createContentBlockFromJS),selectionBefore:new l(e.selectionBefore),selectionAfter:new l(e.selectionAfter)}))},o.createContentBlockFromJS=function(e){var t=e.characterList;return new E(r({},e,{data:b(e.data),characterList:null!=t?m((Array.isArray(t)?t:f(t)).map((function(e){return a.fromJS(e)}))):void 0}))},o}(S);e.exports=k},3483:(e,t,n)=>{"use strict";var r=n(4516),o=n(3393).Map,i={add:function(e,t,n){return a(e,t,n,!0)},remove:function(e,t,n){return a(e,t,n,!1)}};function a(e,t,n,i){var a=e.getBlockMap(),s=t.getStartKey(),c=t.getStartOffset(),u=t.getEndKey(),l=t.getEndOffset(),p=a.skipUntil((function(e,t){return t===s})).takeUntil((function(e,t){return t===u})).concat(o([[u,a.get(u)]])).map((function(e,t){var o,a;s===u?(o=c,a=l):(o=t===s?c:0,a=t===u?l:e.getLength());for(var p,f=e.getCharacterList();o<a;)p=f.get(o),f=f.set(o,i?r.applyStyle(p,n):r.removeStyle(p,n)),o++;return e.set("characterList",f)}));return e.merge({blockMap:a.merge(p),selectionBefore:t,selectionAfter:t})}e.exports=i},7907:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(4856),i=n(9270),a=n(8083),s=n(3393),c=n(3759),u=n(2045),l=s.Map,p={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},f=o.isBrowser("IE <= 11"),d=function(){function e(e){var t=this;r(this,"observer",void 0),r(this,"container",void 0),r(this,"mutations",void 0),r(this,"onCharData",void 0),this.container=e,this.mutations=l();var n=a(e);n.MutationObserver&&!f?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||c(!1),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,p):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=l(),t},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,n=e.target,r=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return f?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var n=u(i(e.target));this.mutations=this.mutations.set(n,t)}},e}();e.exports=d},526:(e,t,n)=>{"use strict";var r=n(359),o=n(2620),i=(0,n(3393).Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:r.createElement("ul",{className:o("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:r.createElement("ol",{className:o("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:r.createElement("pre",{className:o("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=i},7619:e=>{"use strict";e.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},9041:(e,t,n)=>{"use strict";var r=n(9785),o=n(329),i=n(4516),a=n(5369),s=n(8777),c=n(6912),u=n(526),l=n(7619),p=n(7210),f=n(7898),d=n(2222),h=n(2307),g=n(9006),m=n(4289),y=n(7387),v=n(54),b=n(1947),w=n(5110),S=n(9981),E=n(9607),k=n(5027),O=n(1714),M=n(6629),C={Editor:p,EditorBlock:f,EditorState:m,CompositeDecorator:a,Entity:d,EntityInstance:g,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:s,ContentState:c,RawDraftContentState:v,SelectionState:w,AtomicBlockUtils:r,KeyBindingUtil:y,Modifier:h,RichUtils:b,DefaultDraftBlockRenderMap:u,DefaultDraftInlineStyle:l,convertFromHTML:n(7841),convertFromRaw:E,convertToRaw:S,genKey:k,getDefaultKeyBinding:O,getVisibleSelectionRect:M};e.exports=C},7210:(e,t,n)=>{"use strict";var r=n(7418);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var u=n(526),l=n(7619),p=n(3418),f=n(7791),d=n(1494),h=n(9394),g=n(4083),m=n(8094),y=n(5880),v=n(4289),b=n(359),w=n(5994),S=n(9051),E=n(4856),k=n(2620),O=n(5027),M=n(1714),C=n(9749),x=n(8642),_=n(3759),D=n(717),T=n(2045),j=E.isBrowser("IE"),I=!j,N={edit:h,composite:p,drag:d,cut:null,render:null},L=!1,A=function(e){function t(){return e.apply(this,arguments)||this}c(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(b.Component),P=function(e){function t(t){var n;return s(a(n=e.call(this,t)||this),"_blockSelectEvents",void 0),s(a(n),"_clipboard",void 0),s(a(n),"_handler",void 0),s(a(n),"_dragCount",void 0),s(a(n),"_internalDrag",void 0),s(a(n),"_editorKey",void 0),s(a(n),"_placeholderAccessibilityID",void 0),s(a(n),"_latestEditorState",void 0),s(a(n),"_latestCommittedEditorState",void 0),s(a(n),"_pendingStateFromBeforeInput",void 0),s(a(n),"_onBeforeInput",void 0),s(a(n),"_onBlur",void 0),s(a(n),"_onCharacterData",void 0),s(a(n),"_onCompositionEnd",void 0),s(a(n),"_onCompositionStart",void 0),s(a(n),"_onCopy",void 0),s(a(n),"_onCut",void 0),s(a(n),"_onDragEnd",void 0),s(a(n),"_onDragOver",void 0),s(a(n),"_onDragStart",void 0),s(a(n),"_onDrop",void 0),s(a(n),"_onInput",void 0),s(a(n),"_onFocus",void 0),s(a(n),"_onKeyDown",void 0),s(a(n),"_onKeyPress",void 0),s(a(n),"_onKeyUp",void 0),s(a(n),"_onMouseDown",void 0),s(a(n),"_onMouseUp",void 0),s(a(n),"_onPaste",void 0),s(a(n),"_onSelect",void 0),s(a(n),"editor",void 0),s(a(n),"editorContainer",void 0),s(a(n),"focus",void 0),s(a(n),"blur",void 0),s(a(n),"setMode",void 0),s(a(n),"exitCurrentMode",void 0),s(a(n),"restoreEditorDOM",void 0),s(a(n),"setClipboard",void 0),s(a(n),"getClipboard",void 0),s(a(n),"getEditorKey",void 0),s(a(n),"update",void 0),s(a(n),"onDragEnter",void 0),s(a(n),"onDragLeave",void 0),s(a(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),s(a(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=S.getScrollParent(o),a=e||C(i),s=a.x,c=a.y;D(o)||_(!1),o.focus(),i===window?window.scrollTo(s,c):w.setTop(i,c),r||n.update(v.forceSelection(t,t.getSelection()))}})),s(a(n),"blur",(function(){var e=n.editor;e&&(D(e)||_(!1),e.blur())})),s(a(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,a=t.onCopy,s=i({},N.edit);r&&(s.onPaste=r),o&&(s.onCut=o),a&&(s.onCopy=a);var c=i({},N,{edit:s});n._handler=c[e]})),s(a(n),"exitCurrentMode",(function(){n.setMode("edit")})),s(a(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),s(a(n),"setClipboard",(function(e){n._clipboard=e})),s(a(n),"getClipboard",(function(){return n._clipboard})),s(a(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),s(a(n),"onDragEnter",(function(){n._dragCount++})),s(a(n),"onDragLeave",(function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()})),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=t.editorKey||O(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=t.editorState,n._latestCommittedEditorState=t.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},n.state={contentsKey:0},n}c(t,e);var r=t.prototype;return r._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&(g?g((function(){return r(t,n)})):r(t,n))}}},r._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},r._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:T(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return b.createElement(m,e)}return null},r._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},r.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,a=e.customStyleFn,s=e.customStyleMap,c=e.editorState,u=e.preventScroll,p=e.readOnly,d=e.textAlignment,h=e.textDirectionality,g=k({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===d,"DraftEditor/alignRight":"right"===d,"DraftEditor/alignCenter":"center"===d}),m=this.props.role||"textbox",y="combobox"===m?!!this.props.ariaExpanded:null,v={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:i({},l,s),customStyleFn:a,editorKey:this._editorKey,editorState:c,preventScroll:u,textDirectionality:h};return b.createElement("div",{className:g},this._renderPlaceholder(),b.createElement("div",{className:k("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},b.createElement("div",{"aria-activedescendant":p?null:this.props.ariaActiveDescendantID,"aria-autocomplete":p?null:this.props.ariaAutoComplete,"aria-controls":p?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":p?null:y,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":p?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:k({notranslate:!p,"public/DraftEditor/content":!0}),contentEditable:!p,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:p?null:m,spellCheck:I&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},b.createElement(A,{editor:this,editorState:c}),b.createElement(f,o({},v,{key:"contents"+this.state.contentsKey})))))},r.componentDidMount=function(){this._blockSelectEvents=!1,!L&&x("draft_ods_enabled")&&(L=!0,y.initODS()),this.setMode("edit"),j&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):n.g.execCommand("AutoUrlDetect",!1,!1))},r.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(b.Component);s(P,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:u,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:M,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),e.exports=P},7898:(e,t,n)=>{"use strict";var r=n(7418);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}var i=n(2282),a=n(2146),s=n(359),c=n(5994),u=n(9051),l=n(4191),p=n(6633),f=n(2620),d=n(5258),h=n(9749),g=n(746),m=n(3759),y=n(717),v=n(2045),b=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},w=function(e){var t,n;function r(){for(var t,n,r,o,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return o=void 0,(r="_node")in(n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(a))||this))?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var w=r.prototype;return w.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||b(e.selection,e.block.getKey())&&e.forceSelection},w.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this._node;if(null!=n){var r,o=u.getScrollParent(n),i=h(o);if(o===window){var a=d(n);(r=a.y+a.height-g().height)>0&&window.scrollTo(i.x,i.y+r+10)}else y(n)||m(!1),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&c.setTop(o,c.getTop(o)+r+10)}}}},w._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),c=this.props.tree.size-1,u=b(this.props.selection,n);return this.props.tree.map((function(f,d){var h=f.get("leaves");if(0===h.size)return null;var g=h.size-1,m=h.map((function(o,l){var p=a.encode(n,d,l),f=o.get("start"),h=o.get("end");return s.createElement(i,{key:p,offsetKey:p,block:t,start:f,selection:u?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(f,h),styleSet:t.getInlineStyleAt(f),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:d===c&&l===g})})).toArray(),y=f.get("decoratorKey");if(null==y)return m;if(!e.props.decorator)return m;var b=v(e.props.decorator),w=b.getComponentForKey(y);if(!w)return m;var S=b.getPropsForKey(y),E=a.encode(n,d,0),k=h.first().get("start"),O=h.last().get("end"),M=r.slice(k,O),C=t.getEntityAt(f.get("start")),x=p.getHTMLDirIfDifferent(l.getDirection(M),e.props.direction),_={contentState:e.props.contentState,decoratedText:M,dir:x,start:k,end:O,blockKey:n,entityKey:C,offsetKey:E};return s.createElement(w,o({},S,_,{key:E}),m)})).toArray()},w.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=f({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return s.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(s.Component);e.exports=w},5821:(e,t,n)=>{"use strict";var r=n(7418);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=n(9513),c=n(2146),u=n(359),l=n(5994),p=n(9051),f=n(5258),d=n(9749),h=n(746),g=n(3393),m=n(3759),y=n(717),v=(g.List,function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t}),b=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),r=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:r}},w=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},S=function(e,t,n,r,o,a){var s={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:a},c=r(e);return c&&(s.className=c),void 0!==o.customEditable&&(s=i({},s,{contentEditable:o.customEditable,suppressContentEditableWarning:!0})),s},E=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return a(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(r))||this),"wrapperRef",u.createRef()),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var g=r.prototype;return g.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,o=t.tree,i=!n.getChildKeys().isEmpty(),a=n!==e.block||o!==e.tree||r!==e.direction||v(e.selection,e.block.getKey())&&e.forceSelection;return i||a},g.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=p.getScrollParent(n),i=d(o);if(o===window){var a=f(n);(r=a.y+a.height-h().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{y(n)||m(!1);var s=n;(r=s.offsetHeight+s.offsetTop-(o.offsetHeight+i.y))>0&&l.setTop(o,l.getTop(o)+r+10)}}}},g.render=function(){var e=this,t=this.props,n=t.block,a=t.blockRenderMap,l=t.blockRendererFn,p=t.blockStyleFn,f=t.contentState,d=t.decorator,h=t.editorKey,g=t.editorState,m=t.customStyleFn,y=t.customStyleMap,E=t.direction,k=t.forceSelection,O=t.selection,M=t.tree,C=null;n.children.size&&(C=n.children.reduce((function(t,n){var o=c.encode(n,0,0),s=f.getBlockForKey(n),d=w(s,l),m=d.CustomComponent||r,y=b(s,a),v=y.Element,E=y.wrapperTemplate,k=S(s,h,o,p,d,null),O=i({},e.props,{tree:g.getBlockTree(n),blockProps:d.customProps,offsetKey:o,block:s});return t.push(u.createElement(v,k,u.createElement(m,O))),!E||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(s,f)||function(e,t,n){var r=[],o=!0,i=!1,a=void 0;try{for(var s,l=n.reverse()[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var p=s.value;if(p.type!==t)break;r.push(p)}}catch(e){i=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}n.splice(n.indexOf(r[0]),r.length+1);var f=r.reverse(),d=f[0].key;n.push(u.cloneElement(e,{key:"".concat(d,"-wrap"),"data-offset-key":c.encode(d,0,0)},f))}(E,v,t),t}),[]));var x=n.getKey(),_=c.encode(x,0,0),D=w(n,l),T=D.CustomComponent,j=null!=T?u.createElement(T,o({},this.props,{tree:g.getBlockTree(x),blockProps:D.customProps,offsetKey:_,block:n})):u.createElement(s,{block:n,children:C,contentState:f,customStyleFn:m,customStyleMap:y,decorator:d,direction:E,forceSelection:k,hasSelection:v(O,x),selection:O,tree:M});if(n.getParentKey())return j;var I=b(n,a).Element,N=S(n,h,_,p,D,this.wrapperRef);return u.createElement(I,N,j)},r}(u.Component);e.exports=E},3418:(e,t,n)=>{"use strict";var r=n(7907),o=n(2307),i=n(2146),a=n(4289),s=n(5399),c=n(4856),u=n(4507),l=n(4907),p=n(1244),f=n(2128),d=n(2045),h=c.isBrowser("IE"),g=!1,m=!1,y=null,v={onCompositionStart:function(e){m=!0,function(e){y||(y=new r(l(e))).start()}(e)},onCompositionEnd:function(e){g=!1,m=!1,setTimeout((function(){g||v.resolveComposition(e)}),20)},onSelect:u,onKeyDown:function(e,t){if(!m)return v.resolveComposition(e),void e._onKeyDown(t);t.which!==s.RIGHT&&t.which!==s.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===s.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!m){var t=d(y).stopAndFlushMutations();y=null,g=!0;var n=a.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var s=i.decode(t),c=s.blockKey,u=s.decoratorKey,l=s.leafKey,p=n.getBlockTree(c).getIn([u,"leaves",l]),d=p.start,h=p.end,g=n.getSelection().merge({anchorKey:c,focusKey:c,anchorOffset:d,focusOffset:h,isBackward:!1}),m=f(r,g),y=r.getBlockForKey(c).getInlineStyleAt(d);r=o.replaceText(r,g,e,y,m),n=a.set(n,{currentContent:r})}));var s=p(n,l(e)).selectionState;e.restoreEditorDOM();var c=h?a.forceSelection(n,s):a.acceptSelection(n,s);e.update(a.push(c,r,"insert-characters"))}else e.update(n)}}};e.exports=v},8795:(e,t,n)=>{"use strict";var r=n(7418);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=n(7898),c=n(2146),u=n(359),l=n(2620),p=n(1108),f=n(2045),d=function(e,t,n,r){return l({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},h=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},a.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,a=e.customStyleMap,l=e.customStyleFn,h=e.editorState,g=e.editorKey,m=e.preventScroll,y=e.textDirectionality,v=h.getCurrentContent(),b=h.getSelection(),w=h.mustForceSelection(),S=h.getDecorator(),E=f(h.getDirectionMap()),k=v.getBlocksAsArray(),O=[],M=null,C=null,x=0;x<k.length;x++){var _=k[x],D=_.getKey(),T=_.getType(),j=n(_),I=void 0,N=void 0,L=void 0;j&&(I=j.component,N=j.props,L=j.editable);var A=y||E.get(D),P=c.encode(D,0,0),R={contentState:v,block:_,blockProps:N,blockStyleFn:r,customStyleMap:a,customStyleFn:l,decorator:S,direction:A,forceSelection:w,offsetKey:P,preventScroll:m,selection:b,tree:h.getBlockTree(D)},B=t.get(T)||t.get("unstyled"),z=B.wrapper,F=B.element||t.get("unstyled").element,U=_.getDepth(),H="";r&&(H=r(_)),"li"===F&&(H=p(H,d(T,U,C!==z||null===M||U>M,A)));var Z=I||s,K={className:H,"data-block":!0,"data-editor":g,"data-offset-key":P,key:D};void 0!==L&&(K=i({},K,{contentEditable:L,suppressContentEditableWarning:!0}));var Y=u.createElement(F,K,u.createElement(Z,o({},R,{key:D})));O.push({block:Y,wrapperTemplate:z,key:D,offsetKey:P}),M=z?_.getDepth():null,C=z}for(var V=[],G=0;G<O.length;){var W=O[G];if(W.wrapperTemplate){var q=[];do{q.push(O[G].block),G++}while(G<O.length&&O[G].wrapperTemplate===W.wrapperTemplate);var Q=u.cloneElement(W.wrapperTemplate,{key:W.key+"-wrap","data-offset-key":W.offsetKey},q);V.push(Q)}else V.push(W.block),G++}return u.createElement("div",{"data-contents":"true"},V)},r}(u.Component);e.exports=h},7791:(e,t,n)=>{"use strict";var r=n(8642)("draft_tree_data_support");e.exports=n(r?9459:8795)},9459:(e,t,n)=>{"use strict";var r=n(7418);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}var i=n(5821),a=n(2146),s=n(359),c=n(2045),u=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var u=r.prototype;return u.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},u.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,u=e.customStyleMap,l=e.customStyleFn,p=e.editorState,f=e.editorKey,d=e.textDirectionality,h=p.getCurrentContent(),g=p.getSelection(),m=p.mustForceSelection(),y=p.getDecorator(),v=c(p.getDirectionMap()),b=[],w=h.getBlocksAsArray()[0];w;){var S=w.getKey(),E={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,contentState:h,customStyleFn:l,customStyleMap:u,decorator:y,editorKey:f,editorState:p,forceSelection:m,selection:g,block:w,direction:d||v.get(S),tree:p.getBlockTree(S)},k=(t.get(w.getType())||t.get("unstyled")).wrapper;b.push({block:s.createElement(i,o({key:S},E)),wrapperTemplate:k,key:S,offsetKey:a.encode(S,0,0)});var O=w.getNextSiblingKey();w=O?h.getBlockForKey(O):null}for(var M=[],C=0;C<b.length;){var x=b[C];if(x.wrapperTemplate){var _=[];do{_.push(b[C].block),C++}while(C<b.length&&b[C].wrapperTemplate===x.wrapperTemplate);var D=s.cloneElement(x.wrapperTemplate,{key:x.key+"-wrap","data-offset-key":x.offsetKey},_);M.push(D)}else M.push(x.block),C++}return s.createElement("div",{"data-contents":"true"},M)},r}(s.Component);e.exports=u},3259:(e,t,n)=>{"use strict";var r=n(7418);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}var i=n(2146),a=n(359),s=n(4191),c=n(6633),u=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(){var e=this.props,t=e.block,n=e.children,r=e.contentState,u=e.decorator,l=e.decoratorKey,p=e.direction,f=e.leafSet,d=e.text,h=t.getKey(),g=f.get("leaves"),m=u.getComponentForKey(l),y=u.getPropsForKey(l),v=i.encode(h,parseInt(l,10),0),b=d.slice(g.first().get("start"),g.last().get("end")),w=c.getHTMLDirIfDifferent(s.getDirection(b),p);return a.createElement(m,o({},y,{contentState:r,decoratedText:b,dir:w,key:v,entityKey:t.getEntityAt(f.get("start")),offsetKey:v}),n)},r}(a.Component);e.exports=u},1494:(e,t,n)=>{"use strict";var r=n(4891),o=n(2307),i=n(4289),a=n(9270),s=n(5795),c=n(1738),u=n(4486),l=n(8083),p=n(2177),f=n(2045),d={onDragEnd:function(e){e.exitCurrentMode(),h(e)},onDrop:function(e,t){var n=new r(t.nativeEvent.dataTransfer),l=e._latestEditorState,d=function(e,t){var n=null,r=null,o=s(e.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(e.x,e.y);n=i.startContainer,r=i.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=f(n),r=f(r);var c=f(a(n));return u(t,c,r,c,r)}(t.nativeEvent,l);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=d){var m=n.getFiles();if(m.length>0){if(e.props.handleDroppedFiles&&p(e.props.handleDroppedFiles(d,m)))return;c(m,(function(t){t&&e.update(g(l,d,t))}))}else{var y=e._internalDrag?"internal":"external";e.props.handleDrop&&p(e.props.handleDrop(d,n,y))||(e._internalDrag?e.update(function(e,t){var n=o.moveText(e.getCurrentContent(),e.getSelection(),t);return i.push(e,n,"insert-fragment")}(l,d)):e.update(g(l,d,n.getText()))),h(e)}}}};function h(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:l(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function g(e,t,n){var r=o.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return i.push(e,r,"insert-fragment")}e.exports=d},9394:(e,t,n)=>{"use strict";var r=n(4856),o=n(6396),i=n(3421),a=n(6155),s=n(9328),c=n(3935),u=n(9499),l=n(981),p=n(2186),f=n(9971),d=n(6397),h=n(6089),g=n(4507),m=r.isBrowser("Chrome"),y=r.isBrowser("Firefox"),v=m||y?g:function(e){},b={onBeforeInput:o,onBlur:i,onCompositionStart:a,onCopy:s,onCut:c,onDragOver:u,onDragStart:l,onFocus:p,onInput:f,onKeyDown:d,onPaste:h,onSelect:g,onMouseUp:v,onKeyUp:v};e.exports=b},4083:(e,t,n)=>{"use strict";var r=n(4318).unstable_flushControlled;e.exports=r},2282:(e,t,n)=>{"use strict";var r=n(7418),o=n(52),i=n(359),a=n(3759),s=n(6581),c=n(5412).setDraftEditorSelection,u=function(e){var t,n;function u(){for(var t,n,r,o,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return o=void 0,(r="leaf")in(n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(a))||this))?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}n=e,(t=u).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var l=u.prototype;return l._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,o=t.text,i=n.getKey(),u=r+o.length;if(e.hasEdgeWithin(i,r,u)){var l=this.leaf;l||a(!1);var p,f=l.firstChild;f||a(!1),f.nodeType===Node.TEXT_NODE?p=f:s(f)?p=l:(p=f.firstChild)||a(!1),c(e,p,i,r,u)}}},l.shouldComponentUpdate=function(e){var t=this.leaf;return t||a(!1),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},l.componentDidUpdate=function(){this._setSelection()},l.componentDidMount=function(){this._setSelection()},l.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var a=this.props,s=a.customStyleMap,c=a.customStyleFn,u=a.offsetKey,l=a.styleSet,p=l.reduce((function(e,t){var n={},o=s[t];return void 0!==o&&e.textDecoration!==o.textDecoration&&(n.textDecoration=[e.textDecoration,o.textDecoration].join(" ").trim()),r(e,o,n)}),{});if(c){var f=c(l,t);p=r(p,f)}return i.createElement("span",{"data-offset-key":u,ref:function(t){return e.leaf=t},style:p},i.createElement(o,null,n))},u}(i.Component);e.exports=u},9513:(e,t,n)=>{"use strict";var r=n(3259),o=n(2282),i=n(2146),a=n(3393),s=n(359),c=n(2620),u=(a.List,function(e){var t,n;function a(){return e.apply(this,arguments)||this}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a.prototype.render=function(){var e=this.props,t=e.block,n=e.contentState,a=e.customStyleFn,u=e.customStyleMap,l=e.decorator,p=e.direction,f=e.forceSelection,d=e.hasSelection,h=e.selection,g=e.tree,m=t.getKey(),y=t.getText(),v=g.size-1,b=this.props.children||g.map((function(e,c){var g=e.get("decoratorKey"),b=e.get("leaves"),w=b.size-1,S=b.map((function(e,n){var r=i.encode(m,c,n),l=e.get("start"),p=e.get("end");return s.createElement(o,{key:r,offsetKey:r,block:t,start:l,selection:d?h:null,forceSelection:f,text:y.slice(l,p),styleSet:t.getInlineStyleAt(l),customStyleMap:u,customStyleFn:a,isLast:g===v&&n===w})})).toArray();return g&&l?s.createElement(r,{block:t,children:S,contentState:n,decorator:l,decoratorKey:g,direction:p,leafSet:e,text:y,key:c}):S})).toArray();return s.createElement("div",{"data-offset-key":i.encode(m,0,0),className:c({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===p,"public/DraftStyleDefault/rtl":"RTL"===p})},b)},a}(s.Component));e.exports=u},8094:(e,t,n)=>{"use strict";var r=n(359),o=n(2620),i=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=i.prototype;return a.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},a.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=o({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return r.createElement("div",{className:t},r.createElement("div",{className:o("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},i}(r.Component);e.exports=i},52:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(359),a=n(4856),s=n(3759),c=n(4368),u=a.isBrowser("IE <= 11"),l=function(e){var t,n;function a(t){var n;return o(r(n=e.call(this,t)||this),"_forceFlag",void 0),o(r(n),"_node",void 0),n._forceFlag=!1,n}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var l=a.prototype;return l.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;c(t)||s(!1);var r=t;return n?!function(e){return u?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},l.componentDidMount=function(){this._forceFlag=!this._forceFlag},l.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},l.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},u?i.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):i.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return u?i.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):i.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):i.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},a}(i.Component);e.exports=l},5880:e=>{"use strict";e.exports={initODS:function(){},handleExtensionCausedError:function(){}}},2222:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(9006),i=n(3393),a=n(3759),s=n(6363),c=(0,i.Map)(),u=s();function l(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var p={getLastCreatedEntityKey:function(){return l("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),p.__getLastCreatedEntityKey()},create:function(e,t,n){return l("DraftEntity.create","contentState.createEntity"),p.__create(e,t,n)},add:function(e){return l("DraftEntity.add","contentState.addEntity"),p.__add(e)},get:function(e){return l("DraftEntity.get","contentState.getEntity"),p.__get(e)},__getAll:function(){return c},__loadWithEntities:function(e){c=e,u=s()},mergeData:function(e,t){return l("DraftEntity.mergeData","contentState.mergeEntityData"),p.__mergeData(e,t)},replaceData:function(e,t){return l("DraftEntity.replaceData","contentState.replaceEntityData"),p.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return u},__create:function(e,t,n){return p.__add(new o({type:e,mutability:t,data:n||{}}))},__add:function(e){return u=s(),c=c.set(u,e),u},__get:function(e){var t=c.get(e);return t||a(!1),t},__mergeData:function(e,t){var n=p.__get(e),o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},n.getData(),t),i=n.set("data",o);return c=c.set(e,i),i},__replaceData:function(e,t){var n=p.__get(e).set("data",t);return c=c.set(e,n),n}};e.exports=p},9006:(e,t,n)=>{"use strict";var r=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},r}((0,n(3393).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));e.exports=r},5195:e=>{"use strict";e.exports={getRemovalRange:function(e,t,n,r,o){var i=n.split(" ");i=i.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e}));for(var a,s=r,c=null,u=null,l=0;l<i.length;l++){if(e<(a=s+i[l].length)&&s<t)null!==c||(c=s),u=a;else if(null!==c)break;s=a}var p=r+n.length,f=c===r,d=u===p;return(!f&&d||f&&!d)&&("forward"===o?u!==p&&u++:c!==r&&c--),{start:c,end:u}}}},7432:e=>{"use strict";e.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}},2307:(e,t,n)=>{"use strict";var r=n(4516),o=n(3483),i=n(8750),a=n(1446),s=n(8687),c=n(3393),u=n(4542),l=n(8467),p=n(3759),f=n(7429),d=n(4017),h=n(4879),g=n(6043),m=c.OrderedSet,y={replaceText:function(e,t,n,o,i){var a=d(e,t),s=h(a,t),c=r.create({style:o||m(),entity:i||null});return l(s,s.getSelectionAfter(),n,c)},insertText:function(e,t,n,r,o){return t.isCollapsed()||p(!1),y.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=s(e,t),o=y.removeRange(e,t,"backward");return y.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=d(e,t),i=h(o,t);return u(i,i.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,o,i,s;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),i=e.getBlockForKey(r),s=e.getBlockForKey(o);var c=t.getStartOffset(),u=t.getEndOffset(),l=i.getEntityAt(c),p=s.getEntityAt(u-1);if(r===o&&l&&l===p){var f=a(e.getEntityMap(),i,s,t,n);return h(e,f)}var g=d(e,t);return h(g,t)},splitBlock:function(e,t){var n=d(e,t),r=h(n,t);return g(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return o.add(e,t,n)},removeInlineStyle:function(e,t,n){return o.remove(e,t,n)},setBlockType:function(e,t,n){return f(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return f(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return f(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=d(e,t);return i(r,t,n)}};e.exports=y},2146:e=>{"use strict";var t="-",n={encode:function(e,n,r){return e+t+n+t+r},decode:function(e){var n=e.split(t).reverse(),r=n[0],o=n[1];return{blockKey:n.slice(2).reverse().join(t),decoratorKey:parseInt(o,10),leafKey:parseInt(r,10)}}};e.exports=n},5712:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(8777),i=n(7953),a=n(7841),s=n(5027),c=n(9769),u=n(8642),l=n(3393),p=n(5283),f=l.List,d=l.Repeat,h=u("draft_tree_data_support"),g=h?i:o,m={processHTML:function(e,t){return a(e,c,t)},processText:function(e,t,n){return e.reduce((function(e,o,i){o=p(o);var a=s(),c={key:a,type:n,text:o,characterList:f(d(t,o.length))};if(h&&0!==i){var u=i-1;c=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},c,{prevSibling:(e[u]=e[u].merge({nextSibling:a})).getKey()})}return e.push(new g(c)),e}),[])}};e.exports=m},3932:(e,t,n)=>{"use strict";var r="['‘’]",o="\\s|(?![_])"+n(5724).getPunctuation(),i=new RegExp("^(?:"+o+")*(?:"+r+"|(?!"+o+").)*(?:(?!"+o+").)"),a=new RegExp("(?:(?!"+o+").)(?:"+r+"|(?!"+o+").)*(?:"+o+")*$");function s(e,t){var n=t?a.exec(e):i.exec(e);return n?n[0]:e}var c={getBackward:function(e){return s(e,!0)},getForward:function(e){return s(e,!1)}};e.exports=c},589:e=>{"use strict";var t={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=t},8957:(e,t,n)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(5027),a=n(3759),s=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},c={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||a(!1),Array.isArray(t)&&t.length?(function(e,t){for(var o=[].concat(e).reverse();o.length;){var i=o.pop();l=void 0,l=r({},u=i),s(u)&&(l.depth=l.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?r({},t,{depth:(e.depth||0)+1}):t})))}(u),null!=u.children&&u.children.length>0)||(delete l.children,n.push(l));var c=i.children;Array.isArray(c)||a(!1),o=o.concat([].concat(c.reverse()))}var u,l}(t),e.blocks=n,r({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var o=s(e),a=e.depth||0,c=r({},e,{children:[]});if(o){var u=n[0];if(null==u&&0===a)t.push(c);else if(null==u||u.depth<a-1){var l={key:i(),text:"",depth:a-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(l),1===a?t.push(l):null!=u&&u.children.push(l),l.children.push(c)}else if(u.depth===a-1)u.children.push(c);else{for(;null!=u&&u.depth>=a;)n.shift(),u=n[0];a>0?u.children.push(c):t.push(c)}}else t.push(c)})),r({},e,{blocks:t})}};e.exports=c},2119:(e,t,n)=>{"use strict";n(3620),e.exports={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r&&!t.get(r).getChildKeys().includes(n))return!1;if(!e.getChildKeys().map((function(e){return t.get(e)})).every((function(e){return e.getParentKey()===n})))return!1;var o=e.getPrevSiblingKey();if(null!=o&&t.get(o).getNextSiblingKey()!==n)return!1;var i=e.getNextSiblingKey();return(null==i||t.get(i).getPrevSiblingKey()===n)&&!(null!==i&&null!==o&&o===i||""!=e.text&&e.getChildKeys().size>0)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return!1;for(var n=0,r=t.shift().getKey(),o=[];null!=r;){var i=e.get(r),a=i.getChildKeys(),s=i.getNextSiblingKey();if(a.size>0){null!=s&&o.unshift(s);var c=a.map((function(t){return e.get(t)})).find((function(e){return null==e.getPrevSiblingKey()}));if(null==c)return!1;r=c.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}}},3337:(e,t,n)=>{"use strict";var r,o=n(7902),i=n(3393),a=n(2045),s=i.OrderedMap,c={getDirectionMap:function(e,t){r?r.reset():r=new o;var n=e.getBlockMap(),c=n.valueSeq().map((function(e){return a(r).getDirection(e.getText())})),u=s(n.keySeq().zip(c));return null!=t&&i.is(t,u)?t:u}};e.exports=c},4289:(e,t,n)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(4365),a=n(6912),s=n(3337),c=n(5110),u=n(3393),l=u.OrderedSet,p=u.Record,f=u.Stack,d=u.OrderedMap,h=u.List,g=p({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:f(),selection:null,treeMap:null,undoStack:f()}),m=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(a.createFromText(e),n)},t.createWithContent=function(e,n){if(0===e.getBlockMap().count())return t.createEmpty(n);var r=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:f(),redoStack:f(),decorator:n||null,selection:c.createEmpty(r)})},t.create=function(e){var n=e.currentContent,o=r({},e,{treeMap:v(n,e.decorator),directionMap:s.getDirectionMap(n)});return new t(new g(o))},t.fromJS=function(e){return new t(new g(r({},e,{directionMap:null!=e.directionMap?d(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?l(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?a.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?f(e.redoStack.map((function(e){return a.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new c(e.selection):e.selection,treeMap:null!=e.treeMap?d(e.treeMap).map((function(e){return h(e).map((function(e){return i.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?f(e.undoStack.map((function(e){return a.fromJS(e)}))):e.undoStack,currentContent:a.fromJS(e.currentContent)})))},t.set=function(e,n){return new t(e.getImmutable().withMutations((function(t){var r=t.get("decorator"),o=r;null===n.decorator?o=null:n.decorator&&(o=n.decorator);var a=n.currentContent||e.getCurrentContent();if(o!==r){var s,c=t.get("treeMap");return s=o&&r?function(e,t,n,r,o){return n.merge(t.toSeq().filter((function(t){return r.getDecorations(t,e)!==o.getDecorations(t,e)})).map((function(t){return i.generate(e,t,r)})))}(a,a.getBlockMap(),c,o,r):v(a,o),void t.merge({decorator:o,treeMap:s,nativelyRenderedContent:null})}a!==e.getCurrentContent()&&t.set("treeMap",function(e,t,n,r){var o=e.getCurrentContent().set("entityMap",n),a=o.getBlockMap();return e.getImmutable().get("treeMap").merge(t.toSeq().filter((function(e,t){return e!==a.get(t)})).map((function(e){return i.generate(o,e,r)})))}(e,a.getBlockMap(),a.getEntityMap(),o)),t.merge(n)})))};var e=t.prototype;function t(e){o(this,"_immutable",void 0),this._immutable=e}return e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,n){return t.set(e,{inlineStyleOverride:n})},e.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);return r>0?o.getInlineStyleAt(r-1):o.getLength()?o.getInlineStyleAt(0):b(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);return r<o.getLength()?o.getInlineStyleAt(r):r>0?o.getInlineStyleAt(r-1):b(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return y(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),y(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new c({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var i=s.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=e.getSelection(),c=e.getCurrentContent(),u=e.getUndoStack(),l=n;a!==c.getSelectionAfter()||function(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,r)?(u=u.push(c),l=l.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(l=l.set("selectionBefore",c.getSelectionBefore()));var p=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(p=null);var d={currentContent:l,directionMap:i,undoStack:u,redoStack:f(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:p};return t.set(e,d)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=s.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=s.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:e.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function y(e,t,n){return m.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function v(e,t){return e.getBlockMap().map((function(n){return i.generate(e,n,t)})).toOrderedMap()}function b(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):l()}e.exports=m},7387:(e,t,n)=>{"use strict";var r=n(4856),o=n(7797),i=r.isPlatform("Mac OS X"),a={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return i&&e.altKey},usesMacOSHeuristics:function(){return i},hasCommandModifier:function(e){return i?!!e.metaKey&&!e.altKey:a.isCtrlKeyCommand(e)},isSoftNewlineEvent:o};e.exports=a},54:()=>{},1947:(e,t,n)=>{"use strict";var r=n(2307),o=n(4289),i=n(1665),a=n(2045),s={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return s.toggleInlineStyle(e,"BOLD");case"italic":return s.toggleInlineStyle(e,"ITALIC");case"underline":return s.toggleInlineStyle(e,"UNDERLINE");case"code":return s.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return s.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return s.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=r.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=o.push(e,t,"insert-characters");return o.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),i=n.getBlockBefore(r);if(i&&"atomic"===i.getType()){var a=n.getBlockMap().delete(i.getKey()),c=n.merge({blockMap:a,selectionAfter:t});if(c!==n)return o.push(e,c,"remove-range")}var u=s.tryToRemoveBlockStyle(e);return u?o.push(e,u,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),i=t.getStartKey(),a=n.getBlockForKey(i).getLength();if(t.getStartOffset()<a)return null;var s=n.getBlockAfter(i);if(!s||"atomic"!==s.getType())return null;var c=t.merge({focusKey:s.getKey(),focusOffset:s.getLength()}),u=r.removeRange(n,c,"forward");return u!==n?o.push(e,u,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),a=r.getAnchorKey();if(a!==r.getFocusKey())return t;var s=t.getCurrentContent(),c=s.getBlockForKey(a),u=c.getType();if("unordered-list-item"!==u&&"ordered-list-item"!==u)return t;e.preventDefault();var l=c.getDepth();if(!e.shiftKey&&l===n)return t;var p=i(s,r,e.shiftKey?-1:1,n);return o.push(t,p,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),i=n.getStartKey(),s=n.getEndKey(),c=e.getCurrentContent(),u=n;if(i!==s&&0===n.getEndOffset()){var l=a(c.getBlockBefore(s));s=l.getKey(),u=u.merge({anchorKey:i,anchorOffset:n.getStartOffset(),focusKey:s,focusOffset:l.getLength(),isBackward:!1})}if(c.getBlockMap().skipWhile((function(e,t){return t!==i})).reverse().skipWhile((function(e,t){return t!==s})).some((function(e){return"atomic"===e.getType()})))return e;var p=c.getBlockForKey(i).getType()===t?"unstyled":t;return o.push(e,r.setBlockType(c,u,p),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?s.toggleBlockType(e,"code-block"):s.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),i=e.getCurrentInlineStyle();if(n.isCollapsed())return o.setInlineStyleOverride(e,i.has(t)?i.remove(t):i.add(t));var a,s=e.getCurrentContent();return a=i.has(t)?r.removeInlineStyle(s,n,t):r.applyInlineStyle(s,n,t),o.push(e,a,"change-inline-style")},toggleLink:function(e,t,n){var i=r.applyEntity(e.getCurrentContent(),t,n);return o.push(e,i,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var o=t.getAnchorKey(),i=e.getCurrentContent(),a=i.getBlockForKey(o).getType(),s=i.getBlockBefore(o);if("code-block"===a&&s&&"code-block"===s.getType()&&0!==s.getLength())return null;if("unstyled"!==a)return r.setBlockType(i,t,"unstyled")}return null}};e.exports=s},3751:(e,t,n)=>{"use strict";var r=n(2307),o=n(4289),i=n(8687),a=n(2045),s=null,c={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),c=null;if(n.isCollapsed()){var u=n.getAnchorKey(),l=t.getBlockForKey(u).getLength();if(l===n.getAnchorOffset()){var p=t.getKeyAfter(u);if(null==p)return e;c=n.set("focusKey",p).set("focusOffset",0)}else c=n.set("focusOffset",l)}else c=n;c=a(c),s=i(t,c);var f=r.removeRange(t,c,"forward");return f===t?e:o.push(e,f,"remove-range")},paste:function(e){if(!s)return e;var t=r.replaceWithFragment(e.getCurrentContent(),e.getSelection(),s);return o.push(e,t,"insert-fragment")}};e.exports=c},5110:(e,t,n)=>{"use strict";var r=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var i=this.getStartOffset(),a=this.getEndOffset();return t<=i&&i<=n||t<=a&&a<=n}if(e!==r&&e!==o)return!1;var s=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=s&&n>=s},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,n(3393).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=r},1665:e=>{"use strict";e.exports=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},2835:(e,t,n)=>{"use strict";var r=n(4516);e.exports=function(e,t,n,o){for(var i=t,a=e.getCharacterList();i<n;)a=a.set(i,r.applyEntity(a.get(i),o)),i++;return e.set("characterList",a)}},8750:(e,t,n)=>{"use strict";var r=n(2835),o=n(3393);e.exports=function(e,t,n){var i=e.getBlockMap(),a=t.getStartKey(),s=t.getStartOffset(),c=t.getEndKey(),u=t.getEndOffset(),l=i.skipUntil((function(e,t){return t===a})).takeUntil((function(e,t){return t===c})).toOrderedMap().merge(o.OrderedMap([[c,i.get(c)]])).map((function(e,t){var o=t===a?s:0,i=t===c?u:e.getLength();return r(e,o,i,n)}));return e.merge({blockMap:i.merge(l),selectionBefore:t,selectionAfter:t})}},9981:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(8777),i=n(7953),a=n(589),s=n(6265),c=n(1487),u=n(3759),l=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:c(e),entityRanges:s(e,t),data:e.getData().toObject()}};e.exports=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,s=[],c={},p={},f=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=a.stringify(r);p[o]||(p[o]=r,n[o]="".concat(f),f++)})),function(e,t,n,a){if(e instanceof o)n.push(l(e,t));else{e instanceof i||u(!1);var s=e.getParentKey(),c=a[e.getKey()]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},l(e,t),{children:[]});s?a[s].children.push(c):n.push(c)}}(e,n,s,c)})),{blocks:s,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,r=t.entityMap,o={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(a.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t}},7841:(e,t,n)=>{"use strict";var r;function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(4516),s=n(8777),c=n(7953),u=n(526),l=n(2222),p=n(1425),f=n(2620),d=n(5027),h=n(9769),g=n(8642),m=n(3393),y=m.List,v=m.Map,b=m.OrderedSet,w=n(8241),S=n(6581),E=n(717),k=n(5039),O=g("draft_tree_data_support"),M=new RegExp("\r","g"),C=new RegExp("\n","g"),x=new RegExp("^\n","g"),_=new RegExp(" ","g"),D=new RegExp(" ?","g"),T=new RegExp("​?","g"),j=["bold","bolder","500","600","700","800","900"],I=["light","lighter","normal","100","200","300","400"],N=["className","href","rel","target","title"],L=["alt","className","height","src","width"],A=(i(r={},f("public/DraftStyleDefault/depth0"),0),i(r,f("public/DraftStyleDefault/depth1"),1),i(r,f("public/DraftStyleDefault/depth2"),2),i(r,f("public/DraftStyleDefault/depth3"),3),i(r,f("public/DraftStyleDefault/depth4"),4),r),P=v({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),R=function(e){return E(e)&&e.style.fontFamily.includes("monospace")?"CODE":null},B=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(A).some((function(n){e.classList.contains(n)&&(t=A[n])})),t},z=function(e){if(!w(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{return new p(t.href),!0}catch(e){return!1}},F=function(e){if(!k(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},U=function(e,t){if(!E(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){j.indexOf(r)>=0?e.add("BOLD"):I.indexOf(r)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},H=function(e){return"ul"===e||"ol"===e},Z=function(){function e(e,t){i(this,"characterList",y()),i(this,"currentBlockType","unstyled"),i(this,"currentDepth",0),i(this,"currentEntity",null),i(this,"currentText",""),i(this,"wrapper",null),i(this,"blockConfigs",[]),i(this,"contentBlocks",[]),i(this,"entityMap",l),i(this,"blockTypeMap",void 0),i(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=y(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=l,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],b())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(O?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o({key:e.key||d(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:y(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=y(),this.currentBlockType="unstyled",this.currentText="",t},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=o.nodeName.toLowerCase();if("body"===i||H(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,s=this.wrapper;H(i)&&(this.wrapper=i,H(s)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),t)),this.currentDepth=a,this.wrapper=s}else{var c=this.blockTypeMap.get(i);if(void 0===c)if("#text"!==i)if("br"!==i)if(F(o))this._addImgNode(o,t);else if(z(o))this._addAnchorNode(o,n,t);else{var u=t;P.has(i)&&(u=u.add(P.get(i))),u=U(o,u);var l=R(o);null!=l&&(u=u.add(l)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),u))}else this._addBreakNode(o,t);else this._addTextNode(o,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var p=this.currentDepth,f=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof c&&(c=this.disambiguate(i,this.wrapper)||c[0]||"unstyled"),!O&&E(o)&&("unordered-list-item"===c||"ordered-list-item"===c)){var h=o;this.currentDepth=B(h,this.currentDepth)}var g=d(),m=this._toBlockConfigs(Array.from(o.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:g,childConfigs:m,type:c})),this.currentDepth=p,this.wrapper=f}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=a.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(r))},t._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry((function(e){return null!==e.getEntity()}));(t=void 0!==r?Math.min(t,r[0]):t)>(n=void 0!==(r=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-r[0]):n)?(this.currentText="",this.characterList=y()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(x,"")).replace(C," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){S(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(k(e)){var n=e,r={};L.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),g("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(w(e)){var r=e,o={};N.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new p(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var i=e[r];i.parent=t,i.prevSibling=r>0?e[r-1].key:null,i.nextSibling=r<n?e[r+1].key:null,i.children=y(i.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new c(o({},i))),this._toContentBlocks(i.childConfigs,i.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return y(e).flatMap((function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)}))},t._toFlatContentBlocks=function(e){var t=this;this._hoistContainersInBlockConfigs(e).forEach((function(e){var n=t._extractTextFromBlockConfigs(e.childConfigs),r=n.text,i=n.characterList;t.contentBlocks.push(new s(o({},e,{text:e.text+r,characterList:e.characterList.concat(i)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=y(),o=0;o<=t;o++){var i=e[o];n+=i.text,r=r.concat(i.characterList),""!==n&&"unstyled"!==i.type&&(n+="\n",r=r.push(r.last()));var a=this._extractTextFromBlockConfigs(i.childConfigs);n+=a.text,r=r.concat(a.characterList)}return{text:n,characterList:r}},e}();e.exports=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:h)(e=e.trim().replace(M,"").replace(_," ").replace(D,"").replace(T,""));if(!n)return null;var r=function(e){var t={};return e.mapKeys((function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach((function(n){void 0===t[n]?t[n]=e:"string"==typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),v(t)}(t);return new Z(r,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()}},9607:(e,t,n)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(8777),a=n(7953),s=n(6912),c=n(2222),u=n(8957),l=(n(2119),n(5110)),p=n(6019),f=n(7134),d=n(9672),h=n(5027),g=n(8642),m=n(3393),y=n(3759),v=g("draft_tree_data_support"),b=m.List,w=m.Map,S=m.OrderedMap,E=function(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||h(),data:w(o),characterList:k(e,t)}},k=function(e,t){var n=e.text,o=e.entityRanges,i=e.inlineStyleRanges,a=o||[];return p(d(n,i||[]),f(n,a.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return r({},e,{key:t[e.key]})}))))},O=function(e){return r({},e,{key:e.key||h()})},M=function(e,t,n){var o=t.map((function(e){return r({},e,{parentRef:n})}));return e.concat(o.reverse())};e.exports=function(e){Array.isArray(e.blocks)||y(!1);var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=c.__create(o,i,a||{})})),n}(e),n=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),o=v&&!n?u.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!v)return function(e,t){return S(e.map((function(e){var n=new i(E(e,t));return[n.getKey(),n]})))}(n?u.fromRawTreeStateToRawState(e).blocks:o,t);var s=function(e,t){return e.map(O).reduce((function(n,o,i){Array.isArray(o.children)||y(!1);var s=o.children.map(O),c=new a(r({},E(o,t),{prevSibling:0===i?null:e[i-1].key,nextSibling:i===e.length-1?null:e[i+1].key,children:b(s.map((function(e){return e.key})))}));n=n.set(c.getKey(),c);for(var u=M([],s,c);u.length>0;){var l=u.pop(),p=l.parentRef,f=p.getChildKeys(),d=f.indexOf(l.key),h=Array.isArray(l.children);if(!h){h||y(!1);break}var g=l.children.map(O),m=new a(r({},E(l,t),{parent:p.getKey(),children:b(g.map((function(e){return e.key}))),prevSibling:0===d?null:f.get(d-1),nextSibling:d===f.size-1?null:f.get(d+1)}));n=n.set(m.getKey(),m),u=M(u,g,m)}return n}),S())}(o,t);return s}(e,t),o=n.isEmpty()?new l:l.createEmpty(n.first().getKey());return new s({blockMap:n,entityMap:t,selectionBefore:o,selectionAfter:o})}},6019:(e,t,n)=>{"use strict";var r=n(4516),o=n(3393).List;e.exports=function(e,t){var n=e.map((function(e,n){var o=t[n];return r.create({style:e,entity:o})}));return o(n)}},7134:(e,t,n)=>{"use strict";var r=n(8935).substr;e.exports=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var o=r(e,0,t.offset).length,i=o+r(e,t.offset,t.length).length,a=o;a<i;a++)n[a]=t.key})),n}},9672:(e,t,n)=>{"use strict";var r=n(8935),o=n(3393).OrderedSet,i=r.substr,a=o();e.exports=function(e,t){var n=Array(e.length).fill(a);return t&&t.forEach((function(t){for(var r=i(e,0,t.offset).length,o=r+i(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n}},9780:e=>{"use strict";e.exports={notEmptyKey:function(e){return null!=e&&""!=e}}},6396:(e,t,n)=>{"use strict";var r=n(2307),o=n(4289),i=n(4856),a=n(2128),s=n(2177),c=n(258),u=n(2045),l=n(6926),p=i.isBrowser("Firefox");function f(e,t,n,i,a){var s=r.replaceText(e.getCurrentContent(),e.getSelection(),t,n,i);return o.push(e,s,"insert-characters",a)}e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,r=t.data;if(r)if(e.props.handleBeforeInput&&s(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var i=n.getSelection(),d=i.getStartOffset(),h=i.getAnchorKey();if(!i.isCollapsed())return t.preventDefault(),void e.update(f(n,r,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!0));var g,m=f(n,r,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!1),y=!1;if(y||(y=c(e._latestCommittedEditorState)),!y){var v=n.getBlockTree(h),b=m.getBlockTree(h);y=v.size!==b.size||v.zip(b).some((function(e){var t=e[0],n=e[1],o=t.get("start"),i=o+(o>=d?r.length:0),a=t.get("end"),s=a+(a>=d?r.length:0),c=n.get("start"),u=n.get("end"),l=n.get("decoratorKey");return t.get("decoratorKey")!==l||t.get("leaves").size!==n.get("leaves").size||i!==c||s!==u||null!=l&&u-c!=a-o}))}if(y||(g=r,y=p&&("'"==g||"/"==g)),y||(y=u(m.getDirectionMap()).get(h)!==u(n.getDirectionMap()).get(h)),y)return t.preventDefault(),m=o.set(m,{forceSelection:!0}),void e.update(m);m=o.set(m,{nativelyRenderedContent:m.getCurrentContent()}),e._pendingStateFromBeforeInput=m,l((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}}},3421:(e,t,n)=>{"use strict";var r=n(4289),o=n(7476),i=n(1003);e.exports=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&i(n)===n.body){var a=n.defaultView.getSelection(),s=e.editor;1===a.rangeCount&&o(s,a.anchorNode)&&o(s,a.focusNode)&&a.removeAllRanges()}var c=e._latestEditorState,u=c.getSelection();if(u.getHasFocus()){var l=u.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(r.acceptSelection(c,l))}}},6155:(e,t,n)=>{"use strict";var r=n(4289);e.exports=function(e,t){e.setMode("composite"),e.update(r.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}},9328:(e,t,n)=>{"use strict";var r=n(4882);e.exports=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(r(e._latestEditorState))}},3935:(e,t,n)=>{"use strict";var r=n(2307),o=n(4289),i=n(9051),a=n(4882),s=n(9749),c=n(809);e.exports=function(e,t){var n,u=e._latestEditorState,l=u.getSelection(),p=t.target;if(l.isCollapsed())t.preventDefault();else{if(c(p)){var f=p;n=s(i.getScrollParent(f))}var d=a(u);e.setClipboard(d),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=r.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return o.push(e,t,"remove-range")}(u))}),0)}}},9499:e=>{"use strict";e.exports=function(e,t){e.setMode("drag"),t.preventDefault()}},981:e=>{"use strict";e.exports=function(e){e._internalDrag=!0,e.setMode("drag")}},2186:(e,t,n)=>{"use strict";var r=n(4289),o=n(4856);e.exports=function(e,t){var n=e._latestEditorState,i=n.getSelection();if(!i.getHasFocus()){var a=i.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),o.isBrowser("Chrome < 60.0.3081.0")?e.update(r.forceSelection(n,a)):e.update(r.acceptSelection(n,a))}}},9971:(e,t,n)=>{"use strict";var r=n(2307),o=n(2146),i=n(4289),a=n(4856),s=n(9780).notEmptyKey,c=n(9270),u=n(2800),l=n(2045),p=a.isEngine("Gecko");e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),a=n.anchorNode,f=n.isCollapsed,d=(null==a?void 0:a.nodeType)!==Node.TEXT_NODE&&(null==a?void 0:a.nodeType)!==Node.ELEMENT_NODE;if(null!=a&&!d){if(a.nodeType===Node.TEXT_NODE&&(null!==a.previousSibling||null!==a.nextSibling)){var h=a.parentNode;if(null==h)return;a.nodeValue=h.textContent;for(var g=h.firstChild;null!=g;g=g.nextSibling)g!==a&&h.removeChild(g)}var m=a.textContent,y=e._latestEditorState,v=l(c(a)),b=o.decode(v),w=b.blockKey,S=b.decoratorKey,E=b.leafKey,k=y.getBlockTree(w).getIn([S,"leaves",E]),O=k.start,M=k.end,C=y.getCurrentContent(),x=C.getBlockForKey(w),_=x.getText().slice(O,M);if(m.endsWith("\n\n")&&(m=m.slice(0,-1)),m!==_){var D,T,j,I,N=y.getSelection(),L=N.merge({anchorOffset:O,focusOffset:M,isBackward:!1}),A=x.getEntityAt(O),P=s(A)?C.getEntity(A):null,R="MUTABLE"===(null!=P?P.getMutability():null),B=R?"spellcheck-change":"apply-entity",z=r.replaceText(C,L,m,x.getInlineStyleAt(O),R?x.getEntityAt(O):null);if(p)D=n.anchorOffset,T=n.focusOffset,I=(j=O+Math.min(D,T))+Math.abs(D-T),D=j,T=I;else{var F=m.length-_.length;j=N.getStartOffset(),I=N.getEndOffset(),D=f?I+F:j,T=I+F}var U=z.merge({selectionBefore:C.getSelectionAfter(),selectionAfter:N.merge({anchorOffset:D,focusOffset:T})});e.update(i.push(y,U,B))}else{var H=t.nativeEvent.inputType;if(H){var Z=function(e,t){return"deleteContentBackward"===e?u(t):t}(H,y);if(Z!==y)return e.restoreEditorDOM(),void e.update(Z)}}}}},6397:(e,t,n)=>{"use strict";var r=n(2307),o=n(4289),i=n(7387),a=n(5399),s=n(3751),c=n(4856),u=n(2177),l=n(9779),p=n(2422),f=n(3767),d=n(7978),h=n(7217),g=n(8425),m=n(2800),y=n(3998),v=n(3318),b=n(7051),w=i.isOptionKeyCommand,S=c.isBrowser("Chrome");e.exports=function(e,t){var n=t.which,i=e._latestEditorState;function c(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case a.RETURN:if(t.preventDefault(),e.props.handleReturn&&u(e.props.handleReturn(t,i)))return;break;case a.ESC:if(t.preventDefault(),c("onEscape"))return;break;case a.TAB:if(c("onTab"))return;break;case a.UP:if(c("onUpArrow"))return;break;case a.RIGHT:if(c("onRightArrow"))return;break;case a.DOWN:if(c("onDownArrow"))return;break;case a.LEFT:if(c("onLeftArrow"))return;break;case a.SPACE:S&&w(t)&&t.preventDefault()}var E=e.props.keyBindingFn(t);if(null!=E&&""!==E)if("undo"!==E){if(t.preventDefault(),!e.props.handleKeyCommand||!u(e.props.handleKeyCommand(E,i,t.timeStamp))){var k=function(e,t,n){switch(e){case"redo":return o.redo(t);case"delete":return y(t);case"delete-word":return f(t);case"backspace":return m(t);case"backspace-word":return p(t);case"backspace-to-start-of-line":return l(t,n);case"split-block":return d(t);case"transpose-characters":return v(t);case"move-selection-to-start-of-block":return g(t);case"move-selection-to-end-of-block":return h(t);case"secondary-cut":return s.cut(t);case"secondary-paste":return s.paste(t);default:return t}}(E,i,t);k!==i&&e.update(k)}}else b(t,i,e.update);else if(n===a.SPACE&&S&&w(t)){var O=r.replaceText(i.getCurrentContent(),i.getSelection()," ");e.update(o.push(i,O,"insert-characters"))}}},6089:(e,t,n)=>{"use strict";var r=n(329),o=n(4516),i=n(4891),a=n(2307),s=n(5712),c=n(4289),u=n(1947),l=n(2128),p=n(1738),f=n(2177),d=n(4300);function h(e,t,n){var r=a.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return c.push(e,r.set("entityMap",n),"insert-fragment")}e.exports=function(e,t){t.preventDefault();var n=new i(t.clipboardData);if(!n.isRichText()){var g=n.getFiles(),m=n.getText();if(g.length>0){if(e.props.handlePastedFiles&&f(e.props.handlePastedFiles(g)))return;return void p(g,(function(t){if(t=t||m){var n=e._latestEditorState,i=d(t),p=o.create({style:n.getCurrentInlineStyle(),entity:l(n.getCurrentContent(),n.getSelection())}),f=u.getCurrentBlockType(n),h=s.processText(i,p,f),g=r.createFromArray(h),y=a.replaceWithFragment(n.getCurrentContent(),n.getSelection(),g);e.update(c.push(n,y,"insert-fragment"))}}))}}var y=[],v=n.getText(),b=n.getHTML(),w=e._latestEditorState;if(e.props.formatPastedText){var S=e.props.formatPastedText(v,b);v=S.text,b=S.html}if(!e.props.handlePastedText||!f(e.props.handlePastedText(v,b,w))){if(v&&(y=d(v)),!e.props.stripPastedStyles){var E,k=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&k){if(-1!==(null===(E=b)||void 0===E?void 0:E.indexOf(e.getEditorKey()))||1===y.length&&1===k.size&&k.first().getText()===v)return void e.update(h(e._latestEditorState,k))}else if(k&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(y,k))return void e.update(h(e._latestEditorState,k));if(b){var O=s.processHTML(b,e.props.blockRenderMap);if(O){var M=O.contentBlocks,C=O.entityMap;if(M){var x=r.createFromArray(M);return void e.update(h(e._latestEditorState,x,C))}}}e.setClipboard(null)}if(y.length){var _=o.create({style:w.getCurrentInlineStyle(),entity:l(w.getCurrentContent(),w.getSelection())}),D=u.getCurrentBlockType(w),T=s.processText(y,_,D),j=r.createFromArray(T);e.update(h(e._latestEditorState,j))}}}},4507:(e,t,n)=>{"use strict";var r=n(7432),o=n(4289),i=n(4907),a=n(1244);e.exports=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();r.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,s=a(n,i(e)),c=s.selectionState;c!==n.getSelection()&&(n=s.needsRecovery?o.forceSelection(n,c):o.acceptSelection(n,c),e.update(n))}}},6265:(e,t,n)=>{"use strict";var r=n(589),o=n(8935).strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(i,a){var s=e.getText(),c=e.getEntityAt(i);n.push({offset:o(s.slice(0,i)),length:o(s.slice(i,a)),key:Number(t[r.stringify(c)])})})),n}},1487:(e,t,n)=>{"use strict";var r=n(8935),o=n(9407),i=function(e,t){return e===t},a=function(e){return!!e},s=[];e.exports=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var s=[],c=t.map((function(e){return e.has(n)})).toList();return o(c,i,a,(function(t,o){var i=e.getText();s.push({offset:r.strlen(i.slice(0,t)),length:r.strlen(i.slice(t,o)),style:n})})),s}(e,t,n)}));return Array.prototype.concat.apply(s,n.toJS())}},8182:(e,t,n)=>{"use strict";var r=n(8935),o=n(5795),i=n(6092),a=n(3759);function s(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var s=e[a];0!==s.width&&1!==s.width&&(n=Math.min(n,s.top),r=Math.min(r,s.bottom),o=Math.max(o,s.top),i=Math.max(i,s.bottom))}return o<=r&&o-n<t&&i-r<t}function c(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}e.exports=function(e){e.collapsed||a(!1);var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=o(e),r=n.createElement("div");r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.fontStyle=t.fontStyle,r.style.fontWeight=t.fontWeight,r.style.lineHeight=t.lineHeight,r.style.position="absolute",r.textContent="M";var i=n.body;i||a(!1),i.appendChild(r);var s=r.getBoundingClientRect();return i.removeChild(r),s.height}(t),u=e.endContainer,l=e.endOffset;for(e.setStart(e.startContainer,0);s(i(e),n)&&(u=e.startContainer,l=e.startOffset,u.parentNode||a(!1),e.setStartBefore(u),1!==u.nodeType||"inline"===getComputedStyle(u).display););for(var p=u,f=l-1;;){for(var d=p.nodeValue,h=f;h>=0;h--)if(!(null!=d&&h>0&&r.isSurrogatePair(d,h-1))){if(e.setStart(p,h),!s(i(e),n))break;u=p,l=h}if(-1===h||0===p.childNodes.length)break;f=c(p=p.childNodes[h])}return e.setStart(u,l),e}},9270:(e,t,n)=>{"use strict";var r=n(5795),o=n(3578);e.exports=function(e){for(var t=e;t&&t!==r(e).documentElement;){var n=o(t);if(null!=n)return n;t=t.parentNode}return null}},9407:e=>{"use strict";e.exports=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),n(e.last())&&r(o,e.count())}}},5027:e=>{"use strict";var t={},n=Math.pow(2,24);e.exports=function(){for(var e;void 0===e||t.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*n).toString(32);return t[e]=!0,e}},1446:(e,t,n)=>{"use strict";var r=n(5195),o=n(4994),i=n(3759);function a(e,t,n,a,s,c,u){var l=n.getStartOffset(),p=n.getEndOffset(),f=e.__get(s).getMutability(),d=u?l:p;if("MUTABLE"===f)return n;var h=o(t,s).filter((function(e){return d<=e.end&&d>=e.start}));1!=h.length&&i(!1);var g=h[0];if("IMMUTABLE"===f)return n.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1});c||(u?p=g.end:l=g.start);var m=r.getRemovalRange(l,p,t.getText().slice(g.start,g.end),g.start,a);return n.merge({anchorOffset:m.start,focusOffset:m.end,isBackward:!1})}e.exports=function(e,t,n,r,o){var i=r.getStartOffset(),s=r.getEndOffset(),c=t.getEntityAt(i),u=n.getEntityAt(s-1);if(!c&&!u)return r;var l=r;if(c&&c===u)l=a(e,t,l,o,c,!0,!0);else if(c&&u){var p=a(e,t,l,o,c,!1,!0),f=a(e,n,l,o,u,!1,!1);l=l.merge({anchorOffset:p.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(c){var d=a(e,t,l,o,c,!1,!0);l=l.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(u){var h=a(e,n,l,o,u,!1,!1);l=l.merge({focusOffset:h.getEndOffset(),isBackward:!1})}return l}},4907:(e,t,n)=>{"use strict";var r=n(3759),o=n(717);e.exports=function(e){var t=e.editorContainer;return t||r(!1),o(t.firstChild)||r(!1),t.firstChild}},8687:(e,t,n)=>{"use strict";var r=n(8555),o=n(4017);e.exports=function(e,t){var n=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=o(e,t).getBlockMap(),u=c.keySeq(),l=u.indexOf(n),p=u.indexOf(a)+1;return r(c.slice(l,p).map((function(e,t){var r=e.getText(),o=e.getCharacterList();return n===a?e.merge({text:r.slice(i,s),characterList:o.slice(i,s)}):t===n?e.merge({text:r.slice(i),characterList:o.slice(i)}):t===a?e.merge({text:r.slice(0,s),characterList:o.slice(0,s)}):e})))}},5795:e=>{"use strict";e.exports=function(e){return e&&e.ownerDocument?e.ownerDocument:document}},1714:(e,t,n)=>{"use strict";var r=n(7387),o=n(5399),i=n(4856),a=i.isPlatform("Mac OS X"),s=a&&i.isBrowser("Firefox < 29"),c=r.hasCommandModifier,u=r.isCtrlKeyCommand;function l(e){return a&&e.altKey||u(e)}e.exports=function(e){switch(e.keyCode){case 66:return c(e)?"bold":null;case 68:return u(e)?"delete":null;case 72:return u(e)?"backspace":null;case 73:return c(e)?"italic":null;case 74:return c(e)?"code":null;case 75:return a&&u(e)?"secondary-cut":null;case 77:case 79:return u(e)?"split-block":null;case 84:return a&&u(e)?"transpose-characters":null;case 85:return c(e)?"underline":null;case 87:return a&&u(e)?"backspace-word":null;case 89:return u(e)?a?"secondary-paste":"redo":null;case 90:return function(e){return c(e)?e.shiftKey?"redo":"undo":null}(e)||null;case o.RETURN:return"split-block";case o.DELETE:return function(e){return!a&&e.shiftKey?null:l(e)?"delete-word":"delete"}(e);case o.BACKSPACE:return function(e){return c(e)&&a?"backspace-to-start-of-line":l(e)?"backspace-word":"backspace"}(e);case o.LEFT:return s&&c(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return s&&c(e)?"move-selection-to-end-of-block":null;default:return null}}},1244:(e,t,n)=>{"use strict";var r=n(2082);e.exports=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),o=n.anchorNode,i=n.anchorOffset,a=n.focusNode,s=n.focusOffset;return 0===n.rangeCount||null==o||null==a?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,t,o,i,a,s)}},2082:(e,t,n)=>{"use strict";var r=n(9270),o=n(3578),i=n(4486),a=n(3759),s=n(4368),c=n(2045);function u(e,t,n){var i=t,u=r(i);if(null!=u||e&&(e===i||e.firstChild===i)||a(!1),e===i&&(i=i.firstChild,s(i)||a(!1),"true"!==i.getAttribute("data-contents")&&a(!1),n>0&&(n=i.childNodes.length)),0===n){var p=null;if(null!=u)p=u;else{var f=function(e){for(;e.firstChild&&(s(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||o(e.firstChild));)e=e.firstChild;return e}(i);p=c(o(f))}return{key:p,offset:0}}var d=i.childNodes[n-1],h=null,g=null;if(o(d)){var m=function(e){for(;e.lastChild&&(s(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||o(e.lastChild));)e=e.lastChild;return e}(d);h=c(o(m)),g=l(m)}else h=c(u),g=l(d);return{key:h,offset:g}}function l(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=function(e,t,n,o,a,s){var l=n.nodeType===Node.TEXT_NODE,p=a.nodeType===Node.TEXT_NODE;if(l&&p)return{selectionState:i(e,c(r(n)),o,c(r(a)),s),needsRecovery:!1};var f=null,d=null,h=!0;return l?(f={key:c(r(n)),offset:o},d=u(t,a,s)):p?(d={key:c(r(a)),offset:s},f=u(t,n,o)):(f=u(t,n,o),d=u(t,a,s),n===a&&o===s&&(h=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:i(e,f.key,f.offset,d.key,d.offset),needsRecovery:h}}},2128:(e,t,n)=>{"use strict";var r=n(9780).notEmptyKey;function o(e,t){return r(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),i=t.getAnchorOffset();return i>0?(n=e.getBlockForKey(r).getEntityAt(i-1))!==e.getBlockForKey(r).getEntityAt(i)?null:o(e.getEntityMap(),n):null}var a=t.getStartKey(),s=t.getStartOffset(),c=e.getBlockForKey(a);return n=s===c.getLength()?null:c.getEntityAt(s),o(e.getEntityMap(),n)}},4882:(e,t,n)=>{"use strict";var r=n(8687);e.exports=function(e){var t=e.getSelection();return t.isCollapsed()?null:r(e.getCurrentContent(),t)}},9506:(e,t,n)=>{"use strict";var r=n(7953);e.exports=function(e,t){if(!(e instanceof r))return null;var n=e.getNextSiblingKey();if(n)return n;var o=e.getParentKey();if(!o)return null;for(var i=t.get(o);i&&!i.getNextSiblingKey();){var a=i.getParentKey();i=a?t.get(a):null}return i?i.getNextSiblingKey():null}},6495:e=>{"use strict";e.exports=function(e){return Object.keys(e).map((function(t){return e[t]}))}},8056:(e,t,n)=>{"use strict";var r=n(6092);e.exports=function(e){var t=r(e),n=0,o=0,i=0,a=0;if(t.length){if(t.length>1&&0===t[0].width){var s=t[1];n=s.top,o=s.right,i=s.bottom,a=s.left}else{var c=t[0];n=c.top,o=c.right,i=c.bottom,a=c.left}for(var u=1;u<t.length;u++){var l=t[u];0!==l.height&&0!==l.width&&(n=Math.min(n,l.top),o=Math.max(o,l.right),i=Math.max(i,l.bottom),a=Math.min(a,l.left))}}return{top:n,right:o,bottom:i,left:a,width:o-a,height:i-n}}},6092:(e,t,n)=>{"use strict";var r=n(4856),o=n(3759),i=r.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var i=r===e.commonAncestorContainer;i?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var a,s=Array.from(t.getClientRects());if(n.push(s),i)return n.reverse(),(a=[]).concat.apply(a,n);t.setEndBefore(r)}o(!1)}:function(e){return Array.from(e.getClientRects())};e.exports=i},4994:(e,t,n)=>{"use strict";var r=n(3759);e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),n.length||r(!1),n}},9769:(e,t,n)=>{"use strict";var r=n(4856),o=n(3759),i=r.isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!i&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||o(!1),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},3578:(e,t,n)=>{"use strict";var r=n(4368);e.exports=function e(t){if(r(t)){var n=t,o=n.getAttribute("data-offset-key");if(o)return o;for(var i=0;i<n.childNodes.length;i++){var a=e(n.childNodes[i]);if(a)return a}}return null}},1738:(e,t,n)=>{"use strict";var r=n(3759),o=/\.textClipping$/,i={"text/plain":!0,"text/html":!0,"text/rtf":!0};e.exports=function(e,t){var a=0,s=[];e.forEach((function(c){!function(e,t){if(!n.g.FileReader||e.type&&!(e.type in i))t("");else{if(""===e.type){var a="";return o.test(e.name)&&(a=e.name.replace(o,"")),void t(a)}var s=new FileReader;s.onload=function(){var e=s.result;"string"!=typeof e&&r(!1),t(e)},s.onerror=function(){t("")},s.readAsText(e)}}(c,(function(n){a++,n&&s.push(n.slice(0,5e3)),a==e.length&&t(s.join("\r"))}))}))}},4486:(e,t,n)=>{"use strict";var r=n(2146),o=n(2045);e.exports=function(e,t,n,i,a){var s=o(e.getSelection());if(!t||!i)return s;var c=r.decode(t),u=c.blockKey,l=e.getBlockTree(u),p=l&&l.getIn([c.decoratorKey,"leaves",c.leafKey]),f=r.decode(i),d=f.blockKey,h=e.getBlockTree(d),g=h&&h.getIn([f.decoratorKey,"leaves",f.leafKey]);if(!p||!g)return s;var m=p.get("start"),y=g.get("start"),v=p?m+n:null,b=g?y+a:null;if(s.getAnchorKey()===u&&s.getAnchorOffset()===v&&s.getFocusKey()===d&&s.getFocusOffset()===b)return s;var w=!1;if(u===d){var S=p.get("end"),E=g.get("end");w=y===m&&E===S?a<n:y<m}else w=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===u||e===d})).first()===d;return s.merge({anchorKey:u,anchorOffset:v,focusKey:d,focusOffset:b,isBackward:w})}},6629:(e,t,n)=>{"use strict";var r=n(8056);e.exports=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),o=r(n),i=o.top,a=o.right,s=o.bottom,c=o.left;return 0===i&&0===a&&0===s&&0===c?null:o}},8083:e=>{"use strict";e.exports=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}},8642:e=>{"use strict";e.exports=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX||!window.__DRAFT_GKX[e])}},4542:(e,t,n)=>{"use strict";var r=n(329),o=n(7953),i=n(3393),a=n(779),s=n(3759),c=n(8555),u=i.List;e.exports=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";t.isCollapsed()||s(!1);var l=e.getBlockMap(),p=c(n),f=t.getStartKey(),d=t.getStartOffset(),h=l.get(f);return h instanceof o&&(h.getChildKeys().isEmpty()||s(!1)),1===p.size?function(e,t,n,r,o,i){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",c=n.get(o),u=c.getText(),l=c.getCharacterList(),p=o,f=i+r.getText().length,d=null;switch(s){case"MERGE_OLD_DATA_TO_NEW_DATA":d=r.getData().merge(c.getData());break;case"REPLACE_WITH_NEW_DATA":d=r.getData()}var h=c.getType();u&&"unstyled"===h&&(h=r.getType());var g=c.merge({text:u.slice(0,i)+r.getText()+u.slice(i),characterList:a(l,r.getCharacterList(),i),type:h,data:d});return e.merge({blockMap:n.set(o,g),selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:f,focusKey:p,focusOffset:f,isBackward:!1})})}(e,t,l,p.first(),f,d,i):function(e,t,n,i,a,s){var c=n.first()instanceof o,l=[],p=i.size,f=n.get(a),d=i.first(),h=i.last(),g=h.getLength(),m=h.getKey(),y=c&&(!f.getChildKeys().isEmpty()||!d.getChildKeys().isEmpty());n.forEach((function(e,t){t===a?(y?l.push(e):l.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.slice(0,t),a=o.slice(0,t),s=n.first();return e.merge({text:i+s.getText(),characterList:a.concat(s.getCharacterList()),type:i?e.getType():s.getType(),data:s.getData()})}(e,s,i)),i.slice(y?0:1,p-1).forEach((function(e){return l.push(e)})),l.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.length,a=r.slice(t,i),s=o.slice(t,i),c=n.last();return c.merge({text:c.getText()+a,characterList:c.getCharacterList().concat(s),data:c.getData()})}(e,s,i))):l.push(e)}));var v=r.createFromArray(l);return c&&(v=function(e,t,n,r){return e.withMutations((function(t){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),s=n.getParentKey(),c=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=t.get(i)}return o}(r,e),l=c[c.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([l,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],l),c.forEach((function(e){return t.setIn([e,"parent"],s)})),s){var p=e.get(s).getChildKeys(),f=p.indexOf(o)+1,d=p.toArray();d.splice.apply(d,[f,0].concat(c)),t.setIn([s,"children"],u(d))}}))}(v,0,f,d)),e.merge({blockMap:v,selectionBefore:t,selectionAfter:t.merge({anchorKey:m,anchorOffset:g,focusKey:m,focusOffset:g,isBackward:!1})})}(e,t,l,p,f,d)}},779:e=>{"use strict";e.exports=function(e,t,n){var r=e;if(n===r.count())t.forEach((function(e){r=r.push(e)}));else if(0===n)t.reverse().forEach((function(e){r=r.unshift(e)}));else{var o=r.slice(0,n),i=r.slice(n);r=o.concat(t,i).toList()}return r}},8467:(e,t,n)=>{"use strict";var r=n(3393),o=n(779),i=n(3759),a=r.Repeat;e.exports=function(e,t,n,r){t.isCollapsed()||i(!1);var s=null;if(null!=n&&(s=n.length),null==s||0===s)return e;var c=e.getBlockMap(),u=t.getStartKey(),l=t.getStartOffset(),p=c.get(u),f=p.getText(),d=p.merge({text:f.slice(0,l)+n+f.slice(l,p.getLength()),characterList:o(p.getCharacterList(),a(r,s).toList(),l)}),h=l+s;return e.merge({blockMap:c.set(u,d),selectionAfter:t.merge({anchorOffset:h,focusOffset:h})})}},4368:e=>{"use strict";e.exports=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE}},2177:e=>{"use strict";e.exports=function(e){return"handled"===e||!0===e}},8241:(e,t,n)=>{"use strict";var r=n(4368);e.exports=function(e){return!(!e||!e.ownerDocument)&&r(e)&&"A"===e.nodeName}},6581:(e,t,n)=>{"use strict";var r=n(4368);e.exports=function(e){return!(!e||!e.ownerDocument)&&r(e)&&"BR"===e.nodeName}},717:e=>{"use strict";e.exports=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)}},5039:(e,t,n)=>{"use strict";var r=n(4368);e.exports=function(e){return!(!e||!e.ownerDocument)&&r(e)&&"IMG"===e.nodeName}},809:e=>{"use strict";e.exports=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1}},258:e=>{"use strict";e.exports=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some((function(e){return o===e.get("start")?(i=!0,!0):o<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return o===t&&(i=!0,!0)}))})),i}},7797:(e,t,n)=>{"use strict";var r=n(5399);e.exports=function(e){return e.which===r.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))}},9779:(e,t,n)=>{"use strict";var r=n(4289),o=n(8182),i=n(2082),a=n(9548),s=n(4730);e.exports=function(e,t){var n=s(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return a(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=o(r),i(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:r.push(e,n,"remove-range")}},2422:(e,t,n)=>{"use strict";var r=n(3932),o=n(4289),i=n(9548),a=n(4730);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return i(e,1);var o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(0,n),s=r.getBackward(a);return i(e,s.length||1)}),"backward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},3767:(e,t,n)=>{"use strict";var r=n(3932),o=n(4289),i=n(9417),a=n(4730);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(n),s=r.getForward(a);return i(e,s.length||1)}),"forward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},7978:(e,t,n)=>{"use strict";var r=n(2307),o=n(4289);e.exports=function(e){var t=r.splitBlock(e.getCurrentContent(),e.getSelection());return o.push(e,t,"split-block")}},7217:(e,t,n)=>{"use strict";var r=n(4289);e.exports=function(e){var t=e.getSelection(),n=t.getEndKey(),o=e.getCurrentContent().getBlockForKey(n).getLength();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:o,focusKey:n,focusOffset:o,isBackward:!1}),forceSelection:!0})}},8425:(e,t,n)=>{"use strict";var r=n(4289);e.exports=function(e){var t=e.getSelection(),n=t.getStartKey();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},2800:(e,t,n)=>{"use strict";var r=n(4289),o=n(8935),i=n(9548),a=n(4730);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a-1];return i(e,s?o.getUTF16Length(s,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},3998:(e,t,n)=>{"use strict";var r=n(4289),o=n(8935),i=n(9417),a=n(4730);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a];return i(e,s?o.getUTF16Length(s,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},3318:(e,t,n)=>{"use strict";var r=n(2307),o=n(4289),i=n(8687);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var a,s,c=t.getAnchorKey(),u=e.getCurrentContent(),l=u.getBlockForKey(c).getLength();if(l<=1)return e;n===l?(a=t.set("anchorOffset",n-1),s=t):s=(a=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var p=i(u,a),f=r.removeRange(u,a,"backward"),d=f.getSelectionAfter(),h=d.getAnchorOffset()-1,g=d.merge({anchorOffset:h,focusOffset:h}),m=r.replaceWithFragment(f,g,p),y=o.push(e,m,"insert-fragment");return o.acceptSelection(y,s)}},7051:(e,t,n)=>{"use strict";var r=n(4289);e.exports=function(e,t,n){var o=r.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(r.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(o)}),0)):n(o);else{var i=o.getCurrentContent();n(r.set(o,{nativelyRenderedContent:i}))}}},7429:(e,t,n)=>{"use strict";var r=n(3393).Map;e.exports=function(e,t,n){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat(r([[i,a.get(i)]])).map(n);return e.merge({blockMap:a.merge(s),selectionBefore:t,selectionAfter:t})}},1173:(e,t,n)=>{"use strict";var r=n(7953),o=n(9506),i=n(3393),a=n(3759),s=i.OrderedMap,c=i.List,u=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},l=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),s=n.getKey(),l=t.getParentKey(),p=t.getNextSiblingKey(),f=t.getPrevSiblingKey(),d=n.getParentKey(),h=i?n.getNextSiblingKey():s,g=i?s:n.getPrevSiblingKey();return e.withMutations((function(e){u(l,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),u(f,e,(function(e){return e.merge({nextSibling:p})})),u(p,e,(function(e){return e.merge({prevSibling:f})})),u(h,e,(function(e){return e.merge({prevSibling:a})})),u(g,e,(function(e){return e.merge({nextSibling:a})})),u(d,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(s),r=i?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,a),e.merge({children:c(o)})})),u(a,e,(function(e){return e.merge({nextSibling:h,prevSibling:g,parent:d})}))}))};e.exports=function(e,t,n,i){"replace"===i&&a(!1);var c=n.getKey(),u=t.getKey();u===c&&a(!1);var p=e.getBlockMap(),f=t instanceof r,d=[t],h=p.delete(u);f&&(d=[],h=p.withMutations((function(e){var n=t.getNextSiblingKey(),r=o(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===u})).takeWhile((function(e){var t=e.getKey(),o=t===u,i=n&&t!==n,a=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||i||a)})).forEach((function(t){d.push(t),e.delete(t.getKey())}))})));var g=h.toSeq().takeUntil((function(e){return e===n})),m=h.toSeq().skipUntil((function(e){return e===n})).skip(1),y=d.map((function(e){return[e.getKey(),e]})),v=s();if("before"===i){var b=e.getBlockBefore(c);b&&b.getKey()===t.getKey()&&a(!1),v=g.concat([].concat(y,[[c,n]]),m).toOrderedMap()}else if("after"===i){var w=e.getBlockAfter(c);w&&w.getKey()===u&&a(!1),v=g.concat([[c,n]].concat(y),m).toOrderedMap()}return e.merge({blockMap:l(v,t,n,i,f),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:u,focusKey:u})})}},9548:(e,t,n)=>{"use strict";n(3620),e.exports=function(e,t){var n=e.getSelection(),r=e.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,s=0;if(t>i){var c=r.getKeyBefore(o);null==c?a=o:(a=c,s=r.getBlockForKey(c).getText().length)}else s=i-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})}},9417:(e,t,n)=>{"use strict";n(3620),e.exports=function(e,t){var n,r=e.getSelection(),o=r.getStartKey(),i=r.getStartOffset(),a=e.getCurrentContent(),s=o;return t>a.getBlockForKey(o).getText().length-i?(s=a.getKeyAfter(o),n=0):n=i+t,r.merge({focusKey:s,focusOffset:n})}},8555:(e,t,n)=>{"use strict";var r=n(7953),o=n(5027),i=n(3393).OrderedMap;e.exports=function(e){return e.first()instanceof r?function(e){var t,n={};return i(e.withMutations((function(e){e.forEach((function(r,i){var a=r.getKey(),s=r.getNextSiblingKey(),c=r.getPrevSiblingKey(),u=r.getChildKeys(),l=r.getParentKey(),p=o();if(n[a]=p,s&&(e.get(s)?e.setIn([s,"prevSibling"],p):e.setIn([a,"nextSibling"],null)),c&&(e.get(c)?e.setIn([c,"nextSibling"],p):e.setIn([a,"prevSibling"],null)),l&&e.get(l)){var f=e.get(l).getChildKeys();e.setIn([l,"children"],f.set(f.indexOf(r.getKey()),p))}else e.setIn([a,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],p),e.setIn([a,"prevSibling"],n[t.getKey()])),t=e.get(a);u.forEach((function(t){e.get(t)?e.setIn([t,"parent"],p):e.setIn([a,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[n[e.getKey()],e.set("key",n[e.getKey()])]})))}(e):function(e){return i(e.toArray().map((function(e){var t=o();return[t,e.set("key",t)]})))}(e)}},4017:(e,t,n)=>{"use strict";var r=n(4516),o=n(9407),i=n(3759);function a(e,t,n){var a=t.getCharacterList(),s=n>0?a.get(n-1):void 0,c=n<a.count()?a.get(n):void 0,u=s?s.getEntity():void 0,l=c?c.getEntity():void 0;if(l&&l===u&&"MUTABLE"!==e.__get(l).getMutability()){for(var p,f=function(e,t,n){var r;return o(e,(function(e,t){return e.getEntity()===t.getEntity()}),(function(e){return e.getEntity()===t}),(function(e,t){e<=n&&t>=n&&(r={start:e,end:t})})),"object"!=typeof r&&i(!1),r}(a,l,n),d=f.start,h=f.end;d<h;)p=a.get(d),a=a.set(d,r.applyEntity(p,null)),d++;return t.set("characterList",a)}return t}e.exports=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),s=t.getStartOffset(),c=n.get(i),u=a(r,c,s);u!==c&&(o[i]=u);var l=t.getEndKey(),p=t.getEndOffset(),f=n.get(l);i===l&&(f=u);var d=a(r,f,p);return d!==f&&(o[l]=d),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)}},4879:(e,t,n)=>{"use strict";var r=n(7953),o=n(9506),i=n(3393),a=(i.List,i.Map),s=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},c=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},u=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},l=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r};e.exports=function(e,t){if(t.isCollapsed())return e;var n,i=e.getBlockMap(),p=t.getStartKey(),f=t.getStartOffset(),d=t.getEndKey(),h=t.getEndOffset(),g=i.get(p),m=i.get(d),y=g instanceof r,v=[];if(y){var b=m.getChildKeys(),w=c(d,i);m.getNextSiblingKey()&&(v=v.concat(w)),b.isEmpty()||(v=v.concat(w.concat([d]))),v=v.concat(c(o(m,i),i))}n=g===m?function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e}(g.getCharacterList(),f,h):g.getCharacterList().slice(0,f).concat(m.getCharacterList().slice(h));var S=g.merge({text:g.getText().slice(0,f)+m.getText().slice(h),characterList:n}),E=y&&0===f&&0===h&&m.getParentKey()===p&&null==m.getPrevSiblingKey()?a([[p,null]]):i.toSeq().skipUntil((function(e,t){return t===p})).takeUntil((function(e,t){return t===d})).filter((function(e,t){return-1===v.indexOf(t)})).concat(a([[d,null]])).map((function(e,t){return t===p?S:null})),k=i.merge(E).filter((function(e){return!!e}));return y&&g!==m&&(k=function(e,t,n,r){return e.withMutations((function(i){if(s(t.getKey(),i,(function(e){return e.merge({nextSibling:u(e,i,r),prevSibling:l(e,i,r)})})),s(n.getKey(),i,(function(e){return e.merge({nextSibling:u(e,i,r),prevSibling:l(e,i,r)})})),c(t.getKey(),r).forEach((function(e){return s(e,i,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return i.get(e)})),nextSibling:u(e,i,r),prevSibling:l(e,i,r)})}))})),s(t.getNextSiblingKey(),i,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),s(t.getPrevSiblingKey(),i,(function(e){return e.merge({nextSibling:u(e,i,r)})})),s(n.getNextSiblingKey(),i,(function(e){return e.merge({prevSibling:l(e,i,r)})})),s(n.getPrevSiblingKey(),i,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),c(n.getKey(),r).forEach((function(e){s(e,i,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return i.get(e)})),nextSibling:u(e,i,r),prevSibling:l(e,i,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=o(e,t);r&&t.get(r);){var i=t.get(r);n.push(r),r=i.getParentKey()?o(i,t):null}return n}(n,r).forEach((function(e){return s(e,i,(function(e){return e.merge({nextSibling:u(e,i,r),prevSibling:l(e,i,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var a=t.getPrevSiblingKey();s(n.getKey(),i,(function(e){return e.merge({prevSibling:a})})),s(a,i,(function(e){return e.merge({nextSibling:n.getKey()})}));var p=a?e.get(a):null,f=p?p.getParentKey():null;if(t.getChildKeys().forEach((function(e){s(e,i,(function(e){return e.merge({parent:f})}))})),null!=f){var d=e.get(f);s(f,i,(function(e){return e.merge({children:d.getChildKeys().concat(t.getChildKeys())})}))}s(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),i,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))}(k,g,m,i)),e.merge({blockMap:k,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:f,focusKey:p,focusOffset:f,isBackward:!1})})}},4730:(e,t,n)=>{"use strict";var r=n(2307),o=n(8642)("draft_tree_data_support");e.exports=function(e,t,n){var i=e.getSelection(),a=e.getCurrentContent(),s=i,c=i.getAnchorKey(),u=i.getFocusKey(),l=a.getBlockForKey(c);if(o&&"forward"===n&&c!==u)return a;if(i.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return a;if(o&&i.getAnchorOffset()===a.getBlockForKey(c).getLength()){var p=a.getBlockForKey(l.nextSibling);if(!p||0===p.getLength())return a}}else if(e.isSelectionAtStartOfContent())return a;if((s=t(e))===i)return a}return r.removeRange(a,s,n)}},5283:e=>{"use strict";var t=new RegExp("\r","g");e.exports=function(e){return e.replace(t,"")}},5412:(e,t,n)=>{"use strict";var r=n(5880),o=n(7432),i=n(4856),a=n(7476),s=n(1003),c=n(5795),u=n(3759),l=n(4368),p=i.isBrowser("IE");function f(e,t){if(!e)return"[empty]";var n=d(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(l(n)||u(!1),n.outerHTML)}function d(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return c(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var i=e.childNodes,a=0;a<i.length;a++)o.appendChild(d(i[a],t));return o}function h(e,t){for(var n=e,r=n;n;){if(l(n)&&r.hasAttribute("contenteditable"))return f(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function g(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function m(e,t,n,r){var i=s();if(e.extend&&null!=t&&a(i,t)){n>g(t)&&o.logSelectionStateFailure({anonymizedDom:h(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var c=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(a){throw o.logSelectionStateFailure({anonymizedDom:h(t,(function(t){var n=[];return t===i&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:i?i.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:c,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:a?""+a:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),a}}else if(t&&e.rangeCount>0){var u=e.getRangeAt(0);u.setEnd(t,n),e.addRange(u.cloneRange())}}function y(e,t,n,i){var a=c(t).createRange();if(n>g(t)&&(o.logSelectionStateFailure({anonymizedDom:h(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(i.toJS())}),r.handleExtensionCausedError()),a.setStart(t,n),p)try{e.addRange(a)}catch(e){}else e.addRange(a)}e.exports={setDraftEditorSelection:function(e,t,n,r,o){var i=c(t);if(a(i.documentElement,t)){var s=i.defaultView.getSelection(),u=e.getAnchorKey(),l=e.getAnchorOffset(),p=e.getFocusKey(),f=e.getFocusOffset(),d=e.getIsBackward();if(!s.extend&&d){var h=u,g=l;u=p,l=f,p=h,f=g,d=!1}var v=u===n&&r<=l&&o>=l,b=p===n&&r<=f&&o>=f;if(v&&b)return s.removeAllRanges(),y(s,t,l-r,e),void m(s,t,f-r,e);if(d){if(b&&(s.removeAllRanges(),y(s,t,f-r,e)),v){var w=s.focusNode,S=s.focusOffset;s.removeAllRanges(),y(s,t,l-r,e),m(s,w,S,e)}}else v&&(s.removeAllRanges(),y(s,t,l-r,e)),b&&m(s,t,f-r,e)}},addFocusToSelection:m}},6043:(e,t,n)=>{"use strict";var r=n(7953),o=n(5027),i=n(3393),a=n(3759),s=n(7429),c=i.List,u=i.Map,l=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}};e.exports=function(e,t){t.isCollapsed()||a(!1);var n=t.getAnchorKey(),i=e.getBlockMap(),p=i.get(n),f=p.getText();if(!f){var d=p.getType();if("unordered-list-item"===d||"ordered-list-item"===d)return s(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var h=t.getAnchorOffset(),g=p.getCharacterList(),m=o(),y=p instanceof r,v=p.merge({text:f.slice(0,h),characterList:g.slice(0,h)}),b=v.merge({key:m,text:f.slice(h),characterList:g.slice(h),data:u()}),w=i.toSeq().takeUntil((function(e){return e===p})),S=i.toSeq().skipUntil((function(e){return e===p})).rest(),E=w.concat([[n,v],[m,b]],S).toOrderedMap();return y&&(p.getChildKeys().isEmpty()||a(!1),E=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();l(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,i=t.toArray();return i.splice(n,0,o),e.merge({children:c(i)})})),l(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),l(r,e,(function(e){return e.merge({nextSibling:o})})),l(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(E,v,b)),e.merge({blockMap:E,selectionBefore:t,selectionAfter:t.merge({anchorKey:m,anchorOffset:0,focusKey:m,focusOffset:0,isBackward:!1})})}},4300:e=>{"use strict";var t=/\r\n?|\n/g;e.exports=function(e){return e.split(t)}},6363:e=>{"use strict";e.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}},9265:function(e){e.exports=function(){"use strict";function e(e,t){if(e)for(var n in e)({}).hasOwnProperty.call(e,n)&&t(n,e[n])}var t={unstyled:"p","header-one":"h1","header-two":"h2","header-three":"h3","header-four":"h4","header-five":"h5","header-six":"h6","unordered-list-item":"ul","ordered-list-item":"ol",blockquote:"blockquote",code:"pre"};function n(e){return e&&t[e]}function r(t){var n="";return e(t,(function(e,t){t&&(n+="".concat(e,":").concat(t,";"))})),n}function o(e,t){var n={};return e.COLOR[t]&&(n.COLOR=e.COLOR[t]),e.BGCOLOR[t]&&(n.BGCOLOR=e.BGCOLOR[t]),e.FONTSIZE[t]&&(n.FONTSIZE=e.FONTSIZE[t]),e.FONTFAMILY[t]&&(n.FONTFAMILY=e.FONTFAMILY[t]),e.UNDERLINE[t]&&(n.UNDERLINE=!0),e.ITALIC[t]&&(n.ITALIC=!0),e.BOLD[t]&&(n.BOLD=!0),e.STRIKETHROUGH[t]&&(n.STRIKETHROUGH=!0),e.CODE[t]&&(n.CODE=!0),e.SUBSCRIPT[t]&&(n.SUBSCRIPT=!0),e.SUPERSCRIPT[t]&&(n.SUPERSCRIPT=!0),n}function i(e,t,n){var r=!0;return n>0&&n<e.length?t.forEach((function(t){r=r&&e[t][n]===e[t][n-1]})):r=!1,r}function a(e,t,n,r){var o=e[t];if("function"==typeof r){var i=r(o,n);if(i)return i}if("MENTION"===o.type)return'<a href="'.concat(o.data.url,'" class="wysiwyg-mention" data-mention data-value="').concat(o.data.value,'">').concat(n,"</a>");if("LINK"===o.type){var a=o.data.targetOption||"_self";return'<a href="'.concat(o.data.url,'" target="').concat(a,'">').concat(n,"</a>")}if("IMAGE"===o.type){var s=o.data.alignment;return s&&s.length?'<div style="text-align:'.concat(s,';"><img src="').concat(o.data.src,'" alt="').concat(o.data.alt,'" style="height: ').concat(o.data.height,";width: ").concat(o.data.width,'"/></div>'):'<img src="'.concat(o.data.src,'" alt="').concat(o.data.alt,'" style="height: ').concat(o.data.height,";width: ").concat(o.data.width,'"/>')}return"EMBEDDED_LINK"===o.type?'<iframe width="'.concat(o.data.width,'" height="').concat(o.data.height,'" src="').concat(o.data.src,'" frameBorder="0"></iframe>'):n}function s(e,t,n,r){var a=[],s=Array.from(e.text);if(s.length>0)for(var c,u=function(e){var t=e.text,n=e.inlineStyleRanges,r={BOLD:new Array(t.length),ITALIC:new Array(t.length),UNDERLINE:new Array(t.length),STRIKETHROUGH:new Array(t.length),CODE:new Array(t.length),SUPERSCRIPT:new Array(t.length),SUBSCRIPT:new Array(t.length),COLOR:new Array(t.length),BGCOLOR:new Array(t.length),FONTSIZE:new Array(t.length),FONTFAMILY:new Array(t.length),length:t.length};return n&&n.length>0&&n.forEach((function(e){for(var t=e.offset,n=t+e.length,o=t;o<n;o+=1)0===e.style.indexOf("color-")?r.COLOR[o]=e.style.substring(6):0===e.style.indexOf("bgcolor-")?r.BGCOLOR[o]=e.style.substring(8):0===e.style.indexOf("fontsize-")?r.FONTSIZE[o]=e.style.substring(9):0===e.style.indexOf("fontfamily-")?r.FONTFAMILY[o]=e.style.substring(11):r[e.style]&&(r[e.style][o]=!0)})),r}(e),l=n;l<r;l+=1)l!==n&&i(u,t,l)?(c.text.push(s[l]),c.end=l+1):(c={styles:o(u,l),text:[s[l]],start:l,end:l+1},a.push(c));return a}function c(t,n){var r=s(t,["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"],n.start,n.end),o="";return r.forEach((function(t){o+=function(t){var n,r=t.styles,o=(n=t.text)&&n.length>0?n.map((function(e){switch(e){case"\n":return"<br>";case"&":return"&";case"<":return"<";case">":return">";default:return e}})).join(""):"";return e(r,(function(e,t){o=function(e,t){return"BOLD"===e?"<strong>".concat(t,"</strong>"):"ITALIC"===e?"<em>".concat(t,"</em>"):"UNDERLINE"===e?"<ins>".concat(t,"</ins>"):"STRIKETHROUGH"===e?"<del>".concat(t,"</del>"):"CODE"===e?"<code>".concat(t,"</code>"):"SUPERSCRIPT"===e?"<sup>".concat(t,"</sup>"):"SUBSCRIPT"===e?"<sub>".concat(t,"</sub>"):t}(e,o)})),o}(t)})),o=function(e,t){if(e&&(e.COLOR||e.BGCOLOR||e.FONTSIZE||e.FONTFAMILY)){var n='style="';return e.COLOR&&(n+="color: ".concat(e.COLOR,";")),e.BGCOLOR&&(n+="background-color: ".concat(e.BGCOLOR,";")),e.FONTSIZE&&(n+="font-size: ".concat(e.FONTSIZE).concat(/^\d+$/.test(e.FONTSIZE)?"px":"",";")),e.FONTFAMILY&&(n+="font-family: ".concat(e.FONTFAMILY,";")),"<span ".concat(n+='"',">").concat(t,"</span>")}return t}(n.styles,o)}function u(e,t,n,r){var o=[],i=function(e,t){var n=[],r=0,o=e.entityRanges.map((function(e){return{offset:e.offset,length:e.length,key:e.key,type:"ENTITY"}}));return(o=(o=o.concat(function(e,t){var n=[];if(t)for(var r=0,o=0,i=e,a=t.trigger||"#",s=t.separator||" ";i.length>0&&o>=0;)if(i[0]===a?(o=0,r=0,i=i.substr(a.length)):(o=i.indexOf(s+a))>=0&&(i=i.substr(o+(s+a).length),r+=o+s.length),o>=0){var c=i.indexOf(s)>=0?i.indexOf(s):i.length,u=i.substr(0,c);u&&u.length>0&&n.push({offset:r,length:u.length+a.length,type:"HASHTAG"}),r+=a.length}return n}(e.text,t))).sort((function(e,t){return e.offset-t.offset}))).forEach((function(e){e.offset>r&&n.push({start:r,end:e.offset}),n.push({start:e.offset,end:e.offset+e.length,entityKey:e.key,type:e.type}),r=e.offset+e.length})),r<e.text.length&&n.push({start:r,end:e.text.length}),n}(e,n);return i.forEach((function(n,u){var l=function(e,t,n,r){var o=[];s(e,["COLOR","BGCOLOR","FONTSIZE","FONTFAMILY"],n.start,n.end).forEach((function(t){o.push(c(e,t))}));var i=o.join("");return"ENTITY"===n.type?void 0!==n.entityKey&&null!==n.entityKey&&(i=a(t,n.entityKey,i,r)):"HASHTAG"===n.type&&(i='<a href="'.concat(i,'" class="wysiwyg-hashtag">').concat(i,"</a>")),i}(e,t,n,r);0===u&&(l=function(e){if(e){for(var t=e,n=0;n<t.length&&" "===e[n];n+=1)t=t.replace(" "," ");return t}return e}(l)),u===i.length-1&&(l=function(e){if(e){for(var t=e,n=t.length-1;n>=0&&" "===t[n];n-=1)t="".concat(t.substring(0,n)," ").concat(t.substring(n+1));return t}return e}(l)),o.push(l)})),o.join("")}function l(e,t,o,i,a){var s,c=[],p=[];return e.forEach((function(e){var f=!1;if(s?s.type!==e.type?(c.push("</".concat(n(s.type),">\n")),c.push("<".concat(n(e.type),">\n"))):s.depth===e.depth?p&&p.length>0&&(c.push(l(p,t,o,i,a)),p=[]):(f=!0,p.push(e)):c.push("<".concat(n(e.type),">\n")),!f){c.push("<li");var d=r(e.data);d&&c.push(' style="'.concat(d,'"')),i&&c.push(' dir = "auto"'),c.push(">"),c.push(u(e,t,o,a)),c.push("</li>\n"),s=e}})),p&&p.length>0&&c.push(l(p,t,o,i,a)),c.push("</".concat(n(s.type),">\n")),c.join("")}return function(e,t,o,i){var s=[];if(e){var c=e.blocks,p=e.entityMap;if(c&&c.length>0){var f=[];if(c.forEach((function(e){if("unordered-list-item"===(h=e.type)||"ordered-list-item"===h)f.push(e);else{if(f.length>0){var c=l(f,p,t,i);s.push(c),f=[]}var d=function(e,t,o,i,s){var c=[];if(function(e){return!(!(e.entityRanges.length>0)||(t=e.text,null!=t&&0!==t.length&&0!==t.trim().length&&"atomic"!==e.type));var t}(e))c.push(a(t,e.entityRanges[0].key,void 0,s));else{var l=n(e.type);if(l){c.push("<".concat(l));var p=r(e.data);p&&c.push(' style="'.concat(p,'"')),i&&c.push(' dir = "auto"'),c.push(">"),c.push(u(e,t,o,s)),c.push("</".concat(l,">"))}}return c.push("\n"),c.join("")}(e,p,t,o,i);s.push(d)}var h})),f.length>0){var d=l(f,p,t,o,i);s.push(d),f=[]}}}return s.join("")}}()},9766:(e,t,n)=>{var r={EventEmitter:n(7333),EmitterSubscription:n(6584)};e.exports=r},7333:(e,t,n)=>{"use strict";var r=n(6584),o=n(8231),i=n(5134),a=n(3556),s=function(){function e(){this._subscriber=new o,this._currentSubscription=null}var t=e.prototype;return t.addListener=function(e,t,n){return this._subscriber.addSubscription(e,new r(this._subscriber,t,n))},t.once=function(e,t,n){var r=this;return this.addListener(e,(function(){r.removeCurrentListener(),t.apply(n,arguments)}))},t.removeAllListeners=function(e){this._subscriber.removeAllSubscriptions(e)},t.removeCurrentListener=function(){this._currentSubscription||i(!1),this._subscriber.removeSubscription(this._currentSubscription)},t.listeners=function(e){var t=this._subscriber.getSubscriptionsForType(e);return t?t.filter(a.thatReturnsTrue).map((function(e){return e.listener})):[]},t.emit=function(e){var t=this._subscriber.getSubscriptionsForType(e);if(t){for(var n=Object.keys(t),r=0;r<n.length;r++){var o=t[n[r]];o&&(this._currentSubscription=o,this.__emitToSubscription.apply(this,[o].concat(Array.prototype.slice.call(arguments))))}this._currentSubscription=null}},t.__emitToSubscription=function(e,t){var n=Array.prototype.slice.call(arguments,2);e.listener.apply(e.context,n)},e}();e.exports=s},6584:(e,t,n)=>{"use strict";var r=function(e){var t,n;function r(t,n,r){var o;return(o=e.call(this,t)||this).listener=n,o.context=r,o}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(n(7024));e.exports=r},7024:e=>{"use strict";var t=function(){function e(e){this.subscriber=e}return e.prototype.remove=function(){this.subscriber&&(this.subscriber.removeSubscription(this),this.subscriber=null)},e}();e.exports=t},8231:(e,t,n)=>{"use strict";var r=n(5134),o=function(){function e(){this._subscriptionsForType={},this._currentSubscription=null}var t=e.prototype;return t.addSubscription=function(e,t){t.subscriber!==this&&r(!1),this._subscriptionsForType[e]||(this._subscriptionsForType[e]=[]);var n=this._subscriptionsForType[e].length;return this._subscriptionsForType[e].push(t),t.eventType=e,t.key=n,t},t.removeAllSubscriptions=function(e){void 0===e?this._subscriptionsForType={}:delete this._subscriptionsForType[e]},t.removeSubscription=function(e){var t=e.eventType,n=e.key,r=this._subscriptionsForType[t];r&&delete r[n]},t.getSubscriptionsForType=function(e){return this._subscriptionsForType[e]},e}();e.exports=o},3556:e=>{"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},5134:e=>{"use strict";e.exports=function(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 String(r[a++])})))).name="Invariant Violation"}throw i.framesToPop=1,i}}},4891:(e,t,n)=>{"use strict";var r=n(1006),o=n(9825),i=n(139),a=new RegExp("\r\n","g"),s={"text/rtf":1,"text/html":1};function c(e){if("file"==e.kind)return e.getAsFile()}var u=function(){function e(e){this.data=e,this.types=e.types?o(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return s[e]}))},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(a,"\n"):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},t.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},t.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n<t.length;n++){var o=t[n].type;if(!r.isImage(o))return!1}return!0},t.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},t.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(c).filter(i.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}();e.exports=u},5399:e=>{"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},1006:e=>{"use strict";var t={isImage:function(e){return"image"===n(e)[0]},isJpeg:function(e){var r=n(e);return t.isImage(e)&&("jpeg"===r[1]||"pjpeg"===r[1])}};function n(e){return e.split("/")}e.exports=t},5994:e=>{"use strict";function t(e,t){return!!t&&(e===t.documentElement||e===t.body)}var n={getTop:function(e){var n=e.ownerDocument;return t(e,n)?n.body.scrollTop||n.documentElement.scrollTop:e.scrollTop},setTop:function(e,n){var r=e.ownerDocument;t(e,r)?r.body.scrollTop=r.documentElement.scrollTop=n:e.scrollTop=n},getLeft:function(e){var n=e.ownerDocument;return t(e,n)?n.body.scrollLeft||n.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,n){var r=e.ownerDocument;t(e,r)?r.body.scrollLeft=r.documentElement.scrollLeft=n:e.scrollLeft=n}};e.exports=n},9051:(e,t,n)=>{"use strict";function r(e,t){var n=o.get(e,t);return"auto"===n||"scroll"===n}var o={get:n(5466),getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(r(e,"overflow")||r(e,"overflowY")||r(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}};e.exports=o},5724:e=>{"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},1425:e=>{"use strict";var t=function(){function e(e){var t,n;n=void 0,(t="_uri")in this?Object.defineProperty(this,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[t]=n,this._uri=e}return e.prototype.toString=function(){return this._uri},e}();e.exports=t},4191:(e,t,n)=>{"use strict";var r=n(6633),o=n(3759),i="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",a="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",s=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+i+a+"]"),c=new RegExp("["+i+a+"]");function u(e){var t=s.exec(e);return null==t?null:t[0]}function l(e){var t=u(e);return null==t?r.NEUTRAL:c.exec(t)?r.RTL:r.LTR}function p(e,t){if(t=t||r.NEUTRAL,!e.length)return t;var n=l(e);return n===r.NEUTRAL?t:n}function f(e,t){return t||(t=r.getGlobalDir()),r.isStrong(t)||o(!1),p(e,t)}var d={firstStrongChar:u,firstStrongCharDir:l,resolveBlockDir:p,getDirection:f,isDirectionLTR:function(e,t){return f(e,t)===r.LTR},isDirectionRTL:function(e,t){return f(e,t)===r.RTL}};e.exports=d},6633:(e,t,n)=>{"use strict";var r=n(3759),o="LTR",i="RTL",a=null;function s(e){return e===o||e===i}function c(e){return s(e)||r(!1),e===o?"ltr":"rtl"}function u(e){a=e}var l={NEUTRAL:"NEUTRAL",LTR:o,RTL:i,isStrong:s,getHTMLDir:c,getHTMLDirIfDifferent:function(e,t){return s(e)||r(!1),s(t)||r(!1),e===t?null:c(e)},setGlobalDir:u,initGlobalDir:function(){u(o)},getGlobalDir:function(){return a||this.initGlobalDir(),a||r(!1),a}};e.exports=l},7902:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(4191),i=n(6633),a=n(3759),s=function(){function e(e){r(this,"_defaultDir",void 0),r(this,"_lastDir",void 0),e?i.isStrong(e)||a(!1):e=i.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=o.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=s},8935:(e,t,n)=>{"use strict";var r=n(3759),o=55296,i=57343,a=/[\uD800-\uDFFF]/;function s(e){return o<=e&&e<=i}function c(e){return a.test(e)}function u(e,t){return 1+s(e.charCodeAt(t))}function l(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!c(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var o=0;if(t>0){for(;t>0&&o<r;t--)o+=u(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=u(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=u(e,i);return e.substring(o,i)}var p={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=u(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:u,hasSurrogateUnit:c,isCodeUnitInSurrogateRange:s,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||r(!1),t+1===e.length)return!1;var n=e.charCodeAt(t),a=e.charCodeAt(t+1);return o<=n&&n<=56319&&56320<=a&&a<=i},strlen:function(e){if(!c(e))return e.length;for(var t=0,n=0;n<e.length;n+=u(e,n))t++;return t},substring:function(e,t,n){(t=t||0)<0&&(t=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-t);return l(e,t=t<n?t:n,r)},substr:l};e.exports=p},4856:(e,t,n)=>{"use strict";var r=n(5845),o=n(9859),i=n(9467),a=n(1767);function s(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var i=n.slice(e.length);return!!t&&(i=r?r(i):i,o.contains(i,t))}function c(e){return"Windows"===r.platformName?e.replace(/^\s*NT/,""):e}var u={isBrowser:function(e){return s(r.browserName,r.browserFullVersion,e)},isBrowserArchitecture:function(e){return s(r.browserArchitecture,null,e)},isDevice:function(e){return s(r.deviceName,null,e)},isEngine:function(e){return s(r.engineName,r.engineVersion,e)},isPlatform:function(e){return s(r.platformName,r.platformFullVersion,e,c)},isPlatformArchitecture:function(e){return s(r.platformArchitecture,null,e)}};e.exports=i(u,a)},5845:(e,t,n)=>{"use strict";var r,o="Unknown",i=(new(n(2238))).getResult(),a=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(i.browser.version),s={browserArchitecture:i.cpu.architecture||o,browserFullVersion:i.browser.version||o,browserMinorVersion:a.minor||o,browserName:i.browser.name||o,browserVersion:i.browser.major||o,deviceName:i.device.model||o,engineName:i.engine.name||o,engineVersion:i.engine.version||o,platformArchitecture:i.cpu.architecture||o,platformName:(r=i.os.name,{"Mac OS":"Mac OS X"}[r]||r||o),platformVersion:i.os.version||o,platformFullVersion:i.os.version||o};e.exports=s},9859:(e,t,n)=>{"use strict";var r=n(3759),o=/\./,i=/\|\|/,a=/\s+\-\s+/,s=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,c=/^(\d*)(.*)/;function u(e,t){if(""===(e=e.trim()))return!0;var n,r=t.split(o),i=f(e),a=i.modifier,s=i.rangeComponents;switch(a){case"<":return l(r,s);case"<=":return-1===(n=v(r,s))||0===n;case">=":return p(r,s);case">":return 1===v(r,s);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);return d(i)&&(r[o]=i+1+""),p(e,n)&&l(e,r)}(r,s);default:return function(e,t){return 0===v(e,t)}(r,s)}}function l(e,t){return-1===v(e,t)}function p(e,t){var n=v(e,t);return 1===n||0===n}function f(e){var t=e.split(o),n=t[0].match(s);return n||r(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function d(e){return!isNaN(e)&&isFinite(e)}function h(e){return!f(e).modifier}function g(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function m(e,t){var n=e.match(c)[1],r=t.match(c)[1],o=parseInt(n,10),i=parseInt(r,10);return d(o)&&d(i)&&o!==i?y(o,i):y(e,t)}function y(e,t){return typeof e!=typeof t&&r(!1),e>t?1:e<t?-1:0}function v(e,t){for(var n=function(e,t){g(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var o=n;o<e.length;o++)e[o]="0"}return g(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=m(r[i],o[i]);if(a)return a}return 0}var b={contains:function(e,t){return function(e,t){var n=e.split(i);return n.length>1?n.some((function(e){return b.contains(e,t)})):function(e,t){var n=e.split(a);if(n.length>0&&n.length<=2||r(!1),1===n.length)return u(n[0],t);var o=n[0],i=n[1];return h(o)&&h(i)||r(!1),u(">="+o,t)&&u("<="+i,t)}(e=n[0].trim(),t)}(e.trim(),t.trim())}};e.exports=b},2297:e=>{"use strict";var t=/-(.)/g;e.exports=function(e){return e.replace(t,(function(e,t){return t.toUpperCase()}))}},7476:(e,t,n)=>{"use strict";var r=n(2334);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},9825:(e,t,n)=>{"use strict";var r=n(3759);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&r(!1),"number"!=typeof t&&r(!1),0===t||t-1 in e||r(!1),"function"==typeof e.callee&&r(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o<t;o++)n[o]=e[o];return n}(e):[e]}},2620:e=>{"use strict";function t(e){return e.replace(/\//g,"-")}e.exports=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(t).join(" "):Array.prototype.map.call(arguments,t).join(" ")}},139:e=>{"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},1003:e=>{"use strict";e.exports=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}},5179:e=>{"use strict";var t="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return(e=e||document).scrollingElement?e.scrollingElement:t||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},5258:(e,t,n)=>{"use strict";var r=n(3123);e.exports=function(e){var t=r(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},3123:(e,t,n)=>{"use strict";var r=n(7476);e.exports=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!r(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}},9749:(e,t,n)=>{"use strict";var r=n(5179),o=n(787);e.exports=function(e){var t=r(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=o(e),i=e===t?e.ownerDocument.documentElement:e,a=e.scrollWidth-i.clientWidth,s=e.scrollHeight-i.clientHeight;return n.x=Math.max(0,Math.min(n.x,a)),n.y=Math.max(0,Math.min(n.y,s)),n}},5466:(e,t,n)=>{"use strict";var r=n(2297),o=n(9349);function i(e){return null==e?e:String(e)}e.exports=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return i(n.getPropertyValue(o(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return i(n.getPropertyValue(o(t)));if("display"===t)return"none"}return e.currentStyle?i("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[r(t)]):i(e.style&&e.style[r(t)])}},787:e=>{"use strict";e.exports=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},746:e=>{"use strict";function t(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function n(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function r(){return{width:window.innerWidth||t(),height:window.innerHeight||n()}}r.withoutScrollbars=function(){return{width:t(),height:n()}},e.exports=r},9349:e=>{"use strict";var t=/([A-Z])/g;e.exports=function(e){return e.replace(t,"-$1").toLowerCase()}},3759:e=>{"use strict";e.exports=function(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 String(r[a++])})))).name="Invariant Violation"}throw i.framesToPop=1,i}}},901:e=>{"use strict";e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},2334:(e,t,n)=>{"use strict";var r=n(901);e.exports=function(e){return r(e)&&3==e.nodeType}},1108:e=>{"use strict";e.exports=function(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var o=arguments[r];o&&(t=(t?t+" ":"")+o)}return t}},9467:e=>{"use strict";var t=Object.prototype.hasOwnProperty;e.exports=function(e,n,r){if(!e)return null;var o={};for(var i in e)t.call(e,i)&&(o[i]=n.call(r,e[i],i,e));return o}},1767:e=>{"use strict";e.exports=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}},2045:e=>{"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},6926:(e,t,n)=>{"use strict";n(4889),e.exports=n.g.setImmediate},3620:(e,t,n)=>{"use strict";var r=n(139);e.exports=r},3162:function(e,t,n){var r,o;void 0===(o="function"==typeof(r=function(){"use strict";function t(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){s(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function o(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var i="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,a=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(e,n,a){var s=i.URL||i.webkitURL,c=document.createElement("a");n=n||e.name||"download",c.download=n,c.rel="noopener","string"==typeof e?(c.href=e,c.origin===location.origin?o(c):r(c.href)?t(e,n,a):o(c,c.target="_blank")):(c.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(c.href)}),4e4),setTimeout((function(){o(c)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,i){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,i),n);else if(r(e))t(e,n,i);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout((function(){o(a)}))}}:function(e,n,r,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var s="application/octet-stream"===e.type,c=/constructor/i.test(i.HTMLElement)||i.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||s&&c||a)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var e=l.result;e=u?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},l.readAsDataURL(e)}else{var p=i.URL||i.webkitURL,f=p.createObjectURL(e);o?o.location=f:location.href=f,o=null,setTimeout((function(){p.revokeObjectURL(f)}),4e4)}});i.saveAs=s.saveAs=s,e.exports=s})?r.apply(t,[]):r)||(e.exports=o)},8679:(e,t,n)=>{"use strict";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 c(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,l=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=d(n);o&&o!==h&&e(t,o,r)}var a=l(n);p&&(a=a.concat(p(n)));for(var s=c(t),g=c(n),m=0;m<a.length;++m){var y=a[m];if(!(i[y]||r&&r[y]||g&&g[y]||s&&s[y])){var v=f(n,y);try{u(t,y,v)}catch(e){}}}}return t}},7145:(e,t)=>{"use strict";function n(e){return"object"!=typeof e||"toString"in e?e:Object.prototype.toString.call(e).slice(8,-1)}Object.defineProperty(t,"__esModule",{value:!0});var r="object"==typeof process&&!0;function o(e,t){if(!e){if(r)throw new Error("Invariant failed");throw new Error(t())}}t.invariant=o;var i=Object.prototype.hasOwnProperty,a=Array.prototype.splice,s=Object.prototype.toString;function c(e){return s.call(e).slice(8,-1)}var u=Object.assign||function(e,t){return l(t).forEach((function(n){i.call(t,n)&&(e[n]=t[n])})),e},l="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function p(e){return Array.isArray(e)?u(e.constructor(e.length),e):"Map"===c(e)?new Map(e):"Set"===c(e)?new Set(e):e&&"object"==typeof e?u(Object.create(Object.getPrototypeOf(e)),e):e}var f=function(){function e(){this.commands=u({},d),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(e,t){return e===t},this.update.newContext=function(){return(new e).update}}return Object.defineProperty(e.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(e){this.update.isEquals=e},enumerable:!0,configurable:!0}),e.prototype.extend=function(e,t){this.commands[e]=t},e.prototype.update=function(e,t){var n=this,r="function"==typeof t?{$apply:t}:t;Array.isArray(e)&&Array.isArray(r)||o(!Array.isArray(r),(function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."})),o("object"==typeof r&&null!==r,(function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: "+Object.keys(n.commands).join(", ")+"."}));var a=e;return l(r).forEach((function(t){if(i.call(n.commands,t)){var o=e===a;a=n.commands[t](r[t],a,r,e),o&&n.isEquals(a,e)&&(a=e)}else{var s="Map"===c(e)?n.update(e.get(t),r[t]):n.update(e[t],r[t]),u="Map"===c(a)?a.get(t):a[t];n.isEquals(s,u)&&(void 0!==s||i.call(e,t))||(a===e&&(a=p(e)),"Map"===c(a)?a.set(t,s):a[t]=s)}})),a},e}();t.Context=f;var d={$push:function(e,t,n){return g(t,n,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,n){return g(t,n,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,r,i){return function(e,t){o(Array.isArray(e),(function(){return"Expected $splice target to be an array; got "+n(e)})),y(t.$splice)}(t,r),e.forEach((function(e){y(e),t===i&&e.length&&(t=p(i)),a.apply(t,e)})),t},$set:function(e,t,n){return function(e){o(1===Object.keys(e).length,(function(){return"Cannot have more than one key in an object with $set"}))}(n),e},$toggle:function(e,t){m(e,"$toggle");var n=e.length?p(t):t;return e.forEach((function(e){n[e]=!t[e]})),n},$unset:function(e,t,n,r){return m(e,"$unset"),e.forEach((function(e){Object.hasOwnProperty.call(t,e)&&(t===r&&(t=p(r)),delete t[e])})),t},$add:function(e,t,n,r){return v(t,"$add"),m(e,"$add"),"Map"===c(t)?e.forEach((function(e){var n=e[0],o=e[1];t===r&&t.get(n)!==o&&(t=p(r)),t.set(n,o)})):e.forEach((function(e){t!==r||t.has(e)||(t=p(r)),t.add(e)})),t},$remove:function(e,t,n,r){return v(t,"$remove"),m(e,"$remove"),e.forEach((function(e){t===r&&t.has(e)&&(t=p(r)),t.delete(e)})),t},$merge:function(e,t,r,i){var a,s;return a=t,o((s=e)&&"object"==typeof s,(function(){return"update(): $merge expects a spec of type 'object'; got "+n(s)})),o(a&&"object"==typeof a,(function(){return"update(): $merge expects a target of type 'object'; got "+n(a)})),l(e).forEach((function(n){e[n]!==t[n]&&(t===i&&(t=p(i)),t[n]=e[n])})),t},$apply:function(e,t){var r;return o("function"==typeof(r=e),(function(){return"update(): expected spec of $apply to be a function; got "+n(r)+"."})),e(t)}},h=new f;function g(e,t,r){o(Array.isArray(e),(function(){return"update(): expected target of "+n(r)+" to be an array; got "+n(e)+"."})),m(t[r],r)}function m(e,t){o(Array.isArray(e),(function(){return"update(): expected spec of "+n(t)+" to be an array; got "+n(e)+". Did you forget to wrap your parameter in an array?"}))}function y(e){o(Array.isArray(e),(function(){return"update(): expected spec of $splice to be an array of arrays; got "+n(e)+". Did you forget to wrap your parameters in an array?"}))}function v(e,t){var r=c(e);o("Map"===r||"Set"===r,(function(){return"update(): "+n(t)+" expects a target of type Set or Map; got "+n(r)}))}t.isEquals=h.update.isEquals,t.extend=h.extend,t.default=h.update,t.default.default=e.exports=u(t.default,t)},3393:function(e){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:G(e)}function r(e){return s(e)?e:W(e)}function o(e){return c(e)?e:q(e)}function i(e){return a(e)&&!u(e)?e:Q(e)}function a(e){return!(!e||!e[p])}function s(e){return!(!e||!e[f])}function c(e){return!(!e||!e[d])}function u(e){return s(e)||c(e)}function l(e){return!(!e||!e[h])}t(r,n),t(o,n),t(i,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=c,n.isAssociative=u,n.isOrdered=l,n.Keyed=r,n.Indexed=o,n.Set=i;var p="@@__IMMUTABLE_ITERABLE__@@",f="@@__IMMUTABLE_KEYED__@@",d="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",m=5,y=1<<m,v=y-1,b={},w={value:!1},S={value:!1};function E(e){return e.value=!1,e}function k(e){e&&(e.value=!0)}function O(){}function M(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function C(e){return void 0===e.size&&(e.size=e.__iterate(_)),e.size}function x(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?C(e)+t:t}function _(){return!0}function D(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function T(e,t){return I(e,t,0)}function j(e,t){return I(e,t,t)}function I(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var N=0,L=1,A=2,P="function"==typeof Symbol&&Symbol.iterator,R="@@iterator",B=P||R;function z(e){this.next=e}function F(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function U(){return{value:void 0,done:!0}}function H(e){return!!Y(e)}function Z(e){return e&&"function"==typeof e.next}function K(e){var t=Y(e);return t&&t.call(e)}function Y(e){var t=e&&(P&&e[P]||e[R]);if("function"==typeof t)return t}function V(e){return e&&"number"==typeof e.length}function G(e){return null==e?ae():a(e)?e.toSeq():function(e){var t=ue(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function W(e){return null==e?ae().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function q(e){return null==e?ae():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():ce(e)}function Q(e){return(null==e?ae():a(e)?s(e)?e.entrySeq():e:ce(e)).toSetSeq()}z.prototype.toString=function(){return"[Iterator]"},z.KEYS=N,z.VALUES=L,z.ENTRIES=A,z.prototype.inspect=z.prototype.toSource=function(){return this.toString()},z.prototype[B]=function(){return this},t(G,n),G.of=function(){return G(arguments)},G.prototype.toSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq {","}")},G.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},G.prototype.__iterate=function(e,t){return le(this,e,t,!0)},G.prototype.__iterator=function(e,t){return pe(this,e,t,!0)},t(W,G),W.prototype.toKeyedSeq=function(){return this},t(q,G),q.of=function(){return q(arguments)},q.prototype.toIndexedSeq=function(){return this},q.prototype.toString=function(){return this.__toString("Seq [","]")},q.prototype.__iterate=function(e,t){return le(this,e,t,!1)},q.prototype.__iterator=function(e,t){return pe(this,e,t,!1)},t(Q,G),Q.of=function(){return Q(arguments)},Q.prototype.toSetSeq=function(){return this},G.isSeq=ie,G.Keyed=W,G.Set=Q,G.Indexed=q;var J,X,$,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ie(e){return!(!e||!e[ee])}function ae(){return J||(J=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():Z(e)?new oe(e).fromEntrySeq():H(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function ce(e){var t=ue(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ue(e){return V(e)?new te(e):Z(e)?new oe(e):H(e)?new re(e):void 0}function le(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function pe(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new z((function(){var e=o[n?i-a:a];return a++>i?{value:void 0,done:!0}:F(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function fe(e,t){return t?de(t,e,"",{"":e}):he(e)}function de(e,t,n,r){return Array.isArray(t)?e.call(r,n,q(t).map((function(n,r){return de(e,n,r,t)}))):ge(t)?e.call(r,n,W(t).map((function(n,r){return de(e,n,r,t)}))):t}function he(e){return Array.isArray(e)?q(e).map(he).toList():ge(e)?W(e).map(he).toMap():e}function ge(e){return e&&(e.constructor===Object||void 0===e.constructor)}function me(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function ye(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||c(e)!==c(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(l(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&me(o[1],e)&&(n||me(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var p=!0,f=t.__iterate((function(t,r){if(n?!e.has(t):o?!me(t,e.get(r,b)):!me(e.get(r,b),t))return p=!1,!1}));return p&&e.size===f}function ve(e,t){if(!(this instanceof ve))return new ve(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(X)return X;X=this}}function be(e,t){if(!e)throw new Error(t)}function we(e,t,n){if(!(this instanceof we))return new we(e,t,n);if(be(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if($)return $;$=this}}function Se(){throw TypeError("Abstract")}function Ee(){}function ke(){}function Oe(){}G.prototype[ee]=!0,t(te,q),te.prototype.get=function(e,t){return this.has(e)?this._array[x(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new z((function(){return o>r?{value:void 0,done:!0}:F(e,o,n[t?r-o++:o++])}))},t(ne,W),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new z((function(){var a=r[t?o-i:i];return i++>o?{value:void 0,done:!0}:F(e,a,n[a])}))},ne.prototype[h]=!0,t(re,q),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=K(this._iterable),r=0;if(Z(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=K(this._iterable);if(!Z(n))return new z(U);var r=0;return new z((function(){var t=n.next();return t.done?t:F(e,r++,t.value)}))},t(oe,q),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},oe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new z((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return F(e,o,r[o++])}))},t(ve,q),ve.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ve.prototype.get=function(e,t){return this.has(e)?this._value:t},ve.prototype.includes=function(e){return me(this._value,e)},ve.prototype.slice=function(e,t){var n=this.size;return D(e,t,n)?this:new ve(this._value,j(t,n)-T(e,n))},ve.prototype.reverse=function(){return this},ve.prototype.indexOf=function(e){return me(this._value,e)?0:-1},ve.prototype.lastIndexOf=function(e){return me(this._value,e)?this.size:-1},ve.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},ve.prototype.__iterator=function(e,t){var n=this,r=0;return new z((function(){return r<n.size?F(e,r++,n._value):{value:void 0,done:!0}}))},ve.prototype.equals=function(e){return e instanceof ve?me(this._value,e._value):ye(e)},t(we,q),we.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},we.prototype.get=function(e,t){return this.has(e)?this._start+x(this,e)*this._step:t},we.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},we.prototype.slice=function(e,t){return D(e,t,this.size)?this:(e=T(e,this.size),(t=j(t,this.size))<=e?new we(0,0):new we(this.get(e,this._end),this.get(t,this._end),this._step))},we.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},we.prototype.lastIndexOf=function(e){return this.indexOf(e)},we.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},we.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new z((function(){var a=o;return o+=t?-r:r,i>n?{value:void 0,done:!0}:F(e,i++,a)}))},we.prototype.equals=function(e){return e instanceof we?this._start===e._start&&this._end===e._end&&this._step===e._step:ye(this,e)},t(Se,n),t(Ee,Se),t(ke,Se),t(Oe,Se),Se.Keyed=Ee,Se.Indexed=ke,Se.Set=Oe;var Me="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Ce(e){return e>>>1&1073741824|3221225471&e}function xe(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Ce(n)}if("string"===t)return e.length>Ae?function(e){var t=Be[e];return void 0===t&&(t=_e(e),Re===Pe&&(Re=0,Be={}),Re++,Be[e]=t),t}(e):_e(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(Ie&&void 0!==(t=je.get(e)))return t;if(void 0!==(t=e[Le]))return t;if(!Te){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Le]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++Ne,1073741824&Ne&&(Ne=0),Ie)je.set(e,t);else{if(void 0!==De&&!1===De(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Te)Object.defineProperty(e,Le,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Le]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Le]=t}}return t}(e);if("function"==typeof e.toString)return _e(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function _e(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Ce(t)}var De=Object.isExtensible,Te=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();var je,Ie="function"==typeof WeakMap;Ie&&(je=new WeakMap);var Ne=0,Le="__immutablehash__";"function"==typeof Symbol&&(Le=Symbol(Le));var Ae=16,Pe=255,Re=0,Be={};function ze(e){be(e!==1/0,"Cannot perform this action with an infinite size.")}function Fe(e){return null==e?et():Ue(e)&&!l(e)?e:et().withMutations((function(t){var n=r(e);ze(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ue(e){return!(!e||!e[Ze])}t(Fe,Ee),Fe.prototype.toString=function(){return this.__toString("Map {","}")},Fe.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Fe.prototype.set=function(e,t){return tt(this,e,t)},Fe.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},Fe.prototype.remove=function(e){return tt(this,e,b)},Fe.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},Fe.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Fe.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=ut(this,an(e),t,n);return r===b?void 0:r},Fe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):et()},Fe.prototype.merge=function(){return it(this,void 0,arguments)},Fe.prototype.mergeWith=function(t){return it(this,t,e.call(arguments,1))},Fe.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,et(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Fe.prototype.mergeDeep=function(){return it(this,at,arguments)},Fe.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return it(this,st(t),n)},Fe.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,et(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Fe.prototype.sort=function(e){return It(Wt(this,e))},Fe.prototype.sortBy=function(e,t){return It(Wt(this,t,e))},Fe.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Fe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new O)},Fe.prototype.asImmutable=function(){return this.__ensureOwner()},Fe.prototype.wasAltered=function(){return this.__altered},Fe.prototype.__iterator=function(e,t){return new Qe(this,e,t)},Fe.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},Fe.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?$e(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Fe.isMap=Ue;var He,Ze="@@__IMMUTABLE_MAP__@@",Ke=Fe.prototype;function Ye(e,t){this.ownerID=e,this.entries=t}function Ve(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Ge(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function We(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function Qe(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Xe(e._root)}function Je(e,t){return F(e,t[0],t[1])}function Xe(e,t){return{node:e,index:0,__prev:t}}function $e(e,t,n,r){var o=Object.create(Ke);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function et(){return He||(He=$e(0))}function tt(e,t,n){var r,o;if(e._root){var i=E(w),a=E(S);if(r=nt(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===b?-1:1:0)}else{if(n===b)return e;o=1,r=new Ye(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?$e(o,r):et()}function nt(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===b?e:(k(s),k(a),new qe(t,r,[o,i]))}function rt(e){return e.constructor===qe||e.constructor===We}function ot(e,t,n,r,o){if(e.keyHash===r)return new We(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&v,s=(0===n?r:r>>>n)&v;return new Ve(t,1<<a|1<<s,a===s?[ot(e,t,n+m,r,o)]:(i=new qe(t,r,o),a<s?[e,i]:[i,e]))}function it(e,t,n){for(var o=[],i=0;i<n.length;i++){var s=n[i],c=r(s);a(s)||(c=c.map((function(e){return fe(e)}))),o.push(c)}return ct(e,t,o)}function at(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):me(e,t)?e:t}function st(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return me(t,o)?t:o}}function ct(e,t,n){return 0===(n=n.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,b,(function(e){return e===b?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)})):e.constructor(n[0])}function ut(e,t,n,r){var o=e===b,i=t.next();if(i.done){var a=o?n:e,s=r(a);return s===a?e:s}be(o||e&&e.set,"invalid keyPath");var c=i.value,u=o?b:e.get(c,b),l=ut(u,t,n,r);return l===u?e:l===b?e.remove(c):(o?et():e).set(c,l)}function lt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,127&(e+=e>>8)+(e>>16)}function pt(e,t,n,r){var o=r?e:M(e);return o[t]=n,o}Ke[Ze]=!0,Ke[g]=Ke.remove,Ke.removeIn=Ke.deleteIn,Ye.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(me(n,o[i][0]))return o[i][1];return r},Ye.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===b,c=this.entries,u=0,l=c.length;u<l&&!me(r,c[u][0]);u++);var p=u<l;if(p?c[u][1]===o:s)return this;if(k(a),(s||!p)&&k(i),!s||1!==c.length){if(!p&&!s&&c.length>=ft)return function(e,t,n,r){e||(e=new O);for(var o=new qe(e,xe(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}(e,c,r,o);var f=e&&e===this.ownerID,d=f?c:M(c);return p?s?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),f?(this.entries=d,this):new Ye(e,d)}},Ve.prototype.get=function(e,t,n,r){void 0===t&&(t=xe(n));var o=1<<((0===e?t:t>>>e)&v),i=this.bitmap;return 0==(i&o)?r:this.nodes[lt(i&o-1)].get(e+m,t,n,r)},Ve.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=xe(r));var s=(0===t?n:n>>>t)&v,c=1<<s,u=this.bitmap,l=0!=(u&c);if(!l&&o===b)return this;var p=lt(u&c-1),f=this.nodes,d=l?f[p]:void 0,h=nt(d,e,t+m,n,r,o,i,a);if(h===d)return this;if(!l&&h&&f.length>=dt)return function(e,t,n,r,o){for(var i=0,a=new Array(y),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new Ge(e,i+1,a)}(e,f,u,s,h);if(l&&!h&&2===f.length&&rt(f[1^p]))return f[1^p];if(l&&h&&1===f.length&&rt(h))return h;var g=e&&e===this.ownerID,w=l?h?u:u^c:u|c,S=l?h?pt(f,p,h,g):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}(f,p,g):function(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}(f,p,h,g);return g?(this.bitmap=w,this.nodes=S,this):new Ve(e,w,S)},Ge.prototype.get=function(e,t,n,r){void 0===t&&(t=xe(n));var o=(0===e?t:t>>>e)&v,i=this.nodes[o];return i?i.get(e+m,t,n,r):r},Ge.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=xe(r));var s=(0===t?n:n>>>t)&v,c=o===b,u=this.nodes,l=u[s];if(c&&!l)return this;var p=nt(l,e,t+m,n,r,o,i,a);if(p===l)return this;var f=this.count;if(l){if(!p&&--f<ht)return function(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,c=1,u=t.length;s<u;s++,c<<=1){var l=t[s];void 0!==l&&s!==r&&(o|=c,a[i++]=l)}return new Ve(e,o,a)}(e,u,f,s)}else f++;var d=e&&e===this.ownerID,h=pt(u,s,p,d);return d?(this.count=f,this.nodes=h,this):new Ge(e,f,h)},We.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(me(n,o[i][0]))return o[i][1];return r},We.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=xe(r));var s=o===b;if(n!==this.keyHash)return s?this:(k(a),k(i),ot(this,e,t,n,[r,o]));for(var c=this.entries,u=0,l=c.length;u<l&&!me(r,c[u][0]);u++);var p=u<l;if(p?c[u][1]===o:s)return this;if(k(a),(s||!p)&&k(i),s&&2===l)return new qe(e,this.keyHash,c[1^u]);var f=e&&e===this.ownerID,d=f?c:M(c);return p?s?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),f?(this.entries=d,this):new We(e,this.keyHash,d)},qe.prototype.get=function(e,t,n,r){return me(n,this.entry[0])?this.entry[1]:r},qe.prototype.update=function(e,t,n,r,o,i,a){var s=o===b,c=me(r,this.entry[0]);return(c?o===this.entry[1]:s)?this:(k(a),s?void k(i):c?e&&e===this.ownerID?(this.entry[1]=o,this):new qe(e,this.keyHash,[r,o]):(k(i),ot(this,e,t,xe(r),[r,o])))},Ye.prototype.iterate=We.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Ve.prototype.iterate=Ge.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},qe.prototype.iterate=function(e,t){return e(this.entry)},t(Qe,z),Qe.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return Je(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return Je(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return Je(e,i.entry);t=this._stack=Xe(i,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var ft=y/4,dt=y/2,ht=y/4;function gt(e){var t=Mt();if(null==e)return t;if(mt(e))return e;var n=o(e),r=n.size;return 0===r?t:(ze(r),r>0&&r<y?Ot(0,r,m,null,new bt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function mt(e){return!(!e||!e[yt])}t(gt,ke),gt.of=function(){return this(arguments)},gt.prototype.toString=function(){return this.__toString("List [","]")},gt.prototype.get=function(e,t){if((e=x(this,e))>=0&&e<this.size){var n=_t(this,e+=this._origin);return n&&n.array[e&v]}return t},gt.prototype.set=function(e,t){return function(e,t,n){if((t=x(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?Dt(e,t).set(0,n):Dt(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=E(S);return t>=jt(e._capacity)?r=Ct(r,e.__ownerID,0,t,n,i):o=Ct(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Ot(e._origin,e._capacity,e._level,o,r):e}(this,e,t)},gt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},gt.prototype.insert=function(e,t){return this.splice(e,0,t)},gt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=m,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Mt()},gt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){Dt(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},gt.prototype.pop=function(){return Dt(this,0,-1)},gt.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){Dt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},gt.prototype.shift=function(){return Dt(this,1)},gt.prototype.merge=function(){return Tt(this,void 0,arguments)},gt.prototype.mergeWith=function(t){return Tt(this,t,e.call(arguments,1))},gt.prototype.mergeDeep=function(){return Tt(this,at,arguments)},gt.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Tt(this,st(t),n)},gt.prototype.setSize=function(e){return Dt(this,0,e)},gt.prototype.slice=function(e,t){var n=this.size;return D(e,t,n)?this:Dt(this,T(e,n),j(t,n))},gt.prototype.__iterator=function(e,t){var n=0,r=kt(this,t);return new z((function(){var t=r();return t===Et?{value:void 0,done:!0}:F(e,n++,t)}))},gt.prototype.__iterate=function(e,t){for(var n,r=0,o=kt(this,t);(n=o())!==Et&&!1!==e(n,r++,this););return r},gt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ot(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},gt.isList=mt;var yt="@@__IMMUTABLE_LIST__@@",vt=gt.prototype;function bt(e,t){this.array=e,this.ownerID=t}vt[yt]=!0,vt[g]=vt.remove,vt.setIn=Ke.setIn,vt.deleteIn=vt.removeIn=Ke.removeIn,vt.update=Ke.update,vt.updateIn=Ke.updateIn,vt.mergeIn=Ke.mergeIn,vt.mergeDeepIn=Ke.mergeDeepIn,vt.withMutations=Ke.withMutations,vt.asMutable=Ke.asMutable,vt.asImmutable=Ke.asImmutable,vt.wasAltered=Ke.wasAltered,bt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&v;if(r>=this.array.length)return new bt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-m,n))===a&&i)return this}if(i&&!o)return this;var s=xt(this,e);if(!i)for(var c=0;c<r;c++)s.array[c]=void 0;return o&&(s.array[r]=o),s},bt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&v;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-m,n))===i&&o===this.array.length-1)return this}var a=xt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var wt,St,Et={};function kt(e,t){var n=e._origin,r=e._capacity,o=jt(r),i=e._tail;return a(e._root,e._level,0);function a(e,s,c){return 0===s?function(e,a){var s=a===o?i&&i.array:e&&e.array,c=a>n?0:n-a,u=r-a;return u>y&&(u=y),function(){if(c===u)return Et;var e=t?--u:c++;return s&&s[e]}}(e,c):function(e,o,i){var s,c=e&&e.array,u=i>n?0:n-i>>o,l=1+(r-i>>o);return l>y&&(l=y),function(){for(;;){if(s){var e=s();if(e!==Et)return e;s=null}if(u===l)return Et;var n=t?--l:u++;s=a(c&&c[n],o-m,i+(n<<o))}}}(e,s,c)}}function Ot(e,t,n,r,o,i,a){var s=Object.create(vt);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function Mt(){return wt||(wt=Ot(0,0,m))}function Ct(e,t,n,r,o,i){var a,s=r>>>n&v,c=e&&s<e.array.length;if(!c&&void 0===o)return e;if(n>0){var u=e&&e.array[s],l=Ct(u,t,n-m,r,o,i);return l===u?e:((a=xt(e,t)).array[s]=l,a)}return c&&e.array[s]===o?e:(k(i),a=xt(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function xt(e,t){return t&&e&&t===e.ownerID?e:new bt(e?e.array.slice():[],t)}function _t(e,t){if(t>=jt(e._capacity))return e._tail;if(t<1<<e._level+m){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&v],r-=m;return n}}function Dt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new O,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var c=e._level,u=e._root,l=0;a+l<0;)u=new bt(u&&u.array.length?[void 0,u]:[],r),l+=1<<(c+=m);l&&(a+=l,o+=l,s+=l,i+=l);for(var p=jt(i),f=jt(s);f>=1<<c+m;)u=new bt(u&&u.array.length?[u]:[],r),c+=m;var d=e._tail,h=f<p?_t(e,s-1):f>p?new bt([],r):d;if(d&&f>p&&a<i&&d.array.length){for(var g=u=xt(u,r),y=c;y>m;y-=m){var b=p>>>y&v;g=g.array[b]=xt(g.array[b],r)}g.array[p>>>m&v]=d}if(s<i&&(h=h&&h.removeAfter(r,0,s)),a>=f)a-=f,s-=f,c=m,u=null,h=h&&h.removeBefore(r,0,a);else if(a>o||f<p){for(l=0;u;){var w=a>>>c&v;if(w!==f>>>c&v)break;w&&(l+=(1<<c)*w),c-=m,u=u.array[w]}u&&a>o&&(u=u.removeBefore(r,c,a-l)),u&&f<p&&(u=u.removeAfter(r,c,f-l)),l&&(a-=l,s-=l)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=c,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):Ot(a,s,c,u,h)}function Tt(e,t,n){for(var r=[],i=0,s=0;s<n.length;s++){var c=n[s],u=o(c);u.size>i&&(i=u.size),a(c)||(u=u.map((function(e){return fe(e)}))),r.push(u)}return i>e.size&&(e=e.setSize(i)),ct(e,t,r)}function jt(e){return e<y?0:e-1>>>m<<m}function It(e){return null==e?At():Nt(e)?e:At().withMutations((function(t){var n=r(e);ze(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Nt(e){return Ue(e)&&l(e)}function Lt(e,t,n,r){var o=Object.create(It.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function At(){return St||(St=Lt(et(),Mt()))}function Pt(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),c=void 0!==s;if(n===b){if(!c)return e;a.size>=y&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(c){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Lt(r,o)}function Rt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Bt(e){this._iter=e,this.size=e.size}function zt(e){this._iter=e,this.size=e.size}function Ft(e){this._iter=e,this.size=e.size}function Ut(e){var t=nn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=rn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===A){var r=e.__iterator(t,n);return new z((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===L?N:L,n)},t}function Ht(e,t,n){var r=nn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,b);return i===b?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(A,o);return new z((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return F(r,s,t.call(n,a[1],s,e),o)}))},r}function Zt(e,t){var n=nn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Ut(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=rn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Kt(e,t,n,r){var o=nn(e);return r&&(o.has=function(r){var o=e.get(r,b);return o!==b&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,b);return i!==b&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate((function(e,i,c){if(t.call(n,e,i,c))return s++,o(e,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(A,i),s=0;return new z((function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,u=c[0],l=c[1];if(t.call(n,l,u,e))return F(o,r?u:s++,l,i)}}))},o}function Yt(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),D(t,n,o))return e;var i=T(t,o),a=j(n,o);if(i!=i||a!=a)return Yt(e.toSeq().cacheResult(),t,n,r);var s,c=a-i;c==c&&(s=c<0?0:c);var u=nn(e);return u.size=0===s?s:e.size&&s||void 0,!r&&ie(e)&&s>=0&&(u.get=function(t,n){return(t=x(this,t))>=0&&t<s?e.get(t+i,n):n}),u.__iterateUncached=function(t,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,c=!0,u=0;return e.__iterate((function(e,n){if(!c||!(c=a++<i))return u++,!1!==t(e,r?n:u-1,o)&&u!==s})),u},u.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var o=0!==s&&e.__iterator(t,n),a=0,c=0;return new z((function(){for(;a++<i;)o.next();if(++c>s)return{value:void 0,done:!0};var e=o.next();return r||t===L?e:F(t,c-1,t===N?void 0:e.value[1],e)}))},u}function Vt(e,t,n,r){var o=nn(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,c=0;return e.__iterate((function(e,i,u){if(!s||!(s=t.call(n,e,i,u)))return c++,o(e,r?i:c-1,a)})),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(A,i),c=!0,u=0;return new z((function(){var e,i,l;do{if((e=s.next()).done)return r||o===L?e:F(o,u++,o===N?void 0:e.value[1],e);var p=e.value;i=p[0],l=p[1],c&&(c=t.call(n,l,i,a))}while(c);return o===A?e:F(o,i,l,e)}))},o}function Gt(e,t,n){var r=nn(e);return r.__iterateUncached=function(r,o){var i=0,s=!1;return function e(c,u){var l=this;c.__iterate((function(o,c){return(!t||u<t)&&a(o)?e(o,u+1):!1===r(o,n?c:i++,l)&&(s=!0),!s}),o)}(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),s=[],c=0;return new z((function(){for(;i;){var e=i.next();if(!1===e.done){var u=e.value;if(r===A&&(u=u[1]),t&&!(s.length<t)||!a(u))return n?e:F(r,c++,u,e);s.push(i),i=u.__iterator(r,o)}else i=s.pop()}return{value:void 0,done:!0}}))},r}function Wt(e,t,n){t||(t=on);var r=s(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?W(i):c(e)?q(i):Q(i)}function qt(e,t,n){if(t||(t=on),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return Qt(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return Qt(t,e,n)?n:e}))}function Qt(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function Jt(e,t,r){var o=nn(e);return o.size=new te(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(L,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),K(o?e.reverse():e)})),a=0,s=!1;return new z((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:F(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function Xt(e,t){return ie(e)?t:e.constructor(t)}function $t(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function en(e){return ze(e.size),C(e)}function tn(e){return s(e)?r:c(e)?o:i}function nn(e){return Object.create((s(e)?W:c(e)?q:Q).prototype)}function rn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):G.prototype.cacheResult.call(this)}function on(e,t){return e>t?1:e<t?-1:0}function an(e){var t=K(e);if(!t){if(!V(e))throw new TypeError("Expected iterable or array-like: "+e);t=K(n(e))}return t}function sn(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);(function(e,t){try{t.forEach(pn.bind(void 0,e))}catch(e){}})(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=Fe(i)},o=r.prototype=Object.create(cn);return o.constructor=r,r}t(It,Fe),It.of=function(){return this(arguments)},It.prototype.toString=function(){return this.__toString("OrderedMap {","}")},It.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},It.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):At()},It.prototype.set=function(e,t){return Pt(this,e,t)},It.prototype.remove=function(e){return Pt(this,e,b)},It.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},It.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},It.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},It.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Lt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},It.isOrderedMap=Nt,It.prototype[h]=!0,It.prototype[g]=It.prototype.remove,t(Rt,W),Rt.prototype.get=function(e,t){return this._iter.get(e,t)},Rt.prototype.has=function(e){return this._iter.has(e)},Rt.prototype.valueSeq=function(){return this._iter.valueSeq()},Rt.prototype.reverse=function(){var e=this,t=Zt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Rt.prototype.map=function(e,t){var n=this,r=Ht(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Rt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?en(this):0,function(o){return e(o,t?--n:n++,r)}),t)},Rt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(L,t),r=t?en(this):0;return new z((function(){var o=n.next();return o.done?o:F(e,t?--r:r++,o.value,o)}))},Rt.prototype[h]=!0,t(Bt,q),Bt.prototype.includes=function(e){return this._iter.includes(e)},Bt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},Bt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t),r=0;return new z((function(){var t=n.next();return t.done?t:F(e,r++,t.value,t)}))},t(zt,Q),zt.prototype.has=function(e){return this._iter.includes(e)},zt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},zt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t);return new z((function(){var t=n.next();return t.done?t:F(e,t.value,t.value,t)}))},t(Ft,W),Ft.prototype.entrySeq=function(){return this._iter.toSeq()},Ft.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){$t(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Ft.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t);return new z((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){$t(r);var o=a(r);return F(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},Bt.prototype.cacheResult=Rt.prototype.cacheResult=zt.prototype.cacheResult=Ft.prototype.cacheResult=rn,t(sn,Ee),sn.prototype.toString=function(){return this.__toString(ln(this)+" {","}")},sn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},sn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},sn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=un(this,et()))},sn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+ln(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:un(this,n)},sn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:un(this,t)},sn.prototype.wasAltered=function(){return this._map.wasAltered()},sn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},sn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},sn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?un(this,t,e):(this.__ownerID=e,this._map=t,this)};var cn=sn.prototype;function un(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function ln(e){return e._name||e.constructor.name||"Record"}function pn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){be(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function fn(e){return null==e?bn():dn(e)&&!l(e)?e:bn().withMutations((function(t){var n=i(e);ze(n.size),n.forEach((function(e){return t.add(e)}))}))}function dn(e){return!(!e||!e[gn])}cn[g]=cn.remove,cn.deleteIn=cn.removeIn=Ke.removeIn,cn.merge=Ke.merge,cn.mergeWith=Ke.mergeWith,cn.mergeIn=Ke.mergeIn,cn.mergeDeep=Ke.mergeDeep,cn.mergeDeepWith=Ke.mergeDeepWith,cn.mergeDeepIn=Ke.mergeDeepIn,cn.setIn=Ke.setIn,cn.update=Ke.update,cn.updateIn=Ke.updateIn,cn.withMutations=Ke.withMutations,cn.asMutable=Ke.asMutable,cn.asImmutable=Ke.asImmutable,t(fn,Oe),fn.of=function(){return this(arguments)},fn.fromKeys=function(e){return this(r(e).keySeq())},fn.prototype.toString=function(){return this.__toString("Set {","}")},fn.prototype.has=function(e){return this._map.has(e)},fn.prototype.add=function(e){return yn(this,this._map.set(e,!0))},fn.prototype.remove=function(e){return yn(this,this._map.remove(e))},fn.prototype.clear=function(){return yn(this,this._map.clear())},fn.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},fn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},fn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},fn.prototype.merge=function(){return this.union.apply(this,arguments)},fn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},fn.prototype.sort=function(e){return wn(Wt(this,e))},fn.prototype.sortBy=function(e,t){return wn(Wt(this,t,e))},fn.prototype.wasAltered=function(){return this._map.wasAltered()},fn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},fn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},fn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},fn.isSet=dn;var hn,gn="@@__IMMUTABLE_SET__@@",mn=fn.prototype;function yn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function vn(e,t){var n=Object.create(mn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function bn(){return hn||(hn=vn(et()))}function wn(e){return null==e?Mn():Sn(e)?e:Mn().withMutations((function(t){var n=i(e);ze(n.size),n.forEach((function(e){return t.add(e)}))}))}function Sn(e){return dn(e)&&l(e)}mn[gn]=!0,mn[g]=mn.remove,mn.mergeDeep=mn.merge,mn.mergeDeepWith=mn.mergeWith,mn.withMutations=Ke.withMutations,mn.asMutable=Ke.asMutable,mn.asImmutable=Ke.asImmutable,mn.__empty=bn,mn.__make=vn,t(wn,fn),wn.of=function(){return this(arguments)},wn.fromKeys=function(e){return this(r(e).keySeq())},wn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},wn.isOrderedSet=Sn;var En,kn=wn.prototype;function On(e,t){var n=Object.create(kn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Mn(){return En||(En=On(At()))}function Cn(e){return null==e?In():xn(e)?e:In().unshiftAll(e)}function xn(e){return!(!e||!e[Dn])}kn[h]=!0,kn.__empty=Mn,kn.__make=On,t(Cn,ke),Cn.of=function(){return this(arguments)},Cn.prototype.toString=function(){return this.__toString("Stack [","]")},Cn.prototype.get=function(e,t){var n=this._head;for(e=x(this,e);n&&e--;)n=n.next;return n?n.value:t},Cn.prototype.peek=function(){return this._head&&this._head.value},Cn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):jn(e,t)},Cn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;ze(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):jn(t,n)},Cn.prototype.pop=function(){return this.slice(1)},Cn.prototype.unshift=function(){return this.push.apply(this,arguments)},Cn.prototype.unshiftAll=function(e){return this.pushAll(e)},Cn.prototype.shift=function(){return this.pop.apply(this,arguments)},Cn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):In()},Cn.prototype.slice=function(e,t){if(D(e,t,this.size))return this;var n=T(e,this.size);if(j(t,this.size)!==this.size)return ke.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):jn(r,o)},Cn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?jn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Cn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Cn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new z((function(){if(r){var t=r.value;return r=r.next,F(e,n++,t)}return{value:void 0,done:!0}}))},Cn.isStack=xn;var _n,Dn="@@__IMMUTABLE_STACK__@@",Tn=Cn.prototype;function jn(e,t,n,r){var o=Object.create(Tn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function In(){return _n||(_n=jn(0))}function Nn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}Tn[Dn]=!0,Tn.withMutations=Ke.withMutations,Tn.asMutable=Ke.asMutable,Tn.asImmutable=Ke.asImmutable,Tn.wasAltered=Ke.wasAltered,n.Iterator=z,Nn(n,{toArray:function(){ze(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Bt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Rt(this,!0)},toMap:function(){return Fe(this.toKeyedSeq())},toObject:function(){ze(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return It(this.toKeyedSeq())},toOrderedSet:function(){return wn(s(this)?this.valueSeq():this)},toSet:function(){return fn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new zt(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Cn(s(this)?this.valueSeq():this)},toList:function(){return gt(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return Xt(this,function(e,t){var n=s(e),o=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?se(e):ce(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||n&&s(i)||c(e)&&c(i))return i}var u=new te(o);return n?u=u.toKeyedSeq():c(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),u}(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return me(t,e)}))},entries:function(){return this.__iterator(A)},every:function(e,t){ze(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return Xt(this,Kt(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return ze(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){ze(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(N)},map:function(e,t){return Xt(this,Ht(this,e,t))},reduce:function(e,t,n){var r,o;return ze(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Xt(this,Zt(this,!0))},slice:function(e,t){return Xt(this,Yt(this,e,t,!0))},some:function(e,t){return!this.every(Bn(e),t)},sort:function(e){return Xt(this,Wt(this,e))},values:function(){return this.__iterator(L)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return C(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Fe().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return ye(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(Rn).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Bn(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(_)},flatMap:function(e,t){return Xt(this,function(e,t,n){var r=tn(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return Xt(this,Gt(this,e,!0))},fromEntrySeq:function(){return new Ft(this)},get:function(e,t){return this.find((function(t,n){return me(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=an(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,b):b)===b)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=s(e),o=(l(e)?It():Fe()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=tn(e);return o.map((function(t){return Xt(e,i(t))}))}(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Pn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return qt(this,e)},maxBy:function(e,t){return qt(this,t,e)},min:function(e){return qt(this,e?zn(e):Hn)},minBy:function(e,t){return qt(this,t?zn(t):Hn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Xt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Xt(this,Vt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Bn(e),t)},sortBy:function(e,t){return Xt(this,Wt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Xt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Xt(this,function(e,t,n){var r=nn(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(A,o),s=!0;return new z((function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var o=e.value,c=o[0],u=o[1];return t.call(n,u,c,i)?r===A?e:F(r,c,u,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Bn(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=l(e),n=s(e),r=t?1:0;return function(e,t){return t=Me(t,3432918353),t=Me(t<<15|t>>>-15,461845907),t=Me(t<<13|t>>>-13,5),t=Me((t=(t+3864292196|0)^e)^t>>>16,2246822507),Ce((t=Me(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+Zn(xe(e),xe(t))|0}:function(e,t){r=r+Zn(xe(e),xe(t))|0}:t?function(e){r=31*r+xe(e)|0}:function(e){r=r+xe(e)|0}),r)}(this))}});var Ln=n.prototype;Ln[p]=!0,Ln[B]=Ln.values,Ln.__toJS=Ln.toArray,Ln.__toStringMapper=Fn,Ln.inspect=Ln.toSource=function(){return this.toString()},Ln.chain=Ln.flatMap,Ln.contains=Ln.includes,function(){try{Object.defineProperty(Ln,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Nn(r,{flip:function(){return Xt(this,Ut(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return me(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return me(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return Xt(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Xt(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var An=r.prototype;function Pn(e,t){return t}function Rn(e,t){return[t,e]}function Bn(e){return function(){return!e.apply(this,arguments)}}function zn(e){return function(){return-e.apply(this,arguments)}}function Fn(e){return"string"==typeof e?JSON.stringify(e):e}function Un(){return M(arguments)}function Hn(e,t){return e<t?1:e>t?-1:0}function Zn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return An[f]=!0,An[B]=Ln.entries,An.__toJS=Ln.toObject,An.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+Fn(e)},Nn(o,{toKeyedSeq:function(){return new Rt(this,!1)},filter:function(e,t){return Xt(this,Kt(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return Xt(this,Zt(this,!1))},slice:function(e,t){return Xt(this,Yt(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=T(e,e<0?this.count():this.size);var r=this.slice(0,e);return Xt(this,1===n?r:r.concat(M(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return Xt(this,Gt(this,e,!1))},get:function(e,t){return(e=x(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=x(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return Xt(this,function(e,t){var n=nn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e,r){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(L,r),a=0;return new z((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?F(n,a++,t):F(n,a++,o.value,o)}))},n}(this,e))},interleave:function(){var e=[this].concat(M(arguments)),t=Jt(this.toSeq(),q.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),Xt(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return Xt(this,Vt(this,e,t,!1))},zip:function(){return Xt(this,Jt(this,Un,[this].concat(M(arguments))))},zipWith:function(e){var t=M(arguments);return t[0]=this,Xt(this,Jt(this,e,t))}}),o.prototype[d]=!0,o.prototype[h]=!0,Nn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Ln.includes,Nn(W,r.prototype),Nn(q,o.prototype),Nn(Q,i.prototype),Nn(Ee,r.prototype),Nn(ke,o.prototype),Nn(Oe,i.prototype),{Iterable:n,Seq:G,Collection:Se,Map:Fe,OrderedMap:It,List:gt,Stack:Cn,Set:fn,OrderedSet:wn,Record:sn,Range:we,Repeat:ve,is:me,fromJS:fe}}()},6284:(e,t,n)=>{"use strict";n.d(t,{C:()=>c});var r=n(7582),o=n(9943),i=n(5957),a=n(1092);function s(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}var c=function(){function e(t,n,o,c){var u,l,p,f=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=f.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===a.du.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return(0,a.FK)(f.ast,f.locales,f.formatters,f.formats,e,void 0,f.message)},this.resolvedOptions=function(){return{locale:f.resolvedLocale.toString()}},this.getAst=function(){return f.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==c?void 0:c.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(l=e.formats,(p=o)?Object.keys(l).reduce((function(e,t){var n,o;return e[t]=(n=l[t],(o=p[t])?(0,r.pi)((0,r.pi)((0,r.pi)({},n||{}),o||{}),Object.keys(n).reduce((function(e,t){return e[t]=(0,r.pi)((0,r.pi)({},n[t]),o[t]||{}),e}),{})):n),e}),(0,r.pi)({},l)):l),this.formatters=c&&c.formatters||(void 0===(u=this.formatterCache)&&(u={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,i.Z)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,(0,r.ev)([void 0],t,!1)))}),{cache:s(u.number),strategy:i.A.variadic}),getDateTimeFormat:(0,i.Z)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,r.ev)([void 0],t,!1)))}),{cache:s(u.dateTime),strategy:i.A.variadic}),getPluralRules:(0,i.Z)((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,(0,r.ev)([void 0],t,!1)))}),{cache:s(u.pluralRules),strategy:i.A.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=o.Qc,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}()},1050:(e,t,n)=>{"use strict";n.d(t,{C8:()=>a,HR:()=>c,YR:()=>s,jK:()=>r,u_:()=>i});var r,o=n(7582);!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(r||(r={}));var i=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.code=n,o.originalMessage=r,o}return(0,o.ZT)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),a=function(e){function t(t,n,o,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(o).join('", "'),'"'),r.INVALID_VALUE,i)||this}return(0,o.ZT)(t,e),t}(i),s=function(e){function t(t,n,o){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),r.INVALID_VALUE,o)||this}return(0,o.ZT)(t,e),t}(i),c=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),r.MISSING_VALUE,n)||this}return(0,o.ZT)(t,e),t}(i)},1092:(e,t,n)=>{"use strict";n.d(t,{FK:()=>s,Gt:()=>a,du:()=>r});var r,o=n(9943),i=n(1050);function a(e){return"function"==typeof e}function s(e,t,n,c,u,l,p){if(1===e.length&&(0,o.O4)(e[0]))return[{type:r.literal,value:e[0].value}];for(var f=[],d=0,h=e;d<h.length;d++){var g=h[d];if((0,o.O4)(g))f.push({type:r.literal,value:g.value});else if((0,o.yx)(g))"number"==typeof l&&f.push({type:r.literal,value:n.getNumberFormat(t).format(l)});else{var m=g.value;if(!u||!(m in u))throw new i.HR(m,p);var y=u[m];if((0,o.VG)(g))y&&"string"!=typeof y&&"number"!=typeof y||(y="string"==typeof y||"number"==typeof y?String(y):""),f.push({type:"string"==typeof y?r.literal:r.object,value:y});else if((0,o.rp)(g)){var v="string"==typeof g.style?c.date[g.style]:(0,o.Ii)(g.style)?g.style.parsedOptions:void 0;f.push({type:r.literal,value:n.getDateTimeFormat(t,v).format(y)})}else if((0,o.pe)(g))v="string"==typeof g.style?c.time[g.style]:(0,o.Ii)(g.style)?g.style.parsedOptions:c.time.medium,f.push({type:r.literal,value:n.getDateTimeFormat(t,v).format(y)});else if((0,o.uf)(g))(v="string"==typeof g.style?c.number[g.style]:(0,o.Wh)(g.style)?g.style.parsedOptions:void 0)&&v.scale&&(y*=v.scale||1),f.push({type:r.literal,value:n.getNumberFormat(t,v).format(y)});else{if((0,o.HI)(g)){var b=g.children,w=g.value,S=u[w];if(!a(S))throw new i.YR(w,"function",p);var E=S(s(b,t,n,c,u,l).map((function(e){return e.value})));Array.isArray(E)||(E=[E]),f.push.apply(f,E.map((function(e){return{type:"string"==typeof e?r.literal:r.object,value:e}})))}if((0,o.Wi)(g)){if(!(k=g.options[y]||g.options.other))throw new i.C8(g.value,y,Object.keys(g.options),p);f.push.apply(f,s(k.value,t,n,c,u))}else if((0,o.Jo)(g)){var k;if(!(k=g.options["=".concat(y)])){if(!Intl.PluralRules)throw new i.u_('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',i.jK.MISSING_INTL_API,p);var O=n.getPluralRules(t,{type:g.pluralType}).select(y-(g.offset||0));k=g.options[O]||g.options.other}if(!k)throw new i.C8(g.value,y,Object.keys(g.options),p);f.push.apply(f,s(k.value,t,n,c,u,y-(g.offset||0)))}}}}return(M=f).length<2?M:M.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===r.literal&&t.type===r.literal?n.value+=t.value:e.push(t),e}),[]);var M}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(r||(r={}))},4301:(e,t,n)=>{n(7147),e.exports=self.fetch.bind(self)},7418:e=>{"use strict";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),c=1;c<arguments.length;c++){for(var u in i=Object(arguments[c]))n.call(i,u)&&(s[u]=i[u]);if(t){a=t(i);for(var l=0;l<a.length;l++)r.call(i,a[l])&&(s[a[l]]=i[a[l]])}}return s}},2703:(e,t,n)=>{"use strict";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=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8101:(e,t,n)=>{"use strict";var r=n(359),o=n(5697),i=n(4184);function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=a(r),c=a(o),u=a(i),l=function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};function p(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}var f=s.default.forwardRef((function(e,t){var n=e.classes,r=e.value,o=e.min,i=e.max,a=e.onChange,c=e.onMouseUpOrTouchEnd,u=e.onMouseUp,f=e.onTouchEnd,d=p(e,["classes","value","min","max","onChange","onMouseUpOrTouchEnd","onMouseUp","onTouchEnd"]);return s.default.createElement("input",l({ref:t,type:"range",value:r,min:o,max:i,onChange:function(e){return a(e,e.target.valueAsNumber)},onMouseUp:function(e){c(e),u&&u(e)},onTouchEnd:function(e){c(e),f&&f(e)},className:n,"aria-valuenow":Number(r),"aria-valuemin":Number(o),"aria-valuemax":Number(i)},d))})),d=s.default.memo(f),h=s.default.forwardRef((function(e,t){var n=e.value,o=e.onChange,i=void 0===o?function(){}:o,a=e.onAfterChange,c=void 0===a?function(){}:a,f=e.disabled,h=void 0!==f&&f,g=e.size,m=e.min,y=void 0===m?0:m,v=e.max,b=void 0===v?100:v,w=e.step,S=e.variant,E=void 0===S?"primary":S,k=e.inputProps,O=void 0===k?{}:k,M=e.tooltip,C=void 0===M?"auto":M,x=e.tooltipPlacement,_=void 0===x?"bottom":x,D=e.tooltipLabel,T=e.tooltipStyle,j=void 0===T?{}:T,I=e.tooltipProps,N=void 0===I?{}:I,L=e.bsPrefix,A=e.className,P=p(e,["value","onChange","onAfterChange","disabled","size","min","max","step","variant","inputProps","tooltip","tooltipPlacement","tooltipLabel","tooltipStyle","tooltipProps","bsPrefix","className"]),R=r.useState(),B=R[0],z=R[1],F=L||"range-slider",U="auto"===C||"on"===C,H=u.default(A,F,g&&F+"--"+g,h&&"disabled",E&&F+"--"+E),Z=l(l({},O),P),K=Z.onMouseUp,Y=Z.onTouchEnd,V=p(Z,["onMouseUp","onTouchEnd"]),G=r.useCallback((function(e){B!==e.target.value&&c(e,e.target.valueAsNumber),z(e.target.value)}),[B,c]),W=s.default.createElement(d,l({},l({disabled:h,value:n,min:y,max:b,ref:t,step:w,classes:H,onMouseUpOrTouchEnd:G,onTouchEnd:Y,onMouseUp:K,onChange:i},V))),q=u.default(F+"__wrap",g&&F+"__wrap--"+g),Q=u.default(F+"__tooltip",U&&F+"__tooltip--"+C,_&&F+"__tooltip--"+_,h&&F+"__tooltip--disabled"),J="sm"===g?8:"lg"===g?12:10,X=(Number(n)-y)/(b-y),$=100*X,ee=2*(X-.5)*-J;return s.default.createElement("span",{className:q},W,U&&s.default.createElement("div",l({className:Q,style:l(l({},j||{}),{left:"calc("+$+"% + "+ee+"px)"})},N),s.default.createElement("div",{className:F+"__tooltip__label"},D?D(Number(n)):n),s.default.createElement("div",{className:F+"__tooltip__caret"})))}));h.propTypes={value:c.default.oneOfType([c.default.number,c.default.string]).isRequired,onChange:c.default.func,onAfterChange:c.default.func,min:c.default.number,max:c.default.number,step:c.default.number,disabled:c.default.bool,size:c.default.oneOf(["sm","lg"]),variant:c.default.oneOf(["primary","secondary","success","danger","warning","info","dark","light"]),inputProps:c.default.object,tooltip:c.default.oneOf(["auto","on","off"]),tooltipPlacement:c.default.oneOf(["top","bottom"]),tooltipLabel:c.default.func,tooltipStyle:c.default.object,tooltipProps:c.default.object,className:c.default.string,bsPrefix:c.default.string};var g=s.default.memo(h);e.exports=g},7445:(e,t,n)=>{"use strict";n.d(t,{L:()=>Se,W:()=>Ee});var r=n(359);function o(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. "}var i="function"==typeof Symbol&&Symbol.observable||"@@observable",a=function(){return Math.random().toString(36).substring(7).split("").join(".")},s={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function c(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(o(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(o(1));return n(c)(e,t)}if("function"!=typeof e)throw new Error(o(2));var a=e,u=t,l=[],p=l,f=!1;function d(){p===l&&(p=l.slice())}function h(){if(f)throw new Error(o(3));return u}function g(e){if("function"!=typeof e)throw new Error(o(4));if(f)throw new Error(o(5));var t=!0;return d(),p.push(e),function(){if(t){if(f)throw new Error(o(6));t=!1,d();var n=p.indexOf(e);p.splice(n,1),l=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(o(7));if(void 0===e.type)throw new Error(o(8));if(f)throw new Error(o(9));try{f=!0,u=a(u,e)}finally{f=!1}for(var t=l=p,n=0;n<t.length;n++)(0,t[n])();return e}return m({type:s.INIT}),(r={dispatch:m,subscribe:g,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error(o(10));a=e,m({type:s.REPLACE})}})[i]=function(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(o(11));function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[i]=function(){return this},e},r}var u="dnd-core/INIT_COORDS",l="dnd-core/BEGIN_DRAG",p="dnd-core/PUBLISH_DRAG_SOURCE",f="dnd-core/HOVER",d="dnd-core/DROP",h="dnd-core/END_DRAG",g=function(e,t){return e===t};function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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 b={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function w(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,r=arguments.length>1?arguments[1]:void 0,o=r.payload;switch(r.type){case u:case l:return{initialSourceClientOffset:o.sourceClientOffset,initialClientOffset:o.clientOffset,clientOffset:o.clientOffset};case f:return e=n.clientOffset,t=o.clientOffset,!e&&!t||e&&t&&e.x===t.x&&e.y===t.y?n:y(y({},n),{},{clientOffset:o.clientOffset});case h:case d:return b;default:return n}}var S="dnd-core/ADD_SOURCE",E="dnd-core/ADD_TARGET",k="dnd-core/REMOVE_SOURCE",O="dnd-core/REMOVE_TARGET";function M(e){return M="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},M(e)}function C(e){return"object"===M(e)}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var T={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function j(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T,r=arguments.length>1?arguments[1]:void 0,o=r.payload;switch(r.type){case l:return _(_({},n),{},{itemType:o.itemType,item:o.item,sourceId:o.sourceId,isSourcePublic:o.isSourcePublic,dropResult:null,didDrop:!1});case p:return _(_({},n),{},{isSourcePublic:!0});case f:return _(_({},n),{},{targetIds:o.targetIds});case O:return-1===n.targetIds.indexOf(o.targetId)?n:_(_({},n),{},{targetIds:(e=n.targetIds,t=o.targetId,e.filter((function(e){return e!==t})))});case d:return _(_({},n),{},{dropResult:o.dropResult,didDrop:!0,targetIds:[]});case h:return _(_({},n),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return n}}function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case S:case E:return e+1;case k:case O:return e-1;default:return e}}var N=[],L=[];function A(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case f:break;case S:case E:case O:case k:return N;default:return L}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]:g;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 N;var c=i[i.length-1],u=r[r.length-1];return c!==u&&(c&&a.push(c),u&&a.push(u)),a}function P(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function z(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(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:A(n.dirtyHandlerIds,{type:r.type,payload:B(B({},r.payload),{},{prevTargetIds:(e=n,"dragOperation.targetIds",t=[],"dragOperation.targetIds".split(".").reduce((function(e,n){return e&&e[n]?e[n]:t||null}),e))})}),dragOffset:w(n.dragOffset,r),refCount:I(n.refCount,r),dragOperation:j(n.dragOperation,r),stateId:P(n.stateId)}}N.__IS_NONE__=!0,L.__IS_ALL__=!0;var U=n(8195);function H(e,t){return{type:u,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var Z={type:u,payload:{clientOffset:null,sourceClientOffset:null}};function K(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,a=n.getSourceClientOffset,s=e.getMonitor(),c=e.getRegistry();e.dispatch(H(i)),function(e,t,n){(0,U.k)(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){(0,U.k)(n.getSource(e),"Expected sourceIds to be registered.")}))}(t,s,c);var u=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,s);if(null!==u){var p=null;if(i){if(!a)throw new Error("getSourceClientOffset must be defined");!function(e){(0,U.k)("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(a),p=a(u)}e.dispatch(H(i,p));var f=c.getSource(u).beginDrag(s,u);!function(e){(0,U.k)(C(e),"Item must be an object.")}(f),c.pinSource(u);var d=c.getSourceType(u);return{type:l,payload:{itemType:d,item:f,sourceId:u,clientOffset:i||null,sourceClientOffset:p||null,isSourcePublic:!!o}}}e.dispatch(Z)}}function Y(e){return function(){if(e.getMonitor().isDragging())return{type:p}}}function V(e,t){return null===t?null===e:Array.isArray(e)?e.some((function(e){return e===t})):e===t}function G(e){return function(t){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).clientOffset;!function(e){(0,U.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,U.k)(t.isDragging(),"Cannot call hover while not dragging."),(0,U.k)(!t.didDrop(),"Cannot call hover after drop.");for(var r=0;r<e.length;r++){var o=e[r];(0,U.k)(e.lastIndexOf(o)===r,"Expected targetIds to be unique in the passed array.");var i=n.getTarget(o);(0,U.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:f,payload:{targetIds:r,clientOffset:n||null}}}}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){Q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(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 J(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getMonitor(),r=e.getRegistry();!function(e){(0,U.k)(e.isDragging(),"Cannot call drop while not dragging."),(0,U.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,U.k)(void 0===e||C(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:d,payload:{dropResult:q(q({},t),a)}};e.dispatch(s)}))}}function X(e){return function(){var t=e.getMonitor(),n=e.getRegistry();!function(e){(0,U.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:h}}}function $(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var te,ne=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,n;return t=e,n=[{key:"subscribeToStateChange",value:function(e){var t=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0}).handlerIds;(0,U.k)("function"==typeof e,"listener must be a function."),(0,U.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!==N&&(e===L||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,U.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,U.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,U.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,U.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?$((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?$(t,n):null;var e,t,n}}],n&&ee(t.prototype,n),e}(),re=0;function oe(e){return oe="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},oe(e)}function ie(e,t){t&&Array.isArray(e)?e.forEach((function(e){return ie(e,!1)})):(0,U.k)("string"==typeof e||"symbol"===oe(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"}(te||(te={}));const ae="undefined"!=typeof global?global:self,se=ae.MutationObserver||ae.WebKitMutationObserver;function ce(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const ue="function"==typeof se?function(e){let t=1;const n=new se(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:ce;class le{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 pe=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=ue(this.flush),this.requestErrorThrow=ce((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},fe=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new le(this.onError,(e=>t[t.length]=e));return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(pe.registerPendingError);function de(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 he(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 ge(e){switch(e[0]){case"S":return te.SOURCE;case"T":return te.TARGET;default:(0,U.k)(!1,"Cannot parse handler ID: ".concat(e))}}function me(e,t){var n,r,o=e.entries(),i=!1;do{var a=o.next(),s=a.done;if((n=a.value,r=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),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(n,r)||function(e,t){if(e){if("string"==typeof e)return he(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)?he(e,t):void 0}}(n,r)||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;i=!!s}while(!i);return!1}var ye=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,n;return t=e,n=[{key:"addSource",value:function(e,t){ie(e),function(e){(0,U.k)("function"==typeof e.canDrag,"Expected canDrag to be a function."),(0,U.k)("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),(0,U.k)("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var n=this.addHandler(te.SOURCE,e,t);return this.store.dispatch(function(e){return{type:S,payload:{sourceId:e}}}(n)),n}},{key:"addTarget",value:function(e,t){ie(e,!0),function(e){(0,U.k)("function"==typeof e.canDrop,"Expected canDrop to be a function."),(0,U.k)("function"==typeof e.hover,"Expected hover to be a function."),(0,U.k)("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var n=this.addHandler(te.TARGET,e,t);return this.store.dispatch(function(e){return{type:E,payload:{targetId:e}}}(n)),n}},{key:"containsHandler",value:function(e){return me(this.dragSources,e)||me(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,U.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,U.k)(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return(0,U.k)(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return(0,U.k)(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return ge(e)===te.SOURCE}},{key:"isTargetId",value:function(e){return ge(e)===te.TARGET}},{key:"removeSource",value:function(e){var t,n=this;(0,U.k)(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:k,payload:{sourceId:e}}}(e)),t=function(){n.dragSources.delete(e),n.types.delete(e)},pe.enqueueTask(fe.create(t))}},{key:"removeTarget",value:function(e){(0,U.k)(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:O,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);(0,U.k)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){(0,U.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=(re++).toString();switch(e){case te.SOURCE:return"S".concat(t);case te.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}(e);return this.types.set(r,t),e===te.SOURCE?this.dragSources.set(r,n):e===te.TARGET&&this.dropTargets.set(r,n),r}}],n&&de(t.prototype,n),e}();function ve(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var be=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 c(F,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(n);this.store=r,this.monitor=new ne(r,new ye(r)),r.subscribe(this.handleRefCountChange)}var t,n;return t=e,n=[{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:K(e),publishDragSource:Y(e),hover:G(e),drop:J(e),endDrag:X(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)}}],n&&ve(t.prototype,n),e}();function we(e,t,n,r){var o=new be(r),i=e(o,t,n);return o.receiveBackend(i),o}var Se=r.createContext({dragDropManager:void 0});function Ee(e,t,n,r){return{dragDropManager:we(e,t,n,r)}}},9605:(e,t,n)=>{"use strict";n.d(t,{DragLayer:()=>ie,DragSource:()=>Y,DropTarget:()=>ee});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 c(e){var t=e.current;return null==t?null:t.decoratedRef?t.decoratedRef.current:t}function u(e){return(t=e)&&t.prototype&&"function"==typeof t.prototype.render||function(e){var t;return"Symbol(react.forward_ref)"===(null==e||null===(t=e.$$typeof)||void 0===t?void 0:t.toString())}(e);var t}var l=n(359);function p(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),c=0;c<i.length;c++){var u=i[c];if(!s(u))return!1;var l=e[u],p=t[u];if(!1===(o=n?n.call(r,l,p,u):void 0)||void 0===o&&l!==p)return!1}return!0}var f=n(8679),d=n.n(f),h=n(7445);function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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 y(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),e}var v=function(){var e=function(){function e(t){g(this,e),this.isDisposed=!1,this.action=i(t)?t:a}return y(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}(),b=function(){function e(){g(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 y(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}(),w=function(){function e(){g(this,e),this.isDisposed=!1}return y(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 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 E(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){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 O(e,t){return O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},O(e,t)}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}function C(e){var t=e.DecoratedComponent,n=e.createHandler,o=e.createMonitor,i=e.createConnector,a=e.registerHandler,s=e.containerDisplayName,c=e.getType,f=e.collect,g=e.options.arePropsEqual,m=void 0===g?p:g,y=t,C=t.displayName||t.name||"Component",x=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&&O(e,t)}(_,e);var t,s,d,g,x=(d=_,g=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=M(d);if(g){var n=M(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return 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,e)});function _(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,_),(t=x.call(this,e)).decoratedRef=l.createRef(),t.handleChange=function(){var e=t.getCurrentState();p(e,t.state)||t.setState(e)},t.disposable=new w,t.receiveProps(e),t.dispose(),t}return t=_,(s=[{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!m(e,this.props)||!p(t,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new w,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(e){m(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(c(e)))}},{key:"receiveType",value:function(e){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&e!==this.currentType){this.currentType=e;var t=(i=a(e,this.handler,this.manager),s=2,function(e){if(Array.isArray(e))return e}(i)||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),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(i,s)||function(e,t){if(e){if("string"==typeof e)return E(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)?E(e,t):void 0}}(i,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.")}()),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 b(new v(o),new v(r)))}var i,s}},{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 l.createElement(h.L.Consumer,null,(function(t){var n=t.dragDropManager;return e.receiveDragDropManager(n),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame((function(){var t;return null===(t=e.handlerConnector)||void 0===t?void 0:t.reconnect()})),l.createElement(y,Object.assign({},e.props,e.getCurrentState(),{ref:u(y)?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)))}}])&&k(t.prototype,s),_}(l.Component);return e.DecoratedComponent=t,e.displayName="".concat(s,"(").concat(C,")"),e}();return d()(x,t)}function x(e,t,n){var r=n.getRegistry(),o=r.addTarget(e,t);return[o,function(){return r.removeTarget(o)}]}function _(e,t,n){var r=n.getRegistry(),o=r.addSource(e,t);return[o,function(){return r.removeSource(o)}]}function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var T=!1,j=!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.sourceId=null,this.internalMonitor=t.getMonitor()}var t,n;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){(0,r.k)(!T,"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 T=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{T=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;(0,r.k)(!j,"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 j=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{j=!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()}}])&&D(t.prototype,n),e}();function N(e,t){"function"==typeof e?e(t):e.current=t}function L(e){var t={};return Object.keys(e).forEach((function(n){var o=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var i=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,l.isValidElement)(t)){var o=t;return e(o,n),o}var i=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.")}}(i);var a=n?function(t){return e(t,n)}:e;return function(e,t){var n=e.ref;return(0,r.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,l.cloneElement)(e,{ref:function(e){N(n,e),N(t,e)}}):(0,l.cloneElement)(e,{ref:t})}(i,a)}}(o);t[n]=function(){return i}}})),t}function A(e){return A="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},A(e)}function P(e){return null!==e&&"object"===A(e)&&Object.prototype.hasOwnProperty.call(e,"current")}function R(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var B=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=L({dragSource:function(e,t){n.clearDragSource(),n.dragSourceOptions=t||null,P(e)?n.dragSourceRef=e:n.dragSourceNode=e,n.reconnectDragSource()},dragPreview:function(e,t){n.clearDragPreview(),n.dragPreviewOptions=t||null,P(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,n;return t=e,(n=[{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!p(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!p(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}}])&&R(t.prototype,n),e}();function z(e){return z="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},z(e)}function F(e,t){return"string"==typeof e||"symbol"===z(e)||!!t&&Array.isArray(e)&&e.every((function(e){return F(e,!1)}))}function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var H=["canDrag","beginDrag","isDragging","endDrag"],Z=["beginDrag"],K=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,n;return t=e,(n=[{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,c(this.ref))}}])&&U(t.prototype,n),e}();function Y(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e;"function"!=typeof e&&((0,r.k)(F(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)(H.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',H.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])})),Z.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 K(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:_,createConnector:function(e){return new B(e)},createMonitor:function(e){return new I(e)},DecoratedComponent:e,getType:i,collect:n,options:o})}}function V(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var G=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=L({dropTarget:function(e,t){n.clearDropTarget(),n.dropTargetOptions=t,P(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,n;return t=e,(n=[{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!p(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}}])&&V(t.prototype,n),e}();function W(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var q=!1,Q=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,n;return t=e,(n=[{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)(!q,"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 q=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{q=!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()}}])&&W(t.prototype,n),e}();function J(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var X=["canDrop","hover","drop"],$=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,n;return t=e,(n=[{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,c(this.ref))}},{key:"drop",value:function(){if(this.spec.drop)return this.spec.drop(this.props,this.monitor,this.ref.current)}}])&&J(t.prototype,n),e}();function ee(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e;"function"!=typeof e&&((0,r.k)(F(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)(X.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',X.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 $(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:x,createMonitor:function(e){return new Q(e)},createConnector:function(e){return new G(e)},DecoratedComponent:e,getType:i,collect:n,options:o})}}function te(e){return te="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},te(e)}function ne(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 re(e,t){return re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},re(e,t)}function oe(e){return oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},oe(e)}function ie(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.k)("function"==typeof e,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",e),(0,r.k)(s(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer',t),function(n){var o=n,i=t.arePropsEqual,a=void 0===i?p:i,s=o.displayName||o.name||"Component",c=function(){var t=function(t){!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&&re(e,t)}(g,t);var n,i,c,f,d=(c=g,f=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=oe(c);if(f){var n=oe(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==te(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 g(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),(e=d.apply(this,arguments)).isCurrentlyMounted=!1,e.ref=l.createRef(),e.handleChange=function(){if(e.isCurrentlyMounted){var t=e.getCurrentState();p(t,e.state)||e.setState(t)}},e}return n=g,(i=[{key:"getDecoratedComponentInstance",value:function(){return(0,r.k)(this.ref.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.ref.current}},{key:"shouldComponentUpdate",value:function(e,t){return!a(e,this.props)||!p(t,this.state)}},{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0,this.handleChange()}},{key:"componentWillUnmount",value:function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange&&(this.unsubscribeFromOffsetChange(),this.unsubscribeFromOffsetChange=void 0),this.unsubscribeFromStateChange&&(this.unsubscribeFromStateChange(),this.unsubscribeFromStateChange=void 0)}},{key:"render",value:function(){var e=this;return l.createElement(h.L.Consumer,null,(function(t){var n=t.dragDropManager;return void 0===n?null:(e.receiveDragDropManager(n),e.isCurrentlyMounted?l.createElement(o,Object.assign({},e.props,e.state,{ref:u(o)?e.ref:null})):null)}))}},{key:"receiveDragDropManager",value:function(e){if(void 0===this.manager){this.manager=e,(0,r.k)("object"===te(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",s,s);var t=this.manager.getMonitor();this.unsubscribeFromOffsetChange=t.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=t.subscribeToStateChange(this.handleChange)}}},{key:"getCurrentState",value:function(){if(!this.manager)return{};var t=this.manager.getMonitor();return e(t,this.props)}}])&&ne(n.prototype,i),g}(l.Component);return t.displayName="DragLayer(".concat(s,")"),t.DecoratedComponent=n,t}();return d()(c,n)}}},4785:(e,t,n)=>{"use strict";n.d(t,{DragLayer:()=>o.DragLayer,DragSource:()=>o.DragSource,DropTarget:()=>o.DropTarget});var r=n(1388);n.o(r,"DragLayer")&&n.d(t,{DragLayer:function(){return r.DragLayer}}),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(9605)},3897:()=>{},8058:()=>{},1388:(e,t,n)=>{"use strict";var r=n(5253);n.o(r,"DragLayer")&&n.d(t,{DragLayer:function(){return r.DragLayer}}),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,"DragLayer")&&n.d(t,{DragLayer:function(){return o.DragLayer}}),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,"DragLayer")&&n.d(t,{DragLayer:function(){return i.DragLayer}}),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,"DragLayer")&&n.d(t,{DragLayer:function(){return a.DragLayer}}),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:()=>{},5108:(e,t,n)=>{window,e.exports=function(e,t,n){return i={},r.m=o=[function(e,t,n){e.exports=n(10)()},function(t,n){t.exports=e},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"==i||"number"==i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"==i)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,n){e.exports=t},function(e,t,n){function r(e){if(s[e])return s[e].exports;var t=s[e]={i:e,l:!1,exports:{}};return a[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,i,a,s;window,e.exports=(o=n(3),i=n(5),s={},r.m=a=[function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t,n){e.exports=n(3)},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(1);function i(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getStartKey(),o=t.getEndKey(),i=n.getBlockMap();return i.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).concat([[o,i.get(o)]])}function a(e){return i(e).toList()}function s(e){if(e)return a(e).get(0)}function c(e){if(e){var t=s(e),n=e.getCurrentContent().getBlockMap().toSeq().toList(),r=0;if(n.forEach((function(e,n){e.get("key")===t.get("key")&&(r=n-1)})),-1<r)return n.get(r)}}function u(e){return e?e.getCurrentContent().getBlockMap().toList():new o.List}function l(e){var t=a(e);if(!t.some((function(e){return e.type!==t.get(0).type})))return t.get(0).type}function p(e){var t=r.RichUtils.tryToRemoveBlockStyle(e);return t?r.EditorState.push(e,t,"change-block-type"):e}function f(e){var t="",n=e.getSelection(),r=n.getAnchorOffset(),o=n.getFocusOffset(),i=a(e);if(0<i.size){if(n.getIsBackward()){var s=r;r=o,o=s}for(var c=0;c<i.size;c+=1){var u=0===c?r:0,l=c===i.size-1?o:i.get(c).getText().length;t+=i.get(c).getText().slice(u,l)}}return t}function d(e){var t=e.getCurrentContent(),n=e.getSelection(),o=r.Modifier.removeRange(t,n,"forward"),i=o.getSelectionAfter(),a=o.getBlockForKey(i.getStartKey());return o=r.Modifier.insertText(o,i,"\n",a.getInlineStyleAt(i.getStartOffset()),null),r.EditorState.push(e,o,"insert-fragment")}function h(e){var t=r.Modifier.splitBlock(e.getCurrentContent(),e.getSelection());return p(r.EditorState.push(e,t,"split-block"))}function g(e){var t=e.getCurrentContent().getBlockMap().toList(),n=e.getSelection().merge({anchorKey:t.first().get("key"),anchorOffset:0,focusKey:t.last().get("key"),focusOffset:t.last().getLength()}),o=r.Modifier.removeRange(e.getCurrentContent(),n,"forward");return r.EditorState.push(e,o,"remove-range")}function m(e,t){var n=r.Modifier.setBlockData(e.getCurrentContent(),e.getSelection(),t);return r.EditorState.push(e,n,"change-block-data")}function y(e){var t=new o.Map({}),n=a(e);if(n&&0<n.size)for(var r=function(e){var r=n.get(e).getData();if(!r||0===r.size)return t=t.clear(),"break";if(0===e)t=r;else if(t.forEach((function(e,n){r.get(n)&&r.get(n)===e||(t=t.delete(n))})),0===t.size)return t=t.clear(),"break"},i=0;i<n.size&&"break"!==r(i);i+=1);return t}var v=Object(o.Map)({code:{element:"pre"}}),b=r.DefaultDraftBlockRenderMap.merge(v);function w(e){if(e){var t=e.getType();return"unordered-list-item"===t||"ordered-list-item"===t}return!1}function S(e,t,n){var o,a=e.getSelection();o=a.getIsBackward()?a.getFocusKey():a.getAnchorKey();var s=e.getCurrentContent(),c=s.getBlockForKey(o),u=c.getType();if("unordered-list-item"!==u&&"ordered-list-item"!==u)return e;var l=s.getBlockBefore(o);if(!l)return e;if(l.getType()!==u)return e;var p=c.getDepth();if(1===t&&p===n)return e;var f,d,h,g,m,y,v,b=Math.min(l.getDepth()+1,n),w=(d=t,h=b,g=(f=e).getSelection(),y=(m=f.getCurrentContent()).getBlockMap(),v=i(f).map((function(e){var t=e.getDepth()+d;return t=Math.max(0,Math.min(t,h)),e.set("depth",t)})),y=y.merge(v),m.merge({blockMap:y,selectionBefore:g,selectionAfter:g}));return r.EditorState.push(e,w,"adjust-depth")}function E(e,t){var n;return 13===(n=t).which&&(n.getModifierState("Shift")||n.getModifierState("Alt")||n.getModifierState("Control"))?e.getSelection().isCollapsed()?r.RichUtils.insertSoftNewline(e):d(e):function(e){var t=e.getSelection();if(t.isCollapsed()){var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r);if(!w(o)&&"unstyled"!==o.getType()&&o.getLength()===t.getStartOffset())return h(e);if(w(o)&&0===o.getLength()){var i=o.getDepth();if(0===i)return p(e);if(0<i)return S(e,-1,i)}}}(e)}function k(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 O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e){return(M="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)}function C(e){var t=e.getSelection();if(t.isCollapsed()){var n={},r=e.getCurrentInlineStyle().toList().toJS();if(r)return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(e){n[e]=0<=r.indexOf(e)})),n}var o=t.getStartOffset(),i=t.getEndOffset(),s=a(e);if(0<s.size){var c=function(){for(var e={BOLD:!0,ITALIC:!0,UNDERLINE:!0,STRIKETHROUGH:!0,CODE:!0,SUPERSCRIPT:!0,SUBSCRIPT:!0},t=0;t<s.size;t+=1){var n=0===t?o:0,r=t===s.size-1?i:s.get(t).getText().length;n===r&&0===n?(n=1,r=2):n===r&&--n;for(var a=function(n){var r=s.get(t).getInlineStyleAt(n);["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(t){e[t]=e[t]&&r.get(t)===t}))},c=n;c<r;c+=1)a(c)}return{v:e}}();if("object"===M(c))return c.v}return{}}function x(e){var t,n=e.getSelection(),r=n.getStartOffset(),o=n.getEndOffset();r===o&&0===r?o=1:r===o&&--r;for(var i=s(e),a=r;a<o;a+=1){var c=i.getEntityAt(a);if(!c){t=void 0;break}if(a===r)t=c;else if(t!==c){t=void 0;break}}return t}function _(e,t){var n,r=s(e);return r.findEntityRanges((function(e){return e.get("entity")===t}),(function(e,t){n={start:e,end:t,text:r.get("text").slice(e,t)}})),n}function D(e,t,n){j[e]["".concat(e.toLowerCase(),"-").concat(n)]=O({},"".concat(t),n)}function T(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},j.color,{},j.bgcolor,{},j.fontSize,{},j.fontFamily,{CODE:j.CODE,SUPERSCRIPT:j.SUPERSCRIPT,SUBSCRIPT:j.SUBSCRIPT})}var j={color:{},bgcolor:{},fontSize:{},fontFamily:{},CODE:{fontFamily:"monospace",wordWrap:"break-word",background:"#f1f1f1",borderRadius:3,padding:"1px 3px"},SUPERSCRIPT:{fontSize:11,position:"relative",top:-8,display:"inline-flex"},SUBSCRIPT:{fontSize:11,position:"relative",bottom:-8,display:"inline-flex"}};function I(e,t,n){var o=e.getSelection(),i=Object.keys(j[t]).reduce((function(e,t){return r.Modifier.removeInlineStyle(e,o,t)}),e.getCurrentContent()),a=r.EditorState.push(e,i,"changeinline-style"),s=e.getCurrentInlineStyle();if(o.isCollapsed()&&(a=s.reduce((function(e,t){return r.RichUtils.toggleInlineStyle(e,t)}),a)),"SUPERSCRIPT"===t||"SUBSCRIPT"==t)s.has(n)||(a=r.RichUtils.toggleInlineStyle(a,n));else{var c="bgcolor"===t?"backgroundColor":t;s.has("".concat(c,"-").concat(n))||(a=r.RichUtils.toggleInlineStyle(a,"".concat(t.toLowerCase(),"-").concat(n)),D(t,c,n))}return a}function N(e){e&&e.getCurrentContent().getBlockMap().map((function(e){return e.get("characterList")})).toList().flatten().forEach((function(e){e&&0===e.indexOf("color-")?D("color","color",e.substr(6)):e&&0===e.indexOf("bgcolor-")?D("bgcolor","backgroundColor",e.substr(8)):e&&0===e.indexOf("fontsize-")?D("fontSize","fontSize",+e.substr(9)):e&&0===e.indexOf("fontfamily-")&&D("fontFamily","fontFamily",e.substr(11))}))}function L(e,t,n){var r=e.getInlineStyleAt(n).toList().filter((function(e){return e.startsWith(t.toLowerCase())}));if(r&&0<r.size)return r.get(0)}function A(e,t){if(e&&t&&0<t.length){var n=function(){var n=e.getSelection(),r={};if(n.isCollapsed())return t.forEach((function(t){r[t]=function(e,t){var n=e.getCurrentInlineStyle().toList().filter((function(e){return e.startsWith(t.toLowerCase())}));if(n&&0<n.size)return n.get(0)}(e,t)})),{v:r};var o=n.getStartOffset(),i=n.getEndOffset(),s=a(e);if(0<s.size){for(var c=function(e){var n=0===e?o:0,a=e===s.size-1?i:s.get(e).getText().length;n===a&&0===n?(n=1,a=2):n===a&&--n;for(var c=function(o){o===n?t.forEach((function(t){r[t]=L(s.get(e),t,o)})):t.forEach((function(t){r[t]&&r[t]!==L(s.get(e),t,o)&&(r[t]=void 0)}))},u=n;u<a;u+=1)c(u)},u=0;u<s.size;u+=1)c(u);return{v:r}}}();if("object"===M(n))return n.v}return{}}function P(e){var t=e.getCurrentInlineStyle(),n=e.getCurrentContent();return t.forEach((function(t){n=r.Modifier.removeInlineStyle(n,e.getSelection(),t)})),r.EditorState.push(e,n,"change-inline-style")}n.d(t,"isListBlock",(function(){return w})),n.d(t,"changeDepth",(function(){return S})),n.d(t,"handleNewLine",(function(){return E})),n.d(t,"getEntityRange",(function(){return _})),n.d(t,"getCustomStyleMap",(function(){return T})),n.d(t,"toggleCustomInlineStyle",(function(){return I})),n.d(t,"getSelectionEntity",(function(){return x})),n.d(t,"extractInlineStyle",(function(){return N})),n.d(t,"removeAllInlineStyles",(function(){return P})),n.d(t,"getSelectionInlineStyle",(function(){return C})),n.d(t,"getSelectionCustomInlineStyle",(function(){return A})),n.d(t,"getSelectedBlocksMap",(function(){return i})),n.d(t,"getSelectedBlocksList",(function(){return a})),n.d(t,"getSelectedBlock",(function(){return s})),n.d(t,"getBlockBeforeSelectedBlock",(function(){return c})),n.d(t,"getAllBlocks",(function(){return u})),n.d(t,"getSelectedBlocksType",(function(){return l})),n.d(t,"removeSelectedBlocksStyle",(function(){return p})),n.d(t,"getSelectionText",(function(){return f})),n.d(t,"addLineBreakRemovingSelection",(function(){return d})),n.d(t,"insertNewUnstyledBlock",(function(){return h})),n.d(t,"clearEditorContent",(function(){return g})),n.d(t,"setBlockData",(function(){return m})),n.d(t,"getSelectedBlocksMetadata",(function(){return y})),n.d(t,"blockRenderMap",(function(){return b}))}],r.c=s,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2))},function(e,t){e.exports=n},function(e,t,n){function r(e){if(s[e])return s[e].exports;var t=s[e]={i:e,l:!1,exports:{}};return a[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,i,a,s;window,e.exports=(o=n(5),i=n(3),s={},r.m=a=[function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t,n){e.exports=n(3)},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),i=function(e,t,n){var r,i=e.textContent;return""===i.trim()?{chunk:(r=n,{text:" ",inlines:[new o.OrderedSet],entities:[r],blocks:[]})}:{chunk:{text:i,inlines:Array(i.length).fill(t),entities:Array(i.length).fill(n),blocks:[]}}},a=function(){return{text:"\n",inlines:[new o.OrderedSet],entities:new Array(1),blocks:[]}},s=function(e,t){return{text:"",inlines:[],entities:[],blocks:[{type:e,depth:0,data:t||new o.Map({})}]}},c=function(e,t,n){return{text:"\r",inlines:[],entities:[],blocks:[{type:e,depth:Math.max(0,Math.min(4,t)),data:n||new o.Map({})}]}},u=function(e){return{text:"\r ",inlines:[new o.OrderedSet],entities:[e],blocks:[{type:"atomic",depth:0,data:new o.Map({})}]}},l=function(e,t){return{text:e.text+t.text,inlines:e.inlines.concat(t.inlines),entities:e.entities.concat(t.entities),blocks:e.blocks.concat(t.blocks)}},p=new o.Map({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:"ul"},"ordered-list-item":{element:"li",wrapper:"ol"},blockquote:{element:"blockquote"},code:{element:"pre"},atomic:{element:"figure"},unstyled:{element:"p",aliasedElements:["div"]}}),f={code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",strong:"BOLD",ins:"UNDERLINE",sub:"SUBSCRIPT",sup:"SUPERSCRIPT"};function d(e){return e.style.textAlign?new o.Map({"text-align":e.style.textAlign}):e.style.marginLeft?new o.Map({"margin-left":e.style.marginLeft}):void 0}var h=function(e){var t=void 0;if(e instanceof HTMLAnchorElement){var n={};t=e.dataset&&void 0!==e.dataset.mention?(n.url=e.href,n.text=e.innerHTML,n.value=e.dataset.value,r.Entity.__create("MENTION","IMMUTABLE",n)):(n.url=e.getAttribute&&e.getAttribute("href")||e.href,n.title=e.innerHTML,n.targetOption=e.target,r.Entity.__create("LINK","MUTABLE",n))}return t};n.d(t,"default",(function(){return v}));var g=" ",m=new RegExp(" ","g"),y=!0;function v(e,t){var n,v,b=(n=t,(v=function(e){var t,n=null;return document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}(e.trim().replace(m,g)))?(y=!0,{chunk:function e(t,n,o,g,m,v){var b=t.nodeName.toLowerCase();if(v){var w=v(b,t);if(w){var S=r.Entity.__create(w.type,w.mutability,w.data||{});return{chunk:u(S)}}}if("#text"===b&&"\n"!==t.textContent)return i(t,n,m);if("br"===b)return{chunk:a()};if("img"===b&&t instanceof HTMLImageElement){var E={};E.src=t.getAttribute&&t.getAttribute("src")||t.src,E.alt=t.alt,E.height=t.style.height,E.width=t.style.width,t.style.float&&(E.alignment=t.style.float);var k=r.Entity.__create("IMAGE","MUTABLE",E);return{chunk:u(k)}}if("video"===b&&t instanceof HTMLVideoElement){var O={};O.src=t.getAttribute&&t.getAttribute("src")||t.src,O.alt=t.alt,O.height=t.style.height,O.width=t.style.width,t.style.float&&(O.alignment=t.style.float);var M=r.Entity.__create("VIDEO","MUTABLE",O);return{chunk:u(M)}}if("iframe"===b&&t instanceof HTMLIFrameElement){var C={};C.src=t.getAttribute&&t.getAttribute("src")||t.src,C.height=t.height,C.width=t.width;var x=r.Entity.__create("EMBEDDED_LINK","MUTABLE",C);return{chunk:u(x)}}var _,D=function(e,t){var n=p.filter((function(n){return n.element===e&&(!n.wrapper||n.wrapper===t)||n.wrapper===e||n.aliasedElements&&-1<n.aliasedElements.indexOf(e)})).keySeq().toSet().toArray();if(1===n.length)return n[0]}(b,g);D&&("ul"===b||"ol"===b?(g=b,o+=1):("unordered-list-item"!==D&&"ordered-list-item"!==D&&(g="",o=-1),y?(_=s(D,d(t)),y=!1):_=c(D,o,d(t)))),_=_||{text:"",inlines:[],entities:[],blocks:[]},n=function(e,t,n){var r,o=f[e];if(o)r=n.add(o).toOrderedSet();else if(t instanceof HTMLElement){var i=t;r=(r=n).withMutations((function(e){var t=i.style.color,n=i.style.backgroundColor,r=i.style.fontSize,o=i.style.fontFamily.replace(/^"|"$/g,""),a=i.style.fontWeight,s=i.style.textDecoration,c=i.style.fontStyle;t&&e.add("color-".concat(t.replace(/ /g,""))),n&&e.add("bgcolor-".concat(n.replace(/ /g,""))),r&&e.add("fontsize-".concat(r.replace(/px$/g,""))),o&&e.add("fontfamily-".concat(o)),"bold"===a&&e.add(f.strong),"underline"===s&&e.add(f.ins),"italic"===c&&e.add(f.em)})).toOrderedSet()}return r}(b,t,n);for(var T=t.firstChild;T;){var j=e(T,n,o,g,h(T)||m,v).chunk;_=l(_,j),T=T.nextSibling}return{chunk:_}}(v,new o.OrderedSet,-1,"",void 0,n).chunk}):null);if(b){var w=b.chunk,S=new o.OrderedMap({});w.entities&&w.entities.forEach((function(e){e&&(S=S.set(e,r.Entity.__get(e)))}));var E=0;return{contentBlocks:w.text.split("\r").map((function(e,t){var n=E+e.length,i=w&&w.inlines.slice(E,n),a=w&&w.entities.slice(E,n),s=new o.List(i.map((function(e,t){var n={style:e,entity:null};return a[t]&&(n.entity=a[t]),r.CharacterMetadata.create(n)})));return E=n,new r.ContentBlock({key:Object(r.genKey)(),type:w&&w.blocks[t]&&w.blocks[t].type||"unstyled",depth:w&&w.blocks[t]&&w.blocks[t].depth,data:w&&w.blocks[t]&&w.blocks[t].data||new o.Map({}),text:e,characterList:s})})),entityMap:S}}return null}}],r.c=s,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2))},function(e,t,n){"use strict";function r(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function o(e){return Object.prototype.toString.call(e)}function i(e){return"[object Function]"===o(e)}function a(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},c={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?3<=t&&":"===e[t-3]||3<=t&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},u="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",l="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function p(e){var t=e.re=n(21)(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push(u),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var c=[];function l(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r,a={validate:null,link:null};if(e.__compiled__[t]=a,"[object Object]"===o(n))return"[object RegExp]"===o(n.validate)?a.validate=(r=n.validate,function(e,t){var n=e.slice(t);return r.test(n)?n.match(r)[0].length:0}):i(n.validate)?a.validate=n.validate:l(t,n),void(i(n.normalize)?a.normalize=n.normalize:n.normalize?l(t,n):a.normalize=function(e,t){t.normalize(e)});"[object String]"!==o(n)?l(t,n):c.push(t)}})),c.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var p,f=Object.keys(e.__compiled__).filter((function(t){return 0<t.length&&e.__compiled__[t]})).map(a).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+f+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+f+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),(p=e).__index__=-1,p.__text_cache__=""}function f(e,t){var n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function d(e,t){var n=new f(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function h(e,t){if(!(this instanceof h))return new h(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||s.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},c,e),this.__compiled__={},this.__tlds__=l,this.__tlds_replaced__=!1,this.re={},p(this)}h.prototype.add=function(e,t){return this.__schemas__[e]=t,p(this),this},h.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},h.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,o,i,a,s,c;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(o=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&0<=(c=e.search(this.re.host_fuzzy_test))&&(this.__index__<0||c<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(i=n.index+n[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&0<=e.indexOf("@")&&null!==(r=e.match(this.re.email_fuzzy))&&(i=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a)),0<=this.__index__},h.prototype.pretest=function(e){return this.re.pretest.test(e)},h.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},h.prototype.match=function(e){var t=0,n=[];0<=this.__index__&&this.__text_cache__===e&&(n.push(d(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(d(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},h.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),p(this),this},h.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},h.prototype.onCompile=function(){},e.exports=h},function(e,t,n){e.exports=n(40)},function(e,t,n){},function(e,t,n){"use strict";var r=n(11);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}var n={array:e.isRequired=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}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";e.exports=function(e){var t={};t.src_Any=n(22).source,t.src_Cc=n(23).source,t.src_Z=n(24).source,t.src_P=n(25).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},function(e,t){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(e,t){e.exports=/[\0-\x1F\x7F-\x9F]/},function(e,t){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(e,t){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t),n.d(t,"Editor",(function(){return Sr}));var r=n(1),o=n.n(r),i=n(0),a=n.n(i),s=n(3),c=n(4),u=n(2),l=n.n(u);function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var f=function(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.callBacks=[],this.suggestionCallback=void 0,this.editorFlag=!1,this.suggestionFlag=!1,this.closeAllModals=function(e){t.callBacks.forEach((function(t){t(e)}))},this.init=function(e){var n=document.getElementById(e);n&&n.addEventListener("click",(function(){t.editorFlag=!0})),document&&(document.addEventListener("click",(function(){t.editorFlag?t.editorFlag=!1:(t.closeAllModals(),t.suggestionCallback&&t.suggestionCallback())})),document.addEventListener("keydown",(function(e){"Escape"===e.key&&t.closeAllModals()})))},this.onEditorClick=function(){t.closeModals(),!t.suggestionFlag&&t.suggestionCallback?t.suggestionCallback():t.suggestionFlag=!1},this.closeModals=function(e){t.closeAllModals(e)},this.registerCallBack=function(e){t.callBacks.push(e)},this.deregisterCallBack=function(e){t.callBacks=t.callBacks.filter((function(t){return t!==e}))},this.setSuggestionCallback=function(e){t.suggestionCallback=e},this.removeSuggestionCallback=function(){t.suggestionCallback=void 0},this.onSuggestionClick=function(){t.suggestionFlag=!0}}));function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var h,g=function(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.inputFocused=!1,this.editorMouseDown=!1,this.onEditorMouseDown=function(){t.editorFocused=!0},this.onInputMouseDown=function(){t.inputFocused=!0},this.isEditorBlur=function(e){return"INPUT"!==e.target.tagName&&"LABEL"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName||t.editorFocused?!("INPUT"===e.target.tagName&&"LABEL"===e.target.tagName&&"TEXTAREA"===e.target.tagName||t.inputFocused||(t.editorFocused=!1)):!(t.inputFocused=!1)},this.isEditorFocused=function(){return!t.inputFocused||(t.inputFocused=!1)},this.isToolbarFocused=function(){return!t.editorFocused||(t.editorFocused=!1)},this.isInputFocused=function(){return t.inputFocused}})),m=[],y={onKeyDown:function(e){m.forEach((function(t){t(e)}))},registerCallBack:function(e){m.push(e)},deregisterCallBack:function(e){m=m.filter((function(t){return t!==e}))}},v=function(){h=!0},b=function(){h=!1},w=function(){return h};function S(e){var t=e.getData()&&e.getData().get("text-align");return t?"rdw-".concat(t,"-aligned-block"):""}function E(e,t){if(e)for(var n in e)!{}.hasOwnProperty.call(e,n)||t(n,e[n])}function k(e,t){var n=!1;if(e)for(var r in e)if({}.hasOwnProperty.call(e,r)&&t===r){n=!0;break}return n}function O(e){e.stopPropagation()}function M(e){return e[e.options[0]].icon}function C(e,t){if(e&&void 0===t)return e;var n={};return E(e,(function(e,r){var o;o=r,"[object Object]"===Object.prototype.toString.call(o)?n[e]=C(r,t[e]):n[e]=void 0!==t[e]?t[e]:r})),n}var x=n(6),_=n.n(x),D=n(5);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})(e)}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(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 N(e,t){return(N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(9);var A=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&N(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=L(e);if(t){var o=L(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===T(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var 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))).onClick=function(){var t=e.props,n=t.disabled,r=t.onClick,o=t.value;n||r(o)},e}return e=i,(t=[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.className,i=t.activeClassName,a=t.active,s=t.disabled,c=t.title;return o.a.createElement("div",{className:l()("rdw-option-wrapper",r,(j(e={},"rdw-option-active ".concat(i),a),j(e,"rdw-option-disabled",s),e)),onClick:this.onClick,"aria-selected":a,title:c},n)}}])&&I(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function P(e){return(P="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)}function R(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 B(e,t){return(B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function z(e){return(z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}A.propTypes={onClick:a.a.func.isRequired,children:a.a.any,value:a.a.string,className:a.a.string,activeClassName:a.a.string,active:a.a.bool,disabled:a.a.bool,title:a.a.string},A.defaultProps={activeClassName:""},n(12);var F=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=z(e);if(t){var o=z(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===P(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var 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))).state={highlighted:-1},e.onChange=function(t){var n=e.props.onChange;n&&n(t),e.toggleExpansion()},e.setHighlighted=function(t){e.setState({highlighted:t})},e.toggleExpansion=function(){var t=e.props,n=t.doExpand,r=t.doCollapse;t.expanded?r():n()},e}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.expanded;e.expanded&&!t&&this.setState({highlighted:-1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.expanded,r=t.children,i=t.className,a=t.optionWrapperClassName,s=t.ariaLabel,c=t.onExpandEvent,u=t.title,p=this.state.highlighted,f=r.slice(1,r.length);return o.a.createElement("div",{className:l()("rdw-dropdown-wrapper",i),"aria-expanded":n,"aria-label":s||"rdw-dropdown"},o.a.createElement("a",{className:"rdw-dropdown-selectedtext",onClick:c,title:u},r[0],o.a.createElement("div",{className:l()({"rdw-dropdown-carettoclose":n,"rdw-dropdown-carettoopen":!n})})),n?o.a.createElement("ul",{className:l()("rdw-dropdown-optionwrapper",a),onClick:O},o.a.Children.map(f,(function(t,n){return t&&o.a.cloneElement(t,{onSelect:e.onChange,highlighted:p===n,setHighlighted:e.setHighlighted,index:n})}))):void 0)}}])&&R(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();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})(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}function Z(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 K(e,t){return(K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Y(e){return(Y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}F.propTypes={children:a.a.any,onChange:a.a.func,className:a.a.string,expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,optionWrapperClassName:a.a.string,ariaLabel:a.a.string,title:a.a.string},n(13);var V=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&K(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Y(e);if(t){var o=Y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===U(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var 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))).onClick=function(t){var n=e.props,r=n.onSelect,o=n.onClick,i=n.value;n.disabled||(r&&r(i),o&&(t.stopPropagation(),o(i)))},e.setHighlighted=function(){var t=e.props;(0,t.setHighlighted)(t.index)},e.resetHighlighted=function(){(0,e.props.setHighlighted)(-1)},e}return e=i,(t=[{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.active,i=t.disabled,a=t.highlighted,s=t.className,c=t.activeClassName,u=t.disabledClassName,p=t.highlightedClassName,f=t.title;return o.a.createElement("li",{className:l()("rdw-dropdownoption-default",s,(H(e={},"rdw-dropdownoption-active ".concat(c),r),H(e,"rdw-dropdownoption-highlighted ".concat(p),a),H(e,"rdw-dropdownoption-disabled ".concat(u),i),e)),onMouseEnter:this.setHighlighted,onMouseLeave:this.resetHighlighted,onClick:this.onClick,title:f},n)}}])&&Z(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function G(e){return(G="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)}function W(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 q(e,t){return(q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Q(e){return(Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}V.propTypes={children:a.a.any,value:a.a.any,onClick:a.a.func,onSelect:a.a.func,setHighlighted:a.a.func,index:a.a.number,disabled:a.a.bool,active:a.a.bool,highlighted:a.a.bool,className:a.a.string,activeClassName:a.a.string,disabledClassName:a.a.string,highlightedClassName:a.a.string,title:a.a.string},V.defaultProps={activeClassName:"",disabledClassName:"",highlightedClassName:""},n(14);var J=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&q(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Q(e);if(t){var o=Q(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===G(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),n.apply(this,arguments)}return e=i,(t=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=e.currentState,r=e.onChange,i=e.translations;return o.a.createElement("div",{className:l()("rdw-inline-wrapper",t.className),"aria-label":"rdw-inline-control"},t.options.map((function(e,a){return o.a.createElement(A,{key:a,value:e,onClick:r,className:l()(t[e].className),active:!0===n[e]||"MONOSPACE"===e&&n.CODE,title:t[e].title||i["components.controls.inline.".concat(e)]},o.a.createElement("img",{alt:"",src:t[e].icon}))})))}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,i=e.onExpandEvent,a=e.doCollapse,s=e.currentState,c=e.onChange,u=e.translations,p=t.className,f=t.dropdownClassName,d=t.title;return o.a.createElement(F,{className:l()("rdw-inline-dropdown",p),optionWrapperClassName:l()(f),onChange:c,expanded:n,doExpand:r,doCollapse:a,onExpandEvent:i,"aria-label":"rdw-inline-control",title:d},o.a.createElement("img",{src:M(t),alt:""}),t.options.map((function(e,n){return o.a.createElement(V,{key:n,value:e,className:l()("rdw-inline-dropdownoption",t[e].className),active:!0===s[e]||"MONOSPACE"===e&&s.CODE,title:t[e].title||u["components.controls.inline.".concat(e)]},o.a.createElement("img",{src:t[e].icon,alt:""}))})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&W(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();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})(e)}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)}}function ee(e,t){return(ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function te(e){return(te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}J.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var ne=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ee(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=te(e);if(t){var o=te(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===X(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.toggleInlineStyle=function(e){var n="monospace"===e?"CODE":e.toUpperCase(),r=t.props,o=r.editorState,i=r.onChange,a=s.RichUtils.toggleInlineStyle(o,n);if("subscript"===e||"superscript"===e){var c="subscript"===e?"SUPERSCRIPT":"SUBSCRIPT",u=s.Modifier.removeInlineStyle(a.getCurrentContent(),a.getSelection(),c);a=s.EditorState.push(a,u,"change-inline-style")}a&&i(a)},t.changeKeys=function(e){if(e){var t={};return E(e,(function(e,n){t["CODE"===e?"monospace":e.toLowerCase()]=n})),t}},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})};var r=t.props,o=r.editorState,a=r.modalHandler;return t.state={currentStyles:o?t.changeKeys(Object(c.getSelectionInlineStyle)(o)):{}},a.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentStyles:this.changeKeys(Object(c.getSelectionInlineStyle)(t))})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.expanded,a=r.currentStyles,s=t.component||J;return o.a.createElement(s,{config:t,translations:n,currentState:a,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.toggleInlineStyle})}}])&&$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function re(e){return(re="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)}function oe(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 ie(e,t){return(ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ae(e){return(ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}ne.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(15);var se=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ie(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ae(e);if(t){var o=ae(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===re(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).getBlockTypes=function(e){return[{label:"Normal",displayName:e["components.controls.blocktype.normal"]},{label:"H1",displayName:e["components.controls.blocktype.h1"]},{label:"H2",displayName:e["components.controls.blocktype.h2"]},{label:"H3",displayName:e["components.controls.blocktype.h3"]},{label:"H4",displayName:e["components.controls.blocktype.h4"]},{label:"H5",displayName:e["components.controls.blocktype.h5"]},{label:"H6",displayName:e["components.controls.blocktype.h6"]},{label:"Blockquote",displayName:e["components.controls.blocktype.blockquote"]},{label:"Code",displayName:e["components.controls.blocktype.code"]}]},t.state={blockTypes:t.getBlockTypes(e.translations)},t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.translations;t!==e.translations&&this.setState({blockTypes:this.getBlockTypes(t)})}},{key:"renderFlat",value:function(e){var t=this.props,n=t.config.className,r=t.onChange,i=t.currentState.blockType;return o.a.createElement("div",{className:l()("rdw-inline-wrapper",n)},e.map((function(e,t){return o.a.createElement(A,{key:t,value:e.label,active:i===e.label,onClick:r},e.displayName)})))}},{key:"renderInDropdown",value:function(e){var t=this.props,n=t.config,r=n.className,i=n.dropdownClassName,a=n.title,s=t.currentState.blockType,c=t.expanded,u=t.doExpand,p=t.onExpandEvent,f=t.doCollapse,d=t.onChange,h=t.translations,g=this.state.blockTypes.filter((function(e){return e.label===s})),m=g&&g[0]&&g[0].displayName;return o.a.createElement("div",{className:"rdw-block-wrapper","aria-label":"rdw-block-control"},o.a.createElement(F,{className:l()("rdw-block-dropdown",r),optionWrapperClassName:l()(i),onChange:d,expanded:c,doExpand:u,doCollapse:f,onExpandEvent:p,title:a||h["components.controls.blocktype.blocktype"]},o.a.createElement("span",null,m||h["components.controls.blocktype.blocktype"]),e.map((function(e,t){return o.a.createElement(V,{active:s===e.label,value:e.label,key:t},e.displayName)}))))}},{key:"render",value:function(){var e=this.props.config,t=e.inDropdown,n=this.state.blockTypes.filter((function(t){var n=t.label;return-1<e.options.indexOf(n)}));return t?this.renderInDropdown(n):this.renderFlat(n)}}])&&oe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();se.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doExpand:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var ce=se;function ue(e){return(ue="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)}function le(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 pe(e,t){return(pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function fe(e){return(fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var de=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pe(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fe(e);if(t){var o=fe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ue(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.blocksTypes=[{label:"Normal",style:"unstyled"},{label:"H1",style:"header-one"},{label:"H2",style:"header-two"},{label:"H3",style:"header-three"},{label:"H4",style:"header-four"},{label:"H5",style:"header-five"},{label:"H6",style:"header-six"},{label:"Blockquote",style:"blockquote"},{label:"Code",style:"code"}],t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleBlockType=function(e){var n=t.blocksTypes.find((function(t){return t.label===e})).style,r=t.props,o=r.editorState,i=r.onChange,a=s.RichUtils.toggleBlockType(o,n);a&&i(a)};var r=e.editorState,o=e.modalHandler;return t.state={expanded:!1,currentBlockType:r?Object(c.getSelectedBlocksType)(r):"unstyled"},o.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentBlockType:Object(c.getSelectedBlocksType)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.expanded,a=r.currentBlockType,s=t.component||ce,c=this.blocksTypes.find((function(e){return e.style===a}));return o.a.createElement(s,{config:t,translations:n,currentState:{blockType:c&&c.label},onChange:this.toggleBlockType,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&le(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();de.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var he=de;function ge(e){return(ge="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)}function me(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 ye(e,t){return(ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ve(e){return(ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(16);var be=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ye(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ve(e);if(t){var o=ve(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ge(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var 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))).state={defaultFontSize:void 0},e}return e=i,(t=[{key:"componentDidMount",value:function(){var e=document.getElementsByClassName("DraftEditor-root");if(e&&0<e.length){var t=window.getComputedStyle(e[0]).getPropertyValue("font-size");t=t.substring(0,t.length-2),this.setState({defaultFontSize:t})}}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,i=t.dropdownClassName,a=t.options,s=t.title,c=e.onChange,u=e.expanded,p=e.doCollapse,f=e.onExpandEvent,d=e.doExpand,h=e.translations,g=this.props.currentState.fontSize,m=this.state.defaultFontSize;return m=Number(m),g=g||a&&0<=a.indexOf(m)&&m,o.a.createElement("div",{className:"rdw-fontsize-wrapper","aria-label":"rdw-font-size-control"},o.a.createElement(F,{className:l()("rdw-fontsize-dropdown",r),optionWrapperClassName:l()(i),onChange:c,expanded:u,doExpand:d,doCollapse:p,onExpandEvent:f,title:s||h["components.controls.fontsize.fontsize"]},g?o.a.createElement("span",null,g):o.a.createElement("img",{src:n,alt:""}),a.map((function(e,t){return o.a.createElement(V,{className:"rdw-fontsize-option",active:g===e,value:e,key:t},e)}))))}}])&&me(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function we(e){return(we="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)}function Se(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 Ee(e,t){return(Ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ke(e){return(ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}be.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doExpand:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var Oe=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ee(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ke(e);if(t){var o=ke(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===we(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleFontSize=function(e){var n=t.props,r=n.editorState,o=n.onChange,i=Object(c.toggleCustomInlineStyle)(r,"fontSize",e);i&&o(i)};var r=e.editorState,o=e.modalHandler;return t.state={expanded:void 0,currentFontSize:r?Object(c.getSelectionCustomInlineStyle)(r,["FONTSIZE"]).FONTSIZE:void 0},o.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentFontSize:Object(c.getSelectionCustomInlineStyle)(t,["FONTSIZE"]).FONTSIZE})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.expanded,a=r.currentFontSize,s=t.component||be,c=a&&Number(a.substring(9));return o.a.createElement(s,{config:t,translations:n,currentState:{fontSize:c},onChange:this.toggleFontSize,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Se(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Me(e){return(Me="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)}function Ce(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 xe(e,t){return(xe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _e(e){return(_e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Oe.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(17);var De=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xe(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_e(e);if(t){var o=_e(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Me(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var 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))).state={defaultFontFamily:void 0},e}return e=i,(t=[{key:"componentDidMount",value:function(){var e=document.getElementsByClassName("DraftEditor-root");if(e&&0<e.length){var t=window.getComputedStyle(e[0]).getPropertyValue("font-family");this.setState({defaultFontFamily:t})}}},{key:"render",value:function(){var e=this.state.defaultFontFamily,t=this.props,n=t.config,r=n.className,i=n.dropdownClassName,a=n.options,s=n.title,c=t.translations,u=t.onChange,p=t.expanded,f=t.doCollapse,d=t.onExpandEvent,h=t.doExpand,g=this.props.currentState.fontFamily;return g=g||a&&e&&a.some((function(t){return t.toLowerCase()===e.toLowerCase()}))&&e,o.a.createElement("div",{className:"rdw-fontfamily-wrapper","aria-label":"rdw-font-family-control"},o.a.createElement(F,{className:l()("rdw-fontfamily-dropdown",r),optionWrapperClassName:l()("rdw-fontfamily-optionwrapper",i),onChange:u,expanded:p,doExpand:h,doCollapse:f,onExpandEvent:d,title:s||c["components.controls.fontfamily.fontfamily"]},o.a.createElement("span",{className:"rdw-fontfamily-placeholder"},g||c["components.controls.fontfamily.fontfamily"]),a.map((function(e,t){return o.a.createElement(V,{active:g===e,value:e,key:t},e)}))))}}])&&Ce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();De.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doExpand:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var Te=De;function je(e){return(je="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)}function Ie(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 Ne(e,t){return(Ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Le(e){return(Le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ae=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ne(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Le(e);if(t){var o=Le(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===je(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleFontFamily=function(e){var n=t.props,r=n.editorState,o=n.onChange,i=Object(c.toggleCustomInlineStyle)(r,"fontFamily",e);i&&o(i)};var r=e.editorState,o=e.modalHandler;return t.state={expanded:void 0,currentFontFamily:r?Object(c.getSelectionCustomInlineStyle)(r,["FONTFAMILY"]).FONTFAMILY:void 0},o.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentFontFamily:Object(c.getSelectionCustomInlineStyle)(t,["FONTFAMILY"]).FONTFAMILY})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.expanded,a=r.currentFontFamily,s=t.component||Te,c=a&&a.substring(11);return o.a.createElement(s,{translations:n,config:t,currentState:{fontFamily:c},onChange:this.toggleFontFamily,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Ie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Pe(e){return(Pe="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)}function Re(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 Be(e,t){return(Be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ze(e){return(ze=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Ae.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(18);var Fe=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Be(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ze(e);if(t){var o=ze(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Pe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var 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))).options=["unordered","ordered","indent","outdent"],e.toggleBlockType=function(t){(0,e.props.onChange)(t)},e.indent=function(){(0,e.props.onChange)("indent")},e.outdent=function(){(0,e.props.onChange)("outdent")},e}return e=i,(t=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=e.currentState.listType,r=e.translations,i=e.indentDisabled,a=e.outdentDisabled,s=t.options,c=t.unordered,u=t.ordered,p=t.indent,f=t.outdent,d=t.className;return o.a.createElement("div",{className:l()("rdw-list-wrapper",d),"aria-label":"rdw-list-control"},0<=s.indexOf("unordered")&&o.a.createElement(A,{value:"unordered",onClick:this.toggleBlockType,className:l()(c.className),active:"unordered"===n,title:c.title||r["components.controls.list.unordered"]},o.a.createElement("img",{src:c.icon,alt:""})),0<=s.indexOf("ordered")&&o.a.createElement(A,{value:"ordered",onClick:this.toggleBlockType,className:l()(u.className),active:"ordered"===n,title:u.title||r["components.controls.list.ordered"]},o.a.createElement("img",{src:u.icon,alt:""})),0<=s.indexOf("indent")&&o.a.createElement(A,{onClick:this.indent,disabled:i,className:l()(p.className),title:p.title||r["components.controls.list.indent"]},o.a.createElement("img",{src:p.icon,alt:""})),0<=s.indexOf("outdent")&&o.a.createElement(A,{onClick:this.outdent,disabled:a,className:l()(f.className),title:f.title||r["components.controls.list.outdent"]},o.a.createElement("img",{src:f.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var e=this,t=this.props,n=t.config,r=t.expanded,i=t.doCollapse,a=t.doExpand,s=t.onExpandEvent,c=t.onChange,u=t.currentState.listType,p=t.translations,f=n.options,d=n.className,h=n.dropdownClassName,g=n.title;return o.a.createElement(F,{className:l()("rdw-list-dropdown",d),optionWrapperClassName:l()(h),onChange:c,expanded:r,doExpand:a,doCollapse:i,onExpandEvent:s,"aria-label":"rdw-list-control",title:g||p["components.controls.list.list"]},o.a.createElement("img",{src:M(n),alt:""}),this.options.filter((function(e){return 0<=f.indexOf(e)})).map((function(t,r){return o.a.createElement(V,{key:r,value:t,disabled:e.props["".concat(t,"Disabled")],className:l()("rdw-list-dropdownOption",n[t].className),active:u===t,title:n[t].title||p["components.controls.list.".concat(t)]},o.a.createElement("img",{src:n[t].icon,alt:""}))})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Re(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Ue(e){return(Ue="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)}function He(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 Ze(e,t){return(Ze=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ke(e){return(Ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Fe.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object,indentDisabled:a.a.bool,outdentDisabled:a.a.bool};var Ye=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ze(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ke(e);if(t){var o=Ke(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Ue(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.onChange=function(e){"unordered"===e?t.toggleBlockType("unordered-list-item"):"ordered"===e?t.toggleBlockType("ordered-list-item"):"indent"===e?t.adjustDepth(1):t.adjustDepth(-1)},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleBlockType=function(e){var n=t.props,r=n.onChange,o=n.editorState,i=s.RichUtils.toggleBlockType(o,e);i&&r(i)},t.adjustDepth=function(e){var n=t.props,r=n.onChange,o=n.editorState,i=Object(c.changeDepth)(o,e,4);i&&r(i)},t.isIndentDisabled=function(){var e=t.props.editorState,n=t.state.currentBlock,r=Object(c.getBlockBeforeSelectedBlock)(e);return!r||!Object(c.isListBlock)(n)||r.get("type")!==n.get("type")||r.get("depth")<n.get("depth")},t.isOutdentDisabled=function(){var e=t.state.currentBlock;return!e||!Object(c.isListBlock)(e)||e.get("depth")<=0};var r=t.props,o=r.editorState,a=r.modalHandler;return t.state={expanded:!1,currentBlock:o?Object(c.getSelectedBlock)(o):void 0},a.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentBlock:Object(c.getSelectedBlock)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e,t=this.props,n=t.config,r=t.translations,i=this.state,a=i.expanded,s=i.currentBlock,c=n.component||Fe;"unordered-list-item"===s.get("type")?e="unordered":"ordered-list-item"===s.get("type")&&(e="ordered");var u=this.isIndentDisabled(),l=this.isOutdentDisabled();return o.a.createElement(c,{config:n,translations:r,currentState:{listType:e},expanded:a,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange,indentDisabled:u,outdentDisabled:l})}}])&&He(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Ve(e){return(Ve="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)}function Ge(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 We(e,t){return(We=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function qe(e){return(qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Ye.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(19);var Qe=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&We(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=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){if(t&&("object"===Ve(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),n.apply(this,arguments)}return e=i,(t=[{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.left,i=t.center,a=t.right,s=t.justify,c=t.className,u=e.onChange,p=e.currentState.textAlignment,f=e.translations;return o.a.createElement("div",{className:l()("rdw-text-align-wrapper",c),"aria-label":"rdw-textalign-control"},0<=n.indexOf("left")&&o.a.createElement(A,{value:"left",className:l()(r.className),active:"left"===p,onClick:u,title:r.title||f["components.controls.textalign.left"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("center")&&o.a.createElement(A,{value:"center",className:l()(i.className),active:"center"===p,onClick:u,title:i.title||f["components.controls.textalign.center"]},o.a.createElement("img",{src:i.icon,alt:""})),0<=n.indexOf("right")&&o.a.createElement(A,{value:"right",className:l()(a.className),active:"right"===p,onClick:u,title:a.title||f["components.controls.textalign.right"]},o.a.createElement("img",{src:a.icon,alt:""})),0<=n.indexOf("justify")&&o.a.createElement(A,{value:"justify",className:l()(s.className),active:"justify"===p,onClick:u,title:s.title||f["components.controls.textalign.justify"]},o.a.createElement("img",{src:s.icon,alt:""})))}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,i=e.onExpandEvent,a=e.doCollapse,s=e.currentState.textAlignment,c=e.onChange,u=e.translations,p=t.options,f=t.left,d=t.center,h=t.right,g=t.justify,m=t.className,y=t.dropdownClassName,v=t.title;return o.a.createElement(F,{className:l()("rdw-text-align-dropdown",m),optionWrapperClassName:l()(y),onChange:c,expanded:n,doExpand:r,doCollapse:a,onExpandEvent:i,"aria-label":"rdw-textalign-control",title:v||u["components.controls.textalign.textalign"]},o.a.createElement("img",{src:s&&t[s]&&t[s].icon||M(t),alt:""}),0<=p.indexOf("left")&&o.a.createElement(V,{value:"left",active:"left"===s,className:l()("rdw-text-align-dropdownOption",f.className),title:f.title||u["components.controls.textalign.left"]},o.a.createElement("img",{src:f.icon,alt:""})),0<=p.indexOf("center")&&o.a.createElement(V,{value:"center",active:"center"===s,className:l()("rdw-text-align-dropdownOption",d.className),title:d.title||u["components.controls.textalign.center"]},o.a.createElement("img",{src:d.icon,alt:""})),0<=p.indexOf("right")&&o.a.createElement(V,{value:"right",active:"right"===s,className:l()("rdw-text-align-dropdownOption",h.className),title:h.title||u["components.controls.textalign.right"]},o.a.createElement("img",{src:h.icon,alt:""})),0<=p.indexOf("justify")&&o.a.createElement(V,{value:"justify",active:"justify"===s,className:l()("rdw-text-align-dropdownOption",g.className),title:g.title||u["components.controls.textalign.justify"]},o.a.createElement("img",{src:g.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Ge(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function Je(e){return(Je="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)}function Xe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $e(e,t){return($e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function et(e){return(et=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Qe.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var tt=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$e(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=et(e);if(t){var o=et(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Je(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.addBlockAlignmentData=function(e){var n=t.props,r=n.editorState;(0,n.onChange)(t.state.currentTextAlignment!==e?Object(c.setBlockData)(r,{"text-align":e}):Object(c.setBlockData)(r,{"text-align":void 0}))};var r=t.props.modalHandler;return t.state={currentTextAlignment:void 0},r.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t!==e.editorState&&this.setState({currentTextAlignment:Object(c.getSelectedBlocksMetadata)(t).get("text-align")})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.expanded,a=r.currentTextAlignment,s=t.component||Qe;return o.a.createElement(s,{config:t,translations:n,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{textAlignment:a},onChange:this.addBlockAlignmentData})}}])&&Xe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function nt(e){return(nt="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)}function rt(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 ot(e,t){return(ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function it(e){return(it=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}tt.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(20);var at=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ot(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=it(e);if(t){var o=it(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===nt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return(e=n.call.apply(n,[this].concat(r))).state={currentStyle:"color"},e.onChange=function(t){(0,e.props.onChange)(e.state.currentStyle,t)},e.setCurrentStyleColor=function(){e.setState({currentStyle:"color"})},e.setCurrentStyleBgcolor=function(){e.setState({currentStyle:"bgcolor"})},e.renderModal=function(){var t=e.props,n=t.config,r=n.popupClassName,i=n.colors,a=t.currentState,s=a.color,c=a.bgColor,u=t.translations,p=e.state.currentStyle,f="color"===p?s:c;return o.a.createElement("div",{className:l()("rdw-colorpicker-modal",r),onClick:O},o.a.createElement("span",{className:"rdw-colorpicker-modal-header"},o.a.createElement("span",{className:l()("rdw-colorpicker-modal-style-label",{"rdw-colorpicker-modal-style-label-active":"color"===p}),onClick:e.setCurrentStyleColor},u["components.controls.colorpicker.text"]),o.a.createElement("span",{className:l()("rdw-colorpicker-modal-style-label",{"rdw-colorpicker-modal-style-label-active":"bgcolor"===p}),onClick:e.setCurrentStyleBgcolor},u["components.controls.colorpicker.background"])),o.a.createElement("span",{className:"rdw-colorpicker-modal-options"},i.map((function(t,n){return o.a.createElement(A,{value:t,key:n,className:"rdw-colorpicker-option",activeClassName:"rdw-colorpicker-option-active",active:f===t,onClick:e.onChange},o.a.createElement("span",{style:{backgroundColor:t},className:"rdw-colorpicker-cube"}))}))))},e}return e=i,(t=[{key:"componentDidUpdate",value:function(e){this.props.expanded&&!e.expanded&&this.setState({currentStyle:"color"})}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,i=t.title,a=e.expanded,s=e.onExpandEvent,c=e.translations;return o.a.createElement("div",{className:"rdw-colorpicker-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-color-picker",title:i||c["components.controls.colorpicker.colorpicker"]},o.a.createElement(A,{onClick:s,className:l()(r)},o.a.createElement("img",{src:n,alt:""})),a?this.renderModal():void 0)}}])&&rt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();at.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,onChange:a.a.func,config:a.a.object,currentState:a.a.object,translations:a.a.object};var st=at;function ct(e){return(ct="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)}function ut(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 lt(e,t){return(lt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function pt(e){return(pt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ft=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&<(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pt(e);if(t){var o=pt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ct(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).state={expanded:!1,currentColor:void 0,currentBgColor:void 0},t.onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.toggleColor=function(e,n){var r=t.props,o=r.editorState,i=r.onChange,a=Object(c.toggleCustomInlineStyle)(o,e,n);a&&i(a),t.doCollapse()};var r=e.editorState,o=e.modalHandler,a={expanded:!1,currentColor:void 0,currentBgColor:void 0};return r&&(a.currentColor=Object(c.getSelectionCustomInlineStyle)(r,["COLOR"]).COLOR,a.currentBgColor=Object(c.getSelectionCustomInlineStyle)(r,["BGCOLOR"]).BGCOLOR),t.state=a,o.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentColor:Object(c.getSelectionCustomInlineStyle)(t,["COLOR"]).COLOR,currentBgColor:Object(c.getSelectionCustomInlineStyle)(t,["BGCOLOR"]).BGCOLOR})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.currentColor,a=r.currentBgColor,s=r.expanded,c=t.component||st,u=i&&i.substring(6),l=a&&a.substring(8);return o.a.createElement(c,{config:t,translations:n,onChange:this.toggleColor,expanded:s,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{color:u,bgColor:l}})}}])&&ut(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();ft.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var dt=ft,ht=n(7),gt=n.n(ht);function mt(e){return(mt="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)}function yt(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 vt(e,t){return(vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function bt(e){return(bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(26);var wt=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vt(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bt(e);if(t){var o=bt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===mt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var 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))).state={showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:e.props.config.defaultTargetOption},e.removeLink=function(){(0,e.props.onChange)("unlink")},e.addLink=function(){var t=e.props.onChange,n=e.state;t("link",n.linkTitle,n.linkTarget,n.linkTargetOption)},e.updateValue=function(t){var n,r,o;e.setState((n={},r="".concat(t.target.name),o=t.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},e.updateTargetOption=function(t){e.setState({linkTargetOption:t.target.checked?"_blank":"_self"})},e.hideModal=function(){e.setState({showModal:!1})},e.signalExpandShowModal=function(){var t=e.props,n=t.onExpandEvent,r=t.currentState,o=r.link,i=r.selectionText,a=e.state.linkTargetOption;n(),e.setState({showModal:!0,linkTarget:o&&o.target||"",linkTargetOption:o&&o.targetOption||a,linkTitle:o&&o.title||i})},e.forceExpandAndShowModal=function(){var t=e.props,n=t.doExpand,r=t.currentState,o=r.link,i=r.selectionText,a=e.state.linkTargetOption;n(),e.setState({showModal:!0,linkTarget:o&&o.target,linkTargetOption:o&&o.targetOption||a,linkTitle:o&&o.title||i})},e}return e=i,(t=[{key:"componentDidUpdate",value:function(e){e.expanded&&!this.props.expanded&&this.setState({showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:this.props.config.defaultTargetOption})}},{key:"renderAddLinkModal",value:function(){var e=this.props,t=e.config.popupClassName,n=e.doCollapse,r=e.translations,i=this.state,a=i.linkTitle,s=i.linkTarget,c=i.linkTargetOption;return o.a.createElement("div",{className:l()("rdw-link-modal",t),onClick:O},o.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTitle"},r["components.controls.link.linkTitle"]),o.a.createElement("input",{id:"linkTitle",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTitle",value:a}),o.a.createElement("label",{className:"rdw-link-modal-label",htmlFor:"linkTarget"},r["components.controls.link.linkTarget"]),o.a.createElement("input",{id:"linkTarget",className:"rdw-link-modal-input",onChange:this.updateValue,onBlur:this.updateValue,name:"linkTarget",value:s}),o.a.createElement("label",{className:"rdw-link-modal-target-option",htmlFor:"openLinkInNewWindow"},o.a.createElement("input",{id:"openLinkInNewWindow",type:"checkbox",defaultChecked:"_blank"===c,value:"_blank",onChange:this.updateTargetOption}),o.a.createElement("span",null,r["components.controls.link.linkTargetOption"])),o.a.createElement("span",{className:"rdw-link-modal-buttonsection"},o.a.createElement("button",{className:"rdw-link-modal-btn",onClick:this.addLink,disabled:!s||!a},r["generic.add"]),o.a.createElement("button",{className:"rdw-link-modal-btn",onClick:n},r["generic.cancel"])))}},{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.link,i=t.unlink,a=t.className,s=e.currentState,c=e.expanded,u=e.translations,p=this.state.showModal;return o.a.createElement("div",{className:l()("rdw-link-wrapper",a),"aria-label":"rdw-link-control"},0<=n.indexOf("link")&&o.a.createElement(A,{value:"unordered-list-item",className:l()(r.className),onClick:this.signalExpandShowModal,"aria-haspopup":"true","aria-expanded":p,title:r.title||u["components.controls.link.link"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("unlink")&&o.a.createElement(A,{disabled:!s.link,value:"ordered-list-item",className:l()(i.className),onClick:this.removeLink,title:i.title||u["components.controls.link.unlink"]},o.a.createElement("img",{src:i.icon,alt:""})),c&&p?this.renderAddLinkModal():void 0)}},{key:"renderInDropDown",value:function(){var e=this.props,t=e.expanded,n=e.onExpandEvent,r=e.doCollapse,i=e.doExpand,a=e.onChange,s=e.config,c=e.currentState,u=e.translations,p=s.options,f=s.link,d=s.unlink,h=s.className,g=s.dropdownClassName,m=s.title,y=this.state.showModal;return o.a.createElement("div",{className:"rdw-link-wrapper","aria-haspopup":"true","aria-label":"rdw-link-control","aria-expanded":t,title:m},o.a.createElement(F,{className:l()("rdw-link-dropdown",h),optionWrapperClassName:l()(g),onChange:a,expanded:t&&!y,doExpand:i,doCollapse:r,onExpandEvent:n},o.a.createElement("img",{src:M(s),alt:""}),0<=p.indexOf("link")&&o.a.createElement(V,{onClick:this.forceExpandAndShowModal,className:l()("rdw-link-dropdownoption",f.className),title:f.title||u["components.controls.link.link"]},o.a.createElement("img",{src:f.icon,alt:""})),0<=p.indexOf("unlink")&&o.a.createElement(V,{onClick:this.removeLink,disabled:!c.link,className:l()("rdw-link-dropdownoption",d.className),title:d.title||u["components.controls.link.unlink"]},o.a.createElement("img",{src:d.icon,alt:""}))),t&&y?this.renderAddLinkModal():void 0)}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&yt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();wt.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var St=wt;function Et(e){return(Et="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)}function kt(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 Ot(e,t){return(Ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Mt(e){return(Mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ct(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 xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(n),!0).forEach((function(t){_t(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dt(e){var t=Tt.match(e.target);return xt(xt({},e),{},{target:t&&t[0]&&t[0].url||e.target})}var Tt=gt()(),jt=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ot(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mt(e);if(t){var o=Mt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Et(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.onChange=function(e,n,r,o){var i=t.props.config.linkCallback;if("link"===e){var a=(i||Dt)({title:n,target:r,targetOption:o});t.addLink(a.title,a.target,a.targetOption)}else t.removeLink()},t.getCurrentValues=function(){var e=t.props.editorState,n=t.state.currentEntity,r=e.getCurrentContent(),o={};if(n&&"LINK"===r.getEntity(n).get("type")){o.link={};var i=n&&Object(c.getEntityRange)(e,n);o.link.target=n&&r.getEntity(n).get("data").url,o.link.targetOption=n&&r.getEntity(n).get("data").targetOption,o.link.title=i&&i.text}return o.selectionText=Object(c.getSelectionText)(e),o},t.doExpand=function(){t.setState({expanded:!0})},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.doCollapse=function(){t.setState({expanded:!1})},t.removeLink=function(){var e=t.props,n=e.editorState,r=e.onChange,o=t.state.currentEntity,i=n.getSelection();if(o){var a=Object(c.getEntityRange)(n,o);i=i.getIsBackward()?i.merge({anchorOffset:a.end,focusOffset:a.start}):i.merge({anchorOffset:a.start,focusOffset:a.end}),r(s.RichUtils.toggleLink(n,i,null))}},t.addLink=function(e,n,r){var o=t.props,i=o.editorState,a=o.onChange,u=t.state.currentEntity,l=i.getSelection();if(u){var p=Object(c.getEntityRange)(i,u);l=l.getIsBackward()?l.merge({anchorOffset:p.end,focusOffset:p.start}):l.merge({anchorOffset:p.start,focusOffset:p.end})}var f=i.getCurrentContent().createEntity("LINK","MUTABLE",{url:n,targetOption:r}).getLastCreatedEntityKey(),d=s.Modifier.replaceText(i.getCurrentContent(),l,"".concat(e),i.getCurrentInlineStyle(),f),h=s.EditorState.push(i,d,"insert-characters");l=h.getSelection().merge({anchorOffset:l.get("anchorOffset")+e.length,focusOffset:l.get("anchorOffset")+e.length}),h=s.EditorState.acceptSelection(h,l),d=s.Modifier.insertText(h.getCurrentContent(),l," ",h.getCurrentInlineStyle(),void 0),a(s.EditorState.push(h,d,"insert-characters")),t.doCollapse()};var r=t.props,o=r.editorState,a=r.modalHandler;return t.state={expanded:!1,link:void 0,selectionText:void 0,currentEntity:o?Object(c.getSelectionEntity)(o):void 0},a.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&t!==e.editorState&&this.setState({currentEntity:Object(c.getSelectionEntity)(t)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,i=this.getCurrentValues(),a=i.link,s=i.selectionText,c=t.component||St;return o.a.createElement(c,{config:t,translations:n,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{link:a,selectionText:s},onChange:this.onChange})}}])&&kt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();jt.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var It=jt;function Nt(e){return(Nt="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)}function Lt(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 At(e,t){return(At=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Pt(e){return(Pt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(27);var Rt=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&At(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pt(e);if(t){var o=Pt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Nt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var 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))).state={embeddedLink:"",height:e.props.config.defaultSize.height,width:e.props.config.defaultSize.width},e.onChange=function(){var t=e.props.onChange,n=e.state;t(n.embeddedLink,n.height,n.width)},e.updateValue=function(t){var n,r,o;e.setState((n={},r="".concat(t.target.name),o=t.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},e}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.expanded,r=t.config;if(!n&&e.expanded){var o=r.defaultSize,i=o.height,a=o.width;this.setState({embeddedLink:"",height:i,width:a})}}},{key:"rendeEmbeddedLinkModal",value:function(){var e=this.state,t=e.embeddedLink,n=e.height,r=e.width,i=this.props,a=i.config.popupClassName,s=i.doCollapse,c=i.translations;return o.a.createElement("div",{className:l()("rdw-embedded-modal",a),onClick:O},o.a.createElement("div",{className:"rdw-embedded-modal-header"},o.a.createElement("span",{className:"rdw-embedded-modal-header-option"},c["components.controls.embedded.embeddedlink"],o.a.createElement("span",{className:"rdw-embedded-modal-header-label"}))),o.a.createElement("div",{className:"rdw-embedded-modal-link-section"},o.a.createElement("span",{className:"rdw-embedded-modal-link-input-wrapper"},o.a.createElement("input",{className:"rdw-embedded-modal-link-input",placeholder:c["components.controls.embedded.enterlink"],onChange:this.updateValue,onBlur:this.updateValue,value:t,name:"embeddedLink"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("div",{className:"rdw-embedded-modal-size"},o.a.createElement("span",null,o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:n,name:"height",className:"rdw-embedded-modal-size-input",placeholder:"Height"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("span",null,o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:r,name:"width",className:"rdw-embedded-modal-size-input",placeholder:"Width"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")))),o.a.createElement("span",{className:"rdw-embedded-modal-btn-section"},o.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:this.onChange,disabled:!t||!n||!r},c["generic.add"]),o.a.createElement("button",{type:"button",className:"rdw-embedded-modal-btn",onClick:s},c["generic.cancel"])))}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,i=t.title,a=e.expanded,s=e.onExpandEvent,c=e.translations;return o.a.createElement("div",{className:"rdw-embedded-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-embedded-control"},o.a.createElement(A,{className:l()(r),value:"unordered-list-item",onClick:s,title:i||c["components.controls.embedded.embedded"]},o.a.createElement("img",{src:n,alt:""})),a?this.rendeEmbeddedLinkModal():void 0)}}])&&Lt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();Rt.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,onChange:a.a.func,config:a.a.object,translations:a.a.object,doCollapse:a.a.func};var Bt=Rt;function zt(e){return(zt="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)}function Ft(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 Ut(e,t){return(Ut=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ht(e){return(Ht=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Zt=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ut(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ht(e);if(t){var o=Ht(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===zt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var 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))).state={expanded:!1},e.onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.addEmbeddedLink=function(t,n,r){var o=e.props,i=o.editorState,a=o.onChange,c=o.config.embedCallback,u=c?c(t):t,l=i.getCurrentContent().createEntity("EMBEDDED_LINK","MUTABLE",{src:u,height:n,width:r}).getLastCreatedEntityKey();a(s.AtomicBlockUtils.insertAtomicBlock(i,l," ")),e.doCollapse()},e}return e=i,(t=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,i=t.component||Bt;return o.a.createElement(i,{config:t,translations:n,onChange:this.addEmbeddedLink,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Ft(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();Zt.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var Kt=Zt;function Yt(e){return(Yt="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)}function Vt(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 Gt(e,t){return(Gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Wt(e){return(Wt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(28);var qt=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gt(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Wt(e);if(t){var o=Wt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Yt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var 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))).onChange=function(t){(0,e.props.onChange)(t.target.innerHTML)},e}return e=i,(t=[{key:"renderEmojiModal",value:function(){var e=this,t=this.props.config,n=t.popupClassName,r=t.emojis;return o.a.createElement("div",{className:l()("rdw-emoji-modal",n),onClick:O},r.map((function(t,n){return o.a.createElement("span",{key:n,className:"rdw-emoji-icon",alt:"",onClick:e.onChange},t)})))}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,i=t.title,a=e.expanded,s=e.onExpandEvent,c=e.translations;return o.a.createElement("div",{className:"rdw-emoji-wrapper","aria-haspopup":"true","aria-label":"rdw-emoji-control","aria-expanded":a,title:i||c["components.controls.emoji.emoji"]},o.a.createElement(A,{className:l()(r),value:"unordered-list-item",onClick:s},o.a.createElement("img",{src:n,alt:""})),a?this.renderEmojiModal():void 0)}}])&&Vt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();qt.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,onChange:a.a.func,config:a.a.object,translations:a.a.object};var Qt=qt;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})(e)}function Xt(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 $t(e,t){return($t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function en(e){return(en=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tn=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$t(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=en(e);if(t){var o=en(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Jt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var 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))).state={expanded:!1},e.onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.addEmoji=function(t){var n=e.props,r=n.editorState,o=n.onChange,i=s.Modifier.replaceText(r.getCurrentContent(),r.getSelection(),t,r.getCurrentInlineStyle());o(s.EditorState.push(r,i,"insert-characters")),e.doCollapse()},e}return e=i,(t=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,i=t.component||Qt;return o.a.createElement(i,{config:t,translations:n,onChange:this.addEmoji,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onCollpase:this.closeModal})}}])&&Xt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function nn(){return o.a.createElement("div",{className:"rdw-spinner"},o.a.createElement("div",{className:"rdw-bounce1"}),o.a.createElement("div",{className:"rdw-bounce2"}),o.a.createElement("div",{className:"rdw-bounce3"}))}function rn(e){return(rn="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)}function on(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 an(e,t){return(an=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function sn(e){return(sn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}tn.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object},n(29),n(30);var cn=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&an(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=sn(e);if(t){var o=sn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===rn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var 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))).state={imgSrc:"",dragEnter:!1,uploadHighlighted:e.props.config.uploadEnabled&&!!e.props.config.uploadCallback,showImageLoading:!1,height:e.props.config.defaultSize.height,width:e.props.config.defaultSize.width,alt:""},e.onDragEnter=function(t){e.stopPropagation(t),e.setState({dragEnter:!0})},e.onImageDrop=function(t){var n,r;t.preventDefault(),t.stopPropagation(),e.setState({dragEnter:!1}),r=t.dataTransfer.items?(n=t.dataTransfer.items,!0):(n=t.dataTransfer.files,!1);for(var o=0;o<n.length;o+=1)if((!r||"file"===n[o].kind)&&n[o].type.match("^image/")){var i=r?n[o].getAsFile():n[o];e.uploadImage(i)}},e.showImageUploadOption=function(){e.setState({uploadHighlighted:!0})},e.addImageFromState=function(){var t=e.state,n=t.imgSrc,r=t.alt,o=e.state,i=o.height,a=o.width,s=e.props.onChange;isNaN(i)||(i+="px"),isNaN(a)||(a+="px"),s(n,i,a,r)},e.showImageURLOption=function(){e.setState({uploadHighlighted:!1})},e.toggleShowImageLoading=function(){var t=!e.state.showImageLoading;e.setState({showImageLoading:t})},e.updateValue=function(t){var n,r,o;e.setState((n={},r="".concat(t.target.name),o=t.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},e.selectImage=function(t){t.target.files&&0<t.target.files.length&&e.uploadImage(t.target.files[0])},e.uploadImage=function(t){e.toggleShowImageLoading(),(0,e.props.config.uploadCallback)(t).then((function(t){var n=t.data;e.setState({showImageLoading:!1,dragEnter:!1,imgSrc:n.link||n.url}),e.fileUpload=!1})).catch((function(){e.setState({showImageLoading:!1,dragEnter:!1})}))},e.fileUploadClick=function(t){e.fileUpload=!0,t.stopPropagation()},e.stopPropagation=function(t){e.fileUpload?e.fileUpload=!1:(t.preventDefault(),t.stopPropagation())},e}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.config;e.expanded&&!this.props.expanded?this.setState({imgSrc:"",dragEnter:!1,uploadHighlighted:t.uploadEnabled&&!!t.uploadCallback,showImageLoading:!1,height:t.defaultSize.height,width:t.defaultSize.width,alt:""}):t.uploadCallback===e.config.uploadCallback&&t.uploadEnabled===e.config.uploadEnabled||this.setState({uploadHighlighted:t.uploadEnabled&&!!t.uploadCallback})}},{key:"renderAddImageModal",value:function(){var e=this.state,t=e.imgSrc,n=e.uploadHighlighted,r=e.showImageLoading,i=e.dragEnter,a=e.height,s=e.width,c=e.alt,u=this.props,p=u.config,f=p.popupClassName,d=p.uploadCallback,h=p.uploadEnabled,g=p.urlEnabled,m=p.previewImage,y=p.inputAccept,v=p.alt,b=u.doCollapse,w=u.translations;return o.a.createElement("div",{className:l()("rdw-image-modal",f),onClick:this.stopPropagation},o.a.createElement("div",{className:"rdw-image-modal-header"},h&&d&&o.a.createElement("span",{onClick:this.showImageUploadOption,className:"rdw-image-modal-header-option"},w["components.controls.image.fileUpload"],o.a.createElement("span",{className:l()("rdw-image-modal-header-label",{"rdw-image-modal-header-label-highlighted":n})})),g&&o.a.createElement("span",{onClick:this.showImageURLOption,className:"rdw-image-modal-header-option"},w["components.controls.image.byURL"],o.a.createElement("span",{className:l()("rdw-image-modal-header-label",{"rdw-image-modal-header-label-highlighted":!n})}))),n?o.a.createElement("div",{onClick:this.fileUploadClick},o.a.createElement("div",{onDragEnter:this.onDragEnter,onDragOver:this.stopPropagation,onDrop:this.onImageDrop,className:l()("rdw-image-modal-upload-option",{"rdw-image-modal-upload-option-highlighted":i})},o.a.createElement("label",{htmlFor:"file",className:"rdw-image-modal-upload-option-label"},m&&t?o.a.createElement("img",{src:t,alt:t,className:"rdw-image-modal-upload-option-image-preview"}):t||w["components.controls.image.dropFileText"])),o.a.createElement("input",{type:"file",id:"file",accept:y,onChange:this.selectImage,className:"rdw-image-modal-upload-option-input"})):o.a.createElement("div",{className:"rdw-image-modal-url-section"},o.a.createElement("input",{className:"rdw-image-modal-url-input",placeholder:w["components.controls.image.enterlink"],name:"imgSrc",onChange:this.updateValue,onBlur:this.updateValue,value:t}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),v.present&&o.a.createElement("div",{className:"rdw-image-modal-size"},o.a.createElement("span",{className:"rdw-image-modal-alt-lbl"},"Alt Text"),o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:c,name:"alt",className:"rdw-image-modal-alt-input",placeholder:"alt"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},v.mandatory&&"*")),o.a.createElement("div",{className:"rdw-image-modal-size"},"↕ ",o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:a,name:"height",className:"rdw-image-modal-size-input",placeholder:"Height"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")," ↔ ",o.a.createElement("input",{onChange:this.updateValue,onBlur:this.updateValue,value:s,name:"width",className:"rdw-image-modal-size-input",placeholder:"Width"}),o.a.createElement("span",{className:"rdw-image-mandatory-sign"},"*")),o.a.createElement("span",{className:"rdw-image-modal-btn-section"},o.a.createElement("button",{className:"rdw-image-modal-btn",onClick:this.addImageFromState,disabled:!t||!a||!s||v.mandatory&&!c},w["generic.add"]),o.a.createElement("button",{className:"rdw-image-modal-btn",onClick:b},w["generic.cancel"])),r?o.a.createElement("div",{className:"rdw-image-modal-spinner"},o.a.createElement(nn,null)):void 0)}},{key:"render",value:function(){var e=this.props,t=e.config,n=t.icon,r=t.className,i=t.title,a=e.expanded,s=e.onExpandEvent,c=e.translations;return o.a.createElement("div",{className:"rdw-image-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-image-control"},o.a.createElement(A,{className:l()(r),value:"unordered-list-item",onClick:s,title:i||c["components.controls.image.image"]},o.a.createElement("img",{src:n,alt:""})),a?this.renderAddImageModal():void 0)}}])&&on(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();cn.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,doCollapse:a.a.func,onChange:a.a.func,config:a.a.object,translations:a.a.object};var un=cn;function ln(e){return(ln="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)}function pn(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 fn(e,t){return(fn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function dn(e){return(dn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var hn=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fn(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dn(e);if(t){var o=dn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===ln(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.addImage=function(e,n,r,o){var i=t.props,a=i.editorState,c=i.onChange,u={src:e,height:n,width:r};i.config.alt.present&&(u.alt=o);var l=a.getCurrentContent().createEntity("IMAGE","MUTABLE",u).getLastCreatedEntityKey();c(s.AtomicBlockUtils.insertAtomicBlock(a,l," ")),t.doCollapse()};var r=t.props.modalHandler;return t.state={expanded:!1},r.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,i=t.component||un;return o.a.createElement(i,{config:t,translations:n,onChange:this.addImage,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&pn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function gn(e){var t=e.config,n=e.onChange,r=e.translations,i=t.icon,a=t.className,s=t.title;return o.a.createElement("div",{className:"rdw-remove-wrapper","aria-label":"rdw-remove-control"},o.a.createElement(A,{className:l()(a),onClick:n,title:s||r["components.controls.remove.remove"]},o.a.createElement("img",{src:i,alt:""})))}hn.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var mn=hn;n(31),gn.propTypes={onChange:a.a.func,config:a.a.object,translations:a.a.object};var yn=gn;function vn(e){return(vn="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)}function bn(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 wn(e,t){return(wn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Sn(e){return(Sn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var En=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wn(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Sn(e);if(t){var o=Sn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===vn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var 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))).state={expanded:!1},e.onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.removeInlineStyles=function(){var t=e.props,n=t.editorState;(0,t.onChange)(e.removeAllInlineStyles(n))},e.removeAllInlineStyles=function(e){var t=e.getCurrentContent();return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","MONOSPACE","SUPERSCRIPT","SUBSCRIPT"].forEach((function(n){t=s.Modifier.removeInlineStyle(t,e.getSelection(),n)})),E(Object(c.getSelectionCustomInlineStyle)(e,["FONTSIZE","FONTFAMILY","COLOR","BGCOLOR"]),(function(n,r){r&&(t=s.Modifier.removeInlineStyle(t,e.getSelection(),r))})),s.EditorState.push(e,t,"change-inline-style")},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e}return e=i,(t=[{key:"componentDidMount",value:function(){this.props.modalHandler.registerCallBack(this.expandCollapse)}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state.expanded,i=t.component||yn;return o.a.createElement(i,{config:t,translations:n,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.removeInlineStyles})}}])&&bn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function kn(e){return(kn="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)}function On(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 Mn(e,t){return(Mn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Cn(e){return(Cn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}En.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,config:a.a.object,translations:a.a.object,modalHandler:a.a.object},n(32);var xn=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mn(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Cn(e);if(t){var o=Cn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===kn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var 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))).onChange=function(t){(0,e.props.onChange)(t)},e}return e=i,(t=[{key:"renderInDropDown",value:function(){var e=this.props,t=e.config,n=e.expanded,r=e.doExpand,i=e.onExpandEvent,a=e.doCollapse,s=e.currentState,c=s.undoDisabled,u=s.redoDisabled,p=e.translations,f=t.options,d=t.undo,h=t.redo,g=t.className,m=t.dropdownClassName,y=t.title;return o.a.createElement(F,{className:l()("rdw-history-dropdown",g),optionWrapperClassName:l()(m),expanded:n,doExpand:r,doCollapse:a,onExpandEvent:i,"aria-label":"rdw-history-control",title:y||p["components.controls.history.history"]},o.a.createElement("img",{src:M(t),alt:""}),0<=f.indexOf("undo")&&o.a.createElement(V,{value:"undo",onClick:this.onChange,disabled:c,className:l()("rdw-history-dropdownoption",d.className),title:d.title||p["components.controls.history.undo"]},o.a.createElement("img",{src:d.icon,alt:""})),0<=f.indexOf("redo")&&o.a.createElement(V,{value:"redo",onClick:this.onChange,disabled:u,className:l()("rdw-history-dropdownoption",h.className),title:h.title||p["components.controls.history.redo"]},o.a.createElement("img",{src:h.icon,alt:""})))}},{key:"renderInFlatList",value:function(){var e=this.props,t=e.config,n=t.options,r=t.undo,i=t.redo,a=t.className,s=e.currentState,c=s.undoDisabled,u=s.redoDisabled,p=e.translations;return o.a.createElement("div",{className:l()("rdw-history-wrapper",a),"aria-label":"rdw-history-control"},0<=n.indexOf("undo")&&o.a.createElement(A,{value:"undo",onClick:this.onChange,className:l()(r.className),disabled:c,title:r.title||p["components.controls.history.undo"]},o.a.createElement("img",{src:r.icon,alt:""})),0<=n.indexOf("redo")&&o.a.createElement(A,{value:"redo",onClick:this.onChange,className:l()(i.className),disabled:u,title:i.title||p["components.controls.history.redo"]},o.a.createElement("img",{src:i.icon,alt:""})))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&On(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();function _n(e){return(_n="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)}function Dn(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 Tn(e,t){return(Tn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function jn(e){return(jn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}xn.propTypes={expanded:a.a.bool,doExpand:a.a.func,doCollapse:a.a.func,onExpandEvent:a.a.func,config:a.a.object,onChange:a.a.func,currentState:a.a.object,translations:a.a.object};var In=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tn(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=jn(e);if(t){var o=jn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===_n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.onChange=function(e){var n=t.props,r=n.editorState,o=n.onChange,i=s.EditorState[e](r);i&&o(i)},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})};var r={expanded:!(t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1}),undoDisabled:!1,redoDisabled:!1},o=e.editorState,a=e.modalHandler;return o&&(r.undoDisabled=0===o.getUndoStack().size,r.redoDisabled=0===o.getRedoStack().size),t.state=r,a.registerCallBack(t.expandCollapse),t}return e=i,(t=[{key:"componentDidUpdate",value:function(e){var t=this.props.editorState;t&&e.editorState!==t&&this.setState({undoDisabled:0===t.getUndoStack().size,redoDisabled:0===t.getRedoStack().size})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var e=this.props,t=e.config,n=e.translations,r=this.state,i=r.undoDisabled,a=r.redoDisabled,s=r.expanded,c=t.component||xn;return o.a.createElement(c,{config:t,translations:n,currentState:{undoDisabled:i,redoDisabled:a},expanded:s,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange})}}])&&Dn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();In.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var Nn={inline:ne,blockType:he,fontSize:Oe,fontFamily:Ae,list:Ye,textAlign:tt,colorPicker:dt,link:It,embedded:Kt,emoji:tn,image:mn,remove:En,history:In},Ln=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,An=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;function Pn(e){return String(e).replace(Ln,"").match(An)?e:"#"}function Rn(e){return(Rn="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)}function Bn(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 zn(e,t){return(zn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Fn(e){return(Fn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Un(e,t,n){e.findEntityRanges((function(e){var t=e.getEntity();return null!==t&&"LINK"===n.getEntity(t).getType()}),t)}function Hn(e){var t,n=e.showOpenOptionOnHover;return(t=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zn(e,t)}(a,r.Component);var e,t,i=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fn(e);if(t){var o=Fn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Rn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={showPopOver:!1},e.openLink=function(){var t=e.props,n=t.entityKey,r=t.contentState.getEntity(n).getData().url,o=window.open(Pn(r),"blank");o&&o.focus()},e.toggleShowPopOver=function(){var t=!e.state.showPopOver;e.setState({showPopOver:t})},e}return e=a,(t=[{key:"render",value:function(){var e=this.props,t=e.children,r=e.entityKey,i=e.contentState.getEntity(r).getData(),a=i.url,s=i.targetOption,c=this.state.showPopOver;return o.a.createElement("span",{className:"rdw-link-decorator-wrapper",onMouseEnter:this.toggleShowPopOver,onMouseLeave:this.toggleShowPopOver},o.a.createElement("a",{href:Pn(a),target:s},t),c&&n?o.a.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuMDcyIDBIOC45MTVhLjkyNS45MjUgMCAwIDAgMCAxLjg0OWgyLjkyNUw2Ljk2MSA2LjcyN2EuOTE4LjkxOCAwIDAgMC0uMjcuNjU0YzAgLjI0Ny4wOTUuNDguMjcuNjU0YS45MTguOTE4IDAgMCAwIC42NTQuMjcuOTE4LjkxOCAwIDAgMCAuNjUzLS4yN2w0Ljg4LTQuODh2Mi45MjZhLjkyNS45MjUgMCAwIDAgMS44NDggMFYuOTI0QS45MjUuOTI1IDAgMCAwIDE0LjA3MiAweiIvPjxwYXRoIGQ9Ik0xMC42MjMgMTMuNDExSDEuNTg1VjQuMzcyaDYuNzk4bDEuNTg0LTEuNTg0SC43OTJBLjc5Mi43OTIgMCAwIDAgMCAzLjU4djEwLjYyNGMwIC40MzcuMzU1Ljc5Mi43OTIuNzkyaDEwLjYyNGEuNzkyLjc5MiAwIDAgMCAuNzkyLS43OTJWNS4wMjlsLTEuNTg1IDEuNTg0djYuNzk4eiIvPjwvZz48L3N2Zz4=",alt:"",onClick:this.openLink,className:"rdw-link-decorator-icon"}):void 0)}}])&&Bn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}()).propTypes={entityKey:a.a.string.isRequired,children:a.a.array,contentState:a.a.object},t}function Zn(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)}}n(33),n(34);var Kn=function(e,t,n){return t&&Zn(e.prototype,t),n&&Zn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((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.getMentionComponent=function(){function e(e){var n=e.entityKey,r=e.children,i=e.contentState.getEntity(n).getData(),a=i.url,s=i.value;return o.a.createElement("a",{href:a||s,className:l()("rdw-mention-link",t)},r)}var t=n.className;return e.propTypes={entityKey:a.a.number,children:a.a.array,contentState:a.a.object},e},this.getMentionDecorator=function(){return{strategy:n.findMentionEntities,component:n.getMentionComponent()}},this.className=t}));Kn.prototype.findMentionEntities=function(e,t,n){e.findEntityRanges((function(e){var t=e.getEntity();return null!==t&&"MENTION"===n.getEntity(t).getType()}),t)};var Yn=Kn;function Vn(e){return(Vn="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)}function Gn(e,t){return(Gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Wn(e){return(Wn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qn(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 Qn(e,t,n){return t&&qn(e.prototype,t),n&&qn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n(35);var Xn=Qn((function e(t){var n=this;Jn(this,e),this.findSuggestionEntities=function(e,t){if(n.config.getEditorState()){var r=n.config,o=r.separator,i=r.trigger,a=r.getSuggestions,s=(0,r.getEditorState)().getSelection();if(s.get("anchorKey")===e.get("key")&&s.get("anchorKey")===s.get("focusKey")){var c=e.getText(),u=(c=c.substr(0,s.get("focusOffset")===c.length-1?c.length:s.get("focusOffset")+1)).lastIndexOf(o+i),l=o+i;if((void 0===u||u<0)&&c[0]===i&&(u=0,l=i),0<=u){var p=c.substr(u+l.length,c.length);a().some((function(e){return!!e.value&&(n.config.caseSensitive?0<=e.value.indexOf(p):0<=e.value.toLowerCase().indexOf(p&&p.toLowerCase()))}))&&t(0===u?0:u+1,c.length)}}}},this.getSuggestionComponent=function(){var e,t=this.config;return(e=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gn(e,t)}(n,r.Component);var e=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Wn(e);if(t){var o=Wn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Vn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(n);function n(){var r;Jn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=e.call.apply(e,[this].concat(i))).state={style:{left:15},activeOption:-1,showSuggestions:!0},r.onEditorKeyDown=function(e){var t=r.state.activeOption,n={};"ArrowDown"===e.key?(e.preventDefault(),t===r.filteredSuggestions.length-1?n.activeOption=0:n.activeOption=t+1):"ArrowUp"===e.key?n.activeOption=t<=0?r.filteredSuggestions.length-1:t-1:"Escape"===e.key?(n.showSuggestions=!1,b()):"Enter"===e.key&&r.addMention(),r.setState(n)},r.onOptionMouseEnter=function(e){var t=e.target.getAttribute("data-index");r.setState({activeOption:t})},r.onOptionMouseLeave=function(){r.setState({activeOption:-1})},r.setSuggestionReference=function(e){r.suggestion=e},r.setDropdownReference=function(e){r.dropdown=e},r.closeSuggestionDropdown=function(){r.setState({showSuggestions:!1})},r.filteredSuggestions=[],r.filterSuggestions=function(e){var n=e.children[0].props.text.substr(1),o=t.getSuggestions();r.filteredSuggestions=o&&o.filter((function(e){return!n||0===n.length||(t.caseSensitive?0<=e.value.indexOf(n):0<=e.value.toLowerCase().indexOf(n&&n.toLowerCase()))}))},r.addMention=function(){var e=r.state.activeOption,n=t.getEditorState(),o=t.onChange,i=t.separator,a=t.trigger,u=r.filteredSuggestions[e];u&&function(e,t,n,r,o){var i=o.value,a=o.url,u=e.getCurrentContent().createEntity("MENTION","IMMUTABLE",{text:"".concat(r).concat(i),value:i,url:a}).getLastCreatedEntityKey(),l=Object(c.getSelectedBlock)(e).getText(),p=e.getSelection().focusOffset,f=(l.lastIndexOf(n+r,p)||0)+1,d=!1;l.length===f+1&&(p=l.length)," "===l[p]&&(d=!0);var h=e.getSelection().merge({anchorOffset:f,focusOffset:p}),g=s.EditorState.acceptSelection(e,h),m=s.Modifier.replaceText(g.getCurrentContent(),h,"".concat(r).concat(i),g.getCurrentInlineStyle(),u);g=s.EditorState.push(g,m,"insert-characters"),d||(h=g.getSelection().merge({anchorOffset:f+i.length+r.length,focusOffset:f+i.length+r.length}),g=s.EditorState.acceptSelection(g,h),m=s.Modifier.insertText(g.getCurrentContent(),h," ",g.getCurrentInlineStyle(),void 0)),t(s.EditorState.push(g,m,"insert-characters"))}(n,o,i,a,u)},r}return Qn(n,[{key:"componentDidMount",value:function(){var e,n,r,o=t.getWrapperRef().getBoundingClientRect(),i=this.suggestion.getBoundingClientRect(),a=this.dropdown.getBoundingClientRect();o.width<i.left-o.left+a.width?n=15:e=15,o.bottom<a.bottom&&(r=0),this.setState({style:{left:e,right:n,bottom:r}}),y.registerCallBack(this.onEditorKeyDown),v(),t.modalHandler.setSuggestionCallback(this.closeSuggestionDropdown),this.filterSuggestions(this.props)}},{key:"componentDidUpdate",value:function(e){this.props.children!==e.children&&(this.filterSuggestions(e),this.setState({showSuggestions:!0}))}},{key:"componentWillUnmount",value:function(){y.deregisterCallBack(this.onEditorKeyDown),b(),t.modalHandler.removeSuggestionCallback()}},{key:"render",value:function(){var e=this,n=this.props.children,r=this.state,i=r.activeOption,a=r.showSuggestions,s=t.dropdownClassName,c=t.optionClassName;return o.a.createElement("span",{className:"rdw-suggestion-wrapper",ref:this.setSuggestionReference,onClick:t.modalHandler.onSuggestionClick,"aria-haspopup":"true","aria-label":"rdw-suggestion-popup"},o.a.createElement("span",null,n),a&&o.a.createElement("span",{className:l()("rdw-suggestion-dropdown",s),contentEditable:"false",suppressContentEditableWarning:!0,style:this.state.style,ref:this.setDropdownReference},this.filteredSuggestions.map((function(t,n){return o.a.createElement("span",{key:n,spellCheck:!1,onClick:e.addMention,"data-index":n,onMouseEnter:e.onOptionMouseEnter,onMouseLeave:e.onOptionMouseLeave,className:l()("rdw-suggestion-option",c,{"rdw-suggestion-option-active":n===i})},t.text)}))))}}]),n}()).propTypes={children:a.a.array},e}.bind(this),this.getSuggestionDecorator=function(){return{strategy:n.findSuggestionEntities,component:n.getSuggestionComponent()}};var i=t.separator,u=t.trigger,p=t.getSuggestions,f=t.onChange,d=t.getEditorState,h=t.getWrapperRef,g=t.caseSensitive,m=t.dropdownClassName,w=t.optionClassName,S=t.modalHandler;this.config={separator:i,trigger:u,getSuggestions:p,onChange:f,getEditorState:d,getWrapperRef:h,caseSensitive:g,dropdownClassName:m,optionClassName:w,modalHandler:S}}));function $n(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 er(e){var t=e.block,n=e.contentState.getEntity(t.getEntityAt(0)).getData(),r=n.src,i=n.height,a=n.width;return o.a.createElement("iframe",{height:i,width:a,src:r,frameBorder:"0",allowFullScreen:!0,title:"Wysiwyg Embedded Content"})}n(36);var tr=function(e,t,n){return t&&$n(e.prototype,t),n&&$n(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((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.getHashtagComponent=function(){function e(e){var n=e.children,r=n[0].props.text;return o.a.createElement("a",{href:r,className:l()("rdw-hashtag-link",t)},n)}var t=n.className;return e.propTypes={children:a.a.object},e},this.findHashtagEntities=function(e,t){for(var r=e.getText(),o=0,i=0;0<r.length&&0<=o;)if(r[0]===n.hashCharacter?(i=o=0,r=r.substr(n.hashCharacter.length)):0<=(o=r.indexOf(n.separator+n.hashCharacter))&&(r=r.substr(o+(n.separator+n.hashCharacter).length),i+=o+n.separator.length),0<=o){var a=0<=r.indexOf(n.separator)?r.indexOf(n.separator):r.length,s=r.substr(0,a);s&&0<s.length&&(t(i,i+s.length+n.hashCharacter.length),i+=n.hashCharacter.length)}},this.getHashtagDecorator=function(){return{strategy:n.findHashtagEntities,component:n.getHashtagComponent()}},this.className=t.className,this.hashCharacter=t.hashCharacter||"#",this.separator=t.separator||" "}));er.propTypes={block:a.a.object,contentState:a.a.object};var nr=er;function rr(e){return(rr="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)}function or(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 ir(e,t){return(ir=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ar(e){return(ar=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(37);var sr=function(e){var t;return(t=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ir(e,t)}(a,r.Component);var t,n,i=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ar(e);if(t){var o=ar(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===rr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(a);function a(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=i.call.apply(i,[this].concat(r))).state={hovered:!1},t.setEntityAlignmentLeft=function(){t.setEntityAlignment("left")},t.setEntityAlignmentRight=function(){t.setEntityAlignment("right")},t.setEntityAlignmentCenter=function(){t.setEntityAlignment("none")},t.setEntityAlignment=function(n){var r=t.props,o=r.block,i=r.contentState,a=o.getEntityAt(0);i.mergeEntityData(a,{alignment:n}),e.onChange(s.EditorState.push(e.getEditorState(),i,"change-block-data")),t.setState({dummy:!0})},t.toggleHovered=function(){var e=!t.state.hovered;t.setState({hovered:e})},t}return t=a,(n=[{key:"renderAlignmentOptions",value:function(e){return o.a.createElement("div",{className:l()("rdw-image-alignment-options-popup",{"rdw-image-alignment-options-popup-right":"right"===e})},o.a.createElement(A,{onClick:this.setEntityAlignmentLeft,className:"rdw-image-alignment-option"},"L"),o.a.createElement(A,{onClick:this.setEntityAlignmentCenter,className:"rdw-image-alignment-option"},"C"),o.a.createElement(A,{onClick:this.setEntityAlignmentRight,className:"rdw-image-alignment-option"},"R"))}},{key:"render",value:function(){var t=this.props,n=t.block,r=t.contentState,i=this.state.hovered,a=e.isReadOnly,s=e.isImageAlignmentEnabled,c=r.getEntity(n.getEntityAt(0)).getData(),u=c.src,p=c.alignment,f=c.height,d=c.width,h=c.alt;return o.a.createElement("span",{onMouseEnter:this.toggleHovered,onMouseLeave:this.toggleHovered,className:l()("rdw-image-alignment",{"rdw-image-left":"left"===p,"rdw-image-right":"right"===p,"rdw-image-center":!p||"none"===p})},o.a.createElement("span",{className:"rdw-image-imagewrapper"},o.a.createElement("img",{src:u,alt:h,style:{height:f,width:d}}),!a()&&i&&s()?this.renderAlignmentOptions(p):void 0))}}])&&or(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}()).propTypes={block:a.a.object,contentState:a.a.object},t},cr={options:["inline","blockType","fontSize","fontFamily","list","textAlign","colorPicker","link","embedded","emoji","image","remove","history"],inline:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["bold","italic","underline","strikethrough","monospace","superscript","subscript"],bold:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuMjM2IDBjMS42NTIgMCAyLjk0LjI5OCAzLjg2Ni44OTMuOTI1LjU5NSAxLjM4OCAxLjQ4NSAxLjM4OCAyLjY2OSAwIC42MDEtLjE3MyAxLjEzOS0uNTE2IDEuNjEtLjM0My40NzQtLjg0NC44My0xLjQ5OSAxLjA2OC44NDMuMTY3IDEuNDc0LjUyMyAxLjg5NSAxLjA3MS40MTkuNTUuNjMgMS4xODMuNjMgMS45MDMgMCAxLjI0NS0uNDQ0IDIuMTg3LTEuMzMgMi44MjUtLjg4Ni42NDEtMi4xNDQuOTYxLTMuNzY5Ljk2MUgwdi0yLjE2N2gxLjQ5NFYyLjE2N0gwVjBoNi4yMzZ6TTQuMzA4IDUuNDQ2aDIuMDI0Yy43NTIgMCAxLjMzLS4xNDMgMS43MzQtLjQzLjQwNS0uMjg1LjYwOC0uNzAxLjYwOC0xLjI1IDAtLjYtLjIwNC0xLjA0NC0uNjEyLTEuMzMtLjQwOC0uMjg2LTEuMDE2LS40MjctMS44MjYtLjQyN0g0LjMwOHYzLjQzN3ptMCAxLjgwNFYxMWgyLjU5M2MuNzQ3IDAgMS4zMTQtLjE1MiAxLjcwNy0uNDUyLjM5LS4zLjU4OC0uNzQ1LjU4OC0xLjMzNCAwLS42MzYtLjE2OC0xLjEyNC0uNS0xLjQ2LS4zMzYtLjMzNS0uODY0LS41MDQtMS41ODItLjUwNEg0LjMwOHoiIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==",className:void 0,title:void 0},italic:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZD0iTTcgM1YyaDR2MUg5Ljc1M2wtMyAxMEg4djFINHYtMWgxLjI0N2wzLTEwSDd6Ii8+PC9zdmc+",className:void 0,title:void 0},underline:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZD0iTTYuMDQ1IDJ2Ljk5Mkw0Ljc4NSAzdjUuMTcyYzAgLjg1OS4yNDMgMS41MTIuNzI3IDEuOTU3czEuMTI0LjY2OCAxLjkxOC42NjhjLjgzNiAwIDEuNTA5LS4yMjEgMi4wMTktLjY2NC41MTEtLjQ0Mi43NjYtMS4wOTYuNzY2LTEuOTYxVjNsLTEuMjYtLjAwOFYySDEzdi45OTJMMTEuNzM5IDN2NS4xNzJjMCAxLjIzNC0uMzk4IDIuMTgxLTEuMTk1IDIuODQtLjc5Ny42NTktMS44MzUuOTg4LTMuMTE0Ljk4OC0xLjI0MiAwLTIuMjQ4LS4zMjktMy4wMTctLjk4OC0uNzY5LS42NTktMS4xNTItMS42MDUtMS4xNTItMi44NFYzTDIgMi45OTJWMmg0LjA0NXpNMiAxM2gxMXYxSDJ6Ii8+PC9zdmc+",className:void 0,title:void 0},strikethrough:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNC4wNCA1Ljk1NGg2LjIxNWE3LjQxMiA3LjQxMiAwIDAgMC0uNzk1LS40MzggMTEuOTA3IDExLjkwNyAwIDAgMC0xLjQ0Ny0uNTU3Yy0xLjE4OC0uMzQ4LTEuOTY2LS43MTEtMi4zMzQtMS4wODgtLjM2OC0uMzc3LS41NTItLjc3LS41NTItMS4xODEgMC0uNDk1LjE4Ny0uOTA2LjU2LTEuMjMyLjM4LS4zMzEuODg3LS40OTcgMS41MjMtLjQ5Ny42OCAwIDEuMjY2LjI1NSAxLjc1Ny43NjcuMjk1LjMxNS41ODIuODkxLjg2MSAxLjczbC4xMTcuMDE2LjcwMy4wNS4xLS4wMjRjLjAyOC0uMTUyLjA0Mi0uMjc5LjA0Mi0uMzggMC0uMzM3LS4wMzktLjg1Mi0uMTE3LTEuNTQ0YTkuMzc0IDkuMzc0IDAgMCAwLS4xNzYtLjk5NUM5Ljg4LjM3OSA5LjM4NS4yNDQgOS4wMTcuMTc2IDguMzY1LjA3IDcuODk5LjAxNiA3LjYyLjAxNmMtMS40NSAwLTIuNTQ1LjM1Ny0zLjI4NyAxLjA3MS0uNzQ3LjcyLTEuMTIgMS41ODktMS4xMiAyLjYwNyAwIC41MTEuMTMzIDEuMDQuNCAxLjU4Ni4xMjkuMjUzLjI3LjQ3OC40MjcuNjc0ek04LjI4IDguMTE0Yy41NzUuMjM2Ljk1Ny40MzYgMS4xNDcuNTk5LjQ1MS40MS42NzcuODUyLjY3NyAxLjMyNCAwIC4zODMtLjEzLjc0NS0uMzkzIDEuMDg4LS4yNS4zMzgtLjU5LjU4LTEuMDIuNzI2YTMuNDE2IDMuNDE2IDAgMCAxLTEuMTYzLjIyOGMtLjQwNyAwLS43NzUtLjA2Mi0xLjEwNC0uMTg2YTIuNjk2IDIuNjk2IDAgMCAxLS44NzgtLjQ4IDMuMTMzIDMuMTMzIDAgMCAxLS42Ny0uNzk0IDEuNTI3IDEuNTI3IDAgMCAxLS4xMDQtLjIyNyA1Ny41MjMgNTcuNTIzIDAgMCAwLS4xODgtLjQ3MyAyMS4zNzEgMjEuMzcxIDAgMCAwLS4yNTEtLjU5OWwtLjg1My4wMTd2LjM3MWwtLjAxNy4zMTNhOS45MiA5LjkyIDAgMCAwIDAgLjU3M2MuMDExLjI3LjAxNy43MDkuMDE3IDEuMzE2di4xMWMwIC4wNzkuMDIyLjE0LjA2Ny4xODUuMDgzLjA2OC4yODQuMTQ3LjYwMi4yMzdsMS4xNy4zMzdjLjQ1Mi4xMy45OTYuMTk0IDEuNjMyLjE5NC42ODYgMCAxLjI1Mi0uMDU5IDEuNjk4LS4xNzdhNC42OTQgNC42OTQgMCAwIDAgMS4yOC0uNTU3Yy40MDEtLjI1OS43MDUtLjQ4Ni45MTEtLjY4My4yNjgtLjI3Ni40NjYtLjU2OC41OTQtLjg3OGE0Ljc0IDQuNzQgMCAwIDAgLjM0My0xLjc4OGMwLS4yOTgtLjAyLS41NTctLjA1OC0uNzc2SDguMjgxek0xNC45MTQgNi41N2EuMjYuMjYgMCAwIDAtLjE5My0uMDc2SC4yNjhhLjI2LjI2IDAgMCAwLS4xOTMuMDc2LjI2NC4yNjQgMCAwIDAtLjA3NS4xOTR2LjU0YzAgLjA3OS4wMjUuMTQzLjA3NS4xOTRhLjI2LjI2IDAgMCAwIC4xOTMuMDc2SDE0LjcyYS4yNi4yNiAwIDAgMCAuMTkzLS4wNzYuMjY0LjI2NCAwIDAgMCAuMDc1LS4xOTR2LS41NGEuMjY0LjI2NCAwIDAgMC0uMDc1LS4xOTR6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},monospace:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzQ0NCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMS4wMjEgMi45MDZjLjE4NiAxLjIxOS4zNzIgMS41LjM3MiAyLjcxOUMxLjM5MyA2LjM3NSAwIDcuMDMxIDAgNy4wMzF2LjkzOHMxLjM5My42NTYgMS4zOTMgMS40MDZjMCAxLjIxOS0uMTg2IDEuNS0uMzcyIDIuNzE5Qy43NDMgMTQuMDYzIDEuNzY0IDE1IDIuNjkzIDE1aDEuOTV2LTEuODc1cy0xLjY3Mi4xODgtMS42NzItLjkzOGMwLS44NDMuMTg2LS44NDMuMzcyLTIuNzE4LjA5My0uODQ0LS40NjQtMS41LTEuMDIyLTEuOTY5LjU1OC0uNDY5IDEuMTE1LTEuMDMxIDEuMDIyLTEuODc1QzMuMDY0IDMuNzUgMi45NyAzLjc1IDIuOTcgMi45MDZjMC0xLjEyNSAxLjY3Mi0xLjAzMSAxLjY3Mi0xLjAzMVYwaC0xLjk1QzEuNjcgMCAuNzQzLjkzOCAxLjAyIDIuOTA2ek0xMS45NzkgMi45MDZjLS4xODYgMS4yMTktLjM3MiAxLjUtLjM3MiAyLjcxOSAwIC43NSAxLjM5MyAxLjQwNiAxLjM5MyAxLjQwNnYuOTM4cy0xLjM5My42NTYtMS4zOTMgMS40MDZjMCAxLjIxOS4xODYgMS41LjM3MiAyLjcxOS4yNzggMS45NjktLjc0MyAyLjkwNi0xLjY3MiAyLjkwNmgtMS45NXYtMS44NzVzMS42NzIuMTg4IDEuNjcyLS45MzhjMC0uODQzLS4xODYtLjg0My0uMzcyLTIuNzE4LS4wOTMtLjg0NC40NjQtMS41IDEuMDIyLTEuOTY5LS41NTgtLjQ2OS0xLjExNS0xLjAzMS0xLjAyMi0xLjg3NS4xODYtMS44NzUuMzcyLTEuODc1LjM3Mi0yLjcxOSAwLTEuMTI1LTEuNjcyLTEuMDMxLTEuNjcyLTEuMDMxVjBoMS45NWMxLjAyMiAwIDEuOTUuOTM4IDEuNjcyIDIuOTA2eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},superscript:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcuMzA1IDEwLjE2NUwxMS44NjUgMTVIOS4wNTdsLTMuMTkyLTMuNTM2TDIuNzQ2IDE1SDBsNC41MjMtNC44MzVMLjIxOCA1LjYwM2gyLjc3TDUuOTg2IDguOTEgOS4wMSA1LjYwM2gyLjY0OWwtNC4zNTQgNC41NjJ6bTYuMjM0LTMuMjY5bDEuODc5LTEuMzA2Yy42NC0uNDE2IDEuMDYyLS44MDEgMS4yNjQtMS4xNTcuMjAxLS4zNTYuMzAyLS43MzguMzAyLTEuMTQ4IDAtLjY2OS0uMjM3LTEuMjEtLjcxLTEuNjItLjQ3NC0uNDExLTEuMDk3LS42MTctMS44NjgtLjYxNy0uNzQ0IDAtMS4zNC4yMDgtMS43ODUuNjI0LS40NDcuNDE2LS42NyAxLjA0My0uNjcgMS44ODFoMS40MzZjMC0uNS4wOTQtLjg0Ni4yODEtMS4wMzguMTg4LS4xOTEuNDQ1LS4yODcuNzcyLS4yODdzLjU4NS4wOTcuNzc3LjI5MmMuMTkuMTk1LjI4Ni40MzcuMjg2LjcyNiAwIC4yOS0uMDg5LjU1LS4yNjYuNzg1cy0uNjcuNjI4LTEuNDc5IDEuMTg0Yy0uNjkxLjQ3Ny0xLjYyNy45MjctMS45MDggMS4zNWwuMDE0IDEuNTY5SDE3VjYuODk2aC0zLjQ2MXoiLz48L3N2Zz4=",className:void 0,title:void 0},subscript:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExLjg2NiAxMS42NDZIOS4wNkw1Ljg2NyA3Ljk0MmwtMy4xMjEgMy43MDRIMGw0LjUyNC01LjA2NEwuMjE4IDEuODA0aDIuNzdsMyAzLjQ2NCAzLjAyMy0zLjQ2NGgyLjY1TDcuMzA2IDYuNTgybDQuNTYgNS4wNjR6bTEuNzI1IDIuMDU4bDEuODI3LTEuMzY4Yy42NC0uNDM1IDEuMDYyLS44NCAxLjI2NC0xLjIxMi4yMDItLjM3Mi4zMDItLjc3My4zMDItMS4yMDIgMC0uNy0uMjM3LTEuMjY2LS43MS0xLjY5Ni0uNDc0LS40MzEtMS4wOTctLjY0Ni0xLjg2OS0uNjQ2LS43NDQgMC0xLjM0LjIxOC0xLjc4NS42NTMtLjQ0Ni40MzYtLjY3IDEuMDkyLS42NyAxLjk3aDEuNDM2YzAtLjUyNC4wOTQtLjg4Ni4yODEtMS4wODcuMTg4LS4yLjQ0NS0uMzAxLjc3Mi0uMzAxcy41ODYuMTAyLjc3Ny4zMDZjLjE5LjIwNC4yODYuNDU4LjI4Ni43NiAwIC4zMDMtLjA4OC41NzctLjI2Ni44MjItLjE3Ny4yNDUtLjY3LjY1OC0xLjQ3OCAxLjI0LS42OTIuNS0xLjYyOC45NzEtMS45MSAxLjQxM0wxMS44NjQgMTVIMTd2LTEuMjk2aC0zLjQxeiIvPjwvc3ZnPg==",className:void 0,title:void 0}},blockType:{inDropdown:!0,options:["Normal","H1","H2","H3","H4","H5","H6","Blockquote","Code"],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},fontSize:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuOTIxIDMuMTE5YS40MjcuNDI3IDAgMCAwIC4zMzUuMTY0aC45N2EuNDI2LjQyNiAwIDAgMCAuMzA0LS4xMy40NDEuNDQxIDAgMCAwIC4xMjUtLjMxbC4wMDItMi40MWEuNDM0LjQzNCAwIDAgMC0uNDMtLjQzMkguNDNBLjQzNC40MzQgMCAwIDAgMCAuNDR2Mi40MDZjMCAuMjQyLjE5Mi40MzguNDMuNDM4aC45N2MuMTMgMCAuMjU0LS4wNi4zMzUtLjE2NWwuNzMtLjkzSDUuNTR2MTEuMzZjMCAuMjQxLjE5Mi40MzcuNDMuNDM3aDEuNzE3Yy4yMzcgMCAuNDMtLjE5Ni40My0uNDM3VjIuMTg4aDMuMDdsLjczNC45MzF6TTEzLjg5OCAxMS4yNjNhLjQyNS40MjUgMCAwIDAtLjQ4Mi0uMTQ2bC0uNTQ3LjE5NFY5LjYxN2EuNDQyLjQ0MiAwIDAgMC0uMTI2LS4zMS40MjYuNDI2IDAgMCAwLS4zMDQtLjEyN2gtLjQyOWEuNDM0LjQzNCAwIDAgMC0uNDMuNDM3djEuNjk0bC0uNTQ3LS4xOTRhLjQyNS40MjUgMCAwIDAtLjQ4MS4xNDYuNDQ0LjQ0NCAwIDAgMC0uMDE2LjUxMmwxLjMzMiAyLjAxN2EuNDI3LjQyNyAwIDAgMCAuNzEzIDBsMS4zMzMtMi4wMTdhLjQ0NC40NDQgMCAwIDAtLjAxNi0uNTEyeiIvPjwvZz48L3N2Zz4=",options:[8,9,10,11,12,14,16,18,24,30,36,48,60,72,96],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},fontFamily:{options:["Arial","Georgia","Impact","Tahoma","Times New Roman","Verdana"],className:void 0,component:void 0,dropdownClassName:void 0,title:void 0},list:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["unordered","ordered","indent","outdent"],unordered:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMS43MiAzLjQyN2MuOTUxIDAgMS43MjItLjc2OCAxLjcyMi0xLjcwOFMyLjY3LjAxIDEuNzIuMDFDLjc3LjAwOCAwIC43NzUgMCAxLjcxNWMwIC45NC43NzQgMS43MTEgMS43MiAxLjcxMXptMC0yLjYyNWMuNTEgMCAuOTIyLjQxMi45MjIuOTE0YS45Mi45MiAwIDAgMS0xLjg0MiAwIC45Mi45MiAwIDAgMSAuOTItLjkxNHpNMS43MiA4LjcwM2MuOTUxIDAgMS43MjItLjc2OCAxLjcyMi0xLjcwOFMyLjY3IDUuMjg3IDEuNzIgNS4yODdDLjc3IDUuMjg3IDAgNi4wNTIgMCA2Ljk5NXMuNzc0IDEuNzA4IDEuNzIgMS43MDh6bTAtMi42MjJjLjUxIDAgLjkyMi40MTIuOTIyLjkxNGEuOTIuOTIgMCAwIDEtMS44NDIgMGMwLS41MDUuNDE1LS45MTQuOTItLjkxNHpNMS43MiAxMy45ODJjLjk1MSAwIDEuNzIyLS43NjggMS43MjItMS43MDggMC0uOTQzLS43NzQtMS43MDgtMS43MjEtMS43MDgtLjk0NyAwLTEuNzIxLjc2OC0xLjcyMSAxLjcwOHMuNzc0IDEuNzA4IDEuNzIgMS43MDh6bTAtMi42MjVjLjUxIDAgLjkyMi40MTIuOTIyLjkxNGEuOTIuOTIgMCAxIDEtMS44NDIgMCAuOTIuOTIgMCAwIDEgLjkyLS45MTR6TTUuNzQ0IDIuMTE1aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOTlINS43NDRhLjQuNCAwIDAgMC0uNDAyLjM5OS40LjQgMCAwIDAgLjQwMi4zOTl6TTUuNzQ0IDcuMzk0aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOThINS43NDRhLjQuNCAwIDAgMC0uNDAyLjM5OC40LjQgMCAwIDAgLjQwMi4zOTl6TTUuNzQ0IDEyLjY3aDkuODQ1YS40LjQgMCAwIDAgLjQwMS0uMzk5LjQuNCAwIDAgMC0uNDAxLS4zOTlINS43NDRhLjQuNCAwIDAgMC0uNDAyLjQuNC40IDAgMCAwIC40MDIuMzk4eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},ordered:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNC4yMDIgMS40NjZoOC4xNWMuMzM4IDAgLjYxMi0uMzIyLjYxMi0uNzIgMC0uMzk3LS4yNzQtLjcyLS42MTItLjcyaC04LjE1Yy0uMzM4IDAtLjYxMS4zMjMtLjYxMS43MiAwIC4zOTguMjczLjcyLjYxLjcyek0xMi4zNTIgNS43ODNoLTguMTVjLS4zMzggMC0uNjExLjMyMi0uNjExLjcyIDAgLjM5Ny4yNzMuNzIuNjEuNzJoOC4xNTFjLjMzOCAwIC42MTItLjMyMy42MTItLjcyIDAtLjM5OC0uMjc0LS43Mi0uNjEyLS43MnpNMTIuMzUyIDExLjU0aC04LjE1Yy0uMzM4IDAtLjYxMS4zMjItLjYxMS43MiAwIC4zOTYuMjczLjcxOS42MS43MTloOC4xNTFjLjMzOCAwIC42MTItLjMyMy42MTItLjcyIDAtLjM5Ny0uMjc0LS43Mi0uNjEyLS43MnpNLjc2NyAxLjI0OXYxLjgwMmMwIC4xOTUuMTM2LjM0My4zMTUuMzQzLjE3NiAwIC4zMTUtLjE1LjMxNS0uMzQzVi4zNTZjMC0uMTktLjEzMy0uMzM5LS4zMDItLjMzOS0uMTQ4IDAtLjIyMy4xMTgtLjI0Ny4xNTZhLjIyOC4yMjggMCAwIDAtLjAwMy4wMDVMLjU3OS42MjFhLjQ3NC40NzQgMCAwIDAtLjA5OC4yNzNjMCAuMTk0LjEyOC4zNTEuMjg2LjM1NXpNLjM1MiA4LjE5SDEuNTVjLjE1NyAwIC4yODUtLjE2Mi4yODUtLjM2MiAwLS4xOTgtLjEyOC0uMzU5LS4yODUtLjM1OUguNjh2LS4wMDZjMC0uMTA3LjIxLS4yODEuMzc4LS40MjIuMzM2LS4yNzguNzUzLS42MjUuNzUzLTEuMjI2IDAtLjU3LS4zNzYtMS0uODc0LTEtLjQ3NyAwLS44MzYuMzg1LS44MzYuODk3IDAgLjI5Ny4xNjQuNDAyLjMwNS40MDIuMiAwIC4zMjEtLjE3Ni4zMjEtLjM0NiAwLS4xMDYuMDIzLS4yMjguMjA0LS4yMjguMjQzIDAgLjI1LjI1NC4yNS4yODMgMCAuMjI4LS4yNTIuNDQyLS40OTUuNjQ5LS4zMDEuMjU1LS42NDIuNTQ0LS42NDIuOTkydi4zODRjMCAuMjA1LjE1OS4zNDMuMzA4LjM0M3pNMS43NyAxMC41NDNjMC0uNTkyLS4yOTYtLjkzMS0uODE0LS45MzEtLjY4IDAtLjg1OS41Ny0uODU5Ljg3MiAwIC4zNTEuMjIyLjM5LjMxOC4zOS4xODUgMCAuMzEtLjE0OC4zMS0uMzY2IDAtLjA4NC4wMjYtLjE4MS4yMjQtLjE4MS4xNDIgMCAuMi4wMjQuMi4yNjcgMCAuMjM3LS4wNDMuMjYzLS4yMTMuMjYzLS4xNjQgMC0uMjg4LjE1Mi0uMjg4LjM1NCAwIC4yLjEyNS4zNS4yOTEuMzUuMjI1IDAgLjI3LjEwOC4yNy4yODN2LjA3NWMwIC4yOTQtLjA5Ny4zNS0uMjc3LjM1LS4yNDggMC0uMjY3LS4xNS0uMjY3LS4xOTcgMC0uMTc0LS4wOTgtLjM1LS4zMTctLjM1LS4xOTIgMC0uMzA3LjE0MS0uMzA3LjM3OCAwIC40My4zMTMuODg4Ljg5NS44ODguNTY0IDAgLjkwMS0uNC45MDEtMS4wN3YtLjA3NGMwLS4yNzQtLjA3NC0uNTAyLS4yMTQtLjY2Ni4wOTYtLjE2My4xNDgtLjM4LjE0OC0uNjM1eiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},indent:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNS43MTYgMy4yMTFIMTd2MS4xOTdINS43MTZ6TTAgLjAyaDE3djEuMTk3SDB6TTAgMTIuNzgzaDE3djEuMTk3SDB6TTUuNzE2IDkuNTkzSDE3djEuMTk3SDUuNzE2ek01LjcxNiA2LjQwMkgxN3YxLjE5N0g1LjcxNnpNLjE4NyA5LjQ5MUwyLjUyIDcgLjE4NyA0LjUwOXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},outdent:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNS4zOTYgMy4xOTNoMTAuNTczVjQuMzlINS4zOTZ6TS4wMzkuMDAzaDE1LjkzVjEuMkguMDM5ek0uMDM5IDEyLjc2NmgxNS45M3YxLjE5N0guMDM5ek01LjM5NiA5LjU3NWgxMC41NzN2MS4xOTdINS4zOTZ6TTUuMzk2IDYuMzg0aDEwLjU3M3YxLjE5N0g1LjM5NnpNMi4xODcgNC40OTFMMCA2Ljk4M2wyLjE4NyAyLjQ5MXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},title:void 0},textAlign:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["left","center","right","justify"],left:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNOC40OTMgMTQuODg3SC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDguMTY3YS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjE4IDEwLjE2MkguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1M2gxNC4yOTJhLjMyNi4zMjYgMCAwIDEgMCAuNjUzek04LjQ5MyA1LjQzNUguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1Mmg4LjE2N2EuMzI2LjMyNiAwIDAgMSAwIC42NTJ6TTE0LjYxOC43MDlILjMyNmEuMzI2LjMyNiAwIDAgMSAwLS42NTJoMTQuMjkyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},center:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTEuNTU2IDE0Ljg4N0gzLjM4OGEuMzI2LjMyNiAwIDAgMSAwLS42NTJoOC4xNjdhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42MTggMTAuMTYySC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUzaDE0LjI5MmEuMzI2LjMyNiAwIDAgMSAwIC42NTN6TTExLjU1NiA1LjQzNUgzLjM4OGEuMzI2LjMyNiAwIDAgMSAwLS42NTJoOC4xNjdhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42MTguNzA5SC4zMjZhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDE0LjI5MmEuMzI2LjMyNiAwIDAgMSAwIC42NTJ6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},right:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNjE4IDE0Ljg4N0g2LjQ1YS4zMjYuMzI2IDAgMCAxIDAtLjY1Mmg4LjE2N2EuMzI2LjMyNiAwIDAgMSAwIC42NTJ6TTE0LjYxOCAxMC4xNjJILjMyNmEuMzI2LjMyNiAwIDAgMSAwLS42NTNoMTQuMjkyYS4zMjYuMzI2IDAgMCAxIDAgLjY1M3pNMTQuNjE4IDUuNDM1SDYuNDVhLjMyNi4zMjYgMCAwIDEgMC0uNjUyaDguMTY3YS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjE4LjcwOUguMzI2YS4zMjYuMzI2IDAgMCAxIDAtLjY1MmgxNC4yOTJhLjMyNi4zMjYgMCAwIDEgMCAuNjUyeiIvPjwvZz48L3N2Zz4=",className:void 0,title:void 0},justify:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNjIgMTQuODg4SC4zMjVhLjMyNi4zMjYgMCAwIDEgMC0uNjUySDE0LjYyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjIgMTAuMTYySC4zMjVhLjMyNi4zMjYgMCAwIDEgMC0uNjUySDE0LjYyYS4zMjYuMzI2IDAgMCAxIDAgLjY1MnpNMTQuNjIgNS40MzZILjMyNWEuMzI2LjMyNiAwIDAgMSAwLS42NTJIMTQuNjJhLjMyNi4zMjYgMCAwIDEgMCAuNjUyek0xNC42Mi43MUguMzI1YS4zMjYuMzI2IDAgMCAxIDAtLjY1M0gxNC42MmEuMzI2LjMyNiAwIDAgMSAwIC42NTN6Ii8+PC9nPjwvc3ZnPg==",className:void 0,title:void 0},title:void 0},colorPicker:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNDA2LjU4NWExLjk5OCAxLjk5OCAwIDAgMC0yLjgyNSAwbC0uNTQuNTRhLjc0MS43NDEgMCAxIDAtMS4wNDggMS4wNDhsLjE3NS4xNzUtNS44MjYgNS44MjUtMi4wMjIgMi4wMjNhLjkxLjkxIDAgMCAwLS4yNjYuNjAybC0uMDA1LjEwOHYuMDAybC0uMDgxIDEuODI5YS4zMDIuMzAyIDAgMCAwIC4zMDIuMzE2aC4wMTNsLjk3LS4wNDQuNTkyLS4wMjYuMjY4LS4wMTJjLjI5Ny0uMDEzLjU3OS0uMTM3Ljc5LS4zNDdsNy43Ny03Ljc3LjE0Ni4xNDRhLjc0Ljc0IDAgMCAwIDEuMDQ4IDBjLjI5LS4yOS4yOS0uNzU5IDAtMS4wNDhsLjU0LS41NGMuNzgtLjc4Ljc4LTIuMDQ0IDAtMi44MjV6TTguNzk1IDcuMzMzbC0yLjczLjUxNSA0LjQ1Mi00LjQ1MiAxLjEwOCAxLjEwNy0yLjgzIDIuODN6TTIuMDggMTMuNjczYy0xLjE0OCAwLTIuMDguMjk1LTIuMDguNjYgMCAuMzYzLjkzMi42NTggMi4wOC42NTggMS4xNSAwIDIuMDgtLjI5NCAyLjA4LS42NTkgMC0uMzY0LS45My0uNjU5LTIuMDgtLjY1OXoiLz48L2c+PC9zdmc+",className:void 0,component:void 0,popupClassName:void 0,colors:["rgb(97,189,109)","rgb(26,188,156)","rgb(84,172,210)","rgb(44,130,201)","rgb(147,101,184)","rgb(71,85,119)","rgb(204,204,204)","rgb(65,168,95)","rgb(0,168,133)","rgb(61,142,185)","rgb(41,105,176)","rgb(85,57,130)","rgb(40,50,78)","rgb(0,0,0)","rgb(247,218,100)","rgb(251,160,38)","rgb(235,107,86)","rgb(226,80,65)","rgb(163,143,132)","rgb(239,239,239)","rgb(255,255,255)","rgb(250,197,28)","rgb(243,121,52)","rgb(209,72,65)","rgb(184,49,47)","rgb(124,112,107)","rgb(209,213,216)"],title:void 0},link:{inDropdown:!1,className:void 0,component:void 0,popupClassName:void 0,dropdownClassName:void 0,showOpenOptionOnHover:!0,defaultTargetOption:"_self",options:["link","unlink"],link:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEzLjk2Ny45NUEzLjIyNiAzLjIyNiAwIDAgMCAxMS42Ny4wMDJjLS44NyAwLTEuNjg2LjMzNy0yLjI5Ny45NDhMNy4xMDUgMy4yMThBMy4yNDcgMy4yNDcgMCAwIDAgNi4yNCA2LjI0YTMuMjI1IDMuMjI1IDAgMCAwLTMuMDIyLjg2NUwuOTUgOS4zNzNhMy4yNTMgMy4yNTMgMCAwIDAgMCA0LjU5NCAzLjIyNiAzLjIyNiAwIDAgMCAyLjI5Ny45NDhjLjg3IDAgMS42ODYtLjMzNiAyLjI5OC0uOTQ4TDcuODEyIDExLjdhMy4yNDcgMy4yNDcgMCAwIDAgLjg2NS0zLjAyMyAzLjIyNSAzLjIyNSAwIDAgMCAzLjAyMi0uODY1bDIuMjY4LTIuMjY3YTMuMjUyIDMuMjUyIDAgMCAwIDAtNC41OTV6TTcuMTA1IDEwLjk5M0w0LjgzNyAxMy4yNmEyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LjY1NSAyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LS42NTUgMi4yNTIgMi4yNTIgMCAwIDEgMC0zLjE4bDIuMjY4LTIuMjY4YTIuMjMyIDIuMjMyIDAgMCAxIDEuNTktLjY1NWMuNDMgMCAuODQxLjEyIDEuMTk1LjM0M0w0Ljc3MiA5LjQzOGEuNS41IDAgMSAwIC43MDcuNzA3bDEuOTM5LTEuOTM4Yy41NDUuODY4LjQ0MiAyLjAzLS4zMTMgMi43ODV6bTYuMTU1LTYuMTU1bC0yLjI2OCAyLjI2N2EyLjIzMyAyLjIzMyAwIDAgMS0xLjU5LjY1NWMtLjQzMSAwLS44NDEtLjEyLTEuMTk1LS4zNDNsMS45MzgtMS45MzhhLjUuNSAwIDEgMC0uNzA3LS43MDdMNy40OTkgNi43MWEyLjI1MiAyLjI1MiAwIDAgMSAuMzEzLTIuNzg1bDIuMjY3LTIuMjY4YTIuMjMzIDIuMjMzIDAgMCAxIDEuNTktLjY1NSAyLjIzMyAyLjIzMyAwIDAgMSAyLjI0NiAyLjI0NWMwIC42MDMtLjIzMiAxLjE2OC0uNjU1IDEuNTl6IiBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",className:void 0,title:void 0},unlink:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTMuOTU2IDEuMDM3YTMuNTUgMy41NSAwIDAgMC01LjAxNCAwTDYuNDM2IDMuNTQ0YS41NDUuNTQ1IDAgMSAwIC43Ny43N2wyLjUwOC0yLjUwNmEyLjQzOCAyLjQzOCAwIDAgMSAxLjczNS0uNzE1Yy42NTggMCAxLjI3NS4yNTQgMS43MzYuNzE1LjQ2LjQ2MS43MTUgMS4wNzguNzE1IDEuNzM2IDAgLjY1OC0uMjU0IDEuMjc0LS43MTUgMS43MzVMOS45MDcgOC41NThhMi40NTggMi40NTggMCAwIDEtMy40NzIgMCAuNTQ1LjU0NSAwIDEgMC0uNzcxLjc3MSAzLjUzNCAzLjUzNCAwIDAgMCAyLjUwNyAxLjAzN2MuOTA4IDAgMS44MTYtLjM0NiAyLjUwNy0xLjAzN2wzLjI3OC0zLjI3OGEzLjUyIDMuNTIgMCAwIDAgMS4wMzUtMi41MDdjMC0uOTUtLjM2Ny0xLjg0LTEuMDM1LTIuNTA3eiIvPjxwYXRoIGQ9Ik03LjQgMTEuMDY1bC0yLjEyMiAyLjEyYTIuNDM3IDIuNDM3IDAgMCAxLTEuNzM1LjcxNiAyLjQzNyAyLjQzNyAwIDAgMS0xLjczNi0uNzE1IDIuNDU3IDIuNDU3IDAgMCAxIDAtMy40NzFsMy4wODYtMy4wODZhMi40MzggMi40MzggMCAwIDEgMS43MzUtLjcxNWMuNjU4IDAgMS4yNzUuMjU0IDEuNzM2LjcxNWEuNTQ1LjU0NSAwIDEgMCAuNzcxLS43NzEgMy41NSAzLjU1IDAgMCAwLTUuMDE0IDBMMS4wMzYgOC45NDRBMy41MiAzLjUyIDAgMCAwIDAgMTEuNDVjMCAuOTUuMzY3IDEuODQgMS4wMzUgMi41MDdhMy41MiAzLjUyIDAgMCAwIDIuNTA2IDEuMDM1Yy45NSAwIDEuODQtLjM2OCAyLjUwNy0xLjAzNWwyLjEyMi0yLjEyMWEuNTQ1LjU0NSAwIDAgMC0uNzcxLS43NzF6TTkuMjc0IDEyLjAwMmEuNTQ2LjU0NiAwIDAgMC0uNTQ2LjU0NXYxLjYzN2EuNTQ2LjU0NiAwIDAgMCAxLjA5MSAwdi0xLjYzN2EuNTQ1LjU0NSAwIDAgMC0uNTQ1LS41NDV6TTExLjIzIDExLjYxNmEuNTQ1LjU0NSAwIDEgMC0uNzcyLjc3MmwxLjE1NyAxLjE1NmEuNTQzLjU0MyAwIDAgMCAuNzcxIDAgLjU0NS41NDUgMCAwIDAgMC0uNzdsLTEuMTU2LTEuMTU4ek0xMi41MzcgOS44MkgxMC45YS41NDYuNTQ2IDAgMCAwIDAgMS4wOTFoMS42MzdhLjU0Ni41NDYgMCAwIDAgMC0xLjA5ek00LjkxIDMuNTQ3YS41NDYuNTQ2IDAgMCAwIC41NDUtLjU0NVYxLjM2NmEuNTQ2LjU0NiAwIDAgMC0xLjA5IDB2MS42MzZjMCAuMzAxLjI0NC41NDUuNTQ1LjU0NXpNMi44ODggMy45MzNhLjU0My41NDMgMCAwIDAgLjc3MSAwIC41NDUuNTQ1IDAgMCAwIDAtLjc3MUwyLjUwMiAyLjAwNWEuNTQ1LjU0NSAwIDEgMC0uNzcxLjc3bDEuMTU3IDEuMTU4ek0xLjYyOCA1LjczaDEuNjM2YS41NDYuNTQ2IDAgMCAwIDAtMS4wOTJIMS42MjhhLjU0Ni41NDYgMCAwIDAgMCAxLjA5MXoiLz48L2c+PC9zdmc+",className:void 0,title:void 0},linkCallback:void 0},emoji:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIHZpZXdCb3g9IjE1LjcyOSAyMi4wODIgMTcgMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTI5LjcwOCAyNS4xMDRjLTMuMDIxLTMuMDIyLTcuOTM3LTMuMDIyLTEwLjk1OCAwLTMuMDIxIDMuMDItMy4wMiA3LjkzNiAwIDEwLjk1OCAzLjAyMSAzLjAyIDcuOTM3IDMuMDIgMTAuOTU4LS4wMDEgMy4wMi0zLjAyMSAzLjAyLTcuOTM2IDAtMTAuOTU3em0tLjg0NSAxMC4xMTJhNi41NiA2LjU2IDAgMCAxLTkuMjY4IDAgNi41NiA2LjU2IDAgMCAxIDAtOS4yNjcgNi41NiA2LjU2IDAgMCAxIDkuMjY4IDAgNi41NiA2LjU2IDAgMCAxIDAgOS4yNjd6bS03LjUyNC02LjczYS45MDYuOTA2IDAgMSAxIDEuODExIDAgLjkwNi45MDYgMCAwIDEtMS44MTEgMHptNC4xMDYgMGEuOTA2LjkwNiAwIDEgMSAxLjgxMiAwIC45MDYuOTA2IDAgMCAxLTEuODEyIDB6bTIuMTQxIDMuNzA4Yy0uNTYxIDEuMjk4LTEuODc1IDIuMTM3LTMuMzQ4IDIuMTM3LTEuNTA1IDAtMi44MjctLjg0My0zLjM2OS0yLjE0N2EuNDM4LjQzOCAwIDAgMSAuODEtLjMzNmMuNDA1Ljk3NiAxLjQxIDEuNjA3IDIuNTU5IDEuNjA3IDEuMTIzIDAgMi4xMjEtLjYzMSAyLjU0NC0xLjYwOGEuNDM4LjQzOCAwIDAgMSAuODA0LjM0N3oiLz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,emojis:["😀","😁","😂","😃","😉","😋","😎","😍","😗","🤗","🤔","😣","😫","😴","😌","🤓","😛","😜","😠","😇","😷","😈","👻","😺","😸","😹","😻","😼","😽","🙀","🙈","🙉","🙊","👼","👮","🕵","💂","👳","🎅","👸","👰","👲","🙍","🙇","🚶","🏃","💃","⛷","🏂","🏌","🏄","🚣","🏊","⛹","🏋","🚴","👫","💪","👈","👉","👆","🖕","👇","🖖","🤘","🖐","👌","👍","👎","✊","👊","👏","🙌","🙏","🐵","🐶","🐇","🐥","🐸","🐌","🐛","🐜","🐝","🍉","🍄","🍔","🍤","🍨","🍪","🎂","🍰","🍾","🍷","🍸","🍺","🌍","🚑","⏰","🌙","🌝","🌞","⭐","🌟","🌠","🌨","🌩","⛄","🔥","🎄","🎈","🎉","🎊","🎁","🎗","🏀","🏈","🎲","🔇","🔈","📣","🔔","🎵","🎷","💰","🖊","📅","✅","❎","💯"],title:void 0},embedded:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNzA4IDYuNjE1YS40MzYuNDM2IDAgMCAwLS41NDMuMjkxbC0xLjgzIDYuMDQ1YS40MzYuNDM2IDAgMCAwIC44MzMuMjUyTDcgNy4xNmEuNDM2LjQzNiAwIDAgMC0uMjktLjU0NHpNOC45MzEgNi42MTVhLjQzNi40MzYgMCAwIDAtLjU0My4yOTFsLTEuODMgNi4wNDVhLjQzNi40MzYgMCAwIDAgLjgzNC4yNTJsMS44My02LjA0NGEuNDM2LjQzNiAwIDAgMC0uMjktLjU0NHoiLz48cGF0aCBkPSJNMTYuNTY0IDBILjQzNkEuNDM2LjQzNiAwIDAgMCAwIC40MzZ2MTYuMTI4YzAgLjI0LjE5NS40MzYuNDM2LjQzNmgxNi4xMjhjLjI0IDAgLjQzNi0uMTk1LjQzNi0uNDM2Vi40MzZBLjQzNi40MzYgMCAwIDAgMTYuNTY0IDB6TTMuNDg3Ljg3MmgxMC4wMjZ2MS43NDNIMy40ODdWLjg3MnptLTIuNjE1IDBoMS43NDN2MS43NDNILjg3MlYuODcyem0xNS4yNTYgMTUuMjU2SC44NzJWMy40ODhoMTUuMjU2djEyLjY0em0wLTEzLjUxM2gtMS43NDNWLjg3MmgxLjc0M3YxLjc0M3oiLz48Y2lyY2xlIGN4PSI5My44NjciIGN5PSIyNDUuMDY0IiByPSIxMy4xMjgiIHRyYW5zZm9ybT0ibWF0cml4KC4wMzMyIDAgMCAuMDMzMiAwIDApIi8+PGNpcmNsZSBjeD0iOTMuODY3IiBjeT0iMzYwLjU5MiIgcj0iMTMuMTI4IiB0cmFuc2Zvcm09Im1hdHJpeCguMDMzMiAwIDAgLjAzMzIgMCAwKSIvPjxwYXRoIGQ9Ik0xNC4yNTQgMTIuNjQxSDEwLjJhLjQzNi40MzYgMCAwIDAgMCAuODcyaDQuMDU0YS40MzYuNDM2IDAgMCAwIDAtLjg3MnoiLz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,embedCallback:void 0,defaultSize:{height:"auto",width:"auto"},title:void 0},image:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTQuNzQxIDBILjI2Qy4xMTYgMCAwIC4xMzYgMCAuMzA0djEzLjM5MmMwIC4xNjguMTE2LjMwNC4yNTkuMzA0SDE0Ljc0Yy4xNDMgMCAuMjU5LS4xMzYuMjU5LS4zMDRWLjMwNEMxNSAuMTM2IDE0Ljg4NCAwIDE0Ljc0MSAwem0tLjI1OCAxMy4zOTFILjUxN1YuNjFoMTMuOTY2VjEzLjM5eiIvPjxwYXRoIGQ9Ik00LjEzOCA2LjczOGMuNzk0IDAgMS40NC0uNzYgMS40NC0xLjY5NXMtLjY0Ni0xLjY5NS0xLjQ0LTEuNjk1Yy0uNzk0IDAtMS40NC43Ni0xLjQ0IDEuNjk1IDAgLjkzNC42NDYgMS42OTUgMS40NCAxLjY5NXptMC0yLjc4MWMuNTA5IDAgLjkyMy40ODcuOTIzIDEuMDg2IDAgLjU5OC0uNDE0IDEuMDg2LS45MjMgMS4wODYtLjUwOSAwLS45MjMtLjQ4Ny0uOTIzLTEuMDg2IDAtLjU5OS40MTQtMS4wODYuOTIzLTEuMDg2ek0xLjgxIDEyLjE3NGMuMDYgMCAuMTIyLS4wMjUuMTcxLS4wNzZMNi4yIDcuNzI4bDIuNjY0IDMuMTM0YS4yMzIuMjMyIDAgMCAwIC4zNjYgMCAuMzQzLjM0MyAwIDAgMCAwLS40M0w3Ljk4NyA4Ljk2OWwyLjM3NC0zLjA2IDIuOTEyIDMuMTQyYy4xMDYuMTEzLjI3LjEwNS4zNjYtLjAyYS4zNDMuMzQzIDAgMCAwLS4wMTYtLjQzbC0zLjEwNC0zLjM0N2EuMjQ0LjI0NCAwIDAgMC0uMTg2LS4wOC4yNDUuMjQ1IDAgMCAwLS4xOC4xTDcuNjIyIDguNTM3IDYuMzk0IDcuMDk0YS4yMzIuMjMyIDAgMCAwLS4zNTQtLjAxM2wtNC40IDQuNTZhLjM0My4zNDMgMCAwIDAtLjAyNC40My4yNDMuMjQzIDAgMCAwIC4xOTQuMTAzeiIvPjwvZz48L3N2Zz4=",className:void 0,component:void 0,popupClassName:void 0,urlEnabled:!0,uploadEnabled:!0,previewImage:!1,alignmentEnabled:!0,uploadCallback:void 0,inputAccept:"image/gif,image/jpeg,image/jpg,image/png,image/svg",alt:{present:!1,mandatory:!1},defaultSize:{height:"auto",width:"auto"},title:void 0},remove:{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIxNSIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBkPSJNOC4xIDE0bDYuNC03LjJjLjYtLjcuNi0xLjgtLjEtMi41bC0yLjctMi43Yy0uMy0uNC0uOC0uNi0xLjMtLjZIOC42Yy0uNSAwLTEgLjItMS40LjZMLjUgOS4yYy0uNi43LS42IDEuOS4xIDIuNWwyLjcgMi43Yy4zLjQuOC42IDEuMy42SDE2di0xSDguMXptLTEuMy0uMXMwLS4xIDAgMGwtMi43LTIuN2MtLjQtLjQtLjQtLjkgMC0xLjNMNy41IDZoLTFsLTMgMy4zYy0uNi43LS42IDEuNy4xIDIuNEw1LjkgMTRINC42Yy0uMiAwLS40LS4xLS42LS4yTDEuMiAxMWMtLjMtLjMtLjMtLjggMC0xLjFMNC43IDZoMS44TDEwIDJoMUw3LjUgNmwzLjEgMy43LTMuNSA0Yy0uMS4xLS4yLjEtLjMuMnoiLz48L3N2Zz4=",className:void 0,component:void 0,title:void 0},history:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["undo","redo"],undo:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcgMTQuODc1YzIuNjcyIDAgNC44NDYtMi4xNDUgNC44NDYtNC43ODEgMC0yLjYzNy0yLjE3NC00Ljc4MS00Ljg0Ni00Ljc4MVY4LjVMMS42MTUgNC4yNSA3IDB2My4xODhjMy44NiAwIDcgMy4wOTggNyA2LjkwNlMxMC44NiAxNyA3IDE3cy03LTMuMDk4LTctNi45MDZoMi4xNTRjMCAyLjYzNiAyLjE3NCA0Ljc4MSA0Ljg0NiA0Ljc4MXoiIGZpbGw9IiMwMDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==",className:void 0,title:void 0},redo:{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNTA0IDEzLjk3N2E0LjQ5NyA0LjQ5NyAwIDAgMS00LjQ5Mi00LjQ5MiA0LjQ5NyA0LjQ5NyAwIDAgMSA0LjQ5Mi00LjQ5M3YyLjk5NWw0Ljk5LTMuOTkzTDYuNTA0IDB2Mi45OTVhNi40OTYgNi40OTYgMCAwIDAtNi40ODggNi40OWMwIDMuNTc4IDIuOTEgNi40OSA2LjQ4OCA2LjQ5YTYuNDk2IDYuNDk2IDAgMCAwIDYuNDg3LTYuNDloLTEuOTk2YTQuNDk3IDQuNDk3IDAgMCAxLTQuNDkxIDQuNDkyeiIgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+",className:void 0,title:void 0},title:void 0}},ur={en:{"generic.add":"Add","generic.cancel":"Cancel","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Block Type","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Color Picker","components.controls.colorpicker.text":"Text","components.controls.colorpicker.background":"Highlight","components.controls.embedded.embedded":"Embedded","components.controls.embedded.embeddedlink":"Embedded Link","components.controls.embedded.enterlink":"Enter link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Font","components.controls.fontsize.fontsize":"Font Size","components.controls.history.history":"History","components.controls.history.undo":"Undo","components.controls.history.redo":"Redo","components.controls.image.image":"Image","components.controls.image.fileUpload":"File Upload","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop the file or click to upload","components.controls.inline.bold":"Bold","components.controls.inline.italic":"Italic","components.controls.inline.underline":"Underline","components.controls.inline.strikethrough":"Strikethrough","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Superscript","components.controls.inline.subscript":"Subscript","components.controls.link.linkTitle":"Link Title","components.controls.link.linkTarget":"Link Target","components.controls.link.linkTargetOption":"Open link in new window","components.controls.link.link":"Link","components.controls.link.unlink":"Unlink","components.controls.list.list":"List","components.controls.list.unordered":"Unordered","components.controls.list.ordered":"Ordered","components.controls.list.indent":"Indent","components.controls.list.outdent":"Outdent","components.controls.remove.remove":"Remove","components.controls.textalign.textalign":"Text Align","components.controls.textalign.left":"Left","components.controls.textalign.center":"Center","components.controls.textalign.right":"Right","components.controls.textalign.justify":"Justify"},fr:{"generic.add":"Ok","generic.cancel":"Annuler","components.controls.blocktype.h1":"Titre 1","components.controls.blocktype.h2":"Titre 2","components.controls.blocktype.h3":"Titre 3","components.controls.blocktype.h4":"Titre 4","components.controls.blocktype.h5":"Titre 5","components.controls.blocktype.h6":"Titre 6","components.controls.blocktype.blockquote":"Citation","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Type bloc","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Palette de couleur","components.controls.colorpicker.text":"Texte","components.controls.colorpicker.background":"Fond","components.controls.embedded.embedded":"Embedded","components.controls.embedded.embeddedlink":"Lien iFrame","components.controls.embedded.enterlink":"Entrer le lien","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Police","components.controls.fontsize.fontsize":"Taille de police","components.controls.history.history":"Historique","components.controls.history.undo":"Précédent","components.controls.history.redo":"Suivant","components.controls.image.image":"Image","components.controls.image.fileUpload":"Téléchargement","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Glisser une image ou cliquer pour télécharger","components.controls.inline.bold":"Gras","components.controls.inline.italic":"Italique","components.controls.inline.underline":"Souligner","components.controls.inline.strikethrough":"Barrer","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Exposant","components.controls.inline.subscript":"Indice","components.controls.link.linkTitle":"Titre du lien","components.controls.link.linkTarget":"Cible du lien","components.controls.link.linkTargetOption":"Ouvrir le lien dans une nouvelle fenêtre","components.controls.link.link":"Lier","components.controls.link.unlink":"Délier","components.controls.list.list":"Liste","components.controls.list.unordered":"Désordonnée","components.controls.list.ordered":"Ordonnée","components.controls.list.indent":"Augmenter le retrait","components.controls.list.outdent":"Diminuer le retrait","components.controls.remove.remove":"Supprimer","components.controls.textalign.textalign":"Alignement du texte","components.controls.textalign.left":"Gauche","components.controls.textalign.center":"Centre","components.controls.textalign.right":"Droite","components.controls.textalign.justify":"Justifier"},zh:{"generic.add":"添加","generic.cancel":"取消","components.controls.blocktype.h1":"标题1","components.controls.blocktype.h2":"标题2","components.controls.blocktype.h3":"标题3","components.controls.blocktype.h4":"标题4","components.controls.blocktype.h5":"标题5","components.controls.blocktype.h6":"标题6","components.controls.blocktype.blockquote":"引用","components.controls.blocktype.code":"源码","components.controls.blocktype.blocktype":"样式","components.controls.blocktype.normal":"正文","components.controls.colorpicker.colorpicker":"选色器","components.controls.colorpicker.text":"文字","components.controls.colorpicker.background":"背景","components.controls.embedded.embedded":"内嵌","components.controls.embedded.embeddedlink":"内嵌网页","components.controls.embedded.enterlink":"输入网页地址","components.controls.emoji.emoji":"表情符号","components.controls.fontfamily.fontfamily":"字体","components.controls.fontsize.fontsize":"字号","components.controls.history.history":"历史","components.controls.history.undo":"撤销","components.controls.history.redo":"恢复","components.controls.image.image":"图片","components.controls.image.fileUpload":"来自文件","components.controls.image.byURL":"在线图片","components.controls.image.dropFileText":"点击或者拖拽文件上传","components.controls.inline.bold":"粗体","components.controls.inline.italic":"斜体","components.controls.inline.underline":"下划线","components.controls.inline.strikethrough":"删除线","components.controls.inline.monospace":"等宽字体","components.controls.inline.superscript":"上标","components.controls.inline.subscript":"下标","components.controls.link.linkTitle":"超链接","components.controls.link.linkTarget":"输入链接地址","components.controls.link.linkTargetOption":"在新窗口中打开链接","components.controls.link.link":"链接","components.controls.link.unlink":"删除链接","components.controls.list.list":"列表","components.controls.list.unordered":"项目符号","components.controls.list.ordered":"编号","components.controls.list.indent":"增加缩进量","components.controls.list.outdent":"减少缩进量","components.controls.remove.remove":"清除格式","components.controls.textalign.textalign":"文本对齐","components.controls.textalign.left":"文本左对齐","components.controls.textalign.center":"居中","components.controls.textalign.right":"文本右对齐","components.controls.textalign.justify":"两端对齐"},ru:{"generic.add":"Добавить","generic.cancel":"Отменить","components.controls.blocktype.h1":"Заголовок 1","components.controls.blocktype.h2":"Заголовок 2","components.controls.blocktype.h3":"Заголовок 3","components.controls.blocktype.h4":"Заголовок 4","components.controls.blocktype.h5":"Заголовок 5","components.controls.blocktype.h6":"Заголовок 6","components.controls.blocktype.blockquote":"Цитата","components.controls.blocktype.code":"Код","components.controls.blocktype.blocktype":"Форматирование","components.controls.blocktype.normal":"Обычный","components.controls.colorpicker.colorpicker":"Выбор цвета","components.controls.colorpicker.text":"Текст","components.controls.colorpicker.background":"Фон","components.controls.embedded.embedded":"Встраивание","components.controls.embedded.embeddedlink":"Ссылка в iFrame","components.controls.embedded.enterlink":"Вставьте ссылку","components.controls.emoji.emoji":"Эмодзи","components.controls.fontfamily.fontfamily":"Шрифт","components.controls.fontsize.fontsize":"Размер шрифта","components.controls.history.history":"История","components.controls.history.undo":"Отменить","components.controls.history.redo":"Вернуть","components.controls.image.image":"Изображение","components.controls.image.fileUpload":"Файлы","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Переместите в эту область файлы или кликните для загрузки","components.controls.inline.bold":"Жирный","components.controls.inline.italic":"Курсив","components.controls.inline.underline":"Подчеркивание","components.controls.inline.strikethrough":"Зачеркивание","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Верхний индекс","components.controls.inline.subscript":"Нижний индекс","components.controls.link.linkTitle":"Текст","components.controls.link.linkTarget":"Адрес ссылки","components.controls.link.linkTargetOption":"Открывать в новом окне","components.controls.link.link":"Ссылка","components.controls.link.unlink":"Убрать ссылку","components.controls.list.list":"Список","components.controls.list.unordered":"Неупорядоченный","components.controls.list.ordered":"Упорядоченный","components.controls.list.indent":"Отступ","components.controls.list.outdent":"Выступ","components.controls.remove.remove":"Удалить","components.controls.textalign.textalign":"Выравнивание текста","components.controls.textalign.left":"Слева","components.controls.textalign.center":"По центру","components.controls.textalign.right":"Справа","components.controls.textalign.justify":"Выравнить"},pt:{"generic.add":"Ok","generic.cancel":"Cancelar","components.controls.blocktype.h1":"Título 1","components.controls.blocktype.h2":"Título 2","components.controls.blocktype.h3":"Título 3","components.controls.blocktype.h4":"Título 4","components.controls.blocktype.h5":"Título 5","components.controls.blocktype.h6":"Título 6","components.controls.blocktype.blockquote":"Citação","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Estilo","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Paleta de cores","components.controls.colorpicker.text":"Texto","components.controls.colorpicker.background":"Fundo","components.controls.embedded.embedded":"Embarcado","components.controls.embedded.embeddedlink":"Link embarcado","components.controls.embedded.enterlink":"Coloque o link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fonte","components.controls.fontsize.fontsize":"Tamanho da Fonte","components.controls.history.history":"Histórico","components.controls.history.undo":"Desfazer","components.controls.history.redo":"Refazer","components.controls.image.image":"Imagem","components.controls.image.fileUpload":"Carregar arquivo","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Arraste uma imagem aqui ou clique para carregar","components.controls.inline.bold":"Negrito","components.controls.inline.italic":"Itálico","components.controls.inline.underline":"Sublinhado","components.controls.inline.strikethrough":"Strikethrough","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Sobrescrito","components.controls.inline.subscript":"Subscrito","components.controls.link.linkTitle":"Título do link","components.controls.link.linkTarget":"Alvo do link","components.controls.link.linkTargetOption":"Abrir link em outra janela","components.controls.link.link":"Adicionar Link","components.controls.link.unlink":"Remover link","components.controls.list.list":"Lista","components.controls.list.unordered":"Sem ordenção","components.controls.list.ordered":"Ordenada","components.controls.list.indent":"Aumentar recuo","components.controls.list.outdent":"Diminuir recuo","components.controls.remove.remove":"Remover","components.controls.textalign.textalign":"Alinhamento do texto","components.controls.textalign.left":"À Esquerda","components.controls.textalign.center":"Centralizado","components.controls.textalign.right":"À Direita","components.controls.textalign.justify":"Justificado"},ko:{"generic.add":"입력","generic.cancel":"취소","components.controls.blocktype.h1":"제목1","components.controls.blocktype.h2":"제목2","components.controls.blocktype.h3":"제목3","components.controls.blocktype.h4":"제목4","components.controls.blocktype.h5":"제목5","components.controls.blocktype.h6":"제목6","components.controls.blocktype.blockquote":"인용","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"블록","components.controls.blocktype.normal":"표준","components.controls.colorpicker.colorpicker":"색상 선택","components.controls.colorpicker.text":"글꼴색","components.controls.colorpicker.background":"배경색","components.controls.embedded.embedded":"임베드","components.controls.embedded.embeddedlink":"임베드 링크","components.controls.embedded.enterlink":"주소를 입력하세요","components.controls.emoji.emoji":"이모지","components.controls.fontfamily.fontfamily":"글꼴","components.controls.fontsize.fontsize":"글꼴 크기","components.controls.history.history":"히스토리","components.controls.history.undo":"실행 취소","components.controls.history.redo":"다시 실행","components.controls.image.image":"이미지","components.controls.image.fileUpload":"파일 업로드","components.controls.image.byURL":"주소","components.controls.image.dropFileText":"클릭하거나 파일을 드롭하여 업로드하세요","components.controls.inline.bold":"굵게","components.controls.inline.italic":"기울임꼴","components.controls.inline.underline":"밑줄","components.controls.inline.strikethrough":"취소선","components.controls.inline.monospace":"고정 너비","components.controls.inline.superscript":"위 첨자","components.controls.inline.subscript":"아래 첨자","components.controls.link.linkTitle":"링크 제목","components.controls.link.linkTarget":"링크 타겟","components.controls.link.linkTargetOption":"새창으로 열기","components.controls.link.link":"링크","components.controls.link.unlink":"링크 제거","components.controls.list.list":"리스트","components.controls.list.unordered":"일반 리스트","components.controls.list.ordered":"순서 리스트","components.controls.list.indent":"들여쓰기","components.controls.list.outdent":"내어쓰기","components.controls.remove.remove":"삭제","components.controls.textalign.textalign":"텍스트 정렬","components.controls.textalign.left":"왼쪽","components.controls.textalign.center":"중앙","components.controls.textalign.right":"오른쪽","components.controls.textalign.justify":"양쪽"},it:{"generic.add":"Aggiungi","generic.cancel":"Annulla","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Citazione","components.controls.blocktype.code":"Codice","components.controls.blocktype.blocktype":"Stili","components.controls.blocktype.normal":"Normale","components.controls.colorpicker.colorpicker":"Colore testo","components.controls.colorpicker.text":"Testo","components.controls.colorpicker.background":"Evidenziazione","components.controls.embedded.embedded":"Incorpora","components.controls.embedded.embeddedlink":"Incorpora link","components.controls.embedded.enterlink":"Inserisci link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Carattere","components.controls.fontsize.fontsize":"Dimensione carattere","components.controls.history.history":"Modifiche","components.controls.history.undo":"Annulla","components.controls.history.redo":"Ripristina","components.controls.image.image":"Immagine","components.controls.image.fileUpload":"Carica immagine","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Trascina il file o clicca per caricare","components.controls.inline.bold":"Grassetto","components.controls.inline.italic":"Corsivo","components.controls.inline.underline":"Sottolineato","components.controls.inline.strikethrough":"Barrato","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Apice","components.controls.inline.subscript":"Pedice","components.controls.link.linkTitle":"Testo","components.controls.link.linkTarget":"Link","components.controls.link.linkTargetOption":"Apri link in una nuova finestra","components.controls.link.link":"Inserisci link","components.controls.link.unlink":"Rimuovi link","components.controls.list.list":"Lista","components.controls.list.unordered":"Elenco puntato","components.controls.list.ordered":"Elenco numerato","components.controls.list.indent":"Indent","components.controls.list.outdent":"Outdent","components.controls.remove.remove":"Rimuovi formattazione","components.controls.textalign.textalign":"Allineamento del testo","components.controls.textalign.left":"Allinea a sinistra","components.controls.textalign.center":"Allinea al centro","components.controls.textalign.right":"Allinea a destra","components.controls.textalign.justify":"Giustifica"},nl:{"generic.add":"Toevoegen","generic.cancel":"Annuleren","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Code","components.controls.blocktype.blocktype":"Blocktype","components.controls.blocktype.normal":"Normaal","components.controls.colorpicker.colorpicker":"Kleurkiezer","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Achtergrond","components.controls.embedded.embedded":"Ingevoegd","components.controls.embedded.embeddedlink":"Ingevoegde link","components.controls.embedded.enterlink":"Voeg link toe","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Lettertype","components.controls.fontsize.fontsize":"Lettergrootte","components.controls.history.history":"Geschiedenis","components.controls.history.undo":"Ongedaan maken","components.controls.history.redo":"Opnieuw","components.controls.image.image":"Afbeelding","components.controls.image.fileUpload":"Bestand uploaden","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop het bestand hier of klik om te uploaden","components.controls.inline.bold":"Dikgedrukt","components.controls.inline.italic":"Schuingedrukt","components.controls.inline.underline":"Onderstrepen","components.controls.inline.strikethrough":"Doorstrepen","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Superscript","components.controls.inline.subscript":"Subscript","components.controls.link.linkTitle":"Linktitel","components.controls.link.linkTarget":"Link bestemming","components.controls.link.linkTargetOption":"Open link in een nieuw venster","components.controls.link.link":"Link","components.controls.link.unlink":"Unlink","components.controls.list.list":"Lijst","components.controls.list.unordered":"Ongeordend","components.controls.list.ordered":"Geordend","components.controls.list.indent":"Inspringen","components.controls.list.outdent":"Inspringen verkleinen","components.controls.remove.remove":"Verwijderen","components.controls.textalign.textalign":"Tekst uitlijnen","components.controls.textalign.left":"Links","components.controls.textalign.center":"Gecentreerd","components.controls.textalign.right":"Rechts","components.controls.textalign.justify":"Uitgelijnd"},de:{"generic.add":"Hinzufügen","generic.cancel":"Abbrechen","components.controls.blocktype.h1":"Überschrift 1","components.controls.blocktype.h2":"Überschrift 2","components.controls.blocktype.h3":"Überschrift 3","components.controls.blocktype.h4":"Überschrift 4","components.controls.blocktype.h5":"Überschrift 5","components.controls.blocktype.h6":"Überschrift 6","components.controls.blocktype.blockquote":"Zitat","components.controls.blocktype.code":"Quellcode","components.controls.blocktype.blocktype":"Blocktyp","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Farbauswahl","components.controls.colorpicker.text":"Text","components.controls.colorpicker.background":"Hintergrund","components.controls.embedded.embedded":"Eingebettet","components.controls.embedded.embeddedlink":"Eingebetteter Link","components.controls.embedded.enterlink":"Link eingeben","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Schriftart","components.controls.fontsize.fontsize":"Schriftgröße","components.controls.history.history":"Historie","components.controls.history.undo":"Zurücknehmen","components.controls.history.redo":"Wiederholen","components.controls.image.image":"Bild","components.controls.image.fileUpload":"Datei-Upload","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Dateien ziehen und ablegen, oder klicken zum Hochladen","components.controls.inline.bold":"Fett","components.controls.inline.italic":"Kursiv","components.controls.inline.underline":"Unterstreichen","components.controls.inline.strikethrough":"Durchstreichen","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Hochgestellt","components.controls.inline.subscript":"Tiefgestellt","components.controls.link.linkTitle":"Link-Titel","components.controls.link.linkTarget":"Link-Ziel","components.controls.link.linkTargetOption":"Link in neuem Fenster öffnen","components.controls.link.link":"Link","components.controls.link.unlink":"Aufheben","components.controls.list.list":"Liste","components.controls.list.unordered":"Aufzählung","components.controls.list.ordered":"Nummerierte Liste","components.controls.list.indent":"Einzug vergrößern","components.controls.list.outdent":"Einzug reduzieren","components.controls.remove.remove":"Entfernen","components.controls.textalign.textalign":"Textausrichtung","components.controls.textalign.left":"Linksbündig","components.controls.textalign.center":"Zentrieren","components.controls.textalign.right":"Rechtsbündig","components.controls.textalign.justify":"Blocksatz"},da:{"generic.add":"Tilføj","generic.cancel":"Annuller","components.controls.blocktype.h1":"Overskrift 1","components.controls.blocktype.h2":"Overskrift 2","components.controls.blocktype.h3":"Overskrift 3","components.controls.blocktype.h4":"Overskrift 4","components.controls.blocktype.h5":"Overskrift 5","components.controls.blocktype.h6":"Overskrift 6","components.controls.blocktype.blockquote":"Blokcitat","components.controls.blocktype.code":"Kode","components.controls.blocktype.blocktype":"Blok Type","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Farver","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Baggrund","components.controls.embedded.embedded":"Indlejre","components.controls.embedded.embeddedlink":"Indlejre Link","components.controls.embedded.enterlink":"Indtast link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fonttype","components.controls.fontsize.fontsize":"Fontstørrelser","components.controls.history.history":"Historie","components.controls.history.undo":"Fortryd","components.controls.history.redo":"Gendan","components.controls.image.image":"Billede","components.controls.image.fileUpload":"Filoverførsel","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Drop filen eller klik for at uploade","components.controls.inline.bold":"Fed","components.controls.inline.italic":"Kursiv","components.controls.inline.underline":"Understrege","components.controls.inline.strikethrough":"Gennemstreget","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Hævet","components.controls.inline.subscript":"Sænket","components.controls.link.linkTitle":"Link Titel","components.controls.link.linkTarget":"Link Mål","components.controls.link.linkTargetOption":"Åbn link i nyt vindue","components.controls.link.link":"Link","components.controls.link.unlink":"Fjern link","components.controls.list.list":"Liste","components.controls.list.unordered":"Uordnet","components.controls.list.ordered":"Ordnet","components.controls.list.indent":"Indrykning","components.controls.list.outdent":"Udrykning","components.controls.remove.remove":"Fjern","components.controls.textalign.textalign":"Tekstjustering","components.controls.textalign.left":"Venstre","components.controls.textalign.center":"Center","components.controls.textalign.right":"Højre","components.controls.textalign.justify":"Margener"},zh_tw:{"generic.add":"新增","generic.cancel":"取消","components.controls.blocktype.h1":"標題1","components.controls.blocktype.h2":"標題2","components.controls.blocktype.h3":"標題3","components.controls.blocktype.h4":"標題4","components.controls.blocktype.h5":"標題5","components.controls.blocktype.h6":"標題6","components.controls.blocktype.blockquote":"引用","components.controls.blocktype.code":"程式碼","components.controls.blocktype.blocktype":"樣式","components.controls.blocktype.normal":"正文","components.controls.colorpicker.colorpicker":"選色器","components.controls.colorpicker.text":"文字","components.controls.colorpicker.background":"背景","components.controls.embedded.embedded":"內嵌","components.controls.embedded.embeddedlink":"內嵌網頁","components.controls.embedded.enterlink":"輸入網頁地址","components.controls.emoji.emoji":"表情符號","components.controls.fontfamily.fontfamily":"字體","components.controls.fontsize.fontsize":"字體大小","components.controls.history.history":"歷史紀錄","components.controls.history.undo":"復原","components.controls.history.redo":"重做","components.controls.image.image":"圖片","components.controls.image.fileUpload":"檔案上傳","components.controls.image.byURL":"網址","components.controls.image.dropFileText":"點擊或拖曳檔案上傳","components.controls.inline.bold":"粗體","components.controls.inline.italic":"斜體","components.controls.inline.underline":"底線","components.controls.inline.strikethrough":"刪除線","components.controls.inline.monospace":"等寬字體","components.controls.inline.superscript":"上標","components.controls.inline.subscript":"下標","components.controls.link.linkTitle":"超連結","components.controls.link.linkTarget":"輸入連結位址","components.controls.link.linkTargetOption":"在新視窗打開連結","components.controls.link.link":"連結","components.controls.link.unlink":"刪除連結","components.controls.list.list":"列表","components.controls.list.unordered":"項目符號","components.controls.list.ordered":"編號","components.controls.list.indent":"增加縮排","components.controls.list.outdent":"減少縮排","components.controls.remove.remove":"清除格式","components.controls.textalign.textalign":"文字對齊","components.controls.textalign.left":"文字向左對齊","components.controls.textalign.center":"文字置中","components.controls.textalign.right":"文字向右對齊","components.controls.textalign.justify":"兩端對齊"},pl:{"generic.add":"Dodaj","generic.cancel":"Anuluj","components.controls.blocktype.h1":"Nagłówek 1","components.controls.blocktype.h2":"Nagłówek 2","components.controls.blocktype.h3":"Nagłówek 3","components.controls.blocktype.h4":"Nagłówek 4","components.controls.blocktype.h5":"Nagłówek 5","components.controls.blocktype.h6":"Nagłówek 6","components.controls.blocktype.blockquote":"Cytat","components.controls.blocktype.code":"Kod","components.controls.blocktype.blocktype":"Format","components.controls.blocktype.normal":"Normalny","components.controls.colorpicker.colorpicker":"Kolor","components.controls.colorpicker.text":"Tekst","components.controls.colorpicker.background":"Tło","components.controls.embedded.embedded":"Osadź","components.controls.embedded.embeddedlink":"Osadź odnośnik","components.controls.embedded.enterlink":"Wprowadź odnośnik","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Krój czcionki","components.controls.fontsize.fontsize":"Rozmiar czcionki","components.controls.history.history":"Historia","components.controls.history.undo":"Cofnij","components.controls.history.redo":"Ponów","components.controls.image.image":"Obrazek","components.controls.image.fileUpload":"Prześlij plik","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Upuść plik lub kliknij, aby przesłać","components.controls.inline.bold":"Pogrubienie","components.controls.inline.italic":"Kursywa","components.controls.inline.underline":"Podkreślenie","components.controls.inline.strikethrough":"Przekreślenie","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Indeks górny","components.controls.inline.subscript":"Indeks dolny","components.controls.link.linkTitle":"Tytuł odnośnika","components.controls.link.linkTarget":"Adres odnośnika","components.controls.link.linkTargetOption":"Otwórz odnośnik w nowej karcie","components.controls.link.link":"Wstaw odnośnik","components.controls.link.unlink":"Usuń odnośnik","components.controls.list.list":"Lista","components.controls.list.unordered":"Lista nieuporządkowana","components.controls.list.ordered":"Lista uporządkowana","components.controls.list.indent":"Zwiększ wcięcie","components.controls.list.outdent":"Zmniejsz wcięcie","components.controls.remove.remove":"Usuń","components.controls.textalign.textalign":"Wyrównaj tekst","components.controls.textalign.left":"Do lewej","components.controls.textalign.center":"Do środka","components.controls.textalign.right":"Do prawej","components.controls.textalign.justify":"Wyjustuj"},es:{"generic.add":"Añadir","generic.cancel":"Cancelar","components.controls.blocktype.h1":"H1","components.controls.blocktype.h2":"H2","components.controls.blocktype.h3":"H3","components.controls.blocktype.h4":"H4","components.controls.blocktype.h5":"H5","components.controls.blocktype.h6":"H6","components.controls.blocktype.blockquote":"Blockquote","components.controls.blocktype.code":"Código","components.controls.blocktype.blocktype":"Tipo de bloque","components.controls.blocktype.normal":"Normal","components.controls.colorpicker.colorpicker":"Seleccionar color","components.controls.colorpicker.text":"Texto","components.controls.colorpicker.background":"Subrayado","components.controls.embedded.embedded":"Adjuntar","components.controls.embedded.embeddedlink":"Adjuntar Link","components.controls.embedded.enterlink":"Introducir link","components.controls.emoji.emoji":"Emoji","components.controls.fontfamily.fontfamily":"Fuente","components.controls.fontsize.fontsize":"Tamaño de fuente","components.controls.history.history":"Histórico","components.controls.history.undo":"Deshacer","components.controls.history.redo":"Rehacer","components.controls.image.image":"Imagen","components.controls.image.fileUpload":"Subir archivo","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"Arrastra el archivo o haz click para subirlo","components.controls.inline.bold":"Negrita","components.controls.inline.italic":"Cursiva","components.controls.inline.underline":"Subrayado","components.controls.inline.strikethrough":"Tachado","components.controls.inline.monospace":"Monospace","components.controls.inline.superscript":"Sobreíndice","components.controls.inline.subscript":"Subíndice","components.controls.link.linkTitle":"Título del enlace","components.controls.link.linkTarget":"Objetivo del enlace","components.controls.link.linkTargetOption":"Abrir en nueva ventana","components.controls.link.link":"Enlazar","components.controls.link.unlink":"Desenlazar","components.controls.list.list":"Lista","components.controls.list.unordered":"Desordenada","components.controls.list.ordered":"Ordenada","components.controls.list.indent":"Indentada","components.controls.list.outdent":"Dentada","components.controls.remove.remove":"Eliminar","components.controls.textalign.textalign":"Alineación del texto","components.controls.textalign.left":"Izquierda","components.controls.textalign.center":"Centrado","components.controls.textalign.right":"Derecha","components.controls.textalign.justify":"Justificado"},ja:{"generic.add":"追加","generic.cancel":"キャンセル","components.controls.blocktype.h1":"見出し1","components.controls.blocktype.h2":"見出し2","components.controls.blocktype.h3":"見出し3","components.controls.blocktype.h4":"見出し4","components.controls.blocktype.h5":"見出し5","components.controls.blocktype.h6":"見出し6","components.controls.blocktype.blockquote":"引用","components.controls.blocktype.code":"コード","components.controls.blocktype.blocktype":"スタイル","components.controls.blocktype.normal":"標準テキスト","components.controls.colorpicker.colorpicker":"テキストの色","components.controls.colorpicker.text":"テキスト","components.controls.colorpicker.background":"ハイライト","components.controls.embedded.embedded":"埋め込み","components.controls.embedded.embeddedlink":"埋め込みリンク","components.controls.embedded.enterlink":"リンクを入力してください","components.controls.emoji.emoji":"絵文字","components.controls.fontfamily.fontfamily":"フォント","components.controls.fontsize.fontsize":"フォントサイズ","components.controls.history.history":"履歴","components.controls.history.undo":"元に戻す","components.controls.history.redo":"やり直し","components.controls.image.image":"画像","components.controls.image.fileUpload":"ファイルをアップロード","components.controls.image.byURL":"URL","components.controls.image.dropFileText":"ここに画像をドラッグするか、クリックしてください","components.controls.inline.bold":"太字","components.controls.inline.italic":"斜体","components.controls.inline.underline":"下線","components.controls.inline.strikethrough":"取り消し線","components.controls.inline.monospace":"等幅フォント","components.controls.inline.superscript":"上付き文字","components.controls.inline.subscript":"下付き文字","components.controls.link.linkTitle":"リンクタイトル","components.controls.link.linkTarget":"リンク対象","components.controls.link.linkTargetOption":"新しいウィンドウで開く","components.controls.link.link":"リンク","components.controls.link.unlink":"リンクを解除","components.controls.list.list":"リスト","components.controls.list.unordered":"箇条書き","components.controls.list.ordered":"番号付き","components.controls.list.indent":"インデント増","components.controls.list.outdent":"インデント減","components.controls.remove.remove":"書式をクリア","components.controls.textalign.textalign":"整列","components.controls.textalign.left":"左揃え","components.controls.textalign.center":"中央揃え","components.controls.textalign.right":"右揃え","components.controls.textalign.justify":"両端揃え"}};function lr(e){return(lr="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)}function pr(){return(pr=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}).apply(this,arguments)}function fr(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 dr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fr(Object(n),!0).forEach((function(t){hr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gr(e){return function(e){if(Array.isArray(e))return mr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return mr(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)?mr(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mr(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 yr(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 vr(e,t){return(vr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function br(e){return(br=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(38),n(39);var wr=function(){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vr(e,t)}(i,r.Component);var e,t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=br(e);if(t){var o=br(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===lr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n)}}(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=n.call(this,e)).onEditorBlur=function(){t.setState({editorFocused:!1})},t.onEditorFocus=function(e){var n=t.props.onFocus;t.setState({editorFocused:!0});var r=t.focusHandler.isEditorFocused();n&&r&&n(e)},t.onEditorMouseDown=function(){t.focusHandler.onEditorMouseDown()},t.keyBindingFn=function(e){if("Tab"!==e.key)return"ArrowUp"!==e.key&&"ArrowDown"!==e.key||w()&&e.preventDefault(),Object(s.getDefaultKeyBinding)(e);var n=t.props.onTab;if(!n||!n(e)){var r=Object(c.changeDepth)(t.state.editorState,e.shiftKey?-1:1,4);r&&r!==t.state.editorState&&(t.onChange(r),e.preventDefault())}return null},t.onToolbarFocus=function(e){var n=t.props.onFocus;n&&t.focusHandler.isToolbarFocused()&&n(e)},t.onWrapperBlur=function(e){var n=t.props.onBlur;n&&t.focusHandler.isEditorBlur(e)&&n(e,t.getEditorState())},t.onChange=function(e){var n=t.props,r=n.readOnly,o=n.onEditorStateChange;r||"atomic"===Object(c.getSelectedBlocksType)(e)&&e.getSelection().isCollapsed||(o&&o(e,t.props.wrapperId),k(t.props,"editorState")?t.afterChange(e):t.setState({editorState:e},t.afterChange(e)))},t.setWrapperReference=function(e){t.wrapper=e},t.setEditorReference=function(e){t.props.editorRef&&t.props.editorRef(e),t.editor=e},t.getCompositeDecorator=function(e){var n=[].concat(gr(t.props.customDecorators),[{strategy:Un,component:Hn({showOpenOptionOnHover:e.link.showOpenOptionOnHover})}]);return t.props.mention&&n.push.apply(n,gr(function(e){return[new Yn(e.mentionClassName).getMentionDecorator(),new Xn(e).getSuggestionDecorator()]}(dr(dr({},t.props.mention),{},{onChange:t.onChange,getEditorState:t.getEditorState,getSuggestions:t.getSuggestions,getWrapperRef:t.getWrapperRef,modalHandler:t.modalHandler})))),t.props.hashtag&&n.push(function(e){return new tr(e).getHashtagDecorator()}(t.props.hashtag)),new s.CompositeDecorator(n)},t.getWrapperRef=function(){return t.wrapper},t.getEditorState=function(){return t.state?t.state.editorState:null},t.getSuggestions=function(){return t.props.mention&&t.props.mention.suggestions},t.afterChange=function(e){setTimeout((function(){var n=t.props,r=n.onChange,o=n.onContentStateChange;r&&r(Object(s.convertToRaw)(e.getCurrentContent())),o&&o(Object(s.convertToRaw)(e.getCurrentContent()))}))},t.isReadOnly=function(){return t.props.readOnly},t.isImageAlignmentEnabled=function(){return t.state.toolbar.image.alignmentEnabled},t.createEditorState=function(e){var n;if(k(t.props,"editorState"))t.props.editorState&&(n=s.EditorState.set(t.props.editorState,{decorator:e}));else if(k(t.props,"defaultEditorState"))t.props.defaultEditorState&&(n=s.EditorState.set(t.props.defaultEditorState,{decorator:e}));else if(k(t.props,"contentState")){if(t.props.contentState){var r=Object(s.convertFromRaw)(t.props.contentState);n=s.EditorState.createWithContent(r,e),n=s.EditorState.moveSelectionToEnd(n)}}else if(k(t.props,"defaultContentState")||k(t.props,"initialContentState")){var o=t.props.defaultContentState||t.props.initialContentState;o&&(o=Object(s.convertFromRaw)(o),n=s.EditorState.createWithContent(o,e),n=s.EditorState.moveSelectionToEnd(n))}return n||s.EditorState.createEmpty(e)},t.filterEditorProps=function(e){return t=e,n=["onChange","onEditorStateChange","onContentStateChange","initialContentState","defaultContentState","contentState","editorState","defaultEditorState","locale","localization","toolbarOnFocus","toolbar","toolbarCustomButtons","toolbarClassName","editorClassName","toolbarHidden","wrapperClassName","toolbarStyle","editorStyle","wrapperStyle","uploadCallback","onFocus","onBlur","onTab","mention","hashtag","ariaLabel","customBlockRenderFunc","customDecorators","handlePastedText","customStyleMap"],r=Object.keys(t).filter((function(e){return n.indexOf(e)<0})),o={},r&&0<r.length&&r.forEach((function(e){o[e]=t[e]})),o;var t,n,r,o},t.getStyleMap=function(e){return dr(dr({},Object(c.getCustomStyleMap)()),e.customStyleMap)},t.changeEditorState=function(e){var n=Object(s.convertFromRaw)(e),r=t.state.editorState;return r=s.EditorState.push(r,n,"insert-characters"),s.EditorState.moveSelectionToEnd(r)},t.focusEditor=function(){setTimeout((function(){t.editor.focus()}))},t.handleKeyCommand=function(e){var n=t.state,r=n.editorState,o=n.toolbar.inline;if(o&&0<=o.options.indexOf(e)){var i=s.RichUtils.handleKeyCommand(r,e);if(i)return t.onChange(i),!0}return!1},t.handleReturn=function(e){if(w())return!0;var n=t.state.editorState,r=Object(c.handleNewLine)(n,e);return!!r&&(t.onChange(r),!0)},t.handlePastedTextFn=function(e,n){var r=t.state.editorState,o=t.props,i=o.handlePastedText,a=o.stripPastedStyles;return i?i(e,n,r,t.onChange):!a&&function(e,t,n,r){var o=Object(c.getSelectedBlock)(n);if(o&&"code"===o.type){var i=s.Modifier.replaceText(n.getCurrentContent(),n.getSelection(),e,n.getCurrentInlineStyle());return r(s.EditorState.push(n,i,"insert-characters")),!0}if(t){var a=_()(t),u=n.getCurrentContent();return a.entityMap.forEach((function(e,t){u=u.mergeEntityData(t,e)})),u=s.Modifier.replaceWithFragment(u,n.getSelection(),new D.List(a.contentBlocks)),r(s.EditorState.push(n,u,"insert-characters")),!0}return!1}(e,n,r,t.onChange)},t.preventDefault=function(e){"INPUT"===e.target.tagName||"LABEL"===e.target.tagName||"TEXTAREA"===e.target.tagName?t.focusHandler.onInputMouseDown():e.preventDefault()};var r=C(cr,e.toolbar),o=e.wrapperId?e.wrapperId:Math.floor(1e4*Math.random());t.wrapperId="rdw-wrapper-".concat(o),t.modalHandler=new f,t.focusHandler=new g,t.blockRendererFn=function(e,t){return function(n){if("function"==typeof t){var r=t(n,e,e.getEditorState);if(r)return r}if("atomic"===n.getType()){var o=e.getEditorState().getCurrentContent().getEntity(n.getEntityAt(0));if(o&&"IMAGE"===o.type)return{component:sr(e),editable:!1};if(o&&"EMBEDDED_LINK"===o.type)return{component:nr,editable:!1}}}}({isReadOnly:t.isReadOnly,isImageAlignmentEnabled:t.isImageAlignmentEnabled,getEditorState:t.getEditorState,onChange:t.onChange},e.customBlockRenderFunc),t.editorProps=t.filterEditorProps(e),t.customStyleMap=t.getStyleMap(e),t.compositeDecorator=t.getCompositeDecorator(r);var a=t.createEditorState(t.compositeDecorator);return Object(c.extractInlineStyle)(a),t.state={editorState:a,editorFocused:!1,toolbar:r},t}return e=i,(t=[{key:"componentDidMount",value:function(){this.modalHandler.init(this.wrapperId)}},{key:"componentDidUpdate",value:function(e){if(e!==this.props){var t={},n=this.props,r=n.editorState,o=n.contentState;if(!this.state.toolbar){var i=C(cr,i);t.toolbar=i}if(k(this.props,"editorState")&&r!==e.editorState)t.editorState=r?s.EditorState.set(r,{decorator:this.compositeDecorator}):s.EditorState.createEmpty(this.compositeDecorator);else if(k(this.props,"contentState")&&o!==e.contentState)if(o){var a=this.changeEditorState(o);a&&(t.editorState=a)}else t.editorState=s.EditorState.createEmpty(this.compositeDecorator);e.editorState===r&&e.contentState===o||Object(c.extractInlineStyle)(t.editorState),Object.keys(t).length&&this.setState(t),this.editorProps=this.filterEditorProps(this.props),this.customStyleMap=this.getStyleMap(this.props)}}},{key:"render",value:function(){var e=this.state,t=e.editorState,n=e.editorFocused,r=e.toolbar,i=this.props,a=i.locale,u=i.localization,p=u.locale,f=u.translations,d=i.toolbarCustomButtons,h=i.toolbarOnFocus,g=i.toolbarClassName,m=i.toolbarHidden,v=i.editorClassName,b=i.wrapperClassName,w=i.toolbarStyle,E=i.editorStyle,k=i.wrapperStyle,O=i.uploadCallback,M=i.ariaLabel,C={modalHandler:this.modalHandler,editorState:t,onChange:this.onChange,translations:dr(dr({},ur[a||p]),f)},x=n||this.focusHandler.isInputFocused()||!h;return o.a.createElement("div",{id:this.wrapperId,className:l()(b,"rdw-editor-wrapper"),style:k,onClick:this.modalHandler.onEditorClick,onBlur:this.onWrapperBlur,"aria-label":"rdw-wrapper"},!m&&o.a.createElement("div",{className:l()("rdw-editor-toolbar",g),style:dr({visibility:x?"visible":"hidden"},w),onMouseDown:this.preventDefault,"aria-label":"rdw-toolbar","aria-hidden":(!n&&h).toString(),onFocus:this.onToolbarFocus},r.options.map((function(e,t){var n=Nn[e],i=r[e];return"image"===e&&O&&(i.uploadCallback=O),o.a.createElement(n,pr({key:t},C,{config:i}))})),d&&d.map((function(e,t){return o.a.cloneElement(e,dr({key:t},C))}))),o.a.createElement("div",{ref:this.setWrapperReference,className:l()(v,"rdw-editor-main"),style:E,onClick:this.focusEditor,onFocus:this.onEditorFocus,onBlur:this.onEditorBlur,onKeyDown:y.onKeyDown,onMouseDown:this.onEditorMouseDown},o.a.createElement(s.Editor,pr({ref:this.setEditorReference,keyBindingFn:this.keyBindingFn,editorState:t,onChange:this.onChange,blockStyleFn:S,customStyleMap:this.getStyleMap(this.props),handleReturn:this.handleReturn,handlePastedText:this.handlePastedTextFn,blockRendererFn:this.blockRendererFn,handleKeyCommand:this.handleKeyCommand,ariaLabel:M||"rdw-editor",blockRenderMap:c.blockRenderMap},this.editorProps))))}}])&&yr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),i}();wr.propTypes={onChange:a.a.func,onEditorStateChange:a.a.func,onContentStateChange:a.a.func,initialContentState:a.a.object,defaultContentState:a.a.object,contentState:a.a.object,editorState:a.a.object,defaultEditorState:a.a.object,toolbarOnFocus:a.a.bool,spellCheck:a.a.bool,stripPastedStyles:a.a.bool,toolbar:a.a.object,toolbarCustomButtons:a.a.array,toolbarClassName:a.a.string,toolbarHidden:a.a.bool,locale:a.a.string,localization:a.a.object,editorClassName:a.a.string,wrapperClassName:a.a.string,toolbarStyle:a.a.object,editorStyle:a.a.object,wrapperStyle:a.a.object,uploadCallback:a.a.func,onFocus:a.a.func,onBlur:a.a.func,onTab:a.a.func,mention:a.a.object,hashtag:a.a.object,textAlignment:a.a.string,readOnly:a.a.bool,tabIndex:a.a.number,placeholder:a.a.string,ariaLabel:a.a.string,ariaOwneeID:a.a.string,ariaActiveDescendantID:a.a.string,ariaAutoComplete:a.a.string,ariaDescribedBy:a.a.string,ariaExpanded:a.a.string,ariaHasPopup:a.a.string,customBlockRenderFunc:a.a.func,wrapperId:a.a.number,customDecorators:a.a.array,editorRef:a.a.func,handlePastedText:a.a.func},wr.defaultProps={toolbarOnFocus:!1,toolbarHidden:!1,stripPastedStyles:!1,localization:{locale:"en",translations:{}},customDecorators:[]};var Sr=wr}],r.c=i,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=8);function r(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var o,i}(n(359),n(9041),n(3393))},4806:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>f,_y:()=>p,zt:()=>l});var r=n(7582),o=n(359),i=n(8679),a=n.n(i),s=n(680),c=o.createContext(null),u=c.Consumer,l=c.Provider,p=c;function f(e,t){var n,i=t||{},c=i.intlPropName,l=void 0===c?"intl":c,p=i.forwardRef,f=void 0!==p&&p,d=i.enforceContext,h=void 0===d||d,g=function(t){return o.createElement(u,null,(function(n){var i;h&&(0,s.lq)(n);var a=((i={})[l]=n,i);return o.createElement(e,(0,r.pi)({},t,a,{ref:f?t.forwardedRef:null}))}))};return g.displayName="injectIntl(".concat((n=e).displayName||n.name||"Component",")"),g.WrappedComponent=e,f?a()(o.forwardRef((function(e,t){return o.createElement(g,(0,r.pi)({},e,{forwardedRef:t}))})),e):a()(g,e)}},680:(e,t,n)=>{"use strict";n.d(t,{Z0:()=>c,dt:()=>u,lq:()=>s,wU:()=>l});var r=n(7582),o=n(359),i=n(5687),a=n(2644);function s(e){(0,i.kG)(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var c=(0,r.pi)((0,r.pi)({},a.Z0),{textComponent:o.Fragment});function u(e){return function(t){return e(o.Children.toArray(t))}}function l(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0;i<o;i++){var a=n[i];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}},9921:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,d=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,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case p:case i:case s:case a:case d:return e;default:switch(e=e&&e.$$typeof){case u:case f:case m:case g:case c:return e;default:return t}}case o:return t}}}function E(e){return S(e)===p}t.AsyncMode=l,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=c,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=m,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=d,t.isAsyncMode=function(e){return E(e)||S(e)===l},t.isConcurrentMode=E,t.isContextConsumer=function(e){return S(e)===u},t.isContextProvider=function(e){return S(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return S(e)===f},t.isFragment=function(e){return S(e)===i},t.isLazy=function(e){return S(e)===m},t.isMemo=function(e){return S(e)===g},t.isPortal=function(e){return S(e)===o},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===s||e===a||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===c||e.$$typeof===u||e.$$typeof===f||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=S},9864:(e,t,n)=>{"use strict";e.exports=n(9921)},8877:function(e,t,n){var r,o,i,a;e.exports=(r=n(5697),o=n(359),i=n(1518),a=n(1400),function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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}Object.defineProperty(t,"__esModule",{value:!0});var 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=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}}(),s=r(n(1)),c=n(2),u=r(c),l=r(n(3)),p=r(n(4)),f=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 i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=r=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r._sigPad=null,r._excludeOurProps=function(){var e=r.props;return e.canvasProps,e.clearOnResize,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,["canvasProps","clearOnResize"])},r.getCanvas=function(){return r._canvas},r.getTrimmedCanvas=function(){var e=document.createElement("canvas");return e.width=r._canvas.width,e.height=r._canvas.height,e.getContext("2d").drawImage(r._canvas,0,0),(0,p.default)(e)},r.getSignaturePad=function(){return r._sigPad},r._checkClearOnResize=function(){r.props.clearOnResize&&r._resizeCanvas()},r._resizeCanvas=function(){var e=r.props.canvasProps||{},t=e.width,n=e.height;if(!t||!n){var o=r._canvas,i=Math.max(window.devicePixelRatio||1,1);t||(o.width=o.offsetWidth*i),n||(o.height=o.offsetHeight*i),o.getContext("2d").scale(i,i),r.clear()}},r.on=function(){return window.addEventListener("resize",r._checkClearOnResize),r._sigPad.on()},r.off=function(){return window.removeEventListener("resize",r._checkClearOnResize),r._sigPad.off()},r.clear=function(){return r._sigPad.clear()},r.isEmpty=function(){return r._sigPad.isEmpty()},r.fromDataURL=function(e,t){return r._sigPad.fromDataURL(e,t)},r.toDataURL=function(e,t){return r._sigPad.toDataURL(e,t)},r.fromData=function(e){return r._sigPad.fromData(e)},r.toData=function(){return r._sigPad.toData()},o(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),a(t,[{key:"componentDidMount",value:function(){this._sigPad=new l.default(this._canvas,this._excludeOurProps()),this._resizeCanvas(),this.on()}},{key:"componentWillUnmount",value:function(){this.off()}},{key:"componentDidUpdate",value:function(){Object.assign(this._sigPad,this._excludeOurProps())}},{key:"render",value:function(){var e=this,t=this.props.canvasProps;return u.default.createElement("canvas",i({ref:function(t){e._canvas=t}},t))}}]),t}(c.Component);f.propTypes={velocityFilterWeight:s.default.number,minWidth:s.default.number,maxWidth:s.default.number,minDistance:s.default.number,dotSize:s.default.oneOfType([s.default.number,s.default.func]),penColor:s.default.string,throttle:s.default.number,onEnd:s.default.func,onBegin:s.default.func,canvasProps:s.default.object,clearOnResize:s.default.bool},f.defaultProps={clearOnResize:!0},t.default=f},function(e,t){e.exports=r},function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t){e.exports=a}]))},4889:function(e,t,n){!function(e,t){"use strict";if(!e.setImmediate){var n,r,o,i,a,s=1,c={},u=!1,l=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,"[object process]"==={}.toString.call(e.process)?n=function(e){process.nextTick((function(){d(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(i="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&d(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),n=function(t){e.postMessage(i+t,"*")}):e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){d(e.data)},n=function(e){o.port2.postMessage(e)}):l&&"onreadystatechange"in l.createElement("script")?(r=l.documentElement,n=function(e){var t=l.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):n=function(e){setTimeout(d,0,e)},p.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var o={callback:e,args:t};return c[s]=o,n(s),s++},p.clearImmediate=f}function f(e){delete c[e]}function d(e){if(u)setTimeout(d,0,e);else{var t=c[e];if(t){u=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(undefined,n)}}(t)}finally{f(e),u=!1}}}}}("undefined"==typeof self?void 0===n.g?this:n.g:self)},1400:function(e){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t){"use strict";function n(e,t,n,r){return function(e,t,n,r){return{red:r[4*(n*t+e)],green:r[4*(n*t+e)+1],blue:r[4*(n*t+e)+2],alpha:r[4*(n*t+e)+3]}}(e,t,n,r).alpha}function r(e,t,r,o){for(var i=e?1:-1,a=e?0:r-1;e?a<r:a>-1;a+=i)for(var s=0;s<t;s++)if(n(s,a,t,o))return a;return null}function o(e,t,r,o){for(var i=e?1:-1,a=e?0:t-1;e?a<t:a>-1;a+=i)for(var s=0;s<r;s++)if(n(a,s,t,o))return a;return null}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.getContext("2d"),n=e.width,i=e.height,a=t.getImageData(0,0,n,i).data,s=r(!0,n,i,a),c=r(!1,n,i,a),u=o(!0,n,i,a),l=o(!1,n,i,a)-u+1,p=c-s+1,f=t.getImageData(u,s,l,p);return e.width=l,e.height=p,t.clearRect(0,0,l,p),t.putImageData(f,0,0),e}}])},2238:function(e,t,n){var r;!function(o,i){"use strict";var a="function",s="undefined",c="object",u="string",l="major",p="model",f="name",d="type",h="vendor",g="version",m="architecture",y="console",v="mobile",b="tablet",w="smarttv",S="wearable",E="embedded",k="Amazon",O="Apple",M="ASUS",C="BlackBerry",x="Browser",_="Chrome",D="Firefox",T="Google",j="Huawei",I="LG",N="Microsoft",L="Motorola",A="Opera",P="Samsung",R="Sharp",B="Sony",z="Xiaomi",F="Zebra",U="Facebook",H="Chromium OS",Z="Mac OS",K=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},Y=function(e,t){return typeof e===u&&-1!==V(t).indexOf(V(e))},V=function(e){return e.toLowerCase()},G=function(e,t){if(typeof e===u)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,500)},W=function(e,t){for(var n,r,o,s,u,l,p=0;p<t.length&&!u;){var f=t[p],d=t[p+1];for(n=r=0;n<f.length&&!u&&f[n];)if(u=f[n++].exec(e))for(o=0;o<d.length;o++)l=u[++r],typeof(s=d[o])===c&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):i:this[s[0]]=l?s[1].call(this,l,s[2]):i:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):i):this[s]=l||i;p+=2}},q=function(e,t){for(var n in t)if(typeof t[n]===c&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(Y(t[n][r],e))return"?"===n?i:n}else if(Y(t[n],e))return"?"===n?i:n;return e},Q={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},J={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,g],[/opios[\/ ]+([\w\.]+)/i],[g,[f,A+" Mini"]],[/\bopr\/([\w\.]+)/i],[g,[f,A]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[g,[f,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[f,g],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[f,"UC"+x]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[g,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[f,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[g,[f,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[g,[f,"Smart Lenovo "+x]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+x],g],[/\bfocus\/([\w\.]+)/i],[g,[f,D+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[f,A+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[f,A+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[f,"MIUI "+x]],[/fxios\/([-\w\.]+)/i],[g,[f,D]],[/\bqihu|(qi?ho?o?|360)browser/i],[[f,"360 "+x]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1 "+x],g],[/samsungbrowser\/([\w\.]+)/i],[g,[f,P+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[f,/_/g," "],g],[/metasr[\/ ]?([\d\.]+)/i],[g,[f,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[f,"Sogou Mobile"],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[f,g],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,U],g],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[f,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[f,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[g,[f,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[f,_+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,_+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[f,"Android "+x]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[f,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[g,q,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[f,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[f,D+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[f,g],[/(cobalt)\/([\w\.]+)/i],[f,[g,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,V]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",V]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,V]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[p,[h,P],[d,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[p,[h,P],[d,v]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[p,[h,O],[d,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[p,[h,O],[d,b]],[/(macintosh);/i],[p,[h,O]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[p,[h,R],[d,v]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[p,[h,j],[d,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[p,[h,j],[d,v]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[p,/_/g," "],[h,z],[d,v]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[p,/_/g," "],[h,z],[d,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[p,[h,"OPPO"],[d,v]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[p,[h,"Vivo"],[d,v]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[p,[h,"Realme"],[d,v]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[p,[h,L],[d,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[p,[h,L],[d,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[p,[h,I],[d,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[p,[h,I],[d,v]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[p,[h,"Lenovo"],[d,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[p,/_/g," "],[h,"Nokia"],[d,v]],[/(pixel c)\b/i],[p,[h,T],[d,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[p,[h,T],[d,v]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[p,[h,B],[d,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[p,"Xperia Tablet"],[h,B],[d,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[p,[h,"OnePlus"],[d,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[p,[h,k],[d,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[p,/(.+)/g,"Fire Phone $1"],[h,k],[d,v]],[/(playbook);[-\w\),; ]+(rim)/i],[p,h,[d,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[p,[h,C],[d,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[p,[h,M],[d,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[p,[h,M],[d,v]],[/(nexus 9)/i],[p,[h,"HTC"],[d,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[p,/_/g," "],[d,v]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[p,[h,"Acer"],[d,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[p,[h,"Meizu"],[d,v]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[p,[h,"Ulefone"],[d,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,p,[d,v]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,p,[d,b]],[/(surface duo)/i],[p,[h,N],[d,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[p,[h,"Fairphone"],[d,v]],[/(u304aa)/i],[p,[h,"AT&T"],[d,v]],[/\bsie-(\w*)/i],[p,[h,"Siemens"],[d,v]],[/\b(rct\w+) b/i],[p,[h,"RCA"],[d,b]],[/\b(venue[\d ]{2,7}) b/i],[p,[h,"Dell"],[d,b]],[/\b(q(?:mv|ta)\w+) b/i],[p,[h,"Verizon"],[d,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[p,[h,"Barnes & Noble"],[d,b]],[/\b(tm\d{3}\w+) b/i],[p,[h,"NuVision"],[d,b]],[/\b(k88) b/i],[p,[h,"ZTE"],[d,b]],[/\b(nx\d{3}j) b/i],[p,[h,"ZTE"],[d,v]],[/\b(gen\d{3}) b.+49h/i],[p,[h,"Swiss"],[d,v]],[/\b(zur\d{3}) b/i],[p,[h,"Swiss"],[d,b]],[/\b((zeki)?tb.*\b) b/i],[p,[h,"Zeki"],[d,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],p,[d,b]],[/\b(ns-?\w{0,9}) b/i],[p,[h,"Insignia"],[d,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[p,[h,"NextBook"],[d,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],p,[d,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],p,[d,v]],[/\b(ph-1) /i],[p,[h,"Essential"],[d,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[p,[h,"Envizen"],[d,b]],[/\b(trio[-\w\. ]+) b/i],[p,[h,"MachSpeed"],[d,b]],[/\btu_(1491) b/i],[p,[h,"Rotor"],[d,b]],[/(shield[\w ]+) b/i],[p,[h,"Nvidia"],[d,b]],[/(sprint) (\w+)/i],[h,p,[d,v]],[/(kin\.[onetw]{3})/i],[[p,/\./g," "],[h,N],[d,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[p,[h,F],[d,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[p,[h,F],[d,v]],[/smart-tv.+(samsung)/i],[h,[d,w]],[/hbbtv.+maple;(\d+)/i],[[p,/^/,"SmartTV"],[h,P],[d,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,I],[d,w]],[/(apple) ?tv/i],[h,[p,O+" TV"],[d,w]],[/crkey/i],[[p,_+"cast"],[h,T],[d,w]],[/droid.+aft(\w+)( bui|\))/i],[p,[h,k],[d,w]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[p,[h,R],[d,w]],[/(bravia[\w ]+)( bui|\))/i],[p,[h,B],[d,w]],[/(mitv-\w{5}) bui/i],[p,[h,z],[d,w]],[/Hbbtv.*(technisat) (.*);/i],[h,p,[d,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,G],[p,G],[d,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,p,[d,y]],[/droid.+; (shield) bui/i],[p,[h,"Nvidia"],[d,y]],[/(playstation [345portablevi]+)/i],[p,[h,B],[d,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[p,[h,N],[d,y]],[/((pebble))app/i],[h,p,[d,S]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[p,[h,O],[d,S]],[/droid.+; (glass) \d/i],[p,[h,T],[d,S]],[/droid.+; (wt63?0{2,3})\)/i],[p,[h,F],[d,S]],[/(quest( 2| pro)?)/i],[p,[h,U],[d,S]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[d,E]],[/(aeobc)\b/i],[p,[h,k],[d,E]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[p,[d,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[p,[d,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,v]],[/(android[-\w\. ]{0,9});.+buil/i],[p,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[f,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[f,g],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,g],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[f,[g,q,Q]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[g,q,Q],[f,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,Z],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,f],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[f,g],[/\(bb(10);/i],[g,[f,C]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[g,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[f,D+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[f,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[g,[f,"watchOS"]],[/crkey\/([\d\.]+)/i],[g,[f,_+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,H],g],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,g],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,g]]},X=function(e,t){if(typeof e===c&&(t=e,e=i),!(this instanceof X))return new X(e,t).getResult();var n=typeof o!==s&&o.navigator?o.navigator:i,r=e||(n&&n.userAgent?n.userAgent:""),y=n&&n.userAgentData?n.userAgentData:i,w=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(J,t):J,S=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[f]=i,t[g]=i,W.call(t,r,w.browser),t[l]=typeof(e=t[g])===u?e.replace(/[^\d\.]/g,"").split(".")[0]:i,S&&n&&n.brave&&typeof n.brave.isBrave==a&&(t[f]="Brave"),t},this.getCPU=function(){var e={};return e[m]=i,W.call(e,r,w.cpu),e},this.getDevice=function(){var e={};return e[h]=i,e[p]=i,e[d]=i,W.call(e,r,w.device),S&&!e[d]&&y&&y.mobile&&(e[d]=v),S&&"Macintosh"==e[p]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[p]="iPad",e[d]=b),e},this.getEngine=function(){var e={};return e[f]=i,e[g]=i,W.call(e,r,w.engine),e},this.getOS=function(){var e={};return e[f]=i,e[g]=i,W.call(e,r,w.os),S&&!e[f]&&y&&"Unknown"!=y.platform&&(e[f]=y.platform.replace(/chrome os/i,H).replace(/macos/i,Z)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===u&&e.length>500?G(e,500):e,this},this.setUA(r),this};X.VERSION="0.7.37",X.BROWSER=K([f,g,l]),X.CPU=K([m]),X.DEVICE=K([p,h,d,y,v,w,b,S,E]),X.ENGINE=X.OS=K([f,g]),typeof t!==s?(e.exports&&(t=e.exports=X),t.UAParser=X):n.amdO?(r=function(){return X}.call(t,n,t,e))===i||(e.exports=r):typeof o!==s&&(o.UAParser=X);var $=typeof o!==s&&(o.jQuery||o.Zepto);if($&&!$.ua){var ee=new X;$.ua=ee.getResult(),$.ua.get=function(){return ee.getUA()},$.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var n in t)$.ua[n]=t[n]}}}("object"==typeof window?window:this)},3469:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(359).useLayoutEffect},7147:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DOMException:()=>S,Headers:()=>l,Request:()=>y,Response:()=>b,fetch:()=>E});var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n.g&&n.g||{},o={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};function s(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o.iterable&&(t[Symbol.iterator]=function(){return t}),t}function l(e){this.map={},e instanceof l?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function p(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function d(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function h(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o.arrayBuffer&&o.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=h(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e))?this._bodyArrayBuffer=h(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return p(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(o.blob)return this.blob().then(d);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r,o,i=p(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=f(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=r?r[1]:"utf-8",t.readAsText(e,o),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(v)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(e,t){e=s(e),t=c(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},l.prototype.delete=function(e){delete this.map[s(e)]},l.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},l.prototype.set=function(e,t){this.map[s(e)]=c(t)},l.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},l.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),u(e)},l.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),u(e)},l.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),u(e)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var m=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function y(e,t){if(!(this instanceof y))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,o,i=(t=t||{}).body;if(e instanceof y){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new l(t.headers)),this.method=(o=(n=t.method||this.method||"GET").toUpperCase(),m.indexOf(o)>-1?o:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in r)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var a=/([?&])_=[^&]*/;a.test(this.url)?this.url=this.url.replace(a,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function v(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function b(e,t){if(!(this instanceof b))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},g.call(y.prototype),g.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var e=new b(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var w=[301,302,303,307,308];b.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new b(null,{status:t,headers:{location:e}})};var S=r.DOMException;try{new S}catch(e){(S=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),S.prototype.constructor=S}function E(e,t){return new Promise((function(n,i){var a=new y(e,t);if(a.signal&&a.signal.aborted)return i(new S("Aborted","AbortError"));var u=new XMLHttpRequest;function p(){u.abort()}if(u.onload=function(){var e,t,r={statusText:u.statusText,headers:(e=u.getAllResponseHeaders()||"",t=new l,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();try{t.append(r,o)}catch(e){console.warn("Response "+e.message)}}})),t)};a.url.startsWith("file://")&&(u.status<200||u.status>599)?r.status=200:r.status=u.status,r.url="responseURL"in u?u.responseURL:r.headers.get("X-Request-URL");var o="response"in u?u.response:u.responseText;setTimeout((function(){n(new b(o,r))}),0)},u.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request timed out"))}),0)},u.onabort=function(){setTimeout((function(){i(new S("Aborted","AbortError"))}),0)},u.open(a.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(a.url),!0),"include"===a.credentials?u.withCredentials=!0:"omit"===a.credentials&&(u.withCredentials=!1),"responseType"in u&&(o.blob?u.responseType="blob":o.arrayBuffer&&(u.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof l||r.Headers&&t.headers instanceof r.Headers)){var f=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){f.push(s(e)),u.setRequestHeader(e,c(t.headers[e]))})),a.headers.forEach((function(e,t){-1===f.indexOf(t)&&u.setRequestHeader(t,e)}))}else a.headers.forEach((function(e,t){u.setRequestHeader(t,e)}));a.signal&&(a.signal.addEventListener("abort",p),u.onreadystatechange=function(){4===u.readyState&&a.signal.removeEventListener("abort",p)}),u.send(void 0===a._bodyInit?null:a._bodyInit)}))}E.polyfill=!0,r.fetch||(r.fetch=E,r.Headers=l,r.Request=y,r.Response=b)},2302:(e,t,n)=>{var r=n(9970).FilterCSS,o=n(9970).getDefaultWhiteList,i=n(5938);var a=new r;function s(e){return e.replace(c,"<").replace(u,">")}var c=/</g,u=/>/g,l=/"/g,p=/"/g,f=/&#([a-zA-Z0-9]*);?/gim,d=/:?/gim,h=/&newline;?/gim,g=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,m=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,y=/u\s*r\s*l\s*\(.*/gi;function v(e){return e.replace(l,""")}function b(e){return e.replace(p,'"')}function w(e){return e.replace(f,(function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))}))}function S(e){return e.replace(d,":").replace(h," ")}function E(e){for(var t="",n=0,r=e.length;n<r;n++)t+=e.charCodeAt(n)<32?" ":e.charAt(n);return i.trim(t)}function k(e){return E(e=S(e=w(e=b(e))))}function O(e){return s(e=v(e))}t.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]},t.getDefaultWhiteList=function(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}},t.onTag=function(e,t,n){},t.onIgnoreTag=function(e,t,n){},t.onTagAttr=function(e,t,n){},t.onIgnoreTagAttr=function(e,t,n){},t.safeAttrValue=function(e,t,n,r){if(n=k(n),"href"===t||"src"===t){if("#"===(n=i.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===t){if(g.lastIndex=0,g.test(n))return""}else if("style"===t){if(m.lastIndex=0,m.test(n))return"";if(y.lastIndex=0,y.test(n)&&(g.lastIndex=0,g.test(n)))return"";!1!==r&&(n=(r=r||a).process(n))}return O(n)},t.escapeHtml=s,t.escapeQuote=v,t.unescapeQuote=b,t.escapeHtmlEntities=w,t.escapeDangerHtml5Entities=S,t.clearNonPrintableCharacter=E,t.friendlyAttrValue=k,t.escapeAttrValue=O,t.onIgnoreTagStripAll=function(){return""},t.StripTagBody=function(e,t){"function"!=typeof t&&(t=function(){});var n=!Array.isArray(e),r=[],o=!1;return{onIgnoreTag:function(a,s,c){if(function(t){return!!n||-1!==i.indexOf(e,t)}(a)){if(c.isClosing){var u=c.position+10;return r.push([!1!==o?o:c.position,u]),o=!1,"[/removed]"}return o||(o=c.position),"[removed]"}return t(a,s,c)},remove:function(e){var t="",n=0;return i.forEach(r,(function(r){t+=e.slice(n,r[0]),n=r[1]})),t+=e.slice(n)}}},t.stripCommentTag=function(e){for(var t="",n=0;n<e.length;){var r=e.indexOf("\x3c!--",n);if(-1===r){t+=e.slice(n);break}t+=e.slice(n,r);var o=e.indexOf("--\x3e",r);if(-1===o)break;n=o+3}return t},t.stripBlankChar=function(e){var t=e.split("");return(t=t.filter((function(e){var t=e.charCodeAt(0);return!(127===t||t<=31&&10!==t&&13!==t)}))).join("")},t.cssFilter=a,t.getDefaultCSSWhiteList=o},8924:(e,t,n)=>{var r=n(2302),o=n(3268),i=n(2973);function a(e,t){return new i(t).process(e)}(t=e.exports=a).filterXSS=a,t.FilterXSS=i,function(){for(var e in r)t[e]=r[e];for(var n in o)t[n]=o[n]}(),"undefined"!=typeof window&&(window.filterXSS=e.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=e.exports)},3268:(e,t,n)=>{var r=n(5938);function o(e){var t,n=r.spaceIndex(e);return t=-1===n?e.slice(1,-1):e.slice(1,n+1),"/"===(t=r.trim(t).toLowerCase()).slice(0,1)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t}function i(e){return"</"===e.slice(0,2)}var a=/[^a-zA-Z0-9\\_:.-]/gim;function s(e,t){for(;t<e.length;t++){var n=e[t];if(" "!==n)return"="===n?t:-1}}function c(e,t){for(;t<e.length;t++){var n=e[t];if(" "!==n)return"'"===n||'"'===n?t:-1}}function u(e,t){for(;t>0;t--){var n=e[t];if(" "!==n)return"="===n?t:-1}}function l(e){return function(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}(e)?e.substr(1,e.length-2):e}t.parseTag=function(e,t,n){"use strict";var r="",a=0,s=!1,c=!1,u=0,l=e.length,p="",f="";e:for(u=0;u<l;u++){var d=e.charAt(u);if(!1===s){if("<"===d){s=u;continue}}else if(!1===c){if("<"===d){r+=n(e.slice(a,u)),s=u,a=u;continue}if(">"===d||u===l-1){r+=n(e.slice(a,s)),p=o(f=e.slice(s,u+1)),r+=t(s,r.length,p,f,i(f)),a=u+1,s=!1;continue}if('"'===d||"'"===d)for(var h=1,g=e.charAt(u-h);""===g.trim()||"="===g;){if("="===g){c=d;continue e}g=e.charAt(u-++h)}}else if(d===c){c=!1;continue}}return a<l&&(r+=n(e.substr(a))),r},t.parseAttr=function(e,t){"use strict";var n=0,o=0,i=[],p=!1,f=e.length;function d(e,n){if(!((e=(e=r.trim(e)).replace(a,"").toLowerCase()).length<1)){var o=t(e,n||"");o&&i.push(o)}}for(var h=0;h<f;h++){var g,m=e.charAt(h);if(!1!==p||"="!==m)if(!1===p||h!==o){if(/\s|\n|\t/.test(m)){if(e=e.replace(/\s|\n|\t/g," "),!1===p){if(-1===(g=s(e,h))){d(r.trim(e.slice(n,h))),p=!1,n=h+1;continue}h=g-1;continue}if(-1===(g=u(e,h-1))){d(p,l(r.trim(e.slice(n,h)))),p=!1,n=h+1;continue}}}else{if(-1===(g=e.indexOf(m,h+1)))break;d(p,r.trim(e.slice(o+1,g))),p=!1,n=(h=g)+1}else p=e.slice(n,h),n=h+1,o='"'===e.charAt(n)||"'"===e.charAt(n)?n:c(e,h+1)}return n<e.length&&(!1===p?d(e.slice(n)):d(p,l(r.trim(e.slice(n))))),r.trim(i.join(" "))}},5938:e=>{e.exports={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,o;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,o=e.length;r<o;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/.exec(e);return t?t.index:-1}}},2973:(e,t,n)=>{var r=n(9970).FilterCSS,o=n(2302),i=n(3268),a=i.parseTag,s=i.parseAttr,c=n(5938);function u(e){return null==e}function l(e){(e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{})).stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=o.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=function(e){var t={};for(var n in e)Array.isArray(e[n])?t[n.toLowerCase()]=e[n].map((function(e){return e.toLowerCase()})):t[n.toLowerCase()]=e[n];return t}(e.whiteList||e.allowList):e.whiteList=o.whiteList,e.onTag=e.onTag||o.onTag,e.onTagAttr=e.onTagAttr||o.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||o.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||o.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||o.safeAttrValue,e.escapeHtml=e.escapeHtml||o.escapeHtml,this.options=e,!1===e.css?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new r(e.css))}l.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,n=t.whiteList,r=t.onTag,i=t.onIgnoreTag,l=t.onTagAttr,p=t.onIgnoreTagAttr,f=t.safeAttrValue,d=t.escapeHtml,h=this.cssFilter;t.stripBlankChar&&(e=o.stripBlankChar(e)),t.allowCommentTag||(e=o.stripCommentTag(e));var g=!1;t.stripIgnoreTagBody&&(g=o.StripTagBody(t.stripIgnoreTagBody,i),i=g.onIgnoreTag);var m=a(e,(function(e,t,o,a,g){var m={sourcePosition:e,position:t,isClosing:g,isWhite:Object.prototype.hasOwnProperty.call(n,o)},y=r(o,a,m);if(!u(y))return y;if(m.isWhite){if(m.isClosing)return"</"+o+">";var v=function(e){var t=c.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=c.trim(e.slice(t+1,-1)))[e.length-1];return n&&(e=c.trim(e.slice(0,-1))),{html:e,closing:n}}(a),b=n[o],w=s(v.html,(function(e,t){var n=-1!==c.indexOf(b,e),r=l(o,e,t,n);return u(r)?n?(t=f(o,e,t,h))?e+'="'+t+'"':e:u(r=p(o,e,t,n))?void 0:r:r}));return a="<"+o,w&&(a+=" "+w),v.closing&&(a+=" /"),a+">"}return u(y=i(o,a,m))?d(a):y}),d);return g&&(m=g.remove(m)),m},e.exports=l},359:t=>{"use strict";t.exports=e},4318:e=>{"use strict";e.exports=t},7061:(e,t,n)=>{var r=n(8698).default;function o(){"use strict";e.exports=o=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},i=Object.prototype,a=i.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",p=c.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(t){f=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof w?t:w,i=Object.create(o.prototype),a=new N(r||[]);return s(i,"_invoke",{value:D(e,n,a)}),i}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=d;var g="suspendedStart",m="suspendedYield",y="executing",v="completed",b={};function w(){}function S(){}function E(){}var k={};f(k,u,(function(){return this}));var O=Object.getPrototypeOf,M=O&&O(O(L([])));M&&M!==i&&a.call(M,u)&&(k=M);var C=E.prototype=w.prototype=Object.create(k);function x(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(o,i,s,c){var u=h(e[o],e,i);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==r(p)&&a.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(p).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var o;s(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 D(e,n,r){var o=g;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===b)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===g)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=y;var u=h(e,n,r);if("normal"===u.type){if(o=r.done?v:m,u.arg===b)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=v,r.method="throw",r.arg=u.arg)}}}function T(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var i=h(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,b;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function L(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(a.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(r(e)+" is not iterable")}return S.prototype=E,s(C,"constructor",{value:E,configurable:!0}),s(E,"constructor",{value:S,configurable:!0}),S.displayName=f(E,p,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===S||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,f(e,p,"GeneratorFunction")),e.prototype=Object.create(C),e},n.awrap=function(e){return{__await:e}},x(_.prototype),f(_.prototype,l,(function(){return this})),n.AsyncIterator=_,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new _(d(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(C),f(C,p,"Generator"),f(C,u,(function(){return this})),f(C,"toString",(function(){return"[object Generator]"})),n.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}},n.values=L,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),u=a.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.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&&a.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 i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},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),b},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),I(n),b}},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;I(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},n}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)}},7326:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},5671:(e,t,n)=>{"use strict";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)=>{"use strict";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}},7462:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},1120:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:()=>r})},9340:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}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&&r(e,t)}n.d(t,{Z:()=>o})},3366:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:()=>r})},2963:(e,t,n)=>{"use strict";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)}},9142:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(1002);function o(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!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)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},1518:(e,t,n)=>{"use strict";function r(e,t,n){this.x=e,this.y=t,this.time=n||(new Date).getTime()}function o(e,t,n,r){this.startPoint=e,this.control1=t,this.control2=n,this.endPoint=r}function i(e,t){var n=this,r=t||{};this.velocityFilterWeight=r.velocityFilterWeight||.7,this.minWidth=r.minWidth||.5,this.maxWidth=r.maxWidth||2.5,this.throttle="throttle"in r?r.throttle:16,this.minDistance="minDistance"in r?r.minDistance:5,this.throttle?this._strokeMoveUpdate=function(e,t,n){var r,o,i,a=null,s=0;n||(n={});var c=function(){s=!1===n.leading?0:Date.now(),a=null,i=e.apply(r,o),a||(r=o=null)};return function(){var u=Date.now();s||!1!==n.leading||(s=u);var l=t-(u-s);return r=this,o=arguments,l<=0||l>t?(a&&(clearTimeout(a),a=null),s=u,i=e.apply(r,o),a||(r=o=null)):a||!1===n.trailing||(a=setTimeout(c,l)),i}}(i.prototype._strokeUpdate,this.throttle):this._strokeMoveUpdate=i.prototype._strokeUpdate,this.dotSize=r.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=r.penColor||"black",this.backgroundColor=r.backgroundColor||"rgba(0,0,0,0)",this.onBegin=r.onBegin,this.onEnd=r.onEnd,this._canvas=e,this._ctx=e.getContext("2d"),this.clear(),this._handleMouseDown=function(e){1===e.which&&(n._mouseButtonDown=!0,n._strokeBegin(e))},this._handleMouseMove=function(e){n._mouseButtonDown&&n._strokeMoveUpdate(e)},this._handleMouseUp=function(e){1===e.which&&n._mouseButtonDown&&(n._mouseButtonDown=!1,n._strokeEnd(e))},this._handleTouchStart=function(e){if(1===e.targetTouches.length){var t=e.changedTouches[0];n._strokeBegin(t)}},this._handleTouchMove=function(e){e.preventDefault();var t=e.targetTouches[0];n._strokeMoveUpdate(t)},this._handleTouchEnd=function(e){e.target===n._canvas&&(e.preventDefault(),n._strokeEnd(e))},this.on()}n.r(t),n.d(t,{default:()=>a}),r.prototype.velocityFrom=function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):1},r.prototype.distanceTo=function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))},r.prototype.equals=function(e){return this.x===e.x&&this.y===e.y&&this.time===e.time},o.prototype.length=function(){for(var e=0,t=void 0,n=void 0,r=0;r<=10;r+=1){var o=r/10,i=this._point(o,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),a=this._point(o,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(r>0){var s=i-t,c=a-n;e+=Math.sqrt(s*s+c*c)}t=i,n=a}return e},o.prototype._point=function(e,t,n,r,o){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*r*(1-e)*e*e+o*e*e*e},i.prototype.clear=function(){var e=this._ctx,t=this._canvas;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(),this._isEmpty=!0},i.prototype.fromDataURL=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new Image,o=n.ratio||window.devicePixelRatio||1,i=n.width||this._canvas.width/o,a=n.height||this._canvas.height/o;this._reset(),r.src=e,r.onload=function(){t._ctx.drawImage(r,0,0,i,a)},this._isEmpty=!1},i.prototype.toDataURL=function(e){var t;if("image/svg+xml"===e)return this._toSVG();for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this._canvas).toDataURL.apply(t,[e].concat(r))},i.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()},i.prototype.off=function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),this._canvas.removeEventListener("touchend",this._handleTouchEnd)},i.prototype.isEmpty=function(){return this._isEmpty},i.prototype._strokeBegin=function(e){this._data.push([]),this._reset(),this._strokeUpdate(e),"function"==typeof this.onBegin&&this.onBegin(e)},i.prototype._strokeUpdate=function(e){var t=e.clientX,n=e.clientY,r=this._createPoint(t,n),o=this._data[this._data.length-1],i=o&&o[o.length-1],a=i&&r.distanceTo(i)<this.minDistance;if(!i||!a){var s=this._addPoint(r),c=s.curve,u=s.widths;c&&u&&this._drawCurve(c,u.start,u.end),this._data[this._data.length-1].push({x:r.x,y:r.y,time:r.time,color:this.penColor})}},i.prototype._strokeEnd=function(e){var t=this.points.length>2,n=this.points[0];if(!t&&n&&this._drawDot(n),n){var r=this._data[this._data.length-1],o=r[r.length-1];n.equals(o)||r.push({x:n.x,y:n.y,time:n.time,color:this.penColor})}"function"==typeof this.onEnd&&this.onEnd(e)},i.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)},i.prototype._handleTouchEvents=function(){this._canvas.style.msTouchAction="none",this._canvas.style.touchAction="none",this._canvas.addEventListener("touchstart",this._handleTouchStart),this._canvas.addEventListener("touchmove",this._handleTouchMove),this._canvas.addEventListener("touchend",this._handleTouchEnd)},i.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor},i.prototype._createPoint=function(e,t,n){var o=this._canvas.getBoundingClientRect();return new r(e-o.left,t-o.top,n||(new Date).getTime())},i.prototype._addPoint=function(e){var t=this.points;if(t.push(e),t.length>2){3===t.length&&t.unshift(t[0]);var n=this._calculateCurveControlPoints(t[0],t[1],t[2]).c2,r=this._calculateCurveControlPoints(t[1],t[2],t[3]).c1,i=new o(t[1],n,r,t[2]),a=this._calculateCurveWidths(i);return t.shift(),{curve:i,widths:a}}return{}},i.prototype._calculateCurveControlPoints=function(e,t,n){var o=e.x-t.x,i=e.y-t.y,a=t.x-n.x,s=t.y-n.y,c=(e.x+t.x)/2,u=(e.y+t.y)/2,l=(t.x+n.x)/2,p=(t.y+n.y)/2,f=Math.sqrt(o*o+i*i),d=Math.sqrt(a*a+s*s),h=d/(f+d),g=l+(c-l)*h,m=p+(u-p)*h,y=t.x-g,v=t.y-m;return{c1:new r(c+y,u+v),c2:new r(l+y,p+v)}},i.prototype._calculateCurveWidths=function(e){var t=e.startPoint,n=e.endPoint,r={start:null,end:null},o=this.velocityFilterWeight*n.velocityFrom(t)+(1-this.velocityFilterWeight)*this._lastVelocity,i=this._strokeWidth(o);return r.start=this._lastWidth,r.end=i,this._lastVelocity=o,this._lastWidth=i,r},i.prototype._strokeWidth=function(e){return Math.max(this.maxWidth/(e+1),this.minWidth)},i.prototype._drawPoint=function(e,t,n){var r=this._ctx;r.moveTo(e,t),r.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1},i.prototype._drawCurve=function(e,t,n){var r=this._ctx,o=n-t,i=Math.floor(e.length());r.beginPath();for(var a=0;a<i;a+=1){var s=a/i,c=s*s,u=c*s,l=1-s,p=l*l,f=p*l,d=f*e.startPoint.x;d+=3*p*s*e.control1.x,d+=3*l*c*e.control2.x,d+=u*e.endPoint.x;var h=f*e.startPoint.y;h+=3*p*s*e.control1.y,h+=3*l*c*e.control2.y,h+=u*e.endPoint.y;var g=t+u*o;this._drawPoint(d,h,g)}r.closePath(),r.fill()},i.prototype._drawDot=function(e){var t=this._ctx,n="function"==typeof this.dotSize?this.dotSize():this.dotSize;t.beginPath(),this._drawPoint(e.x,e.y,n),t.closePath(),t.fill()},i.prototype._fromData=function(e,t,n){for(var o=0;o<e.length;o+=1){var i=e[o];if(i.length>1)for(var a=0;a<i.length;a+=1){var s=i[a],c=new r(s.x,s.y,s.time),u=s.color;if(0===a)this.penColor=u,this._reset(),this._addPoint(c);else if(a!==i.length-1){var l=this._addPoint(c),p=l.curve,f=l.widths;p&&f&&t(p,f,u)}}else this._reset(),n(i[0])}},i.prototype._toSVG=function(){var e=this,t=this._data,n=this._canvas,r=Math.max(window.devicePixelRatio||1,1),o=n.width/r,i=n.height/r,a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttributeNS(null,"width",n.width),a.setAttributeNS(null,"height",n.height),this._fromData(t,(function(e,t,n){var r=document.createElement("path");if(!(isNaN(e.control1.x)||isNaN(e.control1.y)||isNaN(e.control2.x)||isNaN(e.control2.y))){var o="M "+e.startPoint.x.toFixed(3)+","+e.startPoint.y.toFixed(3)+" C "+e.control1.x.toFixed(3)+","+e.control1.y.toFixed(3)+" "+e.control2.x.toFixed(3)+","+e.control2.y.toFixed(3)+" "+e.endPoint.x.toFixed(3)+","+e.endPoint.y.toFixed(3);r.setAttribute("d",o),r.setAttribute("stroke-width",(2.25*t.end).toFixed(3)),r.setAttribute("stroke",n),r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),a.appendChild(r)}}),(function(t){var n=document.createElement("circle"),r="function"==typeof e.dotSize?e.dotSize():e.dotSize;n.setAttribute("r",r),n.setAttribute("cx",t.x),n.setAttribute("cy",t.y),n.setAttribute("fill",t.color),a.appendChild(n)}));var s='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 '+o+" "+i+'" width="'+o+'" height="'+i+'">',c=a.innerHTML;if(void 0===c){var u=document.createElement("dummy"),l=a.childNodes;u.innerHTML="";for(var p=0;p<l.length;p+=1)u.appendChild(l[p].cloneNode(!0));c=u.innerHTML}return"data:image/svg+xml;base64,"+btoa(s+c+"</svg>")},i.prototype.fromData=function(e){var t=this;this.clear(),this._fromData(e,(function(e,n){return t._drawCurve(e,n.start,n.end)}),(function(e){return t._drawDot(e)})),this._data=e},i.prototype.toData=function(){return this._data};const a=i},7582:(e,t,n)=>{"use strict";n.d(t,{ZT:()=>o,_T:()=>a,ev:()=>s,pi:()=>i});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function s(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return o[e].call(n.exports,n,n.exports,a),n.exports}a.m=o,a.amdO={},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>e+".index.js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="ReactSurveyBuilder:",a.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var s,c;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var p=u[l];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==r+o){s=p;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",r+o),s.src=e),n[e]=[t];var f=(t,r)=>{s.onerror=s.onload=null,clearTimeout(d);var o=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(r))),t)return t(r)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),c&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&!e;)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e={179:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=a.p+a.u(t),s=new Error;a.l(i,(n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,s,c]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);c&&c(a)}for(t&&t(n);u<i.length;u++)o=i[u],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunkReactSurveyBuilder=self.webpackChunkReactSurveyBuilder||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var s={};return(()=>{"use strict";a.r(s),a.d(s,{ElementStore:()=>Ye,ReactSurveyBuilder:()=>hl,ReactSurveyGenerator:()=>gl,Registry:()=>Bc(),default:()=>yl});var e={};a.r(e),a.d(e,{FILE:()=>D,TEXT:()=>j,URL:()=>T});var t=a(7462),n=a(5671),r=a(3144),o=a(7326),i=a(9340),c=a(2963),u=a(1120),l=a(359),p=a.n(l),f=a(7445);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}var h=0,g=(0,l.memo)((function(e){var t=e.children,n=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]:y(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=t;return o[m]||(o[m]=(0,f.W)(e,t,n,r)),o[m]}(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"])),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),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(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)?d(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(n,2),o=r[0],i=r[1];return l.useEffect((function(){return i&&h++,function(){i&&0==--h&&(y()[m]=null)}}),[]),l.createElement(f.L.Provider,{value:o},t)}));g.displayName="DndProvider";var m=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function y(){return void 0!==a.g?a.g:window}function v(e){var t=null;return function(){return null==t&&(t=e()),t}}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var w=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,n;return t=e,n=[{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=[]}}],n&&b(t.prototype,n),e}(),S=v((function(){return/firefox/i.test(navigator.userAgent)})),E=v((function(){return Boolean(window.safari)}));function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var O=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,c=[],u=[],l=[],p=0;p<r-1;p++)a=t[p+1]-t[p],s=n[p+1]-n[p],u.push(a),c.push(s),l.push(s/a);for(var f=[l[0]],d=0;d<u.length-1;d++){var h=l[d],g=l[d+1];if(h*g<=0)f.push(0);else{a=u[d];var m=u[d+1],y=a+m;f.push(3*y/((y+m)/h+(y+a)/g))}}f.push(l[l.length-1]);for(var v,b=[],w=[],S=0;S<f.length-1;S++){v=l[S];var E=f[S],k=1/u[S],O=E+f[S+1]-v-v;b.push((v-E-O)*k),w.push(O*k*k)}this.xs=t,this.ys=n,this.c1s=f,this.c2s=b,this.c3s=w}var t,n;return t=e,n=[{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,c=0,u=i.length-1;c<=u;){var l=t[s=Math.floor(.5*(c+u))];if(l<e)c=s+1;else{if(!(l>e))return n[s];u=s-1}}var p=e-t[a=Math.max(0,u)],f=p*p;return n[a]+r[a]*p+o[a]*f+i[a]*p*f}}],n&&k(t.prototype,n),e}(),M=1;function C(e){var t=e.nodeType===M?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function x(e){return{x:e.clientX,y:e.clientY}}var _,D="__NATIVE_FILE__",T="__NATIVE_URL__",j="__NATIVE_TEXT__";function I(e,t,n){var r=t.reduce((function(t,n){return t||e.getData(n)}),"");return null!=r?r:n}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L=(N(_={},D,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items}},matchesTypes:["Files"]}),N(_,T,{exposeProperties:{urls:function(e,t){return I(e,t,"").split("\n")}},matchesTypes:["Url","text/uri-list"]}),N(_,j,{exposeProperties:{text:function(e,t){return I(e,t,"")}},matchesTypes:["Text","text/plain"]}),_);function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var P=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,n;return t=e,(n=[{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(){}}])&&A(t.prototype,n),e}();function R(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(L).filter((function(e){return L[e].matchesTypes.some((function(e){return t.indexOf(e)>-1}))}))[0]||null}function B(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var z=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,n;return t=e,(n=[{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}}])&&B(t.prototype,n),e}();function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){H(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(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}function Z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var K=function(){function t(e,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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&&C(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=x(e);r.monitor.isDragging()&&r.actions.endDrag(),r.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:r.getSourceClientOffset,clientOffset:n});var o=e.dataTransfer,i=R(o);if(r.monitor.isDragging()){if(o&&"function"==typeof o.setDragImage){var a=r.monitor.getSourceId(),s=r.sourceNodes.get(a),c=r.sourcePreviewNodes.get(a)||s;if(c){var u=r.getCurrentSourcePreviewNodeOptions(),l=function(e,t,n,r,o){var i,a=function(e){var t;return"IMG"===e.nodeName&&(S()||!(null===(t=document.documentElement)||void 0===t?void 0:t.contains(e)))}(t),s=C(a?e:t),c={x:n.x-s.x,y:n.y-s.y},u=e.offsetWidth,l=e.offsetHeight,p=r.anchorX,f=r.anchorY,d=function(e,t,n,r){var o=e?t.width:n,i=e?t.height:r;return E()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(a,t,u,l),h=d.dragPreviewWidth,g=d.dragPreviewHeight,m=o.offsetX,y=o.offsetY,v=0===y||y;return{x:0===m||m?m:new O([0,.5,1],[c.x,c.x/u*h,c.x+h-u]).interpolate(p),y:v?y:(i=new O([0,.5,1],[c.y,c.y/l*g,c.y+g-l]).interpolate(f),E()&&a&&(i+=(window.devicePixelRatio-1)*g),i)}}(s,c,n,{anchorX:u.anchorX,anchorY:u.anchorY},{offsetX:u.offsetX,offsetY:u.offsetY});o.setDragImage(c,l.x,l.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(i)r.beginDragNativeItem(i);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=R(t);n&&r.beginDragNativeItem(n,t)}},this.handleTopDragEnter=function(e){var t=r.dragEnterTargetIds;r.dragEnterTargetIds=[],r.monitor.isDragging()&&(r.altKeyPressed=e.altKey,S()||r.actions.hover(t,{clientOffset:x(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:x(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:x(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 z(n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new w(this.isNodeInDocument)}var n,r;return n=t,r=[{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(){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,this.addEventListeners(this.window)}}},{key:"teardown",value:function(){void 0!==this.window&&(this.window.__isReactDndBackendSetUp=!1,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 U({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 U({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var t=this.monitor.getItemType();return Object.keys(e).some((function(n){return e[n]===t}))}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var n=new P(L[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}}],r&&Z(n.prototype,r),t}(),Y=function(e,t){return new K(e,t)},V=a(7582),G=a(4806),W=a(680),q=a(5687),Q=a(6284),J=a(8222),X=a(9943);function $(e,t){return Object.keys(e).reduce((function(n,r){return n[r]=(0,V.pi)({timeZone:t},e[r]),n}),{})}function ee(e,t){return Object.keys((0,V.pi)((0,V.pi)({},e),t)).reduce((function(n,r){return n[r]=(0,V.pi)((0,V.pi)({},e[r]||{}),t[r]||{}),n}),{})}function te(e,t){if(!t)return e;var n=Q.C.formats;return(0,V.pi)((0,V.pi)((0,V.pi)({},n),e),{date:ee($(n.date,t),$(e.date||{},t)),time:ee($(n.time,t),$(e.time||{},t))})}function ne(e,t,n,r,o){var i=e.locale,a=e.formats,s=e.messages,c=e.defaultLocale,u=e.defaultFormats,l=e.fallbackOnEmptyString,p=e.onError,f=e.timeZone,d=e.defaultRichTextElements;void 0===n&&(n={id:""});var h=n.id,g=n.defaultMessage;(0,q.kG)(!!h,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var m=String(h),y=s&&Object.prototype.hasOwnProperty.call(s,m)&&s[m];if(Array.isArray(y)&&1===y.length&&y[0].type===X.wD.literal)return y[0].value;if(!r&&y&&"string"==typeof y&&!d)return y.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=(0,V.pi)((0,V.pi)({},d),r||{}),a=te(a,f),u=te(u,f),!y){if(!1===l&&""===y)return y;if((!g||i&&i.toLowerCase()!==c.toLowerCase())&&p(new J.$6(n,i)),g)try{return t.getMessageFormat(g,c,u,o).format(r)}catch(e){return p(new J.X9('Error formatting default message for: "'.concat(m,'", rendering default message verbatim'),i,n,e)),"string"==typeof g?g:m}return m}try{return t.getMessageFormat(y,i,a,(0,V.pi)({formatters:t},o||{})).format(r)}catch(e){p(new J.X9('Error formatting message: "'.concat(m,'", using ').concat(g?"default message":"id"," as fallback."),i,n,e))}if(g)try{return t.getMessageFormat(g,c,u,o).format(r)}catch(e){p(new J.X9('Error formatting the default message for: "'.concat(m,'", rendering message verbatim'),i,n,e))}return"string"==typeof y?y:"string"==typeof g?g:m}var re=a(2644),oe=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function ie(e,t,n){var r=e.locale,o=e.formats,i=e.onError;void 0===n&&(n={});var a=n.format,s=a&&(0,re.TB)(o,"number",a,i)||{};return t(r,(0,re.L6)(n,oe,s))}function ae(e,t,n,r){void 0===r&&(r={});try{return ie(e,t,r).format(n)}catch(t){e.onError(new J.Rw(J.bc.FORMAT_ERROR,"Error formatting number.",t))}return String(n)}function se(e,t,n,r){void 0===r&&(r={});try{return ie(e,t,r).formatToParts(n)}catch(t){e.onError(new J.Rw(J.bc.FORMAT_ERROR,"Error formatting number.",t))}return[]}var ce=a(1050),ue=["numeric","style"];function le(e,t,n,r,o){void 0===o&&(o={}),r||(r="second"),Intl.RelativeTimeFormat||e.onError(new ce.u_('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',ce.jK.MISSING_INTL_API));try{return function(e,t,n){var r=e.locale,o=e.formats,i=e.onError;void 0===n&&(n={});var a=n.format,s=!!a&&(0,re.TB)(o,"relative",a,i)||{};return t(r,(0,re.L6)(n,ue,s))}(e,t,o).format(n,r)}catch(t){e.onError(new J.Qe("Error formatting relative time.",e.locale,t))}return String(n)}var pe=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem"];function fe(e,t,n,r){var o=e.locale,i=e.formats,a=e.onError,s=e.timeZone;void 0===r&&(r={});var c=r.format,u=(0,V.pi)((0,V.pi)({},s&&{timeZone:s}),c&&(0,re.TB)(i,t,c,a)),l=(0,re.L6)(r,pe,u);return"time"!==t||l.hour||l.minute||l.second||l.timeStyle||l.dateStyle||(l=(0,V.pi)((0,V.pi)({},l),{hour:"numeric",minute:"numeric"})),n(o,l)}function de(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return fe(e,"date",t,a).format(s)}catch(t){e.onError(new J.Rw(J.bc.FORMAT_ERROR,"Error formatting date.",t))}return String(s)}function he(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return fe(e,"time",t,a).format(s)}catch(t){e.onError(new J.Rw(J.bc.FORMAT_ERROR,"Error formatting time.",t))}return String(s)}function ge(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=n[2],s=void 0===a?{}:a,c=e.timeZone,u=e.locale,l=e.onError,p=(0,re.L6)(s,pe,c?{timeZone:c}:{});try{return t(u,p).formatRange(o,i)}catch(e){l(new J.Rw(J.bc.FORMAT_ERROR,"Error formatting date time range.",e))}return String(o)}function me(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return fe(e,"date",t,a).formatToParts(s)}catch(t){e.onError(new J.Rw(J.bc.FORMAT_ERROR,"Error formatting date.",t))}return[]}function ye(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return fe(e,"time",t,a).formatToParts(s)}catch(t){e.onError(new J.Rw(J.bc.FORMAT_ERROR,"Error formatting time.",t))}return[]}var ve=["localeMatcher","type"];function be(e,t,n,r){var o=e.locale,i=e.onError;void 0===r&&(r={}),Intl.PluralRules||i(new ce.u_('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ce.jK.MISSING_INTL_API));var a=(0,re.L6)(r,ve);try{return t(o,a).select(n)}catch(e){i(new J.Qe("Error formatting plural.",o,e))}return"other"}var we=["localeMatcher","type","style"],Se=Date.now();function Ee(e,t,n,r){void 0===r&&(r={});var o=ke(e,t,n,r).reduce((function(e,t){var n=t.value;return"string"!=typeof n?e.push(n):"string"==typeof e[e.length-1]?e[e.length-1]+=n:e.push(n),e}),[]);return 1===o.length?o[0]:o}function ke(e,t,n,r){var o=e.locale,i=e.onError;void 0===r&&(r={}),Intl.ListFormat||i(new ce.u_('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',ce.jK.MISSING_INTL_API));var a=(0,re.L6)(r,we);try{var s={},c=n.map((function(e,t){if("object"==typeof e){var n=function(e){return"".concat(Se,"_").concat(e,"_").concat(Se)}(t);return s[n]=e,n}return String(e)}));return t(o,a).formatToParts(c).map((function(e){return"literal"===e.type?e:(0,V.pi)((0,V.pi)({},e),{value:s[e.value]||e.value})}))}catch(e){i(new J.Rw(J.bc.FORMAT_ERROR,"Error formatting list.",e))}return n}var Oe=["localeMatcher","style","type","fallback"];function Me(e,t,n,r){var o=e.locale,i=e.onError;Intl.DisplayNames||i(new ce.u_('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',ce.jK.MISSING_INTL_API));var a=(0,re.L6)(r,Oe);try{return t(o,a).of(n)}catch(e){i(new J.Rw(J.bc.FORMAT_ERROR,"Error formatting display name.",e))}}var Ce=a(1092);function xe(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function _e(e){return e?Object.keys(e).reduce((function(t,n){var r=e[n];return t[n]=(0,Ce.Gt)(r)?(0,W.dt)(r):r,t}),{}):e}var De=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var a=_e(r),s=ne.apply(void 0,(0,V.ev)([e,t,n,a],o,!1));return Array.isArray(s)?l.Children.toArray(s):s},Te=function(e,t){var n=e.defaultRichTextElements,r=(0,V._T)(e,["defaultRichTextElements"]),o=_e(n),i=function(e,t){var n=(0,re.ax)(t),r=(0,V.pi)((0,V.pi)({},re.Z0),e),o=r.locale,i=r.defaultLocale,a=r.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&a?a(new J.gb('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&a&&a(new J.gb('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new J.OV('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),function(e){var t;e.onWarn&&e.defaultRichTextElements&&"string"==typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&e.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}(r),(0,V.pi)((0,V.pi)({},r),{formatters:n,formatNumber:ae.bind(null,r,n.getNumberFormat),formatNumberToParts:se.bind(null,r,n.getNumberFormat),formatRelativeTime:le.bind(null,r,n.getRelativeTimeFormat),formatDate:de.bind(null,r,n.getDateTimeFormat),formatDateToParts:me.bind(null,r,n.getDateTimeFormat),formatTime:he.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:ge.bind(null,r,n.getDateTimeFormat),formatTimeToParts:ye.bind(null,r,n.getDateTimeFormat),formatPlural:be.bind(null,r,n.getPluralRules),formatMessage:ne.bind(null,r,n),$t:ne.bind(null,r,n),formatList:Ee.bind(null,r,n.getListFormat),formatListToParts:ke.bind(null,r,n.getListFormat),formatDisplayName:Me.bind(null,r,n.getDisplayNames)})}((0,V.pi)((0,V.pi)((0,V.pi)({},W.Z0),r),{defaultRichTextElements:o}),t);return(0,V.pi)((0,V.pi)({},i),{formatMessage:De.bind(null,{locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:o},i.formatters)})},je=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache=(0,re.Sn)(),t.state={cache:t.cache,intl:Te(xe(t.props),t.cache),prevConfig:xe(t.props)},t}return(0,V.ZT)(t,e),t.getDerivedStateFromProps=function(e,t){var n=t.prevConfig,r=t.cache,o=xe(e);return(0,W.wU)(n,o)?null:{intl:Te(o,r),prevConfig:o}},t.prototype.render=function(){return(0,W.lq)(this.state.intl),l.createElement(G.zt,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=W.Z0,t}(l.PureComponent);const Ie=je;function Ne(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 Le(e,t){if(e){if("string"==typeof e)return Ne(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)?Ne(e,t):void 0}}function Ae(e){return function(e){if(Array.isArray(e))return Ne(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Le(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.")}()}var Pe=a(9142);function Re(e,t,n){return(t=(0,Pe.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Be=a(7145),ze=a.n(Be);var Fe,Ue,He,Ze=a(2083),Ke=new class{constructor(e){const t=this;t.actions={},t.mutations={},t.state={},t.status="resting",t.callbacks=[],e.hasOwnProperty("actions")&&(t.actions=e.actions),e.hasOwnProperty("mutations")&&(t.mutations=e.mutations),t.state=new Proxy(e.initialState||{},{set:(e,n,r)=>(e[n]=r,t.processCallbacks(t.state),t.status="resting",!0)})}dispatch(e,t){const n=this;return"function"!=typeof n.actions[e]?(console.error(`Action "${e}" doesn't exist.`),!1):(n.status="action",n.actions[e](n,t))}commit(e,t){const n=this;if("function"!=typeof n.mutations[e])return console.error(`Mutation "${e}" doesn't exist`),!1;n.status="mutation";let r=n.mutations[e](n.state,t);return n.state=r,!0}processCallbacks(e){return!!this.callbacks.length&&(this.callbacks.forEach((t=>t(e))),!0)}subscribe(e){return"function"!=typeof e?(console.error("You can only subscribe to Store changes with a valid function"),!1):(this.callbacks.push(e),!0)}}({actions:{setData:function(e,t,n){e.commit("setData",t),n&&this.save(t)},load:function(e,t){var n=this,r=t.loadUrl,o=t.saveUrl,i=t.data,a=t.saveAlways;Fe=o;var s=a||void 0===a;e.commit("setSaveAlways",s),He?He().then((function(t){i&&i.length>0&&0===t.length&&i.forEach((function(e){return t.push(e)})),n.setData(e,t)})):r?(0,Ze.U)(r).then((function(t){i&&i.length>0&&0===t.length&&i.forEach((function(e){return t.push(e)})),n.setData(e,t)})):this.setData(e,i)},create:function(e,t){var n=e.state,r=n.data,o=n.saveAlways;r.push(t),this.setData(e,r,o)},delete:function(e,t){var n=e.state,r=n.data,o=n.saveAlways;r.splice(r.indexOf(t),1),this.setData(e,r,o)},deleteLastItem:function(e){var t=e.state.lastItem;t&&(this.delete(e,t),e.commit("setLastItem",null))},resetLastItem:function(e){e.state.lastItem&&e.commit("setLastItem",null)},post:function(e){var t=e.state.data;this.setData(e,t,!0)},updateOrder:function(e,t){var n=e.state.saveAlways,r=t.filter((function(e){return e&&!e.parentId}));t.filter((function(e){return e&&e.parentId})).forEach((function(e){return r.push(e)})),this.setData(e,r,n)},insertItem:function(e,t){e.commit("setLastItem",t.isContainer?null:t)},save:function(e){Ue?Ue({task_data:e}):Fe&&(0,Ze.v)(Fe,{task_data:e})}},mutations:{setData:function(e,t){return e.data=t,e},setSaveAlways:function(e,t){return e.saveAlways=t,e},setLastItem:function(e,t){return e.lastItem=t,e}},initialState:{data:[],saveAlways:!0,lastItem:null}});Ke.setExternalHandler=function(e,t){He=e,Ue=t};const Ye=Ke;function Ve(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function Ge(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ve(i,r,o,a,s,"next",e)}function s(e){Ve(i,r,o,a,s,"throw",e)}a(void 0)}))}}function We(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=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||Le(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var qe=a(4687),Qe=a.n(qe);const Je=function(e){var t=We(p().useState(null),2),n=t[0],r=t[1];if(p().useEffect((function(){var e=function(){var e=Ge(Qe().mark((function e(){var t;return Qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.e(967).then(a.bind(a,7967));case 2:t=e.sent,r((function(){return t.default}));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[]),!n)return p().createElement("div",null,"Loading...");var o=n;return p().createElement(o,e)};var Xe=a(5697),$e=a.n(Xe),et=a(4318),tt=a.n(et),nt=a(4785);const rt="card",ot="box";function it(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 at(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?it(Object(n),!0).forEach((function(t){Re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var st={border:"1px dashed gray",padding:"0.5rem 1rem",marginBottom:".5rem",backgroundColor:"white",cursor:"pointer"},ct={beginDrag:function(e){return{itemType:rt,id:e.id,index:e.index}}},ut={drop:function(e,t,n){if(n){var r=t.getItem(),o=e.index,i=r.index;e.data&&e.data.isContainer||r.itemType===rt||r.data&&"function"==typeof r.setAsChild&&-1===i&&e.insertCard(r,o,r.id)}},hover:function(e,t,n){var r,o,i=t.getItem();if((i.itemType!==ot||-1!==i.index)&&(null===(r=e.data)||void 0===r||!r.isContainer||null!==(o=i.data)&&void 0!==o&&o.isContainer)){var a=i.index,s=e.index;if(a!==s){if(-1===a){if(e.data&&e.data.isContainer)return;i.index=s,e.insertCard(i.onCreate(i.data),s)}var c=(0,et.findDOMNode)(n).getBoundingClientRect(),u=(c.bottom-c.top)/2,l=t.getClientOffset().y-c.top;a<s&&l<u||a>s&&l>u||(e.moveCard(a,s),i.index=s)}}}};function lt(e){var o=function(o){(0,i.Z)(f,o);var a,s,l=(a=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=(0,u.Z)(a);if(s){var n=(0,u.Z)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,c.Z)(this,e)});function f(){return(0,n.Z)(this,f),l.apply(this,arguments)}return(0,r.Z)(f,[{key:"render",value:function(){var n=this.props,r=n.isDragging?0:1;return(0,n.connectDragPreview)((0,n.connectDropTarget)(p().createElement("div",null,p().createElement(e,(0,t.Z)({},this.props,{style:at(at({},st),{},{opacity:r})})))))}}]),f}(l.Component);Re(o,"propTypes",{connectDragSource:$e().func,connectDragPreview:$e().func,connectDropTarget:$e().func,index:$e().number.isRequired,isDragging:$e().bool,id:$e().any.isRequired,moveCard:$e().func.isRequired,seq:$e().number}),Re(o,"defaultProps",{seq:-1});var a=(0,nt.DropTarget)([rt,ot],ut,(function(e){return{connectDropTarget:e.dropTarget()}}))(o);return(0,nt.DragSource)(rt,ct,(function(e,t){return{connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview(),isDragging:t.isDragging()}}))(a)}var pt=function(e){(0,i.Z)(s,e);var t,o,a=(t=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.Z)(t);if(o){var r=(0,u.Z)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return(0,c.Z)(this,e)});function s(){return(0,n.Z)(this,s),a.apply(this,arguments)}return(0,r.Z)(s,[{key:"render",value:function(){var e=this.props.intl,t=this.props.show?"survey-place-holder":"survey-place-holder-hidden",n=this.props.show?"Dropzone"===this.props.text?e.surveyatMessage({id:"drop-zone"}):this.props.text:"";return p().createElement("div",{className:t},p().createElement("div",null,n))}}]),s}(p().Component);const ft=(0,G.ZP)(pt);pt.propTypes={text:$e().string,show:$e().bool},pt.defaultProps={text:"Dropzone",show:!1};var dt=a(4301),ht=a.n(dt),gt=a(3162);function mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(n),!0).forEach((function(t){Re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vt=a(3366);function bt(e,t){if(null==e)return{};var n,r,o=(0,vt.Z)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var wt=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function St(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.Z)(e);if(t){var o=(0,u.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.Z)(this,n)}}var Et=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}(),kt=Math.abs,Ot=String.fromCharCode,Mt=Object.assign;function Ct(e){return e.trim()}function xt(e,t,n){return e.replace(t,n)}function _t(e,t){return e.indexOf(t)}function Dt(e,t){return 0|e.charCodeAt(t)}function Tt(e,t,n){return e.slice(t,n)}function jt(e){return e.length}function It(e){return e.length}function Nt(e,t){return t.push(e),e}var Lt=1,At=1,Pt=0,Rt=0,Bt=0,zt="";function Ft(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Lt,column:At,length:a,return:""}}function Ut(e,t){return Mt(Ft("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ht(){return Bt=Rt>0?Dt(zt,--Rt):0,At--,10===Bt&&(At=1,Lt--),Bt}function Zt(){return Bt=Rt<Pt?Dt(zt,Rt++):0,At++,10===Bt&&(At=1,Lt++),Bt}function Kt(){return Dt(zt,Rt)}function Yt(){return Rt}function Vt(e,t){return Tt(zt,e,t)}function Gt(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 Wt(e){return Lt=At=1,Pt=jt(zt=e),Rt=0,[]}function qt(e){return zt="",e}function Qt(e){return Ct(Vt(Rt-1,$t(91===e?e+2:40===e?e+1:e)))}function Jt(e){for(;(Bt=Kt())&&Bt<33;)Zt();return Gt(e)>2||Gt(Bt)>3?"":" "}function Xt(e,t){for(;--t&&Zt()&&!(Bt<48||Bt>102||Bt>57&&Bt<65||Bt>70&&Bt<97););return Vt(e,Yt()+(t<6&&32==Kt()&&32==Zt()))}function $t(e){for(;Zt();)switch(Bt){case e:return Rt;case 34:case 39:34!==e&&39!==e&&$t(Bt);break;case 40:41===e&&$t(e);break;case 92:Zt()}return Rt}function en(e,t){for(;Zt()&&e+Bt!==57&&(e+Bt!==84||47!==Kt()););return"/*"+Vt(t,Rt-1)+"*"+Ot(47===e?e:Zt())}function tn(e){for(;!Gt(Kt());)Zt();return Vt(e,Rt)}var nn="-ms-",rn="-moz-",on="-webkit-",an="comm",sn="rule",cn="decl",un="@keyframes";function ln(e,t){for(var n="",r=It(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function pn(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case cn:return e.return=e.return||e.value;case an:return"";case un:return e.return=e.value+"{"+ln(e.children,r)+"}";case sn:e.value=e.props.join(",")}return jt(n=ln(e.children,r))?e.return=e.value+"{"+n+"}":""}function fn(e){return qt(dn("",null,null,null,[""],e=Wt(e),0,[0],e))}function dn(e,t,n,r,o,i,a,s,c){for(var u=0,l=0,p=a,f=0,d=0,h=0,g=1,m=1,y=1,v=0,b="",w=o,S=i,E=r,k=b;m;)switch(h=v,v=Zt()){case 40:if(108!=h&&58==Dt(k,p-1)){-1!=_t(k+=xt(Qt(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=Qt(v);break;case 9:case 10:case 13:case 32:k+=Jt(h);break;case 92:k+=Xt(Yt()-1,7);continue;case 47:switch(Kt()){case 42:case 47:Nt(gn(en(Zt(),Yt()),t,n),c);break;default:k+="/"}break;case 123*g:s[u++]=jt(k)*y;case 125*g:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+l:-1==y&&(k=xt(k,/\f/g,"")),d>0&&jt(k)-p&&Nt(d>32?mn(k+";",r,n,p-1):mn(xt(k," ","")+";",r,n,p-2),c);break;case 59:k+=";";default:if(Nt(E=hn(k,t,n,u,l,o,s,b,w=[],S=[],p),i),123===v)if(0===l)dn(k,t,E,E,w,i,p,s,S);else switch(99===f&&110===Dt(k,3)?100:f){case 100:case 108:case 109:case 115:dn(e,E,E,r&&Nt(hn(e,E,E,0,0,o,s,b,o,w=[],p),S),o,S,p,s,r?w:S);break;default:dn(k,E,E,E,[""],S,0,s,S)}}u=l=d=0,g=y=1,b=k="",p=a;break;case 58:p=1+jt(k),d=h;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==Ht())continue;switch(k+=Ot(v),v*g){case 38:y=l>0?1:(k+="\f",-1);break;case 44:s[u++]=(jt(k)-1)*y,y=1;break;case 64:45===Kt()&&(k+=Qt(Zt())),f=Kt(),l=p=jt(b=k+=tn(Yt())),v++;break;case 45:45===h&&2==jt(k)&&(g=0)}}return i}function hn(e,t,n,r,o,i,a,s,c,u,l){for(var p=o-1,f=0===o?i:[""],d=It(f),h=0,g=0,m=0;h<r;++h)for(var y=0,v=Tt(e,p+1,p=kt(g=a[h])),b=e;y<d;++y)(b=Ct(g>0?f[y]+" "+v:xt(v,/&\f/g,f[y])))&&(c[m++]=b);return Ft(e,t,n,0===o?sn:s,c,u,l)}function gn(e,t,n){return Ft(e,t,n,an,Ot(Bt),Tt(e,2,-2),0)}function mn(e,t,n,r){return Ft(e,t,n,cn,Tt(e,0,r),Tt(e,r+1,-1),r)}var yn=function(e,t,n){for(var r=0,o=0;r=o,o=Kt(),38===r&&12===o&&(t[n]=1),!Gt(o);)Zt();return Vt(e,Rt)},vn=new WeakMap,bn=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)||vn.get(n))&&!r){vn.set(e,!0);for(var o=[],i=function(e,t){return qt(function(e,t){var n=-1,r=44;do{switch(Gt(r)){case 0:38===r&&12===Kt()&&(t[n]=1),e[n]+=yn(Rt-1,t,n);break;case 2:e[n]+=Qt(r);break;case 4:if(44===r){e[++n]=58===Kt()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Ot(r)}}while(r=Zt());return e}(Wt(e),t))}(t,o),a=n.props,s=0,c=0;s<i.length;s++)for(var u=0;u<a.length;u++,c++)e.props[c]=o[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+i[s]}}},wn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Sn(e,t){switch(function(e,t){return 45^Dt(e,0)?(((t<<2^Dt(e,0))<<2^Dt(e,1))<<2^Dt(e,2))<<2^Dt(e,3):0}(e,t)){case 5103:return on+"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 on+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return on+e+rn+e+nn+e+e;case 6828:case 4268:return on+e+nn+e+e;case 6165:return on+e+nn+"flex-"+e+e;case 5187:return on+e+xt(e,/(\w+).+(:[^]+)/,on+"box-$1$2"+nn+"flex-$1$2")+e;case 5443:return on+e+nn+"flex-item-"+xt(e,/flex-|-self/,"")+e;case 4675:return on+e+nn+"flex-line-pack"+xt(e,/align-content|flex-|-self/,"")+e;case 5548:return on+e+nn+xt(e,"shrink","negative")+e;case 5292:return on+e+nn+xt(e,"basis","preferred-size")+e;case 6060:return on+"box-"+xt(e,"-grow","")+on+e+nn+xt(e,"grow","positive")+e;case 4554:return on+xt(e,/([^-])(transform)/g,"$1"+on+"$2")+e;case 6187:return xt(xt(xt(e,/(zoom-|grab)/,on+"$1"),/(image-set)/,on+"$1"),e,"")+e;case 5495:case 3959:return xt(e,/(image-set\([^]*)/,on+"$1$`$1");case 4968:return xt(xt(e,/(.+:)(flex-)?(.*)/,on+"box-pack:$3"+nn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+on+e+e;case 4095:case 3583:case 4068:case 2532:return xt(e,/(.+)-inline(.+)/,on+"$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(jt(e)-1-t>6)switch(Dt(e,t+1)){case 109:if(45!==Dt(e,t+4))break;case 102:return xt(e,/(.+:)(.+)-([^]+)/,"$1"+on+"$2-$3$1"+rn+(108==Dt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~_t(e,"stretch")?Sn(xt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Dt(e,t+1))break;case 6444:switch(Dt(e,jt(e)-3-(~_t(e,"!important")&&10))){case 107:return xt(e,":",":"+on)+e;case 101:return xt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+on+(45===Dt(e,14)?"inline-":"")+"box$3$1"+on+"$2$3$1"+nn+"$2box$3")+e}break;case 5936:switch(Dt(e,t+11)){case 114:return on+e+nn+xt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return on+e+nn+xt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return on+e+nn+xt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return on+e+nn+e+e}return e}var En=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case cn:e.return=Sn(e.value,e.length);break;case un:return ln([Ut(e,{value:xt(e.value,"@","@"+on)})],r);case sn: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 ln([Ut(e,{props:[xt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ln([Ut(e,{props:[xt(t,/:(plac\w+)/,":"+on+"input-$1")]}),Ut(e,{props:[xt(t,/:(plac\w+)/,":-moz-$1")]}),Ut(e,{props:[xt(t,/:(plac\w+)/,nn+"input-$1")]})],r)}return""}))}}],kn=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||En,a={},s=[];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++)a[t[n]]=!0;s.push(e)}));var c,u,l,p,f=[pn,(p=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&p(e)})],d=(u=[bn,wn].concat(i,f),l=It(u),function(e,t,n,r){for(var o="",i=0;i<l;i++)o+=u[i](e,t,n,r)||"";return o});o=function(e,t,n,r){c=n,function(e){ln(fn(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Et({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(s),h},On=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Mn={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};function Cn(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var xn=/[A-Z]|^ms/g,_n=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Dn=function(e){return 45===e.charCodeAt(1)},Tn=function(e){return null!=e&&"boolean"!=typeof e},jn=Cn((function(e){return Dn(e)?e:e.replace(xn,"-$&").toLowerCase()})),In=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(_n,(function(e,t,n){return Ln={name:t,styles:n,next:Ln},t}))}return 1===Mn[e]||Dn(e)||"number"!=typeof t||0===t?t:t+"px"};function Nn(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 Ln={name:n.name,styles:n.styles,next:Ln},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Ln={name:r.name,styles:r.styles,next:Ln},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+=Nn(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]+"}":Tn(a)&&(r+=jn(i)+":"+In(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Nn(e,t,a);switch(i){case"animation":case"animationName":r+=jn(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var c=0;c<a.length;c++)Tn(a[c])&&(r+=jn(i)+":"+In(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Ln,i=n(e);return Ln=o,Nn(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Ln,An=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Pn=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="";Ln=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Nn(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Nn(n,t,e[a]),r&&(o+=i[a]);An.lastIndex=0;for(var s,c="";null!==(s=An.exec(o));)c+="-"+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)+c;return{name:u,styles:o,next:Ln}},Rn=!!l.useInsertionEffect&&l.useInsertionEffect,Bn=Rn||function(e){return e()},zn=(Rn||l.useLayoutEffect,{}.hasOwnProperty),Fn=l.createContext("undefined"!=typeof HTMLElement?kn({key:"css"}):null);Fn.Provider;var Un=function(e){return(0,l.forwardRef)((function(t,n){var r=(0,l.useContext)(Fn);return e(t,r,n)}))},Hn=l.createContext({}),Zn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Kn=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return On(t,n,r),Bn((function(){return function(e,t,n){On(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)}}(t,n,r)})),null},Yn=Un((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Zn],i=[r],a="";"string"==typeof e.className?a=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=Pn(i,void 0,l.useContext(Hn));a+=t.key+"-"+s.name;var c={};for(var u in e)zn.call(e,u)&&"css"!==u&&u!==Zn&&(c[u]=e[u]);return c.ref=n,c.className=a,l.createElement(l.Fragment,null,l.createElement(Kn,{cache:t,serialized:s,isStringTag:"string"==typeof o}),l.createElement(o,c))})),Vn=Yn,Gn=(a(8679),function(e,t){var n=arguments;if(null==t||!zn.call(t,"css"))return l.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Vn,o[1]=function(e,t){var n={};for(var r in t)zn.call(t,r)&&(n[r]=t[r]);return n[Zn]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return l.createElement.apply(null,o)});function Wn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Pn(t)}var qn=a(1002);const Qn=Math.min,Jn=Math.max,Xn=Math.round,$n=Math.floor,er=e=>({x:e,y:e});function tr(e){return or(e)?(e.nodeName||"").toLowerCase():"#document"}function nr(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function rr(e){var t;return null==(t=(or(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function or(e){return e instanceof Node||e instanceof nr(e).Node}function ir(e){return e instanceof Element||e instanceof nr(e).Element}function ar(e){return e instanceof HTMLElement||e instanceof nr(e).HTMLElement}function sr(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof nr(e).ShadowRoot)}function cr(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ur(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ur(e){return nr(e).getComputedStyle(e)}function lr(e){const t=function(e){if("html"===tr(e))return e;const t=e.assignedSlot||e.parentNode||sr(e)&&e.host||rr(e);return sr(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(tr(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:ar(t)&&cr(t)?t:lr(t)}function pr(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=lr(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=nr(o);return i?t.concat(a,a.visualViewport||[],cr(o)?o:[],a.frameElement&&n?pr(a.frameElement):[]):t.concat(o,pr(o,[],n))}function fr(e){return ir(e)?e:e.contextElement}function dr(e){const t=fr(e);if(!ar(t))return er(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=function(e){const t=ur(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ar(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Xn(n)!==i||Xn(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}(t);let a=(i?Xn(n.width):n.width)/r,s=(i?Xn(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const hr=er(0);function gr(e){const t=nr(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:hr}function mr(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=fr(e);let a=er(1);t&&(r?ir(r)&&(a=dr(r)):a=dr(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==nr(e))&&t}(i,n,r)?gr(i):er(0);let c=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,l=o.width/a.x,p=o.height/a.y;if(i){const e=nr(i),t=r&&ir(r)?nr(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=dr(n),t=n.getBoundingClientRect(),r=ur(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,l*=e.x,p*=e.y,c+=o,u+=i,n=nr(n).frameElement}}return f={width:l,height:p,x:c,y:u},{...f,top:f.y,left:f.x,right:f.x+f.width,bottom:f.y+f.height};var f}var yr=a(3469),vr=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],br=function(){};function wr(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Sr(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];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(wr(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Er=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===(0,qn.Z)(e)&&null!==e?[e]:[];var t},kr=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,yt({},bt(e,vr))},Or=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function Mr(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Cr(e){return Mr(e)?window.pageYOffset:e.scrollTop}function xr(e,t){Mr(e)?window.scrollTo(0,t):e.scrollTop=t}function _r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:br,o=Cr(e),i=t-o,a=0;!function t(){var s,c=i*((s=(s=a+=10)/n-1)*s*s+1)+o;xr(e,c),a<n?window.requestAnimationFrame(t):r(e)}()}function Dr(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?xr(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&xr(e,Math.max(t.offsetTop-o,0))}function Tr(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var jr=!1,Ir={get passive(){return jr=!0}},Nr="undefined"!=typeof window?window:{};Nr.addEventListener&&Nr.removeEventListener&&(Nr.addEventListener("p",br,Ir),Nr.removeEventListener("p",br,!1));var Lr=jr;function Ar(e){return null!=e}function Pr(e,t,n){return e?t:n}var Rr=["children","innerProps"],Br=["children","innerProps"];var zr,Fr,Ur,Hr=function(e){return"auto"===e?"bottom":e},Zr=(0,l.createContext)(null),Kr=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,s=e.theme,c=((0,l.useContext)(Zr)||{}).setPortalPlacement,u=(0,l.useRef)(null),p=We((0,l.useState)(r),2),f=p[0],d=p[1],h=We((0,l.useState)(null),2),g=h[0],m=h[1],y=s.spacing.controlHeight;return(0,yr.Z)((function(){var e=u.current;if(e){var t="fixed"===i,s=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,c=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var l,p=c.getBoundingClientRect().height,f=n.getBoundingClientRect(),d=f.bottom,h=f.height,g=f.top,m=n.offsetParent.getBoundingClientRect().top,y=a||Mr(l=c)?window.innerHeight:l.clientHeight,v=Cr(c),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),S=m-w,E=y-g,k=S+v,O=p-v-g,M=d-y+v+b,C=v+g-w,x=160;switch(o){case"auto":case"bottom":if(E>=h)return{placement:"bottom",maxHeight:t};if(O>=h&&!a)return i&&_r(c,M,x),{placement:"bottom",maxHeight:t};if(!a&&O>=r||a&&E>=r)return i&&_r(c,M,x),{placement:"bottom",maxHeight:a?E-b:O-b};if("auto"===o||a){var _=t,D=a?S:k;return D>=r&&(_=Math.min(D-b-s,t)),{placement:"top",maxHeight:_}}if("bottom"===o)return i&&xr(c,M),{placement:"bottom",maxHeight:t};break;case"top":if(S>=h)return{placement:"top",maxHeight:t};if(k>=h&&!a)return i&&_r(c,C,x),{placement:"top",maxHeight:t};if(!a&&k>=r||a&&S>=r){var T=t;return(!a&&k>=r||a&&S>=r)&&(T=a?S-w:k-w),i&&_r(c,C,x),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:y});d(s.maxHeight),m(s.placement),null==c||c(s.placement)}}),[r,o,i,a,n,c,y]),t({ref:u,placerProps:yt(yt({},e),{},{placement:g||Hr(o),maxHeight:f})})},Yr=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return yt({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Vr=Yr,Gr=Yr,Wr=["size"],qr=["innerProps","isRtl","size"],Qr={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Jr=function(e){var n=e.size,r=bt(e,Wr);return Gn("svg",(0,t.Z)({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Qr},r))},Xr=function(e){return Gn(Jr,(0,t.Z)({size:20},e),Gn("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"}))},$r=function(e){return Gn(Jr,(0,t.Z)({size:20},e),Gn("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"}))},eo=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return yt({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},to=eo,no=eo,ro=function(){var e=Wn.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_"}}}(zr||(Fr=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Ur||(Ur=Fr.slice(0)),zr=Object.freeze(Object.defineProperties(Fr,{raw:{value:Object.freeze(Ur)}})))),oo=function(e){var t=e.delay,n=e.offset;return Gn("span",{css:Wn({animation:"".concat(ro," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},io=["data"],ao=["innerRef","isDisabled","isHidden","inputClassName"],so={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},co={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":yt({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},so)},uo=function(e){return yt({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},so)},lo=function(e){var t=e.children,n=e.innerProps;return Gn("div",n,t)},po={ClearIndicator:function(e){var n=e.children,r=e.innerProps;return Gn("div",(0,t.Z)({},Or(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||Gn(Xr,null))},Control:function(e){var n=e.children,r=e.isDisabled,o=e.isFocused,i=e.innerRef,a=e.innerProps,s=e.menuIsOpen;return Gn("div",(0,t.Z)({ref:i},Or(e,"control",{control:!0,"control--is-disabled":r,"control--is-focused":o,"control--menu-is-open":s}),a,{"aria-disabled":r||void 0}),n)},DropdownIndicator:function(e){var n=e.children,r=e.innerProps;return Gn("div",(0,t.Z)({},Or(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||Gn($r,null))},DownChevron:$r,CrossIcon:Xr,Group:function(e){var n=e.children,r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.Heading,s=e.headingProps,c=e.innerProps,u=e.label,l=e.theme,p=e.selectProps;return Gn("div",(0,t.Z)({},Or(e,"group",{group:!0}),c),Gn(a,(0,t.Z)({},s,{selectProps:p,theme:l,getStyles:o,getClassNames:i,cx:r}),u),Gn("div",null,n))},GroupHeading:function(e){var n=kr(e);n.data;var r=bt(n,io);return Gn("div",(0,t.Z)({},Or(e,"groupHeading",{"group-heading":!0}),r))},IndicatorsContainer:function(e){var n=e.children,r=e.innerProps;return Gn("div",(0,t.Z)({},Or(e,"indicatorsContainer",{indicators:!0}),r),n)},IndicatorSeparator:function(e){var n=e.innerProps;return Gn("span",(0,t.Z)({},n,Or(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var n=e.cx,r=e.value,o=kr(e),i=o.innerRef,a=o.isDisabled,s=o.isHidden,c=o.inputClassName,u=bt(o,ao);return Gn("div",(0,t.Z)({},Or(e,"input",{"input-container":!0}),{"data-value":r||""}),Gn("input",(0,t.Z)({className:n({input:!0},c),ref:i,style:uo(s),disabled:a},u)))},LoadingIndicator:function(e){var n=e.innerProps,r=e.isRtl,o=e.size,i=void 0===o?4:o,a=bt(e,qr);return Gn("div",(0,t.Z)({},Or(yt(yt({},a),{},{innerProps:n,isRtl:r,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),Gn(oo,{delay:0,offset:r}),Gn(oo,{delay:160,offset:!0}),Gn(oo,{delay:320,offset:!r}))},Menu:function(e){var n=e.children,r=e.innerRef,o=e.innerProps;return Gn("div",(0,t.Z)({},Or(e,"menu",{menu:!0}),{ref:r},o),n)},MenuList:function(e){var n=e.children,r=e.innerProps,o=e.innerRef,i=e.isMulti;return Gn("div",(0,t.Z)({},Or(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},r),n)},MenuPortal:function(e){var n=e.appendTo,r=e.children,o=e.controlElement,i=e.innerProps,a=e.menuPlacement,s=e.menuPosition,c=(0,l.useRef)(null),u=(0,l.useRef)(null),p=We((0,l.useState)(Hr(a)),2),f=p[0],d=p[1],h=(0,l.useMemo)((function(){return{setPortalPlacement:d}}),[]),g=We((0,l.useState)(null),2),m=g[0],y=g[1],v=(0,l.useCallback)((function(){if(o){var e=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}}(o),t="fixed"===s?0:window.pageYOffset,n=e[f]+t;n===(null==m?void 0:m.offset)&&e.left===(null==m?void 0:m.rect.left)&&e.width===(null==m?void 0:m.rect.width)||y({offset:n,rect:e})}}),[o,s,f,null==m?void 0:m.offset,null==m?void 0:m.rect.left,null==m?void 0:m.rect.width]);(0,yr.Z)((function(){v()}),[v]);var b=(0,l.useCallback)((function(){"function"==typeof u.current&&(u.current(),u.current=null),o&&c.current&&(u.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=fr(e),l=o||i?[...u?pr(u):[],...pr(t)]:[];l.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const p=u&&s?function(e,t){let n,r=null;const o=rr(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),i();const{left:u,top:l,width:p,height:f}=e.getBoundingClientRect();if(s||t(),!p||!f)return;const d={rootMargin:-$n(l)+"px "+-$n(o.clientWidth-(u+p))+"px "+-$n(o.clientHeight-(l+f))+"px "+-$n(u)+"px",threshold:Jn(0,Qn(1,c))||1};let h=!0;function g(e){const t=e[0].intersectionRatio;if(t!==c){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}h=!1}try{r=new IntersectionObserver(g,{...d,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,d)}r.observe(e)}(!0),i}(u,n):null;let f,d=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame((()=>{h&&h.observe(t)}))),n()})),u&&!c&&h.observe(u),h.observe(t));let g=c?mr(e):null;return c&&function t(){const r=mr(e);!g||r.x===g.x&&r.y===g.y&&r.width===g.width&&r.height===g.height||n(),g=r,f=requestAnimationFrame(t)}(),n(),()=>{l.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),p&&p(),h&&h.disconnect(),h=null,c&&cancelAnimationFrame(f)}}(o,c.current,v,{elementResize:"ResizeObserver"in window}))}),[o,v]);(0,yr.Z)((function(){b()}),[b]);var w=(0,l.useCallback)((function(e){c.current=e,b()}),[b]);if(!n&&"fixed"!==s||!m)return null;var S=Gn("div",(0,t.Z)({ref:w},Or(yt(yt({},e),{},{offset:m.offset,position:s,rect:m.rect}),"menuPortal",{"menu-portal":!0}),i),r);return Gn(Zr.Provider,{value:h},n?(0,et.createPortal)(S,n):S)},LoadingMessage:function(e){var n=e.children,r=void 0===n?"Loading...":n,o=e.innerProps,i=bt(e,Br);return Gn("div",(0,t.Z)({},Or(yt(yt({},i),{},{children:r,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),r)},NoOptionsMessage:function(e){var n=e.children,r=void 0===n?"No options":n,o=e.innerProps,i=bt(e,Rr);return Gn("div",(0,t.Z)({},Or(yt(yt({},i),{},{children:r,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),r)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,c=n.Container,u=n.Label,l=n.Remove;return Gn(c,{data:r,innerProps:yt(yt({},Or(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},Gn(u,{data:r,innerProps:yt({},Or(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),Gn(l,{data:r,innerProps:yt(yt({},Or(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:lo,MultiValueLabel:lo,MultiValueRemove:function(e){var n=e.children,r=e.innerProps;return Gn("div",(0,t.Z)({role:"button"},r),n||Gn(Xr,{size:14}))},Option:function(e){var n=e.children,r=e.isDisabled,o=e.isFocused,i=e.isSelected,a=e.innerRef,s=e.innerProps;return Gn("div",(0,t.Z)({},Or(e,"option",{option:!0,"option--is-disabled":r,"option--is-focused":o,"option--is-selected":i}),{ref:a,"aria-disabled":r},s),n)},Placeholder:function(e){var n=e.children,r=e.innerProps;return Gn("div",(0,t.Z)({},Or(e,"placeholder",{placeholder:!0}),r),n)},SelectContainer:function(e){var n=e.children,r=e.innerProps,o=e.isDisabled,i=e.isRtl;return Gn("div",(0,t.Z)({},Or(e,"container",{"--is-disabled":o,"--is-rtl":i}),r),n)},SingleValue:function(e){var n=e.children,r=e.isDisabled,o=e.innerProps;return Gn("div",(0,t.Z)({},Or(e,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),o),n)},ValueContainer:function(e){var n=e.children,r=e.innerProps,o=e.isMulti,i=e.hasValue;return Gn("div",(0,t.Z)({},Or(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),r),n)}},fo=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ho(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||fo(r)&&fo(o)))return!1;var r,o;return!0}for(var go={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"},mo=function(e){return Gn("span",(0,t.Z)({css:go},e))},yo={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".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.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,c=e.isSelected,u=e.isAppleDevice,l=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(l(a,n),".");if("menu"===t&&u){var p=s?" disabled":"",f="".concat(c?" selected":"").concat(p);return"".concat(i).concat(f,", ").concat(l(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},vo=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,s=e.selectProps,c=e.id,u=e.isAppleDevice,p=s.ariaLiveMessages,f=s.getOptionLabel,d=s.inputValue,h=s.isMulti,g=s.isOptionDisabled,m=s.isSearchable,y=s.menuIsOpen,v=s.options,b=s.screenReaderStatus,w=s.tabSelectsValue,S=s.isLoading,E=s["aria-label"],k=s["aria-live"],O=(0,l.useMemo)((function(){return yt(yt({},yo),p||{})}),[p]),M=(0,l.useMemo)((function(){var e,n="";if(t&&O.onChange){var r=t.option,o=t.options,i=t.removedValue,s=t.removedValues,c=t.value,u=i||r||(e=c,Array.isArray(e)?null:e),l=u?f(u):"",p=o||s||void 0,d=p?p.map(f):[],h=yt({isDisabled:u&&g(u,a),label:l,labels:d},t);n=O.onChange(h)}return n}),[t,O,g,a,f]),C=(0,l.useMemo)((function(){var e="",t=n||r,i=!!(n&&a&&a.includes(n));if(t&&O.onFocus){var s={focused:t,label:f(t),isDisabled:g(t,a),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:a,isAppleDevice:u};e=O.onFocus(s)}return e}),[n,r,f,g,O,o,a,u]),x=(0,l.useMemo)((function(){var e="";if(y&&v.length&&!S&&O.onFilter){var t=b({count:o.length});e=O.onFilter({inputValue:d,resultsMessage:t})}return e}),[o,d,y,O,v,b,S]),_="initial-input-focus"===(null==t?void 0:t.action),D=(0,l.useMemo)((function(){var e="";if(O.guidance){var t=r?"value":y?"menu":"input";e=O.guidance({"aria-label":E,context:t,isDisabled:n&&g(n,a),isMulti:h,isSearchable:m,tabSelectsValue:w,isInitialFocus:_})}return e}),[E,n,r,h,g,m,y,O,a,w,_]),T=Gn(l.Fragment,null,Gn("span",{id:"aria-selection"},M),Gn("span",{id:"aria-focused"},C),Gn("span",{id:"aria-results"},x),Gn("span",{id:"aria-guidance"},D));return Gn(l.Fragment,null,Gn(mo,{id:c},_&&T),Gn(mo,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!_&&T))},bo=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],wo=new RegExp("["+bo.map((function(e){return e.letters})).join("")+"]","g"),So={},Eo=0;Eo<bo.length;Eo++)for(var ko=bo[Eo],Oo=0;Oo<ko.letters.length;Oo++)So[ko.letters[Oo]]=ko.base;var Mo=function(e){return e.replace(wo,(function(e){return So[e]}))},Co=function(e,t){void 0===t&&(t=ho);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(Mo),xo=function(e){return e.replace(/^\s+|\s+$/g,"")},_o=function(e){return"".concat(e.label," ").concat(e.value)},Do=["innerRef"];function To(e){var n=e.innerRef,r=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];var o=Object.entries(e).filter((function(e){var t=We(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=We(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(bt(e,Do),"onExited","in","enter","exit","appear");return Gn("input",(0,t.Z)({ref:n},r,{css:Wn({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var jo=["boxSizing","height","overflow","paddingRight","position"],Io={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function No(e){e.preventDefault()}function Lo(e){e.stopPropagation()}function Ao(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Po(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ro=!("undefined"==typeof window||!window.document||!window.document.createElement),Bo=0,zo={capture:!1,passive:!1},Fo=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Uo={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Ho(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=(0,l.useRef)(!1),s=(0,l.useRef)(!1),c=(0,l.useRef)(0),u=(0,l.useRef)(null),p=(0,l.useCallback)((function(e,t){if(null!==u.current){var c=u.current,l=c.scrollTop,p=c.scrollHeight,f=c.clientHeight,d=u.current,h=t>0,g=p-f-l,m=!1;g>t&&a.current&&(r&&r(e),a.current=!1),h&&s.current&&(i&&i(e),s.current=!1),h&&t>g?(n&&!a.current&&n(e),d.scrollTop=p,m=!0,a.current=!0):!h&&-t>l&&(o&&!s.current&&o(e),d.scrollTop=0,m=!0,s.current=!0),m&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,i]),f=(0,l.useCallback)((function(e){p(e,e.deltaY)}),[p]),d=(0,l.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),h=(0,l.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;p(e,t)}),[p]),g=(0,l.useCallback)((function(e){if(e){var t=!!Lr&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",d,t),e.addEventListener("touchmove",h,t)}}),[h,d,f]),m=(0,l.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",d,!1),e.removeEventListener("touchmove",h,!1))}),[h,d,f]);return(0,l.useEffect)((function(){if(t){var e=u.current;return g(e),function(){m(e)}}}),[t,g,m]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,l.useRef)({}),i=(0,l.useRef)(null),a=(0,l.useCallback)((function(e){if(Ro){var t=document.body,n=t&&t.style;if(r&&jo.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&Bo<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(Io).forEach((function(e){var t=Io[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&Po()&&(t.addEventListener("touchmove",No,zo),e&&(e.addEventListener("touchstart",Ao,zo),e.addEventListener("touchmove",Lo,zo))),Bo+=1}}),[r]),s=(0,l.useCallback)((function(e){if(Ro){var t=document.body,n=t&&t.style;Bo=Math.max(Bo-1,0),r&&Bo<1&&jo.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Po()&&(t.removeEventListener("touchmove",No,zo),e&&(e.removeEventListener("touchstart",Ao,zo),e.removeEventListener("touchmove",Lo,zo)))}}),[r]);return(0,l.useEffect)((function(){if(t){var e=i.current;return a(e),function(){s(e)}}}),[t,a,s]),function(e){i.current=e}}({isEnabled:n});return Gn(l.Fragment,null,n&&Gn("div",{onClick:Fo,css:Uo}),t((function(e){o(e),i(e)})))}var Zo={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Ko=function(e){var t=e.name,n=e.onFocus;return Gn("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Zo,value:"",onChange:function(){}})};function Yo(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Vo(){return Yo(/^Mac/i)}var Go={clearIndicator:no,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return yt({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:to,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return yt({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return yt({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return yt(yt({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},co),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return yt({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:Gr,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return yt((Re(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),Re(n,"position","absolute"),Re(n,"width","100%"),Re(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return yt({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},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,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return yt({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return yt({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return yt({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:Vr,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return yt({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return yt({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return yt({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return yt({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Wo={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}},qo={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Tr(),captureMenuScroll:!Tr(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=yt({ignoreCase:!0,ignoreAccents:!0,stringify:_o,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,c=a?xo(t):t,u=a?xo(i(e)):i(e);return r&&(c=c.toLowerCase(),u=u.toLowerCase()),o&&(c=Co(c),u=Mo(u)),"start"===s?u.substr(0,c.length)===c:u.indexOf(c)>-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,unstyled:!1};function Qo(e,t,n,r){return{type:"option",data:t,isDisabled:oi(e,t,n),isSelected:ii(e,t,n),label:ni(e,t),value:ri(e,t),index:r}}function Jo(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Qo(e,n,t,r)})).filter((function(t){return ei(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Qo(e,n,t,r);return ei(e,i)?i:void 0})).filter(Ar)}function Xo(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Ae(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function $o(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,Ae(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function ei(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!si(e)||!i)&&ai(e,{label:a,value:s,data:o},r)}var ti=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},ni=function(e,t){return e.getOptionLabel(t)},ri=function(e,t){return e.getOptionValue(t)};function oi(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ii(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=ri(e,t);return n.some((function(t){return ri(e,t)===r}))}function ai(e,t,n){return!e.filterOption||e.filterOption(t,n)}var si=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ci=1,ui=function(e){(0,i.Z)(a,e);var o=St(a);function a(e){var t;if((0,n.Z)(this,a),(t=o.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=Vo()||Yo(/^iPhone/i)||Yo(/^iPad/i)||Vo()&&navigator.maxTouchPoints>1,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,i=r.name;n.name=i,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,i=n.name,a=t.state.selectValue,s=o&&t.isOptionSelected(e,a),c=t.isOptionDisabled(e,a);if(s){var u=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==u})),"deselect-option",e)}else{if(c)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});o?t.setValue([].concat(Ae(a),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),i=r.filter((function(e){return t.getOptionValue(e)!==o})),a=Pr(n,i,i[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(Pr(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),i=Pr(e,o,o[0]||null);t.onChange(i,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return ti(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return $o(Jo(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Sr.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return ni(t.props,e)},t.getOptionValue=function(e){return ri(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=Go[e](n,r);o.boxSizing="border-box";var i=t.props.styles[e];return i?i(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,yt(yt({},po),e.components);var e},t.buildCategorizedOptions=function(){return Jo(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Xo(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:yt({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Mr(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),i=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return si(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,c=n.isDisabled,u=n.menuIsOpen,l=n.onKeyDown,p=n.tabSelectsValue,f=n.openMenuOnFocus,d=t.state,h=d.focusedOption,g=d.focusedValue,m=d.selectValue;if(!(c||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(g)t.removeValue(g);else{if(!o)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!u||!p||!h||f&&t.isOptionSelected(h,m))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&i&&t.clearValue();break;case" ":if(a)return;if(!u){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++ci),t.state.selectValue=Er(e.value),e.menuIsOpen&&t.state.selectValue.length){var r=t.getFocusableOptionsWithIds(),i=t.buildFocusableOptions(),s=i.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=r,t.state.focusedOption=i[s],t.state.focusedOptionId=ti(r,i[s])}return t}return(0,r.Z)(a,[{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(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Dr(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Dr(this.menuListRef,this.focusedOptionRef),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",prevInputValue:this.props.inputValue}),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],focusedOptionId:this.getFocusedOptionId(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,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Wo):yt(yt({},Wo),this.props.theme):Wo}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,c=s.isMulti,u=s.isRtl,l=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:c,isRtl:u,options:l,selectOption:i,selectProps:s,setValue:a,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 oi(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ii(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ai(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,n=e.isDisabled,r=e.isSearchable,o=e.inputId,i=e.inputValue,a=e.tabIndex,s=e.form,c=e.menuIsOpen,u=e.required,p=this.getComponents().Input,f=this.state,d=f.inputIsHidden,h=f.ariaSelection,g=this.commonProps,m=o||this.getElementId("input"),y=yt(yt(yt({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":u,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},c&&{"aria-controls":this.getElementId("listbox")}),!r&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==h?void 0:h.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return r?l.createElement(p,(0,t.Z)({},g,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:n,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:i},y)):l.createElement(To,(0,t.Z)({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:br,onFocus:this.onInputFocus,disabled:n,tabIndex:a,inputMode:"none",form:s,value:""},y))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,n=this.getComponents(),r=n.MultiValue,o=n.MultiValueContainer,i=n.MultiValueLabel,a=n.MultiValueRemove,s=n.SingleValue,c=n.Placeholder,u=this.commonProps,p=this.props,f=p.controlShouldRenderValue,d=p.isDisabled,h=p.isMulti,g=p.inputValue,m=p.placeholder,y=this.state,v=y.selectValue,b=y.focusedValue,w=y.isFocused;if(!this.hasValue()||!f)return g?null:l.createElement(c,(0,t.Z)({},u,{key:"placeholder",isDisabled:d,isFocused:w,innerProps:{id:this.getElementId("placeholder")}}),m);if(h)return v.map((function(n,s){var c=n===b,p="".concat(e.getOptionLabel(n),"-").concat(e.getOptionValue(n));return l.createElement(r,(0,t.Z)({},u,{components:{Container:o,Label:i,Remove:a},isFocused:c,isDisabled:d,key:p,index:s,removeProps:{onClick:function(){return e.removeValue(n)},onTouchEnd:function(){return e.removeValue(n)},onMouseDown:function(e){e.preventDefault()}},data:n}),e.formatOptionLabel(n,"value"))}));if(g)return null;var S=v[0];return l.createElement(s,(0,t.Z)({},u,{data:S,isDisabled:d}),this.formatOptionLabel(S,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,i=r.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return l.createElement(e,(0,t.Z)({},n,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,i=r.isLoading,a=this.state.isFocused;return e&&i?l.createElement(e,(0,t.Z)({},n,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),n=e.DropdownIndicator,r=e.IndicatorSeparator;if(!n||!r)return null;var o=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return l.createElement(r,(0,t.Z)({},o,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var n=this.commonProps,r=this.props.isDisabled,o=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return l.createElement(e,(0,t.Z)({},n,{innerProps:i,isDisabled:r,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,n=this.getComponents(),r=n.Group,o=n.GroupHeading,i=n.Menu,a=n.MenuList,s=n.MenuPortal,c=n.LoadingMessage,u=n.NoOptionsMessage,p=n.Option,f=this.commonProps,d=this.state.focusedOption,h=this.props,g=h.captureMenuScroll,m=h.inputValue,y=h.isLoading,v=h.loadingMessage,b=h.minMenuHeight,w=h.maxMenuHeight,S=h.menuIsOpen,E=h.menuPlacement,k=h.menuPosition,O=h.menuPortalTarget,M=h.menuShouldBlockScroll,C=h.menuShouldScrollIntoView,x=h.noOptionsMessage,_=h.onMenuScrollToTop,D=h.onMenuScrollToBottom;if(!S)return null;var T,j=function(n,r){var o=n.type,i=n.data,a=n.isDisabled,s=n.isSelected,c=n.label,u=n.value,h=d===i,g=a?void 0:function(){return e.onOptionHover(i)},m=a?void 0:function(){return e.selectOption(i)},y="".concat(e.getElementId("option"),"-").concat(r),v={id:y,onClick:m,onMouseMove:g,onMouseOver:g,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:s};return l.createElement(p,(0,t.Z)({},f,{innerProps:v,data:i,isDisabled:a,isSelected:s,key:y,label:c,type:o,value:u,isFocused:h,innerRef:h?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())T=this.getCategorizedOptions().map((function(n){if("group"===n.type){var i=n.data,a=n.options,s=n.index,c="".concat(e.getElementId("group"),"-").concat(s),u="".concat(c,"-heading");return l.createElement(r,(0,t.Z)({},f,{key:c,data:i,options:a,Heading:o,headingProps:{id:u,data:n.data},label:e.formatGroupLabel(n.data)}),n.options.map((function(e){return j(e,"".concat(s,"-").concat(e.index))})))}if("option"===n.type)return j(n,"".concat(n.index))}));else if(y){var I=v({inputValue:m});if(null===I)return null;T=l.createElement(c,f,I)}else{var N=x({inputValue:m});if(null===N)return null;T=l.createElement(u,f,N)}var L={minMenuHeight:b,maxMenuHeight:w,menuPlacement:E,menuPosition:k,menuShouldScrollIntoView:C},A=l.createElement(Kr,(0,t.Z)({},f,L),(function(n){var r=n.ref,o=n.placerProps,s=o.placement,c=o.maxHeight;return l.createElement(i,(0,t.Z)({},f,L,{innerRef:r,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:y,placement:s}),l.createElement(Ho,{captureEnabled:g,onTopArrive:_,onBottomArrive:D,lockEnabled:M},(function(n){return l.createElement(a,(0,t.Z)({},f,{innerRef:function(t){e.getMenuListRef(t),n(t)},innerProps:{role:"listbox","aria-multiselectable":f.isMulti,id:e.getElementId("listbox")},isLoading:y,maxHeight:c,focusedOption:d}),T)})))}));return O||"fixed"===k?l.createElement(s,(0,t.Z)({},f,{appendTo:O,controlElement:this.controlRef,menuPlacement:E,menuPosition:k}),A):A}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!r)return l.createElement(Ko,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var c=s.map((function(t){return e.getOptionValue(t)})).join(n);return l.createElement("input",{name:i,type:"hidden",value:c})}var u=s.length>0?s.map((function(t,n){return l.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):l.createElement("input",{name:i,type:"hidden",value:""});return l.createElement("div",null,u)}var p=s[0]?this.getOptionValue(s[0]):"";return l.createElement("input",{name:i,type:"hidden",value:p})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,n=this.state,r=n.ariaSelection,o=n.focusedOption,i=n.focusedValue,a=n.isFocused,s=n.selectValue,c=this.getFocusableOptions();return l.createElement(vo,(0,t.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:o,focusedValue:i,isFocused:a,selectValue:s,focusableOptions:c,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),n=e.Control,r=e.IndicatorsContainer,o=e.SelectContainer,i=e.ValueContainer,a=this.props,s=a.className,c=a.id,u=a.isDisabled,p=a.menuIsOpen,f=this.state.isFocused,d=this.commonProps=this.getCommonProps();return l.createElement(o,(0,t.Z)({},d,{className:s,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:f}),this.renderLiveRegion(),l.createElement(n,(0,t.Z)({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:f,menuIsOpen:p}),l.createElement(i,(0,t.Z)({},d,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),l.createElement(r,(0,t.Z)({},d,{isDisabled:u}),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=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,c=t.instancePrefix,u=e.options,l=e.value,p=e.menuIsOpen,f=e.inputValue,d=e.isMulti,h=Er(l),g={};if(n&&(l!==n.value||u!==n.options||p!==n.menuIsOpen||f!==n.inputValue)){var m=p?function(e,t){return Xo(Jo(e,t))}(e,h):[],y=p?$o(Jo(e,h),"".concat(c,"-option")):[],v=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,h):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,m);g={selectValue:h,focusedOption:b,focusedOptionId:ti(y,b),focusableOptionsWithIds:y,focusedValue:v,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},S=i,E=a&&s;return a&&!E&&(S={value:Pr(d,h,h[0]||null),options:h,action:"initial-input-focus"},E=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(S=null),yt(yt(yt({},g),w),{},{prevProps:e,ariaSelection:S,prevWasFocused:E})}}]),a}(l.Component);ui.defaultProps=qo;var li=(0,l.forwardRef)((function(e,n){var r=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,i=e.defaultValue,a=void 0===i?null:i,s=e.inputValue,c=e.menuIsOpen,u=e.onChange,p=e.onInputChange,f=e.onMenuClose,d=e.onMenuOpen,h=e.value,g=bt(e,wt),m=We((0,l.useState)(void 0!==s?s:n),2),y=m[0],v=m[1],b=We((0,l.useState)(void 0!==c?c:o),2),w=b[0],S=b[1],E=We((0,l.useState)(void 0!==h?h:a),2),k=E[0],O=E[1],M=(0,l.useCallback)((function(e,t){"function"==typeof u&&u(e,t),O(e)}),[u]),C=(0,l.useCallback)((function(e,t){var n;"function"==typeof p&&(n=p(e,t)),v(void 0!==n?n:e)}),[p]),x=(0,l.useCallback)((function(){"function"==typeof d&&d(),S(!0)}),[d]),_=(0,l.useCallback)((function(){"function"==typeof f&&f(),S(!1)}),[f]),D=void 0!==s?s:y,T=void 0!==c?c:w,j=void 0!==h?h:k;return yt(yt({},g),{},{inputValue:D,menuIsOpen:T,onChange:M,onInputChange:C,onMenuClose:_,onMenuOpen:x,value:j})}(e);return l.createElement(ui,(0,t.Z)({ref:n},r))})),pi=li,fi=a(8877),di=a.n(fi),hi=a(8101),gi=a.n(hi),mi=a(4184),yi=a.n(mi);var vi=function(e){(0,i.Z)(s,e);var t,o,a=(t=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.Z)(t);if(o){var r=(0,u.Z)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return(0,c.Z)(this,e)});function s(e){var t;(0,n.Z)(this,s),(t=a.call(this,e)).min=0,t.max=e.ratingAmount||5;var r=e.rating,o={pos:r?t.getStarRatingPosition(r):0,rating:e.rating};return t.state={ratingCache:o,editing:e.editing||!e.rating,stars:5,rating:o.rating,pos:o.pos,glyph:t.getStars()},t}return(0,r.Z)(s,[{key:"getStars",value:function(){for(var e="",t=this.props.ratingAmount,n=0;n<t;n++)e+="★";return e}},{key:"componentDidMount",value:function(){this.root=tt().findDOMNode(this.rootNode),this.ratingContainer=tt().findDOMNode(this.node)}},{key:"componentWillUnmount",value:function(){delete this.root,delete this.ratingContainer}},{key:"getPosition",value:function(e){return e.pageX-this.root.getBoundingClientRect().left}},{key:"applyPrecision",value:function(e,t){return parseFloat(e.toFixed(t))}},{key:"getDecimalPlaces",value:function(e){var t="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}},{key:"getWidthFromValue",value:function(e){var t=this.min,n=this.max;return e<=t||t===n?0:e>=n?100:e/(n-t)*100}},{key:"getValueFromPosition",value:function(e){var t=this.getDecimalPlaces(this.props.step),n=this.ratingContainer.offsetWidth,r=(this.max-this.min)*e/(n*this.props.step);r=Math.ceil(r);var o=this.applyPrecision(parseFloat(this.min+r*this.props.step),t);return Math.max(Math.min(o,this.max),this.min)}},{key:"calculate",value:function(e){var t=this.getValueFromPosition(e),n=this.getWidthFromValue(t);return{width:n+="%",val:t}}},{key:"getStarRatingPosition",value:function(e){return"".concat(this.getWidthFromValue(e),"%")}},{key:"getRatingEvent",value:function(e){var t=this.getPosition(e);return this.calculate(t)}},{key:"getSvg",value:function(){return p().createElement("svg",{className:"react-star-rating__star",viewBox:"0 0 286 272",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},p().createElement("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},p().createElement("polygon",{id:"star-flat",points:"143 225 54.8322122 271.352549 71.6707613 173.176275 0.341522556 103.647451 98.9161061 89.3237254 143 0 187.083894 89.3237254 285.658477 103.647451 214.329239 173.176275 231.167788 271.352549 "})))}},{key:"handleMouseLeave",value:function(){this.setState({pos:this.state.ratingCache.pos,rating:this.state.ratingCache.rating})}},{key:"handleMouseMove",value:function(e){var t=this.getRatingEvent(e);this.updateRating(t.width,t.val)}},{key:"updateRating",value:function(e,t){this.setState({pos:e,rating:t})}},{key:"shouldComponentUpdate",value:function(e,t){return e!==this.props?(this.updateRating(this.getStarRatingPosition(e.rating),e.rating),!0):t.ratingCache.rating!==this.state.ratingCache.rating||t.rating!==this.state.rating}},{key:"handleClick",value:function(e){if(this.props.disabled)return e.stopPropagation(),e.preventDefault(),!1;var t={pos:this.state.pos,rating:this.state.rating,caption:this.props.caption,name:this.props.name};return this.setState({ratingCache:t}),this.props.onRatingClick(e,t),!0}},{key:"treatName",value:function(e){return"string"==typeof e?e.toLowerCase().split(" ").join("_"):null}},{key:"render",value:function(){var e,t=this,n=yi()(Re(Re({"react-star-rating__root":!0,"rating-disabled":this.props.disabled},"react-star-rating__size--".concat(this.props.size),this.props.size),"rating-editing",this.state.editing));return e=this.state.editing?p().createElement("div",{ref:function(e){return t.node=e},className:"rating-container rating-gly-star","data-content":this.state.glyph,onMouseMove:this.handleMouseMove.bind(this),onMouseLeave:this.handleMouseLeave.bind(this),onClick:this.handleClick.bind(this)},p().createElement("div",{className:"rating-stars","data-content":this.state.glyph,style:{width:this.state.pos}})):p().createElement("div",{ref:function(e){return t.node=e},className:"rating-container rating-gly-star","data-content":this.state.glyph},p().createElement("div",{className:"rating-stars","data-content":this.state.glyph,style:{width:this.state.pos}})),p().createElement("span",{className:"react-star-rating"},p().createElement("span",{ref:function(e){return t.rootNode=e},style:{cursor:"pointer"},className:n},e,p().createElement("input",{type:"hidden",name:this.props.name,value:this.state.ratingCache.rating,style:{display:"none !important",width:65},min:this.min,max:this.max,readOnly:!0})))}}]),s}(p().Component);function bi(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function wi(e){bi(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,qn.Z)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function Si(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Ei(e,t){return bi(2,arguments),function(e,t){bi(2,arguments);var n=wi(e).getTime(),r=Si(t);return new Date(n+r)}(e,-Si(t))}function ki(e){bi(1,arguments);var t=wi(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function Oi(e){bi(1,arguments);var t=wi(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=ki(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=ki(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}vi.propTypes={name:$e().string.isRequired,caption:$e().string,ratingAmount:$e().number.isRequired,rating:$e().number,onRatingClick:$e().func,disabled:$e().bool,editing:$e().bool,size:$e().string},vi.defaultProps={step:.5,ratingAmount:5,onRatingClick:function(){},disabled:!1};function Mi(e){bi(1,arguments);var t=wi(e),n=ki(t).getTime()-function(e){bi(1,arguments);var t=Oi(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),ki(n)}(t).getTime();return Math.round(n/6048e5)+1}var Ci={};function xi(){return Ci}function _i(e,t){var n,r,o,i,a,s,c,u;bi(1,arguments);var l=xi(),p=Si(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:l.weekStartsOn)&&void 0!==r?r:null===(c=l.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=wi(e),d=f.getUTCDay(),h=(d<p?7:0)+d-p;return f.setUTCDate(f.getUTCDate()-h),f.setUTCHours(0,0,0,0),f}function Di(e,t){var n,r,o,i,a,s,c,u;bi(1,arguments);var l=wi(e),p=l.getUTCFullYear(),f=xi(),d=Si(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:f.firstWeekContainsDate)&&void 0!==r?r:null===(c=f.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(p+1,0,d),h.setUTCHours(0,0,0,0);var g=_i(h,t),m=new Date(0);m.setUTCFullYear(p,0,d),m.setUTCHours(0,0,0,0);var y=_i(m,t);return l.getTime()>=g.getTime()?p+1:l.getTime()>=y.getTime()?p:p-1}function Ti(e,t){bi(1,arguments);var n=wi(e),r=_i(n,t).getTime()-function(e,t){var n,r,o,i,a,s,c,u;bi(1,arguments);var l=xi(),p=Si(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:l.firstWeekContainsDate)&&void 0!==r?r:null===(c=l.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),f=Di(e,t),d=new Date(0);return d.setUTCFullYear(f,0,p),d.setUTCHours(0,0,0,0),_i(d,t)}(n,t).getTime();return Math.round(r/6048e5)+1}function ji(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Ii={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return ji("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):ji(n+1,2)},d:function(e,t){return ji(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return ji(e.getUTCHours()%12||12,t.length)},H:function(e,t){return ji(e.getUTCHours(),t.length)},m:function(e,t){return ji(e.getUTCMinutes(),t.length)},s:function(e,t){return ji(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return ji(Math.floor(r*Math.pow(10,n-3)),t.length)}};const Ni=Ii;var Li={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Ni.y(e,t)},Y:function(e,t,n,r){var o=Di(e,r),i=o>0?o:1-o;return"YY"===t?ji(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):ji(i,t.length)},R:function(e,t){return ji(Oi(e),t.length)},u:function(e,t){return ji(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return ji(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return ji(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return Ni.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return ji(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=Ti(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):ji(o,t.length)},I:function(e,t,n){var r=Mi(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):ji(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):Ni.d(e,t)},D:function(e,t,n){var r=function(e){bi(1,arguments);var t=wi(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):ji(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return ji(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return ji(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return ji(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?"noon":0===o?"midnight":o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?"evening":o>=12?"afternoon":o>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Ni.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Ni.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):ji(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):ji(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Ni.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Ni.s(e,t)},S:function(e,t){return Ni.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return Pi(o);case"XXXX":case"XX":return Ri(o);default:return Ri(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return Pi(o);case"xxxx":case"xx":return Ri(o);default:return Ri(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ai(o,":");default:return"GMT"+Ri(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ai(o,":");default:return"GMT"+Ri(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return ji(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return ji((r._originalDate||e).getTime(),t.length)}};function Ai(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+ji(i,2)}function Pi(e,t){return e%60==0?(e>0?"-":"+")+ji(Math.abs(e)/60,2):Ri(e,t)}function Ri(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+ji(Math.floor(o/60),2)+n+ji(o%60,2)}const Bi=Li;var zi=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Fi=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};const Ui={p:Fi,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return zi(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",zi(o,t)).replace("{{time}}",Fi(i,t))}};function Hi(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var Zi=["D","DD"],Ki=["YY","YYYY"];function Yi(e){return-1!==Zi.indexOf(e)}function Vi(e){return-1!==Ki.indexOf(e)}function Gi(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Wi={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function qi(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Qi={date:qi({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:qi({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:qi({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var Ji={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Xi(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const $i={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Xi({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Xi({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Xi({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Xi({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Xi({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function ea(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].test(s))return n}(c):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&e[n].test(s))return n}(c);return a=e.valueCallback?e.valueCallback(u):u,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var ta,na={ordinalNumber:(ta={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(ta.matchPattern);if(!n)return null;var r=n[0],o=e.match(ta.parsePattern);if(!o)return null;var i=ta.valueCallback?ta.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:ea({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:ea({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ea({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ea({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ea({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const ra={code:"en-US",formatDistance:function(e,t,n){var r,o=Wi[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:Qi,formatRelative:function(e,t,n,r){return Ji[e]},localize:$i,match:na,options:{weekStartsOn:0,firstWeekContainsDate:1}};var oa=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ia=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,aa=/^'([^]*?)'?$/,sa=/''/g,ca=/[a-zA-Z]/;function ua(e,t,n){var r,o,i,a,s,c,u,l,p,f,d,h,g,m,y,v,b,w;bi(2,arguments);var S=String(t),E=xi(),k=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:E.locale)&&void 0!==r?r:ra,O=Si(null!==(i=null!==(a=null!==(s=null!==(c=null==n?void 0:n.firstWeekContainsDate)&&void 0!==c?c:null==n||null===(u=n.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==s?s:E.firstWeekContainsDate)&&void 0!==a?a:null===(p=E.locale)||void 0===p||null===(f=p.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==i?i:1);if(!(O>=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=Si(null!==(d=null!==(h=null!==(g=null!==(m=null==n?void 0:n.weekStartsOn)&&void 0!==m?m:null==n||null===(y=n.locale)||void 0===y||null===(v=y.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==g?g:E.weekStartsOn)&&void 0!==h?h:null===(b=E.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==d?d:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var C=wi(e);if(!function(e){if(bi(1,arguments),!function(e){return bi(1,arguments),e instanceof Date||"object"===(0,qn.Z)(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=wi(e);return!isNaN(Number(t))}(C))throw new RangeError("Invalid time value");var x=Ei(C,Hi(C)),_={firstWeekContainsDate:O,weekStartsOn:M,locale:k,_originalDate:C};return S.match(ia).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,Ui[t])(e,k.formatLong):e})).join("").match(oa).map((function(r){if("''"===r)return"'";var o,i,a=r[0];if("'"===a)return(i=(o=r).match(aa))?i[1].replace(sa,"'"):o;var s=Bi[a];if(s)return null!=n&&n.useAdditionalWeekYearTokens||!Vi(r)||Gi(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!Yi(r)||Gi(r,t,String(e)),s(x,r,k.localize,_);if(a.match(ca))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return r})).join("")}function la(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Le(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function pa(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var fa=function(){function e(){(0,n.Z)(this,e),Re(this,"priority",void 0),Re(this,"subPriority",0)}return(0,r.Z)(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),da=function(e){(0,i.Z)(o,e);var t=St(o);function o(e,r,i,a,s){var c;return(0,n.Z)(this,o),(c=t.call(this)).value=e,c.validateValue=r,c.setValue=i,c.priority=a,s&&(c.subPriority=s),c}return(0,r.Z)(o,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),o}(fa),ha=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",10),Re((0,o.Z)(e),"subPriority",-1),e}return(0,r.Z)(a,[{key:"set",value:function(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),a}(fa),ga=function(){function e(){(0,n.Z)(this,e),Re(this,"incompatibleTokens",void 0),Re(this,"priority",void 0),Re(this,"subPriority",void 0)}return(0,r.Z)(e,[{key:"run",value:function(e,t,n,r){var o=this.parse(e,t,n,r);return o?{setter:new da(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),ma=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",140),Re((0,o.Z)(e),"incompatibleTokens",["R","u","t","T"]),e}return(0,r.Z)(a,[{key:"parse",value:function(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),a}(ga),ya=(Math.pow(10,8),/^(1[0-2]|0?\d)/),va=/^(3[0-1]|[0-2]?\d)/,ba=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,wa=/^(5[0-3]|[0-4]?\d)/,Sa=/^(2[0-3]|[0-1]?\d)/,Ea=/^(2[0-4]|[0-1]?\d)/,ka=/^(1[0-1]|0?\d)/,Oa=/^(1[0-2]|0?\d)/,Ma=/^[0-5]?\d/,Ca=/^[0-5]?\d/,xa=/^\d/,_a=/^\d{1,2}/,Da=/^\d{1,3}/,Ta=/^\d{1,4}/,ja=/^-?\d+/,Ia=/^-?\d/,Na=/^-?\d{1,2}/,La=/^-?\d{1,3}/,Aa=/^-?\d{1,4}/,Pa=/^([+-])(\d{2})(\d{2})?|Z/,Ra=/^([+-])(\d{2})(\d{2})|Z/,Ba=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,za=/^([+-])(\d{2}):(\d{2})|Z/,Fa=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Ua(e,t){return e?{value:t(e.value),rest:e.rest}:e}function Ha(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Za(e,t){var n=t.match(e);return n?"Z"===n[0]?{value:0,rest:t.slice(1)}:{value:("+"===n[1]?1:-1)*(36e5*(n[2]?parseInt(n[2],10):0)+6e4*(n[3]?parseInt(n[3],10):0)+1e3*(n[5]?parseInt(n[5],10):0)),rest:t.slice(n[0].length)}:null}function Ka(e){return Ha(ja,e)}function Ya(e,t){switch(e){case 1:return Ha(xa,t);case 2:return Ha(_a,t);case 3:return Ha(Da,t);case 4:return Ha(Ta,t);default:return Ha(new RegExp("^\\d{1,"+e+"}"),t)}}function Va(e,t){switch(e){case 1:return Ha(Ia,t);case 2:return Ha(Na,t);case 3:return Ha(La,t);case 4:return Ha(Aa,t);default:return Ha(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Ga(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Wa(e,t){var n,r=t>0,o=r?t:1-t;if(o<=50)n=e||100;else{var i=o+50;n=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return r?n:1-n}function qa(e){return e%400==0||e%4==0&&e%100!=0}var Qa=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",130),Re((0,o.Z)(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return(0,r.Z)(a,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return Ua(Ya(4,e),r);case"yo":return Ua(n.ordinalNumber(e,{unit:"year"}),r);default:return Ua(Ya(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var o=Wa(n.year,r);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}}]),a}(ga),Ja=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",130),Re((0,o.Z)(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return(0,r.Z)(a,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return Ua(Ya(4,e),r);case"Yo":return Ua(n.ordinalNumber(e,{unit:"year"}),r);default:return Ua(Ya(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n,r){var o=Di(e,r);if(n.isTwoDigitYear){var i=Wa(n.year,o);return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),_i(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),_i(e,r)}}]),a}(ga),Xa=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",130),Re((0,o.Z)(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return(0,r.Z)(a,[{key:"parse",value:function(e,t){return Va("R"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),ki(r)}}]),a}(ga),$a=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",130),Re((0,o.Z)(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return(0,r.Z)(a,[{key:"parse",value:function(e,t){return Va("u"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),a}(ga),es=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",120),Re((0,o.Z)(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return(0,r.Z)(a,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return Ya(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),a}(ga),ts=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",120),Re((0,o.Z)(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return(0,r.Z)(a,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return Ya(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),a}(ga),ns=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Re((0,o.Z)(e),"priority",110),e}return(0,r.Z)(a,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"M":return Ua(Ha(ya,e),r);case"MM":return Ua(Ya(2,e),r);case"Mo":return Ua(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),a}(ga),rs=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",110),Re((0,o.Z)(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return(0,r.Z)(a,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"L":return Ua(Ha(ya,e),r);case"LL":return Ua(Ya(2,e),r);case"Lo":return Ua(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),a}(ga),os=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",100),Re((0,o.Z)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return(0,r.Z)(a,[{key:"parse",value:function(e,t,n){switch(t){case"w":return Ha(wa,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return Ya(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,r){return _i(function(e,t,n){bi(2,arguments);var r=wi(e),o=Si(t),i=Ti(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*i),r}(e,n,r),r)}}]),a}(ga),is=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",100),Re((0,o.Z)(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return(0,r.Z)(a,[{key:"parse",value:function(e,t,n){switch(t){case"I":return Ha(wa,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return Ya(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return ki(function(e,t){bi(2,arguments);var n=wi(e),r=Si(t),o=Mi(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,n))}}]),a}(ga),as=[31,28,31,30,31,30,31,31,30,31,30,31],ss=[31,29,31,30,31,30,31,31,30,31,30,31],cs=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",90),Re((0,o.Z)(e),"subPriority",1),Re((0,o.Z)(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return(0,r.Z)(a,[{key:"parse",value:function(e,t,n){switch(t){case"d":return Ha(va,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return Ya(t.length,e)}}},{key:"validate",value:function(e,t){var n=qa(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=ss[r]:t>=1&&t<=as[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),a}(ga),us=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",90),Re((0,o.Z)(e),"subpriority",1),Re((0,o.Z)(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return(0,r.Z)(a,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return Ha(ba,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return Ya(t.length,e)}}},{key:"validate",value:function(e,t){return qa(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),a}(ga);function ls(e,t,n){var r,o,i,a,s,c,u,l;bi(2,arguments);var p=xi(),f=Si(null!==(r=null!==(o=null!==(i=null!==(a=null==n?void 0:n.weekStartsOn)&&void 0!==a?a:null==n||null===(s=n.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==i?i:p.weekStartsOn)&&void 0!==o?o:null===(u=p.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=wi(e),h=Si(t),g=((h%7+7)%7<f?7:0)+h-d.getUTCDay();return d.setUTCDate(d.getUTCDate()+g),d}var ps,fs=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",90),Re((0,o.Z)(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return(0,r.Z)(a,[{key:"parse",value:function(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=ls(e,n,r)).setUTCHours(0,0,0,0),e}}]),a}(ga),ds=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",90),Re((0,o.Z)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return(0,r.Z)(a,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return Ua(Ya(t.length,e),o);case"eo":return Ua(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=ls(e,n,r)).setUTCHours(0,0,0,0),e}}]),a}(ga),hs=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",90),Re((0,o.Z)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return(0,r.Z)(a,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return Ua(Ya(t.length,e),o);case"co":return Ua(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=ls(e,n,r)).setUTCHours(0,0,0,0),e}}]),a}(ga),gs=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",90),Re((0,o.Z)(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return(0,r.Z)(a,[{key:"parse",value:function(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return Ya(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return Ua(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return Ua(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return Ua(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return Ua(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,n){return e=function(e,t){bi(2,arguments);var n=Si(t);n%7==0&&(n-=7);var r=wi(e),o=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+o),r}(e,n),e.setUTCHours(0,0,0,0),e}}]),a}(ga),ms=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",80),Re((0,o.Z)(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return(0,r.Z)(a,[{key:"parse",value:function(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(Ga(n),0,0,0),e}}]),a}(ga),ys=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",80),Re((0,o.Z)(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return(0,r.Z)(a,[{key:"parse",value:function(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(Ga(n),0,0,0),e}}]),a}(ga),vs=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",80),Re((0,o.Z)(e),"incompatibleTokens",["a","b","t","T"]),e}return(0,r.Z)(a,[{key:"parse",value:function(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(Ga(n),0,0,0),e}}]),a}(ga),bs=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",70),Re((0,o.Z)(e),"incompatibleTokens",["H","K","k","t","T"]),e}return(0,r.Z)(a,[{key:"parse",value:function(e,t,n){switch(t){case"h":return Ha(Oa,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return Ya(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),a}(ga),ws=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",70),Re((0,o.Z)(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return(0,r.Z)(a,[{key:"parse",value:function(e,t,n){switch(t){case"H":return Ha(Sa,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return Ya(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),a}(ga),Ss=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",70),Re((0,o.Z)(e),"incompatibleTokens",["h","H","k","t","T"]),e}return(0,r.Z)(a,[{key:"parse",value:function(e,t,n){switch(t){case"K":return Ha(ka,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return Ya(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),a}(ga),Es=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",70),Re((0,o.Z)(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return(0,r.Z)(a,[{key:"parse",value:function(e,t,n){switch(t){case"k":return Ha(Ea,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return Ya(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}]),a}(ga),ks=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",60),Re((0,o.Z)(e),"incompatibleTokens",["t","T"]),e}return(0,r.Z)(a,[{key:"parse",value:function(e,t,n){switch(t){case"m":return Ha(Ma,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return Ya(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),a}(ga),Os=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",50),Re((0,o.Z)(e),"incompatibleTokens",["t","T"]),e}return(0,r.Z)(a,[{key:"parse",value:function(e,t,n){switch(t){case"s":return Ha(Ca,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return Ya(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),a}(ga),Ms=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",30),Re((0,o.Z)(e),"incompatibleTokens",["t","T"]),e}return(0,r.Z)(a,[{key:"parse",value:function(e,t){return Ua(Ya(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}},{key:"set",value:function(e,t,n){return e.setUTCMilliseconds(n),e}}]),a}(ga),Cs=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",10),Re((0,o.Z)(e),"incompatibleTokens",["t","T","x"]),e}return(0,r.Z)(a,[{key:"parse",value:function(e,t){switch(t){case"X":return Za(Pa,e);case"XX":return Za(Ra,e);case"XXXX":return Za(Ba,e);case"XXXXX":return Za(Fa,e);default:return Za(za,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),a}(ga),xs=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",10),Re((0,o.Z)(e),"incompatibleTokens",["t","T","X"]),e}return(0,r.Z)(a,[{key:"parse",value:function(e,t){switch(t){case"x":return Za(Pa,e);case"xx":return Za(Ra,e);case"xxxx":return Za(Ba,e);case"xxxxx":return Za(Fa,e);default:return Za(za,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),a}(ga),_s=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",40),Re((0,o.Z)(e),"incompatibleTokens","*"),e}return(0,r.Z)(a,[{key:"parse",value:function(e){return Ka(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),a}(ga),Ds=function(e){(0,i.Z)(a,e);var t=St(a);function a(){var e;(0,n.Z)(this,a);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),Re((0,o.Z)(e),"priority",20),Re((0,o.Z)(e),"incompatibleTokens","*"),e}return(0,r.Z)(a,[{key:"parse",value:function(e){return Ka(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),a}(ga),Ts={G:new ma,y:new Qa,Y:new Ja,R:new Xa,u:new $a,Q:new es,q:new ts,M:new ns,L:new rs,w:new os,I:new is,d:new cs,D:new us,E:new fs,e:new ds,c:new hs,i:new gs,a:new ms,b:new ys,B:new vs,h:new bs,H:new ws,K:new Ss,k:new Es,m:new ks,s:new Os,S:new Ms,X:new Cs,x:new xs,t:new _s,T:new Ds},js=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Is=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ns=/^'([^]*?)'?$/,Ls=/''/g,As=/\S/,Ps=/[a-zA-Z]/;var Rs={cursor:"move"},Bs={beginDrag:function(e){var t=e.data,n=e.index,r=e.onDestroy,o=e.setAsChild,i=e.getDataById;return{itemType:ot,index:t.parentId?-1:n,parentIndex:t.parentIndex,id:t.id,col:t.col,onDestroy:r,setAsChild:o,getDataById:i,data:t}}},zs=function(e){(0,i.Z)(s,e);var t,o,a=(t=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.Z)(t);if(o){var r=(0,u.Z)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return(0,c.Z)(this,e)});function s(){return(0,n.Z)(this,s),a.apply(this,arguments)}return(0,r.Z)(s,[{key:"componentDidMount",value:function(){var e=this.props.connectDragPreview;e&&e((ps||((ps=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),ps),{captureDraggingState:!0})}},{key:"render",value:function(){return(0,this.props.connectDragSource)(p().createElement("div",{className:"btn is-isolated",style:Rs},p().createElement("i",{className:"is-isolated fas fa-grip-vertical"})))}}]),s}(l.PureComponent);const Fs=(0,nt.DragSource)(ot,Bs,(function(e,t){return{connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview(),isDragging:t.isDragging()}}))(zs);var Us=function(e){(0,i.Z)(s,e);var t,o,a=(t=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.Z)(t);if(o){var r=(0,u.Z)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return(0,c.Z)(this,e)});function s(){return(0,n.Z)(this,s),a.apply(this,arguments)}return(0,r.Z)(s,[{key:"render",value:function(){return p().createElement("div",{className:"toolbar-header"},p().createElement("span",{className:"badge badge-secondary"},this.props.data.text),p().createElement("div",{className:"toolbar-header-buttons"},"LineBreak"!==this.props.data.element&&p().createElement("div",{className:"btn is-isolated",onClick:this.props.editModeOn.bind(this.props.parent,this.props.data)},p().createElement("i",{className:"is-isolated fas fa-edit"})),p().createElement("div",{className:"btn is-isolated",onClick:this.props.onDestroy.bind(this,this.props.data)},p().createElement("i",{className:"is-isolated fas fa-trash"})),p().createElement(Fs,{data:this.props.data,index:this.props.index,onDestroy:this.props.onDestroy,setAsChild:this.props.setAsChild})))}}]),s}(p().Component);const Hs=function(e){return e.mutable?null:p().createElement("div",null,e.data.pageBreakBefore&&p().createElement("div",{className:"preview-page-break"},"Page Break"),p().createElement(Us,{isFieldSet:e.isFieldSet,parent:e.parent,editModeOn:e.editModeOn,data:e.data,index:e.index,setAsChild:e.setAsChild,onDestroy:e._onDestroy,onEdit:e.onEdit,static:e.data.static,required:e.data.required}))};var Zs=a(8924),Ks=a.n(Zs);const Ys=new(Ks().FilterXSS)({whiteList:{a:["href","title","target"],u:[],br:[],b:[],i:[],ol:["style"],ul:["style"],li:[],p:["style"],sub:[],sup:[],div:["style"],em:[],strong:[],span:["style"],ins:[]}}),Vs=function(e){var t=e.data.hasOwnProperty("required")&&!0===e.data.required&&!e.read_only,n=Ys.process(e.data.label);return n&&n.trim()?p().createElement("label",{className:e.className||"form-label"},p().createElement("span",{dangerouslySetInnerHTML:{__html:n}}),t&&!e.hide_required_alert&&p().createElement("span",{className:"label-required badge badge-danger"},"Required")):null};function Gs(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 Ws(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gs(Object(n),!0).forEach((function(t){Re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const qs=function(e){(0,i.Z)(s,e);var t,o,a=(t=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.Z)(t);if(o){var r=(0,u.Z)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return(0,c.Z)(this,e)});function s(e){var t;(0,n.Z)(this,s),(t=a.call(this,e)).inputField=p().createRef();var r=s.updateFormat(e,null).formatMask,o=s.updateDateTime(e,{formatMask:r},r);return o.value=o.value||"",o.internalValue=o.internalValue||"",t.state=o,t}return(0,r.Z)(s,[{key:"handleBirthdayFocus",value:function(){this.setState({birthdayFocused:!0},(function(){document.getElementById("year").placeholder="YYYY",document.getElementById("day").placeholder="DD",document.getElementById("month").placeholder="MM"}))}},{key:"handleDateChange",value:function(e){var t=this.state,n=t.month,r=t.day,o=t.year,i=e.target.value;switch(e.target.name){case"month":i>12?this.setState({month:"12"}):this.setState({month:i});break;case"day":i>31?this.setState({day:"31"}):this.setState({day:i});break;case"year":i>(new Date).getFullYear()?this.setState({year:(new Date).getFullYear().toString()}):this.setState({year:i})}var a="month"===e.target.name?i:n,s="day"===e.target.name?i:r,c="year"===e.target.name?i:o;this.setState({value:{year:c,month:a,day:s}})}},{key:"render",value:function(){var e=this,t=this.props.data.placeholder,n={type:"date",className:"form-control"};n.name=this.props.data.field_name;var r=this.props.data.readOnly||this.props.read_only;this.state.formatMask.toLowerCase(),this.props.mutable&&(n.defaultValue=this.props.defaultValue,n.ref=this.inputField);var o="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(o+=" alwaysbreak"),p().createElement("div",{className:o,style:Ws({},this.props.style)},p().createElement(Hs,this.props),p().createElement("div",{className:"form-group"},p().createElement(Vs,this.props),p().createElement("div",null,r&&p().createElement("input",{type:"text",name:n.name,ref:n.ref,readOnly:r,placeholder:t||this.state.placeholder,value:this.state.value,className:"form-control"}),!r&&p().createElement("div",{className:"input-group",style:{border:"1px solid #ced4da",borderRadius:"0.25rem",marginTop:10}},p().createElement("input",{value:this.state.month,onKeyUp:function(e){return e.target.value&&2===e.target.value.length&&document.getElementById("day").focus()},name:"month",id:"month",onChange:function(t){return e.handleDateChange(t)},className:"form-control",type:"text",style:{border:"none"},onFocus:function(t){return e.handleBirthdayFocus()},placeholder:t||this.state.placeholder,maxLength:"2",pattern:"\\d*"}),this.state.birthdayFocused&&p().createElement(p().Fragment,null,p().createElement("span",{style:{display:this.state.year||this.state.day||this.state.month?"":"none",alignSelf:"center"}},"/"),p().createElement("input",{value:this.state.day,onKeyUp:function(e){return e.target.value&&2===e.target.value.length&&document.getElementById("year").focus()},name:"day",id:"day",className:"form-control",type:"text",style:{border:"none"},onChange:function(t){return e.handleDateChange(t)},onFocus:function(t){return e.handleBirthdayFocus()},maxLength:"2",pattern:"\\d*"}),p().createElement("span",{style:{display:this.state.year||this.state.day||this.state.month?"":"none",alignSelf:"center"}},"/"),p().createElement("input",{value:this.state.year,name:"year",id:"year",className:"form-control",type:"text",style:{border:"none"},onFocus:function(t){return e.handleBirthdayFocus()},maxLength:"4",pattern:"\\d*",onChange:function(t){return e.handleDateChange(t)}}))))))}}],[{key:"updateDateTime",value:function(e,t,n){var r,o,i=e.data.defaultToday;if(!i||""!==e.defaultValue&&void 0!==e.defaultValue)if(""===(r=e.defaultValue||""))o="";else{var a=function(e,t,n,r){var o,i,a,s,c,u,l,p,f,d,h,g,m,y,v,b,w,S;bi(3,arguments);var E=String(e),k=String(t),O=xi(),M=null!==(o=null!==(i=null==r?void 0:r.locale)&&void 0!==i?i:O.locale)&&void 0!==o?o:ra;if(!M.match)throw new RangeError("locale must contain match property");var C=Si(null!==(a=null!==(s=null!==(c=null!==(u=null==r?void 0:r.firstWeekContainsDate)&&void 0!==u?u:null==r||null===(l=r.locale)||void 0===l||null===(p=l.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==c?c:O.firstWeekContainsDate)&&void 0!==s?s:null===(f=O.locale)||void 0===f||null===(d=f.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==a?a:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var x=Si(null!==(h=null!==(g=null!==(m=null!==(y=null==r?void 0:r.weekStartsOn)&&void 0!==y?y:null==r||null===(v=r.locale)||void 0===v||null===(b=v.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==m?m:O.weekStartsOn)&&void 0!==g?g:null===(w=O.locale)||void 0===w||null===(S=w.options)||void 0===S?void 0:S.weekStartsOn)&&void 0!==h?h:0);if(!(x>=0&&x<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===k)return""===E?wi(n):new Date(NaN);var _,D={firstWeekContainsDate:C,weekStartsOn:x,locale:M},T=[new ha],j=k.match(Is).map((function(e){var t=e[0];return t in Ui?(0,Ui[t])(e,M.formatLong):e})).join("").match(js),I=[],N=la(j);try{var L=function(){var t=_.value;null!=r&&r.useAdditionalWeekYearTokens||!Vi(t)||Gi(t,k,e),null!=r&&r.useAdditionalDayOfYearTokens||!Yi(t)||Gi(t,k,e);var n=t[0],o=Ts[n];if(o){var i=o.incompatibleTokens;if(Array.isArray(i)){var a=I.find((function(e){return i.includes(e.token)||e.token===n}));if(a)throw new RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===o.incompatibleTokens&&I.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));I.push({token:n,fullToken:t});var s=o.run(E,t,M.match,D);if(!s)return{v:new Date(NaN)};T.push(s.setter),E=s.rest}else{if(n.match(Ps))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=t.match(Ns)[1].replace(Ls,"'")),0!==E.indexOf(t))return{v:new Date(NaN)};E=E.slice(t.length)}};for(N.s();!(_=N.n()).done;){var A=L();if("object"===(0,qn.Z)(A))return A.v}}catch(e){N.e(e)}finally{N.f()}if(E.length>0&&As.test(E))return new Date(NaN);var P=T.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return T.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),R=wi(n);if(isNaN(R.getTime()))return new Date(NaN);var B,z=Ei(R,Hi(R)),F={},U=la(P);try{for(U.s();!(B=U.n()).done;){var H=B.value;if(!H.validate(z,D))return new Date(NaN);var Z=H.set(z,F,D);Array.isArray(Z)?(z=Z[0],pa(F,Z[1])):z=Z}}catch(e){U.e(e)}finally{U.f()}return z}(r,n,new Date);o="Invalid Date"===a.toString()?"":a}else{var s=new Date;r="Invalid Date"===s.toString()?"":ua(s,"yyyy-MM-dd"),o="Invalid Date"===s.toString()?"":s}return{value:r,internalValue:o,placeholder:n.toLowerCase(),defaultToday:i,formatMask:n}}},{key:"updateFormat",value:function(e,t){var n=e.data,r=n.showTimeSelect,o=n.showTimeSelectOnly,i=n.showTimeInput,a=r&&o?"":e.data.dateFormat,s=r||i?e.data.timeFormat:"",c="".concat(a," ").concat(s).trim();return{updated:c!==t,formatMask:c}}},{key:"getDerivedStateFromProps",value:function(e,t){var n=s.updateFormat(e,t.formatMask),r=n.updated,o=n.formatMask;return e.data.defaultToday!==t.defaultToday||r?s.updateDateTime(e,t,o):null}}]),s}(p().Component);var Qs={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Js=l.createContext&&l.createContext(Qs),Xs=["attr","size","title"];function $s(){return $s=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},$s.apply(this,arguments)}function ec(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 tc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ec(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ec(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nc(e){return e&&e.map(((e,t)=>l.createElement(e.tag,tc({key:t},e.attr),nc(e.child))))}function rc(e){return t=>l.createElement(oc,$s({attr:tc({},e.attr)},t),nc(e.child))}function oc(e){var t=t=>{var n,{attr:r,size:o,title:i}=e,a=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,Xs),s=o||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),l.createElement("svg",$s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,a,{className:n,style:tc(tc({color:e.color||t.color},t.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),i&&l.createElement("title",null,i),e.children)};return void 0!==Js?l.createElement(Js.Consumer,null,(e=>t(e))):t(Qs)}function ic(e){return rc({tag:"svg",attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"},child:[]}]})(e)}function ac(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ac(Object(n),!0).forEach((function(t){Re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ac(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.Z)(e);if(t){var o=(0,u.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.Z)(this,n)}}var uc={},lc=function(e){(0,i.Z)(o,e);var t=cc(o);function o(){return(0,n.Z)(this,o),t.apply(this,arguments)}return(0,r.Z)(o,[{key:"render",value:function(){var e="static";this.props.data.bold&&(e+=" bold"),this.props.data.italic&&(e+=" italic");var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),p().createElement("div",{style:sc({},this.props.style),className:t},p().createElement(Hs,this.props),p().createElement("h3",{className:e,dangerouslySetInnerHTML:{__html:Ys.process(this.props.data.content)}}))}}]),o}(p().Component),pc=function(e){(0,i.Z)(o,e);var t=cc(o);function o(){return(0,n.Z)(this,o),t.apply(this,arguments)}return(0,r.Z)(o,[{key:"render",value:function(){var e="static";this.props.data.bold&&(e+=" bold"),this.props.data.italic&&(e+=" italic");var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),p().createElement("div",{style:sc({},this.props.style),className:t},p().createElement(Hs,this.props),p().createElement("p",{className:e,dangerouslySetInnerHTML:{__html:Ys.process(this.props.data.content)}}))}}]),o}(p().Component),fc=function(e){(0,i.Z)(o,e);var t=cc(o);function o(){return(0,n.Z)(this,o),t.apply(this,arguments)}return(0,r.Z)(o,[{key:"render",value:function(){var e="static";this.props.data.bold&&(e+=" bold"),this.props.data.italic&&(e+=" italic");var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),p().createElement("div",{style:sc({},this.props.style),className:t},p().createElement(Hs,this.props),p().createElement("label",{className:"".concat(e," form-label"),dangerouslySetInnerHTML:{__html:Ys.process(this.props.data.content)}}))}}]),o}(p().Component),dc=function(e){(0,i.Z)(o,e);var t=cc(o);function o(){return(0,n.Z)(this,o),t.apply(this,arguments)}return(0,r.Z)(o,[{key:"render",value:function(){var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),p().createElement("div",{style:sc({},this.props.style),className:e},p().createElement(Hs,this.props),p().createElement("hr",null))}}]),o}(p().Component),hc=function(e){(0,i.Z)(o,e);var t=cc(o);function o(e){var r;return(0,n.Z)(this,o),(r=t.call(this,e)).inputField=p().createRef(),r}return(0,r.Z)(o,[{key:"render",value:function(){var e={type:"text",className:"form-control"};e.name=this.props.data.field_name,e.placeholder=this.props.data.placeholder,this.props.mutable&&(e.defaultValue=this.props.defaultValue,e.ref=this.inputField);var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),this.props.read_only&&(e.disabled="disabled"),p().createElement("div",{style:sc({},this.props.style),className:t},p().createElement(Hs,this.props),p().createElement("div",{className:"form-floating"},p().createElement(Vs,this.props),p().createElement("input",e)))}}]),o}(p().Component),gc=function(e){(0,i.Z)(o,e);var t=cc(o);function o(e){var r;return(0,n.Z)(this,o),(r=t.call(this,e)).inputField=p().createRef(),r}return(0,r.Z)(o,[{key:"render",value:function(){var e={type:"text",className:"form-control"};e.name=this.props.data.field_name,e.placeholder=this.props.data.placeholder,this.props.mutable&&(e.defaultValue=this.props.defaultValue,e.ref=this.inputField);var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),this.props.read_only&&(e.disabled="disabled"),p().createElement("div",{style:sc({},this.props.style),className:t},p().createElement(Hs,this.props),p().createElement("div",{className:"form-floating"},p().createElement(Vs,this.props),p().createElement("input",e)))}}]),o}(p().Component),mc=function(e){(0,i.Z)(o,e);var t=cc(o);function o(e){var r;return(0,n.Z)(this,o),(r=t.call(this,e)).inputField=p().createRef(),r}return(0,r.Z)(o,[{key:"render",value:function(){var e={type:"tel",className:"form-control"};e.name=this.props.data.field_name,e.placeholder=this.props.data.placeholder,this.props.mutable&&(e.defaultValue=this.props.defaultValue,e.ref=this.inputField);var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),this.props.read_only&&(e.disabled="disabled"),p().createElement("div",{style:sc({},this.props.style),className:t},p().createElement(Hs,this.props),p().createElement("div",{className:"form-floating"},p().createElement(Vs,this.props),p().createElement("input",e)))}}]),o}(p().Component),yc=function(e){(0,i.Z)(o,e);var t=cc(o);function o(e){var r;return(0,n.Z)(this,o),(r=t.call(this,e)).inputField=p().createRef(),r}return(0,r.Z)(o,[{key:"render",value:function(){var e={type:"number",className:"form-control"};e.name=this.props.data.field_name,e.placeholder=this.props.data.placeholder,this.props.mutable&&(e.defaultValue=this.props.defaultValue,e.ref=this.inputField),this.props.read_only&&(e.disabled="disabled");var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),p().createElement("div",{style:sc({},this.props.style),className:t},p().createElement(Hs,this.props),p().createElement("div",{className:"form-floating"},p().createElement(Vs,this.props),p().createElement("input",e)))}}]),o}(p().Component),vc=function(e){(0,i.Z)(o,e);var t=cc(o);function o(e){var r;return(0,n.Z)(this,o),(r=t.call(this,e)).inputField=p().createRef(),r}return(0,r.Z)(o,[{key:"render",value:function(){var e={className:"form-control"};e.name=this.props.data.field_name,e.placeholder=this.props.data.placeholder,this.props.read_only&&(e.disabled="disabled"),this.props.mutable&&(e.defaultValue=this.props.defaultValue,e.ref=this.inputField);var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),p().createElement("div",{style:sc({},this.props.style),className:t},p().createElement(Hs,this.props),p().createElement("div",{className:"form-floating"},p().createElement(Vs,this.props),p().createElement("textarea",e)))}}]),o}(p().Component),bc=function(e){(0,i.Z)(o,e);var t=cc(o);function o(e){var r;return(0,n.Z)(this,o),(r=t.call(this,e)).inputField=p().createRef(),r}return(0,r.Z)(o,[{key:"render",value:function(){var e={className:"form-select"};e.name=this.props.data.field_name,this.props.mutable&&(e.defaultValue=this.props.defaultValue,e.ref=this.inputField),this.props.read_only&&(e.disabled="disabled");var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),p().createElement("div",{style:sc({},this.props.style),className:t},p().createElement(Hs,this.props),p().createElement("div",{className:"form-floating"},p().createElement(Vs,this.props),p().createElement("select",e,this.props.data.options.map((function(e){var t="preview_".concat(e.key);return p().createElement("option",{value:e.value,key:t},e.text)})))))}}]),o}(p().Component),wc=function(e){(0,i.Z)(a,e);var t=cc(a);function a(e){var r;return(0,n.Z)(this,a),r=t.call(this,e),Re((0,o.Z)(r),"clear",(function(){r.state.defaultValue?r.setState({defaultValue:""}):r.canvas.current&&r.canvas.current.clear()})),r.state={defaultValue:e.defaultValue},r.inputField=p().createRef(),r.canvas=p().createRef(),r}return(0,r.Z)(a,[{key:"render",value:function(){var e=this.state.defaultValue,t=!!e,n={type:"hidden"};n.name=this.props.data.field_name,this.props.mutable&&(n.defaultValue=e,n.ref=this.inputField);var r={};this.props.mutable&&(r.defaultValue=e,r.ref=this.canvas,t=!this.props.read_only);var o,i="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(i+=" alwaysbreak"),e&&e.length>0&&(o="data:image/png;base64,".concat(e)),p().createElement("div",{style:sc({},this.props.style),className:i},p().createElement(Hs,this.props),p().createElement("div",{className:"form-floating"},p().createElement(Vs,this.props),!0===this.props.read_only||o?p().createElement("img",{src:o}):p().createElement(di(),r),t&&p().createElement(ic,{className:"clear-signature",onClick:this.clear,title:"Clear Signature"}),p().createElement("input",n)))}}]),a}(p().Component),Sc=function(e){(0,i.Z)(a,e);var t=cc(a);function a(e){var r;(0,n.Z)(this,a),r=t.call(this,e),Re((0,o.Z)(r),"handleChange",(function(e){r.setState({value:e||[]})})),r.inputField=p().createRef();var i=e.defaultValue,s=e.data;return r.state={value:r.getDefaultValue(i,s.options)},r}return(0,r.Z)(a,[{key:"getDefaultValue",value:function(e,t){if(e){if("string"==typeof e){var n=e.split(",").map((function(e){return e.trim()}));return t.filter((function(e){return n.indexOf(e.value)>-1}))}return t.filter((function(t){return e.indexOf(t.value)>-1}))}return[]}},{key:"render",value:function(){var e=this.props.data.options.map((function(e){return e.label=e.text,e})),t={isMulti:!0};t.name=this.props.data.field_name,t.onChange=this.handleChange,t.options=e,this.props.mutable||(t.value=e[0].text),this.props.mutable&&(t.isDisabled=this.props.read_only,t.value=this.state.value,t.ref=this.inputField);var n="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(n+=" alwaysbreak"),p().createElement("div",{style:sc({},this.props.style),className:n},p().createElement(Hs,this.props),p().createElement("div",{className:"form-floating"},p().createElement(Vs,this.props),p().createElement(pi,t)))}}]),a}(p().Component),Ec=function(e){(0,i.Z)(a,e);var o=cc(a);function a(e){var t;return(0,n.Z)(this,a),(t=o.call(this,e)).options={},t}return(0,r.Z)(a,[{key:"render",value:function(){var e=this,n=this,r="custom-control custom-checkbox";this.props.data.inline&&(r+=" option-inline");var o="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(o+=" alwaysbreak"),p().createElement("div",{style:sc({},this.props.style),className:o},p().createElement(Hs,this.props),p().createElement("div",{className:"form-group"},p().createElement(Vs,this.props),this.props.data.options.map((function(o){var i="preview_".concat(o.key),a={};return a.name="option_".concat(o.key),a.type="checkbox",a.value=o.value,n.props.mutable&&(a.defaultChecked=void 0!==n.props.defaultValue&&n.props.defaultValue.indexOf(o.key)>-1),e.props.read_only&&(a.disabled="disabled"),p().createElement("div",{className:r,key:i},p().createElement("input",(0,t.Z)({id:"fid_".concat(i),className:"custom-control-input",ref:function(e){e&&n.props.mutable&&(n.options["child_ref_".concat(o.key)]=e)}},a)),p().createElement("label",{className:"custom-control-label",htmlFor:"fid_".concat(i)},o.text))}))))}}]),a}(p().Component),kc=function(e){(0,i.Z)(a,e);var o=cc(a);function a(e){var t;return(0,n.Z)(this,a),(t=o.call(this,e)).inputField=p().createRef(),t}return(0,r.Z)(a,[{key:"render",value:function(){var e="SortableItem rfb-item";this.props.data.pageBreakBefore&&(e+=" alwaysbreak");var n={};return n.name=this.props.data.field_name,n.type="checkbox",n.defaultChecked=this.props.data.defaultChecked,this.props.mutable&&(n.ref=this.inputField),this.props.read_only&&(n.disabled="disabled"),p().createElement("div",{style:sc({},this.props.style),className:e},p().createElement(Hs,this.props),p().createElement("div",{className:"form-group"},p().createElement(Vs,(0,t.Z)({className:"form-label"},this.props)),p().createElement("div",{className:"custom-control custom-checkbox"},p().createElement("input",(0,t.Z)({id:this.props.data.field_name,className:"custom-control-input"},n)),p().createElement("label",{className:"custom-control-label",htmlFor:this.props.data.field_name,dangerouslySetInnerHTML:{__html:this.props.data.boxLabel}}))))}}]),a}(p().Component),Oc=function(e){(0,i.Z)(a,e);var o=cc(a);function a(e){var t;return(0,n.Z)(this,a),(t=o.call(this,e)).options={},t}return(0,r.Z)(a,[{key:"render",value:function(){var e=this,n=this,r="custom-control custom-radio";this.props.data.inline&&(r+=" option-inline");var o="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(o+=" alwaysbreak"),p().createElement("div",{style:sc({},this.props.style),className:o},p().createElement(Hs,this.props),p().createElement("div",{className:"form-group"},p().createElement(Vs,this.props),this.props.data.options.map((function(o){var i="preview_".concat(o.key),a={};return a.name=n.props.data.field_name,a.type="radio",a.value=o.value,n.props.mutable&&(a.defaultChecked=void 0!==n.props.defaultValue&&(n.props.defaultValue.indexOf(o.key)>-1||n.props.defaultValue.indexOf(o.value)>-1)),e.props.read_only&&(a.disabled="disabled"),p().createElement("div",{className:r,key:i},p().createElement("input",(0,t.Z)({id:"fid_".concat(i),className:"custom-control-input",ref:function(e){e&&n.props.mutable&&(n.options["child_ref_".concat(o.key)]=e)}},a)),p().createElement("label",{className:"custom-control-label",htmlFor:"fid_".concat(i)},o.text))}))))}}]),a}(p().Component),Mc=function(e){(0,i.Z)(o,e);var t=cc(o);function o(){return(0,n.Z)(this,o),t.apply(this,arguments)}return(0,r.Z)(o,[{key:"render",value:function(){var e=this.props.data.center?{textAlign:"center"}:null,t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),p().createElement("div",{style:sc(sc({},this.props.style),e),className:t},p().createElement(Hs,this.props),this.props.data.src&&p().createElement("img",{src:this.props.data.src,width:this.props.data.width,height:this.props.data.height}),!this.props.data.src&&p().createElement("div",{className:"no-image"},"No Image"))}}]),o}(p().Component),Cc=function(e){(0,i.Z)(o,e);var t=cc(o);function o(e){var r;return(0,n.Z)(this,o),(r=t.call(this,e)).inputField=p().createRef(),r}return(0,r.Z)(o,[{key:"render",value:function(){var e={};e.name=this.props.data.field_name,e.ratingAmount=5,this.props.mutable&&(e.rating=void 0!==this.props.defaultValue?parseFloat(this.props.defaultValue,10):0,e.editing=!0,e.disabled=this.props.read_only,e.ref=this.inputField);var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),p().createElement("div",{style:sc({},this.props.style),className:t},p().createElement(Hs,this.props),p().createElement("div",{className:"form-group"},p().createElement(Vs,this.props),p().createElement(vi,e)))}}]),o}(p().Component),xc=function(e){(0,i.Z)(o,e);var t=cc(o);function o(){return(0,n.Z)(this,o),t.apply(this,arguments)}return(0,r.Z)(o,[{key:"render",value:function(){var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),p().createElement("div",{style:sc({},this.props.style),className:e},p().createElement(Hs,this.props),p().createElement("div",{className:"form-group"},p().createElement("label",{className:"form-label"},p().createElement("a",{target:"_blank",href:this.props.data.href,dangerouslySetInnerHTML:{__html:Ys.process(this.props.data.content)}}))))}}]),o}(p().Component),_c=function(e){(0,i.Z)(o,e);var t=cc(o);function o(){return(0,n.Z)(this,o),t.apply(this,arguments)}return(0,r.Z)(o,[{key:"render",value:function(){var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),p().createElement("div",{style:sc({},this.props.style),className:e},p().createElement(Hs,this.props),p().createElement("div",{className:"form-group"},p().createElement("a",{href:"".concat(this.props.download_path,"?id=").concat(this.props.data.file_path)},this.props.data.content)))}}]),o}(p().Component),Dc=function(e){(0,i.Z)(s,e);var a=cc(s);function s(e){var t;return(0,n.Z)(this,s),t=a.call(this,e),Re((0,o.Z)(t),"displayImage",(function(e){var n=(0,o.Z)(t),r=e.target;r.files&&r.files.length&&n.setState({img:r.files[0],previewImg:URL.createObjectURL(r.files[0])})})),Re((0,o.Z)(t),"clearImage",(function(){t.setState({img:null,previewImg:null})})),t.state={img:null,previewImg:null},t}return(0,r.Z)(s,[{key:"getImageSizeProps",value:function(e){var t=e.width,n=e.height,r={width:"100%"};return t&&(r.width=t<window.innerWidth?t:.9*window.innerWidth),n&&(r.height=n),r}},{key:"render",value:function(){var e,n=this,r={objectFit:"scale-down",objectPosition:this.props.data.center?"center":"left"},o="SortableItem rfb-item",i=this.props.data.field_name,a=this.state.img?{display:"none"}:null;return this.props.data.pageBreakBefore&&(o+=" alwaysbreak"),!0===this.props.read_only&&this.props.defaultValue&&this.props.defaultValue.length>0&&(e=this.props.defaultValue.indexOf(i>-1)?this.props.defaultValue:"data:image/png;base64,".concat(this.props.defaultValue)),p().createElement("div",{style:sc({},this.props.style),className:o},p().createElement(Hs,this.props),p().createElement("div",{className:"form-group"},p().createElement(Vs,this.props),!0===this.props.read_only&&this.props.defaultValue&&this.props.defaultValue.length>0?p().createElement("div",null,p().createElement("img",(0,t.Z)({style:r,src:e},this.getImageSizeProps(this.props.data)))):p().createElement("div",{className:"image-upload-container"},p().createElement("div",{style:a},p().createElement("input",{name:i,type:"file",accept:"image/*",capture:"camera",className:"image-upload",onChange:this.displayImage}),p().createElement("div",{className:"image-upload-control"},p().createElement("div",{className:"btn btn-default"},p().createElement("i",{className:"fas fa-camera"})," Upload Photo"),p().createElement("p",null,"Select an image from your computer or device."))),this.state.img&&p().createElement("div",null,p().createElement("img",{onLoad:function(){return URL.revokeObjectURL(n.state.previewImg)},src:this.state.previewImg,height:"100",className:"image-upload-preview"}),p().createElement("br",null),p().createElement("div",{className:"btn btn-image-clear",onClick:this.clearImage},p().createElement("i",{className:"fas fa-times"})," Clear Photo")))))}}]),s}(p().Component),Tc=function(e){(0,i.Z)(a,e);var t=cc(a);function a(e){var r;return(0,n.Z)(this,a),r=t.call(this,e),Re((0,o.Z)(r),"displayFileUpload",(function(e){var t,n=(0,o.Z)(r),i=e.target;i.files&&i.files.length>0&&(t=i.files[0],n.setState({fileUpload:t}))})),Re((0,o.Z)(r),"clearFileUpload",(function(){r.setState({fileUpload:null})})),Re((0,o.Z)(r),"saveFile",function(){var e=Ge(Qe().mark((function e(t){var n,o,i,a,s,c,u;return Qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),n=r.props.defaultValue,e.next=4,ht()(n,{method:"GET",headers:{Accept:"application/json","Content-Type":"application/json; charset=utf-8"},responseType:"blob"});case 4:return o=e.sent,i=o.headers.get("Content-Disposition"),e.next=8,o.blob();case 8:a=e.sent,s=new Blob([a],{type:r.props.data.fileType||o.headers.get("Content-Type")}),i&&i.indexOf(";filename=")>-1?(c=i.split(";filename=")[1],(0,gt.saveAs)(s,c)):(u=n.substring(n.lastIndexOf("/")+1),(0,gt.saveAs)(o.url,u));case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),r.state={fileUpload:null},r}return(0,r.Z)(a,[{key:"render",value:function(){var e="SortableItem rfb-item",t=this.props.data.field_name,n=this.state.fileUpload?{display:"none"}:null;return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),p().createElement("div",{style:sc({},this.props.style),className:e},p().createElement(Hs,this.props),p().createElement("div",{className:"form-group"},p().createElement(Vs,this.props),!0===this.props.read_only&&this.props.defaultValue&&this.props.defaultValue.length>0?p().createElement("div",null,p().createElement("button",{className:"btn btn-default",onClick:this.saveFile},p().createElement("i",{className:"fas fa-download"})," Download File")):p().createElement("div",{className:"image-upload-container"},p().createElement("div",{style:n},p().createElement("input",{name:t,type:"file",accept:this.props.data.fileType||"*",className:"image-upload",onChange:this.displayFileUpload}),p().createElement("div",{className:"image-upload-control"},p().createElement("div",{className:"btn btn-default"},p().createElement("i",{className:"fas fa-file"})," Upload File"),p().createElement("p",null,"Select a file from your computer or device."))),this.state.fileUpload&&p().createElement("div",null,p().createElement("div",{className:"file-upload-preview"},p().createElement("div",{style:{display:"inline-block",marginRight:"5px"}},"Name: ".concat(this.state.fileUpload.name)),p().createElement("div",{style:{display:"inline-block",marginLeft:"5px"}},this.state.fileUpload.size.length>6?"Size: ".concat(Math.ceil(this.state.fileUpload.size/1048576)," mb"):"Size: ".concat(Math.ceil(this.state.fileUpload.size/1024)," kb"))),p().createElement("br",null),p().createElement("div",{className:"btn btn-file-upload-clear",onClick:this.clearFileUpload},p().createElement("i",{className:"fas fa-times"})," Clear File")))))}}]),a}(p().Component),jc=function(e){(0,i.Z)(a,e);var t=cc(a);function a(e){var r;return(0,n.Z)(this,a),r=t.call(this,e),Re((0,o.Z)(r),"changeValue",(function(e){var t=e.target;r.setState({value:t.value})})),r.inputField=p().createRef(),r.state={value:void 0!==e.defaultValue?parseInt(e.defaultValue,10):parseInt(e.data.default_value,10)},r}return(0,r.Z)(a,[{key:"render",value:function(){var e={},t=this.props.data.field_name;e.type="range",e.list="tickmarks_".concat(t),e.min=this.props.data.min_value,e.max=this.props.data.max_value,e.step=this.props.data.step,e.value=this.state.value,e.onChange=this.changeValue,this.props.mutable&&(e.ref=this.inputField);for(var n=[],r=parseInt(e.min,10);r<=parseInt(e.max,10);r+=parseInt(e.step,10))n.push(r);var o=100/(n.length-1),i=n.map((function(t,n){return p().createElement("option",{key:"".concat(e.list,"_").concat(n)},t)})),a=n.map((function(t,r){var i={},a=o;return 0!==r&&r!==n.length-1||(a=o/2),i.key="".concat(e.list,"_label_").concat(r),i.style={width:"".concat(a,"%")},r===n.length-1&&(i.style={width:"".concat(a,"%"),textAlign:"right"}),p().createElement("label",i,t)}));this.props.read_only&&(e.disabled="disabled");var s="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(s+=" alwaysbreak"),p().createElement("div",{style:sc({},this.props.style),className:s},p().createElement(Hs,this.props),p().createElement("div",{className:"form-group"},p().createElement(Vs,this.props),p().createElement("div",{className:"range"},p().createElement("div",{className:"clearfix"},p().createElement("span",{className:"float-start"},this.props.data.min_label),p().createElement("span",{className:"float-end"},this.props.data.max_label)),p().createElement(gi(),e)),p().createElement("div",{className:"visible_marks"},a),p().createElement("input",{name:t,value:this.state.value,type:"hidden"}),p().createElement("datalist",{id:e.list},i)))}}]),a}(p().Component);uc.Header=lc,uc.Paragraph=pc,uc.Label=fc,uc.LineBreak=dc,uc.TextInput=hc,uc.EmailInput=gc,uc.PhoneNumber=mc,uc.NumberInput=yc,uc.TextArea=vc,uc.Dropdown=bc,uc.Signature=wc,uc.Checkboxes=Ec,uc.Checkbox=kc,uc.DatePicker=qs,uc.RadioButtons=Oc,uc.Image=Mc,uc.Rating=Cc,uc.Tags=Sc,uc.HyperLink=xc,uc.Download=_c,uc.Camera=Dc,uc.FileUpload=Tc,uc.Range=jc;const Ic=uc;function Nc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nc(Object(n),!0).forEach((function(t){Re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ac=function(e){(0,i.Z)(l,e);var o,a,s=(o=l,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=(0,u.Z)(o);if(a){var n=(0,u.Z)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,c.Z)(this,e)});function l(e){var t;return(0,n.Z)(this,l),(t=s.call(this,e)).inputField=p().createRef(),t}return(0,r.Z)(l,[{key:"render",value:function(){var e=this.props.data.bare,n={};if(n.name=this.props.data.field_name,n.defaultValue=this.props.defaultValue,this.props.mutable&&this.props.data.forwardRef&&(n.ref=this.inputField),this.props.read_only&&(n.disabled="disabled"),!this.props.data.component)return null;var r=this.props.data.component,o="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(o+=" alwaysbreak"),p().createElement("div",{className:o,style:Lc({},this.props.style)},p().createElement(Hs,this.props),e?p().createElement(r,(0,t.Z)({data:this.props.data},this.props.data.props,n)):p().createElement("div",{className:"form-group"},p().createElement(Vs,(0,t.Z)({className:"form-label"},this.props)),p().createElement(r,(0,t.Z)({data:this.props.data},this.props.data.props,n))))}}]),l}(p().Component);Ac.propTypes={};const Pc=Ac;var Rc=a(8708),Bc=a.n(Rc),zc=["onDropSuccess","seq","draggedItem","parentIndex","canDrop","isOver","isOverCurrent","connectDropTarget","items","col","getDataById"];function Fc(e){return{border:"1px solid rgba(0,0,0,0.2)",minHeight:"2rem",minWidth:"7rem",width:"100%",backgroundColor:e,padding:0,float:"left"}}var Uc=p().forwardRef((function(e,n){var r=e.onDropSuccess,o=(e.seq,e.draggedItem),i=e.parentIndex,a=e.canDrop,s=e.isOver,c=(e.isOverCurrent,e.connectDropTarget),u=e.items,l=e.col,f=e.getDataById,d=bt(e,zc),h=f(u[l]);p().useImperativeHandle(n,(function(){return{onDrop:function(e){console.log("dropped ites"),e.data&&(r&&r(),Ye.dispatch("deleteLastItem"))}}}),[]);var g=function(e,n){if(!e)return null;if(e.custom)return function(e,n){return e.component&&"function"==typeof e.component||(e.component=Bc().get(e.key),e.component||console.error("".concat(e.element," was not registered"))),p().createElement(Pc,(0,t.Z)({},n,{mutable:!1,key:"form_".concat(e.id),data:e}))}(e,n);var r=Ic[e.element||e.key];return p().createElement(r,(0,t.Z)({},n,{key:"form_".concat(e.id),data:e}))}(h,d),m=!!o&&o.index===i,y="rgba(0, 0, 0, .03)";return!m&&s&&a&&!o.data.isContainer&&(y="#F7F589"),c(p().createElement("div",{style:Fc(m?"rgba(0, 0, 0, .03":y)},!g&&p().createElement("span",null,"Drop your element here "),g))}));const Hc=(0,nt.DropTarget)((function(e){return e.accepts}),{drop:function(e,t,n){if(n){var r=!!e.items[e.col],o=t.getItem();if(e.col!==o.col||e.items[e.col]!==o.id)if(void 0===o.col&&e.items[e.col])Ye.dispatch("resetLastItem");else if(!function(e){if(e.itemType!==rt){var t=e.data;if(t){if(t.isContainer)return!0;if(t.field_name)return t.field_name.indexOf("_col_row")>-1}}return!1}(o)&&(n.onDrop(o),console.log("calling on Drop from 137",o),o.data&&"function"==typeof e.setAsChild)){var i=o.data.id?o.data:o.onCreate(o.data);e.setAsChild(e.data,i,e.col,r)}}}},(function(e,t){return{connectDropTarget:e.dropTarget(),draggedItem:t.getItem()?t.getItem():null,isOver:t.isOver(),isOverCurrent:t.isOver({shallow:!0}),canDrop:t.canDrop()}}))(Uc);var Zc=["data","class_name"],Kc=["data","class_name"],Yc=["data"];function Vc(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 Gc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vc(Object(n),!0).forEach((function(t){Re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Wc=[ot,rt],qc=function(e){(0,i.Z)(s,e);var t,o,a=(t=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.Z)(t);if(o){var r=(0,u.Z)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return(0,c.Z)(this,e)});function s(){return(0,n.Z)(this,s),a.apply(this,arguments)}return(0,r.Z)(s,[{key:"render",value:function(){var e=this.props,t=e.controls,n=e.data,r=e.editModeOn,o=e.getDataById,i=e.setAsChild,a=e.removeChild,s=e.seq,c=e.className,u=e.index,l=n.childItems,f="SortableItem rfb-item";return n.pageBreakBefore&&(f+=" alwaysbreak"),p().createElement("div",{style:Gc({},this.props.style),className:f},p().createElement(Hs,this.props),p().createElement("div",null,p().createElement(Vs,this.props),p().createElement("div",{className:"row"},l.map((function(e,f){return p().createElement("div",{key:"".concat(f,"_").concat(e||"_"),className:c},t?t[f]:p().createElement(Hc,{style:{width:"100%"},data:n,accepts:Wc,items:l,col:f,parentIndex:u,editModeOn:r,_onDestroy:function(){return a(n,f)},getDataById:o,setAsChild:i,seq:s}))})))))}}]),s}(p().Component),Qc=function(e){var n=e.data,r=e.class_name,o=bt(e,Zc),i=r||"col-md-6";return n.childItems||(n.childItems=[null,null],n.isContainer=!0),p().createElement(qc,(0,t.Z)({},o,{className:i,data:n}))},Jc=function(e){var n=e.data,r=e.class_name,o=bt(e,Kc),i=r||"col-md-4";return n.childItems||(n.childItems=[null,null,null],n.isContainer=!0),p().createElement(qc,(0,t.Z)({},o,{className:i,data:n}))},Xc=function(e){var n=e.data,r=bt(e,Yc),o=n.col_count||4,i=n.class_name||(4===o?"col-md-3":"col");return n.childItems||(n.childItems=Array.from({length:o},(function(e,t){return null})),n.isContainer=!0),p().createElement(qc,(0,t.Z)({},r,{className:i,data:n}))},$c=["data","class_name"];function eu(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 tu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eu(Object(n),!0).forEach((function(t){Re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nu=[ot,rt];function ru(e){var n=We(p().useState({}),2),r=n[0],o=n[1],i=We(p().useState(null),2),a=i[0],s=i[1];p().useEffect((function(){var t=e.data;e.class_name,bt(e,$c),o(t),c(1,t)}),[e]);var c=function(e,t){var n=e;t.class_name,t.childItems||(t.childItems=Array.from({length:n},(function(e,t){return null})),t.isContainer=!0),s(t.childItems)},u=e.controls,l=e.editModeOn,f=e.getDataById,d=e.setAsChild,h=e.removeChild,g=e.seq,m=(e.className,e.index),y="SortableItem rfb-item";return r.pageBreakBefore&&(y+=" alwaysbreak"),p().createElement("div",{style:tu({},e.style),className:y},p().createElement(Hs,(0,t.Z)({},e,{isFieldSet:!0})),p().createElement("div",null,p().createElement(Vs,e),p().createElement("div",{className:"row"},null==a?void 0:a.map((function(t,n){return p().createElement("div",{key:"".concat(n,"_").concat(t||"_"),className:"col-md-12"},u?u[n]:p().createElement(Hc,{style:{width:"100%"},data:r,accepts:nu,items:a,key:n,col:n,onDropSuccess:function(){return t=n,void((a?a.length:0)===t+1&&(o=(r=e.data).childItems.length+1,i=r.childItems,r.childItems=Array.from({length:o},(function(e,t){return i[t]?i[t]:null})),s(r.childItems)));var t,r,o,i},parentIndex:m,editModeOn:l,_onDestroy:function(){return h(r,n)},getDataById:f,setAsChild:d,seq:g,rowNo:n}))})))))}var ou=Ic.Header,iu=Ic.Paragraph,au=Ic.Label,su=Ic.LineBreak,cu=Ic.TextInput,uu=Ic.EmailInput,lu=Ic.PhoneNumber,pu=Ic.NumberInput,fu=Ic.TextArea,du=Ic.Dropdown,hu=Ic.Checkboxes,gu=Ic.DatePicker,mu=Ic.RadioButtons,yu=Ic.Image,vu=Ic.Rating,bu=Ic.Tags,wu=Ic.Signature,Su=Ic.HyperLink,Eu=Ic.Download,ku=Ic.Camera,Ou=Ic.Range,Mu=Ic.FileUpload,Cu=Ic.Checkbox,xu={};xu.Header=lt(ou),xu.Paragraph=lt(iu),xu.Label=lt(au),xu.LineBreak=lt(su),xu.TextInput=lt(cu),xu.EmailInput=lt(uu),xu.PhoneNumber=lt(lu),xu.NumberInput=lt(pu),xu.TextArea=lt(fu),xu.Dropdown=lt(du),xu.Signature=lt(wu),xu.Checkboxes=lt(hu),xu.Checkbox=lt(Cu),xu.DatePicker=lt(gu),xu.RadioButtons=lt(mu),xu.Image=lt(yu),xu.Rating=lt(vu),xu.Tags=lt(bu),xu.HyperLink=lt(Su),xu.Download=lt(Eu),xu.Camera=lt(ku),xu.FileUpload=lt(Mu),xu.Range=lt(Ou),xu.PlaceHolder=lt(ft),xu.FieldSet=lt(ru),xu.TwoColumnRow=lt(Qc),xu.ThreeColumnRow=lt(Jc),xu.MultiColumnRow=lt(Xc),xu.CustomElement=lt(Pc);const _u=xu;function Du(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 Tu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Du(Object(n),!0).forEach((function(t){Re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Du(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ju={border:"1px dashed gray",padding:"0.5rem 1rem",cursor:"move"},Iu={display:"inline-block",transform:"rotate(-7deg)",WebkitTransform:"rotate(-7deg)"},Nu=function(e){var t=e.title,n=e.color?"#059862":"white";return p().createElement("div",{style:Tu(Tu({},ju),{},{backgroundColor:n})},t)},Lu=function(e){var t=e.item,n=We(p().useState(!1),2),r=n[0],o=(n[1],t.data.content?t.data.content:t.data.label?t.data.label:t.data.text),i=o.length>20?"".concat(o.slice(0,20),"..."):o;return p().createElement("div",{style:Iu,role:"BoxPreview"},p().createElement(Nu,{title:i,color:r}))},Au={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"};function Pu(e){var t=e.initialOffset,n=e.currentOffset;if(!t||!n)return{display:"none"};var r=n.x,o=n.y,i="translate(".concat(r,"px, ").concat(o,"px)");return{transform:i,WebkitTransform:i}}const Ru=(0,nt.DragLayer)((function(e){return{item:e.getItem(),itemType:e.getItemType(),initialOffset:e.getInitialSourceClientOffset(),currentOffset:e.getSourceClientOffset(),isDragging:e.isDragging()}}))((function(e){var t=e.item,n=e.itemType;return e.isDragging?p().createElement("div",{style:Au},p().createElement("div",{style:Pu(e)},n===ot?p().createElement(Lu,{item:t}):null)):null}));var Bu=_u.PlaceHolder,zu=function(e){(0,i.Z)(l,e);var t,a,s=(t=l,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.Z)(t);if(a){var r=(0,u.Z)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return(0,c.Z)(this,e)});function l(e){var t;(0,n.Z)(this,l),t=s.call(this,e),Re((0,o.Z)(t),"state",{data:[],answer_data:{}}),Re((0,o.Z)(t),"editModeOff",(function(e){t.editForm.current&&!t.editForm.current.contains(e.target)&&t.manualEditModeOff()})),Re((0,o.Z)(t),"manualEditModeOff",(function(){var e=t.props.editElement;e&&e.dirty&&(e.dirty=!1,t.updateElement(e)),t.props.manualEditModeOff()}));var r=e.onLoad,i=e.onPost;return Ye.setExternalHandler(r,i),t.editForm=p().createRef(),t.state={data:e.data||[],answer_data:{}},t.seq=0,t._onUpdate=t._onChange.bind((0,o.Z)(t)),t.getDataById=t.getDataById.bind((0,o.Z)(t)),t.moveCard=t.moveCard.bind((0,o.Z)(t)),t.insertCard=t.insertCard.bind((0,o.Z)(t)),t.setAsChild=t.setAsChild.bind((0,o.Z)(t)),t.removeChild=t.removeChild.bind((0,o.Z)(t)),t._onDestroy=t._onDestroy.bind((0,o.Z)(t)),t}return(0,r.Z)(l,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.data,r=t.url,o=t.saveUrl,i=t.saveAlways;Ye.subscribe((function(t){return e._onUpdate(t.data)})),Ye.dispatch("load",{loadUrl:r,saveUrl:o,data:n||[],saveAlways:i}),document.addEventListener("mousedown",this.editModeOff)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.editModeOff)}},{key:"_setValue",value:function(e){return e.replace(/[^A-Z0-9]+/gi,"_").toLowerCase()}},{key:"updateElement",value:function(e){for(var t=this.state.data,n=!1,r=0,o=t.length;r<o;r++)if(e.id===t[r].id){t[r]=e,n=!0;break}n&&(this.seq=this.seq>1e5?0:this.seq+1,Ye.dispatch("updateOrder",t))}},{key:"_onChange",value:function(e){var t=this,n={};e.forEach((function(e){e&&e.readOnly&&t.props.variables[e.variableKey]&&(n[e.field_name]=t.props.variables[e.variableKey])})),this.setState({data:e,answer_data:n})}},{key:"_onDestroy",value:function(e){var t=this;e.childItems&&e.childItems.forEach((function(e){var n=t.getDataById(e);n&&Ye.dispatch("delete",n)})),Ye.dispatch("delete",e)}},{key:"getDataById",value:function(e){return this.state.data.find((function(t){return t&&t.id===e}))}},{key:"swapChildren",value:function(e,t,n,r){if(void 0!==n.col&&t.id!==n.parentId)return!1;if(void 0===n.col||n.col===r||!t.childItems[r])return!1;var o=t.childItems[r],i=this.getDataById(o),a=n.col;return t.childItems[a]=o,i.col=a,t.childItems[r]=n.id,n.col=r,Ye.dispatch("updateOrder",e),!0}},{key:"setAsChild",value:function(e,t,n,r){var o=this.state.data;if(!this.swapChildren(o,e,t,n)&&!r){var i=this.getDataById(t.parentId),a=t.col;e.childItems[n]=t.id,t.col=n,t.parentId=e.id,t.parentIndex=o.indexOf(e),i&&(i.childItems[a]=null);var s=o.filter((function(t){return t&&t.parentId===e.id})).filter((function(t){return-1===e.childItems.indexOf(t.id)})),c=o;s.length&&(c=o.filter((function(e){return-1===s.indexOf(e)}))),this.getDataById(t.id)||c.push(t),Ye.dispatch("updateOrder",c)}}},{key:"removeChild",value:function(e,t){var n=this.state.data,r=e.childItems[t],o=this.getDataById(r);if(o){var i=n.filter((function(e){return e!==o}));e.childItems[t]=null,this.seq=this.seq>1e5?0:this.seq+1,Ye.dispatch("updateOrder",i),this.setState({data:i})}}},{key:"restoreCard",value:function(e,t){var n=this.state.data,r=this.getDataById(e.data.parentId),o=this.getDataById(t);if(r&&o){var i=n.indexOf(o),a=Ae(n);r.childItems[o.col]=null,delete o.parentId,delete e.setAsChild,delete e.parentIndex,e.index=i,this.seq=this.seq>1e5?0:this.seq+1,Ye.dispatch("updateOrder",a),this.setState({data:a})}}},{key:"insertCard",value:function(e,t,n){var r=this.state.data;n?this.restoreCard(e,n):(r.splice(t,0,e),this.saveData(e,t,t),Ye.dispatch("insertItem",e))}},{key:"moveCard",value:function(e,t){var n=this.state.data[e];this.saveData(n,e,t)}},{key:"cardPlaceHolder",value:function(e,t){}},{key:"saveData",value:function(e,t,n){var r=ze()(this.state,{data:{$splice:[[t,1],[n,0,e]]}});this.setState(r),Ye.dispatch("updateOrder",r.data)}},{key:"getElement",value:function(e,t){e.custom&&(e.component&&"function"==typeof e.component||(e.component=this.props.registry.get(e.key)));var n=_u[e.element];return null===n?null:p().createElement(n,{id:e.id,seq:this.seq,index:t,moveCard:this.moveCard,insertCard:this.insertCard,mutable:!1,parent:this.props.parent,editModeOn:this.props.editModeOn,isDraggable:!0,key:e.id,sortData:e.id,data:e,getDataById:this.getDataById,setAsChild:this.setAsChild,removeChild:this.removeChild,_onDestroy:this._onDestroy})}},{key:"showEditForm",value:function(){var e=this,t=function(t){return e.updateElement(t)};t.bind(this);var n={showCorrectColumn:this.props.showCorrectColumn,files:this.props.files,manualEditModeOff:this.manualEditModeOff,preview:this,element:this.props.editElement,updateElement:t};return this.props.renderEditForm(n)}},{key:"render",value:function(){var e=this,t=this.props.className;this.props.editMode&&(t+=" is-editing");var n=this.state.data.filter((function(e){return!!e&&!e.parentId})).map((function(t,n){return e.getElement(t,n)}));return p().createElement("div",{className:t},p().createElement("div",{className:"edit-form",ref:this.editForm},null!==this.props.editElement&&this.showEditForm()),p().createElement("div",{className:"Sortable"},n),p().createElement(Bu,{id:"form-place-holder",show:0===n.length,index:n.length,moveCard:this.cardPlaceHolder,insertCard:this.insertCard}),p().createElement(Ru,null))}}]),l}(p().Component);zu.defaultProps={showCorrectColumn:!1,files:[],editMode:!1,editElement:null,className:"col-md-9 react-survey-builder-preview float-start",renderEditForm:function(e){return p().createElement(Je,e)}};var Fu=a(9333),Uu=a.n(Fu);var Hu={beginDrag:function(e){return{id:Uu().uuid(),index:-1,data:e.data,onCreate:e.onCreate}}},Zu=function(e){(0,i.Z)(s,e);var t,o,a=(t=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.Z)(t);if(o){var r=(0,u.Z)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return(0,c.Z)(this,e)});function s(){return(0,n.Z)(this,s),a.apply(this,arguments)}return(0,r.Z)(s,[{key:"render",value:function(){var e=this.props,t=e.connectDragSource,n=e.data,r=e.onClick;return t?t(p().createElement("li",{onClick:r},p().createElement("i",{className:n.icon}),n.name)):null}}]),s}(p().Component);const Ku=(0,nt.DragSource)(rt,Hu,(function(e){return{connectDragSource:e.dragSource()}}))(Zu),Yu=function(e){var t=e.name,n=e.group,r=e.renderItem,o=We((0,l.useState)(!1),2),i=o[0],a=o[1],s="collapse"+(i?" show":"");return p().createElement("li",null,p().createElement("div",{className:"toolbar-group-item"},p().createElement("button",{className:"btn btn-link btn-block text-left",type:"button",onClick:function(){a(!i)}},t),p().createElement("div",{className:s},p().createElement("ul",null,n.map(r)))))};function Vu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vu(Object(n),!0).forEach((function(t){Re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}a(9041),a(9265),a(5108);var Wu=function(e){(0,i.Z)(l,e);var t,a,s=(t=l,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.Z)(t);if(a){var r=(0,u.Z)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return(0,c.Z)(this,e)});function l(e){var t;(0,n.Z)(this,l),t=s.call(this,e),Re((0,o.Z)(t),"renderItem",(function(e){return p().createElement(Ku,{data:e,key:e.key,onClick:t._onClick.bind((0,o.Z)(t),e),onCreate:t.create})}));var r=t.props.intl,i=function(e,t){return e?e.map((function(e){var n=t.find((function(t){return e.element===t.element&&t.key===e.key}));return n||(n=t.find((function(t){return(e.element||e.key)===(t.element||t.key)}))),n&&(!1!==e.inherited?n=Gu(Gu({},n),e):e.group_name&&(n.group_name=e.group_name)),n||e})):t}(e.items,t._defaultItems(r));return t.state={items:i},t.create=t.create.bind((0,o.Z)(t)),t}return(0,r.Z)(l,[{key:"componentDidMount",value:function(){var e=this;Ye.subscribe((function(t){return e.setState({store:t})}))}},{key:"_defaultItems",value:function(e){return[{key:"Header",name:e.formatMessage({id:"header-text"}),icon:"fas fa-heading",static:!0,content:e.formatMessage({id:"place-holder-text"})},{key:"Label",name:e.formatMessage({id:"label"}),static:!0,icon:"fas fa-font",content:e.formatMessage({id:"place-holder-text"})},{key:"Paragraph",name:e.formatMessage({id:"paragraph"}),static:!0,icon:"fas fa-paragraph",content:e.formatMessage({id:"place-holder-text"})},{key:"LineBreak",name:e.formatMessage({id:"line-break"}),static:!0,icon:"fas fa-arrows-alt-h"},{key:"Dropdown",canHaveAnswer:!0,name:e.formatMessage({id:"dropdown"}),icon:"far fa-caret-square-down",label:e.formatMessage({id:"place-holder-label"}),field_name:"dropdown_",options:[]},{key:"Tags",canHaveAnswer:!0,name:e.formatMessage({id:"tags"}),icon:"fas fa-tags",label:e.formatMessage({id:"place-holder-label"}),field_name:"tags_",options:[]},{key:"Checkboxes",canHaveAnswer:!0,name:e.formatMessage({id:"checkboxes"}),icon:"far fa-check-square",label:e.formatMessage({id:"place-holder-label"}),field_name:"checkboxes_",options:[]},{key:"Checkbox",canHaveAnswer:!0,name:e.formatMessage({id:"checkbox"}),icon:"far fa-check-square",label:e.formatMessage({id:"place-holder-label"}),field_name:"checkbox_",boxLabel:"Agree To Rules & Regs"},{key:"RadioButtons",canHaveAnswer:!0,name:e.formatMessage({id:"multiple-choice"}),icon:"far fa-dot-circle",label:e.formatMessage({id:"place-holder-label"}),field_name:"radiobuttons_",options:[]},{key:"TextInput",canHaveAnswer:!0,name:e.formatMessage({id:"text-input"}),label:e.formatMessage({id:"place-holder-label"}),icon:"fas fa-font",field_name:"text_input_"},{key:"EmailInput",canHaveAnswer:!0,name:e.formatMessage({id:"email-input"}),label:e.formatMessage({id:"place-holder-email"}),icon:"fas fa-envelope",field_name:"email_input_",placeholder:""},{key:"NumberInput",canHaveAnswer:!0,name:e.formatMessage({id:"number-input"}),label:e.formatMessage({id:"place-holder-label"}),icon:"fas fa-plus",field_name:"number_input_"},{key:"PhoneNumber",canHaveAnswer:!0,name:e.formatMessage({id:"phone-input"}),label:e.formatMessage({id:"place-holder-phone-number"}),icon:"fas fa-phone",field_name:"phone_input_"},{key:"TextArea",canHaveAnswer:!0,name:e.formatMessage({id:"multi-line-input"}),label:e.formatMessage({id:"place-holder-label"}),icon:"fas fa-text-height",field_name:"text_area_"},{key:"FieldSet",canHaveAnswer:!1,name:e.formatMessage({id:"fieldset"}),label:e.formatMessage({id:"fieldset"}),icon:"fas fa-bars",field_name:"fieldset-element"},{key:"TwoColumnRow",canHaveAnswer:!1,name:e.formatMessage({id:"two-columns-row"}),label:"",icon:"fas fa-columns",field_name:"two_col_row_"},{key:"ThreeColumnRow",canHaveAnswer:!1,name:e.formatMessage({id:"three-columns-row"}),label:"",icon:"fas fa-columns",field_name:"three_col_row_"},{key:"FourColumnRow",element:"MultiColumnRow",canHaveAnswer:!1,name:e.formatMessage({id:"four-columns-row"}),label:"",icon:"fas fa-columns",field_name:"four_col_row_",col_count:4,class_name:"col-md-3"},{key:"FiveColumnRow",element:"MultiColumnRow",canHaveAnswer:!1,name:e.formatMessage({id:"five-columns-row"}),label:"",icon:"fas fa-columns",field_name:"five_col_row_",col_count:5,class_name:"col"},{key:"SixColumnRow",element:"MultiColumnRow",canHaveAnswer:!1,name:e.formatMessage({id:"six-columns-row"}),label:"",icon:"fas fa-columns",field_name:"six_col_row_",col_count:6,class_name:"col-md-2"},{key:"Image",name:e.formatMessage({id:"image"}),label:"",icon:"far fa-image",field_name:"image_",src:""},{key:"Rating",canHaveAnswer:!0,name:e.formatMessage({id:"rating"}),label:e.formatMessage({id:"place-holder-label"}),icon:"fas fa-star",field_name:"rating_"},{key:"DatePicker",canDefaultToday:!0,canReadOnly:!0,dateFormat:"MM/dd/yyyy",timeFormat:"hh:mm aa",showTimeSelect:!1,showTimeSelectOnly:!1,showTimeInput:!1,name:e.formatMessage({id:"date"}),icon:"far fa-calendar-alt",label:e.formatMessage({id:"place-holder-label"}),field_name:"date_picker_"},{key:"Signature",canReadOnly:!0,name:e.formatMessage({id:"signature"}),icon:"fas fa-pen-square",label:e.formatMessage({id:"signature"}),field_name:"signature_"},{key:"HyperLink",name:e.formatMessage({id:"website"}),icon:"fas fa-link",static:!0,content:e.formatMessage({id:"place-holder-website-link"}),href:"http://www.example.com"},{key:"Download",name:e.formatMessage({id:"file-attachment"}),icon:"fas fa-file",static:!0,content:e.formatMessage({id:"place-holder-file-name"}),field_name:"download_",file_path:"",_href:""},{key:"Range",name:e.formatMessage({id:"range"}),icon:"fas fa-sliders-h",label:e.formatMessage({id:"place-holder-label"}),field_name:"range_",step:1,default_value:3,min_value:1,max_value:5,min_label:e.formatMessage({id:"easy"}),max_label:e.formatMessage({id:"difficult"})},{key:"Camera",name:e.formatMessage({id:"camera"}),icon:"fas fa-camera",label:e.formatMessage({id:"place-holder-label"}),field_name:"camera_"},{key:"FileUpload",name:e.formatMessage({id:"file-upload"}),icon:"fas fa-file",label:e.formatMessage({id:"place-holder-label"}),field_name:"file_upload_"}]}},{key:"addCustomOptions",value:function(e,t){if("custom"===e.type){var n=Gu(Gu({},e),t);return n.custom=!0,n.component=e.component||null,n.custom_options=e.custom_options||[],n}return t}},{key:"create",value:function(e){var t=this.props.intl,n=e.element||e.key,r=this.addCustomOptions(e,{id:Uu().uuid(),element:n,text:e.name,group_name:e.group_name,static:e.static,required:!1,showDescription:e.showDescription});return!0!==this.props.showDescription||e.static||(r.showDescription=!0),-1!==["NumberInput","EmailInput","TextInput","PhoneNumber","TextArea","DatePicker"].indexOf(n)&&(r.showPlaceholder=!0),"custom"===e.type&&(r.key=e.key,r.custom=!0,r.forwardRef=e.forwardRef,r.bare=e.bare,r.props=e.props,r.component=e.component||null,r.custom_options=e.custom_options||[]),e.static&&(r.bold=!1,r.italic=!1),r.show_custom_name=e.show_custom_name,r.custom_name=e.custom_name,e.canHaveAnswer&&(r.canHaveAnswer=e.canHaveAnswer),e.canReadOnly&&(r.readOnly=!1),e.canDefaultToday&&(r.defaultToday=!1),e.content&&(r.content=e.content),e.href&&(r.href=e.href),void 0!==e.inherited&&(r.inherited=e.inherited),r.canHavePageBreakBefore=!1!==e.canHavePageBreakBefore,r.canHaveAlternateForm=!1!==e.canHaveAlternateForm,r.canHaveDisplayHorizontal=!1!==e.canHaveDisplayHorizontal,r.canHaveDisplayHorizontal&&(r.inline=e.inline),r.canHaveOptionCorrect=!1!==e.canHaveOptionCorrect,r.canHaveOptionValue=!1!==e.canHaveOptionValue,r.canPopulateFromApi=!1!==e.canPopulateFromApi,e.class_name&&(r.class_name=e.class_name),"Image"===n&&(r.src=e.src),"DatePicker"===n&&(r.dateFormat=e.dateFormat,r.timeFormat=e.timeFormat,r.showTimeSelect=e.showTimeSelect,r.showTimeSelectOnly=e.showTimeSelectOnly,r.showTimeInput=e.showTimeInput),"Download"===n&&(r._href=e._href,r.file_path=e.file_path),"Range"===n&&(r.step=e.step,r.default_value=e.default_value,r.min_value=e.min_value,r.max_value=e.max_value,r.min_label=e.min_label,r.max_label=e.max_label),"MultiColumnRow"===n&&(r.col_count=e.col_count),e.defaultValue&&(r.defaultValue=e.defaultValue),e.field_name&&(r.field_name=e.field_name+Uu().uuid()),e.label&&(r.label=e.label),e.options&&(e.options.length>0?r.options=e.options.map((function(e){return Gu(Gu({},e),{},{key:"custom_option_".concat(Uu().uuid())})})):r.options=l._defaultItemOptions(r.element,t)),r}},{key:"_onClick",value:function(e){Ye.dispatch("create",this.create(e))}},{key:"render",value:function(){var e=this,t=function(e){var t,n,r,o=e.filter((function(e){return!e.group_name})),i=e.filter((function(e){return!!e.group_name})),a=(t=i,n=function(e){return e.group_name},r=new Map,t.forEach((function(e){var t=n(e),o=r.get(t);o?o.push(e):r.set(t,[e])})),r),s=i.map((function(e){return e.group_name})).filter((function(e,t,n){return n.indexOf(e)===t}));return{items:o,grouped:a,groupKeys:s}}(this.state.items),n=t.items,r=t.grouped,o=t.groupKeys;return p().createElement("div",{className:"col-md-3 react-survey-builder-toolbar float-end"},p().createElement("h4",null,this.props.intl.formatMessage({id:"toolbox"})),p().createElement("ul",null,n.map(this.renderItem),o.map((function(t){return p().createElement(Yu,{key:t,name:t,group:r.get(t),renderItem:e.renderItem})}))))}}],[{key:"_defaultItemOptions",value:function(e,t){switch(e){case"Dropdown":return[{value:"place_holder_option_1",text:t.formatMessage({id:"place-holder-option-1"}),key:"dropdown_option_".concat(Uu().uuid())},{value:"place_holder_option_2",text:t.formatMessage({id:"place-holder-option-2"}),key:"dropdown_option_".concat(Uu().uuid())},{value:"place_holder_option_3",text:t.formatMessage({id:"place-holder-option-3"}),key:"dropdown_option_".concat(Uu().uuid())}];case"Tags":return[{value:"place_holder_tag_1",text:t.formatMessage({id:"place-holder-tag-1"}),key:"tags_option_".concat(Uu().uuid())},{value:"place_holder_tag_2",text:t.formatMessage({id:"place-holder-tag-2"}),key:"tags_option_".concat(Uu().uuid())},{value:"place_holder_tag_3",text:t.formatMessage({id:"place-holder-tag-3"}),key:"tags_option_".concat(Uu().uuid())}];case"Checkboxes":return[{value:"place_holder_option_1",text:t.formatMessage({id:"place-holder-option-1"}),key:"checkboxes_option_".concat(Uu().uuid())}];case"RadioButtons":return[{value:"place_holder_option_1",text:t.formatMessage({id:"place-holder-option-1"}),key:"radiobuttons_option_".concat(Uu().uuid())},{value:"place_holder_option_2",text:t.formatMessage({id:"place-holder-option-2"}),key:"radiobuttons_option_".concat(Uu().uuid())},{value:"place_holder_option_3",text:t.formatMessage({id:"place-holder-option-3"}),key:"radiobuttons_option_".concat(Uu().uuid())}];default:return[]}}}]),l}(p().Component);const qu=(0,G.ZP)(Wu);var Qu=a(9766),Ju=a(4152);var Xu=new(Ks().FilterXSS)({whiteList:{u:[],br:[],b:[],i:[],ol:["style"],ul:["style"],li:[],p:["style"],sub:[],sup:[],div:["style"],em:[],strong:[],span:["style"]}}),$u=function(e){(0,i.Z)(s,e);var t,o,a=(t=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,u.Z)(t);if(o){var r=(0,u.Z)(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return(0,c.Z)(this,e)});function s(e){var t;return(0,n.Z)(this,s),(t=a.call(this,e)).state={errors:[]},t}return(0,r.Z)(s,[{key:"componentDidMount",value:function(){var e=this;this.subscription=this.props.emitter.addListener("surveyValidation",(function(t){e.setState({errors:t})}))}},{key:"componentWillUnmount",value:function(){this.subscription.remove()}},{key:"dismissModal",value:function(e){e.preventDefault(),this.setState({errors:[]})}},{key:"render",value:function(){var e=this.state.errors.map((function(e,t){return p().createElement("li",{key:"error_".concat(t),dangerouslySetInnerHTML:{__html:Xu.process(e)}})}));return p().createElement("div",null,this.state.errors.length>0&&p().createElement("div",{className:"alert alert-danger validation-error"},p().createElement("div",{className:"clearfix"},p().createElement("i",{className:"fas fa-exclamation-triangle float-start"}),p().createElement("ul",{className:"float-start"},e)),p().createElement("div",{className:"clearfix"},p().createElement("a",{className:"float-end btn btn-default btn-sm btn-danger",onClick:this.dismissModal.bind(this)},p().createElement(Ju.Z,{id:"dismiss"})))))}}]),s}(p().Component);var el=Ic.Image,tl=Ic.Checkboxes,nl=Ic.Signature,rl=Ic.Download,ol=Ic.Camera,il=Ic.FileUpload,al=function(e){(0,i.Z)(f,e);var a,s,l=(a=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=(0,u.Z)(a);if(s){var n=(0,u.Z)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,c.Z)(this,e)});function f(e){var t;return(0,n.Z)(this,f),t=l.call(this,e),Re((0,o.Z)(t),"form",void 0),Re((0,o.Z)(t),"inputs",{}),Re((0,o.Z)(t),"answerData",void 0),Re((0,o.Z)(t),"handleRenderSubmit",(function(){var e=t.props.action_name||t.props.actionName||"Submit",n=t.props.submitButton;return void 0!==n&&n||p().createElement("input",{type:"submit",className:"btn btn-big",value:e})})),Re((0,o.Z)(t),"handleRenderBack",(function(){var e=t.props.back_name||t.props.backName||"Cancel",n=t.props.backButton;return void 0!==n&&n||p().createElement("a",{href:t.props.back_action,className:"btn btn-default btn-cancel btn-big"},e)})),t.answerData=t._convert(e.answer_data),t.emitter=new Qu.EventEmitter,t.getDataById=t.getDataById.bind((0,o.Z)(t)),t.handleBlur=t.handleBlur.bind((0,o.Z)(t)),t.handleChange=t.handleChange.bind((0,o.Z)(t)),t.handleSubmit=t.handleSubmit.bind((0,o.Z)(t)),t}return(0,r.Z)(f,[{key:"_convert",value:function(e){if(Array.isArray(e)){var t={};return e.forEach((function(e){e.name.indexOf("tags_")>-1?t[e.name]=e.value.map((function(e){return e.value})):t[e.name]=e.value})),t}return e||{}}},{key:"_getDefaultValue",value:function(e){return this.answerData[e.field_name]}},{key:"_optionsDefaultValue",value:function(e){var t=this,n=this._getDefaultValue(e);if(n)return n;var r=[];return e.options.forEach((function(e){t.answerData["option_".concat(e.key)]&&r.push(e.key)})),r}},{key:"_getItemValue",value:function(e,t){var n={element:e.element,value:""};return"Rating"===e.element?n.value=t.inputField.current.state.rating:"Tags"===e.element?n.value=t.inputField.current.state.value:"DatePicker"===e.element?n.value=t.state.value:"Camera"===e.element?n.value=t.state.img:"FileUpload"===e.element?n.value=t.state.fileUpload:t&&t.inputField&&t.inputField.current&&(n=tt().findDOMNode(t.inputField.current))&&"string"==typeof n.value&&(n.value=n.value.trim()),n}},{key:"_isIncorrect",value:function(e){var t=!1;if(e.canHaveAnswer){var n=this.inputs[e.field_name];if("Checkboxes"===e.element||"RadioButtons"===e.element)e.options.forEach((function(e){var r=tt().findDOMNode(n.options["child_ref_".concat(e.key)]);(e.hasOwnProperty("correct")&&!r.checked||!e.hasOwnProperty("correct")&&r.checked)&&(t=!0)}));else{var r=this._getItemValue(e,n);"Rating"===e.element?r.value.toString()!==e.correct&&(t=!0):r.value.toLowerCase()!==e.correct.trim().toLowerCase()&&(t=!0)}}return t}},{key:"_isInvalid",value:function(e){var t=!1;if(!0===e.required){var n=this.inputs[e.field_name];if("Checkboxes"===e.element||"RadioButtons"===e.element){var r=0;e.options.forEach((function(e){tt().findDOMNode(n.options["child_ref_".concat(e.key)]).checked&&(r+=1)})),r<1&&(t=!0)}else{var o=this._getItemValue(e,n);"Rating"===e.element?0===o.value&&(t=!0):(void 0===o.value||o.value.length<1)&&(t=!0)}}return t}},{key:"_collect",value:function(e){var t={id:e.id,name:e.field_name,custom_name:e.custom_name||e.field_name};if(!t.name)return null;var n=this.inputs[e.field_name];if("Checkboxes"===e.element||"RadioButtons"===e.element){var r=[];e.options.forEach((function(e){tt().findDOMNode(n.options["child_ref_".concat(e.key)]).checked&&r.push(e.key)})),t.value=r}else if("Checkbox"===e.element)n&&n.inputField&&n.inputField.current?t.value=n.inputField.current.checked:t.value=!1;else{if(!n)return null;t.value=this._getItemValue(e,n).value}return t.required=e.required||!1,t}},{key:"_collectFormData",value:function(e){var t=this,n=[];return e.forEach((function(e){var r=t._collect(e);r&&n.push(r)})),n}},{key:"_getSignatureImg",value:function(e){var t=this.inputs[e.field_name],n=t.canvas.current;if(n){var r=n.toDataURL().replace("data:image/png;base64,",""),o=n.isEmpty();tt().findDOMNode(t.inputField.current).value=o?"":r}}},{key:"handleSubmit",value:function(e){e.preventDefault();var t=[];if(this.props.skip_validations||(t=this.validateForm(),this.emitter.emit("surveyValidation",t)),t.length<1){var n=this.props.onSubmit;n?n(this._collectFormData(this.props.data)):tt().findDOMNode(this.form).submit()}}},{key:"handleBlur",value:function(e){this.props.onBlur&&(0,this.props.onBlur)(this._collectFormData(this.props.data))}},{key:"handleChange",value:function(e){this.props.onChange&&(0,this.props.onChange)(this._collectFormData(this.props.data))}},{key:"validateForm",value:function(){var e=this,t=[],n=this.props.data,r=this.props.intl;return this.props.display_short&&(n=this.props.data.filter((function(e){return!0===e.alternateForm}))),n.forEach((function(n){if("Signature"===n.element&&e._getSignatureImg(n),e._isInvalid(n)&&t.push("".concat(n.label," ").concat(r.formatMessage({id:"message.is-required"}),"!")),"EmailInput"===n.element){var o=e.inputs[n.field_name],i=e._getItemValue(n,o).value;i&&(i.match(/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)||t.push("".concat(n.label," ").concat(r.formatMessage({id:"message.invalid-email"}))))}if("PhoneNumber"===n.element){var a=e.inputs[n.field_name],s=e._getItemValue(n,a).value;s&&(s.match(/^[+]?(1\-|1\s|1|\d{3}\-|\d{3}\s|)?((\(\d{3}\))|\d{3})(\-|\s)?(\d{3})(\-|\s)?(\d{4})$/g)||t.push("".concat(n.label," ").concat(r.formatMessage({id:"message.invalid-phone-number"}))))}e.props.validateForCorrectness&&e._isIncorrect(n)&&t.push("".concat(n.label," ").concat(r.formatMessage({id:"message.was-answered-incorrectly"}),"!"))})),t}},{key:"getDataById",value:function(e){return this.props.data.find((function(t){return t.id===e}))}},{key:"getInputElement",value:function(e){var t=this;if(e.custom)return this.getCustomElement(e);var n=Ic[e.element];return p().createElement(n,{handleChange:this.handleChange,ref:function(n){return t.inputs[e.field_name]=n},mutable:!0,key:"form_".concat(e.id),data:e,read_only:this.props.read_only,hide_required_alert:this.props.hide_required_alert,defaultValue:this._getDefaultValue(e)})}},{key:"getContainerElement",value:function(e,t){var n=this,r=e.childItems.map((function(e){return e?n.getInputElement(n.getDataById(e)):p().createElement("div",null," ")}));return p().createElement(t,{mutable:!0,key:"form_".concat(e.id),data:e,controls:r,hide_required_alert:this.props.hide_required_alert})}},{key:"getSimpleElement",value:function(e){var t=Ic[e.element];return p().createElement(t,{mutable:!0,key:"form_".concat(e.id),data:e,hide_required_alert:this.props.hide_required_alert})}},{key:"getCustomElement",value:function(e){var n=this,r=this.props.intl;e.component&&"function"==typeof e.component||(e.component=Bc().get(e.key),e.component||console.error("".concat(e.element," ").concat(r.formatMessage({id:"message.was-not-registered"}))));var o=e.forwardRef&&{handleChange:this.handleChange,defaultValue:this._getDefaultValue(e),ref:function(t){return n.inputs[e.field_name]=t}};return p().createElement(Pc,(0,t.Z)({mutable:!0,read_only:this.props.read_only,hide_required_alert:this.props.hide_required_alert,key:"form_".concat(e.id),data:e},o))}},{key:"render",value:function(){var e=this,t=this.props.data;this.props.display_short&&(t=this.props.data.filter((function(e){return!0===e.alternateForm}))),t.forEach((function(t){t&&t.readOnly&&t.variableKey&&e.props.variables[t.variableKey]&&(e.answerData[t.field_name]=e.props.variables[t.variableKey])}));var n=t.filter((function(e){return!e.parentId})).map((function(t){if(!t)return null;switch(t.element){case"TextInput":case"EmailInput":case"PhoneNumber":case"NumberInput":case"TextArea":case"Dropdown":case"DatePicker":case"RadioButtons":case"Rating":case"Tags":case"Range":case"Checkbox":return e.getInputElement(t);case"CustomElement":return e.getCustomElement(t);case"MultiColumnRow":return e.getContainerElement(t,Xc);case"ThreeColumnRow":return e.getContainerElement(t,Jc);case"TwoColumnRow":return e.getContainerElement(t,Qc);case"FieldSet":return e.getContainerElement(t,ru);case"Signature":return p().createElement(nl,{ref:function(n){return e.inputs[t.field_name]=n},read_only:e.props.read_only||t.readOnly,mutable:!0,key:"form_".concat(t.id),data:t,defaultValue:e._getDefaultValue(t)});case"Checkboxes":return p().createElement(tl,{ref:function(n){return e.inputs[t.field_name]=n},read_only:e.props.read_only,handleChange:e.handleChange,mutable:!0,key:"form_".concat(t.id),data:t,defaultValue:e._optionsDefaultValue(t),hide_required_alert:e.props.hide_required_alert});case"Image":return p().createElement(el,{ref:function(n){return e.inputs[t.field_name]=n},handleChange:e.handleChange,mutable:!0,key:"form_".concat(t.id),data:t,defaultValue:e._getDefaultValue(t),hide_required_alert:e.props.hide_required_alert});case"Download":return p().createElement(rl,{download_path:e.props.download_path,mutable:!0,key:"form_".concat(t.id),data:t,hide_required_alert:e.props.hide_required_alert});case"Camera":return p().createElement(ol,{ref:function(n){return e.inputs[t.field_name]=n},read_only:e.props.read_only||t.readOnly,mutable:!0,key:"form_".concat(t.id),data:t,defaultValue:e._getDefaultValue(t),hide_required_alert:e.props.hide_required_alert});case"FileUpload":return p().createElement(il,{ref:function(n){return e.inputs[t.field_name]=n},read_only:e.props.read_only||t.readOnly,mutable:!0,key:"form_".concat(t.id),data:t,hide_required_alert:e.props.hide_required_alert,defaultValue:e._getDefaultValue(t)});default:return e.getSimpleElement(t)}}));return p().createElement("div",null,p().createElement($u,{emitter:this.emitter}),p().createElement("div",{className:"react-survey-builder-form"},p().createElement("form",{encType:"multipart/form-data",ref:function(t){return e.form=t},action:this.props.form_action,onBlur:this.handleBlur,onChange:this.handleChange,onSubmit:this.handleSubmit,method:this.props.form_method},this.props.authenticity_token&&p().createElement("div",{style:{display:"none"}},p().createElement("input",{name:"utf8",type:"hidden",value:"✓"}),p().createElement("input",{name:"authenticity_token",type:"hidden",value:this.props.authenticity_token}),p().createElement("input",{name:"task_id",type:"hidden",value:this.props.task_id})),n,p().createElement("div",{className:"btn-toolbar"},!this.props.hide_actions&&this.handleRenderSubmit(),!this.props.hide_actions&&this.props.back_action&&this.handleRenderBack()))))}}]),f}(p().Component);const sl=(0,G.ZP)(al);function cl(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}al.defaultProps={validateForCorrectness:!1};const ul={messages:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cl(Object(n),!0).forEach((function(t){Re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},JSON.parse('{"display-label":"Display Label","choose-file":"Choose file","choose-file-type":"Choose file type","select-file-type":"Select file type","text-to-display":"Text to display","link-to":"Link to","center":"Center","width":"Width","height":"Height","required":"Required","read-only":"Read only","default-to-today":"Default to Today","show-time-select":"Show Time Select","show-time-select-only":"Show Time Select Only","show-time-input":"Show Time Input","display-horizontal":"Display horizontal","variable-key":"Variable Key","variable-key-desc":"This will give the element a key that can be used to replace the content with a runtime value","print-options":"Print options","page-break-before-elements":"Page Break Before Element","alternate-signature-page":"Alternate/Signature Page","display-on-alternate-signature-page":"Display on alternate/signature Page","step":"Step","min":"Min","max":"Max","default-selected":"Default Selected","text-style":"Text Style","bold":"Bold","italic":"Italic","description":"Description","correct-answer":"Correct Answer","populate-options-from-api":"Populate Options from API","populate":"Populate","pdf":"PDF","word":"Word","excel":"Excel","ppt":"PPT","options":"Options","value":"Value","correct":"Correct","dismiss":"Dismiss","place-holder-option-1":"Place holder option 1","place-holder-option-2":"Place holder option 2","place-holder-option-3":"Place holder option 3","place-holder-tag-1":"Place holder option 1","place-holder-tag-2":"Place holder option 2","place-holder-tag-3":"Place holder option 3","toolbox":"Toolbox","header-text":"Header Text","label":"Label","paragraph":"Paragraph","line-break":"Line Break","dropdown":"Dropdown","tags":"Tags","checkboxes":"Checkboxes","checkbox":"Checkbox","default-checked":"Default Checked","checkbox-label-text":"Checkbox Label Text","multiple-choice":"Multiple Choice","text-input":"Text Input","email-input":"Email","phone-input":"Phone Number","number-input":"Number Input","multi-line-input":"Multi-line Input","fieldset":"Fieldset","two-columns-row":"Two Column Row","three-columns-row":"Three Columns Row","four-columns-row":"Four Columns Row","five-columns-row":"Five Columns Row","six-columns-row":"Six Columns Row","image":"Image","rating":"Rating","date":"Date","signature":"Signature","website":"Website","file-attachment":"File Attachment","range":"Range","camera":"Camera","file-upload":"File Upload","place-holder-text":"Placeholder text...","place-holder-label":"Placeholder label","place-holder-text-label":"Placeholder","place-holder-website-link":"Placeholder website Link...","place-holder-file-name":"Placeholder file name...","place-holder-email":"E-Mail","place-holder-phone-number":"Phone Number","easy":"Easy","difficult":"Difficult","drop-zone":"Dropzone","custom-name-label":"A Name To Give This Input That Will Show Up In Data Retrieval","message.is-required":"is required","message.was-answered-incorrectly":"was answered incorrectly","message.was-not-registered":"was not registered","message.invalid-email":"field requires valid email address","message.invalid-phone-number":"field requires a valid phone number"}')),locale:"en-US"};function ll(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}const pl={messages:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ll(Object(n),!0).forEach((function(t){Re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ll(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},JSON.parse('{"display-label":"Visualizza etichetta","choose-file":"Scegli file","choose-file-type":"Scegli tipo di file","select-file-type":"Scegli tipo di file","text-to-display":"Testo visualizzato","link-to":"Link to","center":"Centro","width":"Larghezza","height":"Altezza","required":"Obbligatorio","read-only":"Sola lettura","default-to-today":"Default oggi","show-time-select":"Visualizza selettore orario","show-time-select-only":"Visualizza solo orario","show-time-input":"Visualizza input orario","display-horizontal":"Visualizza orizzontale","variable-key":"Chiave variabile","variable-key-desc":"Ciò fornirà all\'elemento una chiave che può essere utilizzata per sostituire il contenuto con un valore di runtime","print-options":"Opzioni di stampa","page-break-before-elements":"Interruzione di pagina prima dell\'elemento","alternate-signature-page":"Pagina alternativa/firma","display-on-alternate-signature-page":"Visualizza su pagina alternativa/firma","step":"Step","min":"Min","max":"Max","default-selected":"Selezionato di default","text-style":"Stile testo","bold":"Grassetto","italic":"Corsivo","description":"Descrizione","correct-answer":"Risposta corretta","populate-options-from-api":"Popola opzione da API","populate":"Popola","pdf":"PDF","word":"Word","excel":"Excel","ppt":"PPT","options":"Opzioni","value":"Valore","correct":"Corretto","dismiss":"Scarta","place-holder-option-1":"Segnaposto opzione 1","place-holder-option-2":"Segnaposto opzione 2","place-holder-option-3":"Segnaposto opzione 3","place-holder-tag-1":"Segnaposto opzione 1","place-holder-tag-2":"Segnaposto opzione 2","place-holder-tag-3":"Segnaposto opzione 3","toolbox":"Toolbox","header-text":"Testo Header","label":"Etichetta","paragraph":"Paragrafo","line-break":"Linea Interruzione","dropdown":"Dropdown","tags":"Tags","checkboxes":"Checkboxes","multiple-choice":"Scelta multipla","text-input":"Input testo","email-input":"Email","phone-input":"Numero di telefono","number-input":"Input numerico","multi-line-input":"Input multi linea","fieldset":"Set di campi","two-columns-row":"Layout 2 colonne","three-columns-row":"Layout 3 colonne","four-columns-row":"Layout 4 colonne","five-columns-row":"Layout 5 colonne","six-columns-row":"Layout 6 colonne","image":"Immagine","rating":"Valutazione","date":"Data","signature":"Firma","website":"Sito web","file-attachment":"Allegato file","range":"Range","camera":"Camera","file-upload":"Upload file","place-holder-text":"Testo segnaposto...","place-holder-label":"Etichetta segnaposto","place-holder-website-link":"Segnaposto link sito...","place-holder-file-name":"Segnaposto nome file...","place-holder-email":"E-Mail","place-holder-phone-number":"Numero di telefono","easy":"Facile","difficult":"Difficile","drop-zone":"Dropzone","message.is-required":"è obbligatorio","message.was-answered-incorrectly":"è stato risposto in modo errato","message.was-not-registered":"non è stato registrato","message.invalid-email":"il campo richiede un indirizzo email valido","message.invalid-phone-number":"campo richiede un numero di telefono valido"}')),locale:"it-IT"};function fl(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}const dl={en:ul,vi:{messages:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fl(Object(n),!0).forEach((function(t){Re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},JSON.parse('{"display-label":"Nhãn hiển thị","choose-file":"Chọn tệp tin","text-to-display":"Chữ hiển thị","link-to":"Liên kết tới","center":"Giữa","width":"Độ rộng","height":"Chiều cao","required":"Bắt buộc nhập","read-only":"Chỉ đọc","default-to-today":"Mặc định hôm nay","show-time-select":"Hiển thị chọn thời gian","show-time-select-only":"Chỉ hiển thị thời gian","show-time-input":"Hiển thị đầu vào thời gian","display-horizontal":"Hiển thị theo chiều ngang","variable-key":"Khóa tham chiếu","variable-key-desc":"Tùy chọn này cung cấp từ khóa dùng để thay thế nội dung khi biểu mẫu hoạt động","print-options":"Tùy chọn in ấn","page-break-before-elements":"Phân trang trước thành phần điểu khiển","alternate-signature-page":"Trang thay thế / ký","display-on-alternate-signature-page":"Hiển thị trên trang thay thế / ký","step":"Bước nhảy","min":"Nhỏ nhất","max":"Lớn nhất","default-selected":"Mặc Định Chọn","text-style":"Kiểu Chữ","bold":"Đậm","italic":"Nghiêng","description":"Mô tả","correct-answer":"Lựa chọn đúng","populate-options-from-api":"Lấy dữ liệu từ API","populate":"Thực hiện","options":"Tùy chọn","value":"Giá trị","correct":"Đúng","dismiss":"Bỏ qua","place-holder-option-1":"Lựa chọn 1","place-holder-option-2":"Lựa chọn 2","place-holder-option-3":"Lựa chọn 3","place-holder-tag-1":"Lựa chọn 1","place-holder-tag-2":"Lựa chọn 2","place-holder-tag-3":"Lựa chọn 3","toolbox":"Công cụ","header-text":"Tiêu đề","label":"Nhãn","paragraph":"Đoạn văn","line-break":"Đường kẻ dòng","dropdown":"Danh sách chọn","tags":"Thẻ","checkboxes":"Hộp chọn","checkbox":"Hộp chọn","default-checked":"Hộp chọn","checkbox-label-text":"Hộp chọn","multiple-choice":"Nhiều lựa chọn","text-input":"Nhập chữ","number-input":"Nhập số","fieldset":"bộ trường","multi-line-input":"Nhập nhiều dòng","two-columns-row":"Dòng có hai cột","three-columns-row":"Dòng có ba cột","four-columns-row":"Dòng có bốn cột","image":"Liên kết ảnh","rating":"Đánh giá","date":"Ngày","signature":"Chữ kí","website":"Trang web","file-attachment":"Tệp đính kèm","range":"Khoảng","camera":"Tải ảnh","place-holder-text":"Nội dung...","place-holder-label":"Nhãn","place-holder-text-label":"Điền vào chỗ trống.","place-holder-website-link":"Đường dẫn tới website...","place-holder-file-name":"Tên tệp...","easy":"Easy","difficult":"Difficult","drop-zone":"Khu vực kéo thả","custom-name-label":"A Name To Give This Input That Will Show Up In Data Retrieval","message.is-required":"không được bỏ trống","message.was-answered incorrectly":"đã trả lời sai","message.was-not-registered":"chưa đăng ký"}')),locale:"vi-VN"},it:pl};var hl=function(e){(0,i.Z)(f,e);var a,s,l=(a=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=(0,u.Z)(a);if(s){var n=(0,u.Z)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,c.Z)(this,e)});function f(e){var t;return(0,n.Z)(this,f),(t=l.call(this,e)).state={editMode:!1,editElement:null},t.editModeOn=t.editModeOn.bind((0,o.Z)(t)),t}return(0,r.Z)(f,[{key:"editModeOn",value:function(e,t){t.preventDefault(),t.stopPropagation(),this.state.editMode?this.setState({editMode:!this.state.editMode,editElement:null}):this.setState({editMode:!this.state.editMode,editElement:e})}},{key:"manualEditModeOff",value:function(){this.state.editMode&&this.setState({editMode:!1,editElement:null})}},{key:"render",value:function(){var e={showDescription:this.props.show_description},n=this.props.locale?this.props.locale:"en",r=dl[n];return this.props.toolbarItems&&(e.items=this.props.toolbarItems),p().createElement(g,{backend:Y},p().createElement(Ie,{locale:r.locale,messages:r.messages},p().createElement("div",null,p().createElement("div",{className:"react-survey-builder clearfix"},p().createElement("div",null,p().createElement(zu,{files:this.props.files,manualEditModeOff:this.manualEditModeOff.bind(this),showCorrectColumn:this.props.showCorrectColumn,parent:this,data:this.props.data,url:this.props.url,saveUrl:this.props.saveUrl,onLoad:this.props.onLoad,onPost:this.props.onPost,editModeOn:this.editModeOn,editMode:this.state.editMode,variables:this.props.variables,registry:Bc(),editElement:this.state.editElement,renderEditForm:this.props.renderEditForm,saveAlways:this.props.saveAlways}),p().createElement(qu,(0,t.Z)({},e,{customItems:this.props.customToolbarItems})))))))}}]),f}(p().Component);function gl(e){var t=e.locale?e.locale:"en",n=dl[t];return p().createElement(Ie,{locale:n.locale,messages:n.messages},p().createElement(sl,e))}var ml={};ml.ReactSurveyBuilder=hl,ml.ReactSurveyGenerator=gl,ml.ElementStore=Ye,ml.Registry=Bc();const yl=ml})(),s})()));
|