react-form-builder-more-flexibility 1.0.77 → 2.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/dist/845.app.js +1 -1
- package/dist/app.css +1 -1
- package/dist/app.css.map +1 -1
- package/dist/app.js +1 -1
- package/dist/app.js.LICENSE.txt +0 -37
- package/lib/form-elements/component-label.js +2 -1
- package/lib/form-elements/index.js +6 -5
- package/lib/form-elements-edit.js +15 -45
- package/lib/functions/index.js +1 -13
- package/lib/utils/contrast-backing.js +200 -0
- package/package.json +1 -4
package/dist/app.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see app.js.LICENSE.txt */
|
|
2
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define("ReactFormBuilder",["react","react-dom"],e):"object"==typeof exports?exports.ReactFormBuilder=e(require("react"),require("react-dom")):t.ReactFormBuilder=e(t.React,t.ReactDOM)}(self,(t,e)=>(()=>{var n,r,o={46:(t,e,n)=>{"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(6840),i=n(5224),a=n(4712),s=n(6991),c=n(9248),u=n(7282),l=n(7337),p=n(1721),f=l.List,d=l.Repeat,h=u("draft_tree_data_support"),g=h?i:o,m={processHTML:function(t,e){return a(t,c,e)},processText:function(t,e,n){return t.reduce(function(t,o,i){o=p(o);var a=s(),c={key:a,type:n,text:o,characterList:f(d(e,o.length))};if(h&&0!==i){var u=i-1;c=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(e){r(t,e,n[e])})}return t}({},c,{prevSibling:(t[u]=t[u].merge({nextSibling:a})).getKey()})}return t.push(new g(c)),t},[])}};t.exports=m},70:(t,e,n)=>{"use strict";var r=n(2242);t.exports=function(t){var e=t.getSelection(),n=e.getStartKey();return r.set(t,{selection:e.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},120:(t,e,n)=>{"use strict";var r=n(9215);t.exports=function(t,e){var n=e.ownerDocument.defaultView.getSelection(),o=n.anchorNode,i=n.anchorOffset,a=n.focusNode,s=n.focusOffset;return 0===n.rangeCount||null==o||null==a?{selectionState:t.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(t,e,o,i,a,s)}},286:t=>{"use strict";t.exports=function(t,e,n,r){var o=e.getStartKey(),i=e.getEndKey(),a=t.getBlockMap(),s=a.toSeq().skipUntil(function(t,e){return e===o}).takeUntil(function(t,e){return e===i}).concat([[i,a.get(i)]]).map(function(t){var e=t.getDepth()+n;return e=Math.max(0,Math.min(e,r)),t.set("depth",e)});return a=a.merge(s),t.merge({blockMap:a,selectionBefore:e,selectionAfter:e})}},296:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(7800);function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||(0,r.A)(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},316:(t,e,n)=>{"use strict";var r=n(3816);t.exports=function(t){return!(!t||!t.ownerDocument)&&r(t)&&"A"===t.nodeName}},328:(t,e,n)=>{n(8624),t.exports=self.fetch.bind(self)},428:(t,e,n)=>{"use strict";function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){o(t,e,n[e])})}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(6840),a=n(5224),s=n(7656),c=n(1608),u=n(2396),l=(n(2490),n(1381)),p=n(803),f=n(2401),d=n(3830),h=n(6991),g=n(7282),m=n(7337),y=n(646),v=g("draft_tree_data_support"),b=m.List,w=m.Map,_=m.OrderedMap,E=function(t,e){var n=t.key,r=t.type,o=t.data;return{text:t.text,depth:t.depth||0,type:r||"unstyled",key:n||h(),data:w(o),characterList:S(t,e)}},S=function(t,e){var n=t.text,o=t.entityRanges,i=t.inlineStyleRanges,a=o||[];return p(d(n,i||[]),f(n,a.filter(function(t){return e.hasOwnProperty(t.key)}).map(function(t){return r({},t,{key:e[t.key]})})))},k=function(t){return r({},t,{key:t.key||h()})},C=function(t,e,n){var o=e.map(function(t){return r({},t,{parentRef:n})});return t.concat(o.reverse())};t.exports=function(t){Array.isArray(t.blocks)||y(!1);var e=function(t){var e=t.entityMap,n={};return Object.keys(e).forEach(function(t){var r=e[t],o=r.type,i=r.mutability,a=r.data;n[t]=c.__create(o,i,a||{})}),n}(t),n=function(t,e){var n=t.blocks.find(function(t){return Array.isArray(t.children)&&t.children.length>0}),o=v&&!n?u.fromRawStateToRawTreeState(t).blocks:t.blocks;if(!v)return function(t,e){return _(t.map(function(t){var n=new i(E(t,e));return[n.getKey(),n]}))}(n?u.fromRawTreeStateToRawState(t).blocks:o,e);var s=function(t,e){return t.map(k).reduce(function(n,o,i){Array.isArray(o.children)||y(!1);var s=o.children.map(k),c=new a(r({},E(o,e),{prevSibling:0===i?null:t[i-1].key,nextSibling:i===t.length-1?null:t[i+1].key,children:b(s.map(function(t){return t.key}))}));n=n.set(c.getKey(),c);for(var u=C([],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(k),m=new a(r({},E(l,e),{parent:p.getKey(),children:b(g.map(function(t){return t.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=C(u,g,m)}return n},_())}(o,e);return s}(t,e),o=n.isEmpty()?new l:l.createEmpty(n.first().getKey());return new s({blockMap:n,entityMap:e,selectionBefore:o,selectionAfter:o})}},467:(t,e,n)=>{"use strict";function r(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise(function(o,i){var a=t.apply(e,n);function s(t){r(a,o,i,s,c,"next",t)}function c(t){r(a,o,i,s,c,"throw",t)}s(void 0)})}}n.d(e,{A:()=>o})},508:(t,e,n)=>{"use strict";var r=n(8382),o=n(9311),i=n(646);function a(t,e,n,a,s,c,u){var l=n.getStartOffset(),p=n.getEndOffset(),f=t.__get(s).getMutability(),d=u?l:p;if("MUTABLE"===f)return n;var h=o(e,s).filter(function(t){return d<=t.end&&d>=t.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,e.getText().slice(g.start,g.end),g.start,a);return n.merge({anchorOffset:m.start,focusOffset:m.end,isBackward:!1})}t.exports=function(t,e,n,r,o){var i=r.getStartOffset(),s=r.getEndOffset(),c=e.getEntityAt(i),u=n.getEntityAt(s-1);if(!c&&!u)return r;var l=r;if(c&&c===u)l=a(t,e,l,o,c,!0,!0);else if(c&&u){var p=a(t,e,l,o,c,!1,!0),f=a(t,n,l,o,u,!1,!1);l=l.merge({anchorOffset:p.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(c){var d=a(t,e,l,o,c,!1,!0);l=l.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(u){var h=a(t,n,l,o,u,!1,!1);l=l.merge({focusOffset:h.getEndOffset(),isBackward:!1})}return l}},525:(t,e,n)=>{"use strict";var r=n(1617),o=n(2242),i=n(5419),a=n(5188);t.exports=function(t){var e=a(t,function(t){var e=t.getSelection(),n=e.getStartOffset(),o=e.getStartKey(),a=t.getCurrentContent().getBlockForKey(o).getText().slice(n),s=r.getForward(a);return i(t,s.length||1)},"forward");return e===t.getCurrentContent()?t:o.push(t,e,"remove-range")}},579:(t,e,n)=>{var r=n(3738).default;t.exports=function(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}throw new TypeError(r(t)+" is not iterable")},t.exports.__esModule=!0,t.exports.default=t.exports},580:(t,e,n)=>{"use strict";var r=n(646),o=/[\uD800-\uDFFF]/;function i(t){return 55296<=t&&t<=57343}function a(t){return o.test(t)}function s(t,e){return 1+i(t.charCodeAt(e))}function c(t,e,n){if(e=e||0,n=void 0===n?1/0:n||0,!a(t))return t.substr(e,n);var r=t.length;if(r<=0||e>r||n<=0)return"";var o=0;if(e>0){for(;e>0&&o<r;e--)o+=s(t,o);if(o>=r)return""}else if(e<0){for(o=r;e<0&&0<o;e++)o-=s(t,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=s(t,i);return t.substring(o,i)}var u={getCodePoints:function(t){for(var e=[],n=0;n<t.length;n+=s(t,n))e.push(t.codePointAt(n));return e},getUTF16Length:s,hasSurrogateUnit:a,isCodeUnitInSurrogateRange:i,isSurrogatePair:function(t,e){if(0<=e&&e<t.length||r(!1),e+1===t.length)return!1;var n=t.charCodeAt(e),o=t.charCodeAt(e+1);return 55296<=n&&n<=56319&&56320<=o&&o<=57343},strlen:function(t){if(!a(t))return t.length;for(var e=0,n=0;n<t.length;n+=s(t,n))e++;return e},substring:function(t,e,n){(e=e||0)<0&&(e=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-e);return c(t,e=e<n?e:n,r)},substr:c};t.exports=u},646:t=>{"use strict";t.exports=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(!t){var i;if(void 0===e)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(e.replace(/%s/g,function(){return String(r[a++])}))).name="Invariant Violation"}throw i.framesToPop=1,i}}},679:t=>{"use strict";t.exports=function(t){return Object.keys(t).map(function(e){return t[e]})}},702:(t,e,n)=>{"use strict";var r=n(580),o=n(8227),i=function(t,e){return t===e},a=function(t){return!!t},s=[];t.exports=function(t){var e=t.getCharacterList().map(function(t){return t.getStyle()}).toList(),n=e.flatten().toSet().map(function(n){return function(t,e,n){var s=[],c=e.map(function(t){return t.has(n)}).toList();return o(c,i,a,function(e,o){var i=t.getText();s.push({offset:r.strlen(i.slice(0,e)),length:r.strlen(i.slice(e,o)),style:n})}),s}(t,e,n)});return Array.prototype.concat.apply(s,n.toJS())}},723:(t,e,n)=>{"use strict";var r=n(646),o=/\.textClipping$/,i={"text/plain":!0,"text/html":!0,"text/rtf":!0};t.exports=function(t,e){var a=0,s=[];t.forEach(function(c){!function(t,e){if(!n.g.FileReader||t.type&&!(t.type in i))e("");else{if(""===t.type){var a="";return o.test(t.name)&&(a=t.name.replace(o,"")),void e(a)}var s=new FileReader;s.onload=function(){var t=s.result;"string"!=typeof t&&r(!1),e(t)},s.onerror=function(){e("")},s.readAsText(t)}}(c,function(n){a++,n&&s.push(n.slice(0,5e3)),a==t.length&&e(s.join("\r"))})})}},755:(t,e,n)=>{"use strict";var r=n(7378),o=n(9938),i=n(3885),a=n(2242),s=n(5852),c=n(4134),u=n(6207),l=n(3564),p=n(120),f=n(9927),d=n(6408),h=c.isBrowser("IE"),g=!1,m=!1,y=null,v={onCompositionStart:function(t){m=!0,function(t){y||(y=new r(l(t))).start()}(t)},onCompositionEnd:function(t){g=!1,m=!1,setTimeout(function(){g||v.resolveComposition(t)},20)},onSelect:u,onKeyDown:function(t,e){if(!m)return v.resolveComposition(t),void t._onKeyDown(e);e.which!==s.RIGHT&&e.which!==s.LEFT||e.preventDefault()},onKeyPress:function(t,e){e.which===s.RETURN&&e.preventDefault()},resolveComposition:function(t){if(!m){var e=d(y).stopAndFlushMutations();y=null,g=!0;var n=a.set(t._latestEditorState,{inCompositionMode:!1});if(t.exitCurrentMode(),e.size){var r=n.getCurrentContent();e.forEach(function(t,e){var s=i.decode(e),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,t,y,m),n=a.set(n,{currentContent:r})});var s=p(n,l(t)).selectionState;t.restoreEditorDOM();var c=h?a.forceSelection(n,s):a.acceptSelection(n,s);t.update(a.push(c,r,"insert-characters"))}else t.update(n)}}};t.exports=v},798:t=>{"use strict";t.exports=function(t){var e=t||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var o=arguments[r];o&&(e=(e?e+" ":"")+o)}return e}},803:(t,e,n)=>{"use strict";var r=n(3018),o=n(7337).List;t.exports=function(t,e){var n=t.map(function(t,n){var o=e[n];return r.create({style:t,entity:o})});return o(n)}},816:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(2284);function o(t){var e=function(t){if("object"!=(0,r.A)(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=(0,r.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,r.A)(e)?e:e+""}},866:(t,e,n)=>{"use strict";var r=n(3310),o=n(6044);t.exports=function(t,e){var n=e.getStartKey(),i=e.getStartOffset(),a=e.getEndKey(),s=e.getEndOffset(),c=o(t,e).getBlockMap(),u=c.keySeq(),l=u.indexOf(n),p=u.indexOf(a)+1;return r(c.slice(l,p).map(function(t,e){var r=t.getText(),o=t.getCharacterList();return n===a?t.merge({text:r.slice(i,s),characterList:o.slice(i,s)}):e===n?t.merge({text:r.slice(i),characterList:o.slice(i)}):e===a?t.merge({text:r.slice(0,s),characterList:o.slice(0,s)}):t}))}},887:(t,e,n)=>{var r=n(6993),o=n(1791);t.exports=function(t,e,n,i,a){return new o(r().w(t,e,n,i),a||Promise)},t.exports.__esModule=!0,t.exports.default=t.exports},894:(t,e,n)=>{"use strict";var r=n(4658);t.exports=function(t){var e=t.getSelection();if(!e.rangeCount)return null;var n=e.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}},953:(t,e,n)=>{"use strict";var r=n(646),o=/\./,i=/\|\|/,a=/\s+\-\s+/,s=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,c=/^(\d*)(.*)/;function u(t,e){if(""===(t=t.trim()))return!0;var n,r=e.split(o),i=f(t),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(t,e){var n=e.slice(),r=e.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);return d(i)&&(r[o]=i+1+""),p(t,n)&&l(t,r)}(r,s);default:return function(t,e){return 0===v(t,e)}(r,s)}}function l(t,e){return-1===v(t,e)}function p(t,e){var n=v(t,e);return 1===n||0===n}function f(t){var e=t.split(o),n=e[0].match(s);return n||r(!1),{modifier:n[1],rangeComponents:[n[2]].concat(e.slice(1))}}function d(t){return!isNaN(t)&&isFinite(t)}function h(t){return!f(t).modifier}function g(t,e){for(var n=t.length;n<e;n++)t[n]="0"}function m(t,e){var n=t.match(c)[1],r=e.match(c)[1],o=parseInt(n,10),i=parseInt(r,10);return d(o)&&d(i)&&o!==i?y(o,i):y(t,e)}function y(t,e){return typeof t!=typeof e&&r(!1),t>e?1:t<e?-1:0}function v(t,e){for(var n=function(t,e){g(t=t.slice(),(e=e.slice()).length);for(var n=0;n<e.length;n++){var r=e[n].match(/^[x*]$/i);if(r&&(e[n]=t[n]="0","*"===r[0]&&n===e.length-1))for(var o=n;o<t.length;o++)t[o]="0"}return g(e,t.length),[t,e]}(t,e),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(t,e){return function(t,e){var n=t.split(i);return n.length>1?n.some(function(t){return b.contains(t,e)}):function(t,e){var n=t.split(a);if(n.length>0&&n.length<=2||r(!1),1===n.length)return u(n[0],e);var o=n[0],i=n[1];return h(o)&&h(i)||r(!1),u(">="+o,e)&&u("<="+i,e)}(t=n[0].trim(),e)}(t.trim(),e.trim())}};t.exports=b},968:(t,e,n)=>{"use strict";n.d(e,{J:()=>s,b:()=>a});var r=n(328),o=n.n(r),i={Accept:"application/json","Content-Type":"application/json; charset=utf-8",OPTIONS:""};function a(t,e){return o()(t,{method:"POST",headers:i,body:JSON.stringify(e)}).then(function(t){return t})}function s(t){return o()(t,{method:"GET",headers:i}).then(function(t){return t.json()})}},1020:(t,e,n)=>{"use strict";var r=n(4012),o=Symbol.for("react.element"),i=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};e.jsx=function(t,e,n){var r,c={},u=null,l=null;for(r in void 0!==n&&(u=""+n),void 0!==e.key&&(u=""+e.key),void 0!==e.ref&&(l=e.ref),e)i.call(e,r)&&!s.hasOwnProperty(r)&&(c[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===c[r]&&(c[r]=e[r]);return{$$typeof:o,type:t,key:u,ref:l,props:c,_owner:a.current}}},1071:(t,e,n)=>{"use strict";n.d(e,{RK:()=>a,TT:()=>r,hN:()=>s});var r,o=n(4293),i=n(1732);function a(t){return"function"==typeof t}function s(t,e,n,c,u,l,p){if(1===t.length&&(0,o.eW)(t[0]))return[{type:r.literal,value:t[0].value}];for(var f=[],d=0,h=t;d<h.length;d++){var g=h[d];if((0,o.eW)(g))f.push({type:r.literal,value:g.value});else if((0,o.jA)(g))"number"==typeof l&&f.push({type:r.literal,value:n.getNumberFormat(e).format(l)});else{var m=g.value;if(!u||!(m in u))throw new i.Ei(m,p);var y=u[m];if((0,o.Im)(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.tv)(g)){var v="string"==typeof g.style?c.date[g.style]:(0,o.Tu)(g.style)?g.style.parsedOptions:void 0;f.push({type:r.literal,value:n.getDateTimeFormat(e,v).format(y)})}else if((0,o.Qh)(g))v="string"==typeof g.style?c.time[g.style]:(0,o.Tu)(g.style)?g.style.parsedOptions:c.time.medium,f.push({type:r.literal,value:n.getDateTimeFormat(e,v).format(y)});else if((0,o.oF)(g))(v="string"==typeof g.style?c.number[g.style]:(0,o.N1)(g.style)?g.style.parsedOptions:void 0)&&v.scale&&(y*=v.scale||1),f.push({type:r.literal,value:n.getNumberFormat(e,v).format(y)});else{if((0,o.xm)(g)){var b=g.children,w=g.value,_=u[w];if(!a(_))throw new i.Zo(w,"function",p);var E=_(s(b,e,n,c,u,l).map(function(t){return t.value}));Array.isArray(E)||(E=[E]),f.push.apply(f,E.map(function(t){return{type:"string"==typeof t?r.literal:r.object,value:t}}))}if((0,o.Jp)(g)){if(!(S=g.options[y]||g.options.other))throw new i.$x(g.value,y,Object.keys(g.options),p);f.push.apply(f,s(S.value,e,n,c,u))}else if((0,o.N6)(g)){var S;if(!(S=g.options["=".concat(y)])){if(!Intl.PluralRules)throw new i.IF('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',i.O4.MISSING_INTL_API,p);var k=n.getPluralRules(e,{type:g.pluralType}).select(y-(g.offset||0));S=g.options[k]||g.options.other}if(!S)throw new i.$x(g.value,y,Object.keys(g.options),p);f.push.apply(f,s(S.value,e,n,c,u,y-(g.offset||0)))}}}}return(C=f).length<2?C:C.reduce(function(t,e){var n=t[t.length-1];return n&&n.type===r.literal&&e.type===r.literal?n.value+=e.value:t.push(e),t},[]);var C}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(r||(r={}))},1100:t=>{t.exports={indexOf:function(t,e){var n,r;if(Array.prototype.indexOf)return t.indexOf(e);for(n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},forEach:function(t,e,n){var r,o;if(Array.prototype.forEach)return t.forEach(e,n);for(r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(t){return String.prototype.trimRight?t.trimRight():t.replace(/(\s*$)/g,"")}}},1103:t=>{"use strict";t.exports={notEmptyKey:function(t){return null!=t&&""!=t}}},1124:(t,e,n)=>{"use strict";var r=n(5228);function o(){return o=r||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}var i=n(5203),a=n(3885),s=n(4012),c=n(3529),u=n(2935),l=n(8307),p=n(5822),f=n(8003),d=n(8527),h=n(7392),g=n(1401),m=n(646),y=n(5291),v=n(6408),b=function(t,e){return t.getAnchorKey()===e||t.getFocusKey()===e},w=function(t){var e,n;function r(){for(var e,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(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e=t.call.apply(t,[this].concat(a))||this))?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var w=r.prototype;return w.shouldComponentUpdate=function(t){return this.props.block!==t.block||this.props.tree!==t.tree||this.props.direction!==t.direction||b(t.selection,t.block.getKey())&&t.forceSelection},w.componentDidMount=function(){if(!this.props.preventScroll){var t=this.props.selection,e=t.getEndKey();if(t.getHasFocus()&&e===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 t=this,e=this.props.block,n=e.getKey(),r=e.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:e,start:f,selection:u?t.props.selection:null,forceSelection:t.props.forceSelection,text:r.slice(f,h),styleSet:e.getInlineStyleAt(f),customStyleMap:t.props.customStyleMap,customStyleFn:t.props.customStyleFn,isLast:d===c&&l===g})}).toArray(),y=f.get("decoratorKey");if(null==y)return m;if(!t.props.decorator)return m;var b=v(t.props.decorator),w=b.getComponentForKey(y);if(!w)return m;var _=b.getPropsForKey(y),E=a.encode(n,d,0),S=h.first().get("start"),k=h.last().get("end"),C=r.slice(S,k),M=e.getEntityAt(f.get("start")),O=p.getHTMLDirIfDifferent(l.getDirection(C),t.props.direction),x={contentState:t.props.contentState,decoratedText:C,dir:O,start:S,end:k,blockKey:n,entityKey:M,offsetKey:E};return s.createElement(w,o({},_,x,{key:E}),m)}).toArray()},w.render=function(){var t=this,e=this.props,n=e.direction,r=e.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(e){return t._node=e}},this._renderChildren())},r}(s.Component);t.exports=w},1296:(t,e,n)=>{"use strict";var r=n(866);t.exports=function(t){var e=t.getSelection();return e.isCollapsed()?null:r(t.getCurrentContent(),e)}},1381:(t,e,n)=>{"use strict";var r=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__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(t,e,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===t){var i=this.getStartOffset(),a=this.getEndOffset();return e<=i&&i<=n||e<=a&&a<=n}if(t!==r&&t!==o)return!1;var s=t===r?this.getAnchorOffset():this.getFocusOffset();return e<=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(t){return new r({anchorKey:t,anchorOffset:0,focusKey:t,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,n(7337).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));t.exports=r},1401:t=>{"use strict";function e(){var t;return document.documentElement&&(t=document.documentElement.clientWidth),!t&&document.body&&(t=document.body.clientWidth),t||0}function n(){var t;return document.documentElement&&(t=document.documentElement.clientHeight),!t&&document.body&&(t=document.body.clientHeight),t||0}function r(){return{width:window.innerWidth||e(),height:window.innerHeight||n()}}r.withoutScrollbars=function(){return{width:e(),height:n()}},t.exports=r},1439:t=>{"use strict";var e={stringify:function(t){return"_"+String(t)},unstringify:function(t){return t.slice(1)}};t.exports=e},1608:(t,e,n)=>{"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(5407),i=n(7337),a=n(646),s=n(4809),c=(0,i.Map)(),u=s();function l(t,e){console.warn("WARNING: "+t+' will be deprecated soon!\nPlease use "'+e+'" instead.')}var p={getLastCreatedEntityKey:function(){return l("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),p.__getLastCreatedEntityKey()},create:function(t,e,n){return l("DraftEntity.create","contentState.createEntity"),p.__create(t,e,n)},add:function(t){return l("DraftEntity.add","contentState.addEntity"),p.__add(t)},get:function(t){return l("DraftEntity.get","contentState.getEntity"),p.__get(t)},__getAll:function(){return c},__loadWithEntities:function(t){c=t,u=s()},mergeData:function(t,e){return l("DraftEntity.mergeData","contentState.mergeEntityData"),p.__mergeData(t,e)},replaceData:function(t,e){return l("DraftEntity.replaceData","contentState.replaceEntityData"),p.__replaceData(t,e)},__getLastCreatedEntityKey:function(){return u},__create:function(t,e,n){return p.__add(new o({type:t,mutability:e,data:n||{}}))},__add:function(t){return u=s(),c=c.set(u,t),u},__get:function(t){var e=c.get(t);return e||a(!1),e},__mergeData:function(t,e){var n=p.__get(t),o=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(e){r(t,e,n[e])})}return t}({},n.getData(),e),i=n.set("data",o);return c=c.set(t,i),i},__replaceData:function(t,e){var n=p.__get(t).set("data",e);return c=c.set(t,n),n}};t.exports=p},1617:(t,e,n)=>{"use strict";var r="['‘’]",o="\\s|(?![_])"+n(7405).getPunctuation(),i=new RegExp("^(?:"+o+")*(?:"+r+"|(?!"+o+").)*(?:(?!"+o+").)"),a=new RegExp("(?:(?!"+o+").)(?:"+r+"|(?!"+o+").)*(?:"+o+")*$");function s(t,e){var n=e?a.exec(t):i.exec(t);return n?n[0]:t}var c={getBackward:function(t){return s(t,!0)},getForward:function(t){return s(t,!1)}};t.exports=c},1635:(t,e,n)=>{"use strict";n.d(e,{C6:()=>o,Cl:()=>i,Tt:()=>a,fX:()=>s});var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)};function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}function s(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},1708:(t,e,n)=>{"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(8307),i=n(5822),a=n(646),s=function(){function t(t){r(this,"_defaultDir",void 0),r(this,"_lastDir",void 0),t?i.isStrong(t)||a(!1):t=i.getGlobalDir(),this._defaultDir=t,this.reset()}var e=t.prototype;return e.reset=function(){this._lastDir=this._defaultDir},e.getDirection=function(t){return this._lastDir=o.getDirection(t,this._lastDir),this._lastDir},t}();t.exports=s},1721:t=>{"use strict";var e=new RegExp("\r","g");t.exports=function(t){return t.replace(e,"")}},1732:(t,e,n)=>{"use strict";n.d(e,{$x:()=>a,Ei:()=>c,IF:()=>i,O4:()=>r,Zo:()=>s});var r,o=n(1635);!function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"}(r||(r={}));var i=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.code=n,o.originalMessage=r,o}return(0,o.C6)(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),a=function(t){function e(e,n,o,i){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(n,'". Options are "').concat(Object.keys(o).join('", "'),'"'),r.INVALID_VALUE,i)||this}return(0,o.C6)(e,t),e}(i),s=function(t){function e(e,n,o){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(n),r.INVALID_VALUE,o)||this}return(0,o.C6)(e,t),e}(i),c=function(t){function e(e,n){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(n,'"'),r.MISSING_VALUE,n)||this}return(0,o.C6)(e,t),e}(i)},1791:(t,e,n)=>{var r=n(5172),o=n(5546);t.exports=function t(e,n){function i(t,o,a,s){try{var c=e[t](o),u=c.value;return u instanceof r?n.resolve(u.v).then(function(t){i("next",t,a,s)},function(t){i("throw",t,a,s)}):n.resolve(u).then(function(t){c.value=t,a(c)},function(t){return i("throw",t,a,s)})}catch(t){s(t)}}var a;this.next||(o(t.prototype),o(t.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),o(this,"_invoke",function(t,e,r){function o(){return new n(function(e,n){i(t,r,e,n)})}return a=a?a.then(o,o):o()},!0)},t.exports.__esModule=!0,t.exports.default=t.exports},1803:(t,e,n)=>{"use strict";var r=n(5228);function o(){return o=r||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}var i=n(2784),a=n(3885),s=n(4012),c=n(6408),u=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var u=r.prototype;return u.shouldComponentUpdate=function(t){var e=this.props.editorState,n=t.editorState;if(e.getDirectionMap()!==n.getDirectionMap())return!0;if(e.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=e.isInCompositionMode(),i=n.isInCompositionMode();if(e===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=e.getCurrentContent(),s=n.getCurrentContent(),c=e.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},u.render=function(){for(var t=this.props,e=t.blockRenderMap,n=t.blockRendererFn,r=t.blockStyleFn,u=t.customStyleMap,l=t.customStyleFn,p=t.editorState,f=t.editorKey,d=t.textDirectionality,h=p.getCurrentContent(),g=p.getSelection(),m=p.mustForceSelection(),y=p.getDecorator(),v=c(p.getDirectionMap()),b=[],w=h.getBlocksAsArray()[0];w;){var _=w.getKey(),E={blockRenderMap:e,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(_),tree:p.getBlockTree(_)},S=(e.get(w.getType())||e.get("unstyled")).wrapper;b.push({block:s.createElement(i,o({key:_},E)),wrapperTemplate:S,key:_,offsetKey:a.encode(_,0,0)});var k=w.getNextSiblingKey();w=k?h.getBlockForKey(k):null}for(var C=[],M=0;M<b.length;){var O=b[M];if(O.wrapperTemplate){var x=[];do{x.push(b[M].block),M++}while(M<b.length&&b[M].wrapperTemplate===O.wrapperTemplate);var D=s.cloneElement(O.wrapperTemplate,{key:O.key+"-wrap","data-offset-key":O.offsetKey},x);C.push(D)}else C.push(O.block),M++}return s.createElement("div",{"data-contents":"true"},C)},r}(s.Component);t.exports=u},1857:t=>{t.exports=function(){var t={},e={register:function(n,r){if(!n)throw new Error("You must provide a valid name for this entry.");if(void 0!==t[n])throw new Error("'".concat(n,"' already registered"));if(!r)throw new Error("You must provide something to register as '".concat(n,"'"));return t[n]=r,e},list:function(){return Object.keys(t)},get:function(e){return t.hasOwnProperty(e)||console.error("No such entry '".concat(e,"'")),t[e]}};return e}()},1864:(t,e,n)=>{"use strict";var r=n(646);t.exports=function(t){return function(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"length"in t&&!("setInterval"in t)&&"number"!=typeof t.nodeType&&(Array.isArray(t)||"callee"in t||"item"in t)}(t)?Array.isArray(t)?t.slice():function(t){var e=t.length;if((Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t)&&r(!1),"number"!=typeof e&&r(!1),0===e||e-1 in t||r(!1),"function"==typeof t.callee&&r(!1),t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(t){}for(var n=Array(e),o=0;o<e;o++)n[o]=t[o];return n}(t):[t]}},1914:t=>{"use strict";t.exports=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(!t){var i;if(void 0===e)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(e.replace(/%s/g,function(){return String(r[a++])}))).name="Invariant Violation"}throw i.framesToPop=1,i}}},1952:(t,e,n)=>{"use strict";var r=n(3018);t.exports=function(t,e,n,o){for(var i=e,a=t.getCharacterList();i<n;)a=a.set(i,r.applyEntity(a.get(i),o)),i++;return t.set("characterList",a)}},1988:(t,e,n)=>{"use strict";var r=n(5228);function o(){return o=r||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}var i=n(3885),a=n(4012),s=n(8307),c=n(5822),u=function(t){var e,n;function r(){return t.apply(this,arguments)||this}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r.prototype.render=function(){var t=this.props,e=t.block,n=t.children,r=t.contentState,u=t.decorator,l=t.decoratorKey,p=t.direction,f=t.leafSet,d=t.text,h=e.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:e.getEntityAt(f.get("start")),offsetKey:v}),n)},r}(a.Component);t.exports=u},2017:t=>{"use strict";t.exports=function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(e)){if((r=e.length)!=n.length)return!1;for(o=r;0!==o--;)if(!t(e[o],n[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((r=(i=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(o=r;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!==o--;){var a=i[o];if(!t(e[a],n[a]))return!1}return!0}return e!=e&&n!=n}},2048:(t,e,n)=>{var r=n(6018).FilterCSS,o=n(6018).getDefaultWhiteList,i=n(9349);var a=new r;function s(t){return t.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(t){return t.replace(l,""")}function b(t){return t.replace(p,'"')}function w(t){return t.replace(f,function(t,e){return"x"===e[0]||"X"===e[0]?String.fromCharCode(parseInt(e.substr(1),16)):String.fromCharCode(parseInt(e,10))})}function _(t){return t.replace(d,":").replace(h," ")}function E(t){for(var e="",n=0,r=t.length;n<r;n++)e+=t.charCodeAt(n)<32?" ":t.charAt(n);return i.trim(e)}function S(t){return E(t=_(t=w(t=b(t))))}function k(t){return s(t=v(t))}e.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","loading"],ins:["datetime"],kbd:[],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"]},e.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","loading"],ins:["datetime"],kbd:[],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"]}},e.onTag=function(t,e,n){},e.onIgnoreTag=function(t,e,n){},e.onTagAttr=function(t,e,n){},e.onIgnoreTagAttr=function(t,e,n){},e.safeAttrValue=function(t,e,n,r){if(n=S(n),"href"===e||"src"===e){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"===e){if(g.lastIndex=0,g.test(n))return""}else if("style"===e){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 k(n)},e.escapeHtml=s,e.escapeQuote=v,e.unescapeQuote=b,e.escapeHtmlEntities=w,e.escapeDangerHtml5Entities=_,e.clearNonPrintableCharacter=E,e.friendlyAttrValue=S,e.escapeAttrValue=k,e.onIgnoreTagStripAll=function(){return""},e.StripTagBody=function(t,e){"function"!=typeof e&&(e=function(){});var n=!Array.isArray(t),r=[],o=!1;return{onIgnoreTag:function(a,s,c){if(function(e){return!!n||-1!==i.indexOf(t,e)}(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 e(a,s,c)},remove:function(t){var e="",n=0;return i.forEach(r,function(r){e+=t.slice(n,r[0]),n=r[1]}),e+=t.slice(n)}}},e.stripCommentTag=function(t){for(var e="",n=0;n<t.length;){var r=t.indexOf("\x3c!--",n);if(-1===r){e+=t.slice(n);break}e+=t.slice(n,r);var o=t.indexOf("--\x3e",r);if(-1===o)break;n=o+3}return e},e.stripBlankChar=function(t){var e=t.split("");return(e=e.filter(function(t){var e=t.charCodeAt(0);return!(127===e||e<=31&&10!==e&&13!==e)})).join("")},e.attributeWrapSign='"',e.cssFilter=a,e.getDefaultCSSWhiteList=o},2208:(t,e,n)=>{"use strict";var r=n(5748),o=n(3018),i=n(2395),a=n(9938),s=n(46),c=n(2242),u=n(7018),l=n(9927),p=n(723),f=n(3680),d=n(3676);function h(t,e,n){var r=a.replaceWithFragment(t.getCurrentContent(),t.getSelection(),e);return c.push(t,r.set("entityMap",n),"insert-fragment")}t.exports=function(t,e){e.preventDefault();var n=new i(e.clipboardData);if(!n.isRichText()){var g=n.getFiles(),m=n.getText();if(g.length>0){if(t.props.handlePastedFiles&&f(t.props.handlePastedFiles(g)))return;return void p(g,function(e){if(e=e||m){var n=t._latestEditorState,i=d(e),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);t.update(c.push(n,y,"insert-fragment"))}})}}var y=[],v=n.getText(),b=n.getHTML(),w=t._latestEditorState;if(t.props.formatPastedText){var _=t.props.formatPastedText(v,b);v=_.text,b=_.html}if(!t.props.handlePastedText||!f(t.props.handlePastedText(v,b,w))){if(v&&(y=d(v)),!t.props.stripPastedStyles){var E,S=t.getClipboard();if(!t.props.formatPastedText&&n.isRichText()&&S){if(-1!==(null===(E=b)||void 0===E?void 0:E.indexOf(t.getEditorKey()))||1===y.length&&1===S.size&&S.first().getText()===v)return void t.update(h(t._latestEditorState,S))}else if(S&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(t,e){return t.length===e.size&&e.valueSeq().every(function(e,n){return e.getText()===t[n]})}(y,S))return void t.update(h(t._latestEditorState,S));if(b){var k=s.processHTML(b,t.props.blockRenderMap);if(k){var C=k.contentBlocks,M=k.entityMap;if(C){var O=r.createFromArray(C);return void t.update(h(t._latestEditorState,O,M))}}}t.setClipboard(null)}if(y.length){var x=o.create({style:w.getCurrentInlineStyle(),entity:l(w.getCurrentContent(),w.getSelection())}),D=u.getCurrentBlockType(w),T=s.processText(y,x,D),A=r.createFromArray(T);t.update(h(t._latestEditorState,A))}}}},2242:(t,e,n)=>{"use strict";function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){o(t,e,n[e])})}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(9981),a=n(7656),s=n(3914),c=n(1381),u=n(7337),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(){e.createEmpty=function(t){return this.createWithText("",t)},e.createWithText=function(t,n){return e.createWithContent(a.createFromText(t),n)},e.createWithContent=function(t,n){if(0===t.getBlockMap().count())return e.createEmpty(n);var r=t.getBlockMap().first().getKey();return e.create({currentContent:t,undoStack:f(),redoStack:f(),decorator:n||null,selection:c.createEmpty(r)})},e.create=function(t){var n=t.currentContent,o=r({},t,{treeMap:v(n,t.decorator),directionMap:s.getDirectionMap(n)});return new e(new g(o))},e.fromJS=function(t){return new e(new g(r({},t,{directionMap:null!=t.directionMap?d(t.directionMap):t.directionMap,inlineStyleOverride:null!=t.inlineStyleOverride?l(t.inlineStyleOverride):t.inlineStyleOverride,nativelyRenderedContent:null!=t.nativelyRenderedContent?a.fromJS(t.nativelyRenderedContent):t.nativelyRenderedContent,redoStack:null!=t.redoStack?f(t.redoStack.map(function(t){return a.fromJS(t)})):t.redoStack,selection:null!=t.selection?new c(t.selection):t.selection,treeMap:null!=t.treeMap?d(t.treeMap).map(function(t){return h(t).map(function(t){return i.fromJS(t)})}):t.treeMap,undoStack:null!=t.undoStack?f(t.undoStack.map(function(t){return a.fromJS(t)})):t.undoStack,currentContent:a.fromJS(t.currentContent)})))},e.set=function(t,n){return new e(t.getImmutable().withMutations(function(e){var r=e.get("decorator"),o=r;null===n.decorator?o=null:n.decorator&&(o=n.decorator);var a=n.currentContent||t.getCurrentContent();if(o!==r){var s,c=e.get("treeMap");return s=o&&r?function(t,e,n,r,o){return n.merge(e.toSeq().filter(function(e){return r.getDecorations(e,t)!==o.getDecorations(e,t)}).map(function(e){return i.generate(t,e,r)}))}(a,a.getBlockMap(),c,o,r):v(a,o),void e.merge({decorator:o,treeMap:s,nativelyRenderedContent:null})}a!==t.getCurrentContent()&&e.set("treeMap",function(t,e,n,r){var o=t.getCurrentContent().set("entityMap",n),a=o.getBlockMap();return t.getImmutable().get("treeMap").merge(e.toSeq().filter(function(t,e){return t!==a.get(e)}).map(function(t){return i.generate(o,t,r)}))}(t,a.getBlockMap(),a.getEntityMap(),o)),e.merge(n)}))};var t=e.prototype;function e(t){o(this,"_immutable",void 0),this._immutable=t}return t.toJS=function(){return this.getImmutable().toJS()},t.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},t.getCurrentContent=function(){return this.getImmutable().get("currentContent")},t.getUndoStack=function(){return this.getImmutable().get("undoStack")},t.getRedoStack=function(){return this.getImmutable().get("redoStack")},t.getSelection=function(){return this.getImmutable().get("selection")},t.getDecorator=function(){return this.getImmutable().get("decorator")},t.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},t.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},t.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},t.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},t.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},e.setInlineStyleOverride=function(t,n){return e.set(t,{inlineStyleOverride:n})},t.getCurrentInlineStyle=function(){var t=this.getInlineStyleOverride();if(null!=t)return t;var e=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(t,e){var n=e.getStartKey(),r=e.getStartOffset(),o=t.getBlockForKey(n);return r>0?o.getInlineStyleAt(r-1):o.getLength()?o.getInlineStyleAt(0):b(t,n)}(e,n):function(t,e){var n=e.getStartKey(),r=e.getStartOffset(),o=t.getBlockForKey(n);return r<o.getLength()?o.getInlineStyleAt(r):r>0?o.getInlineStyleAt(r-1):b(t,n)}(e,n)},t.getBlockTree=function(t){return this.getImmutable().getIn(["treeMap",t])},t.isSelectionAtStartOfContent=function(){var t=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(t,0,0)},t.isSelectionAtEndOfContent=function(){var t=this.getCurrentContent().getBlockMap().last(),e=t.getLength();return this.getSelection().hasEdgeWithin(t.getKey(),e,e)},t.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(t,e){return y(t,e,!1)},e.forceSelection=function(t,e){return e.getHasFocus()||(e=e.set("hasFocus",!0)),y(t,e,!0)},e.moveSelectionToEnd=function(t){var n=t.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return e.acceptSelection(t,new c({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},e.moveFocusToEnd=function(t){var n=e.moveSelectionToEnd(t);return e.forceSelection(n,n.getSelection())},e.push=function(t,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t.getCurrentContent()===n)return t;var i=s.getDirectionMap(n,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=t.getSelection(),c=t.getCurrentContent(),u=t.getUndoStack(),l=n;a!==c.getSelectionAfter()||function(t,e){return e!==t.getLastChangeType()||"insert-characters"!==e&&"backspace-character"!==e&&"delete-character"!==e}(t,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=t.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 e.set(t,d)},e.undo=function(t){if(!t.getAllowUndo())return t;var n=t.getUndoStack(),r=n.peek();if(!r)return t;var o=t.getCurrentContent(),i=s.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:t.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var n=t.getRedoStack(),r=n.peek();if(!r)return t;var o=t.getCurrentContent(),i=s.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:i,undoStack:t.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},t.getImmutable=function(){return this._immutable},e}();function y(t,e,n){return m.set(t,{selection:e,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function v(t,e){return t.getBlockMap().map(function(n){return i.generate(t,n,e)}).toOrderedMap()}function b(t,e){var n=t.getBlockMap().reverse().skipUntil(function(t,n){return n===e}).skip(1).skipUntil(function(t,e){return t.getLength()}).first();return n?n.getInlineStyleAt(n.getLength()-1):l()}t.exports=m},2284:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.d(e,{A:()=>r})},2383:(t,e,n)=>{"use strict";var r=n(2242),o=n(580),i=n(5419),a=n(5188);t.exports=function(t){var e=a(t,function(t){var e=t.getSelection(),n=t.getCurrentContent(),r=e.getAnchorKey(),a=e.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a];return i(t,s?o.getUTF16Length(s,0):1)},"forward");if(e===t.getCurrentContent())return t;var n=t.getSelection();return r.push(t,e.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},2395:(t,e,n)=>{"use strict";var r=n(2505),o=n(1864),i=n(9395),a=new RegExp("\r\n","g"),s={"text/rtf":1,"text/html":1};function c(t){if("file"==t.kind)return t.getAsFile()}var u=function(){function t(t){this.data=t,this.types=t.types?o(t.types):[]}var e=t.prototype;return e.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some(function(t){return s[t]})},e.getText=function(){var t;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(t=this.data.getData("text/plain")):t=this.data.getData("Text")),t?t.replace(a,"\n"):null},e.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},e.isLink=function(){return this.types.some(function(t){return-1!=t.indexOf("Url")||-1!=t.indexOf("text/uri-list")||t.indexOf("text/x-moz-url")})},e.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},e.isImage=function(){var t=this.types.some(function(t){return-1!=t.indexOf("application/x-moz-file")});if(t)return!0;for(var e=this.getFiles(),n=0;n<e.length;n++){var o=e[n].type;if(!r.isImage(o))return!1}return!0},e.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},e.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(c).filter(i.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},e.hasFiles=function(){return this.getFiles().length>0},t}();t.exports=u},2396:(t,e,n)=>{"use strict";function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){o(t,e,n[e])})}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(6991),a=n(646),s=function(t){if(!t||!t.type)return!1;var e=t.type;return"unordered-list-item"===e||"ordered-list-item"===e},c={fromRawTreeStateToRawState:function(t){var e=t.blocks,n=[];return Array.isArray(e)||a(!1),Array.isArray(e)&&e.length?(function(t,e){for(var n=[].concat(t).reverse();n.length;){var r=n.pop();e(r);var o=r.children;Array.isArray(o)||a(!1),n=n.concat([].concat(o.reverse()))}}(e,function(t){var e=r({},t);s(t)&&(e.depth=e.depth||0,function(t){Array.isArray(t.children)&&(t.children=t.children.map(function(e){return e.type===t.type?r({},e,{depth:(t.depth||0)+1}):e}))}(t),null!=t.children&&t.children.length>0)||(delete e.children,n.push(e))}),t.blocks=n,r({},t,{blocks:n})):t},fromRawStateToRawTreeState:function(t){var e=[],n=[];return t.blocks.forEach(function(t){var o=s(t),a=t.depth||0,c=r({},t,{children:[]});if(o){var u=n[0];if(null==u&&0===a)e.push(c);else if(null==u||u.depth<a-1){var l={key:i(),text:"",depth:a-1,type:t.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(l),1===a?e.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):e.push(c)}}else e.push(c)}),r({},t,{blocks:e})}};t.exports=c},2401:(t,e,n)=>{"use strict";var r=n(580).substr;t.exports=function(t,e){var n=Array(t.length).fill(null);return e&&e.forEach(function(e){for(var o=r(t,0,e.offset).length,i=o+r(t,e.offset,e.length).length,a=o;a<i;a++)n[a]=e.key}),n}},2463:t=>{"use strict";function e(t){return function(){return t}}var n=function(){};n.thatReturns=e,n.thatReturnsFalse=e(!1),n.thatReturnsTrue=e(!0),n.thatReturnsNull=e(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(t){return t},t.exports=n},2474:(t,e,n)=>{"use strict";var r=n(2395),o=n(9938),i=n(2242),a=n(8372),s=n(9677),c=n(723),u=n(9450),l=n(5389),p=n(3680),f=n(6408),d={onDragEnd:function(t){t.exitCurrentMode(),h(t)},onDrop:function(t,e){var n=new r(e.nativeEvent.dataTransfer),l=t._latestEditorState,d=function(t,e){var n=null,r=null,o=s(t.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(t.x,t.y);n=i.startContainer,r=i.startOffset}else{if(!t.rangeParent)return null;n=t.rangeParent,r=t.rangeOffset}n=f(n),r=f(r);var c=f(a(n));return u(e,c,r,c,r)}(e.nativeEvent,l);if(e.preventDefault(),t._dragCount=0,t.exitCurrentMode(),null!=d){var m=n.getFiles();if(m.length>0){if(t.props.handleDroppedFiles&&p(t.props.handleDroppedFiles(d,m)))return;c(m,function(e){e&&t.update(g(l,d,e))})}else{var y=t._internalDrag?"internal":"external";t.props.handleDrop&&p(t.props.handleDrop(d,n,y))||(t._internalDrag?t.update(function(t,e){var n=o.moveText(t.getCurrentContent(),t.getSelection(),e);return i.push(t,n,"insert-fragment")}(l,d)):t.update(g(l,d,n.getText()))),h(t)}}}};function h(t){t._internalDrag=!1;var e=t.editorContainer;if(e){var n=new MouseEvent("mouseup",{view:l(e),bubbles:!0,cancelable:!0});e.dispatchEvent(n)}}function g(t,e,n){var r=o.insertText(t.getCurrentContent(),e,n,t.getCurrentInlineStyle());return i.push(t,r,"insert-fragment")}t.exports=d},2490:(t,e,n)=>{"use strict";n(4594),t.exports={isValidBlock:function(t,e){var n=t.getKey(),r=t.getParentKey();if(null!=r&&!e.get(r).getChildKeys().includes(n))return!1;if(!t.getChildKeys().map(function(t){return e.get(t)}).every(function(t){return t.getParentKey()===n}))return!1;var o=t.getPrevSiblingKey();if(null!=o&&e.get(o).getNextSiblingKey()!==n)return!1;var i=t.getNextSiblingKey();return(null==i||e.get(i).getPrevSiblingKey()===n)&&!(null!==i&&null!==o&&o===i||""!=t.text&&t.getChildKeys().size>0)},isConnectedTree:function(t){var e=t.toArray().filter(function(t){return null==t.getParentKey()&&null==t.getPrevSiblingKey()});if(1!==e.length)return!1;for(var n=0,r=e.shift().getKey(),o=[];null!=r;){var i=t.get(r),a=i.getChildKeys(),s=i.getNextSiblingKey();if(a.size>0){null!=s&&o.unshift(s);var c=a.map(function(e){return t.get(e)}).find(function(t){return null==t.getPrevSiblingKey()});if(null==c)return!1;r=c.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===t.size},isValidTree:function(t){var e=this;return!!t.toArray().every(function(n){return e.isValidBlock(n,t)})&&this.isConnectedTree(t)}}},2505:t=>{"use strict";var e={isImage:function(t){return"image"===n(t)[0]},isJpeg:function(t){var r=n(t);return e.isImage(t)&&("jpeg"===r[1]||"pjpeg"===r[1])}};function n(t){return t.split("/")}t.exports=e},2587:(t,e,n)=>{"use strict";n.d(e,{S:()=>c});var r=n(1635),o=n(4819),i=n(4293),a=n(1071);function s(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,n){t[e]=n}}}}}var c=function(){function t(e,n,i,c){void 0===n&&(n=t.defaultLocale);var u,l,p,f=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=f.formatToParts(t);if(1===e.length)return e[0].value;var n=e.reduce(function(t,e){return t.length&&e.type===a.TT.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t},[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(t){return(0,a.hN)(f.ast,f.locales,f.formatters,f.formats,t,void 0,f.message)},this.resolvedOptions=function(){var t;return{locale:(null===(t=f.resolvedLocale)||void 0===t?void 0:t.toString())||Intl.NumberFormat.supportedLocalesOf(f.locales)[0]}},this.getAst=function(){return f.ast},this.locales=n,this.resolvedLocale=t.resolveLocale(n),"string"==typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var d=c||{},h=(d.formatters,(0,r.Tt)(d,["formatters"]));this.ast=t.__parse(e,(0,r.Cl)((0,r.Cl)({},h),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(l=t.formats,(p=i)?Object.keys(l).reduce(function(t,e){var n,o;return t[e]=(n=l[e],(o=p[e])?(0,r.Cl)((0,r.Cl)((0,r.Cl)({},n||{}),o||{}),Object.keys(n).reduce(function(t,e){return t[e]=(0,r.Cl)((0,r.Cl)({},n[e]),o[e]||{}),t},{})):n),t},(0,r.Cl)({},l)):l),this.formatters=c&&c.formatters||(void 0===(u=this.formatterCache)&&(u={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,o.B)(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,(0,r.fX)([void 0],e,!1)))},{cache:s(u.number),strategy:o.W.variadic}),getDateTimeFormat:(0,o.B)(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,(0,r.fX)([void 0],e,!1)))},{cache:s(u.dateTime),strategy:o.W.variadic}),getPluralRules:(0,o.B)(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,(0,r.fX)([void 0],e,!1)))},{cache:s(u.pluralRules),strategy:o.W.variadic})})}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(t){if(void 0!==Intl.Locale){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])}},t.__parse=i.qg,t.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"}}},t}()},2623:(t,e,n)=>{"use strict";var r=n(3816);t.exports=function(t){return!(!t||!t.ownerDocument)&&r(t)&&"BR"===t.nodeName}},2694:(t,e,n)=>{"use strict";var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,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 e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},2784:(t,e,n)=>{"use strict";var r=n(5228);function o(){return o=r||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){a(t,e,n[e])})}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=n(4379),c=n(3885),u=n(4012),l=n(3529),p=n(2935),f=n(8527),d=n(7392),h=n(1401),g=n(7337),m=n(646),y=n(5291),v=(g.List,function(t,e){return t.getAnchorKey()===e||t.getFocusKey()===e}),b=function(t,e){var n=e.get(t.getType())||e.get("unstyled"),r=n.wrapper;return{Element:n.element||e.get("unstyled").element,wrapperTemplate:r}},w=function(t,e){var n=e(t);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},_=function(t,e,n,r,o,a){var s={"data-block":!0,"data-editor":e,"data-offset-key":n,key:t.getKey(),ref:a},c=r(t);return c&&(s.className=c),void 0!==o.customEditable&&(s=i({},s,{contentEditable:o.customEditable,suppressContentEditableWarning:!0})),s},E=function(t){var e,n;function r(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return a(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e=t.call.apply(t,[this].concat(r))||this),"wrapperRef",u.createRef()),e}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var g=r.prototype;return g.shouldComponentUpdate=function(t){var e=this.props,n=e.block,r=e.direction,o=e.tree,i=!n.getChildKeys().isEmpty(),a=n!==t.block||o!==t.tree||r!==t.direction||v(t.selection,t.block.getKey())&&t.forceSelection;return i||a},g.componentDidMount=function(){var t=this.props.selection,e=t.getEndKey();if(t.getHasFocus()&&e===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 t=this,e=this.props,n=e.block,a=e.blockRenderMap,l=e.blockRendererFn,p=e.blockStyleFn,f=e.contentState,d=e.decorator,h=e.editorKey,g=e.editorState,m=e.customStyleFn,y=e.customStyleMap,E=e.direction,S=e.forceSelection,k=e.selection,C=e.tree,M=null;n.children.size&&(M=n.children.reduce(function(e,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,S=_(s,h,o,p,d,null),k=i({},t.props,{tree:g.getBlockTree(n),blockProps:d.customProps,offsetKey:o,block:s});return e.push(u.createElement(v,S,u.createElement(m,k))),!E||function(t,e){var n=t.getNextSiblingKey();return!!n&&e.getBlockForKey(n).getType()===t.getType()}(s,f)||function(t,e,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!==e)break;r.push(p)}}catch(t){i=!0,a=t}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(t,{key:"".concat(d,"-wrap"),"data-offset-key":c.encode(d,0,0)},f))}(E,v,e),e},[]));var O=n.getKey(),x=c.encode(O,0,0),D=w(n,l),T=D.CustomComponent,A=null!=T?u.createElement(T,o({},this.props,{tree:g.getBlockTree(O),blockProps:D.customProps,offsetKey:x,block:n})):u.createElement(s,{block:n,children:M,contentState:f,customStyleFn:m,customStyleMap:y,decorator:d,direction:E,forceSelection:S,hasSelection:v(k,O),selection:k,tree:C});if(n.getParentKey())return A;var I=b(n,a).Element,j=_(n,h,x,p,D,this.wrapperRef);return u.createElement(I,j,A)},r}(u.Component);t.exports=E},2791:function(t,e,n){!function(t){"use strict";if(!t.setImmediate){var e,n,r,o,i,a=1,s={},c=!1,u=t.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(t);l=l&&l.setTimeout?l:t,"[object process]"==={}.toString.call(t.process)?e=function(t){process.nextTick(function(){f(t)})}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?(o="setImmediate$"+Math.random()+"$",i=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(o)&&f(+e.data.slice(o.length))},t.addEventListener?t.addEventListener("message",i,!1):t.attachEvent("onmessage",i),e=function(e){t.postMessage(o+e,"*")}):t.MessageChannel?((r=new MessageChannel).port1.onmessage=function(t){f(t.data)},e=function(t){r.port2.postMessage(t)}):u&&"onreadystatechange"in u.createElement("script")?(n=u.documentElement,e=function(t){var e=u.createElement("script");e.onreadystatechange=function(){f(t),e.onreadystatechange=null,n.removeChild(e),e=null},n.appendChild(e)}):e=function(t){setTimeout(f,0,t)},l.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var n=new Array(arguments.length-1),r=0;r<n.length;r++)n[r]=arguments[r+1];var o={callback:t,args:n};return s[a]=o,e(a),a++},l.clearImmediate=p}function p(t){delete s[t]}function f(t){if(c)setTimeout(f,0,t);else{var e=s[t];if(e){c=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}(e)}finally{p(t),c=!1}}}}}("undefined"==typeof self?void 0===n.g?this:n.g:self)},2799:(t,e)=>{"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 _(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case l:case p:case i:case s:case a:case d:return t;default:switch(t=t&&t.$$typeof){case u:case f:case m:case g:case c:return t;default:return e}}case o:return e}}}function E(t){return _(t)===p}e.AsyncMode=l,e.ConcurrentMode=p,e.ContextConsumer=u,e.ContextProvider=c,e.Element=r,e.ForwardRef=f,e.Fragment=i,e.Lazy=m,e.Memo=g,e.Portal=o,e.Profiler=s,e.StrictMode=a,e.Suspense=d,e.isAsyncMode=function(t){return E(t)||_(t)===l},e.isConcurrentMode=E,e.isContextConsumer=function(t){return _(t)===u},e.isContextProvider=function(t){return _(t)===c},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},e.isForwardRef=function(t){return _(t)===f},e.isFragment=function(t){return _(t)===i},e.isLazy=function(t){return _(t)===m},e.isMemo=function(t){return _(t)===g},e.isPortal=function(t){return _(t)===o},e.isProfiler=function(t){return _(t)===s},e.isStrictMode=function(t){return _(t)===a},e.isSuspense=function(t){return _(t)===d},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===i||t===p||t===s||t===a||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===g||t.$$typeof===c||t.$$typeof===u||t.$$typeof===f||t.$$typeof===v||t.$$typeof===b||t.$$typeof===w||t.$$typeof===y)},e.typeOf=_},2881:(t,e,n)=>{var r={EventEmitter:n(4566),EmitterSubscription:n(7274)};t.exports=r},2901:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(816);function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(0,r.A)(o.key),o)}}function i(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}},2935:(t,e,n)=>{"use strict";function r(t,e){var n=o.get(t,e);return"auto"===n||"scroll"===n}var o={get:n(6892),getScrollParent:function(t){if(!t)return null;for(var e=t.ownerDocument;t&&t!==e.body;){if(r(t,"overflow")||r(t,"overflowY")||r(t,"overflowX"))return t;t=t.parentNode}return e.defaultView||e.parentWindow}};t.exports=o},3018:(t,e,n)=>{"use strict";var r=n(7337),o=r.Map,i=r.OrderedSet,a=r.Record,s=i(),c={style:s,entity:null},u=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=r.prototype;return a.getStyle=function(){return this.get("style")},a.getEntity=function(){return this.get("entity")},a.hasStyle=function(t){return this.getStyle().includes(t)},r.applyStyle=function(t,e){var n=t.set("style",t.getStyle().add(e));return r.create(n)},r.removeStyle=function(t,e){var n=t.set("style",t.getStyle().remove(e));return r.create(n)},r.applyEntity=function(t,e){var n=t.getEntity()===e?t:t.set("entity",e);return r.create(n)},r.create=function(t){if(!t)return l;var e=o({style:s,entity:null}).merge(t),n=p.get(e);if(n)return n;var i=new r(e);return p=p.set(e,i),i},r.fromJS=function(t){var e=t.style,n=t.entity;return new r({style:Array.isArray(e)?i(e):e,entity:Array.isArray(n)?i(n):n})},r}(a(c)),l=new u,p=o([[o(c),l]]);u.EMPTY=l,t.exports=u},3029:(t,e,n)=>{"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,{A:()=>r})},3136:(t,e,n)=>{"use strict";var r=n(7337),o=n(6269),i=n(646),a=r.Repeat;t.exports=function(t,e,n,r){e.isCollapsed()||i(!1);var s=null;if(null!=n&&(s=n.length),null==s||0===s)return t;var c=t.getBlockMap(),u=e.getStartKey(),l=e.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 t.merge({blockMap:c.set(u,d),selectionAfter:e.merge({anchorOffset:h,focusOffset:h})})}},3145:(t,e,n)=>{"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,{A:()=>r})},3174:(t,e,n)=>{"use strict";var r=n(5852);t.exports=function(t){return t.which===r.RETURN&&(t.getModifierState("Shift")||t.getModifierState("Alt")||t.getModifierState("Control"))}},3222:(t,e,n)=>{"use strict";var r=n(5224),o=n(6991),i=n(7337),a=n(646),s=n(5462),c=i.List,u=i.Map,l=function(t,e,n){if(t){var r=e.get(t);r&&e.set(t,n(r))}};t.exports=function(t,e){e.isCollapsed()||a(!1);var n=e.getAnchorKey(),i=t.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(t,e,function(t){return t.merge({type:"unstyled",depth:0})})}var h=e.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(t){return t===p}),_=i.toSeq().skipUntil(function(t){return t===p}).rest(),E=w.concat([[n,v],[m,b]],_).toOrderedMap();return y&&(p.getChildKeys().isEmpty()||a(!1),E=function(t,e,n){return t.withMutations(function(t){var r=e.getKey(),o=n.getKey();l(e.getParentKey(),t,function(t){var e=t.getChildKeys(),n=e.indexOf(r)+1,i=e.toArray();return i.splice(n,0,o),t.merge({children:c(i)})}),l(e.getNextSiblingKey(),t,function(t){return t.merge({prevSibling:o})}),l(r,t,function(t){return t.merge({nextSibling:o})}),l(o,t,function(t){return t.merge({prevSibling:r})})})}(E,v,b)),t.merge({blockMap:E,selectionBefore:e,selectionAfter:e.merge({anchorKey:m,anchorOffset:0,focusKey:m,focusOffset:0,isBackward:!1})})}},3299:(t,e,n)=>{"use strict";var r=n(5228);function o(){return o=r||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){s(t,e,n[e])})}return t}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var u=n(3387),l=n(7918),p=n(755),f=n(9777),d=n(2474),h=n(7784),g=n(4576),m=n(9884),y=n(3334),v=n(2242),b=n(4012),w=n(3529),_=n(2935),E=n(4134),S=n(8003),k=n(6991),C=n(7811),M=n(7392),O=n(7282),x=n(646),D=n(5291),T=n(6408),A=E.isBrowser("IE"),I=!A,j={edit:h,composite:p,drag:d,cut:null,render:null},N=!1,L=function(t){function e(){return t.apply(this,arguments)||this}c(e,t);var n=e.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var t=this.props.editor;t._latestEditorState=this.props.editorState,t._blockSelectEvents=!0},e}(b.Component),P=function(t){function e(e){var n;return s(a(n=t.call(this,e)||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(t){n.editorContainer=t,n.editor=null!==t?t.firstChild:null}),s(a(n),"focus",function(t){var e=n.props.editorState,r=e.getSelection().getHasFocus(),o=n.editor;if(o){var i=_.getScrollParent(o),a=t||M(i),s=a.x,c=a.y;D(o)||x(!1),o.focus(),i===window?window.scrollTo(s,c):w.setTop(i,c),r||n.update(v.forceSelection(e,e.getSelection()))}}),s(a(n),"blur",function(){var t=n.editor;t&&(D(t)||x(!1),t.blur())}),s(a(n),"setMode",function(t){var e=n.props,r=e.onPaste,o=e.onCut,a=e.onCopy,s=i({},j.edit);r&&(s.onPaste=r),o&&(s.onCut=o),a&&(s.onCopy=a);var c=i({},j,{edit:s});n._handler=c[t]}),s(a(n),"exitCurrentMode",function(){n.setMode("edit")}),s(a(n),"restoreEditorDOM",function(t){n.setState({contentsKey:n.state.contentsKey+1},function(){n.focus(t)})}),s(a(n),"setClipboard",function(t){n._clipboard=t}),s(a(n),"getClipboard",function(){return n._clipboard}),s(a(n),"update",function(t){n._latestEditorState=t,n.props.onChange(t)}),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=e.editorKey||k(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=e.editorState,n._latestCommittedEditorState=e.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(e,t);var r=e.prototype;return r._buildHandler=function(t){var e=this;return function(n){if(!e.props.readOnly){var r=e._handler&&e._handler[t];r&&(g?g(function(){return r(e,n)}):r(e,n))}}},r._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},r._renderPlaceholder=function(){if(this._showPlaceholder()){var t={text:T(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return b.createElement(m,t)}return null},r._renderARIADescribedBy=function(){var t=this.props.ariaDescribedBy||"",e=this._showPlaceholder()?this._placeholderAccessibilityID:"";return t.replace("{{editor_id_placeholder}}",e)||void 0},r.render=function(){var t=this.props,e=t.blockRenderMap,n=t.blockRendererFn,r=t.blockStyleFn,a=t.customStyleFn,s=t.customStyleMap,c=t.editorState,u=t.preventScroll,p=t.readOnly,d=t.textAlignment,h=t.textDirectionality,g=S({"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:e,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:S("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:S({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(L,{editor:this,editorState:c}),b.createElement(f,o({},v,{key:"contents"+this.state.contentsKey})))))},r.componentDidMount=function(){this._blockSelectEvents=!1,!N&&O("draft_ods_enabled")&&(N=!0,y.initODS()),this.setMode("edit"),A&&(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},e}(b.Component);s(P,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:u,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:C,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),t.exports=P},3310:(t,e,n)=>{"use strict";var r=n(5224),o=n(6991),i=n(7337).OrderedMap;t.exports=function(t){return t.first()instanceof r?function(t){var e,n={};return i(t.withMutations(function(t){t.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&&(t.get(s)?t.setIn([s,"prevSibling"],p):t.setIn([a,"nextSibling"],null)),c&&(t.get(c)?t.setIn([c,"nextSibling"],p):t.setIn([a,"prevSibling"],null)),l&&t.get(l)){var f=t.get(l).getChildKeys();t.setIn([l,"children"],f.set(f.indexOf(r.getKey()),p))}else t.setIn([a,"parent"],null),e&&(t.setIn([e.getKey(),"nextSibling"],p),t.setIn([a,"prevSibling"],n[e.getKey()])),e=t.get(a);u.forEach(function(e){t.get(e)?t.setIn([e,"parent"],p):t.setIn([a,"children"],r.getChildKeys().filter(function(t){return t!==e}))})})}).toArray().map(function(t){return[n[t.getKey()],t.set("key",n[t.getKey()])]}))}(t):function(t){return i(t.toArray().map(function(t){var e=o();return[e,t.set("key",e)]}))}(t)}},3334:t=>{"use strict";t.exports={initODS:function(){},handleExtensionCausedError:function(){}}},3387:(t,e,n)=>{"use strict";var r=n(4012),o=n(8003),i=(0,n(7337).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"]}});t.exports=i},3473:(t,e,n)=>{var r=n(7043),o=n(5323);function i(t){return null==t}function a(t){(t=function(t){var e={};for(var n in t)e[n]=t[n];return e}(t||{})).whiteList=t.whiteList||r.whiteList,t.onAttr=t.onAttr||r.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||r.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||r.safeAttrValue,this.options=t}n(1100),a.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e=this.options,n=e.whiteList,r=e.onAttr,a=e.onIgnoreAttr,s=e.safeAttrValue;return o(t,function(t,e,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:e,sourcePosition:t,source:u,isWhite:p};return p?i(f=r(o,c,d))?o+":"+c:f:i(f=a(o,c,d))?void 0:f}})},t.exports=a},3529:t=>{"use strict";function e(t,e){return!!e&&(t===e.documentElement||t===e.body)}var n={getTop:function(t){var n=t.ownerDocument;return e(t,n)?n.body.scrollTop||n.documentElement.scrollTop:t.scrollTop},setTop:function(t,n){var r=t.ownerDocument;e(t,r)?r.body.scrollTop=r.documentElement.scrollTop=n:t.scrollTop=n},getLeft:function(t){var n=t.ownerDocument;return e(t,n)?n.body.scrollLeft||n.documentElement.scrollLeft:t.scrollLeft},setLeft:function(t,n){var r=t.ownerDocument;e(t,r)?r.body.scrollLeft=r.documentElement.scrollLeft=n:t.scrollLeft=n}};t.exports=n},3564:(t,e,n)=>{"use strict";var r=n(646),o=n(5291);t.exports=function(t){var e=t.editorContainer;return e||r(!1),o(e.firstChild)||r(!1),e.firstChild}},3659:(t,e,n)=>{"use strict";var r=n(5228);function o(){return o=r||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){a(t,e,n[e])})}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=n(1124),c=n(3885),u=n(4012),l=n(8003),p=n(798),f=n(6408),d=function(t,e,n,r){return l({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===t,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===t,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===e,"public/DraftStyleDefault/depth1":1===e,"public/DraftStyleDefault/depth2":2===e,"public/DraftStyleDefault/depth3":3===e,"public/DraftStyleDefault/depth4":e>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},h=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=r.prototype;return a.shouldComponentUpdate=function(t){var e=this.props.editorState,n=t.editorState;if(e.getDirectionMap()!==n.getDirectionMap())return!0;if(e.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=e.isInCompositionMode(),i=n.isInCompositionMode();if(e===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=e.getCurrentContent(),s=n.getCurrentContent(),c=e.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},a.render=function(){for(var t=this.props,e=t.blockRenderMap,n=t.blockRendererFn,r=t.blockStyleFn,a=t.customStyleMap,l=t.customStyleFn,h=t.editorState,g=t.editorKey,m=t.preventScroll,y=t.textDirectionality,v=h.getCurrentContent(),b=h.getSelection(),w=h.mustForceSelection(),_=h.getDecorator(),E=f(h.getDirectionMap()),S=v.getBlocksAsArray(),k=[],C=null,M=null,O=0;O<S.length;O++){var x=S[O],D=x.getKey(),T=x.getType(),A=n(x),I=void 0,j=void 0,N=void 0;A&&(I=A.component,j=A.props,N=A.editable);var L=y||E.get(D),P=c.encode(D,0,0),R={contentState:v,block:x,blockProps:j,blockStyleFn:r,customStyleMap:a,customStyleFn:l,decorator:_,direction:L,forceSelection:w,offsetKey:P,preventScroll:m,selection:b,tree:h.getBlockTree(D)},z=e.get(T)||e.get("unstyled"),B=z.wrapper,F=z.element||e.get("unstyled").element,U=x.getDepth(),H="";r&&(H=r(x)),"li"===F&&(H=p(H,d(T,U,M!==B||null===C||U>C,L)));var K=I||s,V={className:H,"data-block":!0,"data-editor":g,"data-offset-key":P,key:D};void 0!==N&&(V=i({},V,{contentEditable:N,suppressContentEditableWarning:!0}));var Y=u.createElement(F,V,u.createElement(K,o({},R,{key:D})));k.push({block:Y,wrapperTemplate:B,key:D,offsetKey:P}),C=B?x.getDepth():null,M=B}for(var q=[],W=0;W<k.length;){var G=k[W];if(G.wrapperTemplate){var Q=[];do{Q.push(k[W].block),W++}while(W<k.length&&k[W].wrapperTemplate===G.wrapperTemplate);var Z=u.cloneElement(G.wrapperTemplate,{key:G.key+"-wrap","data-offset-key":G.offsetKey},Q);q.push(Z)}else q.push(G.block),W++}return u.createElement("div",{"data-contents":"true"},q)},r}(u.Component);t.exports=h},3676:t=>{"use strict";var e=/\r\n?|\n/g;t.exports=function(t){return t.split(e)}},3680:t=>{"use strict";t.exports=function(t){return"handled"===t||!0===t}},3694:(t,e,n)=>{"use strict";var r=n(1296);t.exports=function(t,e){t._latestEditorState.getSelection().isCollapsed()?e.preventDefault():t.setClipboard(r(t._latestEditorState))}},3722:(t,e,n)=>{"use strict";var r=n(9938),o=n(2242),i=n(4134),a=n(9927),s=n(3680),c=n(7759),u=n(6408),l=n(9765),p=i.isBrowser("Firefox");function f(t,e,n,i,a){var s=r.replaceText(t.getCurrentContent(),t.getSelection(),e,n,i);return o.push(t,s,"insert-characters",a)}t.exports=function(t,e){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var n=t._latestEditorState,r=e.data;if(r)if(t.props.handleBeforeInput&&s(t.props.handleBeforeInput(r,n,e.timeStamp)))e.preventDefault();else{var i=n.getSelection(),d=i.getStartOffset(),h=i.getAnchorKey();if(!i.isCollapsed())return e.preventDefault(),void t.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(t._latestCommittedEditorState)),!y){var v=n.getBlockTree(h),b=m.getBlockTree(h);y=v.size!==b.size||v.zip(b).some(function(t){var e=t[0],n=t[1],o=e.get("start"),i=o+(o>=d?r.length:0),a=e.get("end"),s=a+(a>=d?r.length:0),c=n.get("start"),u=n.get("end"),l=n.get("decoratorKey");return e.get("decoratorKey")!==l||e.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 e.preventDefault(),m=o.set(m,{forceSelection:!0}),void t.update(m);m=o.set(m,{nativelyRenderedContent:m.getCurrentContent()}),t._pendingStateFromBeforeInput=m,l(function(){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0)})}}},3731:t=>{"use strict";var e=Object.prototype.hasOwnProperty;t.exports=function(t,n,r){if(!t)return null;var o={};for(var i in t)e.call(t,i)&&(o[i]=n.call(r,t[i],i,t));return o}},3738:t=>{function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},3754:(t,e,n)=>{window,t.exports=function(t,e,n){return i={},r.m=o=[function(t,e,n){t.exports=n(10)()},function(e,n){e.exports=t},function(t,e,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var i=typeof r;if("string"==i||"number"==i)t.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&t.push(a)}else if("object"==i)for(var s in r)n.call(r,s)&&r[s]&&t.push(s)}}return t.join(" ")}t.exports?(o.default=o,t.exports=o):void 0===(r=function(){return o}.apply(e,[]))||(t.exports=r)}()},function(t,n){t.exports=e},function(t,e,n){function r(t){if(s[t])return s[t].exports;var e=s[t]={i:t,l:!1,exports:{}};return a[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var o,i,a,s;window,t.exports=(o=n(3),i=n(5),s={},r.m=a=[function(t,e){t.exports=o},function(t,e){t.exports=i},function(t,e,n){t.exports=n(3)},function(t,e,n){"use strict";n.r(e);var r=n(0),o=n(1);function i(t){var e=t.getSelection(),n=t.getCurrentContent(),r=e.getStartKey(),o=e.getEndKey(),i=n.getBlockMap();return i.toSeq().skipUntil(function(t,e){return e===r}).takeUntil(function(t,e){return e===o}).concat([[o,i.get(o)]])}function a(t){return i(t).toList()}function s(t){if(t)return a(t).get(0)}function c(t){if(t){var e=s(t),n=t.getCurrentContent().getBlockMap().toSeq().toList(),r=0;if(n.forEach(function(t,n){t.get("key")===e.get("key")&&(r=n-1)}),-1<r)return n.get(r)}}function u(t){return t?t.getCurrentContent().getBlockMap().toList():new o.List}function l(t){var e=a(t);if(!e.some(function(t){return t.type!==e.get(0).type}))return e.get(0).type}function p(t){var e=r.RichUtils.tryToRemoveBlockStyle(t);return e?r.EditorState.push(t,e,"change-block-type"):t}function f(t){var e="",n=t.getSelection(),r=n.getAnchorOffset(),o=n.getFocusOffset(),i=a(t);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;e+=i.get(c).getText().slice(u,l)}}return e}function d(t){var e=t.getCurrentContent(),n=t.getSelection(),o=r.Modifier.removeRange(e,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(t,o,"insert-fragment")}function h(t){var e=r.Modifier.splitBlock(t.getCurrentContent(),t.getSelection());return p(r.EditorState.push(t,e,"split-block"))}function g(t){var e=t.getCurrentContent().getBlockMap().toList(),n=t.getSelection().merge({anchorKey:e.first().get("key"),anchorOffset:0,focusKey:e.last().get("key"),focusOffset:e.last().getLength()}),o=r.Modifier.removeRange(t.getCurrentContent(),n,"forward");return r.EditorState.push(t,o,"remove-range")}function m(t,e){var n=r.Modifier.setBlockData(t.getCurrentContent(),t.getSelection(),e);return r.EditorState.push(t,n,"change-block-data")}function y(t){var e=new o.Map({}),n=a(t);if(n&&0<n.size)for(var r=function(t){var r=n.get(t).getData();if(!r||0===r.size)return e=e.clear(),"break";if(0===t)e=r;else if(e.forEach(function(t,n){r.get(n)&&r.get(n)===t||(e=e.delete(n))}),0===e.size)return e=e.clear(),"break"},i=0;i<n.size&&"break"!==r(i);i+=1);return e}var v=Object(o.Map)({code:{element:"pre"}}),b=r.DefaultDraftBlockRenderMap.merge(v);function w(t){if(t){var e=t.getType();return"unordered-list-item"===e||"ordered-list-item"===e}return!1}function _(t,e,n){var o,a=t.getSelection();o=a.getIsBackward()?a.getFocusKey():a.getAnchorKey();var s=t.getCurrentContent(),c=s.getBlockForKey(o),u=c.getType();if("unordered-list-item"!==u&&"ordered-list-item"!==u)return t;var l=s.getBlockBefore(o);if(!l)return t;if(l.getType()!==u)return t;var p=c.getDepth();if(1===e&&p===n)return t;var f,d,h,g,m,y,v,b=Math.min(l.getDepth()+1,n),w=(d=e,h=b,g=(f=t).getSelection(),y=(m=f.getCurrentContent()).getBlockMap(),v=i(f).map(function(t){var e=t.getDepth()+d;return e=Math.max(0,Math.min(e,h)),t.set("depth",e)}),y=y.merge(v),m.merge({blockMap:y,selectionBefore:g,selectionAfter:g}));return r.EditorState.push(t,w,"adjust-depth")}function E(t,e){var n;return 13===(n=e).which&&(n.getModifierState("Shift")||n.getModifierState("Alt")||n.getModifierState("Control"))?t.getSelection().isCollapsed()?r.RichUtils.insertSoftNewline(t):d(t):function(t){var e=t.getSelection();if(e.isCollapsed()){var n=t.getCurrentContent(),r=e.getStartKey(),o=n.getBlockForKey(r);if(!w(o)&&"unstyled"!==o.getType()&&o.getLength()===e.getStartOffset())return h(t);if(w(o)&&0===o.getLength()){var i=o.getDepth();if(0===i)return p(t);if(0<i)return _(t,-1,i)}}}(t)}function S(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function k(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function C(t){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function M(t){var e=t.getSelection();if(e.isCollapsed()){var n={},r=t.getCurrentInlineStyle().toList().toJS();if(r)return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach(function(t){n[t]=0<=r.indexOf(t)}),n}var o=e.getStartOffset(),i=e.getEndOffset(),s=a(t);if(0<s.size){var c=function(){for(var t={BOLD:!0,ITALIC:!0,UNDERLINE:!0,STRIKETHROUGH:!0,CODE:!0,SUPERSCRIPT:!0,SUBSCRIPT:!0},e=0;e<s.size;e+=1){var n=0===e?o:0,r=e===s.size-1?i:s.get(e).getText().length;n===r&&0===n?(n=1,r=2):n===r&&--n;for(var a=function(n){var r=s.get(e).getInlineStyleAt(n);["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"].forEach(function(e){t[e]=t[e]&&r.get(e)===e})},c=n;c<r;c+=1)a(c)}return{v:t}}();if("object"===C(c))return c.v}return{}}function O(t){var e,n=t.getSelection(),r=n.getStartOffset(),o=n.getEndOffset();r===o&&0===r?o=1:r===o&&--r;for(var i=s(t),a=r;a<o;a+=1){var c=i.getEntityAt(a);if(!c){e=void 0;break}if(a===r)e=c;else if(e!==c){e=void 0;break}}return e}function x(t,e){var n,r=s(t);return r.findEntityRanges(function(t){return t.get("entity")===e},function(t,e){n={start:t,end:e,text:r.get("text").slice(t,e)}}),n}function D(t,e,n){A[t]["".concat(t.toLowerCase(),"-").concat(n)]=k({},"".concat(e),n)}function T(){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?S(Object(n),!0).forEach(function(e){k(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},A.color,{},A.bgcolor,{},A.fontSize,{},A.fontFamily,{CODE:A.CODE,SUPERSCRIPT:A.SUPERSCRIPT,SUBSCRIPT:A.SUBSCRIPT})}var A={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(t,e,n){var o=t.getSelection(),i=Object.keys(A[e]).reduce(function(t,e){return r.Modifier.removeInlineStyle(t,o,e)},t.getCurrentContent()),a=r.EditorState.push(t,i,"changeinline-style"),s=t.getCurrentInlineStyle();if(o.isCollapsed()&&(a=s.reduce(function(t,e){return r.RichUtils.toggleInlineStyle(t,e)},a)),"SUPERSCRIPT"===e||"SUBSCRIPT"==e)s.has(n)||(a=r.RichUtils.toggleInlineStyle(a,n));else{var c="bgcolor"===e?"backgroundColor":e;s.has("".concat(c,"-").concat(n))||(a=r.RichUtils.toggleInlineStyle(a,"".concat(e.toLowerCase(),"-").concat(n)),D(e,c,n))}return a}function j(t){t&&t.getCurrentContent().getBlockMap().map(function(t){return t.get("characterList")}).toList().flatten().forEach(function(t){t&&0===t.indexOf("color-")?D("color","color",t.substr(6)):t&&0===t.indexOf("bgcolor-")?D("bgcolor","backgroundColor",t.substr(8)):t&&0===t.indexOf("fontsize-")?D("fontSize","fontSize",+t.substr(9)):t&&0===t.indexOf("fontfamily-")&&D("fontFamily","fontFamily",t.substr(11))})}function N(t,e,n){var r=t.getInlineStyleAt(n).toList().filter(function(t){return t.startsWith(e.toLowerCase())});if(r&&0<r.size)return r.get(0)}function L(t,e){if(t&&e&&0<e.length){var n=function(){var n=t.getSelection(),r={};if(n.isCollapsed())return e.forEach(function(e){r[e]=function(t,e){var n=t.getCurrentInlineStyle().toList().filter(function(t){return t.startsWith(e.toLowerCase())});if(n&&0<n.size)return n.get(0)}(t,e)}),{v:r};var o=n.getStartOffset(),i=n.getEndOffset(),s=a(t);if(0<s.size){for(var c=function(t){var n=0===t?o:0,a=t===s.size-1?i:s.get(t).getText().length;n===a&&0===n?(n=1,a=2):n===a&&--n;for(var c=function(o){o===n?e.forEach(function(e){r[e]=N(s.get(t),e,o)}):e.forEach(function(e){r[e]&&r[e]!==N(s.get(t),e,o)&&(r[e]=void 0)})},u=n;u<a;u+=1)c(u)},u=0;u<s.size;u+=1)c(u);return{v:r}}}();if("object"===C(n))return n.v}return{}}function P(t){var e=t.getCurrentInlineStyle(),n=t.getCurrentContent();return e.forEach(function(e){n=r.Modifier.removeInlineStyle(n,t.getSelection(),e)}),r.EditorState.push(t,n,"change-inline-style")}n.d(e,"isListBlock",function(){return w}),n.d(e,"changeDepth",function(){return _}),n.d(e,"handleNewLine",function(){return E}),n.d(e,"getEntityRange",function(){return x}),n.d(e,"getCustomStyleMap",function(){return T}),n.d(e,"toggleCustomInlineStyle",function(){return I}),n.d(e,"getSelectionEntity",function(){return O}),n.d(e,"extractInlineStyle",function(){return j}),n.d(e,"removeAllInlineStyles",function(){return P}),n.d(e,"getSelectionInlineStyle",function(){return M}),n.d(e,"getSelectionCustomInlineStyle",function(){return L}),n.d(e,"getSelectedBlocksMap",function(){return i}),n.d(e,"getSelectedBlocksList",function(){return a}),n.d(e,"getSelectedBlock",function(){return s}),n.d(e,"getBlockBeforeSelectedBlock",function(){return c}),n.d(e,"getAllBlocks",function(){return u}),n.d(e,"getSelectedBlocksType",function(){return l}),n.d(e,"removeSelectedBlocksStyle",function(){return p}),n.d(e,"getSelectionText",function(){return f}),n.d(e,"addLineBreakRemovingSelection",function(){return d}),n.d(e,"insertNewUnstyledBlock",function(){return h}),n.d(e,"clearEditorContent",function(){return g}),n.d(e,"setBlockData",function(){return m}),n.d(e,"getSelectedBlocksMetadata",function(){return y}),n.d(e,"blockRenderMap",function(){return b})}],r.c=s,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=2))},function(t,e){t.exports=n},function(t,e,n){function r(t){if(s[t])return s[t].exports;var e=s[t]={i:t,l:!1,exports:{}};return a[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var o,i,a,s;window,t.exports=(o=n(5),i=n(3),s={},r.m=a=[function(t,e){t.exports=o},function(t,e){t.exports=i},function(t,e,n){t.exports=n(3)},function(t,e,n){"use strict";n.r(e);var r=n(1),o=n(0),i=function(t,e,n){var r,i=t.textContent;return""===i.trim()?{chunk:(r=n,{text:" ",inlines:[new o.OrderedSet],entities:[r],blocks:[]})}:{chunk:{text:i,inlines:Array(i.length).fill(e),entities:Array(i.length).fill(n),blocks:[]}}},a=function(){return{text:"\n",inlines:[new o.OrderedSet],entities:new Array(1),blocks:[]}},s=function(t,e){return{text:"",inlines:[],entities:[],blocks:[{type:t,depth:0,data:e||new o.Map({})}]}},c=function(t,e,n){return{text:"\r",inlines:[],entities:[],blocks:[{type:t,depth:Math.max(0,Math.min(4,e)),data:n||new o.Map({})}]}},u=function(t){return{text:"\r ",inlines:[new o.OrderedSet],entities:[t],blocks:[{type:"atomic",depth:0,data:new o.Map({})}]}},l=function(t,e){return{text:t.text+e.text,inlines:t.inlines.concat(e.inlines),entities:t.entities.concat(e.entities),blocks:t.blocks.concat(e.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(t){return t.style.textAlign?new o.Map({"text-align":t.style.textAlign}):t.style.marginLeft?new o.Map({"margin-left":t.style.marginLeft}):void 0}var h=function(t){var e=void 0;if(t instanceof HTMLAnchorElement){var n={};e=t.dataset&&void 0!==t.dataset.mention?(n.url=t.href,n.text=t.innerHTML,n.value=t.dataset.value,r.Entity.__create("MENTION","IMMUTABLE",n)):(n.url=t.getAttribute&&t.getAttribute("href")||t.href,n.title=t.innerHTML,n.targetOption=t.target,r.Entity.__create("LINK","MUTABLE",n))}return e};n.d(e,"default",function(){return v});var g=" ",m=new RegExp(" ","g"),y=!0;function v(t,e){var n,v,b=(n=e,(v=function(t){var e,n=null;return document.implementation&&document.implementation.createHTMLDocument&&((e=document.implementation.createHTMLDocument("foo")).documentElement.innerHTML=t,n=e.getElementsByTagName("body")[0]),n}(t.trim().replace(m,g)))?(y=!0,{chunk:function t(e,n,o,g,m,v){var b=e.nodeName.toLowerCase();if(v){var w=v(b,e);if(w){var _=r.Entity.__create(w.type,w.mutability,w.data||{});return{chunk:u(_)}}}if("#text"===b&&"\n"!==e.textContent)return i(e,n,m);if("br"===b)return{chunk:a()};if("img"===b&&e instanceof HTMLImageElement){var E={};E.src=e.getAttribute&&e.getAttribute("src")||e.src,E.alt=e.alt,E.height=e.style.height,E.width=e.style.width,e.style.float&&(E.alignment=e.style.float);var S=r.Entity.__create("IMAGE","MUTABLE",E);return{chunk:u(S)}}if("video"===b&&e instanceof HTMLVideoElement){var k={};k.src=e.getAttribute&&e.getAttribute("src")||e.src,k.alt=e.alt,k.height=e.style.height,k.width=e.style.width,e.style.float&&(k.alignment=e.style.float);var C=r.Entity.__create("VIDEO","MUTABLE",k);return{chunk:u(C)}}if("iframe"===b&&e instanceof HTMLIFrameElement){var M={};M.src=e.getAttribute&&e.getAttribute("src")||e.src,M.height=e.height,M.width=e.width;var O=r.Entity.__create("EMBEDDED_LINK","MUTABLE",M);return{chunk:u(O)}}var x,D=function(t,e){var n=p.filter(function(n){return n.element===t&&(!n.wrapper||n.wrapper===e)||n.wrapper===t||n.aliasedElements&&-1<n.aliasedElements.indexOf(t)}).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?(x=s(D,d(e)),y=!1):x=c(D,o,d(e)))),x=x||{text:"",inlines:[],entities:[],blocks:[]},n=function(t,e,n){var r,o=f[t];if(o)r=n.add(o).toOrderedSet();else if(e instanceof HTMLElement){var i=e;r=(r=n).withMutations(function(t){var e=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;e&&t.add("color-".concat(e.replace(/ /g,""))),n&&t.add("bgcolor-".concat(n.replace(/ /g,""))),r&&t.add("fontsize-".concat(r.replace(/px$/g,""))),o&&t.add("fontfamily-".concat(o)),"bold"===a&&t.add(f.strong),"underline"===s&&t.add(f.ins),"italic"===c&&t.add(f.em)}).toOrderedSet()}return r}(b,e,n);for(var T=e.firstChild;T;){var A=t(T,n,o,g,h(T)||m,v).chunk;x=l(x,A),T=T.nextSibling}return{chunk:x}}(v,new o.OrderedSet,-1,"",void 0,n).chunk}):null);if(b){var w=b.chunk,_=new o.OrderedMap({});w.entities&&w.entities.forEach(function(t){t&&(_=_.set(t,r.Entity.__get(t)))});var E=0;return{contentBlocks:w.text.split("\r").map(function(t,e){var n=E+t.length,i=w&&w.inlines.slice(E,n),a=w&&w.entities.slice(E,n),s=new o.List(i.map(function(t,e){var n={style:t,entity:null};return a[e]&&(n.entity=a[e]),r.CharacterMetadata.create(n)}));return E=n,new r.ContentBlock({key:Object(r.genKey)(),type:w&&w.blocks[e]&&w.blocks[e].type||"unstyled",depth:w&&w.blocks[e]&&w.blocks[e].depth,data:w&&w.blocks[e]&&w.blocks[e].data||new o.Map({}),text:t,characterList:s})}),entityMap:_}}return null}}],r.c=s,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=2))},function(t,e,n){"use strict";function r(t){return Array.prototype.slice.call(arguments,1).forEach(function(e){e&&Object.keys(e).forEach(function(n){t[n]=e[n]})}),t}function o(t){return Object.prototype.toString.call(t)}function i(t){return"[object Function]"===o(t)}function a(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},c={"http:":{validate:function(t,e,n){var r=t.slice(e);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(t,e,n){var r=t.slice(e);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<=e&&":"===t[e-3]||3<=e&&"/"===t[e-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var r=t.slice(e);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="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function l(t){var e=t.re=n(21)(t.__opts__),r=t.__tlds__.slice();function s(t){return t.replace("%TLDS%",e.src_tlds)}t.onCompile(),t.__tlds_replaced__||r.push("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]"),r.push(e.src_xn),e.src_tlds=r.join("|"),e.email_fuzzy=RegExp(s(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(s(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(s(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(s(e.tpl_host_fuzzy_test),"i");var c=[];function u(t,e){throw new Error('(LinkifyIt) Invalid schema "'+t+'": '+e)}t.__compiled__={},Object.keys(t.__schemas__).forEach(function(e){var n=t.__schemas__[e];if(null!==n){var r,a={validate:null,link:null};if(t.__compiled__[e]=a,"[object Object]"===o(n))return"[object RegExp]"===o(n.validate)?a.validate=(r=n.validate,function(t,e){var n=t.slice(e);return r.test(n)?n.match(r)[0].length:0}):i(n.validate)?a.validate=n.validate:u(e,n),void(i(n.normalize)?a.normalize=n.normalize:n.normalize?u(e,n):a.normalize=function(t,e){e.normalize(t)});"[object String]"!==o(n)?u(e,n):c.push(e)}}),c.forEach(function(e){t.__compiled__[t.__schemas__[e]]&&(t.__compiled__[e].validate=t.__compiled__[t.__schemas__[e]].validate,t.__compiled__[e].normalize=t.__compiled__[t.__schemas__[e]].normalize)}),t.__compiled__[""]={validate:null,normalize:function(t,e){e.normalize(t)}};var l,p=Object.keys(t.__compiled__).filter(function(e){return 0<e.length&&t.__compiled__[e]}).map(a).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+p+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+p+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),(l=t).__index__=-1,l.__text_cache__=""}function p(t,e){var n=t.__index__,r=t.__last_index__,o=t.__text_cache__.slice(n,r);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=r+e,this.raw=o,this.text=o,this.url=o}function f(t,e){var n=new p(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function d(t,e){if(!(this instanceof d))return new d(t,e);var n;e||(n=t,Object.keys(n||{}).reduce(function(t,e){return t||s.hasOwnProperty(e)},!1)&&(e=t,t={})),this.__opts__=r({},s,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},c,t),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},l(this)}d.prototype.add=function(t,e){return this.__schemas__[t]=e,l(this),this},d.prototype.set=function(t){return this.__opts__=r(this.__opts__,t),this},d.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var e,n,r,o,i,a,s,c;if(this.re.schema_test.test(t))for((s=this.re.schema_search).lastIndex=0;null!==(e=s.exec(t));)if(o=this.testSchemaAt(t,e[2],s.lastIndex)){this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&0<=(c=t.search(this.re.host_fuzzy_test))&&(this.__index__<0||c<this.__index__)&&null!==(n=t.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<=t.indexOf("@")&&null!==(r=t.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__},d.prototype.pretest=function(t){return this.re.pretest.test(t)},d.prototype.testSchemaAt=function(t,e,n){return this.__compiled__[e.toLowerCase()]?this.__compiled__[e.toLowerCase()].validate(t,n,this):0},d.prototype.match=function(t){var e=0,n=[];0<=this.__index__&&this.__text_cache__===t&&(n.push(f(this,e)),e=this.__last_index__);for(var r=e?t.slice(e):t;this.test(r);)n.push(f(this,e)),r=r.slice(this.__last_index__),e+=this.__last_index__;return n.length?n:null},d.prototype.tlds=function(t,e){return t=Array.isArray(t)?t:[t],e?this.__tlds__=this.__tlds__.concat(t).sort().filter(function(t,e,n){return t!==n[e-1]}).reverse():(this.__tlds__=t.slice(),this.__tlds_replaced__=!0),l(this),this},d.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),"mailto:"!==t.schema||/^mailto:/i.test(t.url)||(t.url="mailto:"+t.url)},d.prototype.onCompile=function(){},t.exports=d},function(t,e,n){t.exports=n(40)},function(t,e,n){},function(t,e,n){"use strict";var r=n(11);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,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 e(){return t}var n={array:t.isRequired=t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){"use strict";t.exports=function(t){var e={};e.src_Any=n(22).source,e.src_Cc=n(23).source,e.src_Z=n(24).source,e.src_P=n(25).source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");return e.src_pseudo_letter="(?:(?![><|]|"+e.src_ZPCc+")"+e.src_Any+")",e.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]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|[><|]|"+e.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+e.src_ZCc+"|[.]).|"+(t&&t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+e.src_ZCc+").|\\!(?!"+e.src_ZCc+"|[!]).|\\?(?!"+e.src_ZCc+"|[?]).)+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy='(^|[><|]|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}},function(t,e){t.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(t,e){t.exports=/[\0-\x1F\x7F-\x9F]/},function(t,e){t.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(t,e){t.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(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){"use strict";n.r(e),n.d(e,"Editor",function(){return _r});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(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var f=function(t,e,n){return e&&p(t.prototype,e),n&&p(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.callBacks=[],this.suggestionCallback=void 0,this.editorFlag=!1,this.suggestionFlag=!1,this.closeAllModals=function(t){e.callBacks.forEach(function(e){e(t)})},this.init=function(t){var n=document.getElementById(t);n&&n.addEventListener("click",function(){e.editorFlag=!0}),document&&(document.addEventListener("click",function(){e.editorFlag?e.editorFlag=!1:(e.closeAllModals(),e.suggestionCallback&&e.suggestionCallback())}),document.addEventListener("keydown",function(t){"Escape"===t.key&&e.closeAllModals()}))},this.onEditorClick=function(){e.closeModals(),!e.suggestionFlag&&e.suggestionCallback?e.suggestionCallback():e.suggestionFlag=!1},this.closeModals=function(t){e.closeAllModals(t)},this.registerCallBack=function(t){e.callBacks.push(t)},this.deregisterCallBack=function(t){e.callBacks=e.callBacks.filter(function(e){return e!==t})},this.setSuggestionCallback=function(t){e.suggestionCallback=t},this.removeSuggestionCallback=function(){e.suggestionCallback=void 0},this.onSuggestionClick=function(){e.suggestionFlag=!0}});function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var h,g=function(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.inputFocused=!1,this.editorMouseDown=!1,this.onEditorMouseDown=function(){e.editorFocused=!0},this.onInputMouseDown=function(){e.inputFocused=!0},this.isEditorBlur=function(t){return"INPUT"!==t.target.tagName&&"LABEL"!==t.target.tagName&&"TEXTAREA"!==t.target.tagName||e.editorFocused?!("INPUT"===t.target.tagName&&"LABEL"===t.target.tagName&&"TEXTAREA"===t.target.tagName||e.inputFocused||(e.editorFocused=!1)):!(e.inputFocused=!1)},this.isEditorFocused=function(){return!e.inputFocused||(e.inputFocused=!1)},this.isToolbarFocused=function(){return!e.editorFocused||(e.editorFocused=!1)},this.isInputFocused=function(){return e.inputFocused}}),m=[],y={onKeyDown:function(t){m.forEach(function(e){e(t)})},registerCallBack:function(t){m.push(t)},deregisterCallBack:function(t){m=m.filter(function(e){return e!==t})}},v=function(){h=!0},b=function(){h=!1},w=function(){return h};function _(t){var e=t.getData()&&t.getData().get("text-align");return e?"rdw-".concat(e,"-aligned-block"):""}function E(t,e){if(t)for(var n in t)!{}.hasOwnProperty.call(t,n)||e(n,t[n])}function S(t,e){var n=!1;if(t)for(var r in t)if({}.hasOwnProperty.call(t,r)&&e===r){n=!0;break}return n}function k(t){t.stopPropagation()}function C(t){return t[t.options[0]].icon}function M(t,e){if(t&&void 0===e)return t;var n={};return E(t,function(t,r){var o;o=r,"[object Object]"===Object.prototype.toString.call(o)?n[t]=M(r,e[t]):n[t]=void 0!==e[t]?e[t]:r}),n}var O=n(6),x=n.n(O),D=n(5);function T(t){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function A(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function I(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function j(t,e){return(j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function N(t){return(N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(9);var L=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&j(t,e)}(i,r.Component);var t,e,n=function(t){var e=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(t){return!1}}();return function(){var n,r=N(t);if(e){var o=N(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===T(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).onClick=function(){var e=t.props,n=e.disabled,r=e.onClick,o=e.value;n||r(o)},t}return t=i,(e=[{key:"render",value:function(){var t,e=this.props,n=e.children,r=e.className,i=e.activeClassName,a=e.active,s=e.disabled,c=e.title;return o.a.createElement("div",{className:l()("rdw-option-wrapper",r,(A(t={},"rdw-option-active ".concat(i),a),A(t,"rdw-option-disabled",s),t)),onClick:this.onClick,"aria-selected":a,title:c},n)}}])&&I(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function R(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function z(t,e){return(z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function B(t){return(B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}L.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},L.defaultProps={activeClassName:""},n(12);var F=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&z(t,e)}(i,r.Component);var t,e,n=function(t){var e=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(t){return!1}}();return function(){var n,r=B(t);if(e){var o=B(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===P(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).state={highlighted:-1},t.onChange=function(e){var n=t.props.onChange;n&&n(e),t.toggleExpansion()},t.setHighlighted=function(e){t.setState({highlighted:e})},t.toggleExpansion=function(){var e=t.props,n=e.doExpand,r=e.doCollapse;e.expanded?r():n()},t}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.expanded;t.expanded&&!e&&this.setState({highlighted:-1})}},{key:"render",value:function(){var t=this,e=this.props,n=e.expanded,r=e.children,i=e.className,a=e.optionWrapperClassName,s=e.ariaLabel,c=e.onExpandEvent,u=e.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:k},o.a.Children.map(f,function(e,n){return e&&o.a.cloneElement(e,{onSelect:t.onChange,highlighted:p===n,setHighlighted:t.setHighlighted,index:n})})):void 0)}}])&&R(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function U(t){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function H(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function K(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function V(t,e){return(V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Y(t){return(Y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}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 q=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&V(t,e)}(i,r.Component);var t,e,n=function(t){var e=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(t){return!1}}();return function(){var n,r=Y(t);if(e){var o=Y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===U(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).onClick=function(e){var n=t.props,r=n.onSelect,o=n.onClick,i=n.value;n.disabled||(r&&r(i),o&&(e.stopPropagation(),o(i)))},t.setHighlighted=function(){var e=t.props;(0,e.setHighlighted)(e.index)},t.resetHighlighted=function(){(0,t.props.setHighlighted)(-1)},t}return t=i,(e=[{key:"render",value:function(){var t,e=this.props,n=e.children,r=e.active,i=e.disabled,a=e.highlighted,s=e.className,c=e.activeClassName,u=e.disabledClassName,p=e.highlightedClassName,f=e.title;return o.a.createElement("li",{className:l()("rdw-dropdownoption-default",s,(H(t={},"rdw-dropdownoption-active ".concat(c),r),H(t,"rdw-dropdownoption-highlighted ".concat(p),a),H(t,"rdw-dropdownoption-disabled ".concat(u),i),t)),onMouseEnter:this.setHighlighted,onMouseLeave:this.resetHighlighted,onClick:this.onClick,title:f},n)}}])&&K(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function W(t){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function G(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Q(t,e){return(Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Z(t){return(Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}q.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},q.defaultProps={activeClassName:"",disabledClassName:"",highlightedClassName:""},n(14);var J=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Q(t,e)}(i,r.Component);var t,e,n=function(t){var e=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(t){return!1}}();return function(){var n,r=Z(t);if(e){var o=Z(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===W(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),n.apply(this,arguments)}return t=i,(e=[{key:"renderInFlatList",value:function(){var t=this.props,e=t.config,n=t.currentState,r=t.onChange,i=t.translations;return o.a.createElement("div",{className:l()("rdw-inline-wrapper",e.className),"aria-label":"rdw-inline-control"},e.options.map(function(t,a){return o.a.createElement(L,{key:a,value:t,onClick:r,className:l()(e[t].className),active:!0===n[t]||"MONOSPACE"===t&&n.CODE,title:e[t].title||i["components.controls.inline.".concat(t)]},o.a.createElement("img",{alt:"",src:e[t].icon}))}))}},{key:"renderInDropDown",value:function(){var t=this.props,e=t.config,n=t.expanded,r=t.doExpand,i=t.onExpandEvent,a=t.doCollapse,s=t.currentState,c=t.onChange,u=t.translations,p=e.className,f=e.dropdownClassName,d=e.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:C(e),alt:""}),e.options.map(function(t,n){return o.a.createElement(q,{key:n,value:t,className:l()("rdw-inline-dropdownoption",e[t].className),active:!0===s[t]||"MONOSPACE"===t&&s.CODE,title:e[t].title||u["components.controls.inline.".concat(t)]},o.a.createElement("img",{src:e[t].icon,alt:""}))}))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&G(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function $(t){return($="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function X(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function tt(t,e){return(tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function et(t){return(et=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}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 nt=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tt(t,e)}(i,r.Component);var t,e,n=function(t){var e=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(t){return!1}}();return function(){var n,r=et(t);if(e){var o=et(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===$(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.toggleInlineStyle=function(t){var n="monospace"===t?"CODE":t.toUpperCase(),r=e.props,o=r.editorState,i=r.onChange,a=s.RichUtils.toggleInlineStyle(o,n);if("subscript"===t||"superscript"===t){var c="subscript"===t?"SUPERSCRIPT":"SUBSCRIPT",u=s.Modifier.removeInlineStyle(a.getCurrentContent(),a.getSelection(),c);a=s.EditorState.push(a,u,"change-inline-style")}a&&i(a)},e.changeKeys=function(t){if(t){var e={};return E(t,function(t,n){e["CODE"===t?"monospace":t.toLowerCase()]=n}),e}},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})};var r=e.props,o=r.editorState,a=r.modalHandler;return e.state={currentStyles:o?e.changeKeys(Object(c.getSelectionInlineStyle)(o)):{}},a.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentStyles:this.changeKeys(Object(c.getSelectionInlineStyle)(e))})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state,i=r.expanded,a=r.currentStyles,s=e.component||J;return o.a.createElement(s,{config:e,translations:n,currentState:a,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.toggleInlineStyle})}}])&&X(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function rt(t){return(rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ot(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function it(t,e){return(it=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function at(t){return(at=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}nt.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 st=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&it(t,e)}(i,r.Component);var t,e,n=function(t){var e=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(t){return!1}}();return function(){var n,r=at(t);if(e){var o=at(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===rt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).getBlockTypes=function(t){return[{label:"Normal",displayName:t["components.controls.blocktype.normal"]},{label:"H1",displayName:t["components.controls.blocktype.h1"]},{label:"H2",displayName:t["components.controls.blocktype.h2"]},{label:"H3",displayName:t["components.controls.blocktype.h3"]},{label:"H4",displayName:t["components.controls.blocktype.h4"]},{label:"H5",displayName:t["components.controls.blocktype.h5"]},{label:"H6",displayName:t["components.controls.blocktype.h6"]},{label:"Blockquote",displayName:t["components.controls.blocktype.blockquote"]},{label:"Code",displayName:t["components.controls.blocktype.code"]}]},e.state={blockTypes:e.getBlockTypes(t.translations)},e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.translations;e!==t.translations&&this.setState({blockTypes:this.getBlockTypes(e)})}},{key:"renderFlat",value:function(t){var e=this.props,n=e.config.className,r=e.onChange,i=e.currentState.blockType;return o.a.createElement("div",{className:l()("rdw-inline-wrapper",n)},t.map(function(t,e){return o.a.createElement(L,{key:e,value:t.label,active:i===t.label,onClick:r},t.displayName)}))}},{key:"renderInDropdown",value:function(t){var e=this.props,n=e.config,r=n.className,i=n.dropdownClassName,a=n.title,s=e.currentState.blockType,c=e.expanded,u=e.doExpand,p=e.onExpandEvent,f=e.doCollapse,d=e.onChange,h=e.translations,g=this.state.blockTypes.filter(function(t){return t.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"]),t.map(function(t,e){return o.a.createElement(q,{active:s===t.label,value:t.label,key:e},t.displayName)})))}},{key:"render",value:function(){var t=this.props.config,e=t.inDropdown,n=this.state.blockTypes.filter(function(e){var n=e.label;return-1<t.options.indexOf(n)});return e?this.renderInDropdown(n):this.renderFlat(n)}}])&&ot(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();st.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 ct=st;function ut(t){return(ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function lt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function pt(t,e){return(pt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function ft(t){return(ft=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var dt=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&pt(t,e)}(i,r.Component);var t,e,n=function(t){var e=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(t){return!1}}();return function(){var n,r=ft(t);if(e){var o=ft(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===ut(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.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"}],e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.toggleBlockType=function(t){var n=e.blocksTypes.find(function(e){return e.label===t}).style,r=e.props,o=r.editorState,i=r.onChange,a=s.RichUtils.toggleBlockType(o,n);a&&i(a)};var r=t.editorState,o=t.modalHandler;return e.state={expanded:!1,currentBlockType:r?Object(c.getSelectedBlocksType)(r):"unstyled"},o.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentBlockType:Object(c.getSelectedBlocksType)(e)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state,i=r.expanded,a=r.currentBlockType,s=e.component||ct,c=this.blocksTypes.find(function(t){return t.style===a});return o.a.createElement(s,{config:e,translations:n,currentState:{blockType:c&&c.label},onChange:this.toggleBlockType,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&<(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();dt.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var ht=dt;function gt(t){return(gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function mt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function yt(t,e){return(yt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function vt(t){return(vt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(16);var bt=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&yt(t,e)}(i,r.Component);var t,e,n=function(t){var e=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(t){return!1}}();return function(){var n,r=vt(t);if(e){var o=vt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===gt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).state={defaultFontSize:void 0},t}return t=i,(e=[{key:"componentDidMount",value:function(){var t=document.getElementsByClassName("DraftEditor-root");if(t&&0<t.length){var e=window.getComputedStyle(t[0]).getPropertyValue("font-size");e=e.substring(0,e.length-2),this.setState({defaultFontSize:e})}}},{key:"render",value:function(){var t=this.props,e=t.config,n=e.icon,r=e.className,i=e.dropdownClassName,a=e.options,s=e.title,c=t.onChange,u=t.expanded,p=t.doCollapse,f=t.onExpandEvent,d=t.doExpand,h=t.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(t,e){return o.a.createElement(q,{className:"rdw-fontsize-option",active:g===t,value:t,key:e},t)})))}}])&&mt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function wt(t){return(wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Et(t,e){return(Et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function St(t){return(St=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}bt.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 kt=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Et(t,e)}(i,r.Component);var t,e,n=function(t){var e=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(t){return!1}}();return function(){var n,r=St(t);if(e){var o=St(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===wt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).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.toggleFontSize=function(t){var n=e.props,r=n.editorState,o=n.onChange,i=Object(c.toggleCustomInlineStyle)(r,"fontSize",t);i&&o(i)};var r=t.editorState,o=t.modalHandler;return e.state={expanded:void 0,currentFontSize:r?Object(c.getSelectionCustomInlineStyle)(r,["FONTSIZE"]).FONTSIZE:void 0},o.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentFontSize:Object(c.getSelectionCustomInlineStyle)(e,["FONTSIZE"]).FONTSIZE})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state,i=r.expanded,a=r.currentFontSize,s=e.component||bt,c=a&&Number(a.substring(9));return o.a.createElement(s,{config:e,translations:n,currentState:{fontSize:c},onChange:this.toggleFontSize,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&_t(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function Ct(t){return(Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ot(t,e){return(Ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function xt(t){return(xt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}kt.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 Dt=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ot(t,e)}(i,r.Component);var t,e,n=function(t){var e=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(t){return!1}}();return function(){var n,r=xt(t);if(e){var o=xt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Ct(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).state={defaultFontFamily:void 0},t}return t=i,(e=[{key:"componentDidMount",value:function(){var t=document.getElementsByClassName("DraftEditor-root");if(t&&0<t.length){var e=window.getComputedStyle(t[0]).getPropertyValue("font-family");this.setState({defaultFontFamily:e})}}},{key:"render",value:function(){var t=this.state.defaultFontFamily,e=this.props,n=e.config,r=n.className,i=n.dropdownClassName,a=n.options,s=n.title,c=e.translations,u=e.onChange,p=e.expanded,f=e.doCollapse,d=e.onExpandEvent,h=e.doExpand,g=this.props.currentState.fontFamily;return g=g||a&&t&&a.some(function(e){return e.toLowerCase()===t.toLowerCase()})&&t,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(t,e){return o.a.createElement(q,{active:g===t,value:t,key:e},t)})))}}])&&Mt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();Dt.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 Tt=Dt;function At(t){return(At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function It(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function jt(t,e){return(jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Nt(t){return(Nt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Lt=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&jt(t,e)}(i,r.Component);var t,e,n=function(t){var e=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(t){return!1}}();return function(){var n,r=Nt(t);if(e){var o=Nt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===At(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).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.toggleFontFamily=function(t){var n=e.props,r=n.editorState,o=n.onChange,i=Object(c.toggleCustomInlineStyle)(r,"fontFamily",t);i&&o(i)};var r=t.editorState,o=t.modalHandler;return e.state={expanded:void 0,currentFontFamily:r?Object(c.getSelectionCustomInlineStyle)(r,["FONTFAMILY"]).FONTFAMILY:void 0},o.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentFontFamily:Object(c.getSelectionCustomInlineStyle)(e,["FONTFAMILY"]).FONTFAMILY})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state,i=r.expanded,a=r.currentFontFamily,s=e.component||Tt,c=a&&a.substring(11);return o.a.createElement(s,{translations:n,config:e,currentState:{fontFamily:c},onChange:this.toggleFontFamily,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&It(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function Pt(t){return(Pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Rt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function zt(t,e){return(zt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Bt(t){return(Bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Lt.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 Ft=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&zt(t,e)}(i,r.Component);var t,e,n=function(t){var e=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(t){return!1}}();return function(){var n,r=Bt(t);if(e){var o=Bt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Pt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).options=["unordered","ordered","indent","outdent"],t.toggleBlockType=function(e){(0,t.props.onChange)(e)},t.indent=function(){(0,t.props.onChange)("indent")},t.outdent=function(){(0,t.props.onChange)("outdent")},t}return t=i,(e=[{key:"renderInFlatList",value:function(){var t=this.props,e=t.config,n=t.currentState.listType,r=t.translations,i=t.indentDisabled,a=t.outdentDisabled,s=e.options,c=e.unordered,u=e.ordered,p=e.indent,f=e.outdent,d=e.className;return o.a.createElement("div",{className:l()("rdw-list-wrapper",d),"aria-label":"rdw-list-control"},0<=s.indexOf("unordered")&&o.a.createElement(L,{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(L,{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(L,{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(L,{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 t=this,e=this.props,n=e.config,r=e.expanded,i=e.doCollapse,a=e.doExpand,s=e.onExpandEvent,c=e.onChange,u=e.currentState.listType,p=e.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:C(n),alt:""}),this.options.filter(function(t){return 0<=f.indexOf(t)}).map(function(e,r){return o.a.createElement(q,{key:r,value:e,disabled:t.props["".concat(e,"Disabled")],className:l()("rdw-list-dropdownOption",n[e].className),active:u===e,title:n[e].title||p["components.controls.list.".concat(e)]},o.a.createElement("img",{src:n[e].icon,alt:""}))}))}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&Rt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function Ut(t){return(Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ht(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Kt(t,e){return(Kt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Vt(t){return(Vt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Ft.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 Yt=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Kt(t,e)}(i,r.Component);var t,e,n=function(t){var e=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(t){return!1}}();return function(){var n,r=Vt(t);if(e){var o=Vt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Ut(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.onChange=function(t){"unordered"===t?e.toggleBlockType("unordered-list-item"):"ordered"===t?e.toggleBlockType("ordered-list-item"):"indent"===t?e.adjustDepth(1):e.adjustDepth(-1)},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.toggleBlockType=function(t){var n=e.props,r=n.onChange,o=n.editorState,i=s.RichUtils.toggleBlockType(o,t);i&&r(i)},e.adjustDepth=function(t){var n=e.props,r=n.onChange,o=n.editorState,i=Object(c.changeDepth)(o,t,4);i&&r(i)},e.isIndentDisabled=function(){var t=e.props.editorState,n=e.state.currentBlock,r=Object(c.getBlockBeforeSelectedBlock)(t);return!r||!Object(c.isListBlock)(n)||r.get("type")!==n.get("type")||r.get("depth")<n.get("depth")},e.isOutdentDisabled=function(){var t=e.state.currentBlock;return!t||!Object(c.isListBlock)(t)||t.get("depth")<=0};var r=e.props,o=r.editorState,a=r.modalHandler;return e.state={expanded:!1,currentBlock:o?Object(c.getSelectedBlock)(o):void 0},a.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentBlock:Object(c.getSelectedBlock)(e)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t,e=this.props,n=e.config,r=e.translations,i=this.state,a=i.expanded,s=i.currentBlock,c=n.component||Ft;"unordered-list-item"===s.get("type")?t="unordered":"ordered-list-item"===s.get("type")&&(t="ordered");var u=this.isIndentDisabled(),l=this.isOutdentDisabled();return o.a.createElement(c,{config:n,translations:r,currentState:{listType:t},expanded:a,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange,indentDisabled:u,outdentDisabled:l})}}])&&Ht(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function qt(t){return(qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Wt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Gt(t,e){return(Gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Qt(t){return(Qt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Yt.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 Zt=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Gt(t,e)}(i,r.Component);var t,e,n=function(t){var e=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(t){return!1}}();return function(){var n,r=Qt(t);if(e){var o=Qt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===qt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),n.apply(this,arguments)}return t=i,(e=[{key:"renderInFlatList",value:function(){var t=this.props,e=t.config,n=e.options,r=e.left,i=e.center,a=e.right,s=e.justify,c=e.className,u=t.onChange,p=t.currentState.textAlignment,f=t.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(L,{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(L,{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(L,{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(L,{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 t=this.props,e=t.config,n=t.expanded,r=t.doExpand,i=t.onExpandEvent,a=t.doCollapse,s=t.currentState.textAlignment,c=t.onChange,u=t.translations,p=e.options,f=e.left,d=e.center,h=e.right,g=e.justify,m=e.className,y=e.dropdownClassName,v=e.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&&e[s]&&e[s].icon||C(e),alt:""}),0<=p.indexOf("left")&&o.a.createElement(q,{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(q,{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(q,{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(q,{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()}}])&&Wt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function Jt(t){return(Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Xt(t,e){return(Xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function te(t){return(te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Zt.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 ee=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xt(t,e)}(i,r.Component);var t,e,n=function(t){var e=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(t){return!1}}();return function(){var n,r=te(t);if(e){var o=te(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Jt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).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.addBlockAlignmentData=function(t){var n=e.props,r=n.editorState;(0,n.onChange)(e.state.currentTextAlignment!==t?Object(c.setBlockData)(r,{"text-align":t}):Object(c.setBlockData)(r,{"text-align":void 0}))};var r=e.props.modalHandler;return e.state={currentTextAlignment:void 0},r.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e!==t.editorState&&this.setState({currentTextAlignment:Object(c.getSelectedBlocksMetadata)(e).get("text-align")})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state,i=r.expanded,a=r.currentTextAlignment,s=e.component||Zt;return o.a.createElement(s,{config:e,translations:n,expanded:i,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{textAlignment:a},onChange:this.addBlockAlignmentData})}}])&&$t(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function ne(t){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function re(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function oe(t,e){return(oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function ie(t){return(ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}ee.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 ae=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&oe(t,e)}(i,r.Component);var t,e,n=function(t){var e=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(t){return!1}}();return function(){var n,r=ie(t);if(e){var o=ie(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===ne(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return(t=n.call.apply(n,[this].concat(r))).state={currentStyle:"color"},t.onChange=function(e){(0,t.props.onChange)(t.state.currentStyle,e)},t.setCurrentStyleColor=function(){t.setState({currentStyle:"color"})},t.setCurrentStyleBgcolor=function(){t.setState({currentStyle:"bgcolor"})},t.renderModal=function(){var e=t.props,n=e.config,r=n.popupClassName,i=n.colors,a=e.currentState,s=a.color,c=a.bgColor,u=e.translations,p=t.state.currentStyle,f="color"===p?s:c;return o.a.createElement("div",{className:l()("rdw-colorpicker-modal",r),onClick:k},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:t.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:t.setCurrentStyleBgcolor},u["components.controls.colorpicker.background"])),o.a.createElement("span",{className:"rdw-colorpicker-modal-options"},i.map(function(e,n){return o.a.createElement(L,{value:e,key:n,className:"rdw-colorpicker-option",activeClassName:"rdw-colorpicker-option-active",active:f===e,onClick:t.onChange},o.a.createElement("span",{style:{backgroundColor:e},className:"rdw-colorpicker-cube"}))})))},t}return t=i,(e=[{key:"componentDidUpdate",value:function(t){this.props.expanded&&!t.expanded&&this.setState({currentStyle:"color"})}},{key:"render",value:function(){var t=this.props,e=t.config,n=e.icon,r=e.className,i=e.title,a=t.expanded,s=t.onExpandEvent,c=t.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(L,{onClick:s,className:l()(r)},o.a.createElement("img",{src:n,alt:""})),a?this.renderModal():void 0)}}])&&re(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();ae.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 se=ae;function ce(t){return(ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ue(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function le(t,e){return(le=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function pe(t){return(pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var fe=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&le(t,e)}(i,r.Component);var t,e,n=function(t){var e=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(t){return!1}}();return function(){var n,r=pe(t);if(e){var o=pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===ce(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).state={expanded:!1,currentColor:void 0,currentBgColor:void 0},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.toggleColor=function(t,n){var r=e.props,o=r.editorState,i=r.onChange,a=Object(c.toggleCustomInlineStyle)(o,t,n);a&&i(a),e.doCollapse()};var r=t.editorState,o=t.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),e.state=a,o.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentColor:Object(c.getSelectionCustomInlineStyle)(e,["COLOR"]).COLOR,currentBgColor:Object(c.getSelectionCustomInlineStyle)(e,["BGCOLOR"]).BGCOLOR})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state,i=r.currentColor,a=r.currentBgColor,s=r.expanded,c=e.component||se,u=i&&i.substring(6),l=a&&a.substring(8);return o.a.createElement(c,{config:e,translations:n,onChange:this.toggleColor,expanded:s,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{color:u,bgColor:l}})}}])&&ue(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();fe.propTypes={onChange:a.a.func.isRequired,editorState:a.a.object.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var de=fe,he=n(7),ge=n.n(he);function me(t){return(me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ye(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ve(t,e){return(ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function be(t){return(be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(26);var we=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ve(t,e)}(i,r.Component);var t,e,n=function(t){var e=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(t){return!1}}();return function(){var n,r=be(t);if(e){var o=be(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===me(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).state={showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:t.props.config.defaultTargetOption},t.removeLink=function(){(0,t.props.onChange)("unlink")},t.addLink=function(){var e=t.props.onChange,n=t.state;e("link",n.linkTitle,n.linkTarget,n.linkTargetOption)},t.updateValue=function(e){var n,r,o;t.setState((n={},r="".concat(e.target.name),o=e.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},t.updateTargetOption=function(e){t.setState({linkTargetOption:e.target.checked?"_blank":"_self"})},t.hideModal=function(){t.setState({showModal:!1})},t.signalExpandShowModal=function(){var e=t.props,n=e.onExpandEvent,r=e.currentState,o=r.link,i=r.selectionText,a=t.state.linkTargetOption;n(),t.setState({showModal:!0,linkTarget:o&&o.target||"",linkTargetOption:o&&o.targetOption||a,linkTitle:o&&o.title||i})},t.forceExpandAndShowModal=function(){var e=t.props,n=e.doExpand,r=e.currentState,o=r.link,i=r.selectionText,a=t.state.linkTargetOption;n(),t.setState({showModal:!0,linkTarget:o&&o.target,linkTargetOption:o&&o.targetOption||a,linkTitle:o&&o.title||i})},t}return t=i,(e=[{key:"componentDidUpdate",value:function(t){t.expanded&&!this.props.expanded&&this.setState({showModal:!1,linkTarget:"",linkTitle:"",linkTargetOption:this.props.config.defaultTargetOption})}},{key:"renderAddLinkModal",value:function(){var t=this.props,e=t.config.popupClassName,n=t.doCollapse,r=t.translations,i=this.state,a=i.linkTitle,s=i.linkTarget,c=i.linkTargetOption;return o.a.createElement("div",{className:l()("rdw-link-modal",e),onClick:k},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 t=this.props,e=t.config,n=e.options,r=e.link,i=e.unlink,a=e.className,s=t.currentState,c=t.expanded,u=t.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(L,{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(L,{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 t=this.props,e=t.expanded,n=t.onExpandEvent,r=t.doCollapse,i=t.doExpand,a=t.onChange,s=t.config,c=t.currentState,u=t.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":e,title:m},o.a.createElement(F,{className:l()("rdw-link-dropdown",h),optionWrapperClassName:l()(g),onChange:a,expanded:e&&!y,doExpand:i,doCollapse:r,onExpandEvent:n},o.a.createElement("img",{src:C(s),alt:""}),0<=p.indexOf("link")&&o.a.createElement(q,{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(q,{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:""}))),e&&y?this.renderAddLinkModal():void 0)}},{key:"render",value:function(){return this.props.config.inDropdown?this.renderInDropDown():this.renderInFlatList()}}])&&ye(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();we.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 _e=we;function Ee(t){return(Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Se(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ke(t,e){return(ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Ce(t){return(Ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Me(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Oe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Me(Object(n),!0).forEach(function(e){xe(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function xe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function De(t){var e=Te.match(t.target);return Oe(Oe({},t),{},{target:e&&e[0]&&e[0].url||t.target})}var Te=ge()(),Ae=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ke(t,e)}(i,r.Component);var t,e,n=function(t){var e=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(t){return!1}}();return function(){var n,r=Ce(t);if(e){var o=Ce(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Ee(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.onChange=function(t,n,r,o){var i=e.props.config.linkCallback;if("link"===t){var a=(i||De)({title:n,target:r,targetOption:o});e.addLink(a.title,a.target,a.targetOption)}else e.removeLink()},e.getCurrentValues=function(){var t=e.props.editorState,n=e.state.currentEntity,r=t.getCurrentContent(),o={};if(n&&"LINK"===r.getEntity(n).get("type")){o.link={};var i=n&&Object(c.getEntityRange)(t,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)(t),o},e.doExpand=function(){e.setState({expanded:!0})},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.doCollapse=function(){e.setState({expanded:!1})},e.removeLink=function(){var t=e.props,n=t.editorState,r=t.onChange,o=e.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))}},e.addLink=function(t,n,r){var o=e.props,i=o.editorState,a=o.onChange,u=e.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(t),i.getCurrentInlineStyle(),f),h=s.EditorState.push(i,d,"insert-characters");l=h.getSelection().merge({anchorOffset:l.get("anchorOffset")+t.length,focusOffset:l.get("anchorOffset")+t.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")),e.doCollapse()};var r=e.props,o=r.editorState,a=r.modalHandler;return e.state={expanded:!1,link:void 0,selectionText:void 0,currentEntity:o?Object(c.getSelectionEntity)(o):void 0},a.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&e!==t.editorState&&this.setState({currentEntity:Object(c.getSelectionEntity)(e)})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state.expanded,i=this.getCurrentValues(),a=i.link,s=i.selectionText,c=e.component||_e;return o.a.createElement(c,{config:e,translations:n,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,currentState:{link:a,selectionText:s},onChange:this.onChange})}}])&&Se(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();Ae.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var Ie=Ae;function je(t){return(je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ne(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Le(t,e){return(Le=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Pe(t){return(Pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(27);var Re=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Le(t,e)}(i,r.Component);var t,e,n=function(t){var e=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(t){return!1}}();return function(){var n,r=Pe(t);if(e){var o=Pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===je(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).state={embeddedLink:"",height:t.props.config.defaultSize.height,width:t.props.config.defaultSize.width},t.onChange=function(){var e=t.props.onChange,n=t.state;e(n.embeddedLink,n.height,n.width)},t.updateValue=function(e){var n,r,o;t.setState((n={},r="".concat(e.target.name),o=e.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},t}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props,n=e.expanded,r=e.config;if(!n&&t.expanded){var o=r.defaultSize,i=o.height,a=o.width;this.setState({embeddedLink:"",height:i,width:a})}}},{key:"rendeEmbeddedLinkModal",value:function(){var t=this.state,e=t.embeddedLink,n=t.height,r=t.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:k},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:e,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:!e||!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 t=this.props,e=t.config,n=e.icon,r=e.className,i=e.title,a=t.expanded,s=t.onExpandEvent,c=t.translations;return o.a.createElement("div",{className:"rdw-embedded-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-embedded-control"},o.a.createElement(L,{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)}}])&&Ne(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();Re.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 ze=Re;function Be(t){return(Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Fe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ue(t,e){return(Ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function He(t){return(He=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ke=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ue(t,e)}(i,r.Component);var t,e,n=function(t){var e=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(t){return!1}}();return function(){var n,r=He(t);if(e){var o=He(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Be(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).state={expanded:!1},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.addEmbeddedLink=function(e,n,r){var o=t.props,i=o.editorState,a=o.onChange,c=o.config.embedCallback,u=c?c(e):e,l=i.getCurrentContent().createEntity("EMBEDDED_LINK","MUTABLE",{src:u,height:n,width:r}).getLastCreatedEntityKey();a(s.AtomicBlockUtils.insertAtomicBlock(i,l," ")),t.doCollapse()},t}return t=i,(e=[{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 t=this.props,e=t.config,n=t.translations,r=this.state.expanded,i=e.component||ze;return o.a.createElement(i,{config:e,translations:n,onChange:this.addEmbeddedLink,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&Fe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();Ke.propTypes={editorState:a.a.object.isRequired,onChange:a.a.func.isRequired,modalHandler:a.a.object,config:a.a.object,translations:a.a.object};var Ve=Ke;function Ye(t){return(Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function We(t,e){return(We=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Ge(t){return(Ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(28);var Qe=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&We(t,e)}(i,r.Component);var t,e,n=function(t){var e=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(t){return!1}}();return function(){var n,r=Ge(t);if(e){var o=Ge(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Ye(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).onChange=function(e){(0,t.props.onChange)(e.target.innerHTML)},t}return t=i,(e=[{key:"renderEmojiModal",value:function(){var t=this,e=this.props.config,n=e.popupClassName,r=e.emojis;return o.a.createElement("div",{className:l()("rdw-emoji-modal",n),onClick:k},r.map(function(e,n){return o.a.createElement("span",{key:n,className:"rdw-emoji-icon",alt:"",onClick:t.onChange},e)}))}},{key:"render",value:function(){var t=this.props,e=t.config,n=e.icon,r=e.className,i=e.title,a=t.expanded,s=t.onExpandEvent,c=t.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(L,{className:l()(r),value:"unordered-list-item",onClick:s},o.a.createElement("img",{src:n,alt:""})),a?this.renderEmojiModal():void 0)}}])&&qe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();Qe.propTypes={expanded:a.a.bool,onExpandEvent:a.a.func,onChange:a.a.func,config:a.a.object,translations:a.a.object};var Ze=Qe;function Je(t){return(Je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Xe(t,e){return(Xe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function tn(t){return(tn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var en=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xe(t,e)}(i,r.Component);var t,e,n=function(t){var e=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(t){return!1}}();return function(){var n,r=tn(t);if(e){var o=tn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Je(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).state={expanded:!1},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.addEmoji=function(e){var n=t.props,r=n.editorState,o=n.onChange,i=s.Modifier.replaceText(r.getCurrentContent(),r.getSelection(),e,r.getCurrentInlineStyle());o(s.EditorState.push(r,i,"insert-characters")),t.doCollapse()},t}return t=i,(e=[{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 t=this.props,e=t.config,n=t.translations,r=this.state.expanded,i=e.component||Ze;return o.a.createElement(i,{config:e,translations:n,onChange:this.addEmoji,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onCollpase:this.closeModal})}}])&&$e(t.prototype,e),Object.defineProperty(t,"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(t){return(rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function on(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function an(t,e){return(an=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function sn(t){return(sn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}en.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(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&an(t,e)}(i,r.Component);var t,e,n=function(t){var e=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(t){return!1}}();return function(){var n,r=sn(t);if(e){var o=sn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===rn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).state={imgSrc:"",dragEnter:!1,uploadHighlighted:t.props.config.uploadEnabled&&!!t.props.config.uploadCallback,showImageLoading:!1,height:t.props.config.defaultSize.height,width:t.props.config.defaultSize.width,alt:""},t.onDragEnter=function(e){t.stopPropagation(e),t.setState({dragEnter:!0})},t.onImageDrop=function(e){var n,r;e.preventDefault(),e.stopPropagation(),t.setState({dragEnter:!1}),r=e.dataTransfer.items?(n=e.dataTransfer.items,!0):(n=e.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];t.uploadImage(i)}},t.showImageUploadOption=function(){t.setState({uploadHighlighted:!0})},t.addImageFromState=function(){var e=t.state,n=e.imgSrc,r=e.alt,o=t.state,i=o.height,a=o.width,s=t.props.onChange;isNaN(i)||(i+="px"),isNaN(a)||(a+="px"),s(n,i,a,r)},t.showImageURLOption=function(){t.setState({uploadHighlighted:!1})},t.toggleShowImageLoading=function(){var e=!t.state.showImageLoading;t.setState({showImageLoading:e})},t.updateValue=function(e){var n,r,o;t.setState((n={},r="".concat(e.target.name),o=e.target.value,r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n))},t.selectImage=function(e){e.target.files&&0<e.target.files.length&&t.uploadImage(e.target.files[0])},t.uploadImage=function(e){t.toggleShowImageLoading(),(0,t.props.config.uploadCallback)(e).then(function(e){var n=e.data;t.setState({showImageLoading:!1,dragEnter:!1,imgSrc:n.link||n.url}),t.fileUpload=!1}).catch(function(){t.setState({showImageLoading:!1,dragEnter:!1})})},t.fileUploadClick=function(e){t.fileUpload=!0,e.stopPropagation()},t.stopPropagation=function(e){t.fileUpload?t.fileUpload=!1:(e.preventDefault(),e.stopPropagation())},t}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.config;t.expanded&&!this.props.expanded?this.setState({imgSrc:"",dragEnter:!1,uploadHighlighted:e.uploadEnabled&&!!e.uploadCallback,showImageLoading:!1,height:e.defaultSize.height,width:e.defaultSize.width,alt:""}):e.uploadCallback===t.config.uploadCallback&&e.uploadEnabled===t.config.uploadEnabled||this.setState({uploadHighlighted:e.uploadEnabled&&!!e.uploadCallback})}},{key:"renderAddImageModal",value:function(){var t=this.state,e=t.imgSrc,n=t.uploadHighlighted,r=t.showImageLoading,i=t.dragEnter,a=t.height,s=t.width,c=t.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&&e?o.a.createElement("img",{src:e,alt:e,className:"rdw-image-modal-upload-option-image-preview"}):e||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:e}),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:!e||!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 t=this.props,e=t.config,n=e.icon,r=e.className,i=e.title,a=t.expanded,s=t.onExpandEvent,c=t.translations;return o.a.createElement("div",{className:"rdw-image-wrapper","aria-haspopup":"true","aria-expanded":a,"aria-label":"rdw-image-control"},o.a.createElement(L,{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(t.prototype,e),Object.defineProperty(t,"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(t){return(ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function fn(t,e){return(fn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function dn(t){return(dn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var hn=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&fn(t,e)}(i,r.Component);var t,e,n=function(t){var e=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(t){return!1}}();return function(){var n,r=dn(t);if(e){var o=dn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===ln(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})},e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1},e.addImage=function(t,n,r,o){var i=e.props,a=i.editorState,c=i.onChange,u={src:t,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," ")),e.doCollapse()};var r=e.props.modalHandler;return e.state={expanded:!1},r.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state.expanded,i=e.component||un;return o.a.createElement(i,{config:e,translations:n,onChange:this.addImage,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse})}}])&&pn(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function gn(t){var e=t.config,n=t.onChange,r=t.translations,i=e.icon,a=e.className,s=e.title;return o.a.createElement("div",{className:"rdw-remove-wrapper","aria-label":"rdw-remove-control"},o.a.createElement(L,{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(t){return(vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function bn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function wn(t,e){return(wn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function _n(t){return(_n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var En=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wn(t,e)}(i,r.Component);var t,e,n=function(t){var e=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(t){return!1}}();return function(){var n,r=_n(t);if(e){var o=_n(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===vn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).state={expanded:!1},t.onExpandEvent=function(){t.signalExpanded=!t.state.expanded},t.expandCollapse=function(){t.setState({expanded:t.signalExpanded}),t.signalExpanded=!1},t.removeInlineStyles=function(){var e=t.props,n=e.editorState;(0,e.onChange)(t.removeAllInlineStyles(n))},t.removeAllInlineStyles=function(t){var e=t.getCurrentContent();return["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","MONOSPACE","SUPERSCRIPT","SUBSCRIPT"].forEach(function(n){e=s.Modifier.removeInlineStyle(e,t.getSelection(),n)}),E(Object(c.getSelectionCustomInlineStyle)(t,["FONTSIZE","FONTFAMILY","COLOR","BGCOLOR"]),function(n,r){r&&(e=s.Modifier.removeInlineStyle(e,t.getSelection(),r))}),s.EditorState.push(t,e,"change-inline-style")},t.doExpand=function(){t.setState({expanded:!0})},t.doCollapse=function(){t.setState({expanded:!1})},t}return t=i,(e=[{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 t=this.props,e=t.config,n=t.translations,r=this.state.expanded,i=e.component||yn;return o.a.createElement(i,{config:e,translations:n,expanded:r,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.removeInlineStyles})}}])&&bn(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function Sn(t){return(Sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function kn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Cn(t,e){return(Cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Mn(t){return(Mn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}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 On=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Cn(t,e)}(i,r.Component);var t,e,n=function(t){var e=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(t){return!1}}();return function(){var n,r=Mn(t);if(e){var o=Mn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Sn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))).onChange=function(e){(0,t.props.onChange)(e)},t}return t=i,(e=[{key:"renderInDropDown",value:function(){var t=this.props,e=t.config,n=t.expanded,r=t.doExpand,i=t.onExpandEvent,a=t.doCollapse,s=t.currentState,c=s.undoDisabled,u=s.redoDisabled,p=t.translations,f=e.options,d=e.undo,h=e.redo,g=e.className,m=e.dropdownClassName,y=e.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:C(e),alt:""}),0<=f.indexOf("undo")&&o.a.createElement(q,{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(q,{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 t=this.props,e=t.config,n=e.options,r=e.undo,i=e.redo,a=e.className,s=t.currentState,c=s.undoDisabled,u=s.redoDisabled,p=t.translations;return o.a.createElement("div",{className:l()("rdw-history-wrapper",a),"aria-label":"rdw-history-control"},0<=n.indexOf("undo")&&o.a.createElement(L,{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(L,{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()}}])&&kn(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),i}();function xn(t){return(xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Dn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Tn(t,e){return(Tn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function An(t){return(An=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}On.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(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Tn(t,e)}(i,r.Component);var t,e,n=function(t){var e=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(t){return!1}}();return function(){var n,r=An(t);if(e){var o=An(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===xn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onExpandEvent=function(){e.signalExpanded=!e.state.expanded},e.onChange=function(t){var n=e.props,r=n.editorState,o=n.onChange,i=s.EditorState[t](r);i&&o(i)},e.doExpand=function(){e.setState({expanded:!0})},e.doCollapse=function(){e.setState({expanded:!1})};var r={expanded:!(e.expandCollapse=function(){e.setState({expanded:e.signalExpanded}),e.signalExpanded=!1}),undoDisabled:!1,redoDisabled:!1},o=t.editorState,a=t.modalHandler;return o&&(r.undoDisabled=0===o.getUndoStack().size,r.redoDisabled=0===o.getRedoStack().size),e.state=r,a.registerCallBack(e.expandCollapse),e}return t=i,(e=[{key:"componentDidUpdate",value:function(t){var e=this.props.editorState;e&&t.editorState!==e&&this.setState({undoDisabled:0===e.getUndoStack().size,redoDisabled:0===e.getRedoStack().size})}},{key:"componentWillUnmount",value:function(){this.props.modalHandler.deregisterCallBack(this.expandCollapse)}},{key:"render",value:function(){var t=this.props,e=t.config,n=t.translations,r=this.state,i=r.undoDisabled,a=r.redoDisabled,s=r.expanded,c=e.component||On;return o.a.createElement(c,{config:e,translations:n,currentState:{undoDisabled:i,redoDisabled:a},expanded:s,onExpandEvent:this.onExpandEvent,doExpand:this.doExpand,doCollapse:this.doCollapse,onChange:this.onChange})}}])&&Dn(t.prototype,e),Object.defineProperty(t,"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 jn={inline:nt,blockType:ht,fontSize:kt,fontFamily:Lt,list:Yt,textAlign:ee,colorPicker:de,link:Ie,embedded:Ve,emoji:en,image:mn,remove:En,history:In},Nn=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,Ln=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;function Pn(t){return String(t).replace(Nn,"").match(Ln)?t:"#"}function Rn(t){return(Rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Bn(t,e){return(Bn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Fn(t){return(Fn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Un(t,e,n){t.findEntityRanges(function(t){var e=t.getEntity();return null!==e&&"LINK"===n.getEntity(e).getType()},e)}function Hn(t){var e,n=t.showOpenOptionOnHover;return(e=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Bn(t,e)}(a,r.Component);var t,e,i=function(t){var e=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(t){return!1}}();return function(){var n,r=Fn(t);if(e){var o=Fn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Rn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(a);function a(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))).state={showPopOver:!1},t.openLink=function(){var e=t.props,n=e.entityKey,r=e.contentState.getEntity(n).getData().url,o=window.open(Pn(r),"blank");o&&o.focus()},t.toggleShowPopOver=function(){var e=!t.state.showPopOver;t.setState({showPopOver:e})},t}return t=a,(e=[{key:"render",value:function(){var t=this.props,e=t.children,r=t.entityKey,i=t.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},e),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)}}])&&zn(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),a}()).propTypes={entityKey:a.a.string.isRequired,children:a.a.array,contentState:a.a.object},e}function Kn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}n(33),n(34);var Vn=function(t,e,n){return e&&Kn(t.prototype,e),n&&Kn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.getMentionComponent=function(){function t(t){var n=t.entityKey,r=t.children,i=t.contentState.getEntity(n).getData(),a=i.url,s=i.value;return o.a.createElement("a",{href:a||s,className:l()("rdw-mention-link",e)},r)}var e=n.className;return t.propTypes={entityKey:a.a.number,children:a.a.array,contentState:a.a.object},t},this.getMentionDecorator=function(){return{strategy:n.findMentionEntities,component:n.getMentionComponent()}},this.className=e});Vn.prototype.findMentionEntities=function(t,e,n){t.findEntityRanges(function(t){var e=t.getEntity();return null!==e&&"MENTION"===n.getEntity(e).getType()},e)};var Yn=Vn;function qn(t){return(qn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Wn(t,e){return(Wn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Gn(t){return(Gn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Qn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Zn(t,e,n){return e&&Qn(t.prototype,e),n&&Qn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Jn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n(35);var $n=Zn(function t(e){var n=this;Jn(this,t),this.findSuggestionEntities=function(t,e){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")===t.get("key")&&s.get("anchorKey")===s.get("focusKey")){var c=t.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(t){return!!t.value&&(n.config.caseSensitive?0<=t.value.indexOf(p):0<=t.value.toLowerCase().indexOf(p&&p.toLowerCase()))})&&e(0===u?0:u+1,c.length)}}}},this.getSuggestionComponent=function(){var t,e=this.config;return(t=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Wn(t,e)}(n,r.Component);var t=function(t){var e=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(t){return!1}}();return function(){var n,r=Gn(t);if(e){var o=Gn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===qn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(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=t.call.apply(t,[this].concat(i))).state={style:{left:15},activeOption:-1,showSuggestions:!0},r.onEditorKeyDown=function(t){var e=r.state.activeOption,n={};"ArrowDown"===t.key?(t.preventDefault(),e===r.filteredSuggestions.length-1?n.activeOption=0:n.activeOption=e+1):"ArrowUp"===t.key?n.activeOption=e<=0?r.filteredSuggestions.length-1:e-1:"Escape"===t.key?(n.showSuggestions=!1,b()):"Enter"===t.key&&r.addMention(),r.setState(n)},r.onOptionMouseEnter=function(t){var e=t.target.getAttribute("data-index");r.setState({activeOption:e})},r.onOptionMouseLeave=function(){r.setState({activeOption:-1})},r.setSuggestionReference=function(t){r.suggestion=t},r.setDropdownReference=function(t){r.dropdown=t},r.closeSuggestionDropdown=function(){r.setState({showSuggestions:!1})},r.filteredSuggestions=[],r.filterSuggestions=function(t){var n=t.children[0].props.text.substr(1),o=e.getSuggestions();r.filteredSuggestions=o&&o.filter(function(t){return!n||0===n.length||(e.caseSensitive?0<=t.value.indexOf(n):0<=t.value.toLowerCase().indexOf(n&&n.toLowerCase()))})},r.addMention=function(){var t=r.state.activeOption,n=e.getEditorState(),o=e.onChange,i=e.separator,a=e.trigger,u=r.filteredSuggestions[t];u&&function(t,e,n,r,o){var i=o.value,a=o.url,u=t.getCurrentContent().createEntity("MENTION","IMMUTABLE",{text:"".concat(r).concat(i),value:i,url:a}).getLastCreatedEntityKey(),l=Object(c.getSelectedBlock)(t).getText(),p=t.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=t.getSelection().merge({anchorOffset:f,focusOffset:p}),g=s.EditorState.acceptSelection(t,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)),e(s.EditorState.push(g,m,"insert-characters"))}(n,o,i,a,u)},r}return Zn(n,[{key:"componentDidMount",value:function(){var t,n,r,o=e.getWrapperRef().getBoundingClientRect(),i=this.suggestion.getBoundingClientRect(),a=this.dropdown.getBoundingClientRect();o.width<i.left-o.left+a.width?n=15:t=15,o.bottom<a.bottom&&(r=0),this.setState({style:{left:t,right:n,bottom:r}}),y.registerCallBack(this.onEditorKeyDown),v(),e.modalHandler.setSuggestionCallback(this.closeSuggestionDropdown),this.filterSuggestions(this.props)}},{key:"componentDidUpdate",value:function(t){this.props.children!==t.children&&(this.filterSuggestions(t),this.setState({showSuggestions:!0}))}},{key:"componentWillUnmount",value:function(){y.deregisterCallBack(this.onEditorKeyDown),b(),e.modalHandler.removeSuggestionCallback()}},{key:"render",value:function(){var t=this,n=this.props.children,r=this.state,i=r.activeOption,a=r.showSuggestions,s=e.dropdownClassName,c=e.optionClassName;return o.a.createElement("span",{className:"rdw-suggestion-wrapper",ref:this.setSuggestionReference,onClick:e.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(e,n){return o.a.createElement("span",{key:n,spellCheck:!1,onClick:t.addMention,"data-index":n,onMouseEnter:t.onOptionMouseEnter,onMouseLeave:t.onOptionMouseLeave,className:l()("rdw-suggestion-option",c,{"rdw-suggestion-option-active":n===i})},e.text)})))}}]),n}()).propTypes={children:a.a.array},t}.bind(this),this.getSuggestionDecorator=function(){return{strategy:n.findSuggestionEntities,component:n.getSuggestionComponent()}};var i=e.separator,u=e.trigger,p=e.getSuggestions,f=e.onChange,d=e.getEditorState,h=e.getWrapperRef,g=e.caseSensitive,m=e.dropdownClassName,w=e.optionClassName,_=e.modalHandler;this.config={separator:i,trigger:u,getSuggestions:p,onChange:f,getEditorState:d,getWrapperRef:h,caseSensitive:g,dropdownClassName:m,optionClassName:w,modalHandler:_}});function Xn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function tr(t){var e=t.block,n=t.contentState.getEntity(e.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 er=function(t,e,n){return e&&Xn(t.prototype,e),n&&Xn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.getHashtagComponent=function(){function t(t){var n=t.children,r=n[0].props.text;return o.a.createElement("a",{href:r,className:l()("rdw-hashtag-link",e)},n)}var e=n.className;return t.propTypes={children:a.a.object},t},this.findHashtagEntities=function(t,e){for(var r=t.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&&(e(i,i+s.length+n.hashCharacter.length),i+=n.hashCharacter.length)}},this.getHashtagDecorator=function(){return{strategy:n.findHashtagEntities,component:n.getHashtagComponent()}},this.className=e.className,this.hashCharacter=e.hashCharacter||"#",this.separator=e.separator||" "});tr.propTypes={block:a.a.object,contentState:a.a.object};var nr=tr;function rr(t){return(rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function or(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ir(t,e){return(ir=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function ar(t){return(ar=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(37);var sr=function(t){var e;return(e=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ir(t,e)}(a,r.Component);var e,n,i=function(t){var e=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(t){return!1}}();return function(){var n,r=ar(t);if(e){var o=ar(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===rr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(a);function a(){var e;!function(t,e){if(!(t instanceof e))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(e=i.call.apply(i,[this].concat(r))).state={hovered:!1},e.setEntityAlignmentLeft=function(){e.setEntityAlignment("left")},e.setEntityAlignmentRight=function(){e.setEntityAlignment("right")},e.setEntityAlignmentCenter=function(){e.setEntityAlignment("none")},e.setEntityAlignment=function(n){var r=e.props,o=r.block,i=r.contentState,a=o.getEntityAt(0);i.mergeEntityData(a,{alignment:n}),t.onChange(s.EditorState.push(t.getEditorState(),i,"change-block-data")),e.setState({dummy:!0})},e.toggleHovered=function(){var t=!e.state.hovered;e.setState({hovered:t})},e}return e=a,(n=[{key:"renderAlignmentOptions",value:function(t){return o.a.createElement("div",{className:l()("rdw-image-alignment-options-popup",{"rdw-image-alignment-options-popup-right":"right"===t})},o.a.createElement(L,{onClick:this.setEntityAlignmentLeft,className:"rdw-image-alignment-option"},"L"),o.a.createElement(L,{onClick:this.setEntityAlignmentCenter,className:"rdw-image-alignment-option"},"C"),o.a.createElement(L,{onClick:this.setEntityAlignmentRight,className:"rdw-image-alignment-option"},"R"))}},{key:"render",value:function(){var e=this.props,n=e.block,r=e.contentState,i=this.state.hovered,a=t.isReadOnly,s=t.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(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}()).propTypes={block:a.a.object,contentState:a.a.object},e},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(t){return(lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pr(){return(pr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function fr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function dr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fr(Object(n),!0).forEach(function(e){hr(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fr(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function hr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gr(t){return function(t){if(Array.isArray(t))return mr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return mr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mr(t,e):void 0}}(t)||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(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function yr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function vr(t,e){return(vr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function br(t){return(br=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(38),n(39);var wr=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vr(t,e)}(i,r.Component);var t,e,n=function(t){var e=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(t){return!1}}();return function(){var n,r=br(t);if(e){var o=br(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===lr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t)}(this,n)}}(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=n.call(this,t)).onEditorBlur=function(){e.setState({editorFocused:!1})},e.onEditorFocus=function(t){var n=e.props.onFocus;e.setState({editorFocused:!0});var r=e.focusHandler.isEditorFocused();n&&r&&n(t)},e.onEditorMouseDown=function(){e.focusHandler.onEditorMouseDown()},e.keyBindingFn=function(t){if("Tab"!==t.key)return"ArrowUp"!==t.key&&"ArrowDown"!==t.key||w()&&t.preventDefault(),Object(s.getDefaultKeyBinding)(t);var n=e.props.onTab;if(!n||!n(t)){var r=Object(c.changeDepth)(e.state.editorState,t.shiftKey?-1:1,4);r&&r!==e.state.editorState&&(e.onChange(r),t.preventDefault())}return null},e.onToolbarFocus=function(t){var n=e.props.onFocus;n&&e.focusHandler.isToolbarFocused()&&n(t)},e.onWrapperBlur=function(t){var n=e.props.onBlur;n&&e.focusHandler.isEditorBlur(t)&&n(t,e.getEditorState())},e.onChange=function(t){var n=e.props,r=n.readOnly,o=n.onEditorStateChange;r||"atomic"===Object(c.getSelectedBlocksType)(t)&&t.getSelection().isCollapsed||(o&&o(t,e.props.wrapperId),S(e.props,"editorState")?e.afterChange(t):e.setState({editorState:t},e.afterChange(t)))},e.setWrapperReference=function(t){e.wrapper=t},e.setEditorReference=function(t){e.props.editorRef&&e.props.editorRef(t),e.editor=t},e.getCompositeDecorator=function(t){var n=[].concat(gr(e.props.customDecorators),[{strategy:Un,component:Hn({showOpenOptionOnHover:t.link.showOpenOptionOnHover})}]);return e.props.mention&&n.push.apply(n,gr(function(t){return[new Yn(t.mentionClassName).getMentionDecorator(),new $n(t).getSuggestionDecorator()]}(dr(dr({},e.props.mention),{},{onChange:e.onChange,getEditorState:e.getEditorState,getSuggestions:e.getSuggestions,getWrapperRef:e.getWrapperRef,modalHandler:e.modalHandler})))),e.props.hashtag&&n.push(function(t){return new er(t).getHashtagDecorator()}(e.props.hashtag)),new s.CompositeDecorator(n)},e.getWrapperRef=function(){return e.wrapper},e.getEditorState=function(){return e.state?e.state.editorState:null},e.getSuggestions=function(){return e.props.mention&&e.props.mention.suggestions},e.afterChange=function(t){setTimeout(function(){var n=e.props,r=n.onChange,o=n.onContentStateChange;r&&r(Object(s.convertToRaw)(t.getCurrentContent())),o&&o(Object(s.convertToRaw)(t.getCurrentContent()))})},e.isReadOnly=function(){return e.props.readOnly},e.isImageAlignmentEnabled=function(){return e.state.toolbar.image.alignmentEnabled},e.createEditorState=function(t){var n;if(S(e.props,"editorState"))e.props.editorState&&(n=s.EditorState.set(e.props.editorState,{decorator:t}));else if(S(e.props,"defaultEditorState"))e.props.defaultEditorState&&(n=s.EditorState.set(e.props.defaultEditorState,{decorator:t}));else if(S(e.props,"contentState")){if(e.props.contentState){var r=Object(s.convertFromRaw)(e.props.contentState);n=s.EditorState.createWithContent(r,t),n=s.EditorState.moveSelectionToEnd(n)}}else if(S(e.props,"defaultContentState")||S(e.props,"initialContentState")){var o=e.props.defaultContentState||e.props.initialContentState;o&&(o=Object(s.convertFromRaw)(o),n=s.EditorState.createWithContent(o,t),n=s.EditorState.moveSelectionToEnd(n))}return n||s.EditorState.createEmpty(t)},e.filterEditorProps=function(t){return e=t,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(e).filter(function(t){return n.indexOf(t)<0}),o={},r&&0<r.length&&r.forEach(function(t){o[t]=e[t]}),o;var e,n,r,o},e.getStyleMap=function(t){return dr(dr({},Object(c.getCustomStyleMap)()),t.customStyleMap)},e.changeEditorState=function(t){var n=Object(s.convertFromRaw)(t),r=e.state.editorState;return r=s.EditorState.push(r,n,"insert-characters"),s.EditorState.moveSelectionToEnd(r)},e.focusEditor=function(){setTimeout(function(){e.editor.focus()})},e.handleKeyCommand=function(t){var n=e.state,r=n.editorState,o=n.toolbar.inline;if(o&&0<=o.options.indexOf(t)){var i=s.RichUtils.handleKeyCommand(r,t);if(i)return e.onChange(i),!0}return!1},e.handleReturn=function(t){if(w())return!0;var n=e.state.editorState,r=Object(c.handleNewLine)(n,t);return!!r&&(e.onChange(r),!0)},e.handlePastedTextFn=function(t,n){var r=e.state.editorState,o=e.props,i=o.handlePastedText,a=o.stripPastedStyles;return i?i(t,n,r,e.onChange):!a&&function(t,e,n,r){var o=Object(c.getSelectedBlock)(n);if(o&&"code"===o.type){var i=s.Modifier.replaceText(n.getCurrentContent(),n.getSelection(),t,n.getCurrentInlineStyle());return r(s.EditorState.push(n,i,"insert-characters")),!0}if(e){var a=x()(e),u=n.getCurrentContent();return a.entityMap.forEach(function(t,e){u=u.mergeEntityData(e,t)}),u=s.Modifier.replaceWithFragment(u,n.getSelection(),new D.List(a.contentBlocks)),r(s.EditorState.push(n,u,"insert-characters")),!0}return!1}(t,n,r,e.onChange)},e.preventDefault=function(t){"INPUT"===t.target.tagName||"LABEL"===t.target.tagName||"TEXTAREA"===t.target.tagName?e.focusHandler.onInputMouseDown():t.preventDefault()};var r=M(cr,t.toolbar),o=t.wrapperId?t.wrapperId:Math.floor(1e4*Math.random());e.wrapperId="rdw-wrapper-".concat(o),e.modalHandler=new f,e.focusHandler=new g,e.blockRendererFn=function(t,e){return function(n){if("function"==typeof e){var r=e(n,t,t.getEditorState);if(r)return r}if("atomic"===n.getType()){var o=t.getEditorState().getCurrentContent().getEntity(n.getEntityAt(0));if(o&&"IMAGE"===o.type)return{component:sr(t),editable:!1};if(o&&"EMBEDDED_LINK"===o.type)return{component:nr,editable:!1}}}}({isReadOnly:e.isReadOnly,isImageAlignmentEnabled:e.isImageAlignmentEnabled,getEditorState:e.getEditorState,onChange:e.onChange},t.customBlockRenderFunc),e.editorProps=e.filterEditorProps(t),e.customStyleMap=e.getStyleMap(t),e.compositeDecorator=e.getCompositeDecorator(r);var a=e.createEditorState(e.compositeDecorator);return Object(c.extractInlineStyle)(a),e.state={editorState:a,editorFocused:!1,toolbar:r},e}return t=i,(e=[{key:"componentDidMount",value:function(){this.modalHandler.init(this.wrapperId)}},{key:"componentDidUpdate",value:function(t){if(t!==this.props){var e={},n=this.props,r=n.editorState,o=n.contentState;if(!this.state.toolbar){var i=M(cr,i);e.toolbar=i}if(S(this.props,"editorState")&&r!==t.editorState)e.editorState=r?s.EditorState.set(r,{decorator:this.compositeDecorator}):s.EditorState.createEmpty(this.compositeDecorator);else if(S(this.props,"contentState")&&o!==t.contentState)if(o){var a=this.changeEditorState(o);a&&(e.editorState=a)}else e.editorState=s.EditorState.createEmpty(this.compositeDecorator);t.editorState===r&&t.contentState===o||Object(c.extractInlineStyle)(e.editorState),Object.keys(e).length&&this.setState(e),this.editorProps=this.filterEditorProps(this.props),this.customStyleMap=this.getStyleMap(this.props)}}},{key:"render",value:function(){var t=this.state,e=t.editorState,n=t.editorFocused,r=t.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,S=i.wrapperStyle,k=i.uploadCallback,C=i.ariaLabel,M={modalHandler:this.modalHandler,editorState:e,onChange:this.onChange,translations:dr(dr({},ur[a||p]),f)},O=n||this.focusHandler.isInputFocused()||!h;return o.a.createElement("div",{id:this.wrapperId,className:l()(b,"rdw-editor-wrapper"),style:S,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:O?"visible":"hidden"},w),onMouseDown:this.preventDefault,"aria-label":"rdw-toolbar","aria-hidden":(!n&&h).toString(),onFocus:this.onToolbarFocus},r.options.map(function(t,e){var n=jn[t],i=r[t];return"image"===t&&k&&(i.uploadCallback=k),o.a.createElement(n,pr({key:e},M,{config:i}))}),d&&d.map(function(t,e){return o.a.cloneElement(t,dr({key:e},M))})),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:e,onChange:this.onChange,blockStyleFn:_,customStyleMap:this.getStyleMap(this.props),handleReturn:this.handleReturn,handlePastedText:this.handlePastedTextFn,blockRendererFn:this.blockRendererFn,handleKeyCommand:this.handleKeyCommand,ariaLabel:C||"rdw-editor",blockRenderMap:c.blockRenderMap},this.editorProps))))}}])&&yr(t.prototype,e),Object.defineProperty(t,"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 _r=wr}],r.c=i,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=8);function r(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return o[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var o,i}(n(4012),n(5143),n(9568))},3816:t=>{"use strict";t.exports=function(t){return!(!t||!t.ownerDocument)&&t.nodeType===Node.ELEMENT_NODE}},3830:(t,e,n)=>{"use strict";var r=n(580),o=n(7337).OrderedSet,i=r.substr,a=o();t.exports=function(t,e){var n=Array(t.length).fill(a);return e&&e.forEach(function(e){for(var r=i(t,0,e.offset).length,o=r+i(t,e.offset,e.length).length;r<o;)n[r]=n[r].add(e.style),r++}),n}},3885:t=>{"use strict";var e="-",n={encode:function(t,n,r){return t+e+n+e+r},decode:function(t){var n=t.split(e).reverse(),r=n[0],o=n[1];return{blockKey:n.slice(2).reverse().join(e),decoratorKey:parseInt(o,10),leafKey:parseInt(r,10)}}};t.exports=n},3914:(t,e,n)=>{"use strict";var r,o=n(1708),i=n(7337),a=n(6408),s=i.OrderedMap,c={getDirectionMap:function(t,e){r?r.reset():r=new o;var n=t.getBlockMap(),c=n.valueSeq().map(function(t){return a(r).getDirection(t.getText())}),u=s(n.keySeq().zip(c));return null!=e&&i.is(e,u)?e:u}};t.exports=c},3919:(t,e,n)=>{"use strict";var r=n(9938),o=n(2242),i=n(2935),a=n(1296),s=n(7392),c=n(4316);t.exports=function(t,e){var n,u=t._latestEditorState,l=u.getSelection(),p=e.target;if(l.isCollapsed())e.preventDefault();else{if(c(p)){var f=p;n=s(i.getScrollParent(f))}var d=a(u);t.setClipboard(d),t.setMode("cut"),setTimeout(function(){t.restoreEditorDOM(n),t.exitCurrentMode(),t.update(function(t){var e=r.removeRange(t.getCurrentContent(),t.getSelection(),"forward");return o.push(t,e,"remove-range")}(u))},0)}}},3954:(t,e,n)=>{"use strict";function r(t){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}n.d(e,{A:()=>r})},3998:t=>{"use strict";var e=/([A-Z])/g;t.exports=function(t){return t.replace(e,"-$1").toLowerCase()}},4005:(t,e,n)=>{var r=n(2048),o=n(5930),i=n(8327);function a(t,e){return new i(e).process(t)}(e=t.exports=a).filterXSS=a,e.FilterXSS=i,function(){for(var t in r)e[t]=r[t];for(var n in o)e[n]=o[n]}(),"undefined"!=typeof window&&(window.filterXSS=t.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=t.exports)},4012:e=>{"use strict";e.exports=t},4071:(t,e,n)=>{"use strict";var r=n(9938),o=n(2242);t.exports=function(t){var e=r.splitBlock(t.getCurrentContent(),t.getSelection());return o.push(t,e,"split-block")}},4092:(t,e,n)=>{"use strict";var r=n(3018),o=n(7337).Map,i={add:function(t,e,n){return a(t,e,n,!0)},remove:function(t,e,n){return a(t,e,n,!1)}};function a(t,e,n,i){var a=t.getBlockMap(),s=e.getStartKey(),c=e.getStartOffset(),u=e.getEndKey(),l=e.getEndOffset(),p=a.skipUntil(function(t,e){return e===s}).takeUntil(function(t,e){return e===u}).concat(o([[u,a.get(u)]])).map(function(t,e){var o,a;s===u?(o=c,a=l):(o=e===s?c:0,a=e===u?l:t.getLength());for(var p,f=t.getCharacterList();o<a;)p=f.get(o),f=f.set(o,i?r.applyStyle(p,n):r.removeStyle(p,n)),o++;return t.set("characterList",f)});return t.merge({blockMap:a.merge(p),selectionBefore:e,selectionAfter:e})}t.exports=i},4134:(t,e,n)=>{"use strict";var r=n(4534),o=n(953),i=n(3731),a=n(4793);function s(t,e,n,r){if(t===n)return!0;if(!n.startsWith(t))return!1;var i=n.slice(t.length);return!!e&&(i=r?r(i):i,o.contains(i,e))}function c(t){return"Windows"===r.platformName?t.replace(/^\s*NT/,""):t}var u={isBrowser:function(t){return s(r.browserName,r.browserFullVersion,t)},isBrowserArchitecture:function(t){return s(r.browserArchitecture,null,t)},isDevice:function(t){return s(r.deviceName,null,t)},isEngine:function(t){return s(r.engineName,r.engineVersion,t)},isPlatform:function(t){return s(r.platformName,r.platformFullVersion,t,c)},isPlatformArchitecture:function(t){return s(r.platformArchitecture,null,t)}};t.exports=i(u,a)},4143:(t,e,n)=>{"use strict";var r=n(1617),o=n(2242),i=n(8488),a=n(5188);t.exports=function(t){var e=a(t,function(t){var e=t.getSelection(),n=e.getStartOffset();if(0===n)return i(t,1);var o=e.getStartKey(),a=t.getCurrentContent().getBlockForKey(o).getText().slice(0,n),s=r.getBackward(a);return i(t,s.length||1)},"backward");return e===t.getCurrentContent()?t:o.push(t,e,"remove-range")}},4146:(t,e,n)=>{"use strict";var r=n(4363),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(t){return r.isMemo(t)?a:s[t.$$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;t.exports=function t(e,n,r){if("string"!=typeof n){if(h){var o=d(n);o&&o!==h&&t(e,o,r)}var a=l(n);p&&(a=a.concat(p(n)));for(var s=c(e),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(e,y,v)}catch(t){}}}}return e}},4184:(t,e,n)=>{"use strict";n.d(e,{HM:()=>a,JF:()=>s,SP:()=>l,bN:()=>f,yU:()=>p});var r=n(1635),o=n(4012),i=n(7683);function a(t){!function(t,e,n){if(void 0===n&&(n=Error),!t)throw new n("[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}(t)}var s=(0,r.Cl)((0,r.Cl)({},i.JF),{textComponent:o.Fragment}),c={key:42},u=function(t){return o.isValidElement(t)?o.createElement(o.Fragment,c,t):t},l=function(t){var e;return null!==(e=o.Children.map(t,u))&&void 0!==e?e:[]};function p(t){return function(e){return t(o.Children.toArray(e))}}function f(t,e){if(t===e)return!0;if(!t||!e)return!1;var n=Object.keys(t),r=Object.keys(e),o=n.length;if(r.length!==o)return!1;for(var i=0;i<o;i++){var a=n[i];if(t[a]!==e[a]||!Object.prototype.hasOwnProperty.call(e,a))return!1}return!0}},4213:function(t,e,n){var r,o;void 0===(o="function"==typeof(r=function(){"use strict";function e(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){s(r.response,e,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function o(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}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(t,n,a){var s=i.URL||i.webkitURL,c=document.createElement("a");n=n||t.name||"download",c.download=n,c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?o(c):r(c.href)?e(t,n,a):o(c,c.target="_blank")):(c.href=s.createObjectURL(t),setTimeout(function(){s.revokeObjectURL(c.href)},4e4),setTimeout(function(){o(c)},0))}:"msSaveOrOpenBlob"in navigator?function(t,n,i){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,i),n);else if(r(t))e(t,n,i);else{var a=document.createElement("a");a.href=t,a.target="_blank",setTimeout(function(){o(a)})}}:function(t,n,r,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof t)return e(t,n,r);var s="application/octet-stream"===t.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 t=l.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=t:location=t,o=null},l.readAsDataURL(t)}else{var p=i.URL||i.webkitURL,f=p.createObjectURL(t);o?o.location=f:location.href=f,o=null,setTimeout(function(){p.revokeObjectURL(f)},4e4)}});i.saveAs=s.saveAs=s,t.exports=s})?r.apply(e,[]):r)||(t.exports=o)},4293:(t,e,n)=>{"use strict";n.d(e,{ZE:()=>o,Im:()=>u,tv:()=>p,Tu:()=>v,eW:()=>c,oF:()=>l,N1:()=>y,N6:()=>h,jA:()=>g,Jp:()=>d,xm:()=>m,Qh:()=>f,qg:()=>ct});var r,o,i,a,s=n(1635);function c(t){return t.type===o.literal}function u(t){return t.type===o.argument}function l(t){return t.type===o.number}function p(t){return t.type===o.date}function f(t){return t.type===o.time}function d(t){return t.type===o.select}function h(t){return t.type===o.plural}function g(t){return t.type===o.pound}function m(t){return t.type===o.tag}function y(t){return!(!t||"object"!=typeof t||t.type!==i.number)}function v(t){return!(!t||"object"!=typeof t||t.type!==i.dateTime)}!function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(r||(r={})),(a=o||(o={}))[a.literal=0]="literal",a[a.argument=1]="argument",a[a.number=2]="number",a[a.date=3]="date",a[a.time=4]="time",a[a.select=5]="select",a[a.plural=6]="plural",a[a.pound=7]="pound",a[a.tag=8]="tag",function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(i||(i={}));var b=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,w=/(?:[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 _(t){var e={};return t.replace(w,function(t){var n=t.length;switch(t[0]){case"G":e.era=4===n?"long":5===n?"narrow":"short";break;case"y":e.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":e.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":e.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":e.weekday=4===n?"long":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][n-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][n-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][n-1];break;case"k":e.hourCycle="h24",e.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":e.minute=["numeric","2-digit"][n-1];break;case"s":e.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":e.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""}),e}var E=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function S(t){return t.replace(/^(.*?)-/,"")}var k=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,C=/^(@+)?(\+|#+)?[rs]?$/g,M=/(\*)(0+)|(#+)(0+)|(0+)/g,O=/^(0+)$/;function x(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(C,function(t,n,r){return"string"!=typeof r?(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length):"+"===r?e.minimumSignificantDigits=n.length:"#"===n[0]?e.maximumSignificantDigits=n.length:(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""}),e}function D(t){switch(t){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 T(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var n=t.slice(0,2);if("+!"===n?(e.signDisplay="always",t=t.slice(2)):"+?"===n&&(e.signDisplay="exceptZero",t=t.slice(2)),!O.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function A(t){return D(t)||{}}function I(t){for(var e={},n=0,r=t;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=o.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=S(o.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=(0,s.Cl)((0,s.Cl)((0,s.Cl)({},e),{notation:"scientific"}),o.options.reduce(function(t,e){return(0,s.Cl)((0,s.Cl)({},t),A(e))},{}));continue;case"engineering":e=(0,s.Cl)((0,s.Cl)((0,s.Cl)({},e),{notation:"engineering"}),o.options.reduce(function(t,e){return(0,s.Cl)((0,s.Cl)({},t),A(e))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";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(M,function(t,n,r,o,i,a){if(n)e.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(O.test(o.stem))e.minimumIntegerDigits=o.stem.length;else if(k.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(k,function(t,n,r,o,i,a){return"*"===r?e.minimumFractionDigits=n.length:o&&"#"===o[0]?e.maximumFractionDigits=o.length:i&&a?(e.minimumFractionDigits=i.length,e.maximumFractionDigits=i.length+a.length):(e.minimumFractionDigits=n.length,e.maximumFractionDigits=n.length),""});var i=o.options[0];"w"===i?e=(0,s.Cl)((0,s.Cl)({},e),{trailingZeroDisplay:"stripIfInteger"}):i&&(e=(0,s.Cl)((0,s.Cl)({},e),x(i)))}else if(C.test(o.stem))e=(0,s.Cl)((0,s.Cl)({},e),x(o.stem));else{var a=D(o.stem);a&&(e=(0,s.Cl)((0,s.Cl)({},e),a));var c=T(o.stem);c&&(e=(0,s.Cl)((0,s.Cl)({},e),c))}}return e}var j,N={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function L(t){var e=t.hourCycle;if(void 0===e&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){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=t.language;return"root"!==r&&(n=t.maximize().region),(N[n||""]||N[r||""]||N["".concat(r,"-001")]||N["001"])[0]}var P=new RegExp("^".concat(b.source,"*")),R=new RegExp("".concat(b.source,"*$"));function z(t,e){return{start:t,end:e}}var B=!!String.prototype.startsWith&&"_a".startsWith("a",1),F=!!String.fromCodePoint,U=!!Object.fromEntries,H=!!String.prototype.codePointAt,K=!!String.prototype.trimStart,V=!!String.prototype.trimEnd,Y=Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},q=!0;try{q="a"===(null===(j=tt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===j?void 0:j[0])}catch(t){q=!1}var W,G=B?function(t,e,n){return t.startsWith(e,n)}:function(t,e,n){return t.slice(n,n+e.length)===e},Q=F?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n,r="",o=t.length,i=0;o>i;){if((n=t[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},Z=U?Object.fromEntries:function(t){for(var e={},n=0,r=t;n<r.length;n++){var o=r[n],i=o[0],a=o[1];e[i]=a}return e},J=H?function(t,e){return t.codePointAt(e)}:function(t,e){var n=t.length;if(!(e<0||e>=n)){var r,o=t.charCodeAt(e);return o<55296||o>56319||e+1===n||(r=t.charCodeAt(e+1))<56320||r>57343?o:r-56320+(o-55296<<10)+65536}},$=K?function(t){return t.trimStart()}:function(t){return t.replace(P,"")},X=V?function(t){return t.trimEnd()}:function(t){return t.replace(R,"")};function tt(t,e){return new RegExp(t,e)}if(q){var et=tt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");W=function(t,e){var n;return et.lastIndex=e,null!==(n=et.exec(t)[1])&&void 0!==n?n:""}}else W=function(t,e){for(var n=[];;){var r=J(t,e);if(void 0===r||it(r)||at(r))break;n.push(r),e+=r>=65536?2:1}return Q.apply(void 0,n)};var nt=function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,n){for(var i=[];!this.isEOF();){var a=this.char();if(123===a){if((s=this.parseArgument(t,n)).err)return s;i.push(s.val)}else{if(125===a&&t>0)break;if(35!==a||"plural"!==e&&"selectordinal"!==e){if(60===a&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(r.UNMATCHED_CLOSING_TAG,z(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&rt(this.peek()||0)){if((s=this.parseTag(t,e)).err)return s;i.push(s.val)}else{var s;if((s=this.parseLiteral(t,e)).err)return s;i.push(s.val)}}else{var c=this.clonePosition();this.bump(),i.push({type:o.pound,location:z(c,this.clonePosition())})}}}return{val:i,err:null}},t.prototype.parseTag=function(t,e){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:o.literal,value:"<".concat(i,"/>"),location:z(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,e,!0);if(a.err)return a;var s=a.val,c=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!rt(this.char()))return this.error(r.INVALID_TAG,z(c,this.clonePosition()));var u=this.clonePosition();return i!==this.parseTagName()?this.error(r.UNMATCHED_CLOSING_TAG,z(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:o.tag,value:i,children:s,location:z(n,this.clonePosition())},err:null}:this.error(r.INVALID_TAG,z(c,this.clonePosition())))}return this.error(r.UNCLOSED_TAG,z(n,this.clonePosition()))}return this.error(r.INVALID_TAG,z(n,this.clonePosition()))},t.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&ot(this.char());)this.bump();return this.message.slice(t,this.offset())},t.prototype.parseLiteral=function(t,e){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(e);if(i)r+=i;else{var a=this.tryParseUnquoted(t,e);if(a)r+=a;else{var s=this.tryParseLeftAngleBracket();if(!s)break;r+=s}}}var c=z(n,this.clonePosition());return{val:{type:o.literal,value:r,location:c},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(rt(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},t.prototype.tryParseQuote=function(t){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"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(n);this.bump()}return Q.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===e||"selectordinal"===e)||125===n&&t>0?null:(this.bump(),Q(n))},t.prototype.parseArgument=function(t,e){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,z(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(r.EMPTY_ARGUMENT,z(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(r.MALFORMED_ARGUMENT,z(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,z(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:o.argument,value:i,location:z(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,z(n,this.clonePosition())):this.parseArgumentOptions(t,e,i,n);default:return this.error(r.MALFORMED_ARGUMENT,z(n,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),n=W(this.message,e),r=e+n.length;return this.bumpTo(r),{value:n,location:z(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,n,a){var c,u=this.clonePosition(),l=this.parseIdentifierIfPossible().value,p=this.clonePosition();switch(l){case"":return this.error(r.EXPECT_ARGUMENT_TYPE,z(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=X(E.val)).length)return this.error(r.EXPECT_ARGUMENT_STYLE,z(this.clonePosition(),this.clonePosition()));f={style:y,styleLocation:z(d,this.clonePosition())}}if((S=this.tryParseArgumentClose(a)).err)return S;var h=z(a,this.clonePosition());if(f&&G(null==f?void 0:f.style,"::",0)){var g=$(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(t,e){for(var n="",r=0;r<t.length;r++){var o=t.charAt(r);if("j"===o){for(var i=0;r+1<t.length&&t.charAt(r+1)===o;)i++,r++;var a=1+(1&i),s=i<2?1:3+(i>>1),c=L(e);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?_(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,z(v,(0,s.Cl)({},v)));this.bumpSpace();var b=this.parseIdentifierIfPossible(),w=0;if("select"!==l&&"offset"===b.value){if(!this.bumpIf(":"))return this.error(r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,z(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(),w=E.val}var S,k=this.tryParsePluralOrSelectOptions(t,l,e,b);if(k.err)return k;if((S=this.tryParseArgumentClose(a)).err)return S;var C=z(a,this.clonePosition());return"select"===l?{val:{type:o.select,value:n,options:Z(k.val),location:C},err:null}:{val:{type:o.plural,value:n,options:Z(k.val),offset:w,pluralType:"plural"===l?"cardinal":"ordinal",location:C},err:null};default:return this.error(r.INVALID_ARGUMENT_TYPE,z(u,p))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,z(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=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,z(n,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var n=[];try{n=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],n=0,r=t.split(E).filter(function(t){return t.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");e.push({stem:i,options:a})}return e}(t)}catch(t){return this.error(r.INVALID_NUMBER_SKELETON,e)}return{val:{type:i.number,tokens:n,location:e,parsedOptions:this.shouldParseSkeletons?I(n):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(t,e,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"===e||!this.bumpIf("="))break;var f=this.tryParseDecimalInteger(r.EXPECT_PLURAL_ARGUMENT_SELECTOR,r.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;l=z(p,this.clonePosition()),u=this.message.slice(p.offset,this.offset())}if(c.has(u))return this.error("select"===e?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"===e?r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,z(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(t+1,e,n);if(h.err)return h;var g=this.tryParseArgumentClose(d);if(g.err)return g;s.push([u,{value:h.val,location:z(d,this.clonePosition())}]),c.add(u),this.bumpSpace(),u=(i=this.parseIdentifierIfPossible()).value,l=i.location}return 0===s.length?this.error("select"===e?r.EXPECT_SELECT_ARGUMENT_SELECTOR:r.EXPECT_PLURAL_ARGUMENT_SELECTOR,z(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(r.MISSING_OTHER_CLAUSE,z(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){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=z(r,this.clonePosition());return o?Y(i*=n)?{val:i,err:null}:this.error(e,s):this.error(t,s)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=J(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},t.prototype.bumpIf=function(t){if(G(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(t){var e=this.offset(),n=this.message.indexOf(t,e);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&it(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),n=this.message.charCodeAt(e+(t>=65536?2:1));return null!=n?n:null},t}();function rt(t){return t>=97&&t<=122||t>=65&&t<=90}function ot(t){return 45===t||46===t||t>=48&&t<=57||95===t||t>=97&&t<=122||t>=65&&t<=90||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function it(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function at(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||166===t||167===t||169===t||171===t||172===t||174===t||176===t||177===t||182===t||187===t||191===t||215===t||247===t||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||10088===t||10089===t||10090===t||10091===t||10092===t||10093===t||10094===t||10095===t||10096===t||10097===t||10098===t||10099===t||10100===t||10101===t||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||10627===t||10628===t||10629===t||10630===t||10631===t||10632===t||10633===t||10634===t||10635===t||10636===t||10637===t||10638===t||10639===t||10640===t||10641===t||10642===t||10643===t||10644===t||10645===t||10646===t||10647===t||10648===t||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function st(t){t.forEach(function(t){if(delete t.location,d(t)||h(t))for(var e in t.options)delete t.options[e].location,st(t.options[e].value);else l(t)&&y(t.style)||(p(t)||f(t))&&v(t.style)?delete t.style.location:m(t)&&st(t.children)})}function ct(t,e){void 0===e&&(e={}),e=(0,s.Cl)({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var n=new nt(t,e).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==e?void 0:e.captureLocation)||st(n.val),n.val}},4316:t=>{"use strict";t.exports=function(t){if(!t||!("ownerDocument"in t))return!1;if("ownerDocument"in t){var e=t;if(!e.ownerDocument.defaultView)return e instanceof Node;if(e instanceof e.ownerDocument.defaultView.Node)return!0}return!1}},4363:(t,e,n)=>{"use strict";t.exports=n(2799)},4373:t=>{t.exports=function(t){var e=Object(t),n=[];for(var r in e)n.unshift(r);return function t(){for(;n.length;)if((r=n.pop())in e)return t.value=r,t.done=!1,t;return t.done=!0,t}},t.exports.__esModule=!0,t.exports.default=t.exports},4379:(t,e,n)=>{"use strict";var r=n(1988),o=n(5203),i=n(3885),a=n(7337),s=n(4012),c=n(8003),u=(a.List,function(t){var e,n;function a(){return t.apply(this,arguments)||this}return n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,a.prototype.render=function(){var t=this.props,e=t.block,n=t.contentState,a=t.customStyleFn,u=t.customStyleMap,l=t.decorator,p=t.direction,f=t.forceSelection,d=t.hasSelection,h=t.selection,g=t.tree,m=e.getKey(),y=e.getText(),v=g.size-1,b=this.props.children||g.map(function(t,c){var g=t.get("decoratorKey"),b=t.get("leaves"),w=b.size-1,_=b.map(function(t,n){var r=i.encode(m,c,n),l=t.get("start"),p=t.get("end");return s.createElement(o,{key:r,offsetKey:r,block:e,start:l,selection:d?h:null,forceSelection:f,text:y.slice(l,p),styleSet:e.getInlineStyleAt(l),customStyleMap:u,customStyleFn:a,isLast:g===v&&n===w})}).toArray();return g&&l?s.createElement(r,{block:e,children:_,contentState:n,decorator:l,decoratorKey:g,direction:p,leafSet:t,text:y,key:c}):_}).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));t.exports=u},4435:(t,e,n)=>{"use strict";var r=n(5224),o=n(7376),i=n(7337),a=(i.List,i.Map),s=function(t,e,n){if(t){var r=e.get(t);r&&e.set(t,n(r))}},c=function(t,e){var n=[];if(!t)return n;for(var r=e.get(t);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?e.get(o):null}return n},u=function(t,e,n){if(!t)return null;for(var r=n.get(t.getKey()).getNextSiblingKey();r&&!e.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},l=function(t,e,n){if(!t)return null;for(var r=n.get(t.getKey()).getPrevSiblingKey();r&&!e.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r};t.exports=function(t,e){if(e.isCollapsed())return t;var n,i=t.getBlockMap(),p=e.getStartKey(),f=e.getStartOffset(),d=e.getEndKey(),h=e.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(t,e,n){if(0===e)for(;e<n;)t=t.shift(),e++;else if(n===t.count())for(;n>e;)t=t.pop(),n--;else{var r=t.slice(0,e),o=t.slice(n);t=r.concat(o).toList()}return t}(g.getCharacterList(),f,h):g.getCharacterList().slice(0,f).concat(m.getCharacterList().slice(h));var _=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(t,e){return e===p}).takeUntil(function(t,e){return e===d}).filter(function(t,e){return-1===v.indexOf(e)}).concat(a([[d,null]])).map(function(t,e){return e===p?_:null}),S=i.merge(E).filter(function(t){return!!t});return y&&g!==m&&(S=function(t,e,n,r){return t.withMutations(function(i){if(s(e.getKey(),i,function(t){return t.merge({nextSibling:u(t,i,r),prevSibling:l(t,i,r)})}),s(n.getKey(),i,function(t){return t.merge({nextSibling:u(t,i,r),prevSibling:l(t,i,r)})}),c(e.getKey(),r).forEach(function(t){return s(t,i,function(t){return t.merge({children:t.getChildKeys().filter(function(t){return i.get(t)}),nextSibling:u(t,i,r),prevSibling:l(t,i,r)})})}),s(e.getNextSiblingKey(),i,function(t){return t.merge({prevSibling:e.getPrevSiblingKey()})}),s(e.getPrevSiblingKey(),i,function(t){return t.merge({nextSibling:u(t,i,r)})}),s(n.getNextSiblingKey(),i,function(t){return t.merge({prevSibling:l(t,i,r)})}),s(n.getPrevSiblingKey(),i,function(t){return t.merge({nextSibling:n.getNextSiblingKey()})}),c(n.getKey(),r).forEach(function(t){s(t,i,function(t){return t.merge({children:t.getChildKeys().filter(function(t){return i.get(t)}),nextSibling:u(t,i,r),prevSibling:l(t,i,r)})})}),function(t,e){var n=[];if(!t)return n;for(var r=o(t,e);r&&e.get(r);){var i=e.get(r);n.push(r),r=i.getParentKey()?o(i,e):null}return n}(n,r).forEach(function(t){return s(t,i,function(t){return t.merge({nextSibling:u(t,i,r),prevSibling:l(t,i,r)})})}),null==t.get(e.getKey())&&null!=t.get(n.getKey())&&n.getParentKey()===e.getKey()&&null==n.getPrevSiblingKey()){var a=e.getPrevSiblingKey();s(n.getKey(),i,function(t){return t.merge({prevSibling:a})}),s(a,i,function(t){return t.merge({nextSibling:n.getKey()})});var p=a?t.get(a):null,f=p?p.getParentKey():null;if(e.getChildKeys().forEach(function(t){s(t,i,function(t){return t.merge({parent:f})})}),null!=f){var d=t.get(f);s(f,i,function(t){return t.merge({children:d.getChildKeys().concat(e.getChildKeys())})})}s(e.getChildKeys().find(function(e){return null===t.get(e).getNextSiblingKey()}),i,function(t){return t.merge({nextSibling:e.getNextSiblingKey()})})}})}(S,g,m,i)),t.merge({blockMap:S,selectionBefore:e,selectionAfter:e.merge({anchorKey:p,anchorOffset:f,focusKey:p,focusOffset:f,isBackward:!1})})}},4447:(t,e,n)=>{"use strict";var r=n(2242),o=n(4134);t.exports=function(t,e){var n=t._latestEditorState,i=n.getSelection();if(!i.getHasFocus()){var a=i.set("hasFocus",!0);t.props.onFocus&&t.props.onFocus(e),o.isBrowser("Chrome < 60.0.3081.0")?t.update(r.forceSelection(n,a)):t.update(r.acceptSelection(n,a))}}},4453:(t,e,n)=>{"use strict";var r=n(3816);t.exports=function t(e){if(r(e)){var n=e,o=n.getAttribute("data-offset-key");if(o)return o;for(var i=0;i<n.childNodes.length;i++){var a=t(n.childNodes[i]);if(a)return a}}return null}},4467:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(816);function o(t,e,n){return(e=(0,r.A)(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},4534:(t,e,n)=>{"use strict";var r,o="Unknown",i=(new(n(7232))).getResult(),a=function(t){if(!t)return{major:"",minor:""};var e=t.split(".");return{major:e[0],minor:e[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};t.exports=s},4566:(t,e,n)=>{"use strict";var r=n(7274),o=n(9402),i=n(1914),a=n(2463),s=function(){function t(){this._subscriber=new o,this._currentSubscription=null}var e=t.prototype;return e.addListener=function(t,e,n){return this._subscriber.addSubscription(t,new r(this._subscriber,e,n))},e.once=function(t,e,n){var r=this;return this.addListener(t,function(){r.removeCurrentListener(),e.apply(n,arguments)})},e.removeAllListeners=function(t){this._subscriber.removeAllSubscriptions(t)},e.removeCurrentListener=function(){this._currentSubscription||i(!1),this._subscriber.removeSubscription(this._currentSubscription)},e.listeners=function(t){var e=this._subscriber.getSubscriptionsForType(t);return e?e.filter(a.thatReturnsTrue).map(function(t){return t.listener}):[]},e.emit=function(t){var e=this._subscriber.getSubscriptionsForType(t);if(e){for(var n=Object.keys(e),r=0;r<n.length;r++){var o=e[n[r]];o&&(this._currentSubscription=o,this.__emitToSubscription.apply(this,[o].concat(Array.prototype.slice.call(arguments))))}this._currentSubscription=null}},e.__emitToSubscription=function(t,e){var n=Array.prototype.slice.call(arguments,2);t.listener.apply(t.context,n)},t}();t.exports=s},4576:(t,e,n)=>{"use strict";var r=n(6033).unstable_flushControlled;t.exports=r},4594:(t,e,n)=>{"use strict";var r=n(9395);t.exports=r},4633:(t,e,n)=>{var r=n(5172),o=n(6993),i=n(5869),a=n(887),s=n(1791),c=n(4373),u=n(579);function l(){"use strict";var e=o(),n=e.m(l),p=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function f(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))}var d={throw:1,return:2,break:3,continue:3};function h(t){var e,n;return function(r){e||(e={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(t,e){return n(r.a,d[t],e)},delegateYield:function(t,o,i){return e.resultName=o,n(r.d,u(t),i)},finish:function(t){return n(r.f,t)}},n=function(t,n,o){r.p=e.prev,r.n=e.next;try{return t(n,o)}finally{e.next=r.n}}),e.resultName&&(e[e.resultName]=r.v,e.resultName=void 0),e.sent=r.v,e.next=r.n;try{return t.call(this,e)}finally{r.p=e.prev,r.n=e.next}}}return(t.exports=l=function(){return{wrap:function(t,n,r,o){return e.w(h(t),n,r,o&&o.reverse())},isGeneratorFunction:f,mark:e.m,awrap:function(t,e){return new r(t,e)},AsyncIterator:s,async:function(t,e,n,r,o){return(f(e)?a:i)(h(t),e,n,r,o)},keys:c,values:u}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=l,t.exports.__esModule=!0,t.exports.default=t.exports},4658:(t,e,n)=>{"use strict";var r=n(5377);t.exports=function(t){var e=r(t),n=0,o=0,i=0,a=0;if(e.length){if(e.length>1&&0===e[0].width){var s=e[1];n=s.top,o=s.right,i=s.bottom,a=s.left}else{var c=e[0];n=c.top,o=c.right,i=c.bottom,a=c.left}for(var u=1;u<e.length;u++){var l=e[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}}},4660:(t,e,n)=>{"use strict";var r=n(3334),o=n(7204),i=n(4134),a=n(4909),s=n(9758),c=n(9677),u=n(646),l=n(3816),p=i.isBrowser("IE");function f(t,e){if(!t)return"[empty]";var n=d(t,e);return n.nodeType===Node.TEXT_NODE?n.textContent:(l(n)||u(!1),n.outerHTML)}function d(t,e){var n=void 0!==e?e(t):[];if(t.nodeType===Node.TEXT_NODE){var r=t.textContent.length;return c(t).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var o=t.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var i=t.childNodes,a=0;a<i.length;a++)o.appendChild(d(i[a],e));return o}function h(t,e){for(var n=t,r=n;n;){if(l(n)&&r.hasAttribute("contenteditable"))return f(n,e);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function g(t){return null===t.nodeValue?t.childNodes.length:t.nodeValue.length}function m(t,e,n,r){var i=s();if(t.extend&&null!=e&&a(i,e)){n>g(e)&&o.logSelectionStateFailure({anonymizedDom:h(e),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var c=e===t.focusNode;try{t.rangeCount>0&&t.extend&&t.extend(e,n)}catch(a){throw o.logSelectionStateFailure({anonymizedDom:h(e,function(e){var n=[];return e===i&&n.push("active element"),e===t.anchorNode&&n.push("selection anchor node"),e===t.focusNode&&n.push("selection focus node"),n}),extraParams:JSON.stringify({activeElementName:i?i.nodeName:null,nodeIsFocus:e===t.focusNode,nodeWasFocus:c,selectionRangeCount:t.rangeCount,selectionAnchorNodeName:t.anchorNode?t.anchorNode.nodeName:null,selectionAnchorOffset:t.anchorOffset,selectionFocusNodeName:t.focusNode?t.focusNode.nodeName:null,selectionFocusOffset:t.focusOffset,message:a?""+a:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),a}}else if(e&&t.rangeCount>0){var u=t.getRangeAt(0);u.setEnd(e,n),t.addRange(u.cloneRange())}}function y(t,e,n,i){var a=c(e).createRange();if(n>g(e)&&(o.logSelectionStateFailure({anonymizedDom:h(e),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(i.toJS())}),r.handleExtensionCausedError()),a.setStart(e,n),p)try{t.addRange(a)}catch(t){}else t.addRange(a)}t.exports={setDraftEditorSelection:function(t,e,n,r,o){var i=c(e);if(a(i.documentElement,e)){var s=i.defaultView.getSelection(),u=t.getAnchorKey(),l=t.getAnchorOffset(),p=t.getFocusKey(),f=t.getFocusOffset(),d=t.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,e,l-r,t),void m(s,e,f-r,t);if(d){if(b&&(s.removeAllRanges(),y(s,e,f-r,t)),v){var w=s.focusNode,_=s.focusOffset;s.removeAllRanges(),y(s,e,l-r,t),m(s,w,_,t)}}else v&&(s.removeAllRanges(),y(s,e,l-r,t)),b&&m(s,e,f-r,t)}},addFocusToSelection:m}},4712:(t,e,n)=>{"use strict";var r;function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){i(t,e,n[e])})}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n(3018),s=n(6840),c=n(5224),u=n(3387),l=n(1608),p=n(5324),f=n(8003),d=n(6991),h=n(9248),g=n(7282),m=n(7337),y=m.List,v=m.Map,b=m.OrderedSet,w=n(316),_=n(2623),E=n(5291),S=n(7296),k=g("draft_tree_data_support"),C=new RegExp("\r","g"),M=new RegExp("\n","g"),O=new RegExp("^\n","g"),x=new RegExp(" ","g"),D=new RegExp(" ?","g"),T=new RegExp("​?","g"),A=["bold","bolder","500","600","700","800","900"],I=["light","lighter","normal","100","200","300","400"],j=["className","href","rel","target","title"],N=["alt","className","height","src","width"],L=(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(t){return E(t)&&t.style.fontFamily.includes("monospace")?"CODE":null},z=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(L).some(function(n){t.classList.contains(n)&&(e=L[n])}),e},B=function(t){if(!w(t))return!1;var e=t;if(!e.href||"http:"!==e.protocol&&"https:"!==e.protocol&&"mailto:"!==e.protocol&&"tel:"!==e.protocol)return!1;try{return new p(e.href),!0}catch(t){return!1}},F=function(t){if(!S(t))return!1;var e=t;return!(!e.attributes.getNamedItem("src")||!e.attributes.getNamedItem("src").value)},U=function(t,e){if(!E(t))return e;var n=t,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return e.withMutations(function(t){A.indexOf(r)>=0?t.add("BOLD"):I.indexOf(r)>=0&&t.remove("BOLD"),"italic"===o?t.add("ITALIC"):"normal"===o&&t.remove("ITALIC"),"underline"===i&&t.add("UNDERLINE"),"line-through"===i&&t.add("STRIKETHROUGH"),"none"===i&&(t.remove("UNDERLINE"),t.remove("STRIKETHROUGH"))})},H=function(t){return"ul"===t||"ol"===t},K=function(){function t(t,e){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=t,this.disambiguate=e}var e=t.prototype;return e.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=[]},e.addDOMNode=function(t){var e;return this.contentBlocks=[],this.currentDepth=0,(e=this.blockConfigs).push.apply(e,this._toBlockConfigs([t],b())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},e.getContentBlocks=function(){return 0===this.contentBlocks.length&&(k?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},e._makeBlockConfig=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=o({key:t.key||d(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:y(),prevSibling:null,nextSibling:null,childConfigs:[]},t);return this.characterList=y(),this.currentBlockType="unstyled",this.currentText="",e},e._toBlockConfigs=function(t,e){for(var n=[],r=0;r<t.length;r++){var o=t[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),e)),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,e);else if(B(o))this._addAnchorNode(o,n,e);else{var u=e;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,e);else this._addTextNode(o,e);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"),!k&&E(o)&&("unordered-list-item"===c||"ordered-list-item"===c)){var h=o;this.currentDepth=z(h,this.currentDepth)}var g=d(),m=this._toBlockConfigs(Array.from(o.childNodes),e);this._trimCurrentText(),n.push(this._makeBlockConfig({key:g,childConfigs:m,type:c})),this.currentDepth=p,this.wrapper=f}}}return n},e._appendText=function(t,e){var n;this.currentText+=t;var r=a.create({style:e,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(t.length).fill(r))},e._trimCurrentText=function(){var t=this.currentText.length,e=t-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry(function(t){return null!==t.getEntity()});(e=void 0!==r?Math.min(e,r[0]):e)>(n=void 0!==(r=this.characterList.reverse().findEntry(function(t){return null!==t.getEntity()}))?Math.max(n,t-r[0]):n)?(this.currentText="",this.characterList=y()):(this.currentText=this.currentText.slice(e,n),this.characterList=this.characterList.slice(e,n))},e._addTextNode=function(t,e){var n=t.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(O,"")).replace(M," ")),this._appendText(n,e)},e._addBreakNode=function(t,e){_(t)&&this._appendText("\n",e)},e._addImgNode=function(t,e){if(S(t)){var n=t,r={};N.forEach(function(t){var e=n.getAttribute(t);e&&(r[t]=e)}),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),g("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",e):this._appendText("📷",e),this.currentEntity=null}},e._addAnchorNode=function(t,e,n){if(w(t)){var r=t,o={};j.forEach(function(t){var e=r.getAttribute(t);e&&(o[t]=e)}),o.url=new p(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),e.push.apply(e,this._toBlockConfigs(Array.from(t.childNodes),n)),this.currentEntity=null}},e._toContentBlocks=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t.length-1,r=0;r<=n;r++){var i=t[r];i.parent=e,i.prevSibling=r>0?t[r-1].key:null,i.nextSibling=r<n?t[r+1].key:null,i.children=y(i.childConfigs.map(function(t){return t.key})),this.contentBlocks.push(new c(o({},i))),this._toContentBlocks(i.childConfigs,i.key)}},e._hoistContainersInBlockConfigs=function(t){var e=this;return y(t).flatMap(function(t){return"unstyled"!==t.type||""!==t.text?[t]:e._hoistContainersInBlockConfigs(t.childConfigs)})},e._toFlatContentBlocks=function(t){var e=this;this._hoistContainersInBlockConfigs(t).forEach(function(t){var n=e._extractTextFromBlockConfigs(t.childConfigs),r=n.text,i=n.characterList;e.contentBlocks.push(new s(o({},t,{text:t.text+r,characterList:t.characterList.concat(i)})))})},e._extractTextFromBlockConfigs=function(t){for(var e=t.length-1,n="",r=y(),o=0;o<=e;o++){var i=t[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}},t}();t.exports=function(t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:h)(t=t.trim().replace(C,"").replace(x," ").replace(D,"").replace(T,""));if(!n)return null;var r=function(t){var e={};return t.mapKeys(function(t,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach(function(n){void 0===e[n]?e[n]=t:"string"==typeof e[n]?e[n]=[e[n],t]:e[n].push(t)})}),v(e)}(e);return new K(r,function(t,e){return"li"===t?"ol"===e?"ordered-list-item":"unordered-list-item":null}).addDOMNode(n).getContentBlocks()}},4756:(t,e,n)=>{var r=n(4633)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},4793:t=>{"use strict";t.exports=function(t){var e={};return function(n){return e.hasOwnProperty(n)||(e[n]=t.call(this,n)),e[n]}}},4809:t=>{"use strict";t.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})}},4819:(t,e,n)=>{"use strict";function r(t,e){var n=e&&e.cache?e.cache:l,r=e&&e.serializer?e.serializer:c;return(e&&e.strategy?e.strategy:s)(t,{cache:n,serializer:r})}function o(t,e,n,r){var o,i=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),a=e.get(i);return void 0===a&&(a=t.call(this,r),e.set(i,a)),a}function i(t,e,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=e.get(o);return void 0===i&&(i=t.apply(this,r),e.set(o,i)),i}function a(t,e,n,r,o){return n.bind(e,t,r,o)}function s(t,e){return a(t,this,1===t.length?o:i,e.cache.create(),e.serializer)}n.d(e,{B:()=>r,W:()=>p});var c=function(){return JSON.stringify(arguments)},u=function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(t){return this.cache[t]},t.prototype.set=function(t,e){this.cache[t]=e},t}(),l={create:function(){return new u}},p={variadic:function(t,e){return a(t,this,i,e.cache.create(),e.serializer)},monadic:function(t,e){return a(t,this,o,e.cache.create(),e.serializer)}}},4848:(t,e,n)=>{"use strict";t.exports=n(1020)},4861:t=>{"use strict";t.exports=function(t){t._internalDrag=!0,t.setMode("drag")}},4909:(t,e,n)=>{"use strict";var r=n(5423);t.exports=function t(e,n){return!(!e||!n)&&(e===n||!r(e)&&(r(n)?t(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}},5091:(t,e,n)=>{"use strict";var r=n(9938),o=n(3885),i=n(2242),a=n(4134),s=n(1103).notEmptyKey,c=n(8372),u=n(7381),l=n(6408),p=a.isEngine("Gecko");t.exports=function(t,e){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var n=t.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=t._latestEditorState,v=l(c(a)),b=o.decode(v),w=b.blockKey,_=b.decoratorKey,E=b.leafKey,S=y.getBlockTree(w).getIn([_,"leaves",E]),k=S.start,C=S.end,M=y.getCurrentContent(),O=M.getBlockForKey(w),x=O.getText().slice(k,C);if(m.endsWith("\n\n")&&(m=m.slice(0,-1)),m!==x){var D,T,A,I,j=y.getSelection(),N=j.merge({anchorOffset:k,focusOffset:C,isBackward:!1}),L=O.getEntityAt(k),P=s(L)?M.getEntity(L):null,R="MUTABLE"===(null!=P?P.getMutability():null),z=R?"spellcheck-change":"apply-entity",B=r.replaceText(M,N,m,O.getInlineStyleAt(k),R?O.getEntityAt(k):null);if(p)D=n.anchorOffset,T=n.focusOffset,I=(A=k+Math.min(D,T))+Math.abs(D-T),D=A,T=I;else{var F=m.length-x.length;A=j.getStartOffset(),I=j.getEndOffset(),D=f?I+F:A,T=I+F}var U=B.merge({selectionBefore:M.getSelectionAfter(),selectionAfter:j.merge({anchorOffset:D,focusOffset:T})});t.update(i.push(y,U,z))}else{var H=e.nativeEvent.inputType;if(H){var K=function(t,e){return"deleteContentBackward"===t?u(e):e}(H,y);if(K!==y)return t.restoreEditorDOM(),void t.update(K)}}}}},5143:(t,e,n)=>{"use strict";var r=n(5889),o=n(5748),i=n(3018),a=n(9083),s=n(6840),c=n(7656),u=n(3387),l=n(7918),p=n(3299),f=n(1124),d=n(1608),h=n(9938),g=n(5407),m=n(2242),y=n(9414),v=n(6429),b=n(7018),w=n(1381),_=n(7470),E=n(428),S=n(6991),k=n(7811),C=n(894),M={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(4712),convertFromRaw:E,convertToRaw:_,genKey:S,getDefaultKeyBinding:k,getVisibleSelectionRect:C};t.exports=M},5169:(t,e,n)=>{"use strict";var r=n(2242);t.exports=function(t){var e=t.getSelection(),n=e.getEndKey(),o=t.getCurrentContent().getBlockForKey(n).getLength();return r.set(t,{selection:e.merge({anchorKey:n,anchorOffset:o,focusKey:n,focusOffset:o,isBackward:!1}),forceSelection:!0})}},5170:(t,e,n)=>{"use strict";var r=n(9938),o=n(2242),i=n(866),a=n(6408),s=null,c={cut:function(t){var e=t.getCurrentContent(),n=t.getSelection(),c=null;if(n.isCollapsed()){var u=n.getAnchorKey(),l=e.getBlockForKey(u).getLength();if(l===n.getAnchorOffset()){var p=e.getKeyAfter(u);if(null==p)return t;c=n.set("focusKey",p).set("focusOffset",0)}else c=n.set("focusOffset",l)}else c=n;c=a(c),s=i(e,c);var f=r.removeRange(e,c,"forward");return f===e?t:o.push(t,f,"remove-range")},paste:function(t){if(!s)return t;var e=r.replaceWithFragment(t.getCurrentContent(),t.getSelection(),s);return o.push(t,e,"insert-fragment")}};t.exports=c},5172:t=>{t.exports=function(t,e){this.v=t,this.k=e},t.exports.__esModule=!0,t.exports.default=t.exports},5188:(t,e,n)=>{"use strict";var r=n(9938),o=n(7282)("draft_tree_data_support");t.exports=function(t,e,n){var i=t.getSelection(),a=t.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(t.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(t.isSelectionAtStartOfContent())return a;if((s=e(t))===i)return a}return r.removeRange(a,s,n)}},5203:(t,e,n)=>{"use strict";var r=n(5228),o=n(6268),i=n(4012),a=n(646),s=n(2623),c=n(4660).setDraftEditorSelection,u=function(t){var e,n;function u(){for(var e,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(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e=t.call.apply(t,[this].concat(a))||this))?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e}n=t,(e=u).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var l=u.prototype;return l._setSelection=function(){var t=this.props.selection;if(null!=t&&t.getHasFocus()){var e=this.props,n=e.block,r=e.start,o=e.text,i=n.getKey(),u=r+o.length;if(t.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(t,p,i,r,u)}}},l.shouldComponentUpdate=function(t){var e=this.leaf;return e||a(!1),e.textContent!==t.text||t.styleSet!==this.props.styleSet||t.forceSelection},l.componentDidUpdate=function(){this._setSelection()},l.componentDidMount=function(){this._setSelection()},l.render=function(){var t=this,e=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(t,e){var n={},o=s[e];return void 0!==o&&t.textDecoration!==o.textDecoration&&(n.textDecoration=[t.textDecoration,o.textDecoration].join(" ").trim()),r(t,o,n)},{});if(c){var f=c(l,e);p=r(p,f)}return i.createElement("span",{"data-offset-key":u,ref:function(e){return t.leaf=e},style:p},i.createElement(o,null,n))},u}(i.Component);t.exports=u},5224:(t,e,n)=>{"use strict";var r=n(3018),o=n(8227),i=n(7337),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(t,e){return t.getStyle()===e.getStyle()},h=function(t,e){return t.getEntity()===e.getEntity()},g=function(t){var e,n;function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;return t.call(this,function(t){if(!t)return t;var e=t.characterList,n=t.text;return n&&!e&&(t.characterList=a(l(r.EMPTY,n.length))),t}(e))||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__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(t){var e=this.getCharacterList().get(t);return e?e.getStyle():p},s.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.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(t,e){o(this.getCharacterList(),d,t,e)},s.findEntityRanges=function(t,e){o(this.getCharacterList(),h,t,e)},i}(u(f));t.exports=g},5228:t=>{"use strict";var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,o){for(var i,a,s=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),c=1;c<arguments.length;c++){for(var u in i=Object(arguments[c]))n.call(i,u)&&(s[u]=i[u]);if(e){a=e(i);for(var l=0;l<a.length;l++)r.call(i,a[l])&&(s[a[l]]=i[a[l]])}}return s}},5291:t=>{"use strict";t.exports=function(t){return!(!t||!t.ownerDocument)&&(t.ownerDocument.defaultView?t instanceof t.ownerDocument.defaultView.HTMLElement:t instanceof HTMLElement)}},5323:(t,e,n)=>{var r=n(1100);t.exports=function(t,e){";"!==(t=r.trimRight(t))[t.length-1]&&(t+=";");var n=t.length,o=!1,i=0,a=0,s="";function c(){if(!o){var n=r.trim(t.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=e(i,s.length,u,l,n);p&&(s+=p+"; ")}}}i=a+1}for(;a<n;a++){var u=t[a];if("/"===u&&"*"===t[a+1]){var l=t.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)}},5324:t=>{"use strict";var e=function(){function t(t){var e,n;n=void 0,(e="_uri")in this?Object.defineProperty(this,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[e]=n,this._uri=t}return t.prototype.toString=function(){return this._uri},t}();t.exports=e},5361:(t,e,n)=>{"use strict";function r(t,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},r(t,e)}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r(t,e)}n.d(e,{A:()=>o})},5377:(t,e,n)=>{"use strict";var r=n(4134),o=n(646),i=r.isBrowser("Chrome")?function(t){for(var e=t.cloneRange(),n=[],r=t.endContainer;null!=r;r=r.parentNode){var i=r===t.commonAncestorContainer;i?e.setStart(t.startContainer,t.startOffset):e.setStart(e.endContainer,0);var a,s=Array.from(e.getClientRects());if(n.push(s),i)return n.reverse(),(a=[]).concat.apply(a,n);e.setEndBefore(r)}o(!1)}:function(t){return Array.from(t.getClientRects())};t.exports=i},5389:t=>{"use strict";t.exports=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:window}},5407:(t,e,n)=>{"use strict";var r=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__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(7337).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));t.exports=r},5419:(t,e,n)=>{"use strict";n(4594),t.exports=function(t,e){var n,r=t.getSelection(),o=r.getStartKey(),i=r.getStartOffset(),a=t.getCurrentContent(),s=o;return e>a.getBlockForKey(o).getText().length-i?(s=a.getKeyAfter(o),n=0):n=i+e,r.merge({focusKey:s,focusOffset:n})}},5423:(t,e,n)=>{"use strict";var r=n(5504);t.exports=function(t){return r(t)&&3==t.nodeType}},5458:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(3145),o=n(7800);function i(t){return function(t){if(Array.isArray(t))return(0,r.A)(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||(0,o.A)(t)||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.")}()}},5462:(t,e,n)=>{"use strict";var r=n(7337).Map;t.exports=function(t,e,n){var o=e.getStartKey(),i=e.getEndKey(),a=t.getBlockMap(),s=a.toSeq().skipUntil(function(t,e){return e===o}).takeUntil(function(t,e){return e===i}).concat(r([[i,a.get(i)]])).map(n);return t.merge({blockMap:a.merge(s),selectionBefore:e,selectionAfter:e})}},5481:(t,e,n)=>{"use strict";var r=n(1439),o=n(580).strlen;t.exports=function(t,e){var n=[];return t.findEntityRanges(function(t){return!!t.getEntity()},function(i,a){var s=t.getText(),c=t.getEntityAt(i);n.push({offset:o(s.slice(0,i)),length:o(s.slice(i,a)),key:Number(e[r.stringify(c)])})}),n}},5504:t=>{"use strict";t.exports=function(t){var e=(t?t.ownerDocument||t:document).defaultView||window;return!(!t||!("function"==typeof e.Node?t instanceof e.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}},5546:t=>{function e(n,r,o,i){var a=Object.defineProperty;try{a({},"",{})}catch(n){a=0}t.exports=e=function(t,n,r,o){function i(n,r){e(t,n,function(t){return this._invoke(n,r,t)})}n?a?a(t,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):t[n]=r:(i("next",0),i("throw",1),i("return",2))},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,r,o,i)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},5556:(t,e,n)=>{t.exports=n(2694)()},5748:(t,e,n)=>{"use strict";var r=n(7337).OrderedMap,o={createFromArray:function(t){return r(t.map(function(t){return[t.getKey(),t]}))}};t.exports=o},5822:(t,e,n)=>{"use strict";var r=n(646),o="LTR",i=null;function a(t){return t===o||"RTL"===t}function s(t){return a(t)||r(!1),t===o?"ltr":"rtl"}function c(t){i=t}var u={NEUTRAL:"NEUTRAL",LTR:o,RTL:"RTL",isStrong:a,getHTMLDir:s,getHTMLDirIfDifferent:function(t,e){return a(t)||r(!1),a(e)||r(!1),t===e?null:s(t)},setGlobalDir:c,initGlobalDir:function(){c(o)},getGlobalDir:function(){return i||this.initGlobalDir(),i||r(!1),i}};t.exports=u},5852:t=>{"use strict";t.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}},5856:t=>{"use strict";var e=function(){function t(t){this.subscriber=t}return t.prototype.remove=function(){this.subscriber&&(this.subscriber.removeSubscription(this),this.subscriber=null)},t}();t.exports=e},5869:(t,e,n)=>{var r=n(887);t.exports=function(t,e,n,o,i){var a=r(t,e,n,o,i);return a.next().then(function(t){return t.done?t.value:a.next()})},t.exports.__esModule=!0,t.exports.default=t.exports},5889:(t,e,n)=>{"use strict";function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){o(t,e,n[e])})}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(5748),a=n(3018),s=n(6840),c=n(5224),u=n(9938),l=n(2242),p=n(6991),f=n(7282),d=n(7337),h=n(6059),g=f("draft_tree_data_support"),m=g?c:s,y=d.List,v=d.Repeat,b={insertAtomicBlock:function(t,e,n){var o=t.getCurrentContent(),s=t.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:e}),_={key:p(),type:"atomic",text:n,characterList:y(v(w,n.length))},E={key:p(),type:"unstyled"};g&&(_=r({},_,{nextSibling:E.key}),E=r({},E,{prevSibling:_.key}));var S=[new m(_),new m(E)],k=i.createFromArray(S),C=u.replaceWithFragment(b,h,k),M=C.merge({selectionBefore:s,selectionAfter:C.getSelectionAfter().set("hasFocus",!0)});return l.push(t,M,"insert-fragment")},moveAtomicBlock:function(t,e,n,r){var o,i=t.getCurrentContent(),a=t.getSelection();if("before"===r||"after"===r){var s=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=h(i,e,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,e,f,"before");else if(p.getEndOffset()===f.getLength())o=h(c,e,f,"after");else{var d=u.splitBlock(c,p),g=d.getSelectionAfter(),m=d.getBlockForKey(g.getFocusKey());o=h(d,e,m,"before")}}var y=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return l.push(t,y,"move-block")}};t.exports=b},5930:(t,e,n)=>{var r=n(9349);function o(t){var e,n=r.spaceIndex(t);return e=-1===n?t.slice(1,-1):t.slice(1,n+1),"/"===(e=r.trim(e).toLowerCase()).slice(0,1)&&(e=e.slice(1)),"/"===e.slice(-1)&&(e=e.slice(0,-1)),e}function i(t){return"</"===t.slice(0,2)}var a=/[^a-zA-Z0-9\\_:.-]/gim;function s(t,e){for(;e<t.length;e++){var n=t[e];if(" "!==n)return"="===n?e:-1}}function c(t,e){for(;e<t.length;e++){var n=t[e];if(" "!==n)return"'"===n||'"'===n?e:-1}}function u(t,e){for(;e>0;e--){var n=t[e];if(" "!==n)return"="===n?e:-1}}function l(t){return function(t){return'"'===t[0]&&'"'===t[t.length-1]||"'"===t[0]&&"'"===t[t.length-1]}(t)?t.substr(1,t.length-2):t}e.parseTag=function(t,e,n){"use strict";var r="",a=0,s=!1,c=!1,u=0,l=t.length,p="",f="";t:for(u=0;u<l;u++){var d=t.charAt(u);if(!1===s){if("<"===d){s=u;continue}}else if(!1===c){if("<"===d){r+=n(t.slice(a,u)),s=u,a=u;continue}if(">"===d||u===l-1){r+=n(t.slice(a,s)),p=o(f=t.slice(s,u+1)),r+=e(s,r.length,p,f,i(f)),a=u+1,s=!1;continue}if('"'===d||"'"===d)for(var h=1,g=t.charAt(u-h);""===g.trim()||"="===g;){if("="===g){c=d;continue t}g=t.charAt(u-++h)}}else if(d===c){c=!1;continue}}return a<l&&(r+=n(t.substr(a))),r},e.parseAttr=function(t,e){"use strict";var n=0,o=0,i=[],p=!1,f=t.length;function d(t,n){if(!((t=(t=r.trim(t)).replace(a,"").toLowerCase()).length<1)){var o=e(t,n||"");o&&i.push(o)}}for(var h=0;h<f;h++){var g,m=t.charAt(h);if(!1!==p||"="!==m)if(!1===p||h!==o){if(/\s|\n|\t/.test(m)){if(t=t.replace(/\s|\n|\t/g," "),!1===p){if(-1===(g=s(t,h))){d(r.trim(t.slice(n,h))),p=!1,n=h+1;continue}h=g-1;continue}if(-1===(g=u(t,h-1))){d(p,l(r.trim(t.slice(n,h)))),p=!1,n=h+1;continue}}}else{if(-1===(g=t.indexOf(m,h+1)))break;d(p,r.trim(t.slice(o+1,g))),p=!1,n=(h=g)+1}else p=t.slice(n,h),n=h+1,o='"'===t.charAt(n)||"'"===t.charAt(n)?n:c(t,h+1)}return n<t.length&&(!1===p?d(t.slice(n)):d(p,l(r.trim(t.slice(n))))),r.trim(i.join(" "))}},5935:(t,e,n)=>{"use strict";var r=n(9938),o=n(2242),i=n(866);t.exports=function(t){var e=t.getSelection();if(!e.isCollapsed())return t;var n=e.getAnchorOffset();if(0===n)return t;var a,s,c=e.getAnchorKey(),u=t.getCurrentContent(),l=u.getBlockForKey(c).getLength();if(l<=1)return t;n===l?(a=e.set("anchorOffset",n-1),s=e):s=(a=e.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(t,m,"insert-fragment");return o.acceptSelection(y,s)}},5989:(t,e,n)=>{"use strict";var r=n(580),o=n(9677),i=n(5377),a=n(646);function s(t,e){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<t.length;a++){var s=t[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<e&&i-r<e}function c(t){switch(t.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return t.length;default:return t.childNodes.length}}t.exports=function(t){t.collapsed||a(!1);var e=(t=t.cloneRange()).startContainer;1!==e.nodeType&&(e=e.parentNode);var n=function(t){var e=getComputedStyle(t),n=o(t),r=n.createElement("div");r.style.fontFamily=e.fontFamily,r.style.fontSize=e.fontSize,r.style.fontStyle=e.fontStyle,r.style.fontWeight=e.fontWeight,r.style.lineHeight=e.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}(e),u=t.endContainer,l=t.endOffset;for(t.setStart(t.startContainer,0);s(i(t),n)&&(u=t.startContainer,l=t.startOffset,u.parentNode||a(!1),t.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(t.setStart(p,h),!s(i(t),n))break;u=p,l=h}if(-1===h||0===p.childNodes.length)break;f=c(p=p.childNodes[h])}return t.setStart(u,l),t}},6018:(t,e,n)=>{var r=n(7043),o=n(3473);for(var i in(e=t.exports=function(t,e){return new o(e).process(t)}).FilterCSS=o,r)e[i]=r[i];"undefined"!=typeof window&&(window.filterCSS=t.exports)},6033:t=>{"use strict";t.exports=e},6044:(t,e,n)=>{"use strict";var r=n(3018),o=n(8227),i=n(646);function a(t,e,n){var a=e.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"!==t.__get(l).getMutability()){for(var p,f=function(t,e,n){var r;return o(t,function(t,e){return t.getEntity()===e.getEntity()},function(t){return t.getEntity()===e},function(t,e){t<=n&&e>=n&&(r={start:t,end:e})}),"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 e.set("characterList",a)}return e}t.exports=function(t,e){var n=t.getBlockMap(),r=t.getEntityMap(),o={},i=e.getStartKey(),s=e.getStartOffset(),c=n.get(i),u=a(r,c,s);u!==c&&(o[i]=u);var l=e.getEndKey(),p=e.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?t.merge({blockMap:n.merge(o),selectionAfter:e}):t.set("selectionAfter",e)}},6059:(t,e,n)=>{"use strict";var r=n(5224),o=n(7376),i=n(7337),a=n(646),s=i.OrderedMap,c=i.List,u=function(t,e,n){if(t){var r=e.get(t);r&&e.set(t,n(r))}},l=function(t,e,n,r,o){if(!o)return t;var i="after"===r,a=e.getKey(),s=n.getKey(),l=e.getParentKey(),p=e.getNextSiblingKey(),f=e.getPrevSiblingKey(),d=n.getParentKey(),h=i?n.getNextSiblingKey():s,g=i?s:n.getPrevSiblingKey();return t.withMutations(function(t){u(l,t,function(t){var e=t.getChildKeys();return t.merge({children:e.delete(e.indexOf(a))})}),u(f,t,function(t){return t.merge({nextSibling:p})}),u(p,t,function(t){return t.merge({prevSibling:f})}),u(h,t,function(t){return t.merge({prevSibling:a})}),u(g,t,function(t){return t.merge({nextSibling:a})}),u(d,t,function(t){var e=t.getChildKeys(),n=e.indexOf(s),r=i?n+1:0!==n?n-1:0,o=e.toArray();return o.splice(r,0,a),t.merge({children:c(o)})}),u(a,t,function(t){return t.merge({nextSibling:h,prevSibling:g,parent:d})})})};t.exports=function(t,e,n,i){"replace"===i&&a(!1);var c=n.getKey(),u=e.getKey();u===c&&a(!1);var p=t.getBlockMap(),f=e instanceof r,d=[e],h=p.delete(u);f&&(d=[],h=p.withMutations(function(t){var n=e.getNextSiblingKey(),r=o(e,t);t.toSeq().skipUntil(function(t){return t.getKey()===u}).takeWhile(function(t){var e=t.getKey(),o=e===u,i=n&&e!==n,a=!n&&t.getParentKey()&&(!r||e!==r);return!!(o||i||a)}).forEach(function(e){d.push(e),t.delete(e.getKey())})}));var g=h.toSeq().takeUntil(function(t){return t===n}),m=h.toSeq().skipUntil(function(t){return t===n}).skip(1),y=d.map(function(t){return[t.getKey(),t]}),v=s();if("before"===i){var b=t.getBlockBefore(c);b&&b.getKey()===e.getKey()&&a(!1),v=g.concat([].concat(y,[[c,n]]),m).toOrderedMap()}else if("after"===i){var w=t.getBlockAfter(c);w&&w.getKey()===u&&a(!1),v=g.concat([[c,n]].concat(y),m).toOrderedMap()}return t.merge({blockMap:l(v,e,n,i,f),selectionBefore:t.getSelectionAfter(),selectionAfter:t.getSelectionAfter().merge({anchorKey:u,focusKey:u})})}},6127:t=>{"use strict";t.exports=function(t,e){t.setMode("drag"),e.preventDefault()}},6207:(t,e,n)=>{"use strict";var r=n(7204),o=n(2242),i=n(3564),a=n(120);t.exports=function(t){if(t._blockSelectEvents||t._latestEditorState!==t.props.editorState){if(t._blockSelectEvents){var e=t.props.editorState.getSelection();r.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(e.toJS())})}}else{var n=t.props.editorState,s=a(n,i(t)),c=s.selectionState;c!==n.getSelection()&&(n=s.needsRecovery?o.forceSelection(n,c):o.acceptSelection(n,c),t.update(n))}}},6268:(t,e,n)=>{"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(4012),a=n(4134),s=n(646),c=n(3816),u=a.isBrowser("IE <= 11"),l=function(t){var e,n;function a(e){var n;return o(r(n=t.call(this,e)||this),"_forceFlag",void 0),o(r(n),"_node",void 0),n._forceFlag=!1,n}n=t,(e=a).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var l=a.prototype;return l.shouldComponentUpdate=function(t){var e=this._node,n=""===t.children;c(e)||s(!1);var r=e;return n?!function(t){return u?"\n"===t.textContent:"BR"===t.tagName}(r):r.textContent!==t.children},l.componentDidMount=function(){this._forceFlag=!this._forceFlag},l.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},l.render=function(){var t,e=this;return""===this.props.children?this._forceFlag?(t=function(t){return e._node=t},u?i.createElement("span",{key:"A","data-text":"true",ref:t},"\n"):i.createElement("br",{key:"A","data-text":"true",ref:t})):function(t){return u?i.createElement("span",{key:"B","data-text":"true",ref:t},"\n"):i.createElement("br",{key:"B","data-text":"true",ref:t})}(function(t){return e._node=t}):i.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(t){return e._node=t}},this.props.children)},a}(i.Component);t.exports=l},6269:t=>{"use strict";t.exports=function(t,e,n){var r=t;if(n===r.count())e.forEach(function(t){r=r.push(t)});else if(0===n)e.reverse().forEach(function(t){r=r.unshift(t)});else{var o=r.slice(0,n),i=r.slice(n);r=o.concat(e,i).toList()}return r}},6408:t=>{"use strict";t.exports=function(t){if(null!=t)return t;throw new Error("Got unexpected null or undefined")}},6416:(t,e,n)=>{"use strict";var r=n(1952),o=n(7337);t.exports=function(t,e,n){var i=t.getBlockMap(),a=e.getStartKey(),s=e.getStartOffset(),c=e.getEndKey(),u=e.getEndOffset(),l=i.skipUntil(function(t,e){return e===a}).takeUntil(function(t,e){return e===c}).toOrderedMap().merge(o.OrderedMap([[c,i.get(c)]])).map(function(t,e){var o=e===a?s:0,i=e===c?u:t.getLength();return r(t,o,i,n)});return t.merge({blockMap:i.merge(l),selectionBefore:e,selectionAfter:e})}},6429:()=>{},6567:function(t){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e){"use strict";function n(t,e,n,r){return function(t,e,n,r){return{red:r[4*(n*e+t)],green:r[4*(n*e+t)+1],blue:r[4*(n*e+t)+2],alpha:r[4*(n*e+t)+3]}}(t,e,n,r).alpha}function r(t,e,r,o){for(var i=t?1:-1,a=t?0:r-1;t?a<r:a>-1;a+=i)for(var s=0;s<e;s++)if(n(s,a,e,o))return a;return null}function o(t,e,r,o){for(var i=t?1:-1,a=t?0:e-1;t?a<e:a>-1;a+=i)for(var s=0;s<r;s++)if(n(a,s,e,o))return a;return null}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.getContext("2d"),n=t.width,i=t.height,a=e.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=e.getImageData(u,s,l,p);return t.width=l,t.height=p,e.clearRect(0,0,l,p),e.putImageData(f,0,0),t}}])},6822:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(2284),o=n(9417);function i(t,e){if(e&&("object"==(0,r.A)(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.A)(t)}},6840:(t,e,n)=>{"use strict";var r=n(3018),o=n(8227),i=n(7337),a=i.List,s=i.Map,c=i.OrderedSet,u=i.Record,l=i.Repeat,p=c(),f=function(t){var e,n;function i(e){return t.call(this,function(t){if(!t)return t;var e=t.characterList,n=t.text;return n&&!e&&(t.characterList=a(l(r.EMPTY,n.length))),t}(e))||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__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(t){var e=this.getCharacterList().get(t);return e?e.getStyle():p},s.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null},s.findStyleRanges=function(t,e){o(this.getCharacterList(),d,t,e)},s.findEntityRanges=function(t,e){o(this.getCharacterList(),h,t,e)},i}(u({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:s()}));function d(t,e){return t.getStyle()===e.getStyle()}function h(t,e){return t.getEntity()===e.getEntity()}t.exports=f},6892:(t,e,n)=>{"use strict";var r=n(8748),o=n(3998);function i(t){return null==t?t:String(t)}t.exports=function(t,e){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(t,null)))return i(n.getPropertyValue(o(e)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(t,null))return i(n.getPropertyValue(o(e)));if("display"===e)return"none"}return t.currentStyle?i("float"===e?t.currentStyle.cssFloat||t.currentStyle.styleFloat:t.currentStyle[r(e)]):i(t.style&&t.style[r(e)])}},6894:(t,e)=>{"use strict";function n(t){return"object"!=typeof t||"toString"in t?t:Object.prototype.toString.call(t).slice(8,-1)}Object.defineProperty(e,"__esModule",{value:!0});var r="object"==typeof process&&!0;function o(t,e){if(!t){if(r)throw new Error("Invariant failed");throw new Error(e())}}e.invariant=o;var i=Object.prototype.hasOwnProperty,a=Array.prototype.splice,s=Object.prototype.toString;function c(t){return s.call(t).slice(8,-1)}var u=Object.assign||function(t,e){return l(e).forEach(function(n){i.call(e,n)&&(t[n]=e[n])}),t},l="function"==typeof Object.getOwnPropertySymbols?function(t){return Object.keys(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.keys(t)};function p(t){return Array.isArray(t)?u(t.constructor(t.length),t):"Map"===c(t)?new Map(t):"Set"===c(t)?new Set(t):t&&"object"==typeof t?u(Object.create(Object.getPrototypeOf(t)),t):t}var f=function(){function t(){this.commands=u({},d),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(t,e){return t===e},this.update.newContext=function(){return(new t).update}}return Object.defineProperty(t.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(t){this.update.isEquals=t},enumerable:!0,configurable:!0}),t.prototype.extend=function(t,e){this.commands[t]=e},t.prototype.update=function(t,e){var n=this,r="function"==typeof e?{$apply:e}:e;Array.isArray(t)&&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=t;return l(r).forEach(function(e){if(i.call(n.commands,e)){var o=t===a;a=n.commands[e](r[e],a,r,t),o&&n.isEquals(a,t)&&(a=t)}else{var s="Map"===c(t)?n.update(t.get(e),r[e]):n.update(t[e],r[e]),u="Map"===c(a)?a.get(e):a[e];n.isEquals(s,u)&&(void 0!==s||i.call(t,e))||(a===t&&(a=p(t)),"Map"===c(a)?a.set(e,s):a[e]=s)}}),a},t}();e.Context=f;var d={$push:function(t,e,n){return g(e,n,"$push"),t.length?e.concat(t):e},$unshift:function(t,e,n){return g(e,n,"$unshift"),t.length?t.concat(e):e},$splice:function(t,e,r,i){return function(t,e){o(Array.isArray(t),function(){return"Expected $splice target to be an array; got "+n(t)}),y(e.$splice)}(e,r),t.forEach(function(t){y(t),e===i&&t.length&&(e=p(i)),a.apply(e,t)}),e},$set:function(t,e,n){return function(t){o(1===Object.keys(t).length,function(){return"Cannot have more than one key in an object with $set"})}(n),t},$toggle:function(t,e){m(t,"$toggle");var n=t.length?p(e):e;return t.forEach(function(t){n[t]=!e[t]}),n},$unset:function(t,e,n,r){return m(t,"$unset"),t.forEach(function(t){Object.hasOwnProperty.call(e,t)&&(e===r&&(e=p(r)),delete e[t])}),e},$add:function(t,e,n,r){return v(e,"$add"),m(t,"$add"),"Map"===c(e)?t.forEach(function(t){var n=t[0],o=t[1];e===r&&e.get(n)!==o&&(e=p(r)),e.set(n,o)}):t.forEach(function(t){e!==r||e.has(t)||(e=p(r)),e.add(t)}),e},$remove:function(t,e,n,r){return v(e,"$remove"),m(t,"$remove"),t.forEach(function(t){e===r&&e.has(t)&&(e=p(r)),e.delete(t)}),e},$merge:function(t,e,r,i){var a,s;return a=e,o((s=t)&&"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(t).forEach(function(n){t[n]!==e[n]&&(e===i&&(e=p(i)),e[n]=t[n])}),e},$apply:function(t,e){var r;return o("function"==typeof(r=t),function(){return"update(): expected spec of $apply to be a function; got "+n(r)+"."}),t(e)}},h=new f;function g(t,e,r){o(Array.isArray(t),function(){return"update(): expected target of "+n(r)+" to be an array; got "+n(t)+"."}),m(e[r],r)}function m(t,e){o(Array.isArray(t),function(){return"update(): expected spec of "+n(e)+" to be an array; got "+n(t)+". Did you forget to wrap your parameter in an array?"})}function y(t){o(Array.isArray(t),function(){return"update(): expected spec of $splice to be an array of arrays; got "+n(t)+". Did you forget to wrap your parameters in an array?"})}function v(t,e){var r=c(t);o("Map"===r||"Set"===r,function(){return"update(): "+n(e)+" expects a target of type Set or Map; got "+n(r)})}e.isEquals=h.update.isEquals,e.extend=h.extend,e.default=h.update,e.default.default=t.exports=u(e.default,e)},6925:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6942:(t,e)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(t=a(t,i(n)))}return t}function i(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return o.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var n in t)r.call(t,n)&&t[n]&&(e=a(e,n));return e}function a(t,e){return e?t?t+" "+e:t+e:t}t.exports?(o.default=o,t.exports=o):void 0===(n=function(){return o}.apply(e,[]))||(t.exports=n)}()},6991:t=>{"use strict";var e={},n=Math.pow(2,24);t.exports=function(){for(var t;void 0===t||e.hasOwnProperty(t)||!isNaN(+t);)t=Math.floor(Math.random()*n).toString(32);return e[t]=!0,t}},6993:(t,e,n)=>{var r=n(5546);function o(){var e,n,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.toStringTag||"@@toStringTag";function c(t,o,i,a){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return r(c,"_invoke",function(t,r,o){var i,a,s,c=0,l=o||[],p=!1,f={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return i=t,a=0,s=e,f.n=n,u}};function d(t,r){for(a=t,s=r,n=0;!p&&c&&!o&&n<l.length;n++){var o,i=l[n],d=f.p,h=i[2];t>3?(o=h===r)&&(s=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=t<2&&d<i[1])?(a=0,f.v=r,f.n=i[1]):d<h&&(o=t<3||i[0]>r||r>h)&&(i[4]=t,i[5]=r,f.n=h,a=0))}if(o||t>1)return u;throw p=!0,r}return function(o,l,h){if(c>1)throw TypeError("Generator is already running");for(p&&1===l&&d(l,h),a=l,s=h;(n=a<2?e:s)||!p;){i||(a?a<3?(a>1&&(f.n=-1),d(a,s)):f.n=s:f.v=s);try{if(c=2,i){if(a||(o="next"),n=i[o]){if(!(n=n.call(i,s)))throw TypeError("iterator result is not an object");if(!n.done)return n;s=n.value,a<2&&(a=0)}else 1===a&&(n=i.return)&&n.call(i),a<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((n=(p=f.n<0)?s:t.call(r,f))!==u)break}catch(t){i=e,a=1,s=t}finally{c=1}}return{value:n,done:p}}}(t,i,a),!0),c}var u={};function l(){}function p(){}function f(){}n=Object.getPrototypeOf;var d=[][a]?n(n([][a]())):(r(n={},a,function(){return this}),n),h=f.prototype=l.prototype=Object.create(d);function g(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,r(t,s,"GeneratorFunction")),t.prototype=Object.create(h),t}return p.prototype=f,r(h,"constructor",f),r(f,"constructor",p),p.displayName="GeneratorFunction",r(f,s,"GeneratorFunction"),r(h),r(h,s,"Generator"),r(h,a,function(){return this}),r(h,"toString",function(){return"[object Generator]"}),(t.exports=o=function(){return{w:c,m:g}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},7003:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var r=n(4012).useLayoutEffect},7018:(t,e,n)=>{"use strict";var r=n(9938),o=n(2242),i=n(286),a=n(6408),s={currentBlockContainsLink:function(t){var e=t.getSelection(),n=t.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(e.getAnchorKey()).getCharacterList().slice(e.getStartOffset(),e.getEndOffset()).some(function(t){var e=t.getEntity();return!!e&&"LINK"===r.__get(e).getType()})},getCurrentBlockType:function(t){var e=t.getSelection();return t.getCurrentContent().getBlockForKey(e.getStartKey()).getType()},getDataObjectForLinkURL:function(t){return{url:t.toString()}},handleKeyCommand:function(t,e,n){switch(e){case"bold":return s.toggleInlineStyle(t,"BOLD");case"italic":return s.toggleInlineStyle(t,"ITALIC");case"underline":return s.toggleInlineStyle(t,"UNDERLINE");case"code":return s.toggleCode(t);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return s.onBackspace(t);case"delete":case"delete-word":case"delete-to-end-of-block":return s.onDelete(t);default:return null}},insertSoftNewline:function(t){var e=r.insertText(t.getCurrentContent(),t.getSelection(),"\n",t.getCurrentInlineStyle(),null),n=o.push(t,e,"insert-characters");return o.forceSelection(n,e.getSelectionAfter())},onBackspace:function(t){var e=t.getSelection();if(!e.isCollapsed()||e.getAnchorOffset()||e.getFocusOffset())return null;var n=t.getCurrentContent(),r=e.getStartKey(),i=n.getBlockBefore(r);if(i&&"atomic"===i.getType()){var a=n.getBlockMap().delete(i.getKey()),c=n.merge({blockMap:a,selectionAfter:e});if(c!==n)return o.push(t,c,"remove-range")}var u=s.tryToRemoveBlockStyle(t);return u?o.push(t,u,"change-block-type"):null},onDelete:function(t){var e=t.getSelection();if(!e.isCollapsed())return null;var n=t.getCurrentContent(),i=e.getStartKey(),a=n.getBlockForKey(i).getLength();if(e.getStartOffset()<a)return null;var s=n.getBlockAfter(i);if(!s||"atomic"!==s.getType())return null;var c=e.merge({focusKey:s.getKey(),focusOffset:s.getLength()}),u=r.removeRange(n,c,"forward");return u!==n?o.push(t,u,"remove-range"):null},onTab:function(t,e,n){var r=e.getSelection(),a=r.getAnchorKey();if(a!==r.getFocusKey())return e;var s=e.getCurrentContent(),c=s.getBlockForKey(a),u=c.getType();if("unordered-list-item"!==u&&"ordered-list-item"!==u)return e;t.preventDefault();var l=c.getDepth();if(!t.shiftKey&&l===n)return e;var p=i(s,r,t.shiftKey?-1:1,n);return o.push(e,p,"adjust-depth")},toggleBlockType:function(t,e){var n=t.getSelection(),i=n.getStartKey(),s=n.getEndKey(),c=t.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(t,e){return e!==i}).reverse().skipWhile(function(t,e){return e!==s}).some(function(t){return"atomic"===t.getType()}))return t;var p=c.getBlockForKey(i).getType()===e?"unstyled":e;return o.push(t,r.setBlockType(c,u,p),"change-block-type")},toggleCode:function(t){var e=t.getSelection(),n=e.getAnchorKey(),r=e.getFocusKey();return e.isCollapsed()||n!==r?s.toggleBlockType(t,"code-block"):s.toggleInlineStyle(t,"CODE")},toggleInlineStyle:function(t,e){var n=t.getSelection(),i=t.getCurrentInlineStyle();if(n.isCollapsed())return o.setInlineStyleOverride(t,i.has(e)?i.remove(e):i.add(e));var a,s=t.getCurrentContent();return a=i.has(e)?r.removeInlineStyle(s,n,e):r.applyInlineStyle(s,n,e),o.push(t,a,"change-inline-style")},toggleLink:function(t,e,n){var i=r.applyEntity(t.getCurrentContent(),e,n);return o.push(t,i,"apply-entity")},tryToRemoveBlockStyle:function(t){var e=t.getSelection(),n=e.getAnchorOffset();if(e.isCollapsed()&&0===n){var o=e.getAnchorKey(),i=t.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,e,"unstyled")}return null}};t.exports=s},7043:(t,e)=>{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;e.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},e.getDefaultWhiteList=n,e.onAttr=function(t,e,n){},e.onIgnoreAttr=function(t,e,n){},e.safeAttrValue=function(t,e){return r.test(e)?"":e}},7078:(t,e,n)=>{"use strict";var r=n(4909);t.exports=function(t){var e=t.ownerDocument.documentElement;if(!("getBoundingClientRect"in t)||!r(e,t))return{left:0,right:0,top:0,bottom:0};var n=t.getBoundingClientRect();return{left:Math.round(n.left)-e.clientLeft,right:Math.round(n.right)-e.clientLeft,top:Math.round(n.top)-e.clientTop,bottom:Math.round(n.bottom)-e.clientTop}}},7141:(t,e,n)=>{"use strict";var r=n(2242);t.exports=function(t,e){t.setMode("composite"),t.update(r.set(t._latestEditorState,{inCompositionMode:!0})),t._onCompositionStart(e)}},7204:t=>{"use strict";t.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}},7232:function(t,e,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",_="wearable",E="embedded",S="Amazon",k="Apple",C="ASUS",M="BlackBerry",O="Browser",x="Chrome",D="Firefox",T="Google",A="Honor",I="Huawei",j="LG",N="Microsoft",L="Motorola",P="Nvidia",R="OnePlus",z="Opera",B="OPPO",F="Samsung",U="Sharp",H="Sony",K="Xiaomi",V="Zebra",Y="Facebook",q="Chromium OS",W="Mac OS",G=" Browser",Q=function(t){for(var e={},n=0;n<t.length;n++)e[t[n].toUpperCase()]=t[n];return e},Z=function(t,e){return typeof t===u&&-1!==J(e).indexOf(J(t))},J=function(t){return t.toLowerCase()},$=function(t,e){if(typeof t===u)return t=t.replace(/^\s\s*/,""),typeof e===s?t:t.substring(0,500)},X=function(t,e){for(var n,r,o,s,u,l,p=0;p<e.length&&!u;){var f=e[p],d=e[p+1];for(n=r=0;n<f.length&&!u&&f[n];)if(u=f[n++].exec(t))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}},tt=function(t,e){for(var n in e)if(typeof e[n]===c&&e[n].length>0){for(var r=0;r<e[n].length;r++)if(Z(e[n][r],t))return"?"===n?i:n}else if(Z(e[n],t))return"?"===n?i:n;return e.hasOwnProperty("*")?e["*"]:t},et={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"},nt={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,z+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[g,[f,z+" GX"]],[/\bopr\/([\w\.]+)/i],[g,[f,z]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[g,[f,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[g,[f,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[f,g],[/quark(?:pc)?\/([-\w\.]+)/i],[g,[f,"Quark"]],[/\bddg\/([\w\.]+)/i],[g,[f,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[f,"UC"+O]],[/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 "+O]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+O],g],[/\bfocus\/([\w\.]+)/i],[g,[f,D+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[f,z+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[f,z+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[f,"MIUI"+G]],[/fxios\/([\w\.-]+)/i],[g,[f,D]],[/\bqihoobrowser\/?([\w\.]*)/i],[g,[f,"360"]],[/\b(qq)\/([\w\.]+)/i],[[f,/(.+)/,"$1Browser"],g],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1"+G],g],[/samsungbrowser\/([\w\.]+)/i],[g,[f,F+" Internet"]],[/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|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[f,g],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[f],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[g,f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,Y],g],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\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,x+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,x+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[f,"Android "+O]],[/(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,tt,{"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],[/(wolvic|librewolf)\/([\w\.]+)/i],[f,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)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[f,[g,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[f,[g,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[m,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[m,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[m,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[m,/ower/,"",J]],[/ sun4\w[;\)]/i],[[m,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[m,J]]],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,F],[d,b]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[p,[h,F],[d,v]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[p,[h,k],[d,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[p,[h,k],[d,b]],[/(macintosh);/i],[p,[h,k]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[p,[h,U],[d,v]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[p,[h,A],[d,b]],[/honor([-\w ]+)[;\)]/i],[p,[h,A],[d,v]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[p,[h,I],[d,b]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[p,[h,I],[d,v]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[p,/_/g," "],[h,K],[d,b]],[/\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|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[p,/_/g," "],[h,K],[d,v]],[/; (\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,B],[d,v]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[p,[h,tt,{OnePlus:["304","403","203"],"*":B}],[d,b]],[/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(?! 360)[\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,j],[d,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[p,[h,j],[d,v]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[p,[h,"Lenovo"],[d,b]],[/(nokia) (t[12][01])/i],[h,p,[d,b]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[p,/_/g," "],[d,v],[h,"Nokia"]],[/(pixel (c|tablet))\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,H],[d,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[p,"Xperia Tablet"],[h,H],[d,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[p,[h,R],[d,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[p,[h,S],[d,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[p,/(.+)/g,"Fire Phone $1"],[h,S],[d,v]],[/(playbook);[-\w\),; ]+(rim)/i],[p,h,[d,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[p,[h,M],[d,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[p,[h,C],[d,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[p,[h,C],[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 [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[p,[h,"TCL"],[d,b]],[/(itel) ((\w+))/i],[[h,J],p,[d,tt,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/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]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[p,[h,"Energizer"],[d,v]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[p,[h,"Cat"],[d,v]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[p,[h,"Smartfren"],[d,v]],[/droid.+; (a(?:015|06[35]|142p?))/i],[p,[h,"Nothing"],[d,v]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[p,[h,"Archos"],[d,b]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[p,[h,"Archos"],[d,v]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[h,p,[d,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[h,p,[d,v]],[/(kobo)\s(ereader|touch)/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]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[p,[h,P],[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,V],[d,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[p,[h,V],[d,v]],[/smart-tv.+(samsung)/i],[h,[d,w]],[/hbbtv.+maple;(\d+)/i],[[p,/^/,"SmartTV"],[h,F],[d,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,j],[d,w]],[/(apple) ?tv/i],[h,[p,k+" TV"],[d,w]],[/crkey/i],[[p,x+"cast"],[h,T],[d,w]],[/droid.+aft(\w+)( bui|\))/i],[p,[h,S],[d,w]],[/(shield \w+ tv)/i],[p,[h,P],[d,w]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[p,[h,U],[d,w]],[/(bravia[\w ]+)( bui|\))/i],[p,[h,H],[d,w]],[/(mi(tv|box)-?\w+) bui/i],[p,[h,K],[d,w]],[/Hbbtv.*(technisat) (.*);/i],[h,p,[d,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,$],[p,$],[d,w]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[p,[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,P],[d,y]],[/(playstation \w+)/i],[p,[h,H],[d,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[p,[h,N],[d,y]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[p,[h,F],[d,_]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[h,p,[d,_]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[p,[h,B],[d,_]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[p,[h,k],[d,_]],[/(opwwe\d{3})/i],[p,[h,R],[d,_]],[/(moto 360)/i],[p,[h,L],[d,_]],[/(smartwatch 3)/i],[p,[h,H],[d,_]],[/(g watch r)/i],[p,[h,j],[d,_]],[/droid.+; (wt63?0{2,3})\)/i],[p,[h,V],[d,_]],[/droid.+; (glass) \d/i],[p,[h,T],[d,_]],[/(pico) (4|neo3(?: link|pro)?)/i],[h,p,[d,_]],[/; (quest( \d| pro)?)/i],[p,[h,Y],[d,_]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[d,E]],[/(aeobc)\b/i],[p,[h,S],[d,E]],[/(homepod).+mac os/i],[p,[h,k],[d,E]],[/windows iot/i],[[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]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[p,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[f,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[f,g],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[f,g],[/ladybird\//i],[[f,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,g],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[f,[g,tt,et]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[g,tt,et],[f,"Windows"]],[/[adehimnop]{4,7}\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,W],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,f],[/(ubuntu) ([\w\.]+) like android/i],[[f,/(.+)/,"$1 Touch"],g],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[f,g],[/\(bb(10);/i],[g,[f,M]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\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,x+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,q],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)(?: arm\w*| x86\w*| ?)([\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]]},rt=function(t,e){if(typeof t===c&&(e=t,t=i),!(this instanceof rt))return new rt(t,e).getResult();var n=typeof o!==s&&o.navigator?o.navigator:i,r=t||(n&&n.userAgent?n.userAgent:""),y=n&&n.userAgentData?n.userAgentData:i,w=e?function(t,e){var n={};for(var r in t)e[r]&&e[r].length%2==0?n[r]=e[r].concat(t[r]):n[r]=t[r];return n}(nt,e):nt,_=n&&n.userAgent==r;return this.getBrowser=function(){var t,e={};return e[f]=i,e[g]=i,X.call(e,r,w.browser),e[l]=typeof(t=e[g])===u?t.replace(/[^\d\.]/g,"").split(".")[0]:i,_&&n&&n.brave&&typeof n.brave.isBrave==a&&(e[f]="Brave"),e},this.getCPU=function(){var t={};return t[m]=i,X.call(t,r,w.cpu),t},this.getDevice=function(){var t={};return t[h]=i,t[p]=i,t[d]=i,X.call(t,r,w.device),_&&!t[d]&&y&&y.mobile&&(t[d]=v),_&&"Macintosh"==t[p]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(t[p]="iPad",t[d]=b),t},this.getEngine=function(){var t={};return t[f]=i,t[g]=i,X.call(t,r,w.engine),t},this.getOS=function(){var t={};return t[f]=i,t[g]=i,X.call(t,r,w.os),_&&!t[f]&&y&&y.platform&&"Unknown"!=y.platform&&(t[f]=y.platform.replace(/chrome os/i,q).replace(/macos/i,W)),t},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(t){return r=typeof t===u&&t.length>500?$(t,500):t,this},this.setUA(r),this};rt.VERSION="0.7.41",rt.BROWSER=Q([f,g,l]),rt.CPU=Q([m]),rt.DEVICE=Q([p,h,d,y,v,w,b,_,E]),rt.ENGINE=rt.OS=Q([f,g]),typeof e!==s?(t.exports&&(e=t.exports=rt),e.UAParser=rt):n.amdO?(r=function(){return rt}.call(e,n,e,t))===i||(t.exports=r):typeof o!==s&&(o.UAParser=rt);var ot=typeof o!==s&&(o.jQuery||o.Zepto);if(ot&&!ot.ua){var it=new rt;ot.ua=it.getResult(),ot.ua.get=function(){return it.getUA()},ot.ua.set=function(t){it.setUA(t);var e=it.getResult();for(var n in e)ot.ua[n]=e[n]}}}("object"==typeof window?window:this)},7274:(t,e,n)=>{"use strict";var r=function(t){var e,n;function r(e,n,r){var o;return(o=t.call(this,e)||this).listener=n,o.context=r,o}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r}(n(5856));t.exports=r},7282:t=>{"use strict";t.exports=function(t){return!("undefined"==typeof window||!window.__DRAFT_GKX||!window.__DRAFT_GKX[t])}},7296:(t,e,n)=>{"use strict";var r=n(3816);t.exports=function(t){return!(!t||!t.ownerDocument)&&r(t)&&"IMG"===t.nodeName}},7337:function(t){t.exports=function(){"use strict";var t=Array.prototype.slice;function e(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function n(t){return a(t)?t:K(t)}function r(t){return s(t)?t:V(t)}function o(t){return c(t)?t:Y(t)}function i(t){return a(t)&&!u(t)?t:q(t)}function a(t){return!(!t||!t[p])}function s(t){return!(!t||!t[f])}function c(t){return!(!t||!t[d])}function u(t){return s(t)||c(t)}function l(t){return!(!t||!t[h])}e(r,n),e(o,n),e(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=32,y=31,v={},b={value:!1},w={value:!1};function _(t){return t.value=!1,t}function E(t){t&&(t.value=!0)}function S(){}function k(t,e){e=e||0;for(var n=Math.max(0,t.length-e),r=new Array(n),o=0;o<n;o++)r[o]=t[o+e];return r}function C(t){return void 0===t.size&&(t.size=t.__iterate(O)),t.size}function M(t,e){if("number"!=typeof e){var n=e>>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?C(t)+e:e}function O(){return!0}function x(t,e,n){return(0===t||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function D(t,e){return A(t,e,0)}function T(t,e){return A(t,e,e)}function A(t,e,n){return void 0===t?n:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var I="function"==typeof Symbol&&Symbol.iterator,j="@@iterator",N=I||j;function L(t){this.next=t}function P(t,e,n,r){var o=0===t?e:1===t?n:[e,n];return r?r.value=o:r={value:o,done:!1},r}function R(){return{value:void 0,done:!0}}function z(t){return!!U(t)}function B(t){return t&&"function"==typeof t.next}function F(t){var e=U(t);return e&&e.call(t)}function U(t){var e=t&&(I&&t[I]||t[j]);if("function"==typeof e)return e}function H(t){return t&&"number"==typeof t.length}function K(t){return null==t?nt():a(t)?t.toSeq():function(t){var e=it(t)||"object"==typeof t&&new $(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function V(t){return null==t?nt().toKeyedSeq():a(t)?s(t)?t.toSeq():t.fromEntrySeq():rt(t)}function Y(t){return null==t?nt():a(t)?s(t)?t.entrySeq():t.toIndexedSeq():ot(t)}function q(t){return(null==t?nt():a(t)?s(t)?t.entrySeq():t:ot(t)).toSetSeq()}L.prototype.toString=function(){return"[Iterator]"},L.KEYS=0,L.VALUES=1,L.ENTRIES=2,L.prototype.inspect=L.prototype.toSource=function(){return this.toString()},L.prototype[N]=function(){return this},e(K,n),K.of=function(){return K(arguments)},K.prototype.toSeq=function(){return this},K.prototype.toString=function(){return this.__toString("Seq {","}")},K.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},K.prototype.__iterate=function(t,e){return at(this,t,e,!0)},K.prototype.__iterator=function(t,e){return st(this,t,e,!0)},e(V,K),V.prototype.toKeyedSeq=function(){return this},e(Y,K),Y.of=function(){return Y(arguments)},Y.prototype.toIndexedSeq=function(){return this},Y.prototype.toString=function(){return this.__toString("Seq [","]")},Y.prototype.__iterate=function(t,e){return at(this,t,e,!1)},Y.prototype.__iterator=function(t,e){return st(this,t,e,!1)},e(q,K),q.of=function(){return q(arguments)},q.prototype.toSetSeq=function(){return this},K.isSeq=et,K.Keyed=V,K.Set=q,K.Indexed=Y;var W,G,Q,Z="@@__IMMUTABLE_SEQ__@@";function J(t){this._array=t,this.size=t.length}function $(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function X(t){this._iterable=t,this.size=t.length||t.size}function tt(t){this._iterator=t,this._iteratorCache=[]}function et(t){return!(!t||!t[Z])}function nt(){return W||(W=new J([]))}function rt(t){var e=Array.isArray(t)?new J(t).fromEntrySeq():B(t)?new tt(t).fromEntrySeq():z(t)?new X(t).fromEntrySeq():"object"==typeof t?new $(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function ot(t){var e=it(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function it(t){return H(t)?new J(t):B(t)?new tt(t):z(t)?new X(t):void 0}function at(t,e,n,r){var o=t._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===e(s[1],r?s[0]:a,t))return a+1}return a}return t.__iterateUncached(e,n)}function st(t,e,n,r){var o=t._cache;if(o){var i=o.length-1,a=0;return new L(function(){var t=o[n?i-a:a];return a++>i?{value:void 0,done:!0}:P(e,r?t[0]:a-1,t[1])})}return t.__iteratorUncached(e,n)}function ct(t,e){return e?ut(e,t,"",{"":t}):lt(t)}function ut(t,e,n,r){return Array.isArray(e)?t.call(r,n,Y(e).map(function(n,r){return ut(t,n,r,e)})):pt(e)?t.call(r,n,V(e).map(function(n,r){return ut(t,n,r,e)})):e}function lt(t){return Array.isArray(t)?Y(t).map(lt).toList():pt(t)?V(t).map(lt).toMap():t}function pt(t){return t&&(t.constructor===Object||void 0===t.constructor)}function ft(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function dt(t,e){if(t===e)return!0;if(!a(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||s(t)!==s(e)||c(t)!==c(e)||l(t)!==l(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!u(t);if(l(t)){var r=t.entries();return e.every(function(t,e){var o=r.next().value;return o&&ft(o[1],t)&&(n||ft(o[0],e))})&&r.next().done}var o=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{o=!0;var i=t;t=e,e=i}var p=!0,f=e.__iterate(function(e,r){if(n?!t.has(e):o?!ft(e,t.get(r,v)):!ft(t.get(r,v),e))return p=!1,!1});return p&&t.size===f}function ht(t,e){if(!(this instanceof ht))return new ht(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(G)return G;G=this}}function gt(t,e){if(!t)throw new Error(e)}function mt(t,e,n){if(!(this instanceof mt))return new mt(t,e,n);if(gt(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),e<t&&(n=-n),this._start=t,this._end=e,this._step=n,this.size=Math.max(0,Math.ceil((e-t)/n-1)+1),0===this.size){if(Q)return Q;Q=this}}function yt(){throw TypeError("Abstract")}function vt(){}function bt(){}function wt(){}K.prototype[Z]=!0,e(J,Y),J.prototype.get=function(t,e){return this.has(t)?this._array[M(this,t)]:e},J.prototype.__iterate=function(t,e){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===t(n[e?r-o:o],o,this))return o+1;return o},J.prototype.__iterator=function(t,e){var n=this._array,r=n.length-1,o=0;return new L(function(){return o>r?{value:void 0,done:!0}:P(t,o,n[e?r-o++:o++])})},e($,V),$.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},$.prototype.has=function(t){return this._object.hasOwnProperty(t)},$.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[e?o-i:i];if(!1===t(n[a],a,this))return i+1}return i},$.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,o=r.length-1,i=0;return new L(function(){var a=r[e?o-i:i];return i++>o?{value:void 0,done:!0}:P(t,a,n[a])})},$.prototype[h]=!0,e(X,Y),X.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=F(this._iterable),r=0;if(B(n))for(var o;!(o=n.next()).done&&!1!==t(o.value,r++,this););return r},X.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=F(this._iterable);if(!B(n))return new L(R);var r=0;return new L(function(){var e=n.next();return e.done?e:P(t,r++,e.value)})},e(tt,Y),tt.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===t(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===t(a,i++,this))break}return i},tt.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterator,r=this._iteratorCache,o=0;return new L(function(){if(o>=r.length){var e=n.next();if(e.done)return e;r[o]=e.value}return P(t,o,r[o++])})},e(ht,Y),ht.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ht.prototype.get=function(t,e){return this.has(t)?this._value:e},ht.prototype.includes=function(t){return ft(this._value,t)},ht.prototype.slice=function(t,e){var n=this.size;return x(t,e,n)?this:new ht(this._value,T(e,n)-D(t,n))},ht.prototype.reverse=function(){return this},ht.prototype.indexOf=function(t){return ft(this._value,t)?0:-1},ht.prototype.lastIndexOf=function(t){return ft(this._value,t)?this.size:-1},ht.prototype.__iterate=function(t,e){for(var n=0;n<this.size;n++)if(!1===t(this._value,n,this))return n+1;return n},ht.prototype.__iterator=function(t,e){var n=this,r=0;return new L(function(){return r<n.size?P(t,r++,n._value):{value:void 0,done:!0}})},ht.prototype.equals=function(t){return t instanceof ht?ft(this._value,t._value):dt(t)},e(mt,Y),mt.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},mt.prototype.get=function(t,e){return this.has(t)?this._start+M(this,t)*this._step:e},mt.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},mt.prototype.slice=function(t,e){return x(t,e,this.size)?this:(t=D(t,this.size),(e=T(e,this.size))<=t?new mt(0,0):new mt(this.get(t,this._end),this.get(e,this._end),this._step))},mt.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step===0){var n=e/this._step;if(n>=0&&n<this.size)return n}return-1},mt.prototype.lastIndexOf=function(t){return this.indexOf(t)},mt.prototype.__iterate=function(t,e){for(var n=this.size-1,r=this._step,o=e?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===t(o,i,this))return i+1;o+=e?-r:r}return i},mt.prototype.__iterator=function(t,e){var n=this.size-1,r=this._step,o=e?this._start+n*r:this._start,i=0;return new L(function(){var a=o;return o+=e?-r:r,i>n?{value:void 0,done:!0}:P(t,i++,a)})},mt.prototype.equals=function(t){return t instanceof mt?this._start===t._start&&this._end===t._end&&this._step===t._step:dt(this,t)},e(yt,n),e(vt,yt),e(bt,yt),e(wt,yt),yt.Keyed=vt,yt.Indexed=bt,yt.Set=wt;var _t="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var n=65535&(t|=0),r=65535&(e|=0);return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0};function Et(t){return t>>>1&1073741824|3221225471&t}function St(t){if(!1===t||null==t)return 0;if("function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null==t))return 0;if(!0===t)return 1;var e=typeof t;if("number"===e){var n=0|t;for(n!==t&&(n^=4294967295*t);t>4294967295;)n^=t/=4294967295;return Et(n)}if("string"===e)return t.length>At?function(t){var e=Nt[t];return void 0===e&&(e=kt(t),jt===It&&(jt=0,Nt={}),jt++,Nt[t]=e),e}(t):kt(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return function(t){var e;if(xt&&void 0!==(e=Ot.get(t)))return e;if(void 0!==(e=t[Tt]))return e;if(!Mt){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Tt]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=++Dt,1073741824&Dt&&(Dt=0),xt)Ot.set(t,e);else{if(void 0!==Ct&&!1===Ct(t))throw new Error("Non-extensible objects are not allowed as keys.");if(Mt)Object.defineProperty(t,Tt,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Tt]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Tt]=e}}return e}(t);if("function"==typeof t.toString)return kt(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function kt(t){for(var e=0,n=0;n<t.length;n++)e=31*e+t.charCodeAt(n)|0;return Et(e)}var Ct=Object.isExtensible,Mt=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}();var Ot,xt="function"==typeof WeakMap;xt&&(Ot=new WeakMap);var Dt=0,Tt="__immutablehash__";"function"==typeof Symbol&&(Tt=Symbol(Tt));var At=16,It=255,jt=0,Nt={};function Lt(t){gt(t!==1/0,"Cannot perform this action with an infinite size.")}function Pt(t){return null==t?Zt():Rt(t)&&!l(t)?t:Zt().withMutations(function(e){var n=r(t);Lt(n.size),n.forEach(function(t,n){return e.set(n,t)})})}function Rt(t){return!(!t||!t[Bt])}e(Pt,vt),Pt.prototype.toString=function(){return this.__toString("Map {","}")},Pt.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},Pt.prototype.set=function(t,e){return Jt(this,t,e)},Pt.prototype.setIn=function(t,e){return this.updateIn(t,v,function(){return e})},Pt.prototype.remove=function(t){return Jt(this,t,v)},Pt.prototype.deleteIn=function(t){return this.updateIn(t,function(){return v})},Pt.prototype.update=function(t,e,n){return 1===arguments.length?t(this):this.updateIn([t],e,n)},Pt.prototype.updateIn=function(t,e,n){n||(n=e,e=void 0);var r=ie(this,en(t),e,n);return r===v?void 0:r},Pt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Zt()},Pt.prototype.merge=function(){return ee(this,void 0,arguments)},Pt.prototype.mergeWith=function(e){return ee(this,e,t.call(arguments,1))},Pt.prototype.mergeIn=function(e){var n=t.call(arguments,1);return this.updateIn(e,Zt(),function(t){return"function"==typeof t.merge?t.merge.apply(t,n):n[n.length-1]})},Pt.prototype.mergeDeep=function(){return ee(this,ne,arguments)},Pt.prototype.mergeDeepWith=function(e){var n=t.call(arguments,1);return ee(this,re(e),n)},Pt.prototype.mergeDeepIn=function(e){var n=t.call(arguments,1);return this.updateIn(e,Zt(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,n):n[n.length-1]})},Pt.prototype.sort=function(t){return xe(Ve(this,t))},Pt.prototype.sortBy=function(t,e){return xe(Ve(this,e,t))},Pt.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},Pt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new S)},Pt.prototype.asImmutable=function(){return this.__ensureOwner()},Pt.prototype.wasAltered=function(){return this.__altered},Pt.prototype.__iterator=function(t,e){return new qt(this,t,e)},Pt.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate(function(e){return r++,t(e[1],e[0],n)},e),r},Pt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Qt(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Pt.isMap=Rt;var zt,Bt="@@__IMMUTABLE_MAP__@@",Ft=Pt.prototype;function Ut(t,e){this.ownerID=t,this.entries=e}function Ht(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n}function Kt(t,e,n){this.ownerID=t,this.count=e,this.nodes=n}function Vt(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n}function Yt(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n}function qt(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&Gt(t._root)}function Wt(t,e){return P(t,e[0],e[1])}function Gt(t,e){return{node:t,index:0,__prev:e}}function Qt(t,e,n,r){var o=Object.create(Ft);return o.size=t,o._root=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Zt(){return zt||(zt=Qt(0))}function Jt(t,e,n){var r,o;if(t._root){var i=_(b),a=_(w);if(r=$t(t._root,t.__ownerID,0,void 0,e,n,i,a),!a.value)return t;o=t.size+(i.value?n===v?-1:1:0)}else{if(n===v)return t;o=1,r=new Ut(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=o,t._root=r,t.__hash=void 0,t.__altered=!0,t):r?Qt(o,r):Zt()}function $t(t,e,n,r,o,i,a,s){return t?t.update(e,n,r,o,i,a,s):i===v?t:(E(s),E(a),new Yt(e,r,[o,i]))}function Xt(t){return t.constructor===Yt||t.constructor===Vt}function te(t,e,n,r,o){if(t.keyHash===r)return new Vt(e,r,[t.entry,o]);var i,a=(0===n?t.keyHash:t.keyHash>>>n)&y,s=(0===n?r:r>>>n)&y;return new Ht(e,1<<a|1<<s,a===s?[te(t,e,n+5,r,o)]:(i=new Yt(e,r,o),a<s?[t,i]:[i,t]))}function ee(t,e,n){for(var o=[],i=0;i<n.length;i++){var s=n[i],c=r(s);a(s)||(c=c.map(function(t){return ct(t)})),o.push(c)}return oe(t,e,o)}function ne(t,e,n){return t&&t.mergeDeep&&a(e)?t.mergeDeep(e):ft(t,e)?t:e}function re(t){return function(e,n,r){if(e&&e.mergeDeepWith&&a(n))return e.mergeDeepWith(t,n);var o=t(e,n,r);return ft(e,o)?e:o}}function oe(t,e,n){return 0===(n=n.filter(function(t){return 0!==t.size})).length?t:0!==t.size||t.__ownerID||1!==n.length?t.withMutations(function(t){for(var r=e?function(n,r){t.update(r,v,function(t){return t===v?n:e(t,n,r)})}:function(e,n){t.set(n,e)},o=0;o<n.length;o++)n[o].forEach(r)}):t.constructor(n[0])}function ie(t,e,n,r){var o=t===v,i=e.next();if(i.done){var a=o?n:t,s=r(a);return s===a?t:s}gt(o||t&&t.set,"invalid keyPath");var c=i.value,u=o?v:t.get(c,v),l=ie(u,e,n,r);return l===u?t:l===v?t.remove(c):(o?Zt():t).set(c,l)}function ae(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,127&(t+=t>>8)+(t>>16)}function se(t,e,n,r){var o=r?t:k(t);return o[e]=n,o}Ft[Bt]=!0,Ft[g]=Ft.remove,Ft.removeIn=Ft.deleteIn,Ut.prototype.get=function(t,e,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ft(n,o[i][0]))return o[i][1];return r},Ut.prototype.update=function(t,e,n,r,o,i,a){for(var s=o===v,c=this.entries,u=0,l=c.length;u<l&&!ft(r,c[u][0]);u++);var p=u<l;if(p?c[u][1]===o:s)return this;if(E(a),(s||!p)&&E(i),!s||1!==c.length){if(!p&&!s&&c.length>=ce)return function(t,e,n,r){t||(t=new S);for(var o=new Yt(t,St(n),[n,r]),i=0;i<e.length;i++){var a=e[i];o=o.update(t,0,void 0,a[0],a[1])}return o}(t,c,r,o);var f=t&&t===this.ownerID,d=f?c:k(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 Ut(t,d)}},Ht.prototype.get=function(t,e,n,r){void 0===e&&(e=St(n));var o=1<<((0===t?e:e>>>t)&y),i=this.bitmap;return 0===(i&o)?r:this.nodes[ae(i&o-1)].get(t+5,e,n,r)},Ht.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=St(r));var s=(0===e?n:n>>>e)&y,c=1<<s,u=this.bitmap,l=0!==(u&c);if(!l&&o===v)return this;var p=ae(u&c-1),f=this.nodes,d=l?f[p]:void 0,h=$t(d,t,e+5,n,r,o,i,a);if(h===d)return this;if(!l&&h&&f.length>=ue)return function(t,e,n,r,o){for(var i=0,a=new Array(m),s=0;0!==n;s++,n>>>=1)a[s]=1&n?e[i++]:void 0;return a[r]=o,new Kt(t,i+1,a)}(t,f,u,s,h);if(l&&!h&&2===f.length&&Xt(f[1^p]))return f[1^p];if(l&&h&&1===f.length&&Xt(h))return h;var g=t&&t===this.ownerID,b=l?h?u:u^c:u|c,w=l?h?se(f,p,h,g):function(t,e,n){var r=t.length-1;if(n&&e===r)return t.pop(),t;for(var o=new Array(r),i=0,a=0;a<r;a++)a===e&&(i=1),o[a]=t[a+i];return o}(f,p,g):function(t,e,n,r){var o=t.length+1;if(r&&e+1===o)return t[e]=n,t;for(var i=new Array(o),a=0,s=0;s<o;s++)s===e?(i[s]=n,a=-1):i[s]=t[s+a];return i}(f,p,h,g);return g?(this.bitmap=b,this.nodes=w,this):new Ht(t,b,w)},Kt.prototype.get=function(t,e,n,r){void 0===e&&(e=St(n));var o=(0===t?e:e>>>t)&y,i=this.nodes[o];return i?i.get(t+5,e,n,r):r},Kt.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=St(r));var s=(0===e?n:n>>>e)&y,c=o===v,u=this.nodes,l=u[s];if(c&&!l)return this;var p=$t(l,t,e+5,n,r,o,i,a);if(p===l)return this;var f=this.count;if(l){if(!p&&--f<le)return function(t,e,n,r){for(var o=0,i=0,a=new Array(n),s=0,c=1,u=e.length;s<u;s++,c<<=1){var l=e[s];void 0!==l&&s!==r&&(o|=c,a[i++]=l)}return new Ht(t,o,a)}(t,u,f,s)}else f++;var d=t&&t===this.ownerID,h=se(u,s,p,d);return d?(this.count=f,this.nodes=h,this):new Kt(t,f,h)},Vt.prototype.get=function(t,e,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ft(n,o[i][0]))return o[i][1];return r},Vt.prototype.update=function(t,e,n,r,o,i,a){void 0===n&&(n=St(r));var s=o===v;if(n!==this.keyHash)return s?this:(E(a),E(i),te(this,t,e,n,[r,o]));for(var c=this.entries,u=0,l=c.length;u<l&&!ft(r,c[u][0]);u++);var p=u<l;if(p?c[u][1]===o:s)return this;if(E(a),(s||!p)&&E(i),s&&2===l)return new Yt(t,this.keyHash,c[1^u]);var f=t&&t===this.ownerID,d=f?c:k(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 Vt(t,this.keyHash,d)},Yt.prototype.get=function(t,e,n,r){return ft(n,this.entry[0])?this.entry[1]:r},Yt.prototype.update=function(t,e,n,r,o,i,a){var s=o===v,c=ft(r,this.entry[0]);return(c?o===this.entry[1]:s)?this:(E(a),s?void E(i):c?t&&t===this.ownerID?(this.entry[1]=o,this):new Yt(t,this.keyHash,[r,o]):(E(i),te(this,t,e,St(r),[r,o])))},Ut.prototype.iterate=Vt.prototype.iterate=function(t,e){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===t(n[e?o-r:r]))return!1},Ht.prototype.iterate=Kt.prototype.iterate=function(t,e){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[e?o-r:r];if(i&&!1===i.iterate(t,e))return!1}},Yt.prototype.iterate=function(t,e){return t(this.entry)},e(qt,L),qt.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var n,r=e.node,o=e.index++;if(r.entry){if(0===o)return Wt(t,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return Wt(t,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 Wt(t,i.entry);e=this._stack=Gt(i,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var ce=8,ue=16,le=8;function pe(t){var e=_e();if(null==t)return e;if(fe(t))return t;var n=o(t),r=n.size;return 0===r?e:(Lt(r),r>0&&r<m?we(0,r,5,null,new ge(n.toArray())):e.withMutations(function(t){t.setSize(r),n.forEach(function(e,n){return t.set(n,e)})}))}function fe(t){return!(!t||!t[de])}e(pe,bt),pe.of=function(){return this(arguments)},pe.prototype.toString=function(){return this.__toString("List [","]")},pe.prototype.get=function(t,e){if((t=M(this,t))>=0&&t<this.size){var n=ke(this,t+=this._origin);return n&&n.array[t&y]}return e},pe.prototype.set=function(t,e){return function(t,e,n){if((e=M(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations(function(t){e<0?Ce(t,e).set(0,n):Ce(t,0,e+1).set(e,n)});e+=t._origin;var r=t._tail,o=t._root,i=_(w);return e>=Oe(t._capacity)?r=Ee(r,t.__ownerID,0,e,n,i):o=Ee(o,t.__ownerID,t._level,e,n,i),i.value?t.__ownerID?(t._root=o,t._tail=r,t.__hash=void 0,t.__altered=!0,t):we(t._origin,t._capacity,t._level,o,r):t}(this,t,e)},pe.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},pe.prototype.insert=function(t,e){return this.splice(t,0,e)},pe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):_e()},pe.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(n){Ce(n,0,e+t.length);for(var r=0;r<t.length;r++)n.set(e+r,t[r])})},pe.prototype.pop=function(){return Ce(this,0,-1)},pe.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){Ce(e,-t.length);for(var n=0;n<t.length;n++)e.set(n,t[n])})},pe.prototype.shift=function(){return Ce(this,1)},pe.prototype.merge=function(){return Me(this,void 0,arguments)},pe.prototype.mergeWith=function(e){return Me(this,e,t.call(arguments,1))},pe.prototype.mergeDeep=function(){return Me(this,ne,arguments)},pe.prototype.mergeDeepWith=function(e){var n=t.call(arguments,1);return Me(this,re(e),n)},pe.prototype.setSize=function(t){return Ce(this,0,t)},pe.prototype.slice=function(t,e){var n=this.size;return x(t,e,n)?this:Ce(this,D(t,n),T(e,n))},pe.prototype.__iterator=function(t,e){var n=0,r=be(this,e);return new L(function(){var e=r();return e===ve?{value:void 0,done:!0}:P(t,n++,e)})},pe.prototype.__iterate=function(t,e){for(var n,r=0,o=be(this,e);(n=o())!==ve&&!1!==t(n,r++,this););return r},pe.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?we(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},pe.isList=fe;var de="@@__IMMUTABLE_LIST__@@",he=pe.prototype;function ge(t,e){this.array=t,this.ownerID=e}he[de]=!0,he[g]=he.remove,he.setIn=Ft.setIn,he.deleteIn=he.removeIn=Ft.removeIn,he.update=Ft.update,he.updateIn=Ft.updateIn,he.mergeIn=Ft.mergeIn,he.mergeDeepIn=Ft.mergeDeepIn,he.withMutations=Ft.withMutations,he.asMutable=Ft.asMutable,he.asImmutable=Ft.asImmutable,he.wasAltered=Ft.wasAltered,ge.prototype.removeBefore=function(t,e,n){if(n===e?1<<e:0===this.array.length)return this;var r=n>>>e&y;if(r>=this.array.length)return new ge([],t);var o,i=0===r;if(e>0){var a=this.array[r];if((o=a&&a.removeBefore(t,e-5,n))===a&&i)return this}if(i&&!o)return this;var s=Se(this,t);if(!i)for(var c=0;c<r;c++)s.array[c]=void 0;return o&&(s.array[r]=o),s},ge.prototype.removeAfter=function(t,e,n){if(n===(e?1<<e:0)||0===this.array.length)return this;var r,o=n-1>>>e&y;if(o>=this.array.length)return this;if(e>0){var i=this.array[o];if((r=i&&i.removeAfter(t,e-5,n))===i&&o===this.array.length-1)return this}var a=Se(this,t);return a.array.splice(o+1),r&&(a.array[o]=r),a};var me,ye,ve={};function be(t,e){var n=t._origin,r=t._capacity,o=Oe(r),i=t._tail;return a(t._root,t._level,0);function a(t,s,c){return 0===s?function(t,a){var s=a===o?i&&i.array:t&&t.array,c=a>n?0:n-a,u=r-a;return u>m&&(u=m),function(){if(c===u)return ve;var t=e?--u:c++;return s&&s[t]}}(t,c):function(t,o,i){var s,c=t&&t.array,u=i>n?0:n-i>>o,l=1+(r-i>>o);return l>m&&(l=m),function(){for(;;){if(s){var t=s();if(t!==ve)return t;s=null}if(u===l)return ve;var n=e?--l:u++;s=a(c&&c[n],o-5,i+(n<<o))}}}(t,s,c)}}function we(t,e,n,r,o,i,a){var s=Object.create(he);return s.size=e-t,s._origin=t,s._capacity=e,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function _e(){return me||(me=we(0,0,5))}function Ee(t,e,n,r,o,i){var a,s=r>>>n&y,c=t&&s<t.array.length;if(!c&&void 0===o)return t;if(n>0){var u=t&&t.array[s],l=Ee(u,e,n-5,r,o,i);return l===u?t:((a=Se(t,e)).array[s]=l,a)}return c&&t.array[s]===o?t:(E(i),a=Se(t,e),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function Se(t,e){return e&&t&&e===t.ownerID?t:new ge(t?t.array.slice():[],e)}function ke(t,e){if(e>=Oe(t._capacity))return t._tail;if(e<1<<t._level+5){for(var n=t._root,r=t._level;n&&r>0;)n=n.array[e>>>r&y],r-=5;return n}}function Ce(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new S,o=t._origin,i=t._capacity,a=o+e,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return t;if(a>=s)return t.clear();for(var c=t._level,u=t._root,l=0;a+l<0;)u=new ge(u&&u.array.length?[void 0,u]:[],r),l+=1<<(c+=5);l&&(a+=l,o+=l,s+=l,i+=l);for(var p=Oe(i),f=Oe(s);f>=1<<c+5;)u=new ge(u&&u.array.length?[u]:[],r),c+=5;var d=t._tail,h=f<p?ke(t,s-1):f>p?new ge([],r):d;if(d&&f>p&&a<i&&d.array.length){for(var g=u=Se(u,r),m=c;m>5;m-=5){var v=p>>>m&y;g=g.array[v]=Se(g.array[v],r)}g.array[p>>>5&y]=d}if(s<i&&(h=h&&h.removeAfter(r,0,s)),a>=f)a-=f,s-=f,c=5,u=null,h=h&&h.removeBefore(r,0,a);else if(a>o||f<p){for(l=0;u;){var b=a>>>c&y;if(b!==f>>>c&y)break;b&&(l+=(1<<c)*b),c-=5,u=u.array[b]}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 t.__ownerID?(t.size=s-a,t._origin=a,t._capacity=s,t._level=c,t._root=u,t._tail=h,t.__hash=void 0,t.__altered=!0,t):we(a,s,c,u,h)}function Me(t,e,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(t){return ct(t)})),r.push(u)}return i>t.size&&(t=t.setSize(i)),oe(t,e,r)}function Oe(t){return t<m?0:t-1>>>5<<5}function xe(t){return null==t?Ae():De(t)?t:Ae().withMutations(function(e){var n=r(t);Lt(n.size),n.forEach(function(t,n){return e.set(n,t)})})}function De(t){return Rt(t)&&l(t)}function Te(t,e,n,r){var o=Object.create(xe.prototype);return o.size=t?t.size:0,o._map=t,o._list=e,o.__ownerID=n,o.__hash=r,o}function Ae(){return ye||(ye=Te(Zt(),_e()))}function Ie(t,e,n){var r,o,i=t._map,a=t._list,s=i.get(e),c=void 0!==s;if(n===v){if(!c)return t;a.size>=m&&a.size>=2*i.size?(r=(o=a.filter(function(t,e){return void 0!==t&&s!==e})).toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(r.__ownerID=o.__ownerID=t.__ownerID)):(r=i.remove(e),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(c){if(n===a.get(s)[1])return t;r=i,o=a.set(s,[e,n])}else r=i.set(e,a.size),o=a.set(a.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=o,t.__hash=void 0,t):Te(r,o)}function je(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function Ne(t){this._iter=t,this.size=t.size}function Le(t){this._iter=t,this.size=t.size}function Pe(t){this._iter=t,this.size=t.size}function Re(t){var e=$e(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=Xe,e.__iterateUncached=function(e,n){var r=this;return t.__iterate(function(t,n){return!1!==e(n,t,r)},n)},e.__iteratorUncached=function(e,n){if(2===e){var r=t.__iterator(e,n);return new L(function(){var t=r.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(1===e?0:1,n)},e}function ze(t,e,n){var r=$e(t);return r.size=t.size,r.has=function(e){return t.has(e)},r.get=function(r,o){var i=t.get(r,v);return i===v?o:e.call(n,i,r,t)},r.__iterateUncached=function(r,o){var i=this;return t.__iterate(function(t,o,a){return!1!==r(e.call(n,t,o,a),o,i)},o)},r.__iteratorUncached=function(r,o){var i=t.__iterator(2,o);return new L(function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return P(r,s,e.call(n,a[1],s,t),o)})},r}function Be(t,e){var n=$e(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=Re(t);return e.reverse=function(){return t.flip()},e}),n.get=function(n,r){return t.get(e?n:-1-n,r)},n.has=function(n){return t.has(e?n:-1-n)},n.includes=function(e){return t.includes(e)},n.cacheResult=Xe,n.__iterate=function(e,n){var r=this;return t.__iterate(function(t,n){return e(t,n,r)},!n)},n.__iterator=function(e,n){return t.__iterator(e,!n)},n}function Fe(t,e,n,r){var o=$e(t);return r&&(o.has=function(r){var o=t.get(r,v);return o!==v&&!!e.call(n,o,r,t)},o.get=function(r,o){var i=t.get(r,v);return i!==v&&e.call(n,i,r,t)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return t.__iterate(function(t,i,c){if(e.call(n,t,i,c))return s++,o(t,r?i:s-1,a)},i),s},o.__iteratorUncached=function(o,i){var a=t.__iterator(2,i),s=0;return new L(function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,u=c[0],l=c[1];if(e.call(n,l,u,t))return P(o,r?u:s++,l,i)}})},o}function Ue(t,e,n,r){var o=t.size;if(void 0!==e&&(e|=0),void 0!==n&&(n|=0),x(e,n,o))return t;var i=D(e,o),a=T(n,o);if(i!=i||a!=a)return Ue(t.toSeq().cacheResult(),e,n,r);var s,c=a-i;c==c&&(s=c<0?0:c);var u=$e(t);return u.size=0===s?s:t.size&&s||void 0,!r&&et(t)&&s>=0&&(u.get=function(e,n){return(e=M(this,e))>=0&&e<s?t.get(e+i,n):n}),u.__iterateUncached=function(e,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(e,n);var a=0,c=!0,u=0;return t.__iterate(function(t,n){if(!c||!(c=a++<i))return u++,!1!==e(t,r?n:u-1,o)&&u!==s}),u},u.__iteratorUncached=function(e,n){if(0!==s&&n)return this.cacheResult().__iterator(e,n);var o=0!==s&&t.__iterator(e,n),a=0,c=0;return new L(function(){for(;a++<i;)o.next();if(++c>s)return{value:void 0,done:!0};var t=o.next();return r||1===e?t:P(e,c-1,0===e?void 0:t.value[1],t)})},u}function He(t,e,n,r){var o=$e(t);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,c=0;return t.__iterate(function(t,i,u){if(!s||!(s=e.call(n,t,i,u)))return c++,o(t,r?i:c-1,a)}),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=t.__iterator(2,i),c=!0,u=0;return new L(function(){var t,i,l;do{if((t=s.next()).done)return r||1===o?t:P(o,u++,0===o?void 0:t.value[1],t);var p=t.value;i=p[0],l=p[1],c&&(c=e.call(n,l,i,a))}while(c);return 2===o?t:P(o,i,l,t)})},o}function Ke(t,e,n){var r=$e(t);return r.__iterateUncached=function(r,o){var i=0,s=!1;return function t(c,u){var l=this;c.__iterate(function(o,c){return(!e||u<e)&&a(o)?t(o,u+1):!1===r(o,n?c:i++,l)&&(s=!0),!s},o)}(t,0),i},r.__iteratorUncached=function(r,o){var i=t.__iterator(r,o),s=[],c=0;return new L(function(){for(;i;){var t=i.next();if(!1===t.done){var u=t.value;if(2===r&&(u=u[1]),e&&!(s.length<e)||!a(u))return n?t:P(r,c++,u,t);s.push(i),i=u.__iterator(r,o)}else i=s.pop()}return{value:void 0,done:!0}})},r}function Ve(t,e,n){e||(e=tn);var r=s(t),o=0,i=t.toSeq().map(function(e,r){return[r,e,o++,n?n(e,r,t):e]}).toArray();return i.sort(function(t,n){return e(t[3],n[3])||t[2]-n[2]}).forEach(r?function(t,e){i[e].length=2}:function(t,e){i[e]=t[1]}),r?V(i):c(t)?Y(i):q(i)}function Ye(t,e,n){if(e||(e=tn),n){var r=t.toSeq().map(function(e,r){return[e,n(e,r,t)]}).reduce(function(t,n){return qe(e,t[1],n[1])?n:t});return r&&r[0]}return t.reduce(function(t,n){return qe(e,t,n)?n:t})}function qe(t,e,n){var r=t(n,e);return 0===r&&n!==e&&(null==n||n!=n)||r>0}function We(t,e,r){var o=$e(t);return o.size=new J(r).map(function(t){return t.size}).min(),o.__iterate=function(t,e){for(var n,r=this.__iterator(1,e),o=0;!(n=r.next()).done&&!1!==t(n.value,o++,this););return o},o.__iteratorUncached=function(t,o){var i=r.map(function(t){return t=n(t),F(o?t.reverse():t)}),a=0,s=!1;return new L(function(){var n;return s||(n=i.map(function(t){return t.next()}),s=n.some(function(t){return t.done})),s?{value:void 0,done:!0}:P(t,a++,e.apply(null,n.map(function(t){return t.value})))})},o}function Ge(t,e){return et(t)?e:t.constructor(e)}function Qe(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Ze(t){return Lt(t.size),C(t)}function Je(t){return s(t)?r:c(t)?o:i}function $e(t){return Object.create((s(t)?V:c(t)?Y:q).prototype)}function Xe(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):K.prototype.cacheResult.call(this)}function tn(t,e){return t>e?1:t<e?-1:0}function en(t){var e=F(t);if(!e){if(!H(t))throw new TypeError("Expected iterable or array-like: "+t);e=F(n(t))}return e}function nn(t,e){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(t);(function(t,e){try{e.forEach(sn.bind(void 0,t))}catch(t){}})(o,a),o.size=a.length,o._name=e,o._keys=a,o._defaultValues=t}this._map=Pt(i)},o=r.prototype=Object.create(rn);return o.constructor=r,r}e(xe,Pt),xe.of=function(){return this(arguments)},xe.prototype.toString=function(){return this.__toString("OrderedMap {","}")},xe.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},xe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Ae()},xe.prototype.set=function(t,e){return Ie(this,t,e)},xe.prototype.remove=function(t){return Ie(this,t,v)},xe.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},xe.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],n)},e)},xe.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},xe.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?Te(e,n,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=n,this)},xe.isOrderedMap=De,xe.prototype[h]=!0,xe.prototype[g]=xe.prototype.remove,e(je,V),je.prototype.get=function(t,e){return this._iter.get(t,e)},je.prototype.has=function(t){return this._iter.has(t)},je.prototype.valueSeq=function(){return this._iter.valueSeq()},je.prototype.reverse=function(){var t=this,e=Be(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},je.prototype.map=function(t,e){var n=this,r=ze(this,t,e);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(t,e)}),r},je.prototype.__iterate=function(t,e){var n,r=this;return this._iter.__iterate(this._useKeys?function(e,n){return t(e,n,r)}:(n=e?Ze(this):0,function(o){return t(o,e?--n:n++,r)}),e)},je.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var n=this._iter.__iterator(1,e),r=e?Ze(this):0;return new L(function(){var o=n.next();return o.done?o:P(t,e?--r:r++,o.value,o)})},je.prototype[h]=!0,e(Ne,Y),Ne.prototype.includes=function(t){return this._iter.includes(t)},Ne.prototype.__iterate=function(t,e){var n=this,r=0;return this._iter.__iterate(function(e){return t(e,r++,n)},e)},Ne.prototype.__iterator=function(t,e){var n=this._iter.__iterator(1,e),r=0;return new L(function(){var e=n.next();return e.done?e:P(t,r++,e.value,e)})},e(Le,q),Le.prototype.has=function(t){return this._iter.includes(t)},Le.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){return t(e,e,n)},e)},Le.prototype.__iterator=function(t,e){var n=this._iter.__iterator(1,e);return new L(function(){var e=n.next();return e.done?e:P(t,e.value,e.value,e)})},e(Pe,V),Pe.prototype.entrySeq=function(){return this._iter.toSeq()},Pe.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){if(e){Qe(e);var r=a(e);return t(r?e.get(1):e[1],r?e.get(0):e[0],n)}},e)},Pe.prototype.__iterator=function(t,e){var n=this._iter.__iterator(1,e);return new L(function(){for(;;){var e=n.next();if(e.done)return e;var r=e.value;if(r){Qe(r);var o=a(r);return P(t,o?r.get(0):r[0],o?r.get(1):r[1],e)}}})},Ne.prototype.cacheResult=je.prototype.cacheResult=Le.prototype.cacheResult=Pe.prototype.cacheResult=Xe,e(nn,vt),nn.prototype.toString=function(){return this.__toString(an(this)+" {","}")},nn.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},nn.prototype.get=function(t,e){if(!this.has(t))return e;var n=this._defaultValues[t];return this._map?this._map.get(t,n):n},nn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=on(this,Zt()))},nn.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+an(this));var n=this._map&&this._map.set(t,e);return this.__ownerID||n===this._map?this:on(this,n)},nn.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:on(this,e)},nn.prototype.wasAltered=function(){return this._map.wasAltered()},nn.prototype.__iterator=function(t,e){var n=this;return r(this._defaultValues).map(function(t,e){return n.get(e)}).__iterator(t,e)},nn.prototype.__iterate=function(t,e){var n=this;return r(this._defaultValues).map(function(t,e){return n.get(e)}).__iterate(t,e)},nn.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?on(this,e,t):(this.__ownerID=t,this._map=e,this)};var rn=nn.prototype;function on(t,e,n){var r=Object.create(Object.getPrototypeOf(t));return r._map=e,r.__ownerID=n,r}function an(t){return t._name||t.constructor.name||"Record"}function sn(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){gt(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function cn(t){return null==t?gn():un(t)&&!l(t)?t:gn().withMutations(function(e){var n=i(t);Lt(n.size),n.forEach(function(t){return e.add(t)})})}function un(t){return!(!t||!t[pn])}rn[g]=rn.remove,rn.deleteIn=rn.removeIn=Ft.removeIn,rn.merge=Ft.merge,rn.mergeWith=Ft.mergeWith,rn.mergeIn=Ft.mergeIn,rn.mergeDeep=Ft.mergeDeep,rn.mergeDeepWith=Ft.mergeDeepWith,rn.mergeDeepIn=Ft.mergeDeepIn,rn.setIn=Ft.setIn,rn.update=Ft.update,rn.updateIn=Ft.updateIn,rn.withMutations=Ft.withMutations,rn.asMutable=Ft.asMutable,rn.asImmutable=Ft.asImmutable,e(cn,wt),cn.of=function(){return this(arguments)},cn.fromKeys=function(t){return this(r(t).keySeq())},cn.prototype.toString=function(){return this.__toString("Set {","}")},cn.prototype.has=function(t){return this._map.has(t)},cn.prototype.add=function(t){return dn(this,this._map.set(t,!0))},cn.prototype.remove=function(t){return dn(this,this._map.remove(t))},cn.prototype.clear=function(){return dn(this,this._map.clear())},cn.prototype.union=function(){var e=t.call(arguments,0);return 0===(e=e.filter(function(t){return 0!==t.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n<e.length;n++)i(e[n]).forEach(function(e){return t.add(e)})}):this.constructor(e[0])},cn.prototype.intersect=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map(function(t){return i(t)});var n=this;return this.withMutations(function(t){n.forEach(function(n){e.every(function(t){return t.includes(n)})||t.remove(n)})})},cn.prototype.subtract=function(){var e=t.call(arguments,0);if(0===e.length)return this;e=e.map(function(t){return i(t)});var n=this;return this.withMutations(function(t){n.forEach(function(n){e.some(function(t){return t.includes(n)})&&t.remove(n)})})},cn.prototype.merge=function(){return this.union.apply(this,arguments)},cn.prototype.mergeWith=function(e){var n=t.call(arguments,1);return this.union.apply(this,n)},cn.prototype.sort=function(t){return mn(Ve(this,t))},cn.prototype.sortBy=function(t,e){return mn(Ve(this,e,t))},cn.prototype.wasAltered=function(){return this._map.wasAltered()},cn.prototype.__iterate=function(t,e){var n=this;return this._map.__iterate(function(e,r){return t(r,r,n)},e)},cn.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},cn.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},cn.isSet=un;var ln,pn="@@__IMMUTABLE_SET__@@",fn=cn.prototype;function dn(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function hn(t,e){var n=Object.create(fn);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function gn(){return ln||(ln=hn(Zt()))}function mn(t){return null==t?_n():yn(t)?t:_n().withMutations(function(e){var n=i(t);Lt(n.size),n.forEach(function(t){return e.add(t)})})}function yn(t){return un(t)&&l(t)}fn[pn]=!0,fn[g]=fn.remove,fn.mergeDeep=fn.merge,fn.mergeDeepWith=fn.mergeWith,fn.withMutations=Ft.withMutations,fn.asMutable=Ft.asMutable,fn.asImmutable=Ft.asImmutable,fn.__empty=gn,fn.__make=hn,e(mn,cn),mn.of=function(){return this(arguments)},mn.fromKeys=function(t){return this(r(t).keySeq())},mn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},mn.isOrderedSet=yn;var vn,bn=mn.prototype;function wn(t,e){var n=Object.create(bn);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function _n(){return vn||(vn=wn(Ae()))}function En(t){return null==t?xn():Sn(t)?t:xn().unshiftAll(t)}function Sn(t){return!(!t||!t[Cn])}bn[h]=!0,bn.__empty=_n,bn.__make=wn,e(En,bt),En.of=function(){return this(arguments)},En.prototype.toString=function(){return this.__toString("Stack [","]")},En.prototype.get=function(t,e){var n=this._head;for(t=M(this,t);n&&t--;)n=n.next;return n?n.value:e},En.prototype.peek=function(){return this._head&&this._head.value},En.prototype.push=function(){if(0===arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,n=arguments.length-1;n>=0;n--)e={value:arguments[n],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):On(t,e)},En.prototype.pushAll=function(t){if(0===(t=o(t)).size)return this;Lt(t.size);var e=this.size,n=this._head;return t.reverse().forEach(function(t){e++,n={value:t,next:n}}),this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):On(e,n)},En.prototype.pop=function(){return this.slice(1)},En.prototype.unshift=function(){return this.push.apply(this,arguments)},En.prototype.unshiftAll=function(t){return this.pushAll(t)},En.prototype.shift=function(){return this.pop.apply(this,arguments)},En.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):xn()},En.prototype.slice=function(t,e){if(x(t,e,this.size))return this;var n=D(t,this.size);if(T(e,this.size)!==this.size)return bt.prototype.slice.call(this,t,e);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):On(r,o)},En.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?On(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},En.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var n=0,r=this._head;r&&!1!==t(r.value,n++,this);)r=r.next;return n},En.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var n=0,r=this._head;return new L(function(){if(r){var e=r.value;return r=r.next,P(t,n++,e)}return{value:void 0,done:!0}})},En.isStack=Sn;var kn,Cn="@@__IMMUTABLE_STACK__@@",Mn=En.prototype;function On(t,e,n,r){var o=Object.create(Mn);return o.size=t,o._head=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function xn(){return kn||(kn=On(0))}function Dn(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}Mn[Cn]=!0,Mn.withMutations=Ft.withMutations,Mn.asMutable=Ft.asMutable,Mn.asImmutable=Ft.asImmutable,Mn.wasAltered=Ft.wasAltered,n.Iterator=L,Dn(n,{toArray:function(){Lt(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(e,n){t[n]=e}),t},toIndexedSeq:function(){return new Ne(this)},toJS:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJS?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new je(this,!0)},toMap:function(){return Pt(this.toKeyedSeq())},toObject:function(){Lt(this.size);var t={};return this.__iterate(function(e,n){t[n]=e}),t},toOrderedMap:function(){return xe(this.toKeyedSeq())},toOrderedSet:function(){return mn(s(this)?this.valueSeq():this)},toSet:function(){return cn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Le(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return En(s(this)?this.valueSeq():this)},toList:function(){return pe(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){return Ge(this,function(t,e){var n=s(t),o=[t].concat(e).map(function(t){return a(t)?n&&(t=r(t)):t=n?rt(t):ot(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===o.length)return t;if(1===o.length){var i=o[0];if(i===t||n&&s(i)||c(t)&&c(i))return i}var u=new J(o);return n?u=u.toKeyedSeq():c(t)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce(function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}},0),u}(this,t.call(arguments,0)))},includes:function(t){return this.some(function(e){return ft(e,t)})},entries:function(){return this.__iterator(2)},every:function(t,e){Lt(this.size);var n=!0;return this.__iterate(function(r,o,i){if(!t.call(e,r,o,i))return n=!1,!1}),n},filter:function(t,e){return Ge(this,Fe(this,t,e,!0))},find:function(t,e,n){var r=this.findEntry(t,e);return r?r[1]:n},findEntry:function(t,e){var n;return this.__iterate(function(r,o,i){if(t.call(e,r,o,i))return n=[o,r],!1}),n},findLastEntry:function(t,e){return this.toSeq().reverse().findEntry(t,e)},forEach:function(t,e){return Lt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Lt(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate(function(r){n?n=!1:e+=t,e+=null!=r?r.toString():""}),e},keys:function(){return this.__iterator(0)},map:function(t,e){return Ge(this,ze(this,t,e))},reduce:function(t,e,n){var r,o;return Lt(this.size),arguments.length<2?o=!0:r=e,this.__iterate(function(e,i,a){o?(o=!1,r=e):r=t.call(n,r,e,i,a)}),r},reduceRight:function(t,e,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Ge(this,Be(this,!0))},slice:function(t,e){return Ge(this,Ue(this,t,e,!0))},some:function(t,e){return!this.every(Nn(t),e)},sort:function(t){return Ge(this,Ve(this,t))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return C(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,n){var r=Pt().asMutable();return t.__iterate(function(o,i){r.update(e.call(n,o,i,t),0,function(t){return t+1})}),r.asImmutable()}(this,t,e)},equals:function(t){return dt(this,t)},entrySeq:function(){var t=this;if(t._cache)return new J(t._cache);var e=t.toSeq().map(jn).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Nn(t),e)},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},first:function(){return this.find(O)},flatMap:function(t,e){return Ge(this,function(t,e,n){var r=Je(t);return t.toSeq().map(function(o,i){return r(e.call(n,o,i,t))}).flatten(!0)}(this,t,e))},flatten:function(t){return Ge(this,Ke(this,t,!0))},fromEntrySeq:function(){return new Pe(this)},get:function(t,e){return this.find(function(e,n){return ft(n,t)},void 0,e)},getIn:function(t,e){for(var n,r=this,o=en(t);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,v):v)===v)return e}return r},groupBy:function(t,e){return function(t,e,n){var r=s(t),o=(l(t)?xe():Pt()).asMutable();t.__iterate(function(i,a){o.update(e.call(n,i,a,t),function(t){return(t=t||[]).push(r?[a,i]:i),t})});var i=Je(t);return o.map(function(e){return Ge(t,i(e))})}(this,t,e)},has:function(t){return this.get(t,v)!==v},hasIn:function(t){return this.getIn(t,v)!==v},isSubset:function(t){return t="function"==typeof t.includes?t:n(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:n(t)).isSubset(this)},keySeq:function(){return this.toSeq().map(In).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(t){return Ye(this,t)},maxBy:function(t,e){return Ye(this,e,t)},min:function(t){return Ye(this,t?Ln(t):zn)},minBy:function(t,e){return Ye(this,e?Ln(e):zn,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return Ge(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return Ge(this,He(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Nn(t),e)},sortBy:function(t,e){return Ge(this,Ve(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return Ge(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return Ge(this,function(t,e,n){var r=$e(t);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return t.__iterate(function(t,o,s){return e.call(n,t,o,s)&&++a&&r(t,o,i)}),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=t.__iterator(2,o),s=!0;return new L(function(){if(!s)return{value:void 0,done:!0};var t=a.next();if(t.done)return t;var o=t.value,c=o[0],u=o[1];return e.call(n,u,c,i)?2===r?t:P(r,c,u,t):(s=!1,{value:void 0,done:!0})})},r}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Nn(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=l(t),n=s(t),r=e?1:0;return function(t,e){return e=_t(e,3432918353),e=_t(e<<15|e>>>-15,461845907),e=_t(e<<13|e>>>-13,5),e=_t((e=(e+3864292196|0)^t)^e>>>16,2246822507),Et((e=_t(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(n?e?function(t,e){r=31*r+Bn(St(t),St(e))|0}:function(t,e){r=r+Bn(St(t),St(e))|0}:e?function(t){r=31*r+St(t)|0}:function(t){r=r+St(t)|0}),r)}(this))}});var Tn=n.prototype;Tn[p]=!0,Tn[N]=Tn.values,Tn.__toJS=Tn.toArray,Tn.__toStringMapper=Pn,Tn.inspect=Tn.toSource=function(){return this.toString()},Tn.chain=Tn.flatMap,Tn.contains=Tn.includes,function(){try{Object.defineProperty(Tn,"length",{get:function(){if(!n.noLengthWarning){var t;try{throw new Error}catch(e){t=e.stack}if(-1===t.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. "+t),this.size}}})}catch(t){}}(),Dn(r,{flip:function(){return Ge(this,Re(this))},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLastKey:function(t,e){return this.toSeq().reverse().findKey(t,e)},keyOf:function(t){return this.findKey(function(e){return ft(e,t)})},lastKeyOf:function(t){return this.findLastKey(function(e){return ft(e,t)})},mapEntries:function(t,e){var n=this,r=0;return Ge(this,this.toSeq().map(function(o,i){return t.call(e,[i,o],r++,n)}).fromEntrySeq())},mapKeys:function(t,e){var n=this;return Ge(this,this.toSeq().flip().map(function(r,o){return t.call(e,r,o,n)}).flip())}});var An=r.prototype;function In(t,e){return e}function jn(t,e){return[e,t]}function Nn(t){return function(){return!t.apply(this,arguments)}}function Ln(t){return function(){return-t.apply(this,arguments)}}function Pn(t){return"string"==typeof t?JSON.stringify(t):t}function Rn(){return k(arguments)}function zn(t,e){return t<e?1:t>e?-1:0}function Bn(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}return An[f]=!0,An[N]=Tn.entries,An.__toJS=Tn.toObject,An.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+Pn(t)},Dn(o,{toKeyedSeq:function(){return new je(this,!1)},filter:function(t,e){return Ge(this,Fe(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.toKeyedSeq().keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.toKeyedSeq().reverse().keyOf(t);return void 0===e?-1:e},reverse:function(){return Ge(this,Be(this,!1))},slice:function(t,e){return Ge(this,Ue(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(0|e,0),0===n||2===n&&!e)return this;t=D(t,t<0?this.count():this.size);var r=this.slice(0,t);return Ge(this,1===n?r:r.concat(k(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.toKeyedSeq().findLastKey(t,e);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(t){return Ge(this,Ke(this,t,!1))},get:function(t,e){return(t=M(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,n){return n===t},void 0,e)},has:function(t){return(t=M(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return Ge(this,function(t,e){var n=$e(t);return n.size=t.size&&2*t.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return t.__iterate(function(t,r){return(!i||!1!==n(e,i++,o))&&!1!==n(t,i++,o)},r),i},n.__iteratorUncached=function(n,r){var o,i=t.__iterator(1,r),a=0;return new L(function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?P(n,a++,e):P(n,a++,o.value,o)})},n}(this,t))},interleave:function(){var t=[this].concat(k(arguments)),e=We(this.toSeq(),Y.of,t),n=e.flatten(!0);return e.size&&(n.size=e.size*t.length),Ge(this,n)},last:function(){return this.get(-1)},skipWhile:function(t,e){return Ge(this,He(this,t,e,!1))},zip:function(){return Ge(this,We(this,Rn,[this].concat(k(arguments))))},zipWith:function(t){var e=k(arguments);return e[0]=this,Ge(this,We(this,t,e))}}),o.prototype[d]=!0,o.prototype[h]=!0,Dn(i,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Tn.includes,Dn(V,r.prototype),Dn(Y,o.prototype),Dn(q,i.prototype),Dn(vt,r.prototype),Dn(bt,o.prototype),Dn(wt,i.prototype),{Iterable:n,Seq:K,Collection:yt,Map:Pt,OrderedMap:xe,List:pe,Stack:En,Set:cn,OrderedSet:mn,Record:nn,Range:mt,Repeat:ht,is:ft,fromJS:ct}}()},7376:(t,e,n)=>{"use strict";var r=n(5224);t.exports=function(t,e){if(!(t instanceof r))return null;var n=t.getNextSiblingKey();if(n)return n;var o=t.getParentKey();if(!o)return null;for(var i=e.get(o);i&&!i.getNextSiblingKey();){var a=i.getParentKey();i=a?e.get(a):null}return i?i.getNextSiblingKey():null}},7378:(t,e,n)=>{"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(4134),i=n(8372),a=n(5389),s=n(7337),c=n(646),u=n(6408),l=s.Map,p={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},f=o.isBrowser("IE <= 11"),d=function(){function t(t){var e=this;r(this,"observer",void 0),r(this,"container",void 0),r(this,"mutations",void 0),r(this,"onCharData",void 0),this.container=t,this.mutations=l();var n=a(t);n.MutationObserver&&!f?this.observer=new n.MutationObserver(function(t){return e.registerMutations(t)}):this.onCharData=function(t){t.target instanceof Node||c(!1),e.registerMutation({type:"characterData",target:t.target})}}var e=t.prototype;return e.start=function(){this.observer?this.observer.observe(this.container,p):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},e.stopAndFlushMutations=function(){var t=this.observer;t?(this.registerMutations(t.takeRecords()),t.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var e=this.mutations;return this.mutations=l(),e},e.registerMutations=function(t){for(var e=0;e<t.length;e++)this.registerMutation(t[e])},e.getMutationTextContent=function(t){var e=t.type,n=t.target,r=t.removedNodes;if("characterData"===e){if(""!==n.textContent)return f?n.textContent.replace("\n",""):n.textContent}else if("childList"===e){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},e.registerMutation=function(t){var e=this.getMutationTextContent(t);if(null!=e){var n=u(i(t.target));this.mutations=this.mutations.set(n,e)}},t}();t.exports=d},7381:(t,e,n)=>{"use strict";var r=n(2242),o=n(580),i=n(8488),a=n(5188);t.exports=function(t){var e=a(t,function(t){var e=t.getSelection(),n=t.getCurrentContent(),r=e.getAnchorKey(),a=e.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a-1];return i(t,s?o.getUTF16Length(s,0):1)},"backward");if(e===t.getCurrentContent())return t;var n=t.getSelection();return r.push(t,e.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},7392:(t,e,n)=>{"use strict";var r=n(9824),o=n(7458);t.exports=function(t){var e=r(t.ownerDocument||t.document);t.Window&&t instanceof t.Window&&(t=e);var n=o(t),i=t===e?t.ownerDocument.documentElement:t,a=t.scrollWidth-i.clientWidth,s=t.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}},7405:t=>{"use strict";t.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},7436:function(t,e,n){var r,o,i;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e,n(4012),n(5556),n(9168)],r=function(t,e,n,r){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach(function(e){s(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ReactBootstrapSlider=void 0,e=o(e),n=o(n),r=o(r);class c extends e.default.Component{constructor(...t){super(...t),s(this,"checkAndDoDisabled",()=>{const t="disabled"!==this.props.disabled,e=this.mySlider.isEnabled();t?e||this.mySlider.enable():e&&this.mySlider.disable()}),s(this,"updateSliderValues",()=>{void 0===this.props.min||void 0===this.mySlider.min&&void 0===this.mySlider.options.min||this.mySlider.setAttribute("min",this.props.min),void 0===this.props.max||void 0===this.mySlider.max&&void 0===this.mySlider.options.max||this.mySlider.setAttribute("max",this.props.max),void 0===this.props.step||void 0===this.mySlider.step&&void 0===this.mySlider.options.step||this.mySlider.setAttribute("step",this.props.step),this.mySlider.setValue(this.props.value),this.checkAndDoDisabled()})}componentDidMount(){const t=this,e=a(a({},this.props),{},{tooltip:this.props.tooltip||"show"});if(this.mySlider=new r.default(this.node,e),this.props.change||this.props.handleChange){const t=this.props.change||this.props.handleChange;this.mySlider.on("change",e=>{const n={target:{value:e.newValue}};t(n)})}this.props.slideStop&&this.mySlider.on("slideStop",e=>{const n={target:{value:e}};t.props.slideStop(n)}),this.checkAndDoDisabled()}componentDidUpdate(){this.updateSliderValues()}componentWillUnmount(){this.mySlider.destroy()}render(){return e.default.createElement("div",{ref:t=>this.node=t})}}t.ReactBootstrapSlider=c,c.propTypes={min:n.default.number,max:n.default.number,step:n.default.number,value:n.default.oneOfType([n.default.number,n.default.arrayOf(n.default.number.isRequired).isRequired]).isRequired,disabled:n.default.string,tooltip:n.default.string,change:n.default.func,handleChange:n.default.func,slideStop:n.default.func,labelledby:n.default.oneOfType([n.default.string,n.default.arrayOf(n.default.string)])};var u=c;t.default=u},void 0===(i=r.apply(e,o))||(t.exports=i)},7458:t=>{"use strict";t.exports=function(t){return t.Window&&t instanceof t.Window?{x:t.pageXOffset||t.document.documentElement.scrollLeft,y:t.pageYOffset||t.document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}}},7470:(t,e,n)=>{"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(6840),i=n(5224),a=n(1439),s=n(5481),c=n(702),u=n(646),l=function(t,e){return{key:t.getKey(),text:t.getText(),type:t.getType(),depth:t.getDepth(),inlineStyleRanges:c(t),entityRanges:s(t,e),data:t.getData().toObject()}};t.exports=function(t){var e={entityMap:{},blocks:[]};return e=function(t,e){var n=e.entityMap,s=[],c={},p={},f=0;return t.getBlockMap().forEach(function(t){t.findEntityRanges(function(t){return null!==t.getEntity()},function(e){var r=t.getEntityAt(e),o=a.stringify(r);p[o]||(p[o]=r,n[o]="".concat(f),f++)}),function(t,e,n,a){if(t instanceof o)n.push(l(t,e));else{t instanceof i||u(!1);var s=t.getParentKey(),c=a[t.getKey()]=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(e){r(t,e,n[e])})}return t}({},l(t,e),{children:[]});s?a[s].children.push(c):n.push(c)}}(t,n,s,c)}),{blocks:s,entityMap:n}}(t,e),e=function(t,e){var n=e.blocks,r=e.entityMap,o={};return Object.keys(r).forEach(function(e,n){var r=t.getEntity(a.unstringify(e));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}}),{blocks:n,entityMap:o}}(t,e),e}},7654:t=>{var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n={uuid:function(t,n){var r,o,i=e,a=[];if(n=n||i.length,t)for(r=0;r<t;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 t,n=e,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),t=15&o,o>>=4,r[i]=n[19==i?3&t|8:t]);return r.join("")},uuidCompact:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})}};t.exports=n},7656:(t,e,n)=>{"use strict";function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){o(t,e,n[e])})}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(5748),a=n(3018),s=n(6840),c=n(5224),u=n(1608),l=n(1381),p=n(6991),f=n(679),d=n(7282),h=n(7337),g=n(1721),m=h.List,y=h.Record,v=h.Repeat,b=h.Map,w=h.OrderedMap,_=y({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),E=d("draft_tree_data_support")?c:s,S=function(t){var e,n;function o(){return t.apply(this,arguments)||this}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__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(t){return this.getBlockMap().get(t)},s.getKeyBefore=function(t){return this.getBlockMap().reverse().keySeq().skipUntil(function(e){return e===t}).skip(1).first()},s.getKeyAfter=function(t){return this.getBlockMap().keySeq().skipUntil(function(e){return e===t}).skip(1).first()},s.getBlockAfter=function(t){return this.getBlockMap().skipUntil(function(e,n){return n===t}).skip(1).first()},s.getBlockBefore=function(t){return this.getBlockMap().reverse().skipUntil(function(e,n){return n===t}).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(t){return this.getBlockMap().map(function(t){return t?t.getText():""}).join(t||"\n")},s.getLastCreatedEntityKey=function(){return u.__getLastCreatedEntityKey()},s.hasText=function(){var t=this.getBlockMap();return t.size>1||escape(t.first().getText()).replace(/%u200B/g,"").length>0},s.createEntity=function(t,e,n){return u.__create(t,e,n),this},s.mergeEntityData=function(t,e){return u.__mergeData(t,e),this},s.replaceEntityData=function(t,e){return u.__replaceData(t,e),this},s.addEntity=function(t){return u.__add(t),this},s.getEntity=function(t){return u.__get(t)},s.getAllEntities=function(){return u.__getAll()},s.loadWithEntities=function(t){return u.__loadWithEntities(t)},o.createFromBlockArray=function(t,e){var n=Array.isArray(t)?t:t.contentBlocks,r=i.createFromArray(n),a=r.isEmpty()?new l:l.createEmpty(r.first().getKey());return new o({blockMap:r,entityMap:e||u,selectionBefore:a,selectionAfter:a})},o.createFromText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=t.split(e).map(function(t){return t=g(t),new E({key:p(),text:t,type:"unstyled",characterList:m(v(a.EMPTY,t.length))})});return o.createFromBlockArray(n)},o.fromJS=function(t){return new o(r({},t,{blockMap:w(t.blockMap).map(o.createContentBlockFromJS),selectionBefore:new l(t.selectionBefore),selectionAfter:new l(t.selectionAfter)}))},o.createContentBlockFromJS=function(t){var e=t.characterList;return new E(r({},t,{data:b(t.data),characterList:null!=e?m((Array.isArray(e)?e:f(e)).map(function(t){return a.fromJS(t)})):void 0}))},o}(_);t.exports=S},7683:(t,e,n)=>{"use strict";n.d(e,{F3:()=>d,GT:()=>f,J9:()=>c,JF:()=>u,MT:()=>l,V1:()=>s});var r=n(1635),o=n(4819),i=n(2587),a=n(9160);function s(t,e,n){if(void 0===n&&(n=Error),!t)throw new n(e)}function c(t,e,n){return void 0===n&&(n={}),e.reduce(function(e,r){return r in t?e[r]=t[r]:r in n&&(e[r]=n[r]),e},{})}var u={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(t){},onWarn:function(t){}};function l(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function p(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,n){t[e]=n}}}}}function f(t){void 0===t&&(t={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var e=Intl.RelativeTimeFormat,n=Intl.ListFormat,a=Intl.DisplayNames,s=(0,o.B)(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,(0,r.fX)([void 0],e,!1)))},{cache:p(t.dateTime),strategy:o.W.variadic}),c=(0,o.B)(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,(0,r.fX)([void 0],e,!1)))},{cache:p(t.number),strategy:o.W.variadic}),u=(0,o.B)(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,(0,r.fX)([void 0],e,!1)))},{cache:p(t.pluralRules),strategy:o.W.variadic});return{getDateTimeFormat:s,getNumberFormat:c,getMessageFormat:(0,o.B)(function(t,e,n,o){return new i.S(t,e,n,(0,r.Cl)({formatters:{getNumberFormat:c,getDateTimeFormat:s,getPluralRules:u}},o||{}))},{cache:p(t.message),strategy:o.W.variadic}),getRelativeTimeFormat:(0,o.B)(function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new(e.bind.apply(e,(0,r.fX)([void 0],t,!1)))},{cache:p(t.relativeTime),strategy:o.W.variadic}),getPluralRules:u,getListFormat:(0,o.B)(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new(n.bind.apply(n,(0,r.fX)([void 0],t,!1)))},{cache:p(t.list),strategy:o.W.variadic}),getDisplayNames:(0,o.B)(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new(a.bind.apply(a,(0,r.fX)([void 0],t,!1)))},{cache:p(t.displayNames),strategy:o.W.variadic})}}function d(t,e,n,r){var o,i=t&&t[e];if(i&&(o=i[n]),o)return o;r(new a.OC("No ".concat(e," format named: ").concat(n)))}},7759:t=>{"use strict";t.exports=function(t){var e=t.getSelection(),n=e.getAnchorKey(),r=t.getBlockTree(n),o=e.getStartOffset(),i=!1;return r.some(function(t){return o===t.get("start")?(i=!0,!0):o<t.get("end")&&t.get("leaves").some(function(t){var e=t.get("start");return o===e&&(i=!0,!0)})}),i}},7784:(t,e,n)=>{"use strict";var r=n(4134),o=n(3722),i=n(8058),a=n(7141),s=n(3694),c=n(3919),u=n(6127),l=n(4861),p=n(4447),f=n(5091),d=n(8136),h=n(2208),g=n(6207),m=r.isBrowser("Chrome"),y=r.isBrowser("Firefox"),v=m||y?g:function(t){},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};t.exports=b},7800:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(3145);function o(t,e){if(t){if("string"==typeof t)return(0,r.A)(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(t,e):void 0}}},7811:(t,e,n)=>{"use strict";var r=n(9414),o=n(5852),i=n(4134),a=i.isPlatform("Mac OS X"),s=a&&i.isBrowser("Firefox < 29"),c=r.hasCommandModifier,u=r.isCtrlKeyCommand;function l(t){return a&&t.altKey||u(t)}t.exports=function(t){switch(t.keyCode){case 66:return c(t)?"bold":null;case 68:return u(t)?"delete":null;case 72:return u(t)?"backspace":null;case 73:return c(t)?"italic":null;case 74:return c(t)?"code":null;case 75:return a&&u(t)?"secondary-cut":null;case 77:case 79:return u(t)?"split-block":null;case 84:return a&&u(t)?"transpose-characters":null;case 85:return c(t)?"underline":null;case 87:return a&&u(t)?"backspace-word":null;case 89:return u(t)?a?"secondary-paste":"redo":null;case 90:return function(t){return c(t)?t.shiftKey?"redo":"undo":null}(t)||null;case o.RETURN:return"split-block";case o.DELETE:return function(t){return!a&&t.shiftKey?null:l(t)?"delete-word":"delete"}(t);case o.BACKSPACE:return function(t){return c(t)&&a?"backspace-to-start-of-line":l(t)?"backspace-word":"backspace"}(t);case o.LEFT:return s&&c(t)?"move-selection-to-start-of-block":null;case o.RIGHT:return s&&c(t)?"move-selection-to-end-of-block":null;default:return null}}},7918:t=>{"use strict";t.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},8003:t=>{"use strict";function e(t){return t.replace(/\//g,"-")}t.exports=function(t){return"object"==typeof t?Object.keys(t).filter(function(e){return t[e]}).map(e).join(" "):Array.prototype.map.call(arguments,e).join(" ")}},8058:(t,e,n)=>{"use strict";var r=n(2242),o=n(4909),i=n(9758);t.exports=function(t,e){var n=e.currentTarget.ownerDocument;if(!Boolean(t.props.preserveSelectionOnBlur)&&i(n)===n.body){var a=n.defaultView.getSelection(),s=t.editor;1===a.rangeCount&&o(s,a.anchorNode)&&o(s,a.focusNode)&&a.removeAllRanges()}var c=t._latestEditorState,u=c.getSelection();if(u.getHasFocus()){var l=u.set("hasFocus",!1);t.props.onBlur&&t.props.onBlur(e),t.update(r.acceptSelection(c,l))}}},8136:(t,e,n)=>{"use strict";var r=n(9938),o=n(2242),i=n(9414),a=n(5852),s=n(5170),c=n(4134),u=n(3680),l=n(8771),p=n(4143),f=n(525),d=n(4071),h=n(5169),g=n(70),m=n(7381),y=n(2383),v=n(5935),b=n(8976),w=i.isOptionKeyCommand,_=c.isBrowser("Chrome");t.exports=function(t,e){var n=e.which,i=t._latestEditorState;function c(n){var r=t.props[n];return!!r&&(r(e),!0)}switch(n){case a.RETURN:if(e.preventDefault(),t.props.handleReturn&&u(t.props.handleReturn(e,i)))return;break;case a.ESC:if(e.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:_&&w(e)&&e.preventDefault()}var E=t.props.keyBindingFn(e);if(null!=E&&""!==E)if("undo"!==E){if(e.preventDefault(),!t.props.handleKeyCommand||!u(t.props.handleKeyCommand(E,i,e.timeStamp))){var S=function(t,e,n){switch(t){case"redo":return o.redo(e);case"delete":return y(e);case"delete-word":return f(e);case"backspace":return m(e);case"backspace-word":return p(e);case"backspace-to-start-of-line":return l(e,n);case"split-block":return d(e);case"transpose-characters":return v(e);case"move-selection-to-start-of-block":return g(e);case"move-selection-to-end-of-block":return h(e);case"secondary-cut":return s.cut(e);case"secondary-paste":return s.paste(e);default:return e}}(E,i,e);S!==i&&t.update(S)}}else b(e,i,t.update);else if(n===a.SPACE&&_&&w(e)){var k=r.replaceText(i.getCurrentContent(),i.getSelection()," ");t.update(o.push(i,k,"insert-characters"))}}},8168:(t,e,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(null,arguments)}n.d(e,{A:()=>r})},8227:t=>{"use strict";t.exports=function(t,e,n,r){if(t.size){var o=0;t.reduce(function(t,i,a){return e(t,i)||(n(t)&&r(o,a),o=a),i}),n(t.last())&&r(o,t.count())}}},8307:(t,e,n)=>{"use strict";var r=n(5822),o=n(646),i="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",a="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",s=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+i+a+"]"),c=new RegExp("["+i+a+"]");function u(t){var e=s.exec(t);return null==e?null:e[0]}function l(t){var e=u(t);return null==e?r.NEUTRAL:c.exec(e)?r.RTL:r.LTR}function p(t,e){if(e=e||r.NEUTRAL,!t.length)return e;var n=l(t);return n===r.NEUTRAL?e:n}function f(t,e){return e||(e=r.getGlobalDir()),r.isStrong(e)||o(!1),p(t,e)}var d={firstStrongChar:u,firstStrongCharDir:l,resolveBlockDir:p,getDirection:f,isDirectionLTR:function(t,e){return f(t,e)===r.LTR},isDirectionRTL:function(t,e){return f(t,e)===r.RTL}};t.exports=d},8327:(t,e,n)=>{var r=n(6018).FilterCSS,o=n(2048),i=n(5930),a=i.parseTag,s=i.parseAttr,c=n(9349);function u(t){return null==t}function l(t){(t=function(t){var e={};for(var n in t)e[n]=t[n];return e}(t||{})).stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=o.onIgnoreTagStripAll),t.whiteList||t.allowList?t.whiteList=function(t){var e={};for(var n in t)Array.isArray(t[n])?e[n.toLowerCase()]=t[n].map(function(t){return t.toLowerCase()}):e[n.toLowerCase()]=t[n];return e}(t.whiteList||t.allowList):t.whiteList=o.whiteList,this.attributeWrapSign=!0===t.singleQuotedAttributeValue?"'":o.attributeWrapSign,t.onTag=t.onTag||o.onTag,t.onTagAttr=t.onTagAttr||o.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||o.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||o.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||o.safeAttrValue,t.escapeHtml=t.escapeHtml||o.escapeHtml,this.options=t,!1===t.css?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new r(t.css))}l.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e=this,n=e.options,r=n.whiteList,i=n.onTag,l=n.onIgnoreTag,p=n.onTagAttr,f=n.onIgnoreTagAttr,d=n.safeAttrValue,h=n.escapeHtml,g=e.attributeWrapSign,m=e.cssFilter;n.stripBlankChar&&(t=o.stripBlankChar(t)),n.allowCommentTag||(t=o.stripCommentTag(t));var y=!1;n.stripIgnoreTagBody&&(y=o.StripTagBody(n.stripIgnoreTagBody,l),l=y.onIgnoreTag);var v=a(t,function(t,e,n,o,a){var y={sourcePosition:t,position:e,isClosing:a,isWhite:Object.prototype.hasOwnProperty.call(r,n)},v=i(n,o,y);if(!u(v))return v;if(y.isWhite){if(y.isClosing)return"</"+n+">";var b=function(t){var e=c.spaceIndex(t);if(-1===e)return{html:"",closing:"/"===t[t.length-2]};var n="/"===(t=c.trim(t.slice(e+1,-1)))[t.length-1];return n&&(t=c.trim(t.slice(0,-1))),{html:t,closing:n}}(o),w=r[n],_=s(b.html,function(t,e){var r=-1!==c.indexOf(w,t),o=p(n,t,e,r);return u(o)?r?(e=d(n,t,e,m))?t+"="+g+e+g:t:u(o=f(n,t,e,r))?void 0:o:o});return o="<"+n,_&&(o+=" "+_),b.closing&&(o+=" /"),o+">"}return u(v=l(n,o,y))?h(o):v},h);return y&&(v=y.remove(v)),v},t.exports=l},8372:(t,e,n)=>{"use strict";var r=n(9677),o=n(4453);t.exports=function(t){for(var e=t;e&&e!==r(t).documentElement;){var n=o(e);if(null!=n)return n;e=e.parentNode}return null}},8382:t=>{"use strict";t.exports={getRemovalRange:function(t,e,n,r,o){var i=n.split(" ");i=i.map(function(t,e){if("forward"===o){if(e>0)return" "+t}else if(e<i.length-1)return t+" ";return t});for(var a,s=r,c=null,u=null,l=0;l<i.length;l++){if(t<(a=s+i[l].length)&&s<e)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}}}},8488:(t,e,n)=>{"use strict";n(4594),t.exports=function(t,e){var n=t.getSelection(),r=t.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,s=0;if(e>i){var c=r.getKeyBefore(o);null==c?a=o:(a=c,s=r.getBlockForKey(c).getText().length)}else s=i-e;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})}},8527:(t,e,n)=>{"use strict";var r=n(7078);t.exports=function(t){var e=r(t);return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}},8587:(t,e,n)=>{"use strict";function r(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}n.d(e,{A:()=>r})},8624:(t,e,n)=>{"use strict";n.r(e),n.d(e,{DOMException:()=>_,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(t){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(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function s(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function c(t){return"string"!=typeof t&&(t=String(t)),t}function u(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){if(2!=t.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function p(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function f(t){return new Promise(function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function d(t){var e=new FileReader,n=f(e);return e.readAsArrayBuffer(t),n}function h(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=h(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||a(t))?this._bodyArrayBuffer=h(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof t?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(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=p(this);if(t)return t;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 t,e,n,r,o,i=p(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,n=f(e),r=/charset=([A-Za-z0-9_-]+)/.exec(t.type),o=r?r[1]:"utf-8",e.readAsText(t,o),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[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(t,e){t=s(t),e=c(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},l.prototype.delete=function(t){delete this.map[s(t)]},l.prototype.get=function(t){return t=s(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(s(t))},l.prototype.set=function(t,e){this.map[s(t)]=c(e)},l.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},l.prototype.keys=function(){var t=[];return this.forEach(function(e,n){t.push(n)}),u(t)},l.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),u(t)},l.prototype.entries=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),u(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var m=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function y(t,e){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=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=(n=e.method||this.method||"GET").toUpperCase(),m.indexOf(o)>-1?o:n),this.mode=e.mode||this.mode||null,this.signal=e.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"!==e.cache&&"no-cache"!==e.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(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}}),e}function b(t,e){if(!(this instanceof b))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.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===e.statusText?"":""+e.statusText,this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}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 t=new b(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var w=[301,302,303,307,308];b.redirect=function(t,e){if(-1===w.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})};var _=r.DOMException;try{new _}catch(t){(_=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),_.prototype.constructor=_}function E(t,e){return new Promise(function(n,i){var a=new y(t,e);if(a.signal&&a.signal.aborted)return i(new _("Aborted","AbortError"));var u=new XMLHttpRequest;function p(){u.abort()}if(u.onload=function(){var t,e,r={statusText:u.statusText,headers:(t=u.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t}).forEach(function(t){var n=t.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();try{e.append(r,o)}catch(t){console.warn("Response "+t.message)}}}),e)};0===a.url.indexOf("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 _("Aborted","AbortError"))},0)},u.open(a.method,function(t){try{return""===t&&r.location.href?r.location.href:t}catch(e){return t}}(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")),e&&"object"==typeof e.headers&&!(e.headers instanceof l||r.Headers&&e.headers instanceof r.Headers)){var f=[];Object.getOwnPropertyNames(e.headers).forEach(function(t){f.push(s(t)),u.setRequestHeader(t,c(e.headers[t]))}),a.headers.forEach(function(t,e){-1===f.indexOf(e)&&u.setRequestHeader(e,t)})}else a.headers.forEach(function(t,e){u.setRequestHeader(e,t)});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)},8748:t=>{"use strict";var e=/-(.)/g;t.exports=function(t){return t.replace(e,function(t,e){return e.toUpperCase()})}},8771:(t,e,n)=>{"use strict";var r=n(2242),o=n(5989),i=n(9215),a=n(8488),s=n(5188);t.exports=function(t,e){var n=s(t,function(t){var n=t.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return a(t,1);var r=e.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=o(r),i(t,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState},"backward");return n===t.getCurrentContent()?t:r.push(t,n,"remove-range")}},8798:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>f,Kq:()=>l,ob:()=>p});var r=n(1635),o=n(4146),i=n.n(o),a=n(4012),s=n(4184),c="undefined"==typeof window||window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?a.createContext(null):window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=a.createContext(null)),u=c.Consumer,l=c.Provider,p=c;function f(t,e){var n,o=e||{},c=o.intlPropName,l=void 0===c?"intl":c,p=o.forwardRef,f=void 0!==p&&p,d=o.enforceContext,h=void 0===d||d,g=function(e){return a.createElement(u,null,function(n){var o;h&&(0,s.HM)(n);var i=((o={})[l]=n,o);return a.createElement(t,(0,r.Cl)({},e,i,{ref:f?e.forwardedRef:null}))})};return g.displayName="injectIntl(".concat((n=t).displayName||n.name||"Component",")"),g.WrappedComponent=t,f?i()(a.forwardRef(function(t,e){return a.createElement(g,(0,r.Cl)({},t,{forwardedRef:e}))}),t):i()(g,t)}},8886:(t,e,n)=>{"use strict";n.d(e,{A:()=>p});var r=n(4012),o=n.n(r),i=n(1635),a=n(4184),s=n(8798);function c(t){var e=function(){var t=r.useContext(s.ob);return(0,a.HM)(t),t}(),n=e.formatMessage,o=e.textComponent,i=void 0===o?r.Fragment:o,c=t.id,u=t.description,l=t.defaultMessage,p=t.values,f=t.children,d=t.tagName,h=void 0===d?i:d,g=n({id:c,description:u,defaultMessage:l},p,{ignoreTag:t.ignoreTag});return"function"==typeof f?f(Array.isArray(g)?g:[g]):h?r.createElement(h,null,g):r.createElement(r.Fragment,null,g)}c.displayName="FormattedMessage";var u=r.memo(c,function(t,e){var n=t.values,r=(0,i.Tt)(t,["values"]),o=e.values,s=(0,i.Tt)(e,["values"]);return(0,a.bN)(o,n)&&(0,a.bN)(r,s)});u.displayName="MemoizedFormattedMessage";const l=u,p=(0,s.Ay)(function(t){return o().createElement(l,t)},{withRef:!1})},8976:(t,e,n)=>{"use strict";var r=n(2242);t.exports=function(t,e,n){var o=r.undo(e);if("spellcheck-change"!==e.getLastChangeType())t.preventDefault(),e.getNativelyRenderedContent()?(n(r.set(e,{nativelyRenderedContent:null})),setTimeout(function(){n(o)},0)):n(o);else{var i=o.getCurrentContent();n(r.set(o,{nativelyRenderedContent:i}))}}},8985:t=>{t.exports=null},9083:(t,e,n)=>{"use strict";var r=n(7337).List,o=function(){function t(t){var e,n;n=void 0,(e="_decorators")in this?Object.defineProperty(this,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[e]=n,this._decorators=t.slice()}var e=t.prototype;return e.getDecorations=function(t,e){var n=Array(t.getText().length).fill(null);return this._decorators.forEach(function(r,o){var i=0;(0,r.strategy)(t,function(t,e){(function(t,e,n){for(var r=e;r<n;r++)if(null!=t[r])return!1;return!0})(n,t,e)&&(function(t,e,n,r){for(var o=e;o<n;o++)t[o]=r}(n,t,e,o+"."+i),i++)},e)}),r(n)},e.getComponentForKey=function(t){var e=parseInt(t.split(".")[0],10);return this._decorators[e].component},e.getPropsForKey=function(t){var e=parseInt(t.split(".")[0],10);return this._decorators[e].props},t}();t.exports=o},9127:(t,e,n)=>{"use strict";var r=n(5748),o=n(5224),i=n(7337),a=n(6269),s=n(646),c=n(3310),u=i.List;t.exports=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";e.isCollapsed()||s(!1);var l=t.getBlockMap(),p=c(n),f=e.getStartKey(),d=e.getStartOffset(),h=l.get(f);return h instanceof o&&(h.getChildKeys().isEmpty()||s(!1)),1===p.size?function(t,e,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 t.merge({blockMap:n.set(o,g),selectionBefore:e,selectionAfter:e.merge({anchorKey:p,anchorOffset:f,focusKey:p,focusOffset:f,isBackward:!1})})}(t,e,l,p.first(),f,d,i):function(t,e,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(t,e){e===a?(y?l.push(t):l.push(function(t,e,n){var r=t.getText(),o=t.getCharacterList(),i=r.slice(0,e),a=o.slice(0,e),s=n.first();return t.merge({text:i+s.getText(),characterList:a.concat(s.getCharacterList()),type:i?t.getType():s.getType(),data:s.getData()})}(t,s,i)),i.slice(y?0:1,p-1).forEach(function(t){return l.push(t)}),l.push(function(t,e,n){var r=t.getText(),o=t.getCharacterList(),i=r.length,a=r.slice(e,i),s=o.slice(e,i),c=n.last();return c.merge({text:c.getText()+a,characterList:c.getCharacterList().concat(s),data:c.getData()})}(t,s,i))):l.push(t)});var v=r.createFromArray(l);return c&&(v=function(t,e,n,r){return t.withMutations(function(e){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),s=n.getParentKey(),c=function(t,e){var n=t.getKey(),r=t,o=[];for(e.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=e.get(i)}return o}(r,t),l=c[c.length-1];if(e.get(i)?(e.setIn([o,"nextSibling"],i),e.setIn([i,"prevSibling"],o)):(e.setIn([o,"nextSibling"],r.getNextSiblingKey()),e.setIn([r.getNextSiblingKey(),"prevSibling"],o)),e.setIn([l,"nextSibling"],a),a&&e.setIn([a,"prevSibling"],l),c.forEach(function(t){return e.setIn([t,"parent"],s)}),s){var p=t.get(s).getChildKeys(),f=p.indexOf(o)+1,d=p.toArray();d.splice.apply(d,[f,0].concat(c)),e.setIn([s,"children"],u(d))}})}(v,0,f,d)),t.merge({blockMap:v,selectionBefore:e,selectionAfter:e.merge({anchorKey:m,anchorOffset:g,focusKey:m,focusOffset:g,isBackward:!1})})}(t,e,l,p,f,d)}},9160:(t,e,n)=>{"use strict";n.d(e,{Ho:()=>l,OC:()=>a,hr:()=>c,pg:()=>u,sb:()=>p,uo:()=>s});var r,o=n(1635);!function(t){t.FORMAT_ERROR="FORMAT_ERROR",t.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",t.INVALID_CONFIG="INVALID_CONFIG",t.MISSING_DATA="MISSING_DATA",t.MISSING_TRANSLATION="MISSING_TRANSLATION"}(r||(r={}));var i=function(t){function e(n,r,o){var i=this,a=o?o instanceof Error?o:new Error(String(o)):void 0;return(i=t.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,e),i}return(0,o.C6)(e,t),e}(Error),a=function(t){function e(e,n){return t.call(this,r.UNSUPPORTED_FORMATTER,e,n)||this}return(0,o.C6)(e,t),e}(i),s=function(t){function e(e,n){return t.call(this,r.INVALID_CONFIG,e,n)||this}return(0,o.C6)(e,t),e}(i),c=function(t){function e(e,n){return t.call(this,r.MISSING_DATA,e,n)||this}return(0,o.C6)(e,t),e}(i),u=function(t){function e(e,n,o){var i=t.call(this,r.FORMAT_ERROR,"".concat(e,"\nLocale: ").concat(n,"\n"),o)||this;return i.locale=n,i}return(0,o.C6)(e,t),e}(i),l=function(t){function e(e,n,r,o){var i=t.call(this,"".concat(e,"\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.locale=n,i}return(0,o.C6)(e,t),e}(u),p=function(t){function e(e,n){var o=t.call(this,r.MISSING_TRANSLATION,'Missing message: "'.concat(e.id,'" for locale "').concat(n,'", using ').concat(e.defaultMessage?"default message (".concat("string"==typeof e.defaultMessage?e.defaultMessage:e.defaultMessage.map(function(t){var e;return null!==(e=t.value)&&void 0!==e?e:JSON.stringify(t)}).join(),")"):"id"," as fallback."))||this;return o.descriptor=e,o}return(0,o.C6)(e,t),e}(i)},9168:(t,e,n)=>{"use strict";var r,o,i,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s="object"===("undefined"==typeof window?"undefined":a(window));o=[n(8985)],void 0===(i="function"==typeof(r=function(t){var e,n="slider",r="bootstrapSlider";return s&&!window.console&&(window.console={}),s&&!window.console.log&&(window.console.log=function(){}),s&&!window.console.warn&&(window.console.warn=function(){}),function(t){var e=Array.prototype.slice;function n(){}!function(t){if(t){var r="undefined"==typeof console?n:function(t){console.error(t)};t.bridget=function(n,o){(function(e){e.prototype.option||(e.prototype.option=function(e){t.isPlainObject(e)&&(this.options=t.extend(!0,this.options,e))})})(o),function(n,o){t.fn[n]=function(i){if("string"==typeof i){for(var a=e.call(arguments,1),s=0,c=this.length;s<c;s++){var u=this[s],l=t.data(u,n);if(l)if(t.isFunction(l[i])&&"_"!==i.charAt(0)){var p=l[i].apply(l,a);if(void 0!==p&&p!==l)return p}else r("no such method '"+i+"' for "+n+" instance");else r("cannot call methods on "+n+" prior to initialization; attempted to call '"+i+"'")}return this}var f=this.map(function(){var e=t.data(this,n);return e?(e.option(i),e._init()):(e=new o(this,i),t.data(this,n,e)),t(this)});return 1===f.length?f[0]:f}}(n,o)},t.bridget}}(t)}(t),function(t){var o=void 0,i=function(t){return"Invalid input value '"+t+"' passed in"},a={linear:{getValue:function(t,e){return t<e.min?e.min:t>e.max?e.max:t},toValue:function(t){var e=t/100*(this.options.max-this.options.min),n=!0;if(this.options.ticks_positions.length>0){for(var r,o,i,s=0,c=1;c<this.options.ticks_positions.length;c++)if(t<=this.options.ticks_positions[c]){r=this.options.ticks[c-1],i=this.options.ticks_positions[c-1],o=this.options.ticks[c],s=this.options.ticks_positions[c];break}e=r+(t-i)/(s-i)*(o-r),n=!1}var u=(n?this.options.min:0)+Math.round(e/this.options.step)*this.options.step;return a.linear.getValue(u,this.options)},toPercentage:function(t){if(this.options.max===this.options.min)return 0;if(this.options.ticks_positions.length>0){for(var e,n,r,o=0,i=0;i<this.options.ticks.length;i++)if(t<=this.options.ticks[i]){e=i>0?this.options.ticks[i-1]:0,r=i>0?this.options.ticks_positions[i-1]:0,n=this.options.ticks[i],o=this.options.ticks_positions[i];break}if(i>0)return r+(t-e)/(n-e)*(o-r)}return 100*(t-this.options.min)/(this.options.max-this.options.min)}},logarithmic:{toValue:function(t){var e=1-this.options.min,n=Math.log(this.options.min+e),r=Math.log(this.options.max+e),o=Math.exp(n+(r-n)*t/100)-e;return Math.round(o)===r?r:(o=this.options.min+Math.round((o-this.options.min)/this.options.step)*this.options.step,a.linear.getValue(o,this.options))},toPercentage:function(t){if(this.options.max===this.options.min)return 0;var e=1-this.options.min,n=Math.log(this.options.max+e),r=Math.log(this.options.min+e);return 100*(Math.log(t+e)-r)/(n-r)}}};function c(e,n){this._state={value:null,enabled:null,offset:null,size:null,percentage:null,inDrag:!1,over:!1,tickIndex:null},this.ticksCallbackMap={},this.handleCallbackMap={},"string"==typeof e?this.element=document.querySelector(e):e instanceof HTMLElement&&(this.element=e),n=n||{};for(var r=Object.keys(this.defaultOptions),o=n.hasOwnProperty("min"),i=n.hasOwnProperty("max"),s=0;s<r.length;s++){var c=r[s],u=n[c];u=null!==(u=void 0!==u?u:p(this.element,c))?u:this.defaultOptions[c],this.options||(this.options={}),this.options[c]=u}if(this.ticksAreValid=Array.isArray(this.options.ticks)&&this.options.ticks.length>0,this.ticksAreValid||(this.options.lock_to_ticks=!1),"auto"===this.options.rtl){var l=window.getComputedStyle(this.element);this.options.rtl=null!=l?"rtl"===l.direction:"rtl"===this.element.style.direction}function p(t,e){var n="data-slider-"+e.replace(/_/g,"-"),r=t.getAttribute(n);try{return JSON.parse(r)}catch(t){return r}}"vertical"!==this.options.orientation||"top"!==this.options.tooltip_position&&"bottom"!==this.options.tooltip_position?"horizontal"!==this.options.orientation||"left"!==this.options.tooltip_position&&"right"!==this.options.tooltip_position||(this.options.tooltip_position="top"):this.options.rtl?this.options.tooltip_position="left":this.options.tooltip_position="right";var f,d,h,g,m,y=this.element.style.width,v=!1,b=this.element.parentNode;if(this.sliderElem)v=!0;else{this.sliderElem=document.createElement("div"),this.sliderElem.className="slider";var w=document.createElement("div");w.className="slider-track",(d=document.createElement("div")).className="slider-track-low",(f=document.createElement("div")).className="slider-selection",(h=document.createElement("div")).className="slider-track-high",(g=document.createElement("div")).className="slider-handle min-slider-handle",g.setAttribute("role","slider"),g.setAttribute("aria-valuemin",this.options.min),g.setAttribute("aria-valuemax",this.options.max),(m=document.createElement("div")).className="slider-handle max-slider-handle",m.setAttribute("role","slider"),m.setAttribute("aria-valuemin",this.options.min),m.setAttribute("aria-valuemax",this.options.max),w.appendChild(d),w.appendChild(f),w.appendChild(h),this.rangeHighlightElements=[];var _=this.options.rangeHighlights;if(Array.isArray(_)&&_.length>0)for(var E=0;E<_.length;E++){var S=document.createElement("div"),k=_[E].class||"";S.className="slider-rangeHighlight slider-selection "+k,this.rangeHighlightElements.push(S),w.appendChild(S)}var C=Array.isArray(this.options.labelledby);if(C&&this.options.labelledby[0]&&g.setAttribute("aria-labelledby",this.options.labelledby[0]),C&&this.options.labelledby[1]&&m.setAttribute("aria-labelledby",this.options.labelledby[1]),!C&&this.options.labelledby&&(g.setAttribute("aria-labelledby",this.options.labelledby),m.setAttribute("aria-labelledby",this.options.labelledby)),this.ticks=[],Array.isArray(this.options.ticks)&&this.options.ticks.length>0){for(this.ticksContainer=document.createElement("div"),this.ticksContainer.className="slider-tick-container",s=0;s<this.options.ticks.length;s++){var M=document.createElement("div");if(M.className="slider-tick",this.options.ticks_tooltip){var O=this._addTickListener(),x=O.addMouseEnter(this,M,s),D=O.addMouseLeave(this,M);this.ticksCallbackMap[s]={mouseEnter:x,mouseLeave:D}}this.ticks.push(M),this.ticksContainer.appendChild(M)}f.className+=" tick-slider-selection"}if(this.tickLabels=[],Array.isArray(this.options.ticks_labels)&&this.options.ticks_labels.length>0)for(this.tickLabelContainer=document.createElement("div"),this.tickLabelContainer.className="slider-tick-label-container",s=0;s<this.options.ticks_labels.length;s++){var T=document.createElement("div"),A=0===this.options.ticks_positions.length,I=this.options.reversed&&A?this.options.ticks_labels.length-(s+1):s;T.className="slider-tick-label",T.innerHTML=this.options.ticks_labels[I],this.tickLabels.push(T),this.tickLabelContainer.appendChild(T)}var j=function(t){var e=document.createElement("div");e.className="arrow";var n=document.createElement("div");n.className="tooltip-inner",t.appendChild(e),t.appendChild(n)},N=document.createElement("div");N.className="tooltip tooltip-main",N.setAttribute("role","presentation"),j(N);var L=document.createElement("div");L.className="tooltip tooltip-min",L.setAttribute("role","presentation"),j(L);var P=document.createElement("div");P.className="tooltip tooltip-max",P.setAttribute("role","presentation"),j(P),this.sliderElem.appendChild(w),this.sliderElem.appendChild(N),this.sliderElem.appendChild(L),this.sliderElem.appendChild(P),this.tickLabelContainer&&this.sliderElem.appendChild(this.tickLabelContainer),this.ticksContainer&&this.sliderElem.appendChild(this.ticksContainer),this.sliderElem.appendChild(g),this.sliderElem.appendChild(m),b.insertBefore(this.sliderElem,this.element),this.element.style.display="none"}if(t&&(this.$element=t(this.element),this.$sliderElem=t(this.sliderElem)),this.eventToCallbackMap={},this.sliderElem.id=this.options.id,this.touchCapable="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,this.touchX=0,this.touchY=0,this.tooltip=this.sliderElem.querySelector(".tooltip-main"),this.tooltipInner=this.tooltip.querySelector(".tooltip-inner"),this.tooltip_min=this.sliderElem.querySelector(".tooltip-min"),this.tooltipInner_min=this.tooltip_min.querySelector(".tooltip-inner"),this.tooltip_max=this.sliderElem.querySelector(".tooltip-max"),this.tooltipInner_max=this.tooltip_max.querySelector(".tooltip-inner"),a[this.options.scale]&&(this.options.scale=a[this.options.scale]),!0===v&&(this._removeClass(this.sliderElem,"slider-horizontal"),this._removeClass(this.sliderElem,"slider-vertical"),this._removeClass(this.sliderElem,"slider-rtl"),this._removeClass(this.tooltip,"hide"),this._removeClass(this.tooltip_min,"hide"),this._removeClass(this.tooltip_max,"hide"),["left","right","top","width","height"].forEach(function(t){this._removeProperty(this.trackLow,t),this._removeProperty(this.trackSelection,t),this._removeProperty(this.trackHigh,t)},this),[this.handle1,this.handle2].forEach(function(t){this._removeProperty(t,"left"),this._removeProperty(t,"right"),this._removeProperty(t,"top")},this),[this.tooltip,this.tooltip_min,this.tooltip_max].forEach(function(t){this._removeProperty(t,"bs-tooltip-left"),this._removeProperty(t,"bs-tooltip-right"),this._removeProperty(t,"bs-tooltip-top"),this._removeClass(t,"bs-tooltip-right"),this._removeClass(t,"bs-tooltip-left"),this._removeClass(t,"bs-tooltip-top")},this)),"vertical"===this.options.orientation?(this._addClass(this.sliderElem,"slider-vertical"),this.stylePos="top",this.mousePos="pageY",this.sizePos="offsetHeight"):(this._addClass(this.sliderElem,"slider-horizontal"),this.sliderElem.style.width=y,this.options.orientation="horizontal",this.options.rtl?this.stylePos="right":this.stylePos="left",this.mousePos="clientX",this.sizePos="offsetWidth"),this.options.rtl&&this._addClass(this.sliderElem,"slider-rtl"),this._setTooltipPosition(),Array.isArray(this.options.ticks)&&this.options.ticks.length>0&&(i||(this.options.max=Math.max.apply(Math,this.options.ticks)),o||(this.options.min=Math.min.apply(Math,this.options.ticks))),Array.isArray(this.options.value)?(this.options.range=!0,this._state.value=this.options.value):this.options.range?this._state.value=[this.options.value,this.options.max]:this._state.value=this.options.value,this.trackLow=d||this.trackLow,this.trackSelection=f||this.trackSelection,this.trackHigh=h||this.trackHigh,"none"===this.options.selection?(this._addClass(this.trackLow,"hide"),this._addClass(this.trackSelection,"hide"),this._addClass(this.trackHigh,"hide")):"after"!==this.options.selection&&"before"!==this.options.selection||(this._removeClass(this.trackLow,"hide"),this._removeClass(this.trackSelection,"hide"),this._removeClass(this.trackHigh,"hide")),this.handle1=g||this.handle1,this.handle2=m||this.handle2,!0===v)for(this._removeClass(this.handle1,"round triangle"),this._removeClass(this.handle2,"round triangle hide"),s=0;s<this.ticks.length;s++)this._removeClass(this.ticks[s],"round triangle hide");if(-1!==["round","triangle","custom"].indexOf(this.options.handle))for(this._addClass(this.handle1,this.options.handle),this._addClass(this.handle2,this.options.handle),s=0;s<this.ticks.length;s++)this._addClass(this.ticks[s],this.options.handle);if(this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this.setValue(this._state.value),this.handle1Keydown=this._keydown.bind(this,0),this.handle1.addEventListener("keydown",this.handle1Keydown,!1),this.handle2Keydown=this._keydown.bind(this,1),this.handle2.addEventListener("keydown",this.handle2Keydown,!1),this.mousedown=this._mousedown.bind(this),this.touchstart=this._touchstart.bind(this),this.touchmove=this._touchmove.bind(this),this.touchCapable&&(this.sliderElem.addEventListener("touchstart",this.touchstart,!1),this.sliderElem.addEventListener("touchmove",this.touchmove,!1)),this.sliderElem.addEventListener("mousedown",this.mousedown,!1),this.resize=this._resize.bind(this),window.addEventListener("resize",this.resize,!1),"hide"===this.options.tooltip)this._addClass(this.tooltip,"hide"),this._addClass(this.tooltip_min,"hide"),this._addClass(this.tooltip_max,"hide");else if("always"===this.options.tooltip)this._showTooltip(),this._alwaysShowTooltip=!0;else{if(this.showTooltip=this._showTooltip.bind(this),this.hideTooltip=this._hideTooltip.bind(this),this.options.ticks_tooltip){var R=this._addTickListener(),z=R.addMouseEnter(this,this.handle1),B=R.addMouseLeave(this,this.handle1);this.handleCallbackMap.handle1={mouseEnter:z,mouseLeave:B},z=R.addMouseEnter(this,this.handle2),B=R.addMouseLeave(this,this.handle2),this.handleCallbackMap.handle2={mouseEnter:z,mouseLeave:B}}else this.sliderElem.addEventListener("mouseenter",this.showTooltip,!1),this.sliderElem.addEventListener("mouseleave",this.hideTooltip,!1),this.touchCapable&&(this.sliderElem.addEventListener("touchstart",this.showTooltip,!1),this.sliderElem.addEventListener("touchmove",this.showTooltip,!1),this.sliderElem.addEventListener("touchend",this.hideTooltip,!1));this.handle1.addEventListener("focus",this.showTooltip,!1),this.handle1.addEventListener("blur",this.hideTooltip,!1),this.handle2.addEventListener("focus",this.showTooltip,!1),this.handle2.addEventListener("blur",this.hideTooltip,!1),this.touchCapable&&(this.handle1.addEventListener("touchstart",this.showTooltip,!1),this.handle1.addEventListener("touchmove",this.showTooltip,!1),this.handle1.addEventListener("touchend",this.hideTooltip,!1),this.handle2.addEventListener("touchstart",this.showTooltip,!1),this.handle2.addEventListener("touchmove",this.showTooltip,!1),this.handle2.addEventListener("touchend",this.hideTooltip,!1))}this.options.enabled?this.enable():this.disable()}(e=function(t,e){return c.call(this,t,e),this}).prototype={_init:function(){},constructor:e,defaultOptions:{id:"",min:0,max:10,step:1,precision:0,orientation:"horizontal",value:5,range:!1,selection:"before",tooltip:"show",tooltip_split:!1,lock_to_ticks:!1,handle:"round",reversed:!1,rtl:"auto",enabled:!0,formatter:function(t){return Array.isArray(t)?t[0]+" : "+t[1]:t},natural_arrow_keys:!1,ticks:[],ticks_positions:[],ticks_labels:[],ticks_snap_bounds:0,ticks_tooltip:!1,scale:"linear",focus:!1,tooltip_position:null,labelledby:null,rangeHighlights:[]},getElement:function(){return this.sliderElem},getValue:function(){return this.options.range?this._state.value:this._state.value[0]},setValue:function(t,e,n){t||(t=0);var r=this.getValue();this._state.value=this._validateInputValue(t);var o=this._applyPrecision.bind(this);this.options.range?(this._state.value[0]=o(this._state.value[0]),this._state.value[1]=o(this._state.value[1]),this.ticksAreValid&&this.options.lock_to_ticks&&(this._state.value[0]=this.options.ticks[this._getClosestTickIndex(this._state.value[0])],this._state.value[1]=this.options.ticks[this._getClosestTickIndex(this._state.value[1])]),this._state.value[0]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[0])),this._state.value[1]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[1]))):(this._state.value=o(this._state.value),this.ticksAreValid&&this.options.lock_to_ticks&&(this._state.value=this.options.ticks[this._getClosestTickIndex(this._state.value)]),this._state.value=[Math.max(this.options.min,Math.min(this.options.max,this._state.value))],this._addClass(this.handle2,"hide"),"after"===this.options.selection?this._state.value[1]=this.options.max:this._state.value[1]=this.options.min),this._setTickIndex(),this.options.max>this.options.min?this._state.percentage=[this._toPercentage(this._state.value[0]),this._toPercentage(this._state.value[1]),100*this.options.step/(this.options.max-this.options.min)]:this._state.percentage=[0,0,100],this._layout();var i=this.options.range?this._state.value:this._state.value[0];return this._setDataVal(i),!0===e&&this._trigger("slide",i),(Array.isArray(i)?r[0]!==i[0]||r[1]!==i[1]:r!==i)&&!0===n&&this._trigger("change",{oldValue:r,newValue:i}),this},destroy:function(){this._removeSliderEventHandlers(),this.sliderElem.parentNode.removeChild(this.sliderElem),this.element.style.display="",this._cleanUpEventCallbacksMap(),this.element.removeAttribute("data"),t&&(this._unbindJQueryEventHandlers(),o===n&&this.$element.removeData(o),this.$element.removeData(r))},disable:function(){return this._state.enabled=!1,this.handle1.removeAttribute("tabindex"),this.handle2.removeAttribute("tabindex"),this._addClass(this.sliderElem,"slider-disabled"),this._trigger("slideDisabled"),this},enable:function(){return this._state.enabled=!0,this.handle1.setAttribute("tabindex",0),this.handle2.setAttribute("tabindex",0),this._removeClass(this.sliderElem,"slider-disabled"),this._trigger("slideEnabled"),this},toggle:function(){return this._state.enabled?this.disable():this.enable(),this},isEnabled:function(){return this._state.enabled},on:function(t,e){return this._bindNonQueryEventHandler(t,e),this},off:function(e,n){t?(this.$element.off(e,n),this.$sliderElem.off(e,n)):this._unbindNonQueryEventHandler(e,n)},getAttribute:function(t){return t?this.options[t]:this.options},setAttribute:function(t,e){return this.options[t]=e,this},refresh:function(e){var i=this.getValue();return this._removeSliderEventHandlers(),c.call(this,this.element,this.options),e&&!0===e.useCurrentValue&&this.setValue(i),t&&(o===n?(t.data(this.element,n,this),t.data(this.element,r,this)):t.data(this.element,r,this)),this},relayout:function(){return this._resize(),this},_removeTooltipListener:function(t,e){this.handle1.removeEventListener(t,e,!1),this.handle2.removeEventListener(t,e,!1)},_removeSliderEventHandlers:function(){if(this.handle1.removeEventListener("keydown",this.handle1Keydown,!1),this.handle2.removeEventListener("keydown",this.handle2Keydown,!1),this.options.ticks_tooltip){for(var t=this.ticksContainer.getElementsByClassName("slider-tick"),e=0;e<t.length;e++)t[e].removeEventListener("mouseenter",this.ticksCallbackMap[e].mouseEnter,!1),t[e].removeEventListener("mouseleave",this.ticksCallbackMap[e].mouseLeave,!1);this.handleCallbackMap.handle1&&this.handleCallbackMap.handle2&&(this.handle1.removeEventListener("mouseenter",this.handleCallbackMap.handle1.mouseEnter,!1),this.handle2.removeEventListener("mouseenter",this.handleCallbackMap.handle2.mouseEnter,!1),this.handle1.removeEventListener("mouseleave",this.handleCallbackMap.handle1.mouseLeave,!1),this.handle2.removeEventListener("mouseleave",this.handleCallbackMap.handle2.mouseLeave,!1))}this.handleCallbackMap=null,this.ticksCallbackMap=null,this.showTooltip&&this._removeTooltipListener("focus",this.showTooltip),this.hideTooltip&&this._removeTooltipListener("blur",this.hideTooltip),this.showTooltip&&this.sliderElem.removeEventListener("mouseenter",this.showTooltip,!1),this.hideTooltip&&this.sliderElem.removeEventListener("mouseleave",this.hideTooltip,!1),this.sliderElem.removeEventListener("mousedown",this.mousedown,!1),this.touchCapable&&(this.showTooltip&&(this.handle1.removeEventListener("touchstart",this.showTooltip,!1),this.handle1.removeEventListener("touchmove",this.showTooltip,!1),this.handle2.removeEventListener("touchstart",this.showTooltip,!1),this.handle2.removeEventListener("touchmove",this.showTooltip,!1)),this.hideTooltip&&(this.handle1.removeEventListener("touchend",this.hideTooltip,!1),this.handle2.removeEventListener("touchend",this.hideTooltip,!1)),this.showTooltip&&(this.sliderElem.removeEventListener("touchstart",this.showTooltip,!1),this.sliderElem.removeEventListener("touchmove",this.showTooltip,!1)),this.hideTooltip&&this.sliderElem.removeEventListener("touchend",this.hideTooltip,!1),this.sliderElem.removeEventListener("touchstart",this.touchstart,!1),this.sliderElem.removeEventListener("touchmove",this.touchmove,!1)),window.removeEventListener("resize",this.resize,!1)},_bindNonQueryEventHandler:function(t,e){void 0===this.eventToCallbackMap[t]&&(this.eventToCallbackMap[t]=[]),this.eventToCallbackMap[t].push(e)},_unbindNonQueryEventHandler:function(t,e){var n=this.eventToCallbackMap[t];if(void 0!==n)for(var r=0;r<n.length;r++)if(n[r]===e){n.splice(r,1);break}},_cleanUpEventCallbacksMap:function(){for(var t=Object.keys(this.eventToCallbackMap),e=0;e<t.length;e++){var n=t[e];delete this.eventToCallbackMap[n]}},_showTooltip:function(){!1===this.options.tooltip_split?(this._addClass(this.tooltip,"show"),this.tooltip_min.style.display="none",this.tooltip_max.style.display="none"):(this._addClass(this.tooltip_min,"show"),this._addClass(this.tooltip_max,"show"),this.tooltip.style.display="none"),this._state.over=!0},_hideTooltip:function(){!1===this._state.inDrag&&!0!==this._alwaysShowTooltip&&(this._removeClass(this.tooltip,"show"),this._removeClass(this.tooltip_min,"show"),this._removeClass(this.tooltip_max,"show")),this._state.over=!1},_setToolTipOnMouseOver:function(t){var e,n=this,r=this.options.formatter(t?t.value[0]:this._state.value[0]),o=(e=t||this._state,this.options.reversed?[100-e.percentage[0],n.options.range?100-e.percentage[1]:e.percentage[1]]:[e.percentage[0],e.percentage[1]]);this._setText(this.tooltipInner,r),this.tooltip.style[this.stylePos]=o[0]+"%"},_copyState:function(){return{value:[this._state.value[0],this._state.value[1]],enabled:this._state.enabled,offset:this._state.offset,size:this._state.size,percentage:[this._state.percentage[0],this._state.percentage[1],this._state.percentage[2]],inDrag:this._state.inDrag,over:this._state.over,dragged:this._state.dragged,keyCtrl:this._state.keyCtrl}},_addTickListener:function(){return{addMouseEnter:function(t,e,n){var r=function(){var r=t._copyState(),o=e===t.handle1?r.value[0]:r.value[1],i=void 0;void 0!==n?(o=t.options.ticks[n],i=t.options.ticks_positions.length>0&&t.options.ticks_positions[n]||t._toPercentage(t.options.ticks[n])):i=t._toPercentage(o),r.value[0]=o,r.percentage[0]=i,t._setToolTipOnMouseOver(r),t._showTooltip()};return e.addEventListener("mouseenter",r,!1),r},addMouseLeave:function(t,e){var n=function(){t._hideTooltip()};return e.addEventListener("mouseleave",n,!1),n}}},_layout:function(){var t,e,n;if(t=this.options.reversed?[100-this._state.percentage[0],this.options.range?100-this._state.percentage[1]:this._state.percentage[1]]:[this._state.percentage[0],this._state.percentage[1]],this.handle1.style[this.stylePos]=t[0]+"%",this.handle1.setAttribute("aria-valuenow",this._state.value[0]),e=this.options.formatter(this._state.value[0]),isNaN(e)?this.handle1.setAttribute("aria-valuetext",e):this.handle1.removeAttribute("aria-valuetext"),this.handle2.style[this.stylePos]=t[1]+"%",this.handle2.setAttribute("aria-valuenow",this._state.value[1]),e=this.options.formatter(this._state.value[1]),isNaN(e)?this.handle2.setAttribute("aria-valuetext",e):this.handle2.removeAttribute("aria-valuetext"),this.rangeHighlightElements.length>0&&Array.isArray(this.options.rangeHighlights)&&this.options.rangeHighlights.length>0)for(var r=0;r<this.options.rangeHighlights.length;r++){var o=this._toPercentage(this.options.rangeHighlights[r].start),i=this._toPercentage(this.options.rangeHighlights[r].end);if(this.options.reversed){var a=100-i;i=100-o,o=a}var s=this._createHighlightRange(o,i);s?"vertical"===this.options.orientation?(this.rangeHighlightElements[r].style.top=s.start+"%",this.rangeHighlightElements[r].style.height=s.size+"%"):(this.options.rtl?this.rangeHighlightElements[r].style.right=s.start+"%":this.rangeHighlightElements[r].style.left=s.start+"%",this.rangeHighlightElements[r].style.width=s.size+"%"):this.rangeHighlightElements[r].style.display="none"}if(Array.isArray(this.options.ticks)&&this.options.ticks.length>0){var c,u="vertical"===this.options.orientation?"height":"width";c="vertical"===this.options.orientation?"marginTop":this.options.rtl?"marginRight":"marginLeft";var l=this._state.size/(this.options.ticks.length-1);if(this.tickLabelContainer){var p=0;if(0===this.options.ticks_positions.length)"vertical"!==this.options.orientation&&(this.tickLabelContainer.style[c]=-l/2+"px"),p=this.tickLabelContainer.offsetHeight;else for(f=0;f<this.tickLabelContainer.childNodes.length;f++)this.tickLabelContainer.childNodes[f].offsetHeight>p&&(p=this.tickLabelContainer.childNodes[f].offsetHeight);"horizontal"===this.options.orientation&&(this.sliderElem.style.marginBottom=p+"px")}for(var f=0;f<this.options.ticks.length;f++){var d=this.options.ticks_positions[f]||this._toPercentage(this.options.ticks[f]);this.options.reversed&&(d=100-d),this.ticks[f].style[this.stylePos]=d+"%",this._removeClass(this.ticks[f],"in-selection"),this.options.range?d>=t[0]&&d<=t[1]&&this._addClass(this.ticks[f],"in-selection"):("after"===this.options.selection&&d>=t[0]||"before"===this.options.selection&&d<=t[0])&&this._addClass(this.ticks[f],"in-selection"),this.tickLabels[f]&&(this.tickLabels[f].style[u]=l+"px","vertical"!==this.options.orientation&&void 0!==this.options.ticks_positions[f]?(this.tickLabels[f].style.position="absolute",this.tickLabels[f].style[this.stylePos]=d+"%",this.tickLabels[f].style[c]=-l/2+"px"):"vertical"===this.options.orientation&&(this.options.rtl?this.tickLabels[f].style.marginRight=this.sliderElem.offsetWidth+"px":this.tickLabels[f].style.marginLeft=this.sliderElem.offsetWidth+"px",this.tickLabelContainer.style[c]=this.sliderElem.offsetWidth/2*-1+"px"),this._removeClass(this.tickLabels[f],"label-in-selection label-is-selection"),this.options.range?d>=t[0]&&d<=t[1]&&(this._addClass(this.tickLabels[f],"label-in-selection"),(d===t[0]||t[1])&&this._addClass(this.tickLabels[f],"label-is-selection")):(("after"===this.options.selection&&d>=t[0]||"before"===this.options.selection&&d<=t[0])&&this._addClass(this.tickLabels[f],"label-in-selection"),d===t[0]&&this._addClass(this.tickLabels[f],"label-is-selection")))}}if(this.options.range){n=this.options.formatter(this._state.value),this._setText(this.tooltipInner,n),this.tooltip.style[this.stylePos]=(t[1]+t[0])/2+"%";var h=this.options.formatter(this._state.value[0]);this._setText(this.tooltipInner_min,h);var g=this.options.formatter(this._state.value[1]);this._setText(this.tooltipInner_max,g),this.tooltip_min.style[this.stylePos]=t[0]+"%",this.tooltip_max.style[this.stylePos]=t[1]+"%"}else n=this.options.formatter(this._state.value[0]),this._setText(this.tooltipInner,n),this.tooltip.style[this.stylePos]=t[0]+"%";if("vertical"===this.options.orientation)this.trackLow.style.top="0",this.trackLow.style.height=Math.min(t[0],t[1])+"%",this.trackSelection.style.top=Math.min(t[0],t[1])+"%",this.trackSelection.style.height=Math.abs(t[0]-t[1])+"%",this.trackHigh.style.bottom="0",this.trackHigh.style.height=100-Math.min(t[0],t[1])-Math.abs(t[0]-t[1])+"%";else{"right"===this.stylePos?this.trackLow.style.right="0":this.trackLow.style.left="0",this.trackLow.style.width=Math.min(t[0],t[1])+"%","right"===this.stylePos?this.trackSelection.style.right=Math.min(t[0],t[1])+"%":this.trackSelection.style.left=Math.min(t[0],t[1])+"%",this.trackSelection.style.width=Math.abs(t[0]-t[1])+"%","right"===this.stylePos?this.trackHigh.style.left="0":this.trackHigh.style.right="0",this.trackHigh.style.width=100-Math.min(t[0],t[1])-Math.abs(t[0]-t[1])+"%";var m=this.tooltip_min.getBoundingClientRect(),y=this.tooltip_max.getBoundingClientRect();"bottom"===this.options.tooltip_position?m.right>y.left?(this._removeClass(this.tooltip_max,"bs-tooltip-bottom"),this._addClass(this.tooltip_max,"bs-tooltip-top"),this.tooltip_max.style.top="",this.tooltip_max.style.bottom="22px"):(this._removeClass(this.tooltip_max,"bs-tooltip-top"),this._addClass(this.tooltip_max,"bs-tooltip-bottom"),this.tooltip_max.style.top=this.tooltip_min.style.top,this.tooltip_max.style.bottom=""):m.right>y.left?(this._removeClass(this.tooltip_max,"bs-tooltip-top"),this._addClass(this.tooltip_max,"bs-tooltip-bottom"),this.tooltip_max.style.top="18px"):(this._removeClass(this.tooltip_max,"bs-tooltip-bottom"),this._addClass(this.tooltip_max,"bs-tooltip-top"),this.tooltip_max.style.top=this.tooltip_min.style.top)}},_createHighlightRange:function(t,e){return this._isHighlightRange(t,e)?t>e?{start:e,size:t-e}:{start:t,size:e-t}:null},_isHighlightRange:function(t,e){return 0<=t&&t<=100&&0<=e&&e<=100},_resize:function(t){this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this._layout()},_removeProperty:function(t,e){t.style.removeProperty?t.style.removeProperty(e):t.style.removeAttribute(e)},_mousedown:function(t){if(!this._state.enabled)return!1;t.preventDefault&&t.preventDefault(),this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos];var e=this._getPercentage(t);if(this.options.range){var n=Math.abs(this._state.percentage[0]-e),r=Math.abs(this._state.percentage[1]-e);this._state.dragged=n<r?0:1,this._adjustPercentageForRangeSliders(e)}else this._state.dragged=0;this._state.percentage[this._state.dragged]=e,this.touchCapable&&(document.removeEventListener("touchmove",this.mousemove,!1),document.removeEventListener("touchend",this.mouseup,!1)),this.mousemove&&document.removeEventListener("mousemove",this.mousemove,!1),this.mouseup&&document.removeEventListener("mouseup",this.mouseup,!1),this.mousemove=this._mousemove.bind(this),this.mouseup=this._mouseup.bind(this),this.touchCapable&&(document.addEventListener("touchmove",this.mousemove,!1),document.addEventListener("touchend",this.mouseup,!1)),document.addEventListener("mousemove",this.mousemove,!1),document.addEventListener("mouseup",this.mouseup,!1),this._state.inDrag=!0;var o=this._calculateValue();return this._trigger("slideStart",o),this.setValue(o,!1,!0),t.returnValue=!1,this.options.focus&&this._triggerFocusOnHandle(this._state.dragged),!0},_touchstart:function(t){this._mousedown(t)},_triggerFocusOnHandle:function(t){0===t&&this.handle1.focus(),1===t&&this.handle2.focus()},_keydown:function(t,e){if(!this._state.enabled)return!1;var n;switch(e.keyCode){case 37:case 40:n=-1;break;case 39:case 38:n=1}if(n){if(this.options.natural_arrow_keys){var r="horizontal"===this.options.orientation,o="vertical"===this.options.orientation,i=this.options.rtl,a=this.options.reversed;r?i?a||(n=-n):a&&(n=-n):o&&(a||(n=-n))}var s;if(this.ticksAreValid&&this.options.lock_to_ticks){var c=void 0;-1===(c=this.options.ticks.indexOf(this._state.value[t]))&&(c=0,window.console.warn("(lock_to_ticks) _keydown: index should not be -1")),c+=n,c=Math.max(0,Math.min(this.options.ticks.length-1,c)),s=this.options.ticks[c]}else s=this._state.value[t]+n*this.options.step;var u=this._toPercentage(s);if(this._state.keyCtrl=t,this.options.range){this._adjustPercentageForRangeSliders(u);var l=this._state.keyCtrl?this._state.value[0]:s,p=this._state.keyCtrl?s:this._state.value[1];s=[Math.max(this.options.min,Math.min(this.options.max,l)),Math.max(this.options.min,Math.min(this.options.max,p))]}else s=Math.max(this.options.min,Math.min(this.options.max,s));return this._trigger("slideStart",s),this.setValue(s,!0,!0),this._trigger("slideStop",s),this._pauseEvent(e),delete this._state.keyCtrl,!1}},_pauseEvent:function(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),t.cancelBubble=!0,t.returnValue=!1},_mousemove:function(t){if(!this._state.enabled)return!1;var e=this._getPercentage(t);this._adjustPercentageForRangeSliders(e),this._state.percentage[this._state.dragged]=e;var n=this._calculateValue(!0);return this.setValue(n,!0,!0),!1},_touchmove:function(t){void 0!==t.changedTouches&&t.preventDefault&&t.preventDefault()},_adjustPercentageForRangeSliders:function(t){if(this.options.range){var e=this._getNumDigitsAfterDecimalPlace(t);e=e?e-1:0;var n=this._applyToFixedAndParseFloat(t,e);0===this._state.dragged&&this._applyToFixedAndParseFloat(this._state.percentage[1],e)<n?(this._state.percentage[0]=this._state.percentage[1],this._state.dragged=1):1===this._state.dragged&&this._applyToFixedAndParseFloat(this._state.percentage[0],e)>n?(this._state.percentage[1]=this._state.percentage[0],this._state.dragged=0):0===this._state.keyCtrl&&this._toPercentage(this._state.value[1])<t?(this._state.percentage[0]=this._state.percentage[1],this._state.keyCtrl=1,this.handle2.focus()):1===this._state.keyCtrl&&this._toPercentage(this._state.value[0])>t&&(this._state.percentage[1]=this._state.percentage[0],this._state.keyCtrl=0,this.handle1.focus())}},_mouseup:function(t){if(!this._state.enabled)return!1;var e=this._getPercentage(t);this._adjustPercentageForRangeSliders(e),this._state.percentage[this._state.dragged]=e,this.touchCapable&&(document.removeEventListener("touchmove",this.mousemove,!1),document.removeEventListener("touchend",this.mouseup,!1)),document.removeEventListener("mousemove",this.mousemove,!1),document.removeEventListener("mouseup",this.mouseup,!1),this._state.inDrag=!1,!1===this._state.over&&this._hideTooltip();var n=this._calculateValue(!0);return this.setValue(n,!1,!0),this._trigger("slideStop",n),this._state.dragged=null,!1},_setValues:function(t,e){var n=0===t?0:100;this._state.percentage[t]!==n&&(e.data[t]=this._toValue(this._state.percentage[t]),e.data[t]=this._applyPrecision(e.data[t]))},_calculateValue:function(t){var e={};return this.options.range?(e.data=[this.options.min,this.options.max],this._setValues(0,e),this._setValues(1,e),t&&(e.data[0]=this._snapToClosestTick(e.data[0]),e.data[1]=this._snapToClosestTick(e.data[1]))):(e.data=this._toValue(this._state.percentage[0]),e.data=parseFloat(e.data),e.data=this._applyPrecision(e.data),t&&(e.data=this._snapToClosestTick(e.data))),e.data},_snapToClosestTick:function(t){for(var e=[t,1/0],n=0;n<this.options.ticks.length;n++){var r=Math.abs(this.options.ticks[n]-t);r<=e[1]&&(e=[this.options.ticks[n],r])}return e[1]<=this.options.ticks_snap_bounds?e[0]:t},_applyPrecision:function(t){var e=this.options.precision||this._getNumDigitsAfterDecimalPlace(this.options.step);return this._applyToFixedAndParseFloat(t,e)},_getNumDigitsAfterDecimalPlace:function(t){var e=(""+t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0},_applyToFixedAndParseFloat:function(t,e){var n=t.toFixed(e);return parseFloat(n)},_getPercentage:function(t){!this.touchCapable||"touchstart"!==t.type&&"touchmove"!==t.type&&"touchend"!==t.type||(t=t.changedTouches[0]);var e=t[this.mousePos]-this._state.offset[this.stylePos];"right"===this.stylePos&&(e=-e);var n=e/this._state.size*100;return n=Math.round(n/this._state.percentage[2])*this._state.percentage[2],this.options.reversed&&(n=100-n),Math.max(0,Math.min(100,n))},_validateInputValue:function(t){if(isNaN(+t)){if(Array.isArray(t))return this._validateArray(t),t;throw new Error(i(t))}return+t},_validateArray:function(t){for(var e=0;e<t.length;e++){var n=t[e];if("number"!=typeof n)throw new Error(i(n))}},_setDataVal:function(t){this.element.setAttribute("data-value",t),this.element.setAttribute("value",t),this.element.value=t},_trigger:function(e,n){n=n||0===n?n:void 0;var r=this.eventToCallbackMap[e];if(r&&r.length)for(var o=0;o<r.length;o++)(0,r[o])(n);t&&this._triggerJQueryEvent(e,n)},_triggerJQueryEvent:function(t,e){var n={type:t,value:e};this.$element.trigger(n),this.$sliderElem.trigger(n)},_unbindJQueryEventHandlers:function(){this.$element.off(),this.$sliderElem.off()},_setText:function(t,e){void 0!==t.textContent?t.textContent=e:void 0!==t.innerText&&(t.innerText=e)},_removeClass:function(t,e){for(var n=e.split(" "),r=t.className,o=0;o<n.length;o++){var i=n[o],a=new RegExp("(?:\\s|^)"+i+"(?:\\s|$)");r=r.replace(a," ")}t.className=r.trim()},_addClass:function(t,e){for(var n=e.split(" "),r=t.className,o=0;o<n.length;o++){var i=n[o];new RegExp("(?:\\s|^)"+i+"(?:\\s|$)").test(r)||(r+=" "+i)}t.className=r.trim()},_offsetLeft:function(t){return t.getBoundingClientRect().left},_offsetRight:function(t){return t.getBoundingClientRect().right},_offsetTop:function(t){for(var e=t.offsetTop;(t=t.offsetParent)&&!isNaN(t.offsetTop);)e+=t.offsetTop,"BODY"!==t.tagName&&(e-=t.scrollTop);return e},_offset:function(t){return{left:this._offsetLeft(t),right:this._offsetRight(t),top:this._offsetTop(t)}},_css:function(e,n,r){if(t)t.style(e,n,r);else{var o=n.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()});e.style[o]=r}},_toValue:function(t){return this.options.scale.toValue.apply(this,[t])},_toPercentage:function(t){return this.options.scale.toPercentage.apply(this,[t])},_setTooltipPosition:function(){var t=[this.tooltip,this.tooltip_min,this.tooltip_max];if("vertical"===this.options.orientation){var e,n="left"===(e=this.options.tooltip_position?this.options.tooltip_position:this.options.rtl?"left":"right")?"right":"left";t.forEach(function(t){this._addClass(t,"bs-tooltip-"+e),t.style[n]="100%"}.bind(this))}else"bottom"===this.options.tooltip_position?t.forEach(function(t){this._addClass(t,"bs-tooltip-bottom"),t.style.top="22px"}.bind(this)):t.forEach(function(t){this._addClass(t,"bs-tooltip-top"),t.style.top=-this.tooltip.outerHeight-14+"px"}.bind(this))},_getClosestTickIndex:function(t){for(var e=Math.abs(t-this.options.ticks[0]),n=0,r=0;r<this.options.ticks.length;++r){var o=Math.abs(t-this.options.ticks[r]);o<e&&(e=o,n=r)}return n},_setTickIndex:function(){this.ticksAreValid&&(this._state.tickIndex=[this.options.ticks.indexOf(this._state.value[0]),this.options.ticks.indexOf(this._state.value[1])])}},t&&t.fn&&(t.fn.slider?(s&&window.console.warn("bootstrap-slider.js - WARNING: $.fn.slider namespace is already bound. Use the $.fn.bootstrapSlider namespace instead."),o=r):(t.bridget(n,e),o=n),t.bridget(r,e),t(function(){t("input[data-provide=slider]")[o]()}))}(t),e})?r.apply(e,o):r)||(t.exports=i)},9215:(t,e,n)=>{"use strict";var r=n(8372),o=n(4453),i=n(9450),a=n(646),s=n(3816),c=n(6408);function u(t,e,n){var i=e,u=r(i);if(null!=u||t&&(t===i||t.firstChild===i)||a(!1),t===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(t){for(;t.firstChild&&(s(t.firstChild)&&"true"===t.firstChild.getAttribute("data-blocks")||o(t.firstChild));)t=t.firstChild;return t}(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(t){for(;t.lastChild&&(s(t.lastChild)&&"true"===t.lastChild.getAttribute("data-blocks")||o(t.lastChild));)t=t.lastChild;return t}(d);h=c(o(m)),g=l(m)}else h=c(u),g=l(d);return{key:h,offset:g}}function l(t){var e=t.textContent;return"\n"===e?0:e.length}t.exports=function(t,e,n,o,a,s){var l=n.nodeType===Node.TEXT_NODE,p=a.nodeType===Node.TEXT_NODE;if(l&&p)return{selectionState:i(t,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(e,a,s)):p?(d={key:c(r(a)),offset:s},f=u(e,n,o)):(f=u(e,n,o),d=u(e,a,s),n===a&&o===s&&(h=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:i(t,f.key,f.offset,d.key,d.offset),needsRecovery:h}}},9248:(t,e,n)=>{"use strict";var r=n(4134),o=n(646),i=r.isBrowser("IE <= 9");t.exports=function(t){var e,n=null;return!i&&document.implementation&&document.implementation.createHTMLDocument&&((e=document.implementation.createHTMLDocument("foo")).documentElement||o(!1),e.documentElement.innerHTML=t,n=e.getElementsByTagName("body")[0]),n}},9311:(t,e,n)=>{"use strict";var r=n(646);t.exports=function(t,e){var n=[];return t.findEntityRanges(function(t){return t.getEntity()===e},function(t,e){n.push({start:t,end:e})}),n.length||r(!1),n}},9349:t=>{t.exports={indexOf:function(t,e){var n,r;if(Array.prototype.indexOf)return t.indexOf(e);for(n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},forEach:function(t,e,n){var r,o;if(Array.prototype.forEach)return t.forEach(e,n);for(r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(t){var e=/\s|\n|\t/.exec(t);return e?e.index:-1}}},9395:t=>{"use strict";function e(t){return function(){return t}}var n=function(){};n.thatReturns=e,n.thatReturnsFalse=e(!1),n.thatReturnsTrue=e(!0),n.thatReturnsNull=e(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(t){return t},t.exports=n},9402:(t,e,n)=>{"use strict";var r=n(1914),o=function(){function t(){this._subscriptionsForType={},this._currentSubscription=null}var e=t.prototype;return e.addSubscription=function(t,e){e.subscriber!==this&&r(!1),this._subscriptionsForType[t]||(this._subscriptionsForType[t]=[]);var n=this._subscriptionsForType[t].length;return this._subscriptionsForType[t].push(e),e.eventType=t,e.key=n,e},e.removeAllSubscriptions=function(t){void 0===t?this._subscriptionsForType={}:delete this._subscriptionsForType[t]},e.removeSubscription=function(t){var e=t.eventType,n=t.key,r=this._subscriptionsForType[e];r&&delete r[n]},e.getSubscriptionsForType=function(t){return this._subscriptionsForType[t]},t}();t.exports=o},9414:(t,e,n)=>{"use strict";var r=n(4134),o=n(3174),i=r.isPlatform("Mac OS X"),a={isCtrlKeyCommand:function(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function(t){return i&&t.altKey},usesMacOSHeuristics:function(){return i},hasCommandModifier:function(t){return i?!!t.metaKey&&!t.altKey:a.isCtrlKeyCommand(t)},isSoftNewlineEvent:o};t.exports=a},9417:(t,e,n)=>{"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,{A:()=>r})},9450:(t,e,n)=>{"use strict";var r=n(3885),o=n(6408);t.exports=function(t,e,n,i,a){var s=o(t.getSelection());if(!e||!i)return s;var c=r.decode(e),u=c.blockKey,l=t.getBlockTree(u),p=l&&l.getIn([c.decoratorKey,"leaves",c.leafKey]),f=r.decode(i),d=f.blockKey,h=t.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 _=p.get("end"),E=g.get("end");w=y===m&&E===_?a<n:y<m}else w=t.getCurrentContent().getBlockMap().keySeq().skipUntil(function(t){return t===u||t===d}).first()===d;return s.merge({anchorKey:u,anchorOffset:v,focusKey:d,focusOffset:b,isBackward:w})}},9568:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Collection:()=>k,Iterable:()=>kr,List:()=>an,Map:()=>Le,OrderedMap:()=>bn,OrderedSet:()=>ar,PairSorting:()=>pr,Range:()=>Kn,Record:()=>fr,Repeat:()=>br,Seq:()=>W,Set:()=>Pn,Stack:()=>Cn,fromJS:()=>wr,get:()=>ie,getIn:()=>Vn,has:()=>oe,hasIn:()=>qn,hash:()=>dt,is:()=>ut,isAssociative:()=>S,isCollection:()=>v,isImmutable:()=>I,isIndexed:()=>E,isKeyed:()=>w,isList:()=>on,isMap:()=>at,isOrdered:()=>N,isOrderedMap:()=>st,isOrderedSet:()=>In,isPlainObject:()=>ee,isRecord:()=>A,isSeq:()=>D,isSet:()=>An,isStack:()=>kn,isValueObject:()=>ct,merge:()=>_e,mergeDeep:()=>Se,mergeDeepWith:()=>ke,mergeWith:()=>Ee,remove:()=>se,removeIn:()=>de,set:()=>ce,setIn:()=>pe,update:()=>ge,updateIn:()=>ue,version:()=>Sr});var r="delete",o=32,i=31,a={};function s(t){t&&(t.value=!0)}function c(){}function u(t){return void 0===t.size&&(t.size=t.__iterate(p)),t.size}function l(t,e){if("number"!=typeof e){var n=e>>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?u(t)+e:e}function p(){return!0}function f(t,e,n){return(0===t&&!m(t)||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function d(t,e){return g(t,e,0)}function h(t,e){return g(t,e,e)}function g(t,e,n){return void 0===t?n:m(t)?e===1/0?e:0|Math.max(0,e+t):void 0===e||e===t?t:0|Math.min(e,t)}function m(t){return t<0||0===t&&1/t==-1/0}var y="@@__IMMUTABLE_ITERABLE__@@";function v(t){return Boolean(t&&t[y])}var b="@@__IMMUTABLE_KEYED__@@";function w(t){return Boolean(t&&t[b])}var _="@@__IMMUTABLE_INDEXED__@@";function E(t){return Boolean(t&&t[_])}function S(t){return w(t)||E(t)}var k=function(t){return v(t)?t:W(t)},C=function(t){function e(t){return w(t)?t:G(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(k),M=function(t){function e(t){return E(t)?t:Q(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(k),O=function(t){function e(t){return v(t)&&!S(t)?t:Z(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(k);k.Keyed=C,k.Indexed=M,k.Set=O;var x="@@__IMMUTABLE_SEQ__@@";function D(t){return Boolean(t&&t[x])}var T="@@__IMMUTABLE_RECORD__@@";function A(t){return Boolean(t&&t[T])}function I(t){return v(t)||A(t)}var j="@@__IMMUTABLE_ORDERED__@@";function N(t){return Boolean(t&&t[j])}var L="function"==typeof Symbol&&Symbol.iterator,P="@@iterator",R=L||P,z=function(t){this.next=t};function B(t,e,n,r){var o=0===t?e:1===t?n:[e,n];return r?r.value=o:r={value:o,done:!1},r}function F(){return{value:void 0,done:!0}}function U(t){return!!Array.isArray(t)||!!V(t)}function H(t){return t&&"function"==typeof t.next}function K(t){var e=V(t);return e&&e.call(t)}function V(t){var e=t&&(L&&t[L]||t[P]);if("function"==typeof e)return e}z.prototype.toString=function(){return"[Iterator]"},z.KEYS=0,z.VALUES=1,z.ENTRIES=2,z.prototype.inspect=z.prototype.toSource=function(){return this.toString()},z.prototype[R]=function(){return this};var Y=Object.prototype.hasOwnProperty;function q(t){return!(!Array.isArray(t)&&"string"!=typeof t)||t&&"object"==typeof t&&Number.isInteger(t.length)&&t.length>=0&&(0===t.length?1===Object.keys(t).length:t.hasOwnProperty(t.length-1))}var W=function(t){function e(t){return null==t?et():I(t)?t.toSeq():function(t){var e,n,r=ot(t);if(r)return(n=V(e=t))&&n===e.entries?r.fromEntrySeq():function(t){var e=V(t);return e&&e===t.keys}(t)?r.toSetSeq():r;if("object"==typeof t)return new $(t);throw new TypeError("Expected Array or collection object of values, or keyed object: "+t)}(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq {","}")},e.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},e.prototype.__iterate=function(t,e){var n=this._cache;if(n){for(var r=n.length,o=0;o!==r;){var i=n[e?r-++o:o++];if(!1===t(i[1],i[0],this))break}return o}return this.__iterateUncached(t,e)},e.prototype.__iterator=function(t,e){var n=this._cache;if(n){var r=n.length,o=0;return new z(function(){if(o===r)return{value:void 0,done:!0};var i=n[e?r-++o:o++];return B(t,i[0],i[1])})}return this.__iteratorUncached(t,e)},e}(k),G=function(t){function e(t){return null==t?et().toKeyedSeq():v(t)?w(t)?t.toSeq():t.fromEntrySeq():A(t)?t.toSeq():nt(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toKeyedSeq=function(){return this},e}(W),Q=function(t){function e(t){return null==t?et():v(t)?w(t)?t.entrySeq():t.toIndexedSeq():A(t)?t.toSeq().entrySeq():rt(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toIndexedSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq [","]")},e}(W),Z=function(t){function e(t){return(v(t)&&!S(t)?t:Q(t)).toSetSeq()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toSetSeq=function(){return this},e}(W);W.isSeq=D,W.Keyed=G,W.Set=Z,W.Indexed=Q,W.prototype[x]=!0;var J=function(t){function e(t){this._array=t,this.size=t.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this.has(t)?this._array[l(this,t)]:e},e.prototype.__iterate=function(t,e){for(var n=this._array,r=n.length,o=0;o!==r;){var i=e?r-++o:o++;if(!1===t(n[i],i,this))break}return o},e.prototype.__iterator=function(t,e){var n=this._array,r=n.length,o=0;return new z(function(){if(o===r)return{value:void 0,done:!0};var i=e?r-++o:o++;return B(t,i,n[i])})},e}(Q),$=function(t){function e(t){var e=Object.keys(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]);this._object=t,this._keys=e,this.size=e.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},e.prototype.has=function(t){return Y.call(this._object,t)},e.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,o=r.length,i=0;i!==o;){var a=r[e?o-++i:i++];if(!1===t(n[a],a,this))break}return i},e.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,o=r.length,i=0;return new z(function(){if(i===o)return{value:void 0,done:!0};var a=r[e?o-++i:i++];return B(t,a,n[a])})},e}(G);$.prototype[j]=!0;var X,tt=function(t){function e(t){this._collection=t,this.size=t.length||t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=K(this._collection),r=0;if(H(n))for(var o;!(o=n.next()).done&&!1!==t(o.value,r++,this););return r},e.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=K(this._collection);if(!H(n))return new z(F);var r=0;return new z(function(){var e=n.next();return e.done?e:B(t,r++,e.value)})},e}(Q);function et(){return X||(X=new J([]))}function nt(t){var e=ot(t);if(e)return e.fromEntrySeq();if("object"==typeof t)return new $(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function rt(t){var e=ot(t);if(e)return e;throw new TypeError("Expected Array or collection object of values: "+t)}function ot(t){return q(t)?new J(t):U(t)?new tt(t):void 0}var it="@@__IMMUTABLE_MAP__@@";function at(t){return Boolean(t&&t[it])}function st(t){return at(t)&&N(t)}function ct(t){return Boolean(t&&"function"==typeof t.equals&&"function"==typeof t.hashCode)}function ut(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!!(ct(t)&&ct(e)&&t.equals(e))}var lt="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var n=65535&(t|=0),r=65535&(e|=0);return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0};function pt(t){return t>>>1&1073741824|3221225471&t}var ft=Object.prototype.valueOf;function dt(t){if(null==t)return ht(t);if("function"==typeof t.hashCode)return pt(t.hashCode(t));var e,n,r,o=(e=t).valueOf!==ft&&"function"==typeof e.valueOf?e.valueOf(e):e;if(null==o)return ht(o);switch(typeof o){case"boolean":return o?1108378657:1108378656;case"number":return function(t){if(t!=t||t===1/0)return 0;var e=0|t;for(e!==t&&(e^=4294967295*t);t>4294967295;)e^=t/=4294967295;return pt(e)}(o);case"string":return o.length>kt?(void 0===(r=Ot[n=o])&&(r=gt(n),Mt===Ct&&(Mt=0,Ot={}),Mt++,Ot[n]=r),r):gt(o);case"object":case"function":return function(t){var e;if(wt&&void 0!==(e=bt.get(t)))return e;if(void 0!==(e=t[St]))return e;if(!yt){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[St]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=vt(),wt)bt.set(t,e);else{if(void 0!==mt&&!1===mt(t))throw new Error("Non-extensible objects are not allowed as keys.");if(yt)Object.defineProperty(t,St,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[St]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[St]=e}}return e}(o);case"symbol":return function(t){var e=_t[t];return void 0!==e||(e=vt(),_t[t]=e),e}(o);default:if("function"==typeof o.toString)return gt(o.toString());throw new Error("Value type "+typeof o+" cannot be hashed.")}}function ht(t){return null===t?1108378658:1108378659}function gt(t){for(var e=0,n=0;n<t.length;n++)e=31*e+t.charCodeAt(n)|0;return pt(e)}var mt=Object.isExtensible,yt=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}();function vt(){var t=++Et;return 1073741824&Et&&(Et=0),t}var bt,wt="function"==typeof WeakMap;wt&&(bt=new WeakMap);var _t=Object.create(null),Et=0,St="__immutablehash__";"function"==typeof Symbol&&(St=Symbol(St));var kt=16,Ct=255,Mt=0,Ot={},xt=function(t){function e(t,e){this._iter=t,this._useKeys=e,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this._iter.get(t,e)},e.prototype.has=function(t){return this._iter.has(t)},e.prototype.valueSeq=function(){return this._iter.valueSeq()},e.prototype.reverse=function(){var t=this,e=Nt(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},e.prototype.map=function(t,e){var n=this,r=jt(this,t,e);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(t,e)}),r},e.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e,r){return t(e,r,n)},e)},e.prototype.__iterator=function(t,e){return this._iter.__iterator(t,e)},e}(G);xt.prototype[j]=!0;var Dt=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.includes=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(t,e){var n=this,r=0;return e&&u(this),this._iter.__iterate(function(o){return t(o,e?n.size-++r:r++,n)},e)},e.prototype.__iterator=function(t,e){var n=this,r=this._iter.__iterator(1,e),o=0;return e&&u(this),new z(function(){var i=r.next();return i.done?i:B(t,e?n.size-++o:o++,i.value,i)})},e}(Q),Tt=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.has=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){return t(e,e,n)},e)},e.prototype.__iterator=function(t,e){var n=this._iter.__iterator(1,e);return new z(function(){var e=n.next();return e.done?e:B(t,e.value,e.value,e)})},e}(Z),At=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.entrySeq=function(){return this._iter.toSeq()},e.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){if(e){Yt(e);var r=v(e);return t(r?e.get(1):e[1],r?e.get(0):e[0],n)}},e)},e.prototype.__iterator=function(t,e){var n=this._iter.__iterator(1,e);return new z(function(){for(;;){var e=n.next();if(e.done)return e;var r=e.value;if(r){Yt(r);var o=v(r);return B(t,o?r.get(0):r[0],o?r.get(1):r[1],e)}}})},e}(G);function It(t){var e=Wt(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=Gt,e.__iterateUncached=function(e,n){var r=this;return t.__iterate(function(t,n){return!1!==e(n,t,r)},n)},e.__iteratorUncached=function(e,n){if(2===e){var r=t.__iterator(e,n);return new z(function(){var t=r.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(1===e?0:1,n)},e}function jt(t,e,n){var r=Wt(t);return r.size=t.size,r.has=function(e){return t.has(e)},r.get=function(r,o){var i=t.get(r,a);return i===a?o:e.call(n,i,r,t)},r.__iterateUncached=function(r,o){var i=this;return t.__iterate(function(t,o,a){return!1!==r(e.call(n,t,o,a),o,i)},o)},r.__iteratorUncached=function(r,o){var i=t.__iterator(2,o);return new z(function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return B(r,s,e.call(n,a[1],s,t),o)})},r}function Nt(t,e){var n=this,r=Wt(t);return r._iter=t,r.size=t.size,r.reverse=function(){return t},t.flip&&(r.flip=function(){var e=It(t);return e.reverse=function(){return t.flip()},e}),r.get=function(n,r){return t.get(e?n:-1-n,r)},r.has=function(n){return t.has(e?n:-1-n)},r.includes=function(e){return t.includes(e)},r.cacheResult=Gt,r.__iterate=function(n,r){var o=this,i=0;return r&&u(t),t.__iterate(function(t,a){return n(t,e?a:r?o.size-++i:i++,o)},!r)},r.__iterator=function(r,o){var i=0;o&&u(t);var a=t.__iterator(2,!o);return new z(function(){var t=a.next();if(t.done)return t;var s=t.value;return B(r,e?s[0]:o?n.size-++i:i++,s[1],t)})},r}function Lt(t,e,n,r){var o=Wt(t);return r&&(o.has=function(r){var o=t.get(r,a);return o!==a&&!!e.call(n,o,r,t)},o.get=function(r,o){var i=t.get(r,a);return i!==a&&e.call(n,i,r,t)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return t.__iterate(function(t,i,c){if(e.call(n,t,i,c))return s++,o(t,r?i:s-1,a)},i),s},o.__iteratorUncached=function(o,i){var a=t.__iterator(2,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(e.call(n,l,u,t))return B(o,r?u:s++,l,i)}})},o}function Pt(t,e,n,r){var o=t.size;if(f(e,n,o))return t;if(void 0===o&&(e<0||n<0))return Pt(t.toSeq().cacheResult(),e,n,r);var i,a=d(e,o),s=h(n,o)-a;s==s&&(i=s<0?0:s);var c=Wt(t);return c.size=0===i?i:t.size&&i||void 0,!r&&D(t)&&i>=0&&(c.get=function(e,n){return(e=l(this,e))>=0&&e<i?t.get(e+a,n):n}),c.__iterateUncached=function(e,n){var o=this;if(0===i)return 0;if(n)return this.cacheResult().__iterate(e,n);var s=0,c=!0,u=0;return t.__iterate(function(t,n){if(!c||!(c=s++<a))return u++,!1!==e(t,r?n:u-1,o)&&u!==i}),u},c.__iteratorUncached=function(e,n){if(0!==i&&n)return this.cacheResult().__iterator(e,n);if(0===i)return new z(F);var o=t.__iterator(e,n),s=0,c=0;return new z(function(){for(;s++<a;)o.next();if(++c>i)return{value:void 0,done:!0};var t=o.next();return r||1===e||t.done?t:B(e,c-1,0===e?void 0:t.value[1],t)})},c}function Rt(t,e,n,r){var o=Wt(t);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,c=0;return t.__iterate(function(t,i,u){if(!s||!(s=e.call(n,t,i,u)))return c++,o(t,r?i:c-1,a)}),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=t.__iterator(2,i),c=!0,u=0;return new z(function(){var t,i,l;do{if((t=s.next()).done)return r||1===o?t:B(o,u++,0===o?void 0:t.value[1],t);var p=t.value;i=p[0],l=p[1],c&&(c=e.call(n,l,i,a))}while(c);return 2===o?t:B(o,i,l,t)})},o}Dt.prototype.cacheResult=xt.prototype.cacheResult=Tt.prototype.cacheResult=At.prototype.cacheResult=Gt;var zt=function(t){function e(t){this._wrappedIterables=t.flatMap(function(t){return t._wrappedIterables?t._wrappedIterables:[t]}),this.size=this._wrappedIterables.reduce(function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}},0),this[b]=this._wrappedIterables[0][b],this[_]=this._wrappedIterables[0][_],this[j]=this._wrappedIterables[0][j]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__iterateUncached=function(t,e){if(0!==this._wrappedIterables.length){if(e)return this.cacheResult().__iterate(t,e);for(var n=0,r=w(this),o=r?2:1,i=this._wrappedIterables[n].__iterator(o,e),a=!0,s=0;a;){for(var c=i.next();c.done;){if(++n===this._wrappedIterables.length)return s;c=(i=this._wrappedIterables[n].__iterator(o,e)).next()}a=!1!==(r?t(c.value[1],c.value[0],this):t(c.value,s,this)),s++}return s}},e.prototype.__iteratorUncached=function(t,e){var n=this;if(0===this._wrappedIterables.length)return new z(F);if(e)return this.cacheResult().__iterator(t,e);var r=0,o=this._wrappedIterables[r].__iterator(t,e);return new z(function(){for(var i=o.next();i.done;){if(++r===n._wrappedIterables.length)return i;i=(o=n._wrappedIterables[r].__iterator(t,e)).next()}return i})},e}(W);function Bt(t,e,n){var r=Wt(t);return r.__iterateUncached=function(o,i){if(i)return this.cacheResult().__iterate(o,i);var a=0,s=!1;return function t(c,u){c.__iterate(function(i,c){return(!e||u<e)&&v(i)?t(i,u+1):(a++,!1===o(i,n?c:a-1,r)&&(s=!0)),!s},i)}(t,0),a},r.__iteratorUncached=function(r,o){if(o)return this.cacheResult().__iterator(r,o);var i=t.__iterator(r,o),a=[],s=0;return new z(function(){for(;i;){var t=i.next();if(!1===t.done){var c=t.value;if(2===r&&(c=c[1]),e&&!(a.length<e)||!v(c))return n?t:B(r,s++,c,t);a.push(i),i=c.__iterator(r,o)}else i=a.pop()}return{value:void 0,done:!0}})},r}function Ft(t,e,n){e||(e=Qt);var r=w(t),o=0,i=t.toSeq().map(function(e,r){return[r,e,o++,n?n(e,r,t):e]}).valueSeq().toArray();return i.sort(function(t,n){return e(t[3],n[3])||t[2]-n[2]}).forEach(r?function(t,e){i[e].length=2}:function(t,e){i[e]=t[1]}),r?G(i):E(t)?Q(i):Z(i)}function Ut(t,e,n){if(e||(e=Qt),n){var r=t.toSeq().map(function(e,r){return[e,n(e,r,t)]}).reduce(function(t,n){return Ht(e,t[1],n[1])?n:t});return r&&r[0]}return t.reduce(function(t,n){return Ht(e,t,n)?n:t})}function Ht(t,e,n){var r=t(n,e);return 0===r&&n!==e&&(null==n||n!=n)||r>0}function Kt(t,e,n,r){var o=Wt(t),i=new J(n).map(function(t){return t.size});return o.size=r?i.max():i.min(),o.__iterate=function(t,e){for(var n,r=this.__iterator(1,e),o=0;!(n=r.next()).done&&!1!==t(n.value,o++,this););return o},o.__iteratorUncached=function(t,o){var i=n.map(function(t){return t=k(t),K(o?t.reverse():t)}),a=0,s=!1;return new z(function(){var n;return s||(n=i.map(function(t){return t.next()}),s=r?n.every(function(t){return t.done}):n.some(function(t){return t.done})),s?{value:void 0,done:!0}:B(t,a++,e.apply(null,n.map(function(t){return t.value})))})},o}function Vt(t,e){return t===e?t:D(t)?e:t.constructor(e)}function Yt(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function qt(t){return w(t)?C:E(t)?M:O}function Wt(t){return Object.create((w(t)?G:E(t)?Q:Z).prototype)}function Gt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):W.prototype.cacheResult.call(this)}function Qt(t,e){return void 0===t&&void 0===e?0:void 0===t?1:void 0===e?-1:t>e?1:t<e?-1:0}function Zt(t,e){e=e||0;for(var n=Math.max(0,t.length-e),r=new Array(n),o=0;o<n;o++)r[o]=t[o+e];return r}function Jt(t,e){if(!t)throw new Error(e)}function $t(t){Jt(t!==1/0,"Cannot perform this action with an infinite size.")}function Xt(t){if(q(t)&&"string"!=typeof t)return t;if(N(t))return t.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+t)}var te=Object.prototype.toString;function ee(t){if(!t||"object"!=typeof t||"[object Object]"!==te.call(t))return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var n=e,r=Object.getPrototypeOf(e);null!==r;)n=r,r=Object.getPrototypeOf(n);return n===e}function ne(t){return"object"==typeof t&&(I(t)||Array.isArray(t)||ee(t))}function re(t){try{return"string"==typeof t?JSON.stringify(t):String(t)}catch(e){return JSON.stringify(t)}}function oe(t,e){return I(t)?t.has(e):ne(t)&&Y.call(t,e)}function ie(t,e,n){return I(t)?t.get(e,n):oe(t,e)?"function"==typeof t.get?t.get(e):t[e]:n}function ae(t){if(Array.isArray(t))return Zt(t);var e={};for(var n in t)Y.call(t,n)&&(e[n]=t[n]);return e}function se(t,e){if(!ne(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(I(t)){if(!t.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+t);return t.remove(e)}if(!Y.call(t,e))return t;var n=ae(t);return Array.isArray(n)?n.splice(e,1):delete n[e],n}function ce(t,e,n){if(!ne(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(I(t)){if(!t.set)throw new TypeError("Cannot update immutable value without .set() method: "+t);return t.set(e,n)}if(Y.call(t,e)&&n===t[e])return t;var r=ae(t);return r[e]=n,r}function ue(t,e,n,r){r||(r=n,n=void 0);var o=le(I(t),t,Xt(e),0,n,r);return o===a?n:o}function le(t,e,n,r,o,i){var s=e===a;if(r===n.length){var c=s?o:e,u=i(c);return u===c?e:u}if(!s&&!ne(e))throw new TypeError("Cannot update within non-data-structure value in path ["+Array.from(n).slice(0,r).map(re)+"]: "+e);var l=n[r],p=s?a:ie(e,l,a),f=le(p===a?t:I(p),p,n,r+1,o,i);return f===p?e:f===a?se(e,l):ce(s?t?We():{}:e,l,f)}function pe(t,e,n){return ue(t,e,a,function(){return n})}function fe(t,e){return pe(this,t,e)}function de(t,e){return ue(t,e,function(){return a})}function he(t){return de(this,t)}function ge(t,e,n,r){return ue(t,[e],n,r)}function me(t,e,n){return 1===arguments.length?t(this):ge(this,t,e,n)}function ye(t,e,n){return ue(this,t,e,n)}function ve(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return we(this,t)}function be(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];if("function"!=typeof t)throw new TypeError("Invalid merger function: "+t);return we(this,e,t)}function we(t,e,n){for(var r=[],o=0;o<e.length;o++){var i=C(e[o]);0!==i.size&&r.push(i)}return 0===r.length?t:0!==t.toSeq().size||t.__ownerID||1!==r.length?t.withMutations(function(t){for(var e=n?function(e,r){ge(t,r,a,function(t){return t===a?e:n(t,e,r)})}:function(e,n){t.set(n,e)},o=0;o<r.length;o++)r[o].forEach(e)}):A(t)?t:t.constructor(r[0])}function _e(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return Me(t,e)}function Ee(t,e){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return Me(e,n,t)}function Se(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return Ce(t,e)}function ke(t,e){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return Ce(e,n,t)}function Ce(t,e,n){return Me(t,e,function(t){return function e(n,r,o){return ne(n)&&ne(r)&&(i=r,a=W(n),s=W(i),E(a)===E(s)&&w(a)===w(s))?Me(n,[r],e):t?t(n,r,o):r;var i,a,s}}(n))}function Me(t,e,n){if(!ne(t))throw new TypeError("Cannot merge into non-data-structure value: "+t);if(I(t))return"function"==typeof n&&t.mergeWith?t.mergeWith.apply(t,[n].concat(e)):t.merge?t.merge.apply(t,e):t.concat.apply(t,e);for(var r=Array.isArray(t),o=t,i=r?M:C,a=r?function(e){o===t&&(o=ae(o)),o.push(e)}:function(e,r){var i=Y.call(o,r),a=i&&n?n(o[r],e,r):e;i&&a===o[r]||(o===t&&(o=ae(o)),o[r]=a)},s=0;s<e.length;s++)i(e[s]).forEach(a);return o}function Oe(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Ce(this,t)}function xe(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return Ce(this,e,t)}function De(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return ue(this,t,We(),function(t){return Me(t,e)})}function Te(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return ue(this,t,We(),function(t){return Ce(t,e)})}function Ae(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this}function Ie(){return this.__ownerID?this:this.__ensureOwner(new c)}function je(){return this.__ensureOwner()}function Ne(){return this.__altered}var Le=function(t){function e(e){return null==e?We():at(e)&&!N(e)?e:We().withMutations(function(n){var r=t(e);$t(r.size),r.forEach(function(t,e){return n.set(e,t)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return this.__toString("Map {","}")},e.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},e.prototype.set=function(t,e){return Ge(this,t,e)},e.prototype.remove=function(t){return Ge(this,t,a)},e.prototype.deleteAll=function(t){var e=k(t);return 0===e.size?this:this.withMutations(function(t){e.forEach(function(e){return t.remove(e)})})},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):We()},e.prototype.sort=function(t){return bn(Ft(this,t))},e.prototype.sortBy=function(t,e){return bn(Ft(this,e,t))},e.prototype.map=function(t,e){var n=this;return this.withMutations(function(r){r.forEach(function(o,i){r.set(i,t.call(e,o,i,n))})})},e.prototype.__iterator=function(t,e){return new Ke(this,t,e)},e.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate(function(e){return r++,t(e[1],e[0],n)},e),r},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?qe(this.size,this._root,t,this.__hash):0===this.size?We():(this.__ownerID=t,this.__altered=!1,this)},e}(C);Le.isMap=at;var Pe=Le.prototype;Pe[it]=!0,Pe[r]=Pe.remove,Pe.removeAll=Pe.deleteAll,Pe.setIn=fe,Pe.removeIn=Pe.deleteIn=he,Pe.update=me,Pe.updateIn=ye,Pe.merge=Pe.concat=ve,Pe.mergeWith=be,Pe.mergeDeep=Oe,Pe.mergeDeepWith=xe,Pe.mergeIn=De,Pe.mergeDeepIn=Te,Pe.withMutations=Ae,Pe.wasAltered=Ne,Pe.asImmutable=je,Pe["@@transducer/init"]=Pe.asMutable=Ie,Pe["@@transducer/step"]=function(t,e){return t.set(e[0],e[1])},Pe["@@transducer/result"]=function(t){return t.asImmutable()};var Re=function(t,e){this.ownerID=t,this.entries=e};Re.prototype.get=function(t,e,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ut(n,o[i][0]))return o[i][1];return r},Re.prototype.update=function(t,e,n,r,o,i,u){for(var l=o===a,p=this.entries,f=0,d=p.length;f<d&&!ut(r,p[f][0]);f++);var h=f<d;if(h?p[f][1]===o:l)return this;if(s(u),(l||!h)&&s(i),!l||1!==p.length){if(!h&&!l&&p.length>=tn)return function(t,e,n,r){t||(t=new c);for(var o=new Ue(t,dt(n),[n,r]),i=0;i<e.length;i++){var a=e[i];o=o.update(t,0,void 0,a[0],a[1])}return o}(t,p,r,o);var g=t&&t===this.ownerID,m=g?p:Zt(p);return h?l?f===d-1?m.pop():m[f]=m.pop():m[f]=[r,o]:m.push([r,o]),g?(this.entries=m,this):new Re(t,m)}};var ze=function(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n};ze.prototype.get=function(t,e,n,r){void 0===e&&(e=dt(n));var o=1<<((0===t?e:e>>>t)&i),a=this.bitmap;return 0===(a&o)?r:this.nodes[$e(a&o-1)].get(t+5,e,n,r)},ze.prototype.update=function(t,e,n,r,s,c,u){void 0===n&&(n=dt(r));var l=(0===e?n:n>>>e)&i,p=1<<l,f=this.bitmap,d=0!==(f&p);if(!d&&s===a)return this;var h=$e(f&p-1),g=this.nodes,m=d?g[h]:void 0,y=Qe(m,t,e+5,n,r,s,c,u);if(y===m)return this;if(!d&&y&&g.length>=en)return function(t,e,n,r,i){for(var a=0,s=new Array(o),c=0;0!==n;c++,n>>>=1)s[c]=1&n?e[a++]:void 0;return s[r]=i,new Be(t,a+1,s)}(t,g,f,l,y);if(d&&!y&&2===g.length&&Ze(g[1^h]))return g[1^h];if(d&&y&&1===g.length&&Ze(y))return y;var v=t&&t===this.ownerID,b=d?y?f:f^p:f|p,w=d?y?Xe(g,h,y,v):function(t,e,n){var r=t.length-1;if(n&&e===r)return t.pop(),t;for(var o=new Array(r),i=0,a=0;a<r;a++)a===e&&(i=1),o[a]=t[a+i];return o}(g,h,v):function(t,e,n,r){var o=t.length+1;if(r&&e+1===o)return t[e]=n,t;for(var i=new Array(o),a=0,s=0;s<o;s++)s===e?(i[s]=n,a=-1):i[s]=t[s+a];return i}(g,h,y,v);return v?(this.bitmap=b,this.nodes=w,this):new ze(t,b,w)};var Be=function(t,e,n){this.ownerID=t,this.count=e,this.nodes=n};Be.prototype.get=function(t,e,n,r){void 0===e&&(e=dt(n));var o=(0===t?e:e>>>t)&i,a=this.nodes[o];return a?a.get(t+5,e,n,r):r},Be.prototype.update=function(t,e,n,r,o,s,c){void 0===n&&(n=dt(r));var u=(0===e?n:n>>>e)&i,l=o===a,p=this.nodes,f=p[u];if(l&&!f)return this;var d=Qe(f,t,e+5,n,r,o,s,c);if(d===f)return this;var h=this.count;if(f){if(!d&&--h<nn)return function(t,e,n,r){for(var o=0,i=0,a=new Array(n),s=0,c=1,u=e.length;s<u;s++,c<<=1){var l=e[s];void 0!==l&&s!==r&&(o|=c,a[i++]=l)}return new ze(t,o,a)}(t,p,h,u)}else h++;var g=t&&t===this.ownerID,m=Xe(p,u,d,g);return g?(this.count=h,this.nodes=m,this):new Be(t,h,m)};var Fe=function(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n};Fe.prototype.get=function(t,e,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ut(n,o[i][0]))return o[i][1];return r},Fe.prototype.update=function(t,e,n,r,o,i,c){void 0===n&&(n=dt(r));var u=o===a;if(n!==this.keyHash)return u?this:(s(c),s(i),Je(this,t,e,n,[r,o]));for(var l=this.entries,p=0,f=l.length;p<f&&!ut(r,l[p][0]);p++);var d=p<f;if(d?l[p][1]===o:u)return this;if(s(c),(u||!d)&&s(i),u&&2===f)return new Ue(t,this.keyHash,l[1^p]);var h=t&&t===this.ownerID,g=h?l:Zt(l);return d?u?p===f-1?g.pop():g[p]=g.pop():g[p]=[r,o]:g.push([r,o]),h?(this.entries=g,this):new Fe(t,this.keyHash,g)};var Ue=function(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n};Ue.prototype.get=function(t,e,n,r){return ut(n,this.entry[0])?this.entry[1]:r},Ue.prototype.update=function(t,e,n,r,o,i,c){var u=o===a,l=ut(r,this.entry[0]);return(l?o===this.entry[1]:u)?this:(s(c),u?void s(i):l?t&&t===this.ownerID?(this.entry[1]=o,this):new Ue(t,this.keyHash,[r,o]):(s(i),Je(this,t,e,dt(r),[r,o])))},Re.prototype.iterate=Fe.prototype.iterate=function(t,e){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===t(n[e?o-r:r]))return!1},ze.prototype.iterate=Be.prototype.iterate=function(t,e){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[e?o-r:r];if(i&&!1===i.iterate(t,e))return!1}},Ue.prototype.iterate=function(t,e){return t(this.entry)};var He,Ke=function(t){function e(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&Ye(t._root)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var n=e.node,r=e.index++,o=void 0;if(n.entry){if(0===r)return Ve(t,n.entry)}else if(n.entries){if(r<=(o=n.entries.length-1))return Ve(t,n.entries[this._reverse?o-r:r])}else if(r<=(o=n.nodes.length-1)){var i=n.nodes[this._reverse?o-r:r];if(i){if(i.entry)return Ve(t,i.entry);e=this._stack=Ye(i,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}},e}(z);function Ve(t,e){return B(t,e[0],e[1])}function Ye(t,e){return{node:t,index:0,__prev:e}}function qe(t,e,n,r){var o=Object.create(Pe);return o.size=t,o._root=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function We(){return He||(He=qe(0))}function Ge(t,e,n){var r,o;if(t._root){var i={value:!1},s={value:!1};if(r=Qe(t._root,t.__ownerID,0,void 0,e,n,i,s),!s.value)return t;o=t.size+(i.value?n===a?-1:1:0)}else{if(n===a)return t;o=1,r=new Re(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=o,t._root=r,t.__hash=void 0,t.__altered=!0,t):r?qe(o,r):We()}function Qe(t,e,n,r,o,i,c,u){return t?t.update(e,n,r,o,i,c,u):i===a?t:(s(u),s(c),new Ue(e,r,[o,i]))}function Ze(t){return t.constructor===Ue||t.constructor===Fe}function Je(t,e,n,r,o){if(t.keyHash===r)return new Fe(e,r,[t.entry,o]);var a,s=(0===n?t.keyHash:t.keyHash>>>n)&i,c=(0===n?r:r>>>n)&i,u=s===c?[Je(t,e,n+5,r,o)]:(a=new Ue(e,r,o),s<c?[t,a]:[a,t]);return new ze(e,1<<s|1<<c,u)}function $e(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,127&(t+=t>>8)+(t>>16)}function Xe(t,e,n,r){var o=r?t:Zt(t);return o[e]=n,o}var tn=8,en=16,nn=8,rn="@@__IMMUTABLE_LIST__@@";function on(t){return Boolean(t&&t[rn])}var an=function(t){function e(e){var n=fn();if(null==e)return n;if(on(e))return e;var r=t(e),i=r.size;return 0===i?n:($t(i),i>0&&i<o?pn(0,i,5,null,new cn(r.toArray())):n.withMutations(function(t){t.setSize(i),r.forEach(function(e,n){return t.set(n,e)})}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("List [","]")},e.prototype.get=function(t,e){if((t=l(this,t))>=0&&t<this.size){var n=gn(this,t+=this._origin);return n&&n.array[t&i]}return e},e.prototype.set=function(t,e){return function(t,e,n){if((e=l(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations(function(t){e<0?mn(t,e).set(0,n):mn(t,0,e+1).set(e,n)});e+=t._origin;var r=t._tail,o=t._root,i={value:!1};return e>=yn(t._capacity)?r=dn(r,t.__ownerID,0,e,n,i):o=dn(o,t.__ownerID,t._level,e,n,i),i.value?t.__ownerID?(t._root=o,t._tail=r,t.__hash=void 0,t.__altered=!0,t):pn(t._origin,t._capacity,t._level,o,r):t}(this,t,e)},e.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},e.prototype.insert=function(t,e){return this.splice(t,0,e)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):fn()},e.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(n){mn(n,0,e+t.length);for(var r=0;r<t.length;r++)n.set(e+r,t[r])})},e.prototype.pop=function(){return mn(this,0,-1)},e.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){mn(e,-t.length);for(var n=0;n<t.length;n++)e.set(n,t[n])})},e.prototype.shift=function(){return mn(this,1)},e.prototype.shuffle=function(t){return void 0===t&&(t=Math.random),this.withMutations(function(e){for(var n,r,o=e.size;o;)n=Math.floor(t()*o--),r=e.get(n),e.set(n,e.get(o)),e.set(o,r)})},e.prototype.concat=function(){for(var e=arguments,n=[],r=0;r<arguments.length;r++){var o=e[r],i=t("string"!=typeof o&&U(o)?o:[o]);0!==i.size&&n.push(i)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations(function(t){n.forEach(function(e){return e.forEach(function(e){return t.push(e)})})}):this.constructor(n[0])},e.prototype.setSize=function(t){return mn(this,0,t)},e.prototype.map=function(t,e){var n=this;return this.withMutations(function(r){for(var o=0;o<n.size;o++)r.set(o,t.call(e,r.get(o),o,n))})},e.prototype.slice=function(t,e){var n=this.size;return f(t,e,n)?this:mn(this,d(t,n),h(e,n))},e.prototype.__iterator=function(t,e){var n=e?this.size:0,r=ln(this,e);return new z(function(){var o=r();return o===un?{value:void 0,done:!0}:B(t,e?--n:n++,o)})},e.prototype.__iterate=function(t,e){for(var n,r=e?this.size:0,o=ln(this,e);(n=o())!==un&&!1!==t(n,e?--r:r++,this););return r},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?pn(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):0===this.size?fn():(this.__ownerID=t,this.__altered=!1,this)},e}(M);an.isList=on;var sn=an.prototype;sn[rn]=!0,sn[r]=sn.remove,sn.merge=sn.concat,sn.setIn=fe,sn.deleteIn=sn.removeIn=he,sn.update=me,sn.updateIn=ye,sn.mergeIn=De,sn.mergeDeepIn=Te,sn.withMutations=Ae,sn.wasAltered=Ne,sn.asImmutable=je,sn["@@transducer/init"]=sn.asMutable=Ie,sn["@@transducer/step"]=function(t,e){return t.push(e)},sn["@@transducer/result"]=function(t){return t.asImmutable()};var cn=function(t,e){this.array=t,this.ownerID=e};cn.prototype.removeBefore=function(t,e,n){if(!(n&(1<<e+5)-1)||0===this.array.length)return this;var r=n>>>e&i;if(r>=this.array.length)return new cn([],t);var o,a=0===r;if(e>0){var s=this.array[r];if((o=s&&s.removeBefore(t,e-5,n))===s&&a)return this}if(a&&!o)return this;var c=hn(this,t);if(!a)for(var u=0;u<r;u++)c.array[u]=void 0;return o&&(c.array[r]=o),c},cn.prototype.removeAfter=function(t,e,n){if(n===(e?1<<e+5:o)||0===this.array.length)return this;var r,a=n-1>>>e&i;if(a>=this.array.length)return this;if(e>0){var s=this.array[a];if((r=s&&s.removeAfter(t,e-5,n))===s&&a===this.array.length-1)return this}var c=hn(this,t);return c.array.splice(a+1),r&&(c.array[a]=r),c};var un={};function ln(t,e){var n=t._origin,r=t._capacity,i=yn(r),a=t._tail;return function t(s,c,u){return 0===c?function(t,s){var c=s===i?a&&a.array:t&&t.array,u=s>n?0:n-s,l=r-s;return l>o&&(l=o),function(){if(u===l)return un;var t=e?--l:u++;return c&&c[t]}}(s,u):function(i,a,s){var c,u=i&&i.array,l=s>n?0:n-s>>a,p=1+(r-s>>a);return p>o&&(p=o),function(){for(;;){if(c){var n=c();if(n!==un)return n;c=null}if(l===p)return un;var r=e?--p:l++;c=t(u&&u[r],a-5,s+(r<<a))}}}(s,c,u)}(t._root,t._level,0)}function pn(t,e,n,r,o,i,a){var s=Object.create(sn);return s.size=e-t,s._origin=t,s._capacity=e,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function fn(){return pn(0,0,5)}function dn(t,e,n,r,o,a){var c,u=r>>>n&i,l=t&&u<t.array.length;if(!l&&void 0===o)return t;if(n>0){var p=t&&t.array[u],f=dn(p,e,n-5,r,o,a);return f===p?t:((c=hn(t,e)).array[u]=f,c)}return l&&t.array[u]===o?t:(a&&s(a),c=hn(t,e),void 0===o&&u===c.array.length-1?c.array.pop():c.array[u]=o,c)}function hn(t,e){return e&&t&&e===t.ownerID?t:new cn(t?t.array.slice():[],e)}function gn(t,e){if(e>=yn(t._capacity))return t._tail;if(e<1<<t._level+5){for(var n=t._root,r=t._level;n&&r>0;)n=n.array[e>>>r&i],r-=5;return n}}function mn(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new c,o=t._origin,a=t._capacity,s=o+e,u=void 0===n?a:n<0?a+n:o+n;if(s===o&&u===a)return t;if(s>=u)return t.clear();for(var l=t._level,p=t._root,f=0;s+f<0;)p=new cn(p&&p.array.length?[void 0,p]:[],r),f+=1<<(l+=5);f&&(s+=f,o+=f,u+=f,a+=f);for(var d=yn(a),h=yn(u);h>=1<<l+5;)p=new cn(p&&p.array.length?[p]:[],r),l+=5;var g=t._tail,m=h<d?gn(t,u-1):h>d?new cn([],r):g;if(g&&h>d&&s<a&&g.array.length){for(var y=p=hn(p,r),v=l;v>5;v-=5){var b=d>>>v&i;y=y.array[b]=hn(y.array[b],r)}y.array[d>>>5&i]=g}if(u<a&&(m=m&&m.removeAfter(r,0,u)),s>=h)s-=h,u-=h,l=5,p=null,m=m&&m.removeBefore(r,0,s);else if(s>o||h<d){for(f=0;p;){var w=s>>>l&i;if(w!==h>>>l&i)break;w&&(f+=(1<<l)*w),l-=5,p=p.array[w]}p&&s>o&&(p=p.removeBefore(r,l,s-f)),p&&h<d&&(p=p.removeAfter(r,l,h-f)),f&&(s-=f,u-=f)}return t.__ownerID?(t.size=u-s,t._origin=s,t._capacity=u,t._level=l,t._root=p,t._tail=m,t.__hash=void 0,t.__altered=!0,t):pn(s,u,l,p,m)}function yn(t){return t<o?0:t-1>>>5<<5}var vn,bn=function(t){function e(t){return null==t?_n():st(t)?t:_n().withMutations(function(e){var n=C(t);$t(n.size),n.forEach(function(t,n){return e.set(n,t)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("OrderedMap {","}")},e.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):_n()},e.prototype.set=function(t,e){return En(this,t,e)},e.prototype.remove=function(t){return En(this,t,a)},e.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],n)},e)},e.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?wn(e,n,t,this.__hash):0===this.size?_n():(this.__ownerID=t,this.__altered=!1,this._map=e,this._list=n,this)},e}(Le);function wn(t,e,n,r){var o=Object.create(bn.prototype);return o.size=t?t.size:0,o._map=t,o._list=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function _n(){return vn||(vn=wn(We(),fn()))}function En(t,e,n){var r,i,s=t._map,c=t._list,u=s.get(e),l=void 0!==u;if(n===a){if(!l)return t;c.size>=o&&c.size>=2*s.size?(r=(i=c.filter(function(t,e){return void 0!==t&&u!==e})).toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(r.__ownerID=i.__ownerID=t.__ownerID)):(r=s.remove(e),i=u===c.size-1?c.pop():c.set(u,void 0))}else if(l){if(n===c.get(u)[1])return t;r=s,i=c.set(u,[e,n])}else r=s.set(e,c.size),i=c.set(c.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=i,t.__hash=void 0,t.__altered=!0,t):wn(r,i)}bn.isOrderedMap=st,bn.prototype[j]=!0,bn.prototype[r]=bn.prototype.remove;var Sn="@@__IMMUTABLE_STACK__@@";function kn(t){return Boolean(t&&t[Sn])}var Cn=function(t){function e(t){return null==t?Dn():kn(t)?t:Dn().pushAll(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("Stack [","]")},e.prototype.get=function(t,e){var n=this._head;for(t=l(this,t);n&&t--;)n=n.next;return n?n.value:e},e.prototype.peek=function(){return this._head&&this._head.value},e.prototype.push=function(){var t=arguments;if(0===arguments.length)return this;for(var e=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:t[r],next:n};return this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):xn(e,n)},e.prototype.pushAll=function(e){if(0===(e=t(e)).size)return this;if(0===this.size&&kn(e))return e;$t(e.size);var n=this.size,r=this._head;return e.__iterate(function(t){n++,r={value:t,next:r}},!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):xn(n,r)},e.prototype.pop=function(){return this.slice(1)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Dn()},e.prototype.slice=function(e,n){if(f(e,n,this.size))return this;var r=d(e,this.size);if(h(n,this.size)!==this.size)return t.prototype.slice.call(this,e,n);for(var o=this.size-r,i=this._head;r--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):xn(o,i)},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?xn(this.size,this._head,t,this.__hash):0===this.size?Dn():(this.__ownerID=t,this.__altered=!1,this)},e.prototype.__iterate=function(t,e){var n=this;if(e)return new J(this.toArray()).__iterate(function(e,r){return t(e,r,n)},e);for(var r=0,o=this._head;o&&!1!==t(o.value,r++,this);)o=o.next;return r},e.prototype.__iterator=function(t,e){if(e)return new J(this.toArray()).__iterator(t,e);var n=0,r=this._head;return new z(function(){if(r){var e=r.value;return r=r.next,B(t,n++,e)}return{value:void 0,done:!0}})},e}(M);Cn.isStack=kn;var Mn,On=Cn.prototype;function xn(t,e,n,r){var o=Object.create(On);return o.size=t,o._head=e,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Dn(){return Mn||(Mn=xn(0))}On[Sn]=!0,On.shift=On.pop,On.unshift=On.push,On.unshiftAll=On.pushAll,On.withMutations=Ae,On.wasAltered=Ne,On.asImmutable=je,On["@@transducer/init"]=On.asMutable=Ie,On["@@transducer/step"]=function(t,e){return t.unshift(e)},On["@@transducer/result"]=function(t){return t.asImmutable()};var Tn="@@__IMMUTABLE_SET__@@";function An(t){return Boolean(t&&t[Tn])}function In(t){return An(t)&&N(t)}function jn(t,e){if(t===e)return!0;if(!v(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||w(t)!==w(e)||E(t)!==E(e)||N(t)!==N(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!S(t);if(N(t)){var r=t.entries();return e.every(function(t,e){var o=r.next().value;return o&&ut(o[1],t)&&(n||ut(o[0],e))})&&r.next().done}var o=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{o=!0;var i=t;t=e,e=i}var s=!0,c=e.__iterate(function(e,r){if(n?!t.has(e):o?!ut(e,t.get(r,a)):!ut(t.get(r,a),e))return s=!1,!1});return s&&t.size===c}function Nn(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}function Ln(t){if(!t||"object"!=typeof t)return t;if(!v(t)){if(!ne(t))return t;t=W(t)}if(w(t)){var e={};return t.__iterate(function(t,n){e[n]=Ln(t)}),e}var n=[];return t.__iterate(function(t){n.push(Ln(t))}),n}var Pn=function(t){function e(e){return null==e?Un():An(e)&&!N(e)?e:Un().withMutations(function(n){var r=t(e);$t(r.size),r.forEach(function(t){return n.add(t)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(C(t).keySeq())},e.intersect=function(t){return(t=k(t).toArray()).length?zn.intersect.apply(e(t.pop()),t):Un()},e.union=function(t){return(t=k(t).toArray()).length?zn.union.apply(e(t.pop()),t):Un()},e.prototype.toString=function(){return this.__toString("Set {","}")},e.prototype.has=function(t){return this._map.has(t)},e.prototype.add=function(t){return Bn(this,this._map.set(t,t))},e.prototype.remove=function(t){return Bn(this,this._map.remove(t))},e.prototype.clear=function(){return Bn(this,this._map.clear())},e.prototype.map=function(t,e){var n=this,r=!1,o=Bn(this,this._map.mapEntries(function(o){var i=o[1],a=t.call(e,i,i,n);return a!==i&&(r=!0),[a,a]},e));return r?o:this},e.prototype.union=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return 0===(e=e.filter(function(t){return 0!==t.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(n){for(var r=0;r<e.length;r++)"string"==typeof e[r]?n.add(e[r]):t(e[r]).forEach(function(t){return n.add(t)})}):this.constructor(e[0])},e.prototype.intersect=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];if(0===e.length)return this;e=e.map(function(e){return t(e)});var r=[];return this.forEach(function(t){e.every(function(e){return e.includes(t)})||r.push(t)}),this.withMutations(function(t){r.forEach(function(e){t.remove(e)})})},e.prototype.subtract=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];if(0===e.length)return this;e=e.map(function(e){return t(e)});var r=[];return this.forEach(function(t){e.some(function(e){return e.includes(t)})&&r.push(t)}),this.withMutations(function(t){r.forEach(function(e){t.remove(e)})})},e.prototype.sort=function(t){return ar(Ft(this,t))},e.prototype.sortBy=function(t,e){return ar(Ft(this,e,t))},e.prototype.wasAltered=function(){return this._map.wasAltered()},e.prototype.__iterate=function(t,e){var n=this;return this._map.__iterate(function(e){return t(e,e,n)},e)},e.prototype.__iterator=function(t,e){return this._map.__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):0===this.size?this.__empty():(this.__ownerID=t,this._map=e,this)},e}(O);Pn.isSet=An;var Rn,zn=Pn.prototype;function Bn(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function Fn(t,e){var n=Object.create(zn);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function Un(){return Rn||(Rn=Fn(We()))}zn[Tn]=!0,zn[r]=zn.remove,zn.merge=zn.concat=zn.union,zn.withMutations=Ae,zn.asImmutable=je,zn["@@transducer/init"]=zn.asMutable=Ie,zn["@@transducer/step"]=function(t,e){return t.add(e)},zn["@@transducer/result"]=function(t){return t.asImmutable()},zn.__empty=Un,zn.__make=Fn;var Hn,Kn=function(t){function e(t,n,r){if(void 0===r&&(r=1),!(this instanceof e))return new e(t,n,r);if(Jt(0!==r,"Cannot step a Range by 0"),Jt(void 0!==t,"You must define a start value when using Range"),Jt(void 0!==n,"You must define an end value when using Range"),r=Math.abs(r),n<t&&(r=-r),this._start=t,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-t)/r-1)+1),0===this.size){if(Hn)return Hn;Hn=this}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},e.prototype.get=function(t,e){return this.has(t)?this._start+l(this,t)*this._step:e},e.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},e.prototype.slice=function(t,n){return f(t,n,this.size)?this:(t=d(t,this.size),(n=h(n,this.size))<=t?new e(0,0):new e(this.get(t,this._end),this.get(n,this._end),this._step))},e.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step===0){var n=e/this._step;if(n>=0&&n<this.size)return n}return-1},e.prototype.lastIndexOf=function(t){return this.indexOf(t)},e.prototype.__iterate=function(t,e){for(var n=this.size,r=this._step,o=e?this._start+(n-1)*r:this._start,i=0;i!==n&&!1!==t(o,e?n-++i:i++,this);)o+=e?-r:r;return i},e.prototype.__iterator=function(t,e){var n=this.size,r=this._step,o=e?this._start+(n-1)*r:this._start,i=0;return new z(function(){if(i===n)return{value:void 0,done:!0};var a=o;return o+=e?-r:r,B(t,e?n-++i:i++,a)})},e.prototype.equals=function(t){return t instanceof e?this._start===t._start&&this._end===t._end&&this._step===t._step:jn(this,t)},e}(Q);function Vn(t,e,n){for(var r=Xt(e),o=0;o!==r.length;)if((t=ie(t,r[o++],a))===a)return n;return t}function Yn(t,e){return Vn(this,t,e)}function qn(t,e){return Vn(t,e,a)!==a}function Wn(){$t(this.size);var t={};return this.__iterate(function(e,n){t[n]=e}),t}k.Iterator=z,Nn(k,{toArray:function(){$t(this.size);var t=new Array(this.size||0),e=w(this),n=0;return this.__iterate(function(r,o){t[n++]=e?[o,r]:r}),t},toIndexedSeq:function(){return new Dt(this)},toJS:function(){return Ln(this)},toKeyedSeq:function(){return new xt(this,!0)},toMap:function(){return Le(this.toKeyedSeq())},toObject:Wn,toOrderedMap:function(){return bn(this.toKeyedSeq())},toOrderedSet:function(){return ar(w(this)?this.valueSeq():this)},toSet:function(){return Pn(w(this)?this.valueSeq():this)},toSetSeq:function(){return new Tt(this)},toSeq:function(){return E(this)?this.toIndexedSeq():w(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Cn(w(this)?this.valueSeq():this)},toList:function(){return an(w(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Vt(this,function(t,e){var n=w(t),r=[t].concat(e).map(function(t){return v(t)?n&&(t=C(t)):t=n?nt(t):rt(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===r.length)return t;if(1===r.length){var o=r[0];if(o===t||n&&w(o)||E(t)&&E(o))return o}return new zt(r)}(this,t))},includes:function(t){return this.some(function(e){return ut(e,t)})},entries:function(){return this.__iterator(2)},every:function(t,e){$t(this.size);var n=!0;return this.__iterate(function(r,o,i){if(!t.call(e,r,o,i))return n=!1,!1}),n},filter:function(t,e){return Vt(this,Lt(this,t,e,!0))},partition:function(t,e){return function(t,e,n){var r=w(t),o=[[],[]];t.__iterate(function(i,a){o[e.call(n,i,a,t)?1:0].push(r?[a,i]:i)});var i=qt(t);return o.map(function(e){return Vt(t,i(e))})}(this,t,e)},find:function(t,e,n){var r=this.findEntry(t,e);return r?r[1]:n},forEach:function(t,e){return $t(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){$t(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate(function(r){n?n=!1:e+=t,e+=null!=r?r.toString():""}),e},keys:function(){return this.__iterator(0)},map:function(t,e){return Vt(this,jt(this,t,e))},reduce:function(t,e,n){return $n(this,t,e,n,arguments.length<2,!1)},reduceRight:function(t,e,n){return $n(this,t,e,n,arguments.length<2,!0)},reverse:function(){return Vt(this,Nt(this,!0))},slice:function(t,e){return Vt(this,Pt(this,t,e,!0))},some:function(t,e){$t(this.size);var n=!1;return this.__iterate(function(r,o,i){if(t.call(e,r,o,i))return n=!0,!1}),n},sort:function(t){return Vt(this,Ft(this,t))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return u(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,n){var r=Le().asMutable();return t.__iterate(function(o,i){r.update(e.call(n,o,i,t),0,function(t){return t+1})}),r.asImmutable()}(this,t,e)},equals:function(t){return jn(this,t)},entrySeq:function(){var t=this;if(t._cache)return new J(t._cache);var e=t.toSeq().map(tr).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(er(t),e)},findEntry:function(t,e,n){var r=n;return this.__iterate(function(n,o,i){if(t.call(e,n,o,i))return r=[o,n],!1}),r},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},findLastEntry:function(t,e,n){return this.toKeyedSeq().reverse().findEntry(t,e,n)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(t){return this.find(p,null,t)},flatMap:function(t,e){return Vt(this,function(t,e,n){var r=qt(t);return t.toSeq().map(function(o,i){return r(e.call(n,o,i,t))}).flatten(!0)}(this,t,e))},flatten:function(t){return Vt(this,Bt(this,t,!0))},fromEntrySeq:function(){return new At(this)},get:function(t,e){return this.find(function(e,n){return ut(n,t)},void 0,e)},getIn:Yn,groupBy:function(t,e){return function(t,e,n){var r=w(t),o=(N(t)?bn():Le()).asMutable();t.__iterate(function(i,a){o.update(e.call(n,i,a,t),function(t){return(t=t||[]).push(r?[a,i]:i),t})});var i=qt(t);return o.map(function(e){return Vt(t,i(e))}).asImmutable()}(this,t,e)},has:function(t){return this.get(t,a)!==a},hasIn:function(t){return qn(this,t)},isSubset:function(t){return t="function"==typeof t.includes?t:k(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:k(t)).isSubset(this)},keyOf:function(t){return this.findKey(function(e){return ut(e,t)})},keySeq:function(){return this.toSeq().map(Xn).toIndexedSeq()},last:function(t){return this.toSeq().reverse().first(t)},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return Ut(this,t)},maxBy:function(t,e){return Ut(this,e,t)},min:function(t){return Ut(this,t?nr(t):or)},minBy:function(t,e){return Ut(this,e?nr(e):or,t)},rest:function(){return this.slice(1)},skip:function(t){return 0===t?this:this.slice(Math.max(0,t))},skipLast:function(t){return 0===t?this:this.slice(0,-Math.max(0,t))},skipWhile:function(t,e){return Vt(this,Rt(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(er(t),e)},sortBy:function(t,e){return Vt(this,Ft(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return this.slice(-Math.max(0,t))},takeWhile:function(t,e){return Vt(this,function(t,e,n){var r=Wt(t);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return t.__iterate(function(t,o,s){return e.call(n,t,o,s)&&++a&&r(t,o,i)}),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=t.__iterator(2,o),s=!0;return new z(function(){if(!s)return{value:void 0,done:!0};var t=a.next();if(t.done)return t;var o=t.value,c=o[0],u=o[1];return e.call(n,u,c,i)?2===r?t:B(r,c,u,t):(s=!1,{value:void 0,done:!0})})},r}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(er(t),e)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=N(t),n=w(t),r=e?1:0;return t.__iterate(n?e?function(t,e){r=31*r+ir(dt(t),dt(e))|0}:function(t,e){r=r+ir(dt(t),dt(e))|0}:e?function(t){r=31*r+dt(t)|0}:function(t){r=r+dt(t)|0}),function(t,e){return e=lt(e,3432918353),e=lt(e<<15|e>>>-15,461845907),e=lt(e<<13|e>>>-13,5),e=lt((e=(e+3864292196|0)^t)^e>>>16,2246822507),pt((e=lt(e^e>>>13,3266489909))^e>>>16)}(t.size,r)}(this))}});var Gn=k.prototype;Gn[y]=!0,Gn[R]=Gn.values,Gn.toJSON=Gn.toArray,Gn.__toStringMapper=re,Gn.inspect=Gn.toSource=function(){return this.toString()},Gn.chain=Gn.flatMap,Gn.contains=Gn.includes,Nn(C,{flip:function(){return Vt(this,It(this))},mapEntries:function(t,e){var n=this,r=0;return Vt(this,this.toSeq().map(function(o,i){return t.call(e,[i,o],r++,n)}).fromEntrySeq())},mapKeys:function(t,e){var n=this;return Vt(this,this.toSeq().flip().map(function(r,o){return t.call(e,r,o,n)}).flip())}});var Qn=C.prototype;Qn[b]=!0,Qn[R]=Gn.entries,Qn.toJSON=Wn,Qn.__toStringMapper=function(t,e){return re(e)+": "+re(t)},Nn(M,{toKeyedSeq:function(){return new xt(this,!1)},filter:function(t,e){return Vt(this,Lt(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return Vt(this,Nt(this,!1))},slice:function(t,e){return Vt(this,Pt(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(e||0,0),0===n||2===n&&!e)return this;t=d(t,t<0?this.count():this.size);var r=this.slice(0,t);return Vt(this,1===n?r:r.concat(Zt(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.findLastEntry(t,e);return n?n[0]:-1},first:function(t){return this.get(0,t)},flatten:function(t){return Vt(this,Bt(this,t,!1))},get:function(t,e){return(t=l(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,n){return n===t},void 0,e)},has:function(t){return(t=l(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return Vt(this,function(t,e){var n=Wt(t);return n.size=t.size&&2*t.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return t.__iterate(function(t){return(!i||!1!==n(e,i++,o))&&!1!==n(t,i++,o)},r),i},n.__iteratorUncached=function(n,r){var o,i=t.__iterator(1,r),a=0;return new z(function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?B(n,a++,e):B(n,a++,o.value,o)})},n}(this,t))},interleave:function(){var t=[this].concat(Zt(arguments)),e=Kt(this.toSeq(),Q.of,t),n=e.flatten(!0);return e.size&&(n.size=e.size*t.length),Vt(this,n)},keySeq:function(){return Kn(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,e){return Vt(this,Rt(this,t,e,!1))},zip:function(){return Vt(this,Kt(this,rr,[this].concat(Zt(arguments))))},zipAll:function(){return Vt(this,Kt(this,rr,[this].concat(Zt(arguments)),!0))},zipWith:function(t){var e=Zt(arguments);return e[0]=this,Vt(this,Kt(this,t,e))}});var Zn=M.prototype;Zn[_]=!0,Zn[j]=!0,Nn(O,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}});var Jn=O.prototype;function $n(t,e,n,r,o,i){return $t(t.size),t.__iterate(function(t,i,a){o?(o=!1,n=t):n=e.call(r,n,t,i,a)},i),n}function Xn(t,e){return e}function tr(t,e){return[e,t]}function er(t){return function(){return!t.apply(this,arguments)}}function nr(t){return function(){return-t.apply(this,arguments)}}function rr(){return Zt(arguments)}function or(t,e){return t<e?1:t>e?-1:0}function ir(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}Jn.has=Gn.includes,Jn.contains=Jn.includes,Jn.keys=Jn.values,Nn(G,Qn),Nn(Q,Zn),Nn(Z,Jn);var ar=function(t){function e(t){return null==t?lr():In(t)?t:lr().withMutations(function(e){var n=O(t);$t(n.size),n.forEach(function(t){return e.add(t)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(C(t).keySeq())},e.prototype.toString=function(){return this.__toString("OrderedSet {","}")},e}(Pn);ar.isOrderedSet=In;var sr,cr=ar.prototype;function ur(t,e){var n=Object.create(cr);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function lr(){return sr||(sr=ur(_n()))}cr[j]=!0,cr.zip=Zn.zip,cr.zipWith=Zn.zipWith,cr.zipAll=Zn.zipAll,cr.__empty=lr,cr.__make=ur;var pr={LeftThenRight:-1,RightThenLeft:1},fr=function(t,e){var n;!function(t){if(A(t))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(I(t))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===t||"object"!=typeof t)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(t);var r=function(i){var a=this;if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var s=Object.keys(t),c=o._indices={};o._name=e,o._keys=s,o._defaultValues=t;for(var u=0;u<s.length;u++){var l=s[u];c[l]=u,o[l]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+gr(this)+' with property "'+l+'" since that property name is part of the Record API.'):yr(o,l)}}return this.__ownerID=void 0,this._values=an().withMutations(function(t){t.setSize(a._keys.length),C(i).forEach(function(e,n){t.set(a._indices[n],e===a._defaultValues[n]?void 0:e)})}),this},o=r.prototype=Object.create(dr);return o.constructor=r,e&&(r.displayName=e),r};fr.prototype.toString=function(){for(var t,e=gr(this)+" { ",n=this._keys,r=0,o=n.length;r!==o;r++)e+=(r?", ":"")+(t=n[r])+": "+re(this.get(t));return e+" }"},fr.prototype.equals=function(t){return this===t||A(t)&&mr(this).equals(mr(t))},fr.prototype.hashCode=function(){return mr(this).hashCode()},fr.prototype.has=function(t){return this._indices.hasOwnProperty(t)},fr.prototype.get=function(t,e){if(!this.has(t))return e;var n=this._indices[t],r=this._values.get(n);return void 0===r?this._defaultValues[t]:r},fr.prototype.set=function(t,e){if(this.has(t)){var n=this._values.set(this._indices[t],e===this._defaultValues[t]?void 0:e);if(n!==this._values&&!this.__ownerID)return hr(this,n)}return this},fr.prototype.remove=function(t){return this.set(t)},fr.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:hr(this,t)},fr.prototype.wasAltered=function(){return this._values.wasAltered()},fr.prototype.toSeq=function(){return mr(this)},fr.prototype.toJS=function(){return Ln(this)},fr.prototype.entries=function(){return this.__iterator(2)},fr.prototype.__iterator=function(t,e){return mr(this).__iterator(t,e)},fr.prototype.__iterate=function(t,e){return mr(this).__iterate(t,e)},fr.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._values.__ensureOwner(t);return t?hr(this,e,t):(this.__ownerID=t,this._values=e,this)},fr.isRecord=A,fr.getDescriptiveName=gr;var dr=fr.prototype;function hr(t,e,n){var r=Object.create(Object.getPrototypeOf(t));return r._values=e,r.__ownerID=n,r}function gr(t){return t.constructor.displayName||t.constructor.name||"Record"}function mr(t){return nt(t._keys.map(function(e){return[e,t.get(e)]}))}function yr(t,e){try{Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){Jt(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}catch(t){}}dr[T]=!0,dr[r]=dr.remove,dr.deleteIn=dr.removeIn=he,dr.getIn=Yn,dr.hasIn=Gn.hasIn,dr.merge=ve,dr.mergeWith=be,dr.mergeIn=De,dr.mergeDeep=Oe,dr.mergeDeepWith=xe,dr.mergeDeepIn=Te,dr.setIn=fe,dr.update=me,dr.updateIn=ye,dr.withMutations=Ae,dr.asMutable=Ie,dr.asImmutable=je,dr[R]=dr.entries,dr.toJSON=dr.toObject=Gn.toObject,dr.inspect=dr.toSource=function(){return this.toString()};var vr,br=function(t){function e(t,n){if(!(this instanceof e))return new e(t,n);if(this._value=t,this.size=void 0===n?1/0:Math.max(0,n),0===this.size){if(vr)return vr;vr=this}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},e.prototype.get=function(t,e){return this.has(t)?this._value:e},e.prototype.includes=function(t){return ut(this._value,t)},e.prototype.slice=function(t,n){var r=this.size;return f(t,n,r)?this:new e(this._value,h(n,r)-d(t,r))},e.prototype.reverse=function(){return this},e.prototype.indexOf=function(t){return ut(this._value,t)?0:-1},e.prototype.lastIndexOf=function(t){return ut(this._value,t)?this.size:-1},e.prototype.__iterate=function(t,e){for(var n=this.size,r=0;r!==n&&!1!==t(this._value,e?n-++r:r++,this););return r},e.prototype.__iterator=function(t,e){var n=this,r=this.size,o=0;return new z(function(){return o===r?{value:void 0,done:!0}:B(t,e?r-++o:o++,n._value)})},e.prototype.equals=function(t){return t instanceof e?ut(this._value,t._value):jn(this,t)},e}(Q);function wr(t,e){return _r([],e||Er,t,"",e&&e.length>2?[]:void 0,{"":t})}function _r(t,e,n,r,o,i){if("string"!=typeof n&&!I(n)&&(q(n)||U(n)||ee(n))){if(~t.indexOf(n))throw new TypeError("Cannot convert circular structure to Immutable");t.push(n),o&&""!==r&&o.push(r);var a=e.call(i,r,W(n).map(function(r,i){return _r(t,e,r,i,o,n)}),o&&o.slice());return t.pop(),o&&o.pop(),a}return n}function Er(t,e){return E(e)?e.toList():w(e)?e.toMap():e.toSet()}var Sr="5.1.3",kr=k},9677:t=>{"use strict";t.exports=function(t){return t&&t.ownerDocument?t.ownerDocument:document}},9758:t=>{"use strict";t.exports=function(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}},9765:(t,e,n)=>{"use strict";n(2791),t.exports=n.g.setImmediate},9777:(t,e,n)=>{"use strict";var r=n(7282)("draft_tree_data_support");t.exports=n(r?1803:3659)},9824:t=>{"use strict";var e="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;t.exports=function(t){return(t=t||document).scrollingElement?t.scrollingElement:e||"CSS1Compat"!==t.compatMode?t.body:t.documentElement}},9884:(t,e,n)=>{"use strict";var r=n(4012),o=n(8003),i=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=i.prototype;return a.shouldComponentUpdate=function(t){return this.props.text!==t.text||this.props.editorState.getSelection().getHasFocus()!==t.editorState.getSelection().getHasFocus()},a.render=function(){var t=this.props.editorState.getSelection().getHasFocus(),e=o({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":t});return r.createElement("div",{className:e},r.createElement("div",{className:o("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},i}(r.Component);t.exports=i},9927:(t,e,n)=>{"use strict";var r=n(1103).notEmptyKey;function o(t,e){return r(e)&&"MUTABLE"===t.__get(e).getMutability()?e:null}t.exports=function(t,e){var n;if(e.isCollapsed()){var r=e.getAnchorKey(),i=e.getAnchorOffset();return i>0?(n=t.getBlockForKey(r).getEntityAt(i-1))!==t.getBlockForKey(r).getEntityAt(i)?null:o(t.getEntityMap(),n):null}var a=e.getStartKey(),s=e.getStartOffset(),c=t.getBlockForKey(a);return n=s===c.getLength()?null:c.getEntityAt(s),o(t.getEntityMap(),n)}},9938:(t,e,n)=>{"use strict";var r=n(3018),o=n(4092),i=n(6416),a=n(508),s=n(866),c=n(7337),u=n(9127),l=n(3136),p=n(646),f=n(5462),d=n(6044),h=n(4435),g=n(3222),m=c.OrderedSet,y={replaceText:function(t,e,n,o,i){var a=d(t,e),s=h(a,e),c=r.create({style:o||m(),entity:i||null});return l(s,s.getSelectionAfter(),n,c)},insertText:function(t,e,n,r,o){return e.isCollapsed()||p(!1),y.replaceText(t,e,n,r,o)},moveText:function(t,e,n){var r=s(t,e),o=y.removeRange(t,e,"backward");return y.replaceWithFragment(o,n,r)},replaceWithFragment:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=d(t,e),i=h(o,e);return u(i,i.getSelectionAfter(),n,r)},removeRange:function(t,e,n){var r,o,i,s;e.getIsBackward()&&(e=e.merge({anchorKey:e.getFocusKey(),anchorOffset:e.getFocusOffset(),focusKey:e.getAnchorKey(),focusOffset:e.getAnchorOffset(),isBackward:!1})),r=e.getAnchorKey(),o=e.getFocusKey(),i=t.getBlockForKey(r),s=t.getBlockForKey(o);var c=e.getStartOffset(),u=e.getEndOffset(),l=i.getEntityAt(c),p=s.getEntityAt(u-1);if(r===o&&l&&l===p){var f=a(t.getEntityMap(),i,s,e,n);return h(t,f)}var g=d(t,e);return h(g,e)},splitBlock:function(t,e){var n=d(t,e),r=h(n,e);return g(r,r.getSelectionAfter())},applyInlineStyle:function(t,e,n){return o.add(t,e,n)},removeInlineStyle:function(t,e,n){return o.remove(t,e,n)},setBlockType:function(t,e,n){return f(t,e,function(t){return t.merge({type:n,depth:0})})},setBlockData:function(t,e,n){return f(t,e,function(t){return t.merge({data:n})})},mergeBlockData:function(t,e,n){return f(t,e,function(t){return t.merge({data:t.getData().merge(n)})})},applyEntity:function(t,e,n){var r=d(t,e);return i(r,e,n)}};t.exports=y},9981:(t,e,n)=>{"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(8227),i=n(679),a=n(7337),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(t,e,n){var r=e.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(e,t):s(c(null,r)),u=e.getCharacterList();return o(a,h,l,function(t,e){var n,r,c,d;i.push(new f({start:t,end:e,decoratorKey:a.get(t),leaves:(n=u.slice(t,e).toList(),r=t,c=[],d=n.map(function(t){return t.getStyle()}).toList(),o(d,h,l,function(t,e){c.push(new p({start:t+r,end:e+r}))}),s(c))}))}),s(i)},fromJS:function(t){var e=t.leaves,n=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,["leaves"]);return new f(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(e){r(t,e,n[e])})}return t}({},n,{leaves:null!=e?s(Array.isArray(e)?e:i(e)).map(function(t){return p(t)}):null}))}};function h(t,e){return t===e}t.exports=d},9987:function(t){t.exports=function(){"use strict";function t(t,e){if(t)for(var n in t)({}).hasOwnProperty.call(t,n)&&e(n,t[n])}var e={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(t){return t&&e[t]}function r(e){var n="";return t(e,function(t,e){e&&(n+="".concat(t,":").concat(e,";"))}),n}function o(t,e){var n={};return t.COLOR[e]&&(n.COLOR=t.COLOR[e]),t.BGCOLOR[e]&&(n.BGCOLOR=t.BGCOLOR[e]),t.FONTSIZE[e]&&(n.FONTSIZE=t.FONTSIZE[e]),t.FONTFAMILY[e]&&(n.FONTFAMILY=t.FONTFAMILY[e]),t.UNDERLINE[e]&&(n.UNDERLINE=!0),t.ITALIC[e]&&(n.ITALIC=!0),t.BOLD[e]&&(n.BOLD=!0),t.STRIKETHROUGH[e]&&(n.STRIKETHROUGH=!0),t.CODE[e]&&(n.CODE=!0),t.SUBSCRIPT[e]&&(n.SUBSCRIPT=!0),t.SUPERSCRIPT[e]&&(n.SUPERSCRIPT=!0),n}function i(t,e,n){var r=!0;return n>0&&n<t.length?e.forEach(function(e){r=r&&t[e][n]===t[e][n-1]}):r=!1,r}function a(t,e,n,r){var o=t[e];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(t,e,n,r){var a=[],s=Array.from(t.text);if(s.length>0)for(var c,u=function(t){var e=t.text,n=t.inlineStyleRanges,r={BOLD:new Array(e.length),ITALIC:new Array(e.length),UNDERLINE:new Array(e.length),STRIKETHROUGH:new Array(e.length),CODE:new Array(e.length),SUPERSCRIPT:new Array(e.length),SUBSCRIPT:new Array(e.length),COLOR:new Array(e.length),BGCOLOR:new Array(e.length),FONTSIZE:new Array(e.length),FONTFAMILY:new Array(e.length),length:e.length};return n&&n.length>0&&n.forEach(function(t){for(var e=t.offset,n=e+t.length,o=e;o<n;o+=1)0===t.style.indexOf("color-")?r.COLOR[o]=t.style.substring(6):0===t.style.indexOf("bgcolor-")?r.BGCOLOR[o]=t.style.substring(8):0===t.style.indexOf("fontsize-")?r.FONTSIZE[o]=t.style.substring(9):0===t.style.indexOf("fontfamily-")?r.FONTFAMILY[o]=t.style.substring(11):r[t.style]&&(r[t.style][o]=!0)}),r}(t),l=n;l<r;l+=1)l!==n&&i(u,e,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(e,n){var r=s(e,["BOLD","ITALIC","UNDERLINE","STRIKETHROUGH","CODE","SUPERSCRIPT","SUBSCRIPT"],n.start,n.end),o="";return r.forEach(function(e){o+=function(e){var n,r=e.styles,o=(n=e.text)&&n.length>0?n.map(function(t){switch(t){case"\n":return"<br>";case"&":return"&";case"<":return"<";case">":return">";default:return t}}).join(""):"";return t(r,function(t,e){o=function(t,e){return"BOLD"===t?"<strong>".concat(e,"</strong>"):"ITALIC"===t?"<em>".concat(e,"</em>"):"UNDERLINE"===t?"<ins>".concat(e,"</ins>"):"STRIKETHROUGH"===t?"<del>".concat(e,"</del>"):"CODE"===t?"<code>".concat(e,"</code>"):"SUPERSCRIPT"===t?"<sup>".concat(e,"</sup>"):"SUBSCRIPT"===t?"<sub>".concat(e,"</sub>"):e}(t,o)}),o}(e)}),o=function(t,e){if(t&&(t.COLOR||t.BGCOLOR||t.FONTSIZE||t.FONTFAMILY)){var n='style="';return t.COLOR&&(n+="color: ".concat(t.COLOR,";")),t.BGCOLOR&&(n+="background-color: ".concat(t.BGCOLOR,";")),t.FONTSIZE&&(n+="font-size: ".concat(t.FONTSIZE).concat(/^\d+$/.test(t.FONTSIZE)?"px":"",";")),t.FONTFAMILY&&(n+="font-family: ".concat(t.FONTFAMILY,";")),"<span ".concat(n+='"',">").concat(e,"</span>")}return e}(n.styles,o)}function u(t,e,n,r){var o=[],i=function(t,e){var n=[],r=0,o=t.entityRanges.map(function(t){return{offset:t.offset,length:t.length,key:t.key,type:"ENTITY"}});return(o=(o=o.concat(function(t,e){var n=[];if(e)for(var r=0,o=0,i=t,a=e.trigger||"#",s=e.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}(t.text,e))).sort(function(t,e){return t.offset-e.offset})).forEach(function(t){t.offset>r&&n.push({start:r,end:t.offset}),n.push({start:t.offset,end:t.offset+t.length,entityKey:t.key,type:t.type}),r=t.offset+t.length}),r<t.text.length&&n.push({start:r,end:t.text.length}),n}(t,n);return i.forEach(function(n,u){var l=function(t,e,n,r){var o=[];s(t,["COLOR","BGCOLOR","FONTSIZE","FONTFAMILY"],n.start,n.end).forEach(function(e){o.push(c(t,e))});var i=o.join("");return"ENTITY"===n.type?void 0!==n.entityKey&&null!==n.entityKey&&(i=a(e,n.entityKey,i,r)):"HASHTAG"===n.type&&(i='<a href="'.concat(i,'" class="wysiwyg-hashtag">').concat(i,"</a>")),i}(t,e,n,r);0===u&&(l=function(t){if(t){for(var e=t,n=0;n<e.length&&" "===t[n];n+=1)e=e.replace(" "," ");return e}return t}(l)),u===i.length-1&&(l=function(t){if(t){for(var e=t,n=e.length-1;n>=0&&" "===e[n];n-=1)e="".concat(e.substring(0,n)," ").concat(e.substring(n+1));return e}return t}(l)),o.push(l)}),o.join("")}function l(t,e,o,i,a){var s,c=[],p=[];return t.forEach(function(t){var f=!1;if(s?s.type!==t.type?(c.push("</".concat(n(s.type),">\n")),c.push("<".concat(n(t.type),">\n"))):s.depth===t.depth?p&&p.length>0&&(c.push(l(p,e,o,i,a)),p=[]):(f=!0,p.push(t)):c.push("<".concat(n(t.type),">\n")),!f){c.push("<li");var d=r(t.data);d&&c.push(' style="'.concat(d,'"')),i&&c.push(' dir = "auto"'),c.push(">"),c.push(u(t,e,o,a)),c.push("</li>\n"),s=t}}),p&&p.length>0&&c.push(l(p,e,o,i,a)),c.push("</".concat(n(s.type),">\n")),c.join("")}return function(t,e,o,i){var s=[];if(t){var c=t.blocks,p=t.entityMap;if(c&&c.length>0){var f=[];if(c.forEach(function(t){if("unordered-list-item"===(h=t.type)||"ordered-list-item"===h)f.push(t);else{if(f.length>0){var c=l(f,p,e,i);s.push(c),f=[]}var d=function(t,e,o,i,s){var c=[];if(function(t){return!(!(t.entityRanges.length>0)||(e=t.text,null!=e&&0!==e.length&&0!==e.trim().length&&"atomic"!==t.type));var e}(t))c.push(a(e,t.entityRanges[0].key,void 0,s));else{var l=n(t.type);if(l){c.push("<".concat(l));var p=r(t.data);p&&c.push(' style="'.concat(p,'"')),i&&c.push(' dir = "auto"'),c.push(">"),c.push(u(t,e,o,s)),c.push("</".concat(l,">"))}}return c.push("\n"),c.join("")}(t,p,e,o,i);s.push(d)}var h}),f.length>0){var d=l(f,p,e,o,i);s.push(d),f=[]}}}return s.join("")}}()}},i={};function a(t){var e=i[t];if(void 0!==e)return e.exports;var n=i[t]={exports:{}};return o[t].call(n.exports,n,n.exports,a),n.exports}a.m=o,a.amdO={},a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.f={},a.e=t=>Promise.all(Object.keys(a.f).reduce((e,n)=>(a.f[n](t,e),e),[])),a.u=t=>t+".app.js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n={},r="ReactFormBuilder:",a.l=(t,e,o,i)=>{if(n[t])n[t].push(e);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")==t||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=t),n[t]=[e];var f=(e,r)=>{s.onerror=s.onload=null,clearTimeout(d);var o=n[t];if(delete n[t],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach(t=>t(r)),e)return e(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=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;a.g.importScripts&&(t=a.g.location+"");var e=a.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!t||!/^http(s?):/.test(t));)t=n[r--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=t})(),(()=>{var t={792:0};a.f.j=(e,n)=>{var r=a.o(t,e)?t[e]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise((n,o)=>r=t[e]=[n,o]);n.push(r[2]=o);var i=a.p+a.u(e),s=new Error;a.l(i,n=>{if(a.o(t,e)&&(0!==(r=t[e])&&(t[e]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+e+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,r[1](s)}},"chunk-"+e,e)}};var e=(e,n)=>{var r,o,[i,s,c]=n,u=0;if(i.some(e=>0!==t[e])){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);c&&c(a)}for(e&&e(n);u<i.length;u++)o=i[u],a.o(t,o)&&t[o]&&t[o][0](),t[o]=0},n=self.webpackChunkReactFormBuilder=self.webpackChunkReactFormBuilder||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})();var s={};return(()=>{"use strict";a.r(s),a.d(s,{ElementStore:()=>Ue,ReactFormBuilder:()=>tf,ReactFormGenerator:()=>ef,Registry:()=>dl(),default:()=>rf});var t={};a.r(t),a.d(t,{FILE:()=>xt,HTML:()=>At,TEXT:()=>Tt,URL:()=>Dt});var e=a(8168),n=a(3029),r=a(2901),o=a(6822),i=a(3954),c=a(5361),u=a(4012),l=a.n(u),p=new Set(["button","submit","reset","image","file","hidden"]);function f(t){if(!("Enter"!==t.key||t.defaultPrevented||t.nativeEvent&&t.nativeEvent.isComposing)){var e=t.target;"undefined"!=typeof HTMLInputElement&&e instanceof HTMLInputElement&&(p.has(String(e.type).toLowerCase())||e.form&&t.preventDefault())}}var d=a(4848);function h(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var g="function"==typeof Symbol&&Symbol.observable||"@@observable",m=function(){return Math.random().toString(36).substring(7).split("").join(".")},y={INIT:"@@redux/INIT"+m(),REPLACE:"@@redux/REPLACE"+m(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+m()}};function v(t,e,n){var r;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(h(0));if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error(h(1));return n(v)(t,e)}if("function"!=typeof t)throw new Error(h(2));var o=t,i=e,a=[],s=a,c=!1;function u(){s===a&&(s=a.slice())}function l(){if(c)throw new Error(h(3));return i}function p(t){if("function"!=typeof t)throw new Error(h(4));if(c)throw new Error(h(5));var e=!0;return u(),s.push(t),function(){if(e){if(c)throw new Error(h(6));e=!1,u();var n=s.indexOf(t);s.splice(n,1),a=null}}}function f(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(h(7));if(void 0===t.type)throw new Error(h(8));if(c)throw new Error(h(9));try{c=!0,i=o(i,t)}finally{c=!1}for(var e=a=s,n=0;n<e.length;n++)(0,e[n])();return t}return f({type:y.INIT}),(r={dispatch:f,subscribe:p,getState:l,replaceReducer:function(t){if("function"!=typeof t)throw new Error(h(10));o=t,f({type:y.REPLACE})}})[g]=function(){var t,e=p;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(h(11));function n(){t.next&&t.next(l())}return n(),{unsubscribe:e(n)}}})[g]=function(){return this},t},r}function b(t,e,...n){if("undefined"!=typeof process&&void 0===e)throw new Error("invariant requires an error message argument");if(!t){let t;if(void 0===e)t=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let r=0;t=new Error(e.replace(/%s/g,function(){return n[r++]})),t.name="Invariant Violation"}throw t.framesToPop=1,t}}function w(t){return"object"==typeof t}const _="dnd-core/INIT_COORDS",E="dnd-core/BEGIN_DRAG",S="dnd-core/PUBLISH_DRAG_SOURCE",k="dnd-core/HOVER",C="dnd-core/DROP",M="dnd-core/END_DRAG";function O(t,e){return{type:_,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const x={type:_,payload:{clientOffset:null,sourceClientOffset:null}};function D(t){return function(e=[],n={publishSource:!0}){const{publishSource:r=!0,clientOffset:o,getSourceClientOffset:i}=n,a=t.getMonitor(),s=t.getRegistry();t.dispatch(O(o)),function(t,e,n){b(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(t){b(n.getSource(t),"Expected sourceIds to be registered.")})}(e,a,s);const c=function(t,e){let n=null;for(let r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}(e,a);if(null==c)return void t.dispatch(x);let u=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(t){b("function"==typeof t,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),u=i(c)}t.dispatch(O(o,u));const l=s.getSource(c).beginDrag(a,c);if(null==l)return;!function(t){b(w(t),"Item must be an object.")}(l),s.pinSource(c);const p=s.getSourceType(c);return{type:E,payload:{itemType:p,item:l,sourceId:c,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!r}}}}function T(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function A(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){T(t,e,n[e])})}return t}function I(t){return function(e={}){const n=t.getMonitor(),r=t.getRegistry();!function(t){b(t.isDragging(),"Cannot call drop while not dragging."),b(!t.didDrop(),"Cannot call drop twice during one drag operation.")}(n);const o=function(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}(n);o.forEach((o,i)=>{const a=function(t,e,n,r){const o=n.getTarget(t);let i=o?o.drop(r,t):void 0;return function(t){b(void 0===t||w(t),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===e?{}:r.getDropResult()),i}(o,i,r,n),s={type:C,payload:{dropResult:A({},e,a)}};t.dispatch(s)})}}function j(t){return function(){const e=t.getMonitor(),n=t.getRegistry();!function(t){b(t.isDragging(),"Cannot call endDrag while not dragging.")}(e);const r=e.getSourceId();return null!=r&&(n.getSource(r,!0).endDrag(e,r),n.unpinSource()),{type:M}}}function N(t,e){return null===e?null===t:Array.isArray(t)?t.some(t=>t===e):t===e}function L(t){return function(e,{clientOffset:n}={}){!function(t){b(Array.isArray(t),"Expected targetIds to be an array.")}(e);const r=e.slice(0),o=t.getMonitor(),i=t.getRegistry();return function(t,e,n){for(let r=t.length-1;r>=0;r--){const o=t[r];N(e.getTargetType(o),n)||t.splice(r,1)}}(r,i,o.getItemType()),function(t,e,n){b(e.isDragging(),"Cannot call hover while not dragging."),b(!e.didDrop(),"Cannot call hover after drop.");for(let e=0;e<t.length;e++){const r=t[e];b(t.lastIndexOf(r)===e,"Expected targetIds to be unique in the passed array."),b(n.getTarget(r),"Expected targetIds to be registered.")}}(r,o,i),function(t,e,n){t.forEach(function(t){n.getTarget(t).hover(e,t)})}(r,o,i),{type:k,payload:{targetIds:r,clientOffset:n||null}}}}function P(t){return function(){if(t.getMonitor().isDragging())return{type:S}}}class R{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:e}=this.store,n=function(t){return{beginDrag:D(t),publishDragSource:P(t),hover:L(t),drop:I(t),endDrag:j(t)}}(this);return Object.keys(n).reduce((r,o)=>{const i=n[o];var a;return r[o]=(a=i,(...n)=>{const r=a.apply(t,n);void 0!==r&&e(r)}),r},{})}dispatch(t){this.store.dispatch(t)}constructor(t,e){this.isSetUp=!1,this.handleRefCountChange=()=>{const t=this.store.getState().refCount>0;this.backend&&(t&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!t&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=e,t.subscribe(this.handleRefCountChange)}}function z(t,e){return{x:t.x-e.x,y:t.y-e.y}}const B=[],F=[];B.__IS_NONE__=!0,F.__IS_ALL__=!0;class U{subscribeToStateChange(t,e={}){const{handlerIds:n}=e;b("function"==typeof t,"listener must be a function."),b(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;return this.store.subscribe(()=>{const e=this.store.getState(),o=e.stateId;try{const i=o===r||o===r+1&&!function(t,e){return t!==B&&(t===F||void 0===e||(n=t,e.filter(t=>n.indexOf(t)>-1)).length>0);var n}(e.dirtyHandlerIds,n);i||t()}finally{r=o}})}subscribeToOffsetChange(t){b("function"==typeof t,"listener must be a function.");let e=this.store.getState().dragOffset;return this.store.subscribe(()=>{const n=this.store.getState().dragOffset;n!==e&&(e=n,t())})}canDragSource(t){if(!t)return!1;const e=this.registry.getSource(t);return b(e,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()&&e.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const e=this.registry.getTarget(t);return b(e,`Expected to find a valid target. targetId=${t}`),!(!this.isDragging()||this.didDrop())&&(N(this.registry.getTargetType(t),this.getItemType())&&e.canDrop(this,t))}isDragging(){return Boolean(this.getItemType())}isDraggingSource(t){if(!t)return!1;const e=this.registry.getSource(t,!0);return b(e,`Expected to find a valid source. sourceId=${t}`),!(!this.isDragging()||!this.isSourcePublic())&&(this.registry.getSourceType(t)===this.getItemType()&&e.isDragging(this,t))}isOverTarget(t,e={shallow:!1}){if(!t)return!1;const{shallow:n}=e;if(!this.isDragging())return!1;const r=this.registry.getTargetType(t),o=this.getItemType();if(o&&!N(r,o))return!1;const i=this.getTargetIds();if(!i.length)return!1;const a=i.indexOf(t);return n?a===i.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(t){const{clientOffset:e,initialClientOffset:n,initialSourceClientOffset:r}=t;return e&&n&&r?z((i=r,{x:(o=e).x+i.x,y:o.y+i.y}),n):null;var o,i}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(t){const{clientOffset:e,initialClientOffset:n}=t;return e&&n?z(e,n):null}(this.store.getState().dragOffset)}constructor(t,e){this.store=t,this.registry=e}}const H="undefined"!=typeof global?global:self,K=H.MutationObserver||H.WebKitMutationObserver;function V(t){return function(){const e=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(e),clearInterval(n),t()}}}const Y="function"==typeof K?function(t){let e=1;const n=new K(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}:V;class q{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,e){this.onError=t,this.release=e,this.task=null}}const W=new class{enqueueTask(t){const{queue:e,requestFlush:n}=this;e.length||(n(),this.flushing=!0),e[e.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const e=this.index;if(this.index++,t[e].call(),this.index>this.capacity){for(let e=0,n=t.length-this.index;e<n;e++)t[e]=t[e+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=Y(this.flush),this.requestErrorThrow=V(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},G=new class{create(t){const e=this.freeTasks,n=e.length?e.pop():new q(this.onError,t=>e[e.length]=t);return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}(W.registerPendingError),Q="dnd-core/ADD_SOURCE",Z="dnd-core/ADD_TARGET",J="dnd-core/REMOVE_SOURCE",$="dnd-core/REMOVE_TARGET";function X(t,e){e&&Array.isArray(t)?t.forEach(t=>X(t,!1)):b("string"==typeof t||"symbol"==typeof t,e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var tt;!function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"}(tt||(tt={}));let et=0;function nt(t){switch(t[0]){case"S":return tt.SOURCE;case"T":return tt.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function rt(t,e){const n=t.entries();let r=!1;do{const{done:t,value:[,o]}=n.next();if(o===e)return!0;r=!!t}while(!r);return!1}class ot{addSource(t,e){X(t),function(t){b("function"==typeof t.canDrag,"Expected canDrag to be a function."),b("function"==typeof t.beginDrag,"Expected beginDrag to be a function."),b("function"==typeof t.endDrag,"Expected endDrag to be a function.")}(e);const n=this.addHandler(tt.SOURCE,t,e);return this.store.dispatch(function(t){return{type:Q,payload:{sourceId:t}}}(n)),n}addTarget(t,e){X(t,!0),function(t){b("function"==typeof t.canDrop,"Expected canDrop to be a function."),b("function"==typeof t.hover,"Expected hover to be a function."),b("function"==typeof t.drop,"Expected beginDrag to be a function.")}(e);const n=this.addHandler(tt.TARGET,t,e);return this.store.dispatch(function(t){return{type:Z,payload:{targetId:t}}}(n)),n}containsHandler(t){return rt(this.dragSources,t)||rt(this.dropTargets,t)}getSource(t,e=!1){return b(this.isSourceId(t),"Expected a valid source ID."),e&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return b(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return b(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return b(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return nt(t)===tt.SOURCE}isTargetId(t){return nt(t)===tt.TARGET}removeSource(t){var e;b(this.getSource(t),"Expected an existing source."),this.store.dispatch(function(t){return{type:J,payload:{sourceId:t}}}(t)),e=()=>{this.dragSources.delete(t),this.types.delete(t)},W.enqueueTask(G.create(e))}removeTarget(t){b(this.getTarget(t),"Expected an existing target."),this.store.dispatch(function(t){return{type:$,payload:{targetId:t}}}(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const e=this.getSource(t);b(e,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=e}unpinSource(){b(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,e,n){const r=function(t){const e=(et++).toString();switch(t){case tt.SOURCE:return`S${e}`;case tt.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}(t);return this.types.set(r,e),t===tt.SOURCE?this.dragSources.set(r,n):t===tt.TARGET&&this.dropTargets.set(r,n),r}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const it=(t,e)=>t===e;function at(t=B,e){switch(e.type){case k:break;case Q:case Z:case $:case J:return B;default:return F}const{targetIds:n=[],prevTargetIds:r=[]}=e.payload,o=function(t,e){const n=new Map,r=t=>{n.set(t,n.has(t)?n.get(t)+1:1)};t.forEach(r),e.forEach(r);const o=[];return n.forEach((t,e)=>{1===t&&o.push(e)}),o}(n,r),i=o.length>0||!function(t,e,n=it){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(!n(t[r],e[r]))return!1;return!0}(n,r);if(!i)return B;const a=r[r.length-1],s=n[n.length-1];return a!==s&&(a&&o.push(a),s&&o.push(s)),o}function st(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const ct={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function ut(t=ct,e){const{payload:n}=e;switch(e.type){case _:case E:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case k:return r=t.clientOffset,o=n.clientOffset,!r&&!o||r&&o&&r.x===o.x&&r.y===o.y?t:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){st(t,e,n[e])})}return t}({},t,{clientOffset:n.clientOffset});case M:case C:return ct;default:return t}var r,o}function lt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){lt(t,e,n[e])})}return t}const ft={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function dt(t=ft,e){const{payload:n}=e;switch(e.type){case E:return pt({},t,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case S:return pt({},t,{isSourcePublic:!0});case k:return pt({},t,{targetIds:n.targetIds});case $:return-1===t.targetIds.indexOf(n.targetId)?t:pt({},t,{targetIds:(r=t.targetIds,o=n.targetId,r.filter(t=>t!==o))});case C:return pt({},t,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case M:return pt({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}var r,o}function ht(t=0,e){switch(e.type){case Q:case Z:return t+1;case J:case $:return t-1;default:return t}}function gt(t=0){return t+1}function mt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){mt(t,e,n[e])})}return t}function vt(t={},e){return{dirtyHandlerIds:at(t.dirtyHandlerIds,{type:e.type,payload:yt({},e.payload,{prevTargetIds:(n=t,r=[],"dragOperation.targetIds".split(".").reduce((t,e)=>t&&t[e]?t[e]:r||null,n))})}),dragOffset:ut(t.dragOffset,e),refCount:ht(t.refCount,e),dragOperation:dt(t.dragOperation,e),stateId:gt(t.stateId)};var n,r}function bt(t,e=void 0,n={},r=!1){const o=function(t){const e="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return v(vt,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}(r),i=new U(o,new ot(o)),a=new R(o,i),s=t(a,e,n);return a.receiveBackend(s),a}const wt=(0,u.createContext)({dragDropManager:void 0});let _t=0;const Et=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var St=(0,u.memo)(function(t){var{children:e}=t,n=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,["children"]);const[r,o]=function(t){if("manager"in t)return[{dragDropManager:t.manager},!1];const e=function(t,e=kt(),n,r){const o=e;return o[Et]||(o[Et]={dragDropManager:bt(t,e,n,r)}),o[Et]}(t.backend,t.context,t.options,t.debugMode);return[e,!t.context]}(n);return(0,u.useEffect)(()=>{if(o){const t=kt();return++_t,()=>{0===--_t&&(t[Et]=null)}}},[]),(0,d.jsx)(wt.Provider,{value:r,children:e})});function kt(){return"undefined"!=typeof global?global:window}function Ct(t){let e=null;return()=>(null==e&&(e=t()),e)}class Mt{enter(t){const e=this.entered.length;return this.entered=function(t,e){const n=new Set,r=t=>n.add(t);t.forEach(r),e.forEach(r);const o=[];return n.forEach(t=>o.push(t)),o}(this.entered.filter(e=>this.isNodeInDocument(e)&&(!e.contains||e.contains(t))),[t]),0===e&&this.entered.length>0}leave(t){const e=this.entered.length;var n,r;return this.entered=(n=this.entered.filter(this.isNodeInDocument),r=t,n.filter(t=>t!==r)),e>0&&0===this.entered.length}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class Ot{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null)})})}loadDataTransfer(t){if(t){const e={};Object.keys(this.config.exposeProperties).forEach(n=>{const r=this.config.exposeProperties[n];null!=r&&(e[n]={value:r(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,e)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,e){return e===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const xt="__NATIVE_FILE__",Dt="__NATIVE_URL__",Tt="__NATIVE_TEXT__",At="__NATIVE_HTML__";function It(t,e,n){const r=e.reduce((e,n)=>e||t.getData(n),"");return null!=r?r:n}const jt={[xt]:{exposeProperties:{files:t=>Array.prototype.slice.call(t.files),items:t=>t.items,dataTransfer:t=>t},matchesTypes:["Files"]},[At]:{exposeProperties:{html:(t,e)=>It(t,e,""),dataTransfer:t=>t},matchesTypes:["Html","text/html"]},[Dt]:{exposeProperties:{urls:(t,e)=>It(t,e,"").split("\n"),dataTransfer:t=>t},matchesTypes:["Url","text/uri-list"]},[Tt]:{exposeProperties:{text:(t,e)=>It(t,e,""),dataTransfer:t=>t},matchesTypes:["Text","text/plain"]}};function Nt(t){if(!t)return null;const e=Array.prototype.slice.call(t.types||[]);return Object.keys(jt).filter(t=>{const n=jt[t];return!!(null==n?void 0:n.matchesTypes)&&n.matchesTypes.some(t=>e.indexOf(t)>-1)})[0]||null}const Lt=Ct(()=>/firefox/i.test(navigator.userAgent)),Pt=Ct(()=>Boolean(window.safari));class Rt{interpolate(t){const{xs:e,ys:n,c1s:r,c2s:o,c3s:i}=this;let a=e.length-1;if(t===e[a])return n[a];let s,c=0,u=i.length-1;for(;c<=u;){s=Math.floor(.5*(c+u));const r=e[s];if(r<t)c=s+1;else{if(!(r>t))return n[s];u=s-1}}a=Math.max(0,u);const l=t-e[a],p=l*l;return n[a]+r[a]*l+o[a]*p+i[a]*l*p}constructor(t,e){const{length:n}=t,r=[];for(let t=0;t<n;t++)r.push(t);r.sort((e,n)=>t[e]<t[n]?-1:1);const o=[],i=[],a=[];let s,c;for(let r=0;r<n-1;r++)s=t[r+1]-t[r],c=e[r+1]-e[r],i.push(s),o.push(c),a.push(c/s);const u=[a[0]];for(let t=0;t<i.length-1;t++){const e=a[t],n=a[t+1];if(e*n<=0)u.push(0);else{s=i[t];const r=i[t+1],o=s+r;u.push(3*o/((o+r)/e+(o+s)/n))}}u.push(a[a.length-1]);const l=[],p=[];let f;for(let t=0;t<u.length-1;t++){f=a[t];const e=u[t],n=1/i[t],r=e+u[t+1]-f-f;l.push((f-e-r)*n),p.push(r*n*n)}this.xs=t,this.ys=e,this.c1s=u,this.c2s=l,this.c3s=p}}function zt(t){const e=1===t.nodeType?t:t.parentElement;if(!e)return null;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function Bt(t){return{x:t.clientX,y:t.clientY}}class Ft{get window(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}get document(){var t;return(null===(t=this.globalContext)||void 0===t?void 0:t.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return(null===(t=this.optionsArgs)||void 0===t?void 0:t.rootElement)||this.window}constructor(t,e){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=e}}function Ut(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ht(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){Ut(t,e,n[e])})}return t}class Kt{profile(){var t,e;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(t=this.dragStartSourceIds)||void 0===t?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(e=this.dragOverTargetIds)||void 0===e?void 0:e.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const t=this.rootElement;if(void 0!==t){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}teardown(){const t=this.rootElement;var e;void 0!==t&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(e=this.window)||void 0===e||e.cancelAnimationFrame(this.asyncEndDragFrameId)))}connectDragPreview(t,e,n){return this.sourcePreviewNodeOptions.set(t,n),this.sourcePreviewNodes.set(t,e),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,e,n){this.sourceNodes.set(t,e),this.sourceNodeOptions.set(t,n);const r=e=>this.handleDragStart(e,t),o=t=>this.handleSelectStart(t);return e.setAttribute("draggable","true"),e.addEventListener("dragstart",r),e.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),e.removeEventListener("dragstart",r),e.removeEventListener("selectstart",o),e.setAttribute("draggable","false")}}connectDropTarget(t,e){const n=e=>this.handleDragEnter(e,t),r=e=>this.handleDragOver(e,t),o=e=>this.handleDrop(e,t);return e.addEventListener("dragenter",n),e.addEventListener("dragover",r),e.addEventListener("drop",o),()=>{e.removeEventListener("dragenter",n),e.removeEventListener("dragover",r),e.removeEventListener("drop",o)}}addEventListeners(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),e=this.sourceNodeOptions.get(t);return Ht({dropEffect:this.altKeyPressed?"copy":"move"},e||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId();return Ht({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(t)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(t).some(n=>t[n]===e)}beginDragNativeItem(t,e){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(t,e){const n=jt[t];if(!n)throw new Error(`native type ${t} has no configuration`);const r=new Ot(n);return r.loadDataTransfer(e),r}(t,e),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t,this.mouseMoveTimeoutTimer=setTimeout(()=>{var t;return null===(t=this.rootElement)||void 0===t?void 0:t.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}clearCurrentDragSourceNode(){var t;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(t=this.window)||void 0===t||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}handleDragStart(t,e){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(e))}handleDragEnter(t,e){this.dragEnterTargetIds.unshift(e)}handleDragOver(t,e){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(e)}handleDrop(t,e){this.dropTargetIds.unshift(e)}constructor(t,e,n){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.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=t=>{const e=this.sourceNodes.get(t);return e&&zt(e)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=t=>Boolean(t&&this.document&&this.document.body&&this.document.body.contains(t)),this.endDragIfSourceWasRemovedFromDOM=()=>{const t=this.currentDragSourceNode;null==t||this.isNodeInDocument(t)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=t=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(t||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=t=>{if(t.defaultPrevented)return;const{dragStartSourceIds:e}=this;this.dragStartSourceIds=null;const n=Bt(t);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(e||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});const{dataTransfer:r}=t,o=Nt(r);if(this.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){const t=this.monitor.getSourceId(),e=this.sourceNodes.get(t),o=this.sourcePreviewNodes.get(t)||e;if(o){const{anchorX:t,anchorY:i,offsetX:a,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),c=function(t,e,n,r,o){const i=function(t){var e;return"IMG"===t.nodeName&&(Lt()||!(null===(e=document.documentElement)||void 0===e?void 0:e.contains(t)))}(e),a=zt(i?t:e),s={x:n.x-a.x,y:n.y-a.y},{offsetWidth:c,offsetHeight:u}=t,{anchorX:l,anchorY:p}=r,{dragPreviewWidth:f,dragPreviewHeight:d}=function(t,e,n,r){let o=t?e.width:n,i=t?e.height:r;return Pt()&&t&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(i,e,c,u),{offsetX:h,offsetY:g}=o,m=0===g||g;return{x:0===h||h?h:new Rt([0,.5,1],[s.x,s.x/c*f,s.x+f-c]).interpolate(l),y:m?g:(()=>{let t=new Rt([0,.5,1],[s.y,s.y/u*d,s.y+d-u]).interpolate(p);return Pt()&&i&&(t+=(window.devicePixelRatio-1)*d),t})()}}(e,o,n,{anchorX:t,anchorY:i},{offsetX:a,offsetY:s});r.setDragImage(o,c.x,c.y)}}try{null==r||r.setData("application/json",{})}catch(t){}this.setCurrentDragSourceNode(t.target);const{captureDraggingState:e}=this.getCurrentSourcePreviewNodeOptions();e?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(o)this.beginDragNativeItem(o);else{if(r&&!r.types&&(t.target&&!t.target.hasAttribute||!t.target.hasAttribute("draggable")))return;t.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=t=>{var e;if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()&&(null===(e=this.currentNativeSource)||void 0===e||e.loadDataTransfer(t.dataTransfer)),!this.enterLeaveCounter.enter(t.target)||this.monitor.isDragging())return;const{dataTransfer:n}=t,r=Nt(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=t=>{const{dragEnterTargetIds:e}=this;this.dragEnterTargetIds=[],this.monitor.isDragging()&&(this.altKeyPressed=t.altKey,e.length>0&&this.actions.hover(e,{clientOffset:Bt(t)}),e.some(t=>this.monitor.canDropOnTarget(t))&&(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=this.getCurrentDropEffect())))},this.handleTopDragOverCapture=t=>{var e;this.dragOverTargetIds=[],this.isDraggingNativeItem()&&(null===(e=this.currentNativeSource)||void 0===e||e.loadDataTransfer(t.dataTransfer))},this.handleTopDragOver=t=>{const{dragOverTargetIds:e}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return t.preventDefault(),void(t.dataTransfer&&(t.dataTransfer.dropEffect="none"));this.altKeyPressed=t.altKey,this.lastClientOffset=Bt(t),this.scheduleHover(e),(e||[]).some(t=>this.monitor.canDropOnTarget(t))?(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?t.preventDefault():(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=t=>{this.isDraggingNativeItem()&&t.preventDefault(),this.enterLeaveCounter.leave(t.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=t=>{var e;this.dropTargetIds=[],this.isDraggingNativeItem()?(t.preventDefault(),null===(e=this.currentNativeSource)||void 0===e||e.loadDataTransfer(t.dataTransfer)):Nt(t.dataTransfer)&&t.preventDefault(),this.enterLeaveCounter.reset()},this.handleTopDrop=t=>{const{dropTargetIds:e}=this;this.dropTargetIds=[],this.actions.hover(e,{clientOffset:Bt(t)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=t=>{const e=t.target;"function"==typeof e.dragDrop&&("INPUT"===e.tagName||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable||(t.preventDefault(),e.dragDrop()))},this.options=new Ft(e,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new Mt(this.isNodeInDocument)}}const Vt=function(t,e,n){return new Kt(t,e,n)};var Yt=a(1635),qt=a(7683),Wt=a(4184),Gt=a(4293),Qt=a(2587),Zt=a(9160);function Jt(t,e){return Object.keys(t).reduce(function(n,r){return n[r]=(0,Yt.Cl)({timeZone:e},t[r]),n},{})}function $t(t,e){return Object.keys((0,Yt.Cl)((0,Yt.Cl)({},t),e)).reduce(function(n,r){return n[r]=(0,Yt.Cl)((0,Yt.Cl)({},t[r]||{}),e[r]||{}),n},{})}function Xt(t,e){if(!e)return t;var n=Qt.S.formats;return(0,Yt.Cl)((0,Yt.Cl)((0,Yt.Cl)({},n),t),{date:$t(Jt(n.date,e),Jt(t.date||{},e)),time:$t(Jt(n.time,e),Jt(t.time||{},e))})}var te=function(t,e,n,r,o){var i=t.locale,a=t.formats,s=t.messages,c=t.defaultLocale,u=t.defaultFormats,l=t.fallbackOnEmptyString,p=t.onError,f=t.timeZone,d=t.defaultRichTextElements;void 0===n&&(n={id:""});var h=n.id,g=n.defaultMessage;(0,qt.V1)(!!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.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.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===Gt.ZE.literal)return y[0].value;if(!r&&y&&"string"==typeof y&&!d)return y.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=(0,Yt.Cl)((0,Yt.Cl)({},d),r||{}),a=Xt(a,f),u=Xt(u,f),!y){if(!1===l&&""===y)return y;if((!g||i&&i.toLowerCase()!==c.toLowerCase())&&p(new Zt.sb(n,i)),g)try{return e.getMessageFormat(g,c,u,o).format(r)}catch(t){return p(new Zt.Ho('Error formatting default message for: "'.concat(m,'", rendering default message verbatim'),i,n,t)),"string"==typeof g?g:m}return m}try{return e.getMessageFormat(y,i,a,(0,Yt.Cl)({formatters:e},o||{})).format(r)}catch(t){p(new Zt.Ho('Error formatting message: "'.concat(m,'", using ').concat(g?"default message":"id"," as fallback."),i,n,t))}if(g)try{return e.getMessageFormat(g,c,u,o).format(r)}catch(t){p(new Zt.Ho('Error formatting the default message for: "'.concat(m,'", rendering message verbatim'),i,n,t))}return"string"==typeof y?y:"string"==typeof g?g:m},ee=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function ne(t,e,n,r){var o=t.locale,i=t.formats,a=t.onError,s=t.timeZone;void 0===r&&(r={});var c=r.format,u=(0,Yt.Cl)((0,Yt.Cl)({},s&&{timeZone:s}),c&&(0,qt.F3)(i,e,c,a)),l=(0,qt.J9)(r,ee,u);return"time"!==e||l.hour||l.minute||l.second||l.timeStyle||l.dateStyle||(l=(0,Yt.Cl)((0,Yt.Cl)({},l),{hour:"numeric",minute:"numeric"})),n(o,l)}function re(t,e){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 ne(t,"date",e,a).format(s)}catch(e){t.onError(new Zt.pg("Error formatting date.",t.locale,e))}return String(s)}function oe(t,e){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 ne(t,"time",e,a).format(s)}catch(e){t.onError(new Zt.pg("Error formatting time.",t.locale,e))}return String(s)}function ie(t,e){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="string"==typeof o?new Date(o||0):o,u="string"==typeof i?new Date(i||0):i;try{return ne(t,"dateTimeRange",e,s).formatRange(c,u)}catch(e){t.onError(new Zt.pg("Error formatting date time range.",t.locale,e))}return String(c)}function ae(t,e){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 ne(t,"date",e,a).formatToParts(s)}catch(e){t.onError(new Zt.pg("Error formatting date.",t.locale,e))}return[]}function se(t,e){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 ne(t,"time",e,a).formatToParts(s)}catch(e){t.onError(new Zt.pg("Error formatting time.",t.locale,e))}return[]}var ce=a(1732),ue=["style","type","fallback","languageDisplay"];function le(t,e,n,r){var o=t.locale,i=t.onError;Intl.DisplayNames||i(new ce.IF('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',ce.O4.MISSING_INTL_API));var a=(0,qt.J9)(r,ue);try{return e(o,a).of(n)}catch(t){i(new Zt.pg("Error formatting display name.",o,t))}}var pe=["type","style"],fe=Date.now();function de(t,e,n,r){void 0===r&&(r={});var o=he(t,e,n,r).reduce(function(t,e){var n=e.value;return"string"!=typeof n?t.push(n):"string"==typeof t[t.length-1]?t[t.length-1]+=n:t.push(n),t},[]);return 1===o.length?o[0]:0===o.length?"":o}function he(t,e,n,r){var o=t.locale,i=t.onError;void 0===r&&(r={}),Intl.ListFormat||i(new ce.IF('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',ce.O4.MISSING_INTL_API));var a=(0,qt.J9)(r,pe);try{var s={},c=n.map(function(t,e){if("object"==typeof t){var n=function(t){return"".concat(fe,"_").concat(t,"_").concat(fe)}(e);return s[n]=t,n}return String(t)});return e(o,a).formatToParts(c).map(function(t){return"literal"===t.type?t:(0,Yt.Cl)((0,Yt.Cl)({},t),{value:s[t.value]||t.value})})}catch(t){i(new Zt.pg("Error formatting list.",o,t))}return n}var ge=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function me(t,e,n){var r=t.locale,o=t.formats,i=t.onError;void 0===n&&(n={});var a=n.format,s=a&&(0,qt.F3)(o,"number",a,i)||{};return e(r,(0,qt.J9)(n,ge,s))}function ye(t,e,n,r){void 0===r&&(r={});try{return me(t,e,r).format(n)}catch(e){t.onError(new Zt.pg("Error formatting number.",t.locale,e))}return String(n)}function ve(t,e,n,r){void 0===r&&(r={});try{return me(t,e,r).formatToParts(n)}catch(e){t.onError(new Zt.pg("Error formatting number.",t.locale,e))}return[]}var be=["type"];function we(t,e,n,r){var o=t.locale,i=t.onError;void 0===r&&(r={}),Intl.PluralRules||i(new ce.IF('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ce.O4.MISSING_INTL_API));var a=(0,qt.J9)(r,be);try{return e(o,a).select(n)}catch(t){i(new Zt.pg("Error formatting plural.",o,t))}return"other"}var _e=["numeric","style"];function Ee(t,e,n,r,o){void 0===o&&(o={}),r||(r="second"),Intl.RelativeTimeFormat||t.onError(new ce.IF('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',ce.O4.MISSING_INTL_API));try{return function(t,e,n){var r=t.locale,o=t.formats,i=t.onError;void 0===n&&(n={});var a=n.format,s=!!a&&(0,qt.F3)(o,"relative",a,i)||{};return e(r,(0,qt.J9)(n,_e,s))}(t,e,o).format(n,r)}catch(e){t.onError(new Zt.pg("Error formatting relative time.",t.locale,e))}return String(n)}var Se=a(1071);function ke(t){return t?Object.keys(t).reduce(function(e,n){var r=t[n];return e[n]=(0,Se.RK)(r)?(0,Wt.yU)(r):r,e},{}):t}var Ce=function(t,e,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var a=ke(r),s=te.apply(void 0,(0,Yt.fX)([t,e,n,a],o,!1));return Array.isArray(s)?(0,Wt.SP)(s):s},Me=function(t,e){var n=t.defaultRichTextElements,r=(0,Yt.Tt)(t,["defaultRichTextElements"]),o=ke(n),i=function(t,e){var n=(0,qt.GT)(e),r=(0,Yt.Cl)((0,Yt.Cl)({},qt.JF),t),o=r.locale,i=r.defaultLocale,a=r.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&a?a(new Zt.hr('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&a&&a(new Zt.hr('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new Zt.uo('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),function(t){var e;t.onWarn&&t.defaultRichTextElements&&"string"==typeof((e=t.messages||{})?e[Object.keys(e)[0]]:void 0)&&t.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.github.io/docs/getting-started/message-distribution')}(r),(0,Yt.Cl)((0,Yt.Cl)({},r),{formatters:n,formatNumber:ye.bind(null,r,n.getNumberFormat),formatNumberToParts:ve.bind(null,r,n.getNumberFormat),formatRelativeTime:Ee.bind(null,r,n.getRelativeTimeFormat),formatDate:re.bind(null,r,n.getDateTimeFormat),formatDateToParts:ae.bind(null,r,n.getDateTimeFormat),formatTime:oe.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:ie.bind(null,r,n.getDateTimeFormat),formatTimeToParts:se.bind(null,r,n.getDateTimeFormat),formatPlural:we.bind(null,r,n.getPluralRules),formatMessage:te.bind(null,r,n),$t:te.bind(null,r,n),formatList:de.bind(null,r,n.getListFormat),formatListToParts:he.bind(null,r,n.getListFormat),formatDisplayName:le.bind(null,r,n.getDisplayNames)})}((0,Yt.Cl)((0,Yt.Cl)((0,Yt.Cl)({},Wt.JF),r),{defaultRichTextElements:o}),e),a={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};return(0,Yt.Cl)((0,Yt.Cl)({},i),{formatMessage:Ce.bind(null,a,i.formatters),$t:Ce.bind(null,a,i.formatters)})},Oe=a(8798);function xe(t){return{locale:t.locale,timeZone:t.timeZone,fallbackOnEmptyString:t.fallbackOnEmptyString,formats:t.formats,textComponent:t.textComponent,messages:t.messages,defaultLocale:t.defaultLocale,defaultFormats:t.defaultFormats,onError:t.onError,onWarn:t.onWarn,wrapRichTextChunksInFragment:t.wrapRichTextChunksInFragment,defaultRichTextElements:t.defaultRichTextElements}}var De=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache=(0,qt.MT)(),e.state={cache:e.cache,intl:Me(xe(e.props),e.cache),prevConfig:xe(e.props)},e}return(0,Yt.C6)(e,t),e.getDerivedStateFromProps=function(t,e){var n=e.prevConfig,r=e.cache,o=xe(t);return(0,Wt.bN)(n,o)?null:{intl:Me(o,r),prevConfig:o}},e.prototype.render=function(){return(0,Wt.HM)(this.state.intl),u.createElement(Oe.Kq,{value:this.state.intl},this.props.children)},e.displayName="IntlProvider",e.defaultProps=Wt.JF,e}(u.PureComponent);const Te=De;var Ae=a(5458),Ie=a(4467),je=a(6033),Ne=a(6894),Le=a.n(Ne);var Pe,Re,ze,Be=a(968),Fe=new class{constructor(t){const e=this;e.actions={},e.mutations={},e.state={},e.status="resting",e.callbacks=[],t.hasOwnProperty("actions")&&(e.actions=t.actions),t.hasOwnProperty("mutations")&&(e.mutations=t.mutations),e.state=new Proxy(t.initialState||{},{set:(t,n,r)=>(t[n]=r,e.processCallbacks(e.state),e.status="resting",!0)})}dispatch(t,e){const n=this;return"function"!=typeof n.actions[t]?(console.error(`Action "${t}" doesn't exist.`),!1):(n.status="action",n.actions[t](n,e))}commit(t,e){const n=this;if("function"!=typeof n.mutations[t])return console.error(`Mutation "${t}" doesn't exist`),!1;n.status="mutation";let r=n.mutations[t](n.state,e);return n.state=r,!0}processCallbacks(t){return!!this.callbacks.length&&(this.callbacks.forEach(e=>e(t)),!0)}subscribe(t){return"function"!=typeof t?(console.error("You can only subscribe to Store changes with a valid function"),!1):(this.callbacks.push(t),!0)}}({actions:{setData:function(t,e,n){t.commit("setData",e),n&&this.save(e)},load:function(t,e){var n=this,r=e.loadUrl,o=e.saveUrl,i=e.data,a=e.saveAlways;Pe=o;var s=a||void 0===a;t.commit("setSaveAlways",s),ze?ze().then(function(e){i&&i.length>0&&0===e.length&&i.forEach(function(t){return e.push(t)}),n.setData(t,e)}):r?(0,Be.J)(r).then(function(e){i&&i.length>0&&0===e.length&&i.forEach(function(t){return e.push(t)}),n.setData(t,e)}):this.setData(t,i)},create:function(t,e){var n=t.state,r=n.data,o=n.saveAlways;r.push(e),this.setData(t,r,o)},delete:function(t,e){var n=t.state,r=n.data,o=n.saveAlways;r.splice(r.indexOf(e),1),this.setData(t,r,o)},deleteLastItem:function(t){var e=t.state.lastItem;e&&(this.delete(t,e),t.commit("setLastItem",null))},resetLastItem:function(t){t.state.lastItem&&t.commit("setLastItem",null)},post:function(t){var e=t.state.data;this.setData(t,e,!0)},updateOrder:function(t,e){var n=t.state.saveAlways,r=e.filter(function(t){return t&&!t.parentId});e.filter(function(t){return t&&t.parentId}).forEach(function(t){return r.push(t)}),this.setData(t,r,n)},insertItem:function(t,e){t.commit("setLastItem",e.isContainer?null:e)},save:function(t){Re?Re({task_data:t}):Pe&&(0,Be.b)(Pe,{task_data:t})}},mutations:{setData:function(t,e){return t.data=e,t},setSaveAlways:function(t,e){return t.saveAlways=e,t},setLastItem:function(t,e){return t.lastItem=e,t}},initialState:{data:[],saveAlways:!0,lastItem:null}});Fe.setExternalHandler=function(t,e){ze=t,Re=e};const Ue=Fe;var He=a(467),Ke=a(296),Ve=a(4756),Ye=a.n(Ve);const qe=function(t){var e=l().useState(null),n=(0,Ke.A)(e,2),r=n[0],o=n[1];if(l().useEffect(function(){var t=function(){var t=(0,He.A)(Ye().mark(function t(){var e;return Ye().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,a.e(845).then(a.bind(a,845));case 1:e=t.sent,o(function(){return e.default});case 2:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}();t()},[]),!r)return l().createElement("div",null,"Loading...");var i=r;return l().createElement(i,t)};var We=a(8587);function Ge(t,e){if(null==t)return{};var n,r,o=(0,We.A)(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var Qe=a(5556),Ze=a.n(Qe),Je=a(2017);const $e="undefined"!=typeof window?u.useLayoutEffect:u.useEffect;function Xe(t,e,n){const[r,o]=(0,u.useState)(()=>e(t)),i=(0,u.useCallback)(()=>{const i=e(t);Je(r,i)||(o(i),n&&n())},[r,t,n]);return $e(i),[r,i]}function tn(t,e,n){return function(t,e){const[r,o]=Xe(t,e,()=>n.reconnect());return $e(function(){const e=t.getHandlerId();if(null!=e)return t.subscribeToStateChange(o,{handlerIds:[e]})},[t,o]),r}(e,t||(()=>({})))}function en(t,e){const n=[...e||[]];return null==e&&"function"!=typeof t&&n.push(t),(0,u.useMemo)(()=>"function"==typeof t?t():t,n)}function nn(t){return(0,u.useMemo)(()=>t.hooks.dragSource(),[t])}function rn(t){return(0,u.useMemo)(()=>t.hooks.dragPreview(),[t])}function on(t,e,n,r){let o=n?n.call(r,t,e):void 0;if(void 0!==o)return!!o;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;const i=Object.keys(t),a=Object.keys(e);if(i.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(e);for(let a=0;a<i.length;a++){const c=i[a];if(!s(c))return!1;const u=t[c],l=e[c];if(o=n?n.call(r,u,l,c):void 0,!1===o||void 0===o&&u!==l)return!1}return!0}function an(t){return null!==t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function sn(t){const e={};return Object.keys(t).forEach(n=>{const r=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{const t=function(t){return(e=null,n=null)=>{if(!(0,u.isValidElement)(e)){const r=e;return t(r,n),r}const r=e;!function(t){if("string"==typeof t.type)return;const e=t.type.displayName||t.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e} into a <div>, or turn it into a drag source or a drop target itself.`)}(r);const o=n?e=>t(e,n):t;return function(t,e){const n=t.ref;return b("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://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?(0,u.cloneElement)(t,{ref:t=>{cn(n,t),cn(e,t)}}):(0,u.cloneElement)(t,{ref:e})}(r,o)}}(r);e[n]=()=>t}}),e}function cn(t,e){"function"==typeof t?t(e):t.current=e}class un{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,e=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return e&&this.disconnectDragSource(),this.handlerId?t?(e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),e):(this.lastConnectedDragSource=t,e):e}reconnectDragPreview(t=!1){const e=this.dragPreview,n=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(e?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.lastConnectedDragPreview=e)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!on(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!on(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=sn({dragSource:(t,e)=>{this.clearDragSource(),this.dragSourceOptions=e||null,an(t)?this.dragSourceRef=t:this.dragSourceNode=t,this.reconnectDragSource()},dragPreview:(t,e)=>{this.clearDragPreview(),this.dragPreviewOptions=e||null,an(t)?this.dragPreviewRef=t:this.dragPreviewNode=t,this.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}}function ln(){const{dragDropManager:t}=(0,u.useContext)(wt);return b(null!=t,"Expected drag drop context"),t}let pn=!1,fn=!1;class dn{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){b(!pn,"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 pn=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{pn=!1}}isDragging(){if(!this.sourceId)return!1;b(!fn,"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 fn=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{fn=!1}}subscribeToStateChange(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,e){return this.internalMonitor.isOverTarget(t,e)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}class hn{beginDrag(){const t=this.spec,e=this.monitor;let n=null;return n="object"==typeof t.item?t.item:"function"==typeof t.item?t.item(e):{},null!=n?n:null}canDrag(){const t=this.spec,e=this.monitor;return"boolean"==typeof t.canDrag?t.canDrag:"function"!=typeof t.canDrag||t.canDrag(e)}isDragging(t,e){const n=this.spec,r=this.monitor,{isDragging:o}=n;return o?o(r):e===t.getSourceId()}endDrag(){const t=this.spec,e=this.monitor,n=this.connector,{end:r}=t;r&&r(e.getItem(),e),n.reconnect()}constructor(t,e,n){this.spec=t,this.monitor=e,this.connector=n}}function gn(t,e){const n=en(t,e);b(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=function(){const t=ln();return(0,u.useMemo)(()=>new dn(t),[t])}(),o=function(t,e){const n=ln(),r=(0,u.useMemo)(()=>new un(n.getBackend()),[n]);return $e(()=>(r.dragSourceOptions=t||null,r.reconnect(),()=>r.disconnectDragSource()),[r,t]),$e(()=>(r.dragPreviewOptions=e||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,e]),r}(n.options,n.previewOptions);return function(t,e,n){const r=ln(),o=function(t,e,n){const r=(0,u.useMemo)(()=>new hn(t,e,n),[e,n]);return(0,u.useEffect)(()=>{r.spec=t},[t]),r}(t,e,n),i=function(t){return(0,u.useMemo)(()=>{const e=t.type;return b(null!=e,"spec.type must be defined"),e},[t])}(t);$e(function(){if(null!=i){const[t,a]=function(t,e,n){const r=n.getRegistry(),o=r.addSource(t,e);return[o,()=>r.removeSource(o)]}(i,o,r);return e.receiveHandlerId(t),n.receiveHandlerId(t),a}},[r,e,n,o,i])}(n,r,o),[tn(n.collect,r,o),nn(o),rn(o)]}function mn(t){return(0,u.useMemo)(()=>t.hooks.dropTarget(),[t])}class yn{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const e=this.dropTarget;this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=e,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,e,this.dropTargetOptions)):this.lastConnectedDropTarget=e)}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!on(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=sn({dropTarget:(t,e)=>{this.clearDropTarget(),this.dropTargetOptions=e,an(t)?this.dropTargetRef=t:this.dropTargetNode=t,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}let vn=!1;class bn{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}canDrop(){if(!this.targetId)return!1;b(!vn,"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 vn=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{vn=!1}}isOver(t){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}class wn{canDrop(){const t=this.spec,e=this.monitor;return!t.canDrop||t.canDrop(e.getItem(),e)}hover(){const t=this.spec,e=this.monitor;t.hover&&t.hover(e.getItem(),e)}drop(){const t=this.spec,e=this.monitor;if(t.drop)return t.drop(e.getItem(),e)}constructor(t,e){this.spec=t,this.monitor=e}}function _n(t,e){const n=en(t,e),r=function(){const t=ln();return(0,u.useMemo)(()=>new bn(t),[t])}(),o=function(t){const e=ln(),n=(0,u.useMemo)(()=>new yn(e.getBackend()),[e]);return $e(()=>(n.dropTargetOptions=t||null,n.reconnect(),()=>n.disconnectDropTarget()),[t]),n}(n.options);return function(t,e,n){const r=ln(),o=function(t,e){const n=(0,u.useMemo)(()=>new wn(t,e),[e]);return(0,u.useEffect)(()=>{n.spec=t},[t]),n}(t,e),i=function(t){const{accept:e}=t;return(0,u.useMemo)(()=>(b(null!=t.accept,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}(t);$e(function(){const[t,a]=function(t,e,n){const r=n.getRegistry(),o=r.addTarget(t,e);return[o,()=>r.removeTarget(o)]}(i,o,r);return e.receiveHandlerId(t),n.receiveHandlerId(t),a},[r,e,o,n,i.map(t=>t.toString()).join("|")])}(n,r,o),[tn(n.collect,r,o),mn(o)]}const En="card",Sn="box";var kn=["index","id","moveCard","seq"];function Cn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Mn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Cn(Object(n),!0).forEach(function(e){(0,Ie.A)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cn(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var On={border:"1px dashed gray",padding:"0.5rem 1rem",marginBottom:".5rem",backgroundColor:"white",cursor:"pointer"},xn=function(t){var n=t.index,r=t.id,o=t.moveCard,i=t.seq,a=void 0===i?-1:i,s=Ge(t,kn),c=function(t){var e=(0,u.useRef)(null),n=gn({type:En,item:function(){return{itemType:En,id:t.id,index:t.index}},collect:function(t){return{isDragging:t.isDragging()}}}),r=(0,Ke.A)(n,3),o=r[0].isDragging,i=r[1],a=r[2],s=_n({accept:[En,Sn],drop:function(e){if(!(t.data&&t.data.isContainer||e.itemType===En)){var n=t.index,r=e.index;e.data&&"function"==typeof e.setAsChild&&-1===r&&t.insertCard(e,n,e.id)}},hover:function(n,r){var o,i;if((n.itemType!==Sn||-1!==n.index)&&(null===(o=t.data)||void 0===o||!o.isContainer||null!==(i=n.data)&&void 0!==i&&i.isContainer)){var a=n.index,s=t.index;if(a!==s){if(-1===a){if(t.data&&t.data.isContainer)return;return n.index=s,void t.insertCard(n.onCreate(n.data),s)}if(e.current){var c=e.current.getBoundingClientRect(),u=(c.bottom-c.top)/2,l=r.getClientOffset();if(l){var p=l.y-c.top;a<s&&p<u||a>s&&p>u||(t.moveCard(a,s),n.index=s)}}}}}}),c=(0,Ke.A)(s,2)[1];return{ref:function(t){e.current=t,c(t),i(t)},previewRef:a,isDragging:o}}(t),p=c.ref,f=c.previewRef,d=c.isDragging?0:1,h=t.component;return l().createElement("div",{ref:f},l().createElement("div",{ref:p},l().createElement(h,(0,e.A)({},s,{index:n,id:r,moveCard:o,seq:a,style:Mn(Mn({},On),{},{opacity:d})}))))};function Dn(t){return function(n){return l().createElement(xn,(0,e.A)({},n,{component:t}))}}function Tn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Tn=function(){return!!t})()}xn.propTypes={component:Ze().elementType.isRequired,index:Ze().number.isRequired,isDragging:Ze().bool,id:Ze().any.isRequired,moveCard:Ze().func.isRequired,seq:Ze().number},xn.defaultProps={seq:-1};var An=function(t){function e(){return(0,n.A)(this,e),t=this,r=e,a=arguments,r=(0,i.A)(r),(0,o.A)(t,Tn()?Reflect.construct(r,a||[],(0,i.A)(t).constructor):r.apply(t,a));var t,r,a}return(0,c.A)(e,t),(0,r.A)(e,[{key:"render",value:function(){var t=this.props.intl,e=this.props.show?"form-place-holder":"form-place-holder-hidden",n=this.props.show?"Dropzone"===this.props.text?t.formatMessage({id:"drop-zone"}):this.props.text:"";return l().createElement("div",{className:e},l().createElement("div",null,n))}}])}(l().Component);const In=(0,Oe.Ay)(An);An.propTypes={text:Ze().string,show:Ze().bool},An.defaultProps={text:"Dropzone",show:!1};var jn=a(328),Nn=a.n(jn),Ln=a(4213);function Pn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Rn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Pn(Object(n),!0).forEach(function(e){(0,Ie.A)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pn(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var zn=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Bn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Bn=function(){return!!t})()}function Fn(t){var e=Bn();return function(){var n,r=(0,i.A)(t);if(e){var a=(0,i.A)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,o.A)(this,n)}}var Un=function(){function t(t){var e=this;this._insertTag=function(t){var n;n=0===e.tags.length?e.insertionPoint?e.insertionPoint.nextSibling:e.prepend?e.container.firstChild:e.before:e.tags[e.tags.length-1].nextSibling,e.container.insertBefore(t,n),e.tags.push(t)},this.isSpeedy=void 0===t.speedy||t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(t){t.forEach(this._insertTag)},e.insert=function(t){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}(this));var e=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(e);try{n.insertRule(t,n.cssRules.length)}catch(t){}}else e.appendChild(document.createTextNode(t));this.ctr++},e.flush=function(){this.tags.forEach(function(t){var e;return null==(e=t.parentNode)?void 0:e.removeChild(t)}),this.tags=[],this.ctr=0},t}(),Hn=Math.abs,Kn=String.fromCharCode,Vn=Object.assign;function Yn(t){return t.trim()}function qn(t,e,n){return t.replace(e,n)}function Wn(t,e){return t.indexOf(e)}function Gn(t,e){return 0|t.charCodeAt(e)}function Qn(t,e,n){return t.slice(e,n)}function Zn(t){return t.length}function Jn(t){return t.length}function $n(t,e){return e.push(t),t}var Xn=1,tr=1,er=0,nr=0,rr=0,or="";function ir(t,e,n,r,o,i,a){return{value:t,root:e,parent:n,type:r,props:o,children:i,line:Xn,column:tr,length:a,return:""}}function ar(t,e){return Vn(ir("",null,null,"",null,null,0),t,{length:-t.length},e)}function sr(){return rr=nr>0?Gn(or,--nr):0,tr--,10===rr&&(tr=1,Xn--),rr}function cr(){return rr=nr<er?Gn(or,nr++):0,tr++,10===rr&&(tr=1,Xn++),rr}function ur(){return Gn(or,nr)}function lr(){return nr}function pr(t,e){return Qn(or,t,e)}function fr(t){switch(t){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 dr(t){return Xn=tr=1,er=Zn(or=t),nr=0,[]}function hr(t){return or="",t}function gr(t){return Yn(pr(nr-1,vr(91===t?t+2:40===t?t+1:t)))}function mr(t){for(;(rr=ur())&&rr<33;)cr();return fr(t)>2||fr(rr)>3?"":" "}function yr(t,e){for(;--e&&cr()&&!(rr<48||rr>102||rr>57&&rr<65||rr>70&&rr<97););return pr(t,lr()+(e<6&&32==ur()&&32==cr()))}function vr(t){for(;cr();)switch(rr){case t:return nr;case 34:case 39:34!==t&&39!==t&&vr(rr);break;case 40:41===t&&vr(t);break;case 92:cr()}return nr}function br(t,e){for(;cr()&&t+rr!==57&&(t+rr!==84||47!==ur()););return"/*"+pr(e,nr-1)+"*"+Kn(47===t?t:cr())}function wr(t){for(;!fr(ur());)cr();return pr(t,nr)}var _r="-ms-",Er="-moz-",Sr="-webkit-",kr="comm",Cr="rule",Mr="decl",Or="@keyframes";function xr(t,e){for(var n="",r=Jn(t),o=0;o<r;o++)n+=e(t[o],o,t,e)||"";return n}function Dr(t,e,n,r){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case Mr:return t.return=t.return||t.value;case kr:return"";case Or:return t.return=t.value+"{"+xr(t.children,r)+"}";case Cr:t.value=t.props.join(",")}return Zn(n=xr(t.children,r))?t.return=t.value+"{"+n+"}":""}function Tr(t){return hr(Ar("",null,null,null,[""],t=dr(t),0,[0],t))}function Ar(t,e,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,_=i,E=r,S=b;m;)switch(h=v,v=cr()){case 40:if(108!=h&&58==Gn(S,p-1)){-1!=Wn(S+=qn(gr(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:S+=gr(v);break;case 9:case 10:case 13:case 32:S+=mr(h);break;case 92:S+=yr(lr()-1,7);continue;case 47:switch(ur()){case 42:case 47:$n(jr(br(cr(),lr()),e,n),c);break;default:S+="/"}break;case 123*g:s[u++]=Zn(S)*y;case 125*g:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+l:-1==y&&(S=qn(S,/\f/g,"")),d>0&&Zn(S)-p&&$n(d>32?Nr(S+";",r,n,p-1):Nr(qn(S," ","")+";",r,n,p-2),c);break;case 59:S+=";";default:if($n(E=Ir(S,e,n,u,l,o,s,b,w=[],_=[],p),i),123===v)if(0===l)Ar(S,e,E,E,w,i,p,s,_);else switch(99===f&&110===Gn(S,3)?100:f){case 100:case 108:case 109:case 115:Ar(t,E,E,r&&$n(Ir(t,E,E,0,0,o,s,b,o,w=[],p),_),o,_,p,s,r?w:_);break;default:Ar(S,E,E,E,[""],_,0,s,_)}}u=l=d=0,g=y=1,b=S="",p=a;break;case 58:p=1+Zn(S),d=h;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==sr())continue;switch(S+=Kn(v),v*g){case 38:y=l>0?1:(S+="\f",-1);break;case 44:s[u++]=(Zn(S)-1)*y,y=1;break;case 64:45===ur()&&(S+=gr(cr())),f=ur(),l=p=Zn(b=S+=wr(lr())),v++;break;case 45:45===h&&2==Zn(S)&&(g=0)}}return i}function Ir(t,e,n,r,o,i,a,s,c,u,l){for(var p=o-1,f=0===o?i:[""],d=Jn(f),h=0,g=0,m=0;h<r;++h)for(var y=0,v=Qn(t,p+1,p=Hn(g=a[h])),b=t;y<d;++y)(b=Yn(g>0?f[y]+" "+v:qn(v,/&\f/g,f[y])))&&(c[m++]=b);return ir(t,e,n,0===o?Cr:s,c,u,l)}function jr(t,e,n){return ir(t,e,n,kr,Kn(rr),Qn(t,2,-2),0)}function Nr(t,e,n,r){return ir(t,e,n,Mr,Qn(t,0,r),Qn(t,r+1,-1),r)}var Lr=function(t,e,n){for(var r=0,o=0;r=o,o=ur(),38===r&&12===o&&(e[n]=1),!fr(o);)cr();return pr(t,nr)},Pr=new WeakMap,Rr=function(t){if("rule"===t.type&&t.parent&&!(t.length<1)){for(var e=t.value,n=t.parent,r=t.column===n.column&&t.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==t.props.length||58===e.charCodeAt(0)||Pr.get(n))&&!r){Pr.set(t,!0);for(var o=[],i=function(t,e){return hr(function(t,e){var n=-1,r=44;do{switch(fr(r)){case 0:38===r&&12===ur()&&(e[n]=1),t[n]+=Lr(nr-1,e,n);break;case 2:t[n]+=gr(r);break;case 4:if(44===r){t[++n]=58===ur()?"&\f":"",e[n]=t[n].length;break}default:t[n]+=Kn(r)}}while(r=cr());return t}(dr(t),e))}(e,o),a=n.props,s=0,c=0;s<i.length;s++)for(var u=0;u<a.length;u++,c++)t.props[c]=o[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+i[s]}}},zr=function(t){if("decl"===t.type){var e=t.value;108===e.charCodeAt(0)&&98===e.charCodeAt(2)&&(t.return="",t.value="")}};function Br(t,e){switch(function(t,e){return 45^Gn(t,0)?(((e<<2^Gn(t,0))<<2^Gn(t,1))<<2^Gn(t,2))<<2^Gn(t,3):0}(t,e)){case 5103:return Sr+"print-"+t+t;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 Sr+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Sr+t+Er+t+_r+t+t;case 6828:case 4268:return Sr+t+_r+t+t;case 6165:return Sr+t+_r+"flex-"+t+t;case 5187:return Sr+t+qn(t,/(\w+).+(:[^]+)/,Sr+"box-$1$2"+_r+"flex-$1$2")+t;case 5443:return Sr+t+_r+"flex-item-"+qn(t,/flex-|-self/,"")+t;case 4675:return Sr+t+_r+"flex-line-pack"+qn(t,/align-content|flex-|-self/,"")+t;case 5548:return Sr+t+_r+qn(t,"shrink","negative")+t;case 5292:return Sr+t+_r+qn(t,"basis","preferred-size")+t;case 6060:return Sr+"box-"+qn(t,"-grow","")+Sr+t+_r+qn(t,"grow","positive")+t;case 4554:return Sr+qn(t,/([^-])(transform)/g,"$1"+Sr+"$2")+t;case 6187:return qn(qn(qn(t,/(zoom-|grab)/,Sr+"$1"),/(image-set)/,Sr+"$1"),t,"")+t;case 5495:case 3959:return qn(t,/(image-set\([^]*)/,Sr+"$1$`$1");case 4968:return qn(qn(t,/(.+:)(flex-)?(.*)/,Sr+"box-pack:$3"+_r+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Sr+t+t;case 4095:case 3583:case 4068:case 2532:return qn(t,/(.+)-inline(.+)/,Sr+"$1$2")+t;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(Zn(t)-1-e>6)switch(Gn(t,e+1)){case 109:if(45!==Gn(t,e+4))break;case 102:return qn(t,/(.+:)(.+)-([^]+)/,"$1"+Sr+"$2-$3$1"+Er+(108==Gn(t,e+3)?"$3":"$2-$3"))+t;case 115:return~Wn(t,"stretch")?Br(qn(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(115!==Gn(t,e+1))break;case 6444:switch(Gn(t,Zn(t)-3-(~Wn(t,"!important")&&10))){case 107:return qn(t,":",":"+Sr)+t;case 101:return qn(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Sr+(45===Gn(t,14)?"inline-":"")+"box$3$1"+Sr+"$2$3$1"+_r+"$2box$3")+t}break;case 5936:switch(Gn(t,e+11)){case 114:return Sr+t+_r+qn(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Sr+t+_r+qn(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Sr+t+_r+qn(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Sr+t+_r+t+t}return t}var Fr=[function(t,e,n,r){if(t.length>-1&&!t.return)switch(t.type){case Mr:t.return=Br(t.value,t.length);break;case Or:return xr([ar(t,{value:qn(t.value,"@","@"+Sr)})],r);case Cr:if(t.length)return function(t,e){return t.map(e).join("")}(t.props,function(e){switch(function(t){return(t=/(::plac\w+|:read-\w+)/.exec(t))?t[0]:t}(e)){case":read-only":case":read-write":return xr([ar(t,{props:[qn(e,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return xr([ar(t,{props:[qn(e,/:(plac\w+)/,":"+Sr+"input-$1")]}),ar(t,{props:[qn(e,/:(plac\w+)/,":-moz-$1")]}),ar(t,{props:[qn(e,/:(plac\w+)/,_r+"input-$1")]})],r)}return""})}}],Ur=function(t){var e=t.key;if("css"===e){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(t){-1!==t.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(t),t.setAttribute("data-s",""))})}var r,o,i=t.stylisPlugins||Fr,a={},s=[];r=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+e+' "]'),function(t){for(var e=t.getAttribute("data-emotion").split(" "),n=1;n<e.length;n++)a[e[n]]=!0;s.push(t)});var c,u,l,p,f=[Dr,(p=function(t){c.insert(t)},function(t){t.root||(t=t.return)&&p(t)})],d=(u=[Rr,zr].concat(i,f),l=Jn(u),function(t,e,n,r){for(var o="",i=0;i<l;i++)o+=u[i](t,e,n,r)||"";return o});o=function(t,e,n,r){c=n,function(t){xr(Tr(t),d)}(t?t+"{"+e.styles+"}":e.styles),r&&(h.inserted[e.name]=!0)};var h={key:e,sheet:new Un({key:e,container:r,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(s),h},Hr=function(t,e,n){var r=t.key+"-"+e.name;!1===n&&void 0===t.registered[r]&&(t.registered[r]=e.styles)},Kr={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,scale: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 Vr(t){var e=Object.create(null);return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}var Yr=/[A-Z]|^ms/g,qr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Wr=function(t){return 45===t.charCodeAt(1)},Gr=function(t){return null!=t&&"boolean"!=typeof t},Qr=Vr(function(t){return Wr(t)?t:t.replace(Yr,"-$&").toLowerCase()}),Zr=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(qr,function(t,e,n){return $r={name:e,styles:n,next:$r},e})}return 1===Kr[t]||Wr(t)||"number"!=typeof e||0===e?e:e+"px"};function Jr(t,e,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return $r={name:o.name,styles:o.styles,next:$r},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)$r={name:a.name,styles:a.styles,next:$r},a=a.next;return i.styles+";"}return function(t,e,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Jr(t,e,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=e&&void 0!==e[s]?r+=i+"{"+e[s]+"}":Gr(s)&&(r+=Qr(i)+":"+Zr(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=e&&void 0!==e[a[0]]){var c=Jr(t,e,a);switch(i){case"animation":case"animationName":r+=Qr(i)+":"+c+";";break;default:r+=i+"{"+c+"}"}}else for(var u=0;u<a.length;u++)Gr(a[u])&&(r+=Qr(i)+":"+Zr(i,a[u])+";")}return r}(t,e,n);case"function":if(void 0!==t){var s=$r,c=n(t);return $r=s,Jr(t,e,c)}}var u=n;if(null==e)return u;var l=e[u];return void 0!==l?l:u}var $r,Xr=/label:\s*([^\s;{]+)\s*(;|$)/g;function to(t,e,n){if(1===t.length&&"object"==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var r=!0,o="";$r=void 0;var i=t[0];null==i||void 0===i.raw?(r=!1,o+=Jr(n,e,i)):o+=i[0];for(var a=1;a<t.length;a++)o+=Jr(n,e,t[a]),r&&(o+=i[a]);Xr.lastIndex=0;for(var s,c="";null!==(s=Xr.exec(o));)c+="-"+s[1];var u=function(t){for(var e,n=0,r=0,o=t.length;o>=4;++r,o-=4)e=1540483477*(65535&(e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&t.charCodeAt(r+2))<<16;case 2:n^=(255&t.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.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:$r}}var eo,no,ro=!!u.useInsertionEffect&&u.useInsertionEffect,oo=ro||function(t){return t()},io=(ro||u.useLayoutEffect,u.createContext("undefined"!=typeof HTMLElement?Ur({key:"css"}):null)),ao=(io.Provider,function(t){return(0,u.forwardRef)(function(e,n){var r=(0,u.useContext)(io);return t(e,r,n)})}),so=u.createContext({}),co={}.hasOwnProperty,uo="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",lo=function(t){var e=t.cache,n=t.serialized,r=t.isStringTag;return Hr(e,n,r),oo(function(){return function(t,e,n){Hr(t,e,n);var r=t.key+"-"+e.name;if(void 0===t.inserted[e.name]){var o=e;do{t.insert(e===o?"."+r:"",o,t.sheet,!0),o=o.next}while(void 0!==o)}}(e,n,r)}),null},po=ao(function(t,e,n){var r=t.css;"string"==typeof r&&void 0!==e.registered[r]&&(r=e.registered[r]);var o=t[uo],i=[r],a="";"string"==typeof t.className?a=function(t,e,n){var r="";return n.split(" ").forEach(function(n){void 0!==t[n]?e.push(t[n]+";"):n&&(r+=n+" ")}),r}(e.registered,i,t.className):null!=t.className&&(a=t.className+" ");var s=to(i,void 0,u.useContext(so));a+=e.key+"-"+s.name;var c={};for(var l in t)co.call(t,l)&&"css"!==l&&l!==uo&&(c[l]=t[l]);return c.className=a,n&&(c.ref=n),u.createElement(u.Fragment,null,u.createElement(lo,{cache:e,serialized:s,isStringTag:"string"==typeof o}),u.createElement(o,c))}),fo=po,ho=(a(4146),function(t,e){var n=arguments;if(null==e||!co.call(e,"css"))return u.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=fo,o[1]=function(t,e){var n={};for(var r in e)co.call(e,r)&&(n[r]=e[r]);return n[uo]=t,n}(t,e);for(var i=2;i<r;i++)o[i]=n[i];return u.createElement.apply(null,o)});function go(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return to(e)}eo=ho||(ho={}),no||(no=eo.JSX||(eo.JSX={}));var mo=a(2284);const yo=Math.min,vo=Math.max,bo=Math.round,wo=Math.floor,_o=t=>({x:t,y:t});function Eo(){return"undefined"!=typeof window}function So(t){return Mo(t)?(t.nodeName||"").toLowerCase():"#document"}function ko(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Co(t){var e;return null==(e=(Mo(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Mo(t){return!!Eo()&&(t instanceof Node||t instanceof ko(t).Node)}function Oo(t){return!!Eo()&&(t instanceof Element||t instanceof ko(t).Element)}function xo(t){return!!Eo()&&(t instanceof HTMLElement||t instanceof ko(t).HTMLElement)}function Do(t){return!(!Eo()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof ko(t).ShadowRoot)}const To=new Set(["inline","contents"]);function Ao(t){const{overflow:e,overflowX:n,overflowY:r,display:o}=jo(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!To.has(o)}const Io=new Set(["html","body","#document"]);function jo(t){return ko(t).getComputedStyle(t)}function No(t){const e=function(t){if("html"===So(t))return t;const e=t.assignedSlot||t.parentNode||Do(t)&&t.host||Co(t);return Do(e)?e.host:e}(t);return function(t){return Io.has(So(t))}(e)?t.ownerDocument?t.ownerDocument.body:t.body:xo(e)&&Ao(e)?e:No(e)}function Lo(t,e,n){var r;void 0===e&&(e=[]),void 0===n&&(n=!0);const o=No(t),i=o===(null==(r=t.ownerDocument)?void 0:r.body),a=ko(o);if(i){const t=Po(a);return e.concat(a,a.visualViewport||[],Ao(o)?o:[],t&&n?Lo(t):[])}return e.concat(o,Lo(o,[],n))}function Po(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ro(t){return Oo(t)?t:t.contextElement}function zo(t){const e=Ro(t);if(!xo(e))return _o(1);const n=e.getBoundingClientRect(),{width:r,height:o,$:i}=function(t){const e=jo(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=xo(t),i=o?t.offsetWidth:n,a=o?t.offsetHeight:r,s=bo(n)!==i||bo(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}(e);let a=(i?bo(n.width):n.width)/r,s=(i?bo(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Bo=_o(0);function Fo(t){const e=ko(t);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Bo}function Uo(t,e,n,r){void 0===e&&(e=!1),void 0===n&&(n=!1);const o=t.getBoundingClientRect(),i=Ro(t);let a=_o(1);e&&(r?Oo(r)&&(a=zo(r)):a=zo(t));const s=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==ko(t))&&e}(i,n,r)?Fo(i):_o(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 t=ko(i),e=r&&Oo(r)?ko(r):r;let n=t,o=Po(n);for(;o&&r&&e!==n;){const t=zo(o),e=o.getBoundingClientRect(),r=jo(o),i=e.left+(o.clientLeft+parseFloat(r.paddingLeft))*t.x,a=e.top+(o.clientTop+parseFloat(r.paddingTop))*t.y;c*=t.x,u*=t.y,l*=t.x,p*=t.y,c+=i,u+=a,n=ko(o),o=Po(n)}}return function(t){const{x:e,y:n,width:r,height:o}=t;return{width:r,height:o,top:n,left:e,right:e+r,bottom:n+o,x:e,y:n}}({width:l,height:p,x:c,y:u})}function Ho(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}var Ko=a(7003),Vo=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Yo=function(){};function qo(t,e){return e?"-"===e[0]?t+e:t+"__"+e:t}function Wo(t,e){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(e&&t)for(var a in e)e.hasOwnProperty(a)&&e[a]&&i.push("".concat(qo(t,a)));return i.filter(function(t){return t}).map(function(t){return String(t).trim()}).join(" ")}var Go=function(t){return e=t,Array.isArray(e)?t.filter(Boolean):"object"===(0,mo.A)(t)&&null!==t?[t]:[];var e},Qo=function(t){return t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme,Rn({},Ge(t,Vo))},Zo=function(t,e,n){var r=t.cx,o=t.getStyles,i=t.getClassNames,a=t.className;return{css:o(e,t),className:r(null!=n?n:{},i(e,t),a)}};function Jo(t){return[document.documentElement,document.body,window].indexOf(t)>-1}function $o(t){return Jo(t)?window.pageYOffset:t.scrollTop}function Xo(t,e){Jo(t)?window.scrollTo(0,e):t.scrollTop=e}function ti(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Yo,o=$o(t),i=e-o,a=0;!function e(){var s,c=i*((s=(s=a+=10)/n-1)*s*s+1)+o;Xo(t,c),a<n?window.requestAnimationFrame(e):r(t)}()}function ei(t,e){var n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),o=e.offsetHeight/3;r.bottom+o>n.bottom?Xo(t,Math.min(e.offsetTop+e.clientHeight-t.offsetHeight+o,t.scrollHeight)):r.top-o<n.top&&Xo(t,Math.max(e.offsetTop-o,0))}function ni(){try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}}var ri=!1,oi={get passive(){return ri=!0}},ii="undefined"!=typeof window?window:{};ii.addEventListener&&ii.removeEventListener&&(ii.addEventListener("p",Yo,oi),ii.removeEventListener("p",Yo,!1));var ai=ri;function si(t){return null!=t}function ci(t,e,n){return t?e:n}var ui=["children","innerProps"],li=["children","innerProps"];var pi,fi,di,hi=function(t){return"auto"===t?"bottom":t},gi=(0,u.createContext)(null),mi=function(t){var e=t.children,n=t.minMenuHeight,r=t.maxMenuHeight,o=t.menuPlacement,i=t.menuPosition,a=t.menuShouldScrollIntoView,s=t.theme,c=((0,u.useContext)(gi)||{}).setPortalPlacement,l=(0,u.useRef)(null),p=(0,u.useState)(r),f=(0,Ke.A)(p,2),d=f[0],h=f[1],g=(0,u.useState)(null),m=(0,Ke.A)(g,2),y=m[0],v=m[1],b=s.spacing.controlHeight;return(0,Ko.A)(function(){var t=l.current;if(t){var e="fixed"===i,s=function(t){var e=t.maxHeight,n=t.menuEl,r=t.minHeight,o=t.placement,i=t.shouldScroll,a=t.isFixedPosition,s=t.controlHeight,c=function(t){var e=getComputedStyle(t),n="absolute"===e.position,r=/(auto|scroll)/;if("fixed"===e.position)return document.documentElement;for(var o=t;o=o.parentElement;)if(e=getComputedStyle(o),(!n||"static"!==e.position)&&r.test(e.overflow+e.overflowY+e.overflowX))return o;return document.documentElement}(n),u={placement:"bottom",maxHeight:e};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||Jo(l=c)?window.innerHeight:l.clientHeight,v=$o(c),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),_=m-w,E=y-g,S=_+v,k=p-v-g,C=d-y+v+b,M=v+g-w,O=160;switch(o){case"auto":case"bottom":if(E>=h)return{placement:"bottom",maxHeight:e};if(k>=h&&!a)return i&&ti(c,C,O),{placement:"bottom",maxHeight:e};if(!a&&k>=r||a&&E>=r)return i&&ti(c,C,O),{placement:"bottom",maxHeight:a?E-b:k-b};if("auto"===o||a){var x=e,D=a?_:S;return D>=r&&(x=Math.min(D-b-s,e)),{placement:"top",maxHeight:x}}if("bottom"===o)return i&&Xo(c,C),{placement:"bottom",maxHeight:e};break;case"top":if(_>=h)return{placement:"top",maxHeight:e};if(S>=h&&!a)return i&&ti(c,M,O),{placement:"top",maxHeight:e};if(!a&&S>=r||a&&_>=r){var T=e;return(!a&&S>=r||a&&_>=r)&&(T=a?_-w:S-w),i&&ti(c,M,O),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}({maxHeight:r,menuEl:t,minHeight:n,placement:o,shouldScroll:a&&!e,isFixedPosition:e,controlHeight:b});h(s.maxHeight),v(s.placement),null==c||c(s.placement)}},[r,o,i,a,n,c,b]),e({ref:l,placerProps:Rn(Rn({},t),{},{placement:y||hi(o),maxHeight:d})})},yi=function(t,e){var n=t.theme,r=n.spacing.baseUnit,o=n.colors;return Rn({textAlign:"center"},e?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},vi=yi,bi=yi,wi=["size"],_i=["innerProps","isRtl","size"],Ei={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Si=function(t){var n=t.size,r=Ge(t,wi);return ho("svg",(0,e.A)({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ei},r))},ki=function(t){return ho(Si,(0,e.A)({size:20},t),ho("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"}))},Ci=function(t){return ho(Si,(0,e.A)({size:20},t),ho("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"}))},Mi=function(t,e){var n=t.isFocused,r=t.theme,o=r.spacing.baseUnit,i=r.colors;return Rn({label:"indicatorContainer",display:"flex",transition:"color 150ms"},e?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},Oi=Mi,xi=Mi,Di=function(){var t=go.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(pi||(fi=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],di||(di=fi.slice(0)),pi=Object.freeze(Object.defineProperties(fi,{raw:{value:Object.freeze(di)}})))),Ti=function(t){var e=t.delay,n=t.offset;return ho("span",{css:go({animation:"".concat(Di," 1s ease-in-out ").concat(e,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Ai=["data"],Ii=["innerRef","isDisabled","isHidden","inputClassName"],ji={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Ni={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Rn({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ji)},Li=function(t){return Rn({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},ji)},Pi=function(t){var e=t.children,n=t.innerProps;return ho("div",n,e)},Ri={ClearIndicator:function(t){var n=t.children,r=t.innerProps;return ho("div",(0,e.A)({},Zo(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||ho(ki,null))},Control:function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,i=t.innerRef,a=t.innerProps,s=t.menuIsOpen;return ho("div",(0,e.A)({ref:i},Zo(t,"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(t){var n=t.children,r=t.innerProps;return ho("div",(0,e.A)({},Zo(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||ho(Ci,null))},DownChevron:Ci,CrossIcon:ki,Group:function(t){var n=t.children,r=t.cx,o=t.getStyles,i=t.getClassNames,a=t.Heading,s=t.headingProps,c=t.innerProps,u=t.label,l=t.theme,p=t.selectProps;return ho("div",(0,e.A)({},Zo(t,"group",{group:!0}),c),ho(a,(0,e.A)({},s,{selectProps:p,theme:l,getStyles:o,getClassNames:i,cx:r}),u),ho("div",null,n))},GroupHeading:function(t){var n=Qo(t);n.data;var r=Ge(n,Ai);return ho("div",(0,e.A)({},Zo(t,"groupHeading",{"group-heading":!0}),r))},IndicatorsContainer:function(t){var n=t.children,r=t.innerProps;return ho("div",(0,e.A)({},Zo(t,"indicatorsContainer",{indicators:!0}),r),n)},IndicatorSeparator:function(t){var n=t.innerProps;return ho("span",(0,e.A)({},n,Zo(t,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(t){var n=t.cx,r=t.value,o=Qo(t),i=o.innerRef,a=o.isDisabled,s=o.isHidden,c=o.inputClassName,u=Ge(o,Ii);return ho("div",(0,e.A)({},Zo(t,"input",{"input-container":!0}),{"data-value":r||""}),ho("input",(0,e.A)({className:n({input:!0},c),ref:i,style:Li(s),disabled:a},u)))},LoadingIndicator:function(t){var n=t.innerProps,r=t.isRtl,o=t.size,i=void 0===o?4:o,a=Ge(t,_i);return ho("div",(0,e.A)({},Zo(Rn(Rn({},a),{},{innerProps:n,isRtl:r,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),ho(Ti,{delay:0,offset:r}),ho(Ti,{delay:160,offset:!0}),ho(Ti,{delay:320,offset:!r}))},Menu:function(t){var n=t.children,r=t.innerRef,o=t.innerProps;return ho("div",(0,e.A)({},Zo(t,"menu",{menu:!0}),{ref:r},o),n)},MenuList:function(t){var n=t.children,r=t.innerProps,o=t.innerRef,i=t.isMulti;return ho("div",(0,e.A)({},Zo(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},r),n)},MenuPortal:function(t){var n=t.appendTo,r=t.children,o=t.controlElement,i=t.innerProps,a=t.menuPlacement,s=t.menuPosition,c=(0,u.useRef)(null),l=(0,u.useRef)(null),p=(0,u.useState)(hi(a)),f=(0,Ke.A)(p,2),d=f[0],h=f[1],g=(0,u.useMemo)(function(){return{setPortalPlacement:h}},[]),m=(0,u.useState)(null),y=(0,Ke.A)(m,2),v=y[0],b=y[1],w=(0,u.useCallback)(function(){if(o){var t=function(t){var e=t.getBoundingClientRect();return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width}}(o),e="fixed"===s?0:window.pageYOffset,n=t[d]+e;n===(null==v?void 0:v.offset)&&t.left===(null==v?void 0:v.rect.left)&&t.width===(null==v?void 0:v.rect.width)||b({offset:n,rect:t})}},[o,s,d,null==v?void 0:v.offset,null==v?void 0:v.rect.left,null==v?void 0:v.rect.width]);(0,Ko.A)(function(){w()},[w]);var _=(0,u.useCallback)(function(){"function"==typeof l.current&&(l.current(),l.current=null),o&&c.current&&(l.current=function(t,e,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=Ro(t),l=o||i?[...u?Lo(u):[],...Lo(e)]:[];l.forEach(t=>{o&&t.addEventListener("scroll",n,{passive:!0}),i&&t.addEventListener("resize",n)});const p=u&&s?function(t,e){let n,r=null;const o=Co(t);function i(){var t;clearTimeout(n),null==(t=r)||t.disconnect(),r=null}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),i();const u=t.getBoundingClientRect(),{left:l,top:p,width:f,height:d}=u;if(s||e(),!f||!d)return;const h={rootMargin:-wo(p)+"px "+-wo(o.clientWidth-(l+f))+"px "+-wo(o.clientHeight-(p+d))+"px "+-wo(l)+"px",threshold:vo(0,yo(1,c))||1};let g=!0;function m(e){const r=e[0].intersectionRatio;if(r!==c){if(!g)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||Ho(u,t.getBoundingClientRect())||a(),g=!1}try{r=new IntersectionObserver(m,{...h,root:o.ownerDocument})}catch(t){r=new IntersectionObserver(m,h)}r.observe(t)}(!0),i}(u,n):null;let f,d=-1,h=null;a&&(h=new ResizeObserver(t=>{let[r]=t;r&&r.target===u&&h&&(h.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var t;null==(t=h)||t.observe(e)})),n()}),u&&!c&&h.observe(u),h.observe(e));let g=c?Uo(t):null;return c&&function e(){const r=Uo(t);g&&!Ho(g,r)&&n(),g=r,f=requestAnimationFrame(e)}(),n(),()=>{var t;l.forEach(t=>{o&&t.removeEventListener("scroll",n),i&&t.removeEventListener("resize",n)}),null==p||p(),null==(t=h)||t.disconnect(),h=null,c&&cancelAnimationFrame(f)}}(o,c.current,w,{elementResize:"ResizeObserver"in window}))},[o,w]);(0,Ko.A)(function(){_()},[_]);var E=(0,u.useCallback)(function(t){c.current=t,_()},[_]);if(!n&&"fixed"!==s||!v)return null;var S=ho("div",(0,e.A)({ref:E},Zo(Rn(Rn({},t),{},{offset:v.offset,position:s,rect:v.rect}),"menuPortal",{"menu-portal":!0}),i),r);return ho(gi.Provider,{value:g},n?(0,je.createPortal)(S,n):S)},LoadingMessage:function(t){var n=t.children,r=void 0===n?"Loading...":n,o=t.innerProps,i=Ge(t,li);return ho("div",(0,e.A)({},Zo(Rn(Rn({},i),{},{children:r,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),r)},NoOptionsMessage:function(t){var n=t.children,r=void 0===n?"No options":n,o=t.innerProps,i=Ge(t,ui);return ho("div",(0,e.A)({},Zo(Rn(Rn({},i),{},{children:r,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),r)},MultiValue:function(t){var e=t.children,n=t.components,r=t.data,o=t.innerProps,i=t.isDisabled,a=t.removeProps,s=t.selectProps,c=n.Container,u=n.Label,l=n.Remove;return ho(c,{data:r,innerProps:Rn(Rn({},Zo(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},ho(u,{data:r,innerProps:Rn({},Zo(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},e),ho(l,{data:r,innerProps:Rn(Rn({},Zo(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(e||"option")},a),selectProps:s}))},MultiValueContainer:Pi,MultiValueLabel:Pi,MultiValueRemove:function(t){var n=t.children,r=t.innerProps;return ho("div",(0,e.A)({role:"button"},r),n||ho(ki,{size:14}))},Option:function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.innerRef,s=t.innerProps;return ho("div",(0,e.A)({},Zo(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":o,"option--is-selected":i}),{ref:a,"aria-disabled":r},s),n)},Placeholder:function(t){var n=t.children,r=t.innerProps;return ho("div",(0,e.A)({},Zo(t,"placeholder",{placeholder:!0}),r),n)},SelectContainer:function(t){var n=t.children,r=t.innerProps,o=t.isDisabled,i=t.isRtl;return ho("div",(0,e.A)({},Zo(t,"container",{"--is-disabled":o,"--is-rtl":i}),r),n)},SingleValue:function(t){var n=t.children,r=t.isDisabled,o=t.innerProps;return ho("div",(0,e.A)({},Zo(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),o),n)},ValueContainer:function(t){var n=t.children,r=t.innerProps,o=t.isMulti,i=t.hasValue;return ho("div",(0,e.A)({},Zo(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),r),n)}},zi=Number.isNaN||function(t){return"number"==typeof t&&t!=t};function Bi(t,e){return t===e||!(!zi(t)||!zi(e))}function Fi(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!Bi(t[n],e[n]))return!1;return!0}for(var Ui={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"},Hi=function(t){return ho("span",(0,e.A)({css:Ui},t))},Ki={guidance:function(t){var e=t.isSearchable,n=t.isMulti,r=t.tabSelectsValue,o=t.context,i=t.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(t["aria-label"]||"Select"," is focused ").concat(e?",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(t){var e=t.action,n=t.label,r=void 0===n?"":n,o=t.labels,i=t.isDisabled;switch(e){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(t){var e=t.context,n=t.focused,r=t.options,o=t.label,i=void 0===o?"":o,a=t.selectValue,s=t.isDisabled,c=t.isSelected,u=t.isAppleDevice,l=function(t,e){return t&&t.length?"".concat(t.indexOf(e)+1," of ").concat(t.length):""};if("value"===e&&a)return"value ".concat(i," focused, ").concat(l(a,n),".");if("menu"===e&&u){var p=s?" disabled":"",f="".concat(c?" selected":"").concat(p);return"".concat(i).concat(f,", ").concat(l(r,n),".")}return""},onFilter:function(t){var e=t.inputValue,n=t.resultsMessage;return"".concat(n).concat(e?" for search term "+e:"",".")}},Vi=function(t){var e=t.ariaSelection,n=t.focusedOption,r=t.focusedValue,o=t.focusableOptions,i=t.isFocused,a=t.selectValue,s=t.selectProps,c=t.id,l=t.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.isLoading,E=s["aria-label"],S=s["aria-live"],k=(0,u.useMemo)(function(){return Rn(Rn({},Ki),p||{})},[p]),C=(0,u.useMemo)(function(){var t,n="";if(e&&k.onChange){var r=e.option,o=e.options,i=e.removedValue,s=e.removedValues,c=e.value,u=i||r||(t=c,Array.isArray(t)?null:t),l=u?f(u):"",p=o||s||void 0,d=p?p.map(f):[],h=Rn({isDisabled:u&&g(u,a),label:l,labels:d},e);n=k.onChange(h)}return n},[e,k,g,a,f]),M=(0,u.useMemo)(function(){var t="",e=n||r,i=!!(n&&a&&a.includes(n));if(e&&k.onFocus){var s={focused:e,label:f(e),isDisabled:g(e,a),isSelected:i,options:o,context:e===n?"menu":"value",selectValue:a,isAppleDevice:l};t=k.onFocus(s)}return t},[n,r,f,g,k,o,a,l]),O=(0,u.useMemo)(function(){var t="";if(y&&v.length&&!_&&k.onFilter){var e=b({count:o.length});t=k.onFilter({inputValue:d,resultsMessage:e})}return t},[o,d,y,k,v,b,_]),x="initial-input-focus"===(null==e?void 0:e.action),D=(0,u.useMemo)(function(){var t="";if(k.guidance){var e=r?"value":y?"menu":"input";t=k.guidance({"aria-label":E,context:e,isDisabled:n&&g(n,a),isMulti:h,isSearchable:m,tabSelectsValue:w,isInitialFocus:x})}return t},[E,n,r,h,g,m,y,k,a,w,x]),T=ho(u.Fragment,null,ho("span",{id:"aria-selection"},C),ho("span",{id:"aria-focused"},M),ho("span",{id:"aria-results"},O),ho("span",{id:"aria-guidance"},D));return ho(u.Fragment,null,ho(Hi,{id:c},x&&T),ho(Hi,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!x&&T))},Yi=[{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źẑżžẓẕƶȥɀⱬꝣ"}],qi=new RegExp("["+Yi.map(function(t){return t.letters}).join("")+"]","g"),Wi={},Gi=0;Gi<Yi.length;Gi++)for(var Qi=Yi[Gi],Zi=0;Zi<Qi.letters.length;Zi++)Wi[Qi.letters[Zi]]=Qi.base;var Ji=function(t){return t.replace(qi,function(t){return Wi[t]})},$i=function(t,e){void 0===e&&(e=Fi);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&e(r,n.lastArgs))return n.lastResult;var i=t.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(Ji),Xi=function(t){return t.replace(/^\s+|\s+$/g,"")},ta=function(t){return"".concat(t.label," ").concat(t.value)},ea=["innerRef"];function na(t){var n=t.innerRef,r=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=Object.entries(t).filter(function(t){var e=(0,Ke.A)(t,1)[0];return!n.includes(e)});return o.reduce(function(t,e){var n=(0,Ke.A)(e,2),r=n[0],o=n[1];return t[r]=o,t},{})}(Ge(t,ea),"onExited","in","enter","exit","appear");return ho("input",(0,e.A)({ref:n},r,{css:go({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 ra=["boxSizing","height","overflow","paddingRight","position"],oa={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function ia(t){t.cancelable&&t.preventDefault()}function aa(t){t.stopPropagation()}function sa(){var t=this.scrollTop,e=this.scrollHeight,n=t+this.offsetHeight;0===t?this.scrollTop=1:n===e&&(this.scrollTop=t-1)}function ca(){return"ontouchstart"in window||navigator.maxTouchPoints}var ua=!("undefined"==typeof window||!window.document||!window.document.createElement),la=0,pa={capture:!1,passive:!1},fa=function(t){var e=t.target;return e.ownerDocument.activeElement&&e.ownerDocument.activeElement.blur()},da={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function ha(t){var e=t.children,n=t.lockEnabled,r=t.captureEnabled,o=function(t){var e=t.isEnabled,n=t.onBottomArrive,r=t.onBottomLeave,o=t.onTopArrive,i=t.onTopLeave,a=(0,u.useRef)(!1),s=(0,u.useRef)(!1),c=(0,u.useRef)(0),l=(0,u.useRef)(null),p=(0,u.useCallback)(function(t,e){if(null!==l.current){var c=l.current,u=c.scrollTop,p=c.scrollHeight,f=c.clientHeight,d=l.current,h=e>0,g=p-f-u,m=!1;g>e&&a.current&&(r&&r(t),a.current=!1),h&&s.current&&(i&&i(t),s.current=!1),h&&e>g?(n&&!a.current&&n(t),d.scrollTop=p,m=!0,a.current=!0):!h&&-e>u&&(o&&!s.current&&o(t),d.scrollTop=0,m=!0,s.current=!0),m&&function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()}(t)}},[n,r,o,i]),f=(0,u.useCallback)(function(t){p(t,t.deltaY)},[p]),d=(0,u.useCallback)(function(t){c.current=t.changedTouches[0].clientY},[]),h=(0,u.useCallback)(function(t){var e=c.current-t.changedTouches[0].clientY;p(t,e)},[p]),g=(0,u.useCallback)(function(t){if(t){var e=!!ai&&{passive:!1};t.addEventListener("wheel",f,e),t.addEventListener("touchstart",d,e),t.addEventListener("touchmove",h,e)}},[h,d,f]),m=(0,u.useCallback)(function(t){t&&(t.removeEventListener("wheel",f,!1),t.removeEventListener("touchstart",d,!1),t.removeEventListener("touchmove",h,!1))},[h,d,f]);return(0,u.useEffect)(function(){if(e){var t=l.current;return g(t),function(){m(t)}}},[e,g,m]),function(t){l.current=t}}({isEnabled:void 0===r||r,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),i=function(t){var e=t.isEnabled,n=t.accountForScrollbars,r=void 0===n||n,o=(0,u.useRef)({}),i=(0,u.useRef)(null),a=(0,u.useCallback)(function(t){if(ua){var e=document.body,n=e&&e.style;if(r&&ra.forEach(function(t){var e=n&&n[t];o.current[t]=e}),r&&la<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(oa).forEach(function(t){var e=oa[t];n&&(n[t]=e)}),n&&(n.paddingRight="".concat(s,"px"))}e&&ca()&&(e.addEventListener("touchmove",ia,pa),t&&(t.addEventListener("touchstart",sa,pa),t.addEventListener("touchmove",aa,pa))),la+=1}},[r]),s=(0,u.useCallback)(function(t){if(ua){var e=document.body,n=e&&e.style;la=Math.max(la-1,0),r&&la<1&&ra.forEach(function(t){var e=o.current[t];n&&(n[t]=e)}),e&&ca()&&(e.removeEventListener("touchmove",ia,pa),t&&(t.removeEventListener("touchstart",sa,pa),t.removeEventListener("touchmove",aa,pa)))}},[r]);return(0,u.useEffect)(function(){if(e){var t=i.current;return a(t),function(){s(t)}}},[e,a,s]),function(t){i.current=t}}({isEnabled:n});return ho(u.Fragment,null,n&&ho("div",{onClick:fa,css:da}),e(function(t){o(t),i(t)}))}var ga={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},ma=function(t){var e=t.name,n=t.onFocus;return ho("input",{required:!0,name:e,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:ga,value:"",onChange:function(){}})};function ya(t){var e;return"undefined"!=typeof window&&null!=window.navigator&&t.test((null===(e=window.navigator.userAgentData)||void 0===e?void 0:e.platform)||window.navigator.platform)}function va(){return ya(/^Mac/i)}var ba={clearIndicator:xi,container:function(t){var e=t.isDisabled;return{label:"container",direction:t.isRtl?"rtl":void 0,pointerEvents:e?"none":void 0,position:"relative"}},control:function(t,e){var n=t.isDisabled,r=t.isFocused,o=t.theme,i=o.colors,a=o.borderRadius;return Rn({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"},e?{}:{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:Oi,group:function(t,e){var n=t.theme.spacing;return e?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(t,e){var n=t.theme,r=n.colors,o=n.spacing;return Rn({label:"group",cursor:"default",display:"block"},e?{}:{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(t,e){var n=t.isDisabled,r=t.theme,o=r.spacing.baseUnit,i=r.colors;return Rn({label:"indicatorSeparator",alignSelf:"stretch",width:1},e?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(t,e){var n=t.isDisabled,r=t.value,o=t.theme,i=o.spacing,a=o.colors;return Rn(Rn({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Ni),e?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(t,e){var n=t.isFocused,r=t.size,o=t.theme,i=o.colors,a=o.spacing.baseUnit;return Rn({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},e?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:bi,menu:function(t,e){var n,r=t.placement,o=t.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return Rn((n={label:"menu"},(0,Ie.A)(n,function(t){return t?{bottom:"top",top:"bottom"}[t]:"bottom"}(r),"100%"),(0,Ie.A)(n,"position","absolute"),(0,Ie.A)(n,"width","100%"),(0,Ie.A)(n,"zIndex",1),n),e?{}:{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(t,e){var n=t.maxHeight,r=t.theme.spacing.baseUnit;return Rn({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},e?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(t){var e=t.rect,n=t.offset,r=t.position;return{left:e.left,position:r,top:n,width:e.width,zIndex:1}},multiValue:function(t,e){var n=t.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return Rn({label:"multiValue",display:"flex",minWidth:0},e?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(t,e){var n=t.theme,r=n.borderRadius,o=n.colors,i=t.cropWithEllipsis;return Rn({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},e?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(t,e){var n=t.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=t.isFocused;return Rn({alignItems:"center",display:"flex"},e?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:vi,option:function(t,e){var n=t.isDisabled,r=t.isFocused,o=t.isSelected,i=t.theme,a=i.spacing,s=i.colors;return Rn({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},e?{}:{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(t,e){var n=t.theme,r=n.spacing,o=n.colors;return Rn({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},e?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(t,e){var n=t.isDisabled,r=t.theme,o=r.spacing,i=r.colors;return Rn({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(t,e){var n=t.theme.spacing,r=t.isMulti,o=t.hasValue,i=t.selectProps.controlShouldRenderValue;return Rn({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},e?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},wa={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}},_a={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ni(),captureMenuScroll:!ni(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(t,e){if(t.data.__isNew__)return!0;var n=Rn({ignoreCase:!0,ignoreAccents:!0,stringify:ta,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,c=a?Xi(e):e,u=a?Xi(i(t)):i(t);return r&&(c=c.toLowerCase(),u=u.toLowerCase()),o&&(c=$i(c),u=Ji(u)),"start"===s?u.substr(0,c.length)===c:u.indexOf(c)>-1},formatGroupLabel:function(t){return t.label},getOptionLabel:function(t){return t.label},getOptionValue:function(t){return t.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(t){return!!t.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(t){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var e=t.count;return"".concat(e," result").concat(1!==e?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Ea(t,e,n,r){return{type:"option",data:e,isDisabled:Ta(t,e,n),isSelected:Aa(t,e,n),label:xa(t,e),value:Da(t,e),index:r}}function Sa(t,e){return t.options.map(function(n,r){if("options"in n){var o=n.options.map(function(n,r){return Ea(t,n,e,r)}).filter(function(e){return Ma(t,e)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Ea(t,n,e,r);return Ma(t,i)?i:void 0}).filter(si)}function ka(t){return t.reduce(function(t,e){return"group"===e.type?t.push.apply(t,(0,Ae.A)(e.options.map(function(t){return t.data}))):t.push(e.data),t},[])}function Ca(t,e){return t.reduce(function(t,n){return"group"===n.type?t.push.apply(t,(0,Ae.A)(n.options.map(function(t){return{data:t.data,id:"".concat(e,"-").concat(n.index,"-").concat(t.index)}}))):t.push({data:n.data,id:"".concat(e,"-").concat(n.index)}),t},[])}function Ma(t,e){var n=t.inputValue,r=void 0===n?"":n,o=e.data,i=e.isSelected,a=e.label,s=e.value;return(!ja(t)||!i)&&Ia(t,{label:a,value:s,data:o},r)}var Oa=function(t,e){var n;return(null===(n=t.find(function(t){return t.data===e}))||void 0===n?void 0:n.id)||null},xa=function(t,e){return t.getOptionLabel(e)},Da=function(t,e){return t.getOptionValue(e)};function Ta(t,e,n){return"function"==typeof t.isOptionDisabled&&t.isOptionDisabled(e,n)}function Aa(t,e,n){if(n.indexOf(e)>-1)return!0;if("function"==typeof t.isOptionSelected)return t.isOptionSelected(e,n);var r=Da(t,e);return n.some(function(e){return Da(t,e)===r})}function Ia(t,e,n){return!t.filterOption||t.filterOption(e,n)}var ja=function(t){var e=t.hideSelectedOptions,n=t.isMulti;return void 0===e?n:e},Na=1,La=function(t){(0,c.A)(i,t);var o=Fn(i);function i(t){var e;if((0,n.A)(this,i),(e=o.call(this,t)).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:"",isAppleDevice:!1},e.blockOptionHover=!1,e.isComposing=!1,e.commonProps=void 0,e.initialTouchX=0,e.initialTouchY=0,e.openAfterFocus=!1,e.scrollToFocusedOptionOnUpdate=!1,e.userIsDragging=void 0,e.controlRef=null,e.getControlRef=function(t){e.controlRef=t},e.focusedOptionRef=null,e.getFocusedOptionRef=function(t){e.focusedOptionRef=t},e.menuListRef=null,e.getMenuListRef=function(t){e.menuListRef=t},e.inputRef=null,e.getInputRef=function(t){e.inputRef=t},e.focus=e.focusInput,e.blur=e.blurInput,e.onChange=function(t,n){var r=e.props,o=r.onChange,i=r.name;n.name=i,e.ariaOnChange(t,n),o(t,n)},e.setValue=function(t,n,r){var o=e.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;e.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(e.setState({inputIsHiddenAfterUpdate:!a}),e.onMenuClose()),e.setState({clearFocusValueOnUpdate:!0}),e.onChange(t,{action:n,option:r})},e.selectOption=function(t){var n=e.props,r=n.blurInputOnSelect,o=n.isMulti,i=n.name,a=e.state.selectValue,s=o&&e.isOptionSelected(t,a),c=e.isOptionDisabled(t,a);if(s){var u=e.getOptionValue(t);e.setValue(a.filter(function(t){return e.getOptionValue(t)!==u}),"deselect-option",t)}else{if(c)return void e.ariaOnChange(t,{action:"select-option",option:t,name:i});o?e.setValue([].concat((0,Ae.A)(a),[t]),"select-option",t):e.setValue(t,"select-option")}r&&e.blurInput()},e.removeValue=function(t){var n=e.props.isMulti,r=e.state.selectValue,o=e.getOptionValue(t),i=r.filter(function(t){return e.getOptionValue(t)!==o}),a=ci(n,i,i[0]||null);e.onChange(a,{action:"remove-value",removedValue:t}),e.focusInput()},e.clearValue=function(){var t=e.state.selectValue;e.onChange(ci(e.props.isMulti,[],null),{action:"clear",removedValues:t})},e.popValue=function(){var t=e.props.isMulti,n=e.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),i=ci(t,o,o[0]||null);r&&e.onChange(i,{action:"pop-value",removedValue:r})},e.getFocusedOptionId=function(t){return Oa(e.state.focusableOptionsWithIds,t)},e.getFocusableOptionsWithIds=function(){return Ca(Sa(e.props,e.state.selectValue),e.getElementId("option"))},e.getValue=function(){return e.state.selectValue},e.cx=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Wo.apply(void 0,[e.props.classNamePrefix].concat(n))},e.getOptionLabel=function(t){return xa(e.props,t)},e.getOptionValue=function(t){return Da(e.props,t)},e.getStyles=function(t,n){var r=e.props.unstyled,o=ba[t](n,r);o.boxSizing="border-box";var i=e.props.styles[t];return i?i(o,n):o},e.getClassNames=function(t,n){var r,o;return null===(r=(o=e.props.classNames)[t])||void 0===r?void 0:r.call(o,n)},e.getElementId=function(t){return"".concat(e.state.instancePrefix,"-").concat(t)},e.getComponents=function(){return t=e.props,Rn(Rn({},Ri),t.components);var t},e.buildCategorizedOptions=function(){return Sa(e.props,e.state.selectValue)},e.getCategorizedOptions=function(){return e.props.menuIsOpen?e.buildCategorizedOptions():[]},e.buildFocusableOptions=function(){return ka(e.buildCategorizedOptions())},e.getFocusableOptions=function(){return e.props.menuIsOpen?e.buildFocusableOptions():[]},e.ariaOnChange=function(t,n){e.setState({ariaSelection:Rn({value:t},n)})},e.onMenuMouseDown=function(t){0===t.button&&(t.stopPropagation(),t.preventDefault(),e.focusInput())},e.onMenuMouseMove=function(t){e.blockOptionHover=!1},e.onControlMouseDown=function(t){if(!t.defaultPrevented){var n=e.props.openMenuOnClick;e.state.isFocused?e.props.menuIsOpen?"INPUT"!==t.target.tagName&&"TEXTAREA"!==t.target.tagName&&e.onMenuClose():n&&e.openMenu("first"):(n&&(e.openAfterFocus=!0),e.focusInput()),"INPUT"!==t.target.tagName&&"TEXTAREA"!==t.target.tagName&&t.preventDefault()}},e.onDropdownIndicatorMouseDown=function(t){if(!(t&&"mousedown"===t.type&&0!==t.button||e.props.isDisabled)){var n=e.props,r=n.isMulti,o=n.menuIsOpen;e.focusInput(),o?(e.setState({inputIsHiddenAfterUpdate:!r}),e.onMenuClose()):e.openMenu("first"),t.preventDefault()}},e.onClearIndicatorMouseDown=function(t){t&&"mousedown"===t.type&&0!==t.button||(e.clearValue(),t.preventDefault(),e.openAfterFocus=!1,"touchend"===t.type?e.focusInput():setTimeout(function(){return e.focusInput()}))},e.onScroll=function(t){"boolean"==typeof e.props.closeMenuOnScroll?t.target instanceof HTMLElement&&Jo(t.target)&&e.props.onMenuClose():"function"==typeof e.props.closeMenuOnScroll&&e.props.closeMenuOnScroll(t)&&e.props.onMenuClose()},e.onCompositionStart=function(){e.isComposing=!0},e.onCompositionEnd=function(){e.isComposing=!1},e.onTouchStart=function(t){var n=t.touches,r=n&&n.item(0);r&&(e.initialTouchX=r.clientX,e.initialTouchY=r.clientY,e.userIsDragging=!1)},e.onTouchMove=function(t){var n=t.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-e.initialTouchX),i=Math.abs(r.clientY-e.initialTouchY);e.userIsDragging=o>5||i>5}},e.onTouchEnd=function(t){e.userIsDragging||(e.controlRef&&!e.controlRef.contains(t.target)&&e.menuListRef&&!e.menuListRef.contains(t.target)&&e.blurInput(),e.initialTouchX=0,e.initialTouchY=0)},e.onControlTouchEnd=function(t){e.userIsDragging||e.onControlMouseDown(t)},e.onClearIndicatorTouchEnd=function(t){e.userIsDragging||e.onClearIndicatorMouseDown(t)},e.onDropdownIndicatorTouchEnd=function(t){e.userIsDragging||e.onDropdownIndicatorMouseDown(t)},e.handleInputChange=function(t){var n=e.props.inputValue,r=t.currentTarget.value;e.setState({inputIsHiddenAfterUpdate:!1}),e.onInputChange(r,{action:"input-change",prevInputValue:n}),e.props.menuIsOpen||e.onMenuOpen()},e.onInputFocus=function(t){e.props.onFocus&&e.props.onFocus(t),e.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(e.openAfterFocus||e.props.openMenuOnFocus)&&e.openMenu("first"),e.openAfterFocus=!1},e.onInputBlur=function(t){var n=e.props.inputValue;e.menuListRef&&e.menuListRef.contains(document.activeElement)?e.inputRef.focus():(e.props.onBlur&&e.props.onBlur(t),e.onInputChange("",{action:"input-blur",prevInputValue:n}),e.onMenuClose(),e.setState({focusedValue:null,isFocused:!1}))},e.onOptionHover=function(t){if(!e.blockOptionHover&&e.state.focusedOption!==t){var n=e.getFocusableOptions().indexOf(t);e.setState({focusedOption:t,focusedOptionId:n>-1?e.getFocusedOptionId(t):null})}},e.shouldHideSelectedOptions=function(){return ja(e.props)},e.onValueInputFocus=function(t){t.preventDefault(),t.stopPropagation(),e.focus()},e.onKeyDown=function(t){var n=e.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=e.state,h=d.focusedOption,g=d.focusedValue,m=d.selectValue;if(!(c||"function"==typeof l&&(l(t),t.defaultPrevented))){switch(e.blockOptionHover=!0,t.key){case"ArrowLeft":if(!r||a)return;e.focusValue("previous");break;case"ArrowRight":if(!r||a)return;e.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(g)e.removeValue(g);else{if(!o)return;r?e.popValue():s&&e.clearValue()}break;case"Tab":if(e.isComposing)return;if(t.shiftKey||!u||!p||!h||f&&e.isOptionSelected(h,m))return;e.selectOption(h);break;case"Enter":if(229===t.keyCode)break;if(u){if(!h)return;if(e.isComposing)return;e.selectOption(h);break}return;case"Escape":u?(e.setState({inputIsHiddenAfterUpdate:!1}),e.onInputChange("",{action:"menu-close",prevInputValue:a}),e.onMenuClose()):s&&i&&e.clearValue();break;case" ":if(a)return;if(!u){e.openMenu("first");break}if(!h)return;e.selectOption(h);break;case"ArrowUp":u?e.focusOption("up"):e.openMenu("last");break;case"ArrowDown":u?e.focusOption("down"):e.openMenu("first");break;case"PageUp":if(!u)return;e.focusOption("pageup");break;case"PageDown":if(!u)return;e.focusOption("pagedown");break;case"Home":if(!u)return;e.focusOption("first");break;case"End":if(!u)return;e.focusOption("last");break;default:return}t.preventDefault()}},e.state.instancePrefix="react-select-"+(e.props.instanceId||++Na),e.state.selectValue=Go(t.value),t.menuIsOpen&&e.state.selectValue.length){var r=e.getFocusableOptionsWithIds(),a=e.buildFocusableOptions(),s=a.indexOf(e.state.selectValue[0]);e.state.focusableOptionsWithIds=r,e.state.focusedOption=a[s],e.state.focusedOptionId=Oa(r,a[s])}return e}return(0,r.A)(i,[{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&&ei(this.menuListRef,this.focusedOptionRef),(va()||ya(/^iPhone/i)||ya(/^iPad/i)||va()&&navigator.maxTouchPoints>1)&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(t){var e=this.props,n=e.isDisabled,r=e.menuIsOpen,o=this.state.isFocused;(o&&!n&&t.isDisabled||o&&r&&!t.menuIsOpen)&&this.focusInput(),o&&n&&!t.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!t.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(ei(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(t,e){this.props.onInputChange(t,e)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(t){var e=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===t?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 e.onMenuOpen()})}},{key:"focusValue",value:function(t){var e=this.state,n=e.selectValue,r=e.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(t){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 t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",e=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===t?o=i>0?i-1:r.length-1:"down"===t?o=(i+1)%r.length:"pageup"===t?(o=i-e)<0&&(o=0):"pagedown"===t?(o=i+e)>r.length-1&&(o=r.length-1):"last"===t&&(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(wa):Rn(Rn({},wa),this.props.theme):wa}},{key:"getCommonProps",value:function(){var t=this.clearValue,e=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:t,cx:e,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 t=this.props,e=t.isClearable,n=t.isMulti;return void 0===e?n:e}},{key:"isOptionDisabled",value:function(t,e){return Ta(this.props,t,e)}},{key:"isOptionSelected",value:function(t,e){return Aa(this.props,t,e)}},{key:"filterOption",value:function(t,e){return Ia(this.props,t,e)}},{key:"formatOptionLabel",value:function(t,e){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(t,{context:e,inputValue:n,selectValue:r})}return this.getOptionLabel(t)}},{key:"formatGroupLabel",value:function(t){return this.props.formatGroupLabel(t)}},{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 t=this.props,n=t.isDisabled,r=t.isSearchable,o=t.inputId,i=t.inputValue,a=t.tabIndex,s=t.form,c=t.menuIsOpen,l=t.required,p=this.getComponents().Input,f=this.state,d=f.inputIsHidden,h=f.ariaSelection,g=this.commonProps,m=o||this.getElementId("input"),y=Rn(Rn(Rn({"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":l,role:"combobox","aria-activedescendant":this.state.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?u.createElement(p,(0,e.A)({},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)):u.createElement(na,(0,e.A)({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Yo,onFocus:this.onInputFocus,disabled:n,tabIndex:a,inputMode:"none",form:s,value:""},y))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,n=this.getComponents(),r=n.MultiValue,o=n.MultiValueContainer,i=n.MultiValueLabel,a=n.MultiValueRemove,s=n.SingleValue,c=n.Placeholder,l=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:u.createElement(c,(0,e.A)({},l,{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(t.getOptionLabel(n),"-").concat(t.getOptionValue(n));return u.createElement(r,(0,e.A)({},l,{components:{Container:o,Label:i,Remove:a},isFocused:c,isDisabled:d,key:p,index:s,removeProps:{onClick:function(){return t.removeValue(n)},onTouchEnd:function(){return t.removeValue(n)},onMouseDown:function(t){t.preventDefault()}},data:n}),t.formatOptionLabel(n,"value"))});if(g)return null;var _=v[0];return u.createElement(s,(0,e.A)({},l,{data:_,isDisabled:d}),this.formatOptionLabel(_,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents().ClearIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,i=r.isLoading,a=this.state.isFocused;if(!this.isClearable()||!t||o||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return u.createElement(t,(0,e.A)({},n,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents().LoadingIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,i=r.isLoading,a=this.state.isFocused;return t&&i?u.createElement(t,(0,e.A)({},n,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),n=t.DropdownIndicator,r=t.IndicatorSeparator;if(!n||!r)return null;var o=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return u.createElement(r,(0,e.A)({},o,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents().DropdownIndicator;if(!t)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 u.createElement(t,(0,e.A)({},n,{innerProps:i,isDisabled:r,isFocused:o}))}},{key:"renderMenu",value:function(){var t=this,n=this.getComponents(),r=n.Group,o=n.GroupHeading,i=n.Menu,a=n.MenuList,s=n.MenuPortal,c=n.LoadingMessage,l=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,_=h.menuIsOpen,E=h.menuPlacement,S=h.menuPosition,k=h.menuPortalTarget,C=h.menuShouldBlockScroll,M=h.menuShouldScrollIntoView,O=h.noOptionsMessage,x=h.onMenuScrollToTop,D=h.onMenuScrollToBottom;if(!_)return null;var T,A=function(n,r){var o=n.type,i=n.data,a=n.isDisabled,s=n.isSelected,c=n.label,l=n.value,h=d===i,g=a?void 0:function(){return t.onOptionHover(i)},m=a?void 0:function(){return t.selectOption(i)},y="".concat(t.getElementId("option"),"-").concat(r),v={id:y,onClick:m,onMouseMove:g,onMouseOver:g,tabIndex:-1,role:"option","aria-selected":t.state.isAppleDevice?void 0:s};return u.createElement(p,(0,e.A)({},f,{innerProps:v,data:i,isDisabled:a,isSelected:s,key:y,label:c,type:o,value:l,isFocused:h,innerRef:h?t.getFocusedOptionRef:void 0}),t.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(t.getElementId("group"),"-").concat(s),l="".concat(c,"-heading");return u.createElement(r,(0,e.A)({},f,{key:c,data:i,options:a,Heading:o,headingProps:{id:l,data:n.data},label:t.formatGroupLabel(n.data)}),n.options.map(function(t){return A(t,"".concat(s,"-").concat(t.index))}))}if("option"===n.type)return A(n,"".concat(n.index))});else if(y){var I=v({inputValue:m});if(null===I)return null;T=u.createElement(c,f,I)}else{var j=O({inputValue:m});if(null===j)return null;T=u.createElement(l,f,j)}var N={minMenuHeight:b,maxMenuHeight:w,menuPlacement:E,menuPosition:S,menuShouldScrollIntoView:M},L=u.createElement(mi,(0,e.A)({},f,N),function(n){var r=n.ref,o=n.placerProps,s=o.placement,c=o.maxHeight;return u.createElement(i,(0,e.A)({},f,N,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:y,placement:s}),u.createElement(ha,{captureEnabled:g,onTopArrive:x,onBottomArrive:D,lockEnabled:C},function(n){return u.createElement(a,(0,e.A)({},f,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:"listbox","aria-multiselectable":f.isMulti,id:t.getElementId("listbox")},isLoading:y,maxHeight:c,focusedOption:d}),T)}))});return k||"fixed"===S?u.createElement(s,(0,e.A)({},f,{appendTo:k,controlElement:this.controlRef,menuPlacement:E,menuPosition:S}),L):L}},{key:"renderFormField",value:function(){var t=this,e=this.props,n=e.delimiter,r=e.isDisabled,o=e.isMulti,i=e.name,a=e.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!r)return u.createElement(ma,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var c=s.map(function(e){return t.getOptionValue(e)}).join(n);return u.createElement("input",{name:i,type:"hidden",value:c})}var l=s.length>0?s.map(function(e,n){return u.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:t.getOptionValue(e)})}):u.createElement("input",{name:i,type:"hidden",value:""});return u.createElement("div",null,l)}var p=s[0]?this.getOptionValue(s[0]):"";return u.createElement("input",{name:i,type:"hidden",value:p})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,n=this.state,r=n.ariaSelection,o=n.focusedOption,i=n.focusedValue,a=n.isFocused,s=n.selectValue,c=this.getFocusableOptions();return u.createElement(Vi,(0,e.A)({},t,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:o,focusedValue:i,isFocused:a,selectValue:s,focusableOptions:c,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var t=this.getComponents(),n=t.Control,r=t.IndicatorsContainer,o=t.SelectContainer,i=t.ValueContainer,a=this.props,s=a.className,c=a.id,l=a.isDisabled,p=a.menuIsOpen,f=this.state.isFocused,d=this.commonProps=this.getCommonProps();return u.createElement(o,(0,e.A)({},d,{className:s,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:f}),this.renderLiveRegion(),u.createElement(n,(0,e.A)({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:f,menuIsOpen:p}),u.createElement(i,(0,e.A)({},d,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),u.createElement(r,(0,e.A)({},d,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n=e.prevProps,r=e.clearFocusValueOnUpdate,o=e.inputIsHiddenAfterUpdate,i=e.ariaSelection,a=e.isFocused,s=e.prevWasFocused,c=e.instancePrefix,u=t.options,l=t.value,p=t.menuIsOpen,f=t.inputValue,d=t.isMulti,h=Go(l),g={};if(n&&(l!==n.value||u!==n.options||p!==n.menuIsOpen||f!==n.inputValue)){var m=p?function(t,e){return ka(Sa(t,e))}(t,h):[],y=p?Ca(Sa(t,h),"".concat(c,"-option")):[],v=r?function(t,e){var n=t.focusedValue,r=t.selectValue.indexOf(n);if(r>-1){if(e.indexOf(n)>-1)return n;if(r<e.length)return e[r]}return null}(e,h):null,b=function(t,e){var n=t.focusedOption;return n&&e.indexOf(n)>-1?n:e[0]}(e,m);g={selectValue:h,focusedOption:b,focusedOptionId:Oa(y,b),focusableOptionsWithIds:y,focusedValue:v,clearFocusValueOnUpdate:!1}}var w=null!=o&&t!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},_=i,E=a&&s;return a&&!E&&(_={value:ci(d,h,h[0]||null),options:h,action:"initial-input-focus"},E=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(_=null),Rn(Rn(Rn({},g),w),{},{prevProps:t,ariaSelection:_,prevWasFocused:E})}}]),i}(u.Component);La.defaultProps=_a;var Pa=(0,u.forwardRef)(function(t,n){var r=function(t){var e=t.defaultInputValue,n=void 0===e?"":e,r=t.defaultMenuIsOpen,o=void 0!==r&&r,i=t.defaultValue,a=void 0===i?null:i,s=t.inputValue,c=t.menuIsOpen,l=t.onChange,p=t.onInputChange,f=t.onMenuClose,d=t.onMenuOpen,h=t.value,g=Ge(t,zn),m=(0,u.useState)(void 0!==s?s:n),y=(0,Ke.A)(m,2),v=y[0],b=y[1],w=(0,u.useState)(void 0!==c?c:o),_=(0,Ke.A)(w,2),E=_[0],S=_[1],k=(0,u.useState)(void 0!==h?h:a),C=(0,Ke.A)(k,2),M=C[0],O=C[1],x=(0,u.useCallback)(function(t,e){"function"==typeof l&&l(t,e),O(t)},[l]),D=(0,u.useCallback)(function(t,e){var n;"function"==typeof p&&(n=p(t,e)),b(void 0!==n?n:t)},[p]),T=(0,u.useCallback)(function(){"function"==typeof d&&d(),S(!0)},[d]),A=(0,u.useCallback)(function(){"function"==typeof f&&f(),S(!1)},[f]),I=void 0!==s?s:v,j=void 0!==c?c:E,N=void 0!==h?h:M;return Rn(Rn({},g),{},{inputValue:I,menuIsOpen:j,onChange:x,onInputChange:D,onMenuClose:A,onMenuOpen:T,value:N})}(t);return u.createElement(La,(0,e.A)({ref:n},r))}),Ra=Pa;function za(t,e,n){this.x=t,this.y=e,this.time=n||(new Date).getTime()}function Ba(t,e,n,r){this.startPoint=t,this.control1=e,this.control2=n,this.endPoint=r}function Fa(t,e){var n=this,r=e||{};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(t,e,n){var r,o,i,a=null,s=0;n||(n={});var c=function(){s=!1===n.leading?0:Date.now(),a=null,i=t.apply(r,o),a||(r=o=null)};return function(){var u=Date.now();s||!1!==n.leading||(s=u);var l=e-(u-s);return r=this,o=arguments,l<=0||l>e?(a&&(clearTimeout(a),a=null),s=u,i=t.apply(r,o),a||(r=o=null)):a||!1===n.trailing||(a=setTimeout(c,l)),i}}(Fa.prototype._strokeUpdate,this.throttle):this._strokeMoveUpdate=Fa.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=t,this._ctx=t.getContext("2d"),this.clear(),this._handleMouseDown=function(t){1===t.which&&(n._mouseButtonDown=!0,n._strokeBegin(t))},this._handleMouseMove=function(t){n._mouseButtonDown&&n._strokeMoveUpdate(t)},this._handleMouseUp=function(t){1===t.which&&n._mouseButtonDown&&(n._mouseButtonDown=!1,n._strokeEnd(t))},this._handleTouchStart=function(t){if(1===t.targetTouches.length){var e=t.changedTouches[0];n._strokeBegin(e)}},this._handleTouchMove=function(t){t.preventDefault();var e=t.targetTouches[0];n._strokeMoveUpdate(e)},this._handleTouchEnd=function(t){t.target===n._canvas&&(t.preventDefault(),n._strokeEnd(t))},this.on()}za.prototype.velocityFrom=function(t){return this.time!==t.time?this.distanceTo(t)/(this.time-t.time):1},za.prototype.distanceTo=function(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))},za.prototype.equals=function(t){return this.x===t.x&&this.y===t.y&&this.time===t.time},Ba.prototype.length=function(){for(var t=0,e=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-e,c=a-n;t+=Math.sqrt(s*s+c*c)}e=i,n=a}return t},Ba.prototype._point=function(t,e,n,r,o){return e*(1-t)*(1-t)*(1-t)+3*n*(1-t)*(1-t)*t+3*r*(1-t)*t*t+o*t*t*t},Fa.prototype.clear=function(){var t=this._ctx,e=this._canvas;t.fillStyle=this.backgroundColor,t.clearRect(0,0,e.width,e.height),t.fillRect(0,0,e.width,e.height),this._data=[],this._reset(),this._isEmpty=!0},Fa.prototype.fromDataURL=function(t){var e=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=t,r.onload=function(){e._ctx.drawImage(r,0,0,i,a)},this._isEmpty=!1},Fa.prototype.toDataURL=function(t){var e;if("image/svg+xml"===t)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(e=this._canvas).toDataURL.apply(e,[t].concat(r))},Fa.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()},Fa.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)},Fa.prototype.isEmpty=function(){return this._isEmpty},Fa.prototype._strokeBegin=function(t){this._data.push([]),this._reset(),this._strokeUpdate(t),"function"==typeof this.onBegin&&this.onBegin(t)},Fa.prototype._strokeUpdate=function(t){var e=t.clientX,n=t.clientY,r=this._createPoint(e,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})}},Fa.prototype._strokeEnd=function(t){var e=this.points.length>2,n=this.points[0];if(!e&&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(t)},Fa.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)},Fa.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)},Fa.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor},Fa.prototype._createPoint=function(t,e,n){var r=this._canvas.getBoundingClientRect();return new za(t-r.left,e-r.top,n||(new Date).getTime())},Fa.prototype._addPoint=function(t){var e=this.points;if(e.push(t),e.length>2){3===e.length&&e.unshift(e[0]);var n=this._calculateCurveControlPoints(e[0],e[1],e[2]).c2,r=this._calculateCurveControlPoints(e[1],e[2],e[3]).c1,o=new Ba(e[1],n,r,e[2]),i=this._calculateCurveWidths(o);return e.shift(),{curve:o,widths:i}}return{}},Fa.prototype._calculateCurveControlPoints=function(t,e,n){var r=t.x-e.x,o=t.y-e.y,i=e.x-n.x,a=e.y-n.y,s=(t.x+e.x)/2,c=(t.y+e.y)/2,u=(e.x+n.x)/2,l=(e.y+n.y)/2,p=Math.sqrt(r*r+o*o),f=Math.sqrt(i*i+a*a),d=f/(p+f),h=u+(s-u)*d,g=l+(c-l)*d,m=e.x-h,y=e.y-g;return{c1:new za(s+m,c+y),c2:new za(u+m,l+y)}},Fa.prototype._calculateCurveWidths=function(t){var e=t.startPoint,n=t.endPoint,r={start:null,end:null},o=this.velocityFilterWeight*n.velocityFrom(e)+(1-this.velocityFilterWeight)*this._lastVelocity,i=this._strokeWidth(o);return r.start=this._lastWidth,r.end=i,this._lastVelocity=o,this._lastWidth=i,r},Fa.prototype._strokeWidth=function(t){return Math.max(this.maxWidth/(t+1),this.minWidth)},Fa.prototype._drawPoint=function(t,e,n){var r=this._ctx;r.moveTo(t,e),r.arc(t,e,n,0,2*Math.PI,!1),this._isEmpty=!1},Fa.prototype._drawCurve=function(t,e,n){var r=this._ctx,o=n-e,i=Math.floor(t.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*t.startPoint.x;d+=3*p*s*t.control1.x,d+=3*l*c*t.control2.x,d+=u*t.endPoint.x;var h=f*t.startPoint.y;h+=3*p*s*t.control1.y,h+=3*l*c*t.control2.y,h+=u*t.endPoint.y;var g=e+u*o;this._drawPoint(d,h,g)}r.closePath(),r.fill()},Fa.prototype._drawDot=function(t){var e=this._ctx,n="function"==typeof this.dotSize?this.dotSize():this.dotSize;e.beginPath(),this._drawPoint(t.x,t.y,n),e.closePath(),e.fill()},Fa.prototype._fromData=function(t,e,n){for(var r=0;r<t.length;r+=1){var o=t[r];if(o.length>1)for(var i=0;i<o.length;i+=1){var a=o[i],s=new za(a.x,a.y,a.time),c=a.color;if(0===i)this.penColor=c,this._reset(),this._addPoint(s);else if(i!==o.length-1){var u=this._addPoint(s),l=u.curve,p=u.widths;l&&p&&e(l,p,c)}}else this._reset(),n(o[0])}},Fa.prototype._toSVG=function(){var t=this,e=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(e,function(t,e,n){var r=document.createElement("path");if(!(isNaN(t.control1.x)||isNaN(t.control1.y)||isNaN(t.control2.x)||isNaN(t.control2.y))){var o="M "+t.startPoint.x.toFixed(3)+","+t.startPoint.y.toFixed(3)+" C "+t.control1.x.toFixed(3)+","+t.control1.y.toFixed(3)+" "+t.control2.x.toFixed(3)+","+t.control2.y.toFixed(3)+" "+t.endPoint.x.toFixed(3)+","+t.endPoint.y.toFixed(3);r.setAttribute("d",o),r.setAttribute("stroke-width",(2.25*e.end).toFixed(3)),r.setAttribute("stroke",n),r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),a.appendChild(r)}},function(e){var n=document.createElement("circle"),r="function"==typeof t.dotSize?t.dotSize():t.dotSize;n.setAttribute("r",r),n.setAttribute("cx",e.x),n.setAttribute("cy",e.y),n.setAttribute("fill",e.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>")},Fa.prototype.fromData=function(t){var e=this;this.clear(),this._fromData(t,function(t,n){return e._drawCurve(t,n.start,n.end)},function(t){return e._drawDot(t)}),this._data=t},Fa.prototype.toData=function(){return this._data};const Ua=Fa;var Ha=a(6567),Ka=["canvasProps","clearOnResize"],Va=function(t){(0,c.A)(i,t);var o=Fn(i);function i(){var t;(0,n.A)(this,i);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return(t=o.call.apply(o,[this].concat(a))).staticThis=t.constructor,t._sigPad=null,t._canvas=null,t.setRef=function(e){t._canvas=e,null===t._canvas&&(t._sigPad=null)},t._excludeOurProps=function(){var e=t.props;return e.canvasProps,e.clearOnResize,Ge(e,Ka)},t.componentDidMount=function(){var e=t.getCanvas();t._sigPad=new Ua(e,t._excludeOurProps()),t._resizeCanvas(),t.on()},t.componentWillUnmount=function(){t.off()},t.componentDidUpdate=function(){Object.assign(t._sigPad,t._excludeOurProps())},t.getCanvas=function(){if(null===t._canvas)throw t.staticThis.refNullError;return t._canvas},t.getTrimmedCanvas=function(){var e=t.getCanvas(),n=document.createElement("canvas");return n.width=e.width,n.height=e.height,n.getContext("2d").drawImage(e,0,0),Ha(n)},t.getSignaturePad=function(){if(null===t._sigPad)throw t.staticThis.refNullError;return t._sigPad},t._checkClearOnResize=function(){t.props.clearOnResize&&t._resizeCanvas()},t._resizeCanvas=function(){var e,n,r=null!==(e=t.props.canvasProps)&&void 0!==e?e:{},o=r.width,i=r.height;if(void 0===o||void 0===i){var a=t.getCanvas(),s=Math.max(null!==(n=window.devicePixelRatio)&&void 0!==n?n:1,1);void 0===o&&(a.width=a.offsetWidth*s),void 0===i&&(a.height=a.offsetHeight*s),a.getContext("2d").scale(s,s),t.clear()}},t.render=function(){var n=t.props.canvasProps;return u.createElement("canvas",(0,e.A)({ref:t.setRef},n))},t.on=function(){return window.addEventListener("resize",t._checkClearOnResize),t.getSignaturePad().on()},t.off=function(){return window.removeEventListener("resize",t._checkClearOnResize),t.getSignaturePad().off()},t.clear=function(){return t.getSignaturePad().clear()},t.isEmpty=function(){return t.getSignaturePad().isEmpty()},t.fromDataURL=function(e,n){return t.getSignaturePad().fromDataURL(e,n)},t.toDataURL=function(e,n){return t.getSignaturePad().toDataURL(e,n)},t.fromData=function(e){return t.getSignaturePad().fromData(e)},t.toData=function(){return t.getSignaturePad().toData()},t}return(0,r.A)(i)}(u.Component);Va.propTypes={velocityFilterWeight:Qe.number,minWidth:Qe.number,maxWidth:Qe.number,minDistance:Qe.number,dotSize:Qe.oneOfType([Qe.number,Qe.func]),penColor:Qe.string,throttle:Qe.number,onEnd:Qe.func,onBegin:Qe.func,canvasProps:Qe.object,clearOnResize:Qe.bool},Va.defaultProps={clearOnResize:!0},Va.refNullError=new Error("react-signature-canvas is currently mounting or unmounting: React refs are null during this phase.");var Ya=a(7436),qa=a.n(Ya),Wa=a(6942),Ga=a.n(Wa);function Qa(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Qa=function(){return!!t})()}var Za=function(t){function e(t){var r;(0,n.A)(this,e),r=function(t,e,n){return e=(0,i.A)(e),(0,o.A)(t,Qa()?Reflect.construct(e,n||[],(0,i.A)(t).constructor):e.apply(t,n))}(this,e,[t]),r.min=0,r.max=t.ratingAmount||5,r.handleMouseLeave=r.handleMouseLeave.bind(r),r.handleMouseMove=r.handleMouseMove.bind(r),r.handleClick=r.handleClick.bind(r),r.rootNode=l().createRef(),r.ratingContainerNode=l().createRef();var a=t.rating,s={pos:a?r.getStarRatingPosition(a):0,rating:t.rating};return r.state={ratingCache:s,editing:t.editing||!t.rating,stars:5,rating:s.rating,pos:s.pos,glyph:r.getStars()},r}return(0,c.A)(e,t),(0,r.A)(e,[{key:"getStars",value:function(){for(var t="",e=this.props.ratingAmount,n=0;n<e;n++)t+="★";return t}},{key:"componentDidMount",value:function(){this.props.rating&&this.setState({pos:this.getStarRatingPosition(this.props.rating),rating:this.props.rating})}},{key:"getPosition",value:function(t){return this.rootNode.current?t.pageX-this.rootNode.current.getBoundingClientRect().left:0}},{key:"applyPrecision",value:function(t,e){return parseFloat(t.toFixed(e))}},{key:"getDecimalPlaces",value:function(t){var e="".concat(t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}},{key:"getWidthFromValue",value:function(t){if(null==t||"number"!=typeof t)return 0;var e=this.min,n=this.max;return t<=e||e===n?0:t>=n?100:(t-e)/(n-e)*100}},{key:"getValueFromPosition",value:function(t){if(!this.ratingContainerNode.current)return 0;var e=this.getDecimalPlaces(this.props.step),n=this.ratingContainerNode.current.offsetWidth;if(!n)return 0;var r=(this.max-this.min)*t/(n*this.props.step);r=Math.ceil(r);var o=this.applyPrecision(parseFloat(this.min+r*this.props.step),e);return Math.max(Math.min(o,this.max),this.min)}},{key:"calculate",value:function(t){var e=this.getValueFromPosition(t);return{width:"".concat(this.getWidthFromValue(e),"%"),val:e}}},{key:"getStarRatingPosition",value:function(t){return"".concat(this.getWidthFromValue(t),"%")}},{key:"getRatingEvent",value:function(t){var e=this.getPosition(t);return this.calculate(e)}},{key:"getSvg",value:function(){return l().createElement("svg",{className:"react-star-rating__star",viewBox:"0 0 286 272",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},l().createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},l().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(t){if(!this.props.disabled&&(this.state.editing||this.props.editing)){var e=this.getRatingEvent(t);this.setState({pos:e.width,rating:e.val})}}},{key:"shouldComponentUpdate",value:function(t,e){return t.rating!==this.props.rating||e.ratingCache.rating!==this.state.ratingCache.rating||e.rating!==this.state.rating||e.pos!==this.state.pos}},{key:"componentDidUpdate",value:function(t){t.rating!==this.props.rating&&this.props.rating!==this.state.rating&&this.setState({pos:this.getStarRatingPosition(this.props.rating),rating:this.props.rating,ratingCache:{pos:this.getStarRatingPosition(this.props.rating),rating:this.props.rating}})}},{key:"handleClick",value:function(t){if(this.props.disabled)return t.stopPropagation(),t.preventDefault(),!1;var e=this.getRatingEvent(t),n={pos:e.width,rating:e.val,caption:this.props.caption,name:this.props.name};return this.setState({ratingCache:n,pos:e.width,rating:e.val}),this.props.onRatingClick(t,n),!0}},{key:"treatName",value:function(t){return"string"==typeof t?t.toLowerCase().split(" ").join("_"):null}},{key:"render",value:function(){var t,e=Ga()((0,Ie.A)((0,Ie.A)({"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)),n=!this.props.disabled&&(this.state.editing||this.props.editing);return t=n?l().createElement("div",{ref:this.ratingContainerNode,className:"rating-container rating-gly-star","data-content":this.state.glyph,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onClick:this.handleClick},l().createElement("div",{className:"rating-stars","data-content":this.state.glyph,style:{width:this.state.pos}})):l().createElement("div",{ref:this.ratingContainerNode,className:"rating-container rating-gly-star","data-content":this.state.glyph},l().createElement("div",{className:"rating-stars","data-content":this.state.glyph,style:{width:this.state.pos}})),l().createElement("span",{className:"react-star-rating"},l().createElement("span",{ref:this.rootNode,style:{cursor:n?"pointer":"default"},className:e},t,l().createElement("input",{type:"hidden",name:this.props.name,value:this.state.rating||0,style:{display:"none !important",width:65},min:this.min,max:this.max,readOnly:!0})))}}])}(l().Component);function Ja(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function $a(t){Ja(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===(0,mo.A)(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"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 Xa(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function ts(t,e){return Ja(2,arguments),function(t,e){Ja(2,arguments);var n=$a(t).getTime(),r=Xa(e);return new Date(n+r)}(t,-Xa(e))}function es(t){Ja(1,arguments);var e=$a(t),n=e.getUTCDay(),r=(n<1?7:0)+n-1;return e.setUTCDate(e.getUTCDate()-r),e.setUTCHours(0,0,0,0),e}function ns(t){Ja(1,arguments);var e=$a(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=es(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=es(i);return e.getTime()>=o.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function rs(t){Ja(1,arguments);var e=$a(t),n=es(e).getTime()-function(t){Ja(1,arguments);var e=ns(t),n=new Date(0);return n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0),es(n)}(e).getTime();return Math.round(n/6048e5)+1}Za.propTypes={name:Ze().string.isRequired,caption:Ze().string,ratingAmount:Ze().number.isRequired,rating:Ze().number,onRatingClick:Ze().func,disabled:Ze().bool,editing:Ze().bool,size:Ze().string},Za.defaultProps={step:.5,ratingAmount:5,onRatingClick:function(){},disabled:!1};var os={};function is(){return os}function as(t,e){var n,r,o,i,a,s,c,u;Ja(1,arguments);var l=is(),p=Xa(null!==(n=null!==(r=null!==(o=null!==(i=null==e?void 0:e.weekStartsOn)&&void 0!==i?i:null==e||null===(a=e.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=$a(t),d=f.getUTCDay(),h=(d<p?7:0)+d-p;return f.setUTCDate(f.getUTCDate()-h),f.setUTCHours(0,0,0,0),f}function ss(t,e){var n,r,o,i,a,s,c,u;Ja(1,arguments);var l=$a(t),p=l.getUTCFullYear(),f=is(),d=Xa(null!==(n=null!==(r=null!==(o=null!==(i=null==e?void 0:e.firstWeekContainsDate)&&void 0!==i?i:null==e||null===(a=e.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=as(h,e),m=new Date(0);m.setUTCFullYear(p,0,d),m.setUTCHours(0,0,0,0);var y=as(m,e);return l.getTime()>=g.getTime()?p+1:l.getTime()>=y.getTime()?p:p-1}function cs(t,e){Ja(1,arguments);var n=$a(t),r=as(n,e).getTime()-function(t,e){var n,r,o,i,a,s,c,u;Ja(1,arguments);var l=is(),p=Xa(null!==(n=null!==(r=null!==(o=null!==(i=null==e?void 0:e.firstWeekContainsDate)&&void 0!==i?i:null==e||null===(a=e.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=ss(t,e),d=new Date(0);return d.setUTCFullYear(f,0,p),d.setUTCHours(0,0,0,0),as(d,e)}(n,e).getTime();return Math.round(r/6048e5)+1}function us(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length<e;)r="0"+r;return n+r}var ls={y:function(t,e){var n=t.getUTCFullYear(),r=n>0?n:1-n;return us("yy"===e?r%100:r,e.length)},M:function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):us(n+1,2)},d:function(t,e){return us(t.getUTCDate(),e.length)},a:function(t,e){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){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(t,e){return us(t.getUTCHours()%12||12,e.length)},H:function(t,e){return us(t.getUTCHours(),e.length)},m:function(t,e){return us(t.getUTCMinutes(),e.length)},s:function(t,e){return us(t.getUTCSeconds(),e.length)},S:function(t,e){var n=e.length,r=t.getUTCMilliseconds();return us(Math.floor(r*Math.pow(10,n-3)),e.length)}};const ps=ls;var fs={G:function(t,e,n){var r=t.getUTCFullYear()>0?1:0;switch(e){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(t,e,n){if("yo"===e){var r=t.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return ps.y(t,e)},Y:function(t,e,n,r){var o=ss(t,r),i=o>0?o:1-o;return"YY"===e?us(i%100,2):"Yo"===e?n.ordinalNumber(i,{unit:"year"}):us(i,e.length)},R:function(t,e){return us(ns(t),e.length)},u:function(t,e){return us(t.getUTCFullYear(),e.length)},Q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return us(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(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return us(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(t,e,n){var r=t.getUTCMonth();switch(e){case"M":case"MM":return ps.M(t,e);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(t,e,n){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return us(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(t,e,n,r){var o=cs(t,r);return"wo"===e?n.ordinalNumber(o,{unit:"week"}):us(o,e.length)},I:function(t,e,n){var r=rs(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):us(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):ps.d(t,e)},D:function(t,e,n){var r=function(t){Ja(1,arguments);var e=$a(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=n-e.getTime();return Math.floor(r/864e5)+1}(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):us(r,e.length)},E:function(t,e,n){var r=t.getUTCDay();switch(e){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(t,e,n,r){var o=t.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return us(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(t,e,n,r){var o=t.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return us(i,e.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(t,e,n){var r=t.getUTCDay(),o=0===r?7:r;switch(e){case"i":return String(o);case"ii":return us(o,e.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(t,e,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(e){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(t,e,n){var r,o=t.getUTCHours();switch(r=12===o?"noon":0===o?"midnight":o/12>=1?"pm":"am",e){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(t,e,n){var r,o=t.getUTCHours();switch(r=o>=17?"evening":o>=12?"afternoon":o>=4?"morning":"night",e){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(t,e,n){if("ho"===e){var r=t.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return ps.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):ps.H(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):us(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):us(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):ps.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):ps.s(t,e)},S:function(t,e){return ps.S(t,e)},X:function(t,e,n,r){var o=(r._originalDate||t).getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return hs(o);case"XXXX":case"XX":return gs(o);default:return gs(o,":")}},x:function(t,e,n,r){var o=(r._originalDate||t).getTimezoneOffset();switch(e){case"x":return hs(o);case"xxxx":case"xx":return gs(o);default:return gs(o,":")}},O:function(t,e,n,r){var o=(r._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+ds(o,":");default:return"GMT"+gs(o,":")}},z:function(t,e,n,r){var o=(r._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+ds(o,":");default:return"GMT"+gs(o,":")}},t:function(t,e,n,r){var o=r._originalDate||t;return us(Math.floor(o.getTime()/1e3),e.length)},T:function(t,e,n,r){return us((r._originalDate||t).getTime(),e.length)}};function ds(t,e){var n=t>0?"-":"+",r=Math.abs(t),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=e||"";return n+String(o)+a+us(i,2)}function hs(t,e){return t%60==0?(t>0?"-":"+")+us(Math.abs(t)/60,2):gs(t,e)}function gs(t,e){var n=e||"",r=t>0?"-":"+",o=Math.abs(t);return r+us(Math.floor(o/60),2)+n+us(o%60,2)}const ms=fs;var ys=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},vs=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}};const bs={p:vs,P:function(t,e){var n,r=t.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return ys(t,e);switch(o){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;default:n=e.dateTime({width:"full"})}return n.replace("{{date}}",ys(o,e)).replace("{{time}}",vs(i,e))}};function ws(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var _s=["D","DD"],Es=["YY","YYYY"];function Ss(t){return-1!==_s.indexOf(t)}function ks(t){return-1!==Es.indexOf(t)}function Cs(t,e,n){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) 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"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) 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 Ms={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 Os(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const xs={date:Os({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Os({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:Os({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var Ds={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Ts(t){return function(e,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=t.formattingValues[i]||t.formattingValues[o]}else{var a=t.defaultWidth,s=null!=n&&n.width?String(n.width):t.defaultWidth;r=t.values[s]||t.values[a]}return r[t.argumentCallback?t.argumentCallback(e):e]}}const As={ordinalNumber:function(t,e){var n=Number(t),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:Ts({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Ts({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ts({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:Ts({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:Ts({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 Is(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],i=e.match(o);if(!i)return null;var a,s=i[0],c=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],u=Array.isArray(c)?function(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}(c,function(t){return t.test(s)}):function(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}(c,function(t){return t.test(s)});return a=t.valueCallback?t.valueCallback(u):u,{value:a=n.valueCallback?n.valueCallback(a):a,rest:e.slice(s.length)}}}var js,Ns={ordinalNumber:(js={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(js.matchPattern);if(!n)return null;var r=n[0],o=t.match(js.parsePattern);if(!o)return null;var i=js.valueCallback?js.valueCallback(o[0]):o[0];return{value:i=e.valueCallback?e.valueCallback(i):i,rest:t.slice(r.length)}}),era:Is({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:Is({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(t){return t+1}}),month:Is({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:Is({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:Is({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 Ls={code:"en-US",formatDistance:function(t,e,n){var r,o=Ms[t];return r="string"==typeof o?o:1===e?o.one:o.other.replace("{{count}}",e.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:xs,formatRelative:function(t,e,n,r){return Ds[t]},localize:As,match:Ns,options:{weekStartsOn:0,firstWeekContainsDate:1}};var Ps=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Rs=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zs=/^'([^]*?)'?$/,Bs=/''/g,Fs=/[a-zA-Z]/;function Us(t,e,n){var r,o,i,a,s,c,u,l,p,f,d,h,g,m,y,v,b,w;Ja(2,arguments);var _=String(e),E=is(),S=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:E.locale)&&void 0!==r?r:Ls,k=Xa(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(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=Xa(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(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!S.localize)throw new RangeError("locale must contain localize property");if(!S.formatLong)throw new RangeError("locale must contain formatLong property");var M=$a(t);if(!function(t){if(Ja(1,arguments),!function(t){return Ja(1,arguments),t instanceof Date||"object"===(0,mo.A)(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var e=$a(t);return!isNaN(Number(e))}(M))throw new RangeError("Invalid time value");var O=ts(M,ws(M)),x={firstWeekContainsDate:k,weekStartsOn:C,locale:S,_originalDate:M};return _.match(Rs).map(function(t){var e=t[0];return"p"===e||"P"===e?(0,bs[e])(t,S.formatLong):t}).join("").match(Ps).map(function(r){if("''"===r)return"'";var o,i,a=r[0];if("'"===a)return(i=(o=r).match(zs))?i[1].replace(Bs,"'"):o;var s=ms[a];if(s)return null!=n&&n.useAdditionalWeekYearTokens||!ks(r)||Cs(r,e,String(t)),null!=n&&n.useAdditionalDayOfYearTokens||!Ss(r)||Cs(r,e,String(t)),s(O,r,S.localize,x);if(a.match(Fs))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return r}).join("")}var Hs=a(7800);function Ks(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=(0,Hs.A)(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Vs(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}var Ys=a(9417),qs=function(){function t(){(0,n.A)(this,t),(0,Ie.A)(this,"priority",void 0),(0,Ie.A)(this,"subPriority",0)}return(0,r.A)(t,[{key:"validate",value:function(t,e){return!0}}]),t}(),Ws=function(t){(0,c.A)(o,t);var e=Fn(o);function o(t,r,i,a,s){var c;return(0,n.A)(this,o),(c=e.call(this)).value=t,c.validateValue=r,c.setValue=i,c.priority=a,s&&(c.subPriority=s),c}return(0,r.A)(o,[{key:"validate",value:function(t,e){return this.validateValue(t,this.value,e)}},{key:"set",value:function(t,e,n){return this.setValue(t,e,this.value,n)}}]),o}(qs),Gs=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",10),(0,Ie.A)((0,Ys.A)(t),"subPriority",-1),t}return(0,r.A)(o,[{key:"set",value:function(t,e){if(e.timestampIsSet)return t;var n=new Date(0);return n.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),n.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),n}}]),o}(qs),Qs=function(){function t(){(0,n.A)(this,t),(0,Ie.A)(this,"incompatibleTokens",void 0),(0,Ie.A)(this,"priority",void 0),(0,Ie.A)(this,"subPriority",void 0)}return(0,r.A)(t,[{key:"run",value:function(t,e,n,r){var o=this.parse(t,e,n,r);return o?{setter:new Ws(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(t,e,n){return!0}}]),t}(),Zs=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",140),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens",["R","u","t","T"]),t}return(0,r.A)(o,[{key:"parse",value:function(t,e,n){switch(e){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}}},{key:"set",value:function(t,e,n){return e.era=n,t.setUTCFullYear(n,0,1),t.setUTCHours(0,0,0,0),t}}]),o}(Qs),Js=(Math.pow(10,8),/^(1[0-2]|0?\d)/),$s=/^(3[0-1]|[0-2]?\d)/,Xs=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,tc=/^(5[0-3]|[0-4]?\d)/,ec=/^(2[0-3]|[0-1]?\d)/,nc=/^(2[0-4]|[0-1]?\d)/,rc=/^(1[0-1]|0?\d)/,oc=/^(1[0-2]|0?\d)/,ic=/^[0-5]?\d/,ac=/^[0-5]?\d/,sc=/^\d/,cc=/^\d{1,2}/,uc=/^\d{1,3}/,lc=/^\d{1,4}/,pc=/^-?\d+/,fc=/^-?\d/,dc=/^-?\d{1,2}/,hc=/^-?\d{1,3}/,gc=/^-?\d{1,4}/,mc=/^([+-])(\d{2})(\d{2})?|Z/,yc=/^([+-])(\d{2})(\d{2})|Z/,vc=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,bc=/^([+-])(\d{2}):(\d{2})|Z/,wc=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function _c(t,e){return t?{value:e(t.value),rest:t.rest}:t}function Ec(t,e){var n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function Sc(t,e){var n=e.match(t);return n?"Z"===n[0]?{value:0,rest:e.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:e.slice(n[0].length)}:null}function kc(t){return Ec(pc,t)}function Cc(t,e){switch(t){case 1:return Ec(sc,e);case 2:return Ec(cc,e);case 3:return Ec(uc,e);case 4:return Ec(lc,e);default:return Ec(new RegExp("^\\d{1,"+t+"}"),e)}}function Mc(t,e){switch(t){case 1:return Ec(fc,e);case 2:return Ec(dc,e);case 3:return Ec(hc,e);case 4:return Ec(gc,e);default:return Ec(new RegExp("^-?\\d{1,"+t+"}"),e)}}function Oc(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function xc(t,e){var n,r=e>0,o=r?e:1-e;if(o<=50)n=t||100;else{var i=o+50;n=t+100*Math.floor(i/100)-(t>=i%100?100:0)}return r?n:1-n}function Dc(t){return t%400==0||t%4==0&&t%100!=0}var Tc=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",130),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),t}return(0,r.A)(o,[{key:"parse",value:function(t,e,n){var r=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return _c(Cc(4,t),r);case"yo":return _c(n.ordinalNumber(t,{unit:"year"}),r);default:return _c(Cc(e.length,t),r)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,n){var r=t.getUTCFullYear();if(n.isTwoDigitYear){var o=xc(n.year,r);return t.setUTCFullYear(o,0,1),t.setUTCHours(0,0,0,0),t}var i="era"in e&&1!==e.era?1-n.year:n.year;return t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}}]),o}(Qs),Ac=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",130),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),t}return(0,r.A)(o,[{key:"parse",value:function(t,e,n){var r=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return _c(Cc(4,t),r);case"Yo":return _c(n.ordinalNumber(t,{unit:"year"}),r);default:return _c(Cc(e.length,t),r)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,n,r){var o=ss(t,r);if(n.isTwoDigitYear){var i=xc(n.year,o);return t.setUTCFullYear(i,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),as(t,r)}var a="era"in e&&1!==e.era?1-n.year:n.year;return t.setUTCFullYear(a,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),as(t,r)}}]),o}(Qs),Ic=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",130),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),t}return(0,r.A)(o,[{key:"parse",value:function(t,e){return Mc("R"===e?4:e.length,t)}},{key:"set",value:function(t,e,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),es(r)}}]),o}(Qs),jc=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",130),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),t}return(0,r.A)(o,[{key:"parse",value:function(t,e){return Mc("u"===e?4:e.length,t)}},{key:"set",value:function(t,e,n){return t.setUTCFullYear(n,0,1),t.setUTCHours(0,0,0,0),t}}]),o}(Qs),Nc=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",120),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),t}return(0,r.A)(o,[{key:"parse",value:function(t,e,n){switch(e){case"Q":case"QQ":return Cc(e.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,n){return t.setUTCMonth(3*(n-1),1),t.setUTCHours(0,0,0,0),t}}]),o}(Qs),Lc=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",120),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),t}return(0,r.A)(o,[{key:"parse",value:function(t,e,n){switch(e){case"q":case"qq":return Cc(e.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,n){return t.setUTCMonth(3*(n-1),1),t.setUTCHours(0,0,0,0),t}}]),o}(Qs),Pc=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),(0,Ie.A)((0,Ys.A)(t),"priority",110),t}return(0,r.A)(o,[{key:"parse",value:function(t,e,n){var r=function(t){return t-1};switch(e){case"M":return _c(Ec(Js,t),r);case"MM":return _c(Cc(2,t),r);case"Mo":return _c(n.ordinalNumber(t,{unit:"month"}),r);case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,n){return t.setUTCMonth(n,1),t.setUTCHours(0,0,0,0),t}}]),o}(Qs),Rc=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",110),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),t}return(0,r.A)(o,[{key:"parse",value:function(t,e,n){var r=function(t){return t-1};switch(e){case"L":return _c(Ec(Js,t),r);case"LL":return _c(Cc(2,t),r);case"Lo":return _c(n.ordinalNumber(t,{unit:"month"}),r);case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,n){return t.setUTCMonth(n,1),t.setUTCHours(0,0,0,0),t}}]),o}(Qs),zc=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",100),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),t}return(0,r.A)(o,[{key:"parse",value:function(t,e,n){switch(e){case"w":return Ec(tc,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return Cc(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,n,r){return as(function(t,e,n){Ja(2,arguments);var r=$a(t),o=Xa(e),i=cs(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*i),r}(t,n,r),r)}}]),o}(Qs),Bc=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",100),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),t}return(0,r.A)(o,[{key:"parse",value:function(t,e,n){switch(e){case"I":return Ec(tc,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return Cc(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,n){return es(function(t,e){Ja(2,arguments);var n=$a(t),r=Xa(e),o=rs(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(t,n))}}]),o}(Qs),Fc=[31,28,31,30,31,30,31,31,30,31,30,31],Uc=[31,29,31,30,31,30,31,31,30,31,30,31],Hc=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",90),(0,Ie.A)((0,Ys.A)(t),"subPriority",1),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),t}return(0,r.A)(o,[{key:"parse",value:function(t,e,n){switch(e){case"d":return Ec($s,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return Cc(e.length,t)}}},{key:"validate",value:function(t,e){var n=Dc(t.getUTCFullYear()),r=t.getUTCMonth();return n?e>=1&&e<=Uc[r]:e>=1&&e<=Fc[r]}},{key:"set",value:function(t,e,n){return t.setUTCDate(n),t.setUTCHours(0,0,0,0),t}}]),o}(Qs),Kc=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",90),(0,Ie.A)((0,Ys.A)(t),"subpriority",1),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),t}return(0,r.A)(o,[{key:"parse",value:function(t,e,n){switch(e){case"D":case"DD":return Ec(Xs,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return Cc(e.length,t)}}},{key:"validate",value:function(t,e){return Dc(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365}},{key:"set",value:function(t,e,n){return t.setUTCMonth(0,n),t.setUTCHours(0,0,0,0),t}}]),o}(Qs);function Vc(t,e,n){var r,o,i,a,s,c,u,l;Ja(2,arguments);var p=is(),f=Xa(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=$a(t),h=Xa(e),g=((h%7+7)%7<f?7:0)+h-d.getUTCDay();return d.setUTCDate(d.getUTCDate()+g),d}var Yc=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",90),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens",["D","i","e","c","t","T"]),t}return(0,r.A)(o,[{key:"parse",value:function(t,e,n){switch(e){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,n,r){return(t=Vc(t,n,r)).setUTCHours(0,0,0,0),t}}]),o}(Qs),qc=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",90),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),t}return(0,r.A)(o,[{key:"parse",value:function(t,e,n,r){var o=function(t){var e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return _c(Cc(e.length,t),o);case"eo":return _c(n.ordinalNumber(t,{unit:"day"}),o);case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,n,r){return(t=Vc(t,n,r)).setUTCHours(0,0,0,0),t}}]),o}(Qs),Wc=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",90),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),t}return(0,r.A)(o,[{key:"parse",value:function(t,e,n,r){var o=function(t){var e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return _c(Cc(e.length,t),o);case"co":return _c(n.ordinalNumber(t,{unit:"day"}),o);case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,n,r){return(t=Vc(t,n,r)).setUTCHours(0,0,0,0),t}}]),o}(Qs),Gc=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",90),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),t}return(0,r.A)(o,[{key:"parse",value:function(t,e,n){var r=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return Cc(e.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return _c(n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r);case"iiiii":return _c(n.day(t,{width:"narrow",context:"formatting"}),r);case"iiiiii":return _c(n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r);default:return _c(n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(t,e){return e>=1&&e<=7}},{key:"set",value:function(t,e,n){return t=function(t,e){Ja(2,arguments);var n=Xa(e);n%7==0&&(n-=7);var r=$a(t),o=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+o),r}(t,n),t.setUTCHours(0,0,0,0),t}}]),o}(Qs),Qc=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",80),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens",["b","B","H","k","t","T"]),t}return(0,r.A)(o,[{key:"parse",value:function(t,e,n){switch(e){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,n){return t.setUTCHours(Oc(n),0,0,0),t}}]),o}(Qs),Zc=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",80),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens",["a","B","H","k","t","T"]),t}return(0,r.A)(o,[{key:"parse",value:function(t,e,n){switch(e){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,n){return t.setUTCHours(Oc(n),0,0,0),t}}]),o}(Qs),Jc=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",80),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens",["a","b","t","T"]),t}return(0,r.A)(o,[{key:"parse",value:function(t,e,n){switch(e){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,n){return t.setUTCHours(Oc(n),0,0,0),t}}]),o}(Qs),$c=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",70),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens",["H","K","k","t","T"]),t}return(0,r.A)(o,[{key:"parse",value:function(t,e,n){switch(e){case"h":return Ec(oc,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return Cc(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=12}},{key:"set",value:function(t,e,n){var r=t.getUTCHours()>=12;return r&&n<12?t.setUTCHours(n+12,0,0,0):r||12!==n?t.setUTCHours(n,0,0,0):t.setUTCHours(0,0,0,0),t}}]),o}(Qs),Xc=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",70),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens",["a","b","h","K","k","t","T"]),t}return(0,r.A)(o,[{key:"parse",value:function(t,e,n){switch(e){case"H":return Ec(ec,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return Cc(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=23}},{key:"set",value:function(t,e,n){return t.setUTCHours(n,0,0,0),t}}]),o}(Qs),tu=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",70),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens",["h","H","k","t","T"]),t}return(0,r.A)(o,[{key:"parse",value:function(t,e,n){switch(e){case"K":return Ec(rc,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return Cc(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,n){return t.getUTCHours()>=12&&n<12?t.setUTCHours(n+12,0,0,0):t.setUTCHours(n,0,0,0),t}}]),o}(Qs),eu=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",70),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens",["a","b","h","H","K","t","T"]),t}return(0,r.A)(o,[{key:"parse",value:function(t,e,n){switch(e){case"k":return Ec(nc,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return Cc(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=24}},{key:"set",value:function(t,e,n){var r=n<=24?n%24:n;return t.setUTCHours(r,0,0,0),t}}]),o}(Qs),nu=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",60),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens",["t","T"]),t}return(0,r.A)(o,[{key:"parse",value:function(t,e,n){switch(e){case"m":return Ec(ic,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return Cc(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,n){return t.setUTCMinutes(n,0,0),t}}]),o}(Qs),ru=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",50),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens",["t","T"]),t}return(0,r.A)(o,[{key:"parse",value:function(t,e,n){switch(e){case"s":return Ec(ac,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return Cc(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,n){return t.setUTCSeconds(n,0),t}}]),o}(Qs),ou=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",30),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens",["t","T"]),t}return(0,r.A)(o,[{key:"parse",value:function(t,e){return _c(Cc(e.length,t),function(t){return Math.floor(t*Math.pow(10,3-e.length))})}},{key:"set",value:function(t,e,n){return t.setUTCMilliseconds(n),t}}]),o}(Qs),iu=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",10),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens",["t","T","x"]),t}return(0,r.A)(o,[{key:"parse",value:function(t,e){switch(e){case"X":return Sc(mc,t);case"XX":return Sc(yc,t);case"XXXX":return Sc(vc,t);case"XXXXX":return Sc(wc,t);default:return Sc(bc,t)}}},{key:"set",value:function(t,e,n){return e.timestampIsSet?t:new Date(t.getTime()-n)}}]),o}(Qs),au=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",10),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens",["t","T","X"]),t}return(0,r.A)(o,[{key:"parse",value:function(t,e){switch(e){case"x":return Sc(mc,t);case"xx":return Sc(yc,t);case"xxxx":return Sc(vc,t);case"xxxxx":return Sc(wc,t);default:return Sc(bc,t)}}},{key:"set",value:function(t,e,n){return e.timestampIsSet?t:new Date(t.getTime()-n)}}]),o}(Qs),su=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",40),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens","*"),t}return(0,r.A)(o,[{key:"parse",value:function(t){return kc(t)}},{key:"set",value:function(t,e,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),o}(Qs),cu=function(t){(0,c.A)(o,t);var e=Fn(o);function o(){var t;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=e.call.apply(e,[this].concat(i)),(0,Ie.A)((0,Ys.A)(t),"priority",20),(0,Ie.A)((0,Ys.A)(t),"incompatibleTokens","*"),t}return(0,r.A)(o,[{key:"parse",value:function(t){return kc(t)}},{key:"set",value:function(t,e,n){return[new Date(n),{timestampIsSet:!0}]}}]),o}(Qs),uu={G:new Zs,y:new Tc,Y:new Ac,R:new Ic,u:new jc,Q:new Nc,q:new Lc,M:new Pc,L:new Rc,w:new zc,I:new Bc,d:new Hc,D:new Kc,E:new Yc,e:new qc,c:new Wc,i:new Gc,a:new Qc,b:new Zc,B:new Jc,h:new $c,H:new Xc,K:new tu,k:new eu,m:new nu,s:new ru,S:new ou,X:new iu,x:new au,t:new su,T:new cu},lu=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,pu=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,fu=/^'([^]*?)'?$/,du=/''/g,hu=/\S/,gu=/[a-zA-Z]/;let mu;var yu={cursor:"move"};const vu=function(t){var e=t.data,n=t.index,r=t.onDestroy,o=t.setAsChild,i=t.getDataById,a=gn({type:Sn,item:function(){return{itemType:Sn,index:e.parentId?-1:n,parentIndex:e.parentIndex,id:e.id,col:e.col,onDestroy:r,setAsChild:o,getDataById:i,data:e}},collect:function(t){return{isDragging:t.isDragging()}}}),s=(0,Ke.A)(a,3),c=s[1],p=s[2];return(0,u.useEffect)(function(){p((mu||(mu=new Image,mu.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),mu),{captureDraggingState:!0})},[p]),l().createElement("div",{ref:c,className:"btn is-isolated",style:yu},l().createElement("i",{className:"is-isolated fas fa-grip-vertical"}))};function bu(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(bu=function(){return!!t})()}var wu=function(t){function e(){return(0,n.A)(this,e),function(t,e,n){return e=(0,i.A)(e),(0,o.A)(t,bu()?Reflect.construct(e,n||[],(0,i.A)(t).constructor):e.apply(t,n))}(this,e,arguments)}return(0,c.A)(e,t),(0,r.A)(e,[{key:"render",value:function(){var t=this;return l().createElement("div",{className:"toolbar-header"},l().createElement("span",{className:"badge badge-secondary"},this.props.data.text),l().createElement("div",{className:"toolbar-header-buttons"},"LineBreak"!==this.props.data.element&&l().createElement("div",{className:"btn is-isolated",role:"button",tabIndex:0,"aria-label":"Edit field",onClick:this.props.editModeOn.bind(this.props.parent,this.props.data)},l().createElement("i",{className:"is-isolated fas fa-edit"})),l().createElement("div",{className:"btn is-isolated",role:"button",tabIndex:0,"aria-label":"Delete field",onClick:this.props.onDestroy.bind(this,this.props.data)},l().createElement("i",{className:"is-isolated fas fa-trash"})),"function"==typeof this.props.moveItemBy&&l().createElement(l().Fragment,null,l().createElement("button",{type:"button",className:"btn is-isolated rfb-move-btn","aria-label":"Move field up",title:"Move up",disabled:!!this.props.isFirst,onClick:function(){return t.props.moveItemBy(t.props.data.id,-1)}},l().createElement("i",{className:"is-isolated fas fa-arrow-up"})),l().createElement("button",{type:"button",className:"btn is-isolated rfb-move-btn","aria-label":"Move field down",title:"Move down",disabled:!!this.props.isLast,onClick:function(){return t.props.moveItemBy(t.props.data.id,1)}},l().createElement("i",{className:"is-isolated fas fa-arrow-down"}))),l().createElement(vu,{data:this.props.data,index:this.props.index,onDestroy:this.props.onDestroy,setAsChild:this.props.setAsChild})))}}])}(l().Component);const _u=function(t){return t.mutable?null:l().createElement("div",null,t.data.pageBreakBefore&&l().createElement("div",{className:"preview-page-break"},"Page Break"),l().createElement(wu,{isFieldSet:t.isFieldSet,parent:t.parent,editModeOn:t.editModeOn,data:t.data,index:t.index,moveItemBy:t.moveItemBy,isFirst:t.isFirst,isLast:t.isLast,setAsChild:t.setAsChild,onDestroy:t._onDestroy,onEdit:t.onEdit,static:t.data.static,required:t.data.required}))};var Eu=a(4005),Su=a.n(Eu);const ku=new(Su().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:[]}}),Cu=function(t){var e=t.data.hasOwnProperty("required")&&!0===t.data.required&&!t.read_only,n=ku.process(t.data.label);if(!n||!n.trim())return null;var r=!!t.data.hasPopUp;return l().createElement("label",{id:t.data.field_name?"".concat(t.data.field_name,"__label"):void 0,onClick:r?t.passUpClick:void 0,className:t.className||"form-label",style:{marginTop:"0.5rem"}},l().createElement("span",{dangerouslySetInnerHTML:{__html:n}}),e&&!t.hide_required_alert&&l().createElement("span",{className:"label-required badge badge-danger"},"Required"))};function Mu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Ou(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Mu(Object(n),!0).forEach(function(e){(0,Ie.A)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mu(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function xu(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(xu=function(){return!!t})()}var Du=function(t){function e(t){var r;(0,n.A)(this,e),r=function(t,e,n){return e=(0,i.A)(e),(0,o.A)(t,xu()?Reflect.construct(e,n||[],(0,i.A)(t).constructor):e.apply(t,n))}(this,e,[t]),r.inputField=l().createRef();var a=e.updateFormat(t,null).formatMask,s=e.updateDateTime(t,{formatMask:a},a);return s.value=s.value||"",s.internalValue=s.internalValue||"",r.state=s,r}return(0,c.A)(e,t),(0,r.A)(e,[{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(t){var e=this.state,n=e.month,r=e.day,o=e.year,i=t.target.value;switch(t.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"===t.target.name?i:n,s="day"===t.target.name?i:r,c="year"===t.target.name?i:o;this.setState({value:{year:c,month:a,day:s}})}},{key:"render",value:function(){var t=this,e=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"),l().createElement("div",{className:o,style:Ou({},this.props.style)},l().createElement(_u,this.props),l().createElement("div",{className:"form-group"},l().createElement(Cu,this.props),l().createElement("div",null,r&&l().createElement("input",{type:"text",name:n.name,ref:n.ref,readOnly:r,placeholder:e||this.state.placeholder,value:this.state.value,className:"form-control"}),!r&&l().createElement("div",{className:"input-group",style:{border:"1px solid #ced4da",borderRadius:"0.25rem",marginTop:10}},l().createElement("input",{value:this.state.month,onKeyUp:function(t){return t.target.value&&2===t.target.value.length&&document.getElementById("day").focus()},name:"month",id:"month",onChange:function(e){return t.handleDateChange(e)},className:"form-control",type:"text",style:{border:"none"},onFocus:function(e){return t.handleBirthdayFocus()},placeholder:e||this.state.placeholder,maxLength:"2",pattern:"\\d*"}),this.state.birthdayFocused&&l().createElement(l().Fragment,null,l().createElement("span",{style:{display:this.state.year||this.state.day||this.state.month?"":"none",alignSelf:"center"}},"/"),l().createElement("input",{value:this.state.day,onKeyUp:function(t){return t.target.value&&2===t.target.value.length&&document.getElementById("year").focus()},name:"day",id:"day",className:"form-control",type:"text",style:{border:"none"},onChange:function(e){return t.handleDateChange(e)},onFocus:function(e){return t.handleBirthdayFocus()},maxLength:"2",pattern:"\\d*"}),l().createElement("span",{style:{display:this.state.year||this.state.day||this.state.month?"":"none",alignSelf:"center"}},"/"),l().createElement("input",{value:this.state.year,name:"year",id:"year",className:"form-control",type:"text",style:{border:"none"},onFocus:function(e){return t.handleBirthdayFocus()},maxLength:"4",pattern:"\\d*",onChange:function(e){return t.handleDateChange(e)}}))))))}}],[{key:"updateDateTime",value:function(t,e,n){var r,o,i=t.data.defaultToday;if(!i||""!==t.defaultValue&&void 0!==t.defaultValue)if(""===(r=t.defaultValue||""))o="";else{var a=function(t,e,n,r){var o,i,a,s,c,u,l,p,f,d,h,g,m,y,v,b,w,_;Ja(3,arguments);var E=String(t),S=String(e),k=is(),C=null!==(o=null!==(i=null==r?void 0:r.locale)&&void 0!==i?i:k.locale)&&void 0!==o?o:Ls;if(!C.match)throw new RangeError("locale must contain match property");var M=Xa(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:k.firstWeekContainsDate)&&void 0!==s?s:null===(f=k.locale)||void 0===f||null===(d=f.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==a?a:1);if(!(M>=1&&M<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=Xa(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:k.weekStartsOn)&&void 0!==g?g:null===(w=k.locale)||void 0===w||null===(_=w.options)||void 0===_?void 0:_.weekStartsOn)&&void 0!==h?h:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===S)return""===E?$a(n):new Date(NaN);var x,D={firstWeekContainsDate:M,weekStartsOn:O,locale:C},T=[new Gs],A=S.match(pu).map(function(t){var e=t[0];return e in bs?(0,bs[e])(t,C.formatLong):t}).join("").match(lu),I=[],j=Ks(A);try{var N=function(){var e=x.value;null!=r&&r.useAdditionalWeekYearTokens||!ks(e)||Cs(e,S,t),null!=r&&r.useAdditionalDayOfYearTokens||!Ss(e)||Cs(e,S,t);var n=e[0],o=uu[n];if(o){var i=o.incompatibleTokens;if(Array.isArray(i)){var a=I.find(function(t){return i.includes(t.token)||t.token===n});if(a)throw new RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(e,"` at the same time"))}else if("*"===o.incompatibleTokens&&I.length>0)throw new RangeError("The format string mustn't contain `".concat(e,"` and any other token at the same time"));I.push({token:n,fullToken:e});var s=o.run(E,e,C.match,D);if(!s)return{v:new Date(NaN)};T.push(s.setter),E=s.rest}else{if(n.match(gu))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===e?e="'":"'"===n&&(e=e.match(fu)[1].replace(du,"'")),0!==E.indexOf(e))return{v:new Date(NaN)};E=E.slice(e.length)}};for(j.s();!(x=j.n()).done;){var L=N();if("object"===(0,mo.A)(L))return L.v}}catch(t){j.e(t)}finally{j.f()}if(E.length>0&&hu.test(E))return new Date(NaN);var P=T.map(function(t){return t.priority}).sort(function(t,e){return e-t}).filter(function(t,e,n){return n.indexOf(t)===e}).map(function(t){return T.filter(function(e){return e.priority===t}).sort(function(t,e){return e.subPriority-t.subPriority})}).map(function(t){return t[0]}),R=$a(n);if(isNaN(R.getTime()))return new Date(NaN);var z,B=ts(R,ws(R)),F={},U=Ks(P);try{for(U.s();!(z=U.n()).done;){var H=z.value;if(!H.validate(B,D))return new Date(NaN);var K=H.set(B,F,D);Array.isArray(K)?(B=K[0],Vs(F,K[1])):B=K}}catch(t){U.e(t)}finally{U.f()}return B}(r,n,new Date);o="Invalid Date"===a.toString()?"":a}else{var s=new Date;r="Invalid Date"===s.toString()?"":Us(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(t,e){var n=t.data,r=n.showTimeSelect,o=n.showTimeSelectOnly,i=n.showTimeInput,a=r&&o?"":t.data.dateFormat,s=r||i?t.data.timeFormat:"",c="".concat(a," ").concat(s).trim();return{updated:c!==e,formatMask:c}}},{key:"getDerivedStateFromProps",value:function(t,n){var r=e.updateFormat(t,n.formatMask),o=r.updated,i=r.formatMask;return t.data.defaultToday!==n.defaultToday||o?e.updateDateTime(t,n,i):null}}])}(l().Component);const Tu=Du;function Au(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Iu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Au(Object(n),!0).forEach(function(e){(0,Ie.A)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Au(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function ju(t,e,n){return e=(0,i.A)(e),(0,o.A)(t,Nu()?Reflect.construct(e,n||[],(0,i.A)(t).constructor):e.apply(t,n))}function Nu(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Nu=function(){return!!t})()}var Lu=function(t){return(t||"").replace(/_\d+$/,"").replace(/[_-]+/g," ").trim().replace(/\b\w/g,function(t){return t.toUpperCase()})},Pu=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.label&&String(t.label).trim())return{"aria-labelledby":"".concat(t.field_name,"__label")};var e=t.placeholder&&String(t.placeholder).trim()||Lu(t.custom_name)||Lu(t.field_name);return e?{"aria-label":e}:{}},Ru={},zu=function(t){function e(){return(0,n.A)(this,e),ju(this,e,arguments)}return(0,c.A)(e,t),(0,r.A)(e,[{key:"render",value:function(){var t="static";this.props.data.bold&&(t+=" bold"),this.props.data.italic&&(t+=" italic");var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),l().createElement("div",{style:Iu({},this.props.style),className:e},l().createElement(_u,this.props),l().createElement("h3",{className:t,dangerouslySetInnerHTML:{__html:ku.process(this.props.data.content)}}))}}])}(l().Component),Bu=function(t){function e(){return(0,n.A)(this,e),ju(this,e,arguments)}return(0,c.A)(e,t),(0,r.A)(e,[{key:"render",value:function(){var t="static";this.props.data.bold&&(t+=" bold"),this.props.data.italic&&(t+=" italic");var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),l().createElement("div",{style:Iu({},this.props.style),className:e},l().createElement(_u,this.props),l().createElement("p",{className:t,dangerouslySetInnerHTML:{__html:ku.process(this.props.data.content)}}))}}])}(l().Component),Fu=function(t){function e(){return(0,n.A)(this,e),ju(this,e,arguments)}return(0,c.A)(e,t),(0,r.A)(e,[{key:"render",value:function(){var t="static";this.props.data.bold&&(t+=" bold"),this.props.data.italic&&(t+=" italic");var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),l().createElement("div",{style:Iu({},this.props.style),className:e},l().createElement(_u,this.props),l().createElement("label",{className:"".concat(t," form-label"),dangerouslySetInnerHTML:{__html:ku.process(this.props.data.content)}}))}}])}(l().Component),Uu=function(t){function e(){return(0,n.A)(this,e),ju(this,e,arguments)}return(0,c.A)(e,t),(0,r.A)(e,[{key:"render",value:function(){var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),l().createElement("div",{style:Iu({},this.props.style),className:t},l().createElement(_u,this.props),l().createElement("hr",null))}}])}(l().Component),Hu=function(t){function e(t){var r;return(0,n.A)(this,e),(r=ju(this,e,[t])).inputField=l().createRef(),r}return(0,c.A)(e,t),(0,r.A)(e,[{key:"render",value:function(){var t={type:"text",className:"form-control"};t.name=this.props.data.field_name,t.placeholder=this.props.data.placeholder,Object.assign(t,Pu(this.props.data)),this.props.mutable&&(t.defaultValue=this.props.defaultValue,t.ref=this.inputField);var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),this.props.read_only&&(t.disabled="disabled"),l().createElement("div",{style:Iu({},this.props.style),className:e},l().createElement(_u,this.props),l().createElement("div",{className:"form-group"},l().createElement(Cu,this.props),l().createElement("input",t)))}}])}(l().Component),Ku=function(t){function e(t){var r;return(0,n.A)(this,e),(r=ju(this,e,[t])).inputField=l().createRef(),r}return(0,c.A)(e,t),(0,r.A)(e,[{key:"render",value:function(){var t={type:"text",className:"form-control"};t.name=this.props.data.field_name,t.placeholder=this.props.data.placeholder,Object.assign(t,Pu(this.props.data)),this.props.mutable&&(t.defaultValue=this.props.defaultValue,t.ref=this.inputField);var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),this.props.read_only&&(t.disabled="disabled"),l().createElement("div",{style:Iu({},this.props.style),className:e},l().createElement(_u,this.props),l().createElement("div",{className:"form-group"},l().createElement(Cu,this.props),l().createElement("input",t)))}}])}(l().Component),Vu=function(t){function e(t){var r;return(0,n.A)(this,e),(r=ju(this,e,[t])).inputField=l().createRef(),r}return(0,c.A)(e,t),(0,r.A)(e,[{key:"render",value:function(){var t={type:"tel",className:"form-control"};t.name=this.props.data.field_name,t.placeholder=this.props.data.placeholder,Object.assign(t,Pu(this.props.data)),this.props.mutable&&(t.defaultValue=this.props.defaultValue,t.ref=this.inputField);var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),this.props.read_only&&(t.disabled="disabled"),l().createElement("div",{style:Iu({},this.props.style),className:e},l().createElement(_u,this.props),l().createElement("div",{className:"form-group"},l().createElement(Cu,this.props),l().createElement("input",t)))}}])}(l().Component),Yu=function(t){function e(t){var r;return(0,n.A)(this,e),(r=ju(this,e,[t])).inputField=l().createRef(),r}return(0,c.A)(e,t),(0,r.A)(e,[{key:"render",value:function(){var t={type:"number",className:"form-control"};t.name=this.props.data.field_name,t.placeholder=this.props.data.placeholder,Object.assign(t,Pu(this.props.data)),this.props.mutable&&(t.defaultValue=this.props.defaultValue,t.ref=this.inputField),this.props.read_only&&(t.disabled="disabled");var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),l().createElement("div",{style:Iu({},this.props.style),className:e},l().createElement(_u,this.props),l().createElement("div",{className:"form-group"},l().createElement(Cu,this.props),l().createElement("input",t)))}}])}(l().Component),qu=function(t){function e(t){var r;return(0,n.A)(this,e),(r=ju(this,e,[t])).inputField=l().createRef(),r}return(0,c.A)(e,t),(0,r.A)(e,[{key:"render",value:function(){var t={className:"form-control"};t.name=this.props.data.field_name,t.placeholder=this.props.data.placeholder,Object.assign(t,Pu(this.props.data)),this.props.read_only&&(t.disabled="disabled"),this.props.mutable&&(t.defaultValue=this.props.defaultValue,t.ref=this.inputField);var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),l().createElement("div",{style:Iu({},this.props.style),className:e},l().createElement(_u,this.props),l().createElement("div",{className:"form-group"},l().createElement(Cu,this.props),l().createElement("textarea",t)))}}])}(l().Component),Wu=function(t){function e(t){var r;return(0,n.A)(this,e),(r=ju(this,e,[t])).inputField=l().createRef(),r}return(0,c.A)(e,t),(0,r.A)(e,[{key:"render",value:function(){var t={className:"form-control"};t.name=this.props.data.field_name;var e=this.props.data.placeholder;e&&(t.defaultValue=""),this.props.mutable&&(void 0!==this.props.defaultValue&&(t.defaultValue=this.props.defaultValue),t.ref=this.inputField),this.props.read_only&&(t.disabled="disabled");var n="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(n+=" alwaysbreak"),l().createElement("div",{style:Iu({},this.props.style),className:n},l().createElement(_u,this.props),l().createElement("div",{className:"form-group"},l().createElement(Cu,this.props),l().createElement("select",t,e&&l().createElement("option",{value:"",disabled:!0,hidden:!0},e),this.props.data.options.map(function(t){var e="preview_".concat(t.key);return l().createElement("option",{value:t.value,key:e},t.text)}))))}}])}(l().Component),Gu=function(t){function e(t){var r;return(0,n.A)(this,e),r=ju(this,e,[t]),(0,Ie.A)(r,"clear",function(){r.state.defaultValue?r.setState({defaultValue:""}):r.canvas.current&&r.canvas.current.clear()}),r.state={defaultValue:t.defaultValue},r.inputField=l().createRef(),r.canvas=l().createRef(),r}return(0,c.A)(e,t),(0,r.A)(e,[{key:"render",value:function(){var t=this.state.defaultValue,e=!!t,n={type:"hidden"};n.name=this.props.data.field_name,this.props.mutable&&(n.defaultValue=t,n.ref=this.inputField);var r={};this.props.mutable&&(r.defaultValue=t,r.ref=this.canvas,e=!this.props.read_only),r.clearOnResize=!1;var o,i="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(i+=" alwaysbreak"),t&&t.length>0&&(o="data:image/png;base64,".concat(t)),l().createElement("div",{style:Iu({},this.props.style),className:i},l().createElement(_u,this.props),l().createElement("div",{className:"form-group"},l().createElement(Cu,this.props),!0===this.props.read_only||o?l().createElement("img",{src:o}):l().createElement(Va,r),e&&l().createElement("i",{className:"fas fa-times clear-signature",onClick:this.clear,title:"Clear Signature"}),l().createElement("input",n)))}}])}(l().Component),Qu=function(t){function e(t){var r;(0,n.A)(this,e),r=ju(this,e,[t]),(0,Ie.A)(r,"handleChange",function(t){r.setState({value:t||[]})}),r.inputField=l().createRef();var o=t.defaultValue,i=t.data;return r.state={value:r.getDefaultValue(o,i.options)},r}return(0,c.A)(e,t),(0,r.A)(e,[{key:"getDefaultValue",value:function(t,e){if(t){if("string"==typeof t){var n=t.split(",").map(function(t){return t.trim()});return e.filter(function(t){return n.indexOf(t.value)>-1})}return e.filter(function(e){return t.indexOf(e.value)>-1})}return[]}},{key:"render",value:function(){var t=this.props.data.options.map(function(t){return t.label=t.text,t}),e={isMulti:!0};e.name=this.props.data.field_name,e.onChange=this.handleChange,e.options=t,this.props.mutable||(e.value=t[0].text),this.props.mutable&&(e.isDisabled=this.props.read_only,e.value=this.state.value,e.ref=this.inputField);var n="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(n+=" alwaysbreak"),l().createElement("div",{style:Iu({},this.props.style),className:n},l().createElement(_u,this.props),l().createElement("div",{className:"form-group"},l().createElement(Cu,this.props),l().createElement(Ra,e)))}}])}(l().Component),Zu=function(t){function o(t){var e;return(0,n.A)(this,o),(e=ju(this,o,[t])).options={},e}return(0,c.A)(o,t),(0,r.A)(o,[{key:"render",value:function(){var t=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"),l().createElement("div",{style:Iu({},this.props.style),className:o},l().createElement(_u,this.props),l().createElement("div",{className:"form-group"},l().createElement(Cu,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||n.props.defaultValue.indexOf(o.value)>-1)),t.props.read_only&&(a.disabled="disabled"),l().createElement("div",{className:r,key:i},l().createElement("input",(0,e.A)({id:"fid_".concat(i),className:"custom-control-input",ref:function(t){t&&n.props.mutable&&(n.options["child_ref_".concat(o.key)]=t)}},a)),l().createElement("label",{className:"custom-control-label",htmlFor:"fid_".concat(i)},o.text))})))}}])}(l().Component),Ju=function(t){function o(t){var e;return(0,n.A)(this,o),e=ju(this,o,[t]),(0,Ie.A)(e,"clickDetected",function(){e.props.onCheckboxClick&&e.props.onCheckboxClick(e.props.data)}),(0,Ie.A)(e,"handleLabelClick",function(){e.props.data&&e.props.data.hasPopUp&&e.clickDetected()}),e.inputField=l().createRef(),e}return(0,c.A)(o,t),(0,r.A)(o,[{key:"render",value:function(){var t="SortableItem rfb-item";this.props.data.pageBreakBefore&&(t+=" 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"),l().createElement("div",{style:Iu({},this.props.style),className:t},l().createElement(_u,this.props),l().createElement("div",{className:"form-group"},l().createElement(Cu,(0,e.A)({passUpClick:this.clickDetected,className:"form-label"},this.props)),l().createElement("div",{className:"form-check"},l().createElement("input",(0,e.A)({className:"form-check-input",id:this.props.data.field_name,"aria-labelledby":"".concat(this.props.data.field_name,"__boxlabel")},n)),l().createElement("label",{id:"".concat(this.props.data.field_name,"__boxlabel"),className:"form-check-label",onClick:this.handleLabelClick,dangerouslySetInnerHTML:{__html:this.props.data.boxLabel}}))))}}])}(l().Component),$u=function(t){function o(t){var e;return(0,n.A)(this,o),(e=ju(this,o,[t])).options={},e}return(0,c.A)(o,t),(0,r.A)(o,[{key:"render",value:function(){var t=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"),l().createElement("div",{style:Iu({},this.props.style),className:o},l().createElement(_u,this.props),l().createElement("div",{className:"form-group"},l().createElement(Cu,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)),t.props.read_only&&(a.disabled="disabled"),l().createElement("div",{className:r,key:i},l().createElement("input",(0,e.A)({id:"fid_".concat(i),className:"custom-control-input",ref:function(t){t&&n.props.mutable&&(n.options["child_ref_".concat(o.key)]=t)}},a)),l().createElement("label",{className:"custom-control-label",htmlFor:"fid_".concat(i)},o.text))})))}}])}(l().Component),Xu=function(t){function e(){return(0,n.A)(this,e),ju(this,e,arguments)}return(0,c.A)(e,t),(0,r.A)(e,[{key:"render",value:function(){var t=this.props.data.center?{textAlign:"center"}:null,e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),l().createElement("div",{style:Iu(Iu({},this.props.style),t),className:e},l().createElement(_u,this.props),this.props.data.src&&l().createElement("img",{src:this.props.data.src,width:this.props.data.width,height:this.props.data.height}),!this.props.data.src&&l().createElement("div",{className:"no-image"},"No Image"))}}])}(l().Component),tl=function(t){function e(t){var r;return(0,n.A)(this,e),(r=ju(this,e,[t])).inputField=l().createRef(),r}return(0,c.A)(e,t),(0,r.A)(e,[{key:"render",value:function(){var t={};t.name=this.props.data.field_name,t.ratingAmount=5,this.props.mutable&&(t.rating=void 0!==this.props.defaultValue?parseFloat(this.props.defaultValue,10):0,t.editing=!0,t.disabled=this.props.read_only,t.ref=this.inputField);var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),l().createElement("div",{style:Iu({},this.props.style),className:e},l().createElement(_u,this.props),l().createElement("div",{className:"form-group"},l().createElement(Cu,this.props),l().createElement(Za,t)))}}])}(l().Component),el=function(t){function e(){return(0,n.A)(this,e),ju(this,e,arguments)}return(0,c.A)(e,t),(0,r.A)(e,[{key:"render",value:function(){var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),l().createElement("div",{style:Iu({},this.props.style),className:t},l().createElement(_u,this.props),l().createElement("div",{className:"form-group"},l().createElement("label",{className:"form-label"},l().createElement("a",{target:"_blank",href:this.props.data.href,dangerouslySetInnerHTML:{__html:ku.process(this.props.data.content)}}))))}}])}(l().Component),nl=function(t){function e(){return(0,n.A)(this,e),ju(this,e,arguments)}return(0,c.A)(e,t),(0,r.A)(e,[{key:"render",value:function(){var t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),l().createElement("div",{style:Iu({},this.props.style),className:t},l().createElement(_u,this.props),l().createElement("div",{className:"form-group"},l().createElement("a",{href:"".concat(this.props.download_path,"?id=").concat(this.props.data.file_path)},this.props.data.content)))}}])}(l().Component),rl=function(t){function o(t){var e;return(0,n.A)(this,o),e=ju(this,o,[t]),(0,Ie.A)(e,"displayImage",function(t){var n=e,r=t.target;r.files&&r.files.length&&n.setState({img:r.files[0],previewImg:URL.createObjectURL(r.files[0])})}),(0,Ie.A)(e,"clearImage",function(){e.setState({img:null,previewImg:null})}),e.state={img:null,previewImg:null},e}return(0,c.A)(o,t),(0,r.A)(o,[{key:"getImageSizeProps",value:function(t){var e=t.width,n=t.height,r={width:"100%"};return e&&(r.width=e<window.innerWidth?e:.9*window.innerWidth),n&&(r.height=n),r}},{key:"render",value:function(){var t,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&&(t=this.props.defaultValue.indexOf(i>-1)?this.props.defaultValue:"data:image/png;base64,".concat(this.props.defaultValue)),l().createElement("div",{style:Iu({},this.props.style),className:o},l().createElement(_u,this.props),l().createElement("div",{className:"form-group"},l().createElement(Cu,this.props),!0===this.props.read_only&&this.props.defaultValue&&this.props.defaultValue.length>0?l().createElement("div",null,l().createElement("img",(0,e.A)({style:r,src:t},this.getImageSizeProps(this.props.data)))):l().createElement("div",{className:"image-upload-container"},l().createElement("div",{style:a},l().createElement("input",{name:i,type:"file",accept:"image/*",capture:"camera",className:"image-upload",onChange:this.displayImage}),l().createElement("div",{className:"image-upload-control"},l().createElement("div",{className:"btn btn-default"},l().createElement("i",{className:"fas fa-camera"})," Upload Photo"),l().createElement("p",null,"Select an image from your computer or device."))),this.state.img&&l().createElement("div",null,l().createElement("img",{onLoad:function(){return URL.revokeObjectURL(n.state.previewImg)},src:this.state.previewImg,height:"100",className:"image-upload-preview"}),l().createElement("br",null),l().createElement("div",{className:"btn btn-image-clear",onClick:this.clearImage},l().createElement("i",{className:"fas fa-times"})," Clear Photo")))))}}])}(l().Component),ol=function(t){function e(t){var r;return(0,n.A)(this,e),r=ju(this,e,[t]),(0,Ie.A)(r,"displayFileUpload",function(t){var e,n=r,o=t.target;o.files&&o.files.length>0&&(e=o.files[0],n.setState({fileUpload:e}))}),(0,Ie.A)(r,"clearFileUpload",function(){r.setState({fileUpload:null})}),(0,Ie.A)(r,"saveFile",function(){var t=(0,He.A)(Ye().mark(function t(e){var n,o,i,a,s,c,u;return Ye().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.preventDefault(),n=r.props.defaultValue,t.next=1,Nn()(n,{method:"GET",headers:{Accept:"application/json","Content-Type":"application/json; charset=utf-8"},responseType:"blob"});case 1:return o=t.sent,i=o.headers.get("Content-Disposition"),t.next=2,o.blob();case 2:a=t.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,Ln.saveAs)(s,c)):(u=n.substring(n.lastIndexOf("/")+1),(0,Ln.saveAs)(o.url,u));case 3:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()),r.state={fileUpload:null},r}return(0,c.A)(e,t),(0,r.A)(e,[{key:"render",value:function(){var t="SortableItem rfb-item",e=this.props.data.field_name,n=this.state.fileUpload?{display:"none"}:null;return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),l().createElement("div",{style:Iu({},this.props.style),className:t},l().createElement(_u,this.props),l().createElement("div",{className:"form-group"},l().createElement(Cu,this.props),!0===this.props.read_only&&this.props.defaultValue&&this.props.defaultValue.length>0?l().createElement("div",null,l().createElement("button",{type:"button",className:"btn btn-default",onClick:this.saveFile},l().createElement("i",{className:"fas fa-download"})," Download File")):l().createElement("div",{className:"image-upload-container"},l().createElement("div",{style:n},l().createElement("input",{name:e,type:"file",accept:this.props.data.fileType||"*",className:"image-upload",onChange:this.displayFileUpload}),l().createElement("div",{className:"image-upload-control"},l().createElement("div",{className:"btn btn-default"},l().createElement("i",{className:"fas fa-file"})," Upload File"),l().createElement("p",null,"Select a file from your computer or device."))),this.state.fileUpload&&l().createElement("div",null,l().createElement("div",{className:"file-upload-preview"},l().createElement("div",{style:{display:"inline-block",marginRight:"5px"}},"Name: ".concat(this.state.fileUpload.name)),l().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"))),l().createElement("br",null),l().createElement("div",{className:"btn btn-file-upload-clear",onClick:this.clearFileUpload},l().createElement("i",{className:"fas fa-times"})," Clear File")))))}}])}(l().Component),il=function(t){function e(t){var r;return(0,n.A)(this,e),r=ju(this,e,[t]),(0,Ie.A)(r,"changeValue",function(t){var e=t.target;r.setState({value:e.value})}),r.inputField=l().createRef(),r.state={value:void 0!==t.defaultValue?parseInt(t.defaultValue,10):parseInt(t.data.default_value,10)},r}return(0,c.A)(e,t),(0,r.A)(e,[{key:"render",value:function(){var t={},e=this.props.data.field_name;t.type="range",t.list="tickmarks_".concat(e),t.min=this.props.data.min_value,t.max=this.props.data.max_value,t.step=this.props.data.step,t.value=this.state.value,t.change=this.changeValue,this.props.mutable&&(t.ref=this.inputField);for(var n=[],r=parseInt(t.min,10);r<=parseInt(t.max,10);r+=parseInt(t.step,10))n.push(r);var o=100/(n.length-1),i=n.map(function(e,n){return l().createElement("option",{key:"".concat(t.list,"_").concat(n)},e)}),a=n.map(function(e,r){var i={},a=o;return 0!==r&&r!==n.length-1||(a=o/2),i.key="".concat(t.list,"_label_").concat(r),i.style={width:"".concat(a,"%")},r===n.length-1&&(i.style={width:"".concat(a,"%"),textAlign:"right"}),l().createElement("label",i,e)});this.props.read_only&&(t.disabled="disabled");var s="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(s+=" alwaysbreak"),l().createElement("div",{style:Iu({},this.props.style),className:s},l().createElement(_u,this.props),l().createElement("div",{className:"form-group"},l().createElement(Cu,this.props),l().createElement("div",{className:"range"},l().createElement("div",{className:"clearfix"},l().createElement("span",{className:"float-left"},this.props.data.min_label),l().createElement("span",{className:"float-right"},this.props.data.max_label)),l().createElement(qa(),t)),l().createElement("div",{className:"visible_marks"},a),l().createElement("input",{name:e,value:this.state.value,type:"hidden"}),l().createElement("datalist",{id:t.list},i)))}}])}(l().Component);Ru.Header=zu,Ru.Paragraph=Bu,Ru.Label=Fu,Ru.LineBreak=Uu,Ru.TextInput=Hu,Ru.EmailInput=Ku,Ru.PhoneNumber=Vu,Ru.NumberInput=Yu,Ru.TextArea=qu,Ru.Dropdown=Wu,Ru.Signature=Gu,Ru.Checkboxes=Zu,Ru.Checkbox=Ju,Ru.DatePicker=Tu,Ru.RadioButtons=$u,Ru.Image=Xu,Ru.Rating=tl,Ru.Tags=Qu,Ru.HyperLink=el,Ru.Download=nl,Ru.Camera=rl,Ru.FileUpload=ol,Ru.Range=il;const al=Ru;function sl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function cl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?sl(Object(n),!0).forEach(function(e){(0,Ie.A)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sl(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function ul(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(ul=function(){return!!t})()}var ll=function(t){function a(t){var e;return(0,n.A)(this,a),e=function(t,e,n){return e=(0,i.A)(e),(0,o.A)(t,ul()?Reflect.construct(e,n||[],(0,i.A)(t).constructor):e.apply(t,n))}(this,a,[t]),e.inputField=l().createRef(),e}return(0,c.A)(a,t),(0,r.A)(a,[{key:"render",value:function(){var t=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"),l().createElement("div",{className:o,style:cl({},this.props.style)},l().createElement(_u,this.props),t?l().createElement(r,(0,e.A)({data:this.props.data},this.props.data.props,n)):l().createElement("div",{className:"form-group"},l().createElement(Cu,(0,e.A)({className:"form-label"},this.props)),l().createElement(r,(0,e.A)({data:this.props.data},this.props.data.props,n))))}}])}(u.Component);ll.propTypes={};const pl=ll;var fl=a(1857),dl=a.n(fl),hl=["onDropSuccess","seq","parentIndex","items","col","getDataById","accepts","data","setAsChild"];function gl(t){return{border:"1px solid rgba(0,0,0,0.2)",minHeight:"2rem",minWidth:"7rem",width:"100%",backgroundColor:t,padding:0,float:"left"}}const ml=function(t){var n,r=t.onDropSuccess,o=(t.seq,t.parentIndex),i=t.items,a=t.col,s=t.getDataById,c=t.accepts,p=t.data,f=t.setAsChild,d=Ge(t,hl),h=(0,u.useRef)(null),g=s(i[a]),m=_n({accept:c,collect:function(t){return{isOver:t.isOver(),canDrop:t.canDrop(),draggedItem:t.getItem()}},drop:function(t){if(a!==t.col||i[a]!==t.id)if(void 0===t.col&&i[a])Ue.dispatch("resetLastItem");else if(!function(t){if(t.itemType!==En){var e=t.data;if(e){if(e.isContainer)return!0;if(e.field_name)return e.field_name.indexOf("_col_row")>-1}}return!1}(t)){console.log("Item dropped",t);var e=!!i[a];if(t.data){var n=t.data.id?t.data:t.onCreate(t.data);"function"==typeof f&&f(p,n,a,e),r&&r(),Ue.dispatch("deleteLastItem")}}},canDrop:function(t){return!0}}),y=(0,Ke.A)(m,2),v=y[0],b=v.isOver,w=v.canDrop,_=v.draggedItem,E=y[1],S=function(t,n){if(!t)return null;if(t.custom)return function(t,n){return t.component&&"function"==typeof t.component||(t.component=dl().get(t.key),t.component||console.error("".concat(t.element," was not registered"))),l().createElement(pl,(0,e.A)({},n,{mutable:!1,key:"form_".concat(t.id),data:t}))}(t,n);var r=al[t.element||t.key];return l().createElement(r,(0,e.A)({},n,{key:"form_".concat(t.id),data:t}))}(g,d),k=!!_&&_.index===o,C="rgba(0, 0, 0, .03)";return k||!b||!w||!_||null!==(n=_.data)&&void 0!==n&&n.isContainer||(C="#F7F589"),E(h),l().createElement("div",{ref:h,style:gl(k?"rgba(0, 0, 0, .03)":C)},!S&&l().createElement("span",null,"Drop your element here"),S)};var yl=["data","class_name"],vl=["data","class_name"],bl=["data"];function wl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function _l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wl(Object(n),!0).forEach(function(e){(0,Ie.A)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wl(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function El(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(El=function(){return!!t})()}var Sl=[Sn,En],kl=function(t){function e(){return(0,n.A)(this,e),function(t,e,n){return e=(0,i.A)(e),(0,o.A)(t,El()?Reflect.construct(e,n||[],(0,i.A)(t).constructor):e.apply(t,n))}(this,e,arguments)}return(0,c.A)(e,t),(0,r.A)(e,[{key:"render",value:function(){var t=this.props,e=t.controls,n=t.data,r=t.editModeOn,o=t.getDataById,i=t.setAsChild,a=t.removeChild,s=t.seq,c=t.className,u=t.index,p=n.childItems,f="SortableItem rfb-item";return n.pageBreakBefore&&(f+=" alwaysbreak"),l().createElement("div",{style:_l({},this.props.style),className:f},l().createElement(_u,this.props),l().createElement("div",null,l().createElement(Cu,this.props),l().createElement("div",{className:"row"},p.map(function(t,f){return l().createElement("div",{key:"".concat(f,"_").concat(t||"_"),className:c},e?e[f]:l().createElement(ml,{style:{width:"100%"},data:n,accepts:Sl,items:p,col:f,parentIndex:u,editModeOn:r,_onDestroy:function(){return a(n,f)},getDataById:o,setAsChild:i,seq:s}))}))))}}])}(l().Component),Cl=function(t){var n=t.data,r=t.class_name,o=Ge(t,yl),i=r||"col-md-6";return n.childItems||(n.childItems=[null,null],n.isContainer=!0),l().createElement(kl,(0,e.A)({},o,{className:i,data:n}))},Ml=function(t){var n=t.data,r=t.class_name,o=Ge(t,vl),i=r||"col-md-4";return n.childItems||(n.childItems=[null,null,null],n.isContainer=!0),l().createElement(kl,(0,e.A)({},o,{className:i,data:n}))},Ol=function(t){var n=t.data,r=Ge(t,bl),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(t,e){return null}),n.isContainer=!0),l().createElement(kl,(0,e.A)({},r,{className:i,data:n}))},xl=["data","class_name"];function Dl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Tl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Dl(Object(n),!0).forEach(function(e){(0,Ie.A)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dl(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Al=[Sn,En];function Il(t){var n=(0,u.useState)({}),r=(0,Ke.A)(n,2),o=r[0],i=r[1],a=(0,u.useState)(null),s=(0,Ke.A)(a,2),c=s[0],p=s[1];(0,u.useEffect)(function(){var e=t.data;t.class_name,Ge(t,xl),i(e),f(1,e)},[t]);var f=function(t,e){var n=t;e.class_name,e.childItems||(e.childItems=Array.from({length:n},function(t,e){return null}),e.isContainer=!0),p(e.childItems)},d=t.controls,h=t.editModeOn,g=t.getDataById,m=t.setAsChild,y=t.removeChild,v=t.seq,b=(t.className,t.index),w="SortableItem rfb-item";return o.pageBreakBefore&&(w+=" alwaysbreak"),l().createElement("div",{style:Tl({},t.style),className:w},l().createElement(_u,(0,e.A)({},t,{isFieldSet:!0})),l().createElement("div",null,l().createElement(Cu,t),l().createElement("div",{className:"row"},null==c?void 0:c.map(function(e,n){return l().createElement("div",{key:"".concat(n,"_").concat(e||"_"),className:"col-md-12"},d?d[n]:l().createElement(ml,{style:{width:"100%"},data:o,accepts:Al,items:c,key:n,col:n,onDropSuccess:function(){return e=n,void((c?c.length:0)===e+1&&(o=(r=t.data).childItems.length+1,i=r.childItems,r.childItems=Array.from({length:o},function(t,e){return i[e]?i[e]:null}),p(r.childItems)));var e,r,o,i},parentIndex:b,editModeOn:h,_onDestroy:function(){return y(o,n)},getDataById:g,setAsChild:m,seq:v,rowNo:n}))}))))}var jl=al.Header,Nl=al.Paragraph,Ll=al.Label,Pl=al.LineBreak,Rl=al.TextInput,zl=al.EmailInput,Bl=al.PhoneNumber,Fl=al.NumberInput,Ul=al.TextArea,Hl=al.Dropdown,Kl=al.Checkboxes,Vl=al.DatePicker,Yl=al.RadioButtons,ql=al.Image,Wl=al.Rating,Gl=al.Tags,Ql=al.Signature,Zl=al.HyperLink,Jl=al.Download,$l=al.Camera,Xl=al.Range,tp=al.FileUpload,ep=al.Checkbox,np={};np.Header=Dn(jl),np.Paragraph=Dn(Nl),np.Label=Dn(Ll),np.LineBreak=Dn(Pl),np.TextInput=Dn(Rl),np.EmailInput=Dn(zl),np.PhoneNumber=Dn(Bl),np.NumberInput=Dn(Fl),np.TextArea=Dn(Ul),np.Dropdown=Dn(Hl),np.Signature=Dn(Ql),np.Checkboxes=Dn(Kl),np.Checkbox=Dn(ep),np.DatePicker=Dn(Vl),np.RadioButtons=Dn(Yl),np.Image=Dn(ql),np.Rating=Dn(Wl),np.Tags=Dn(Gl),np.HyperLink=Dn(Zl),np.Download=Dn(Jl),np.Camera=Dn($l),np.FileUpload=Dn(tp),np.Range=Dn(Xl),np.PlaceHolder=Dn(In),np.FieldSet=Dn(Il),np.TwoColumnRow=Dn(Cl),np.ThreeColumnRow=Dn(Ml),np.MultiColumnRow=Dn(Ol),np.CustomElement=Dn(pl);const rp=np;function op(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function ip(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?op(Object(n),!0).forEach(function(e){(0,Ie.A)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):op(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var ap={border:"1px dashed gray",padding:"0.5rem 1rem",cursor:"move"},sp={display:"inline-block",transform:"rotate(-7deg)",WebkitTransform:"rotate(-7deg)"},cp=function(t){var e=t.title,n=t.color?"#059862":"white";return l().createElement("div",{style:ip(ip({},ap),{},{backgroundColor:n})},e)},up=function(t){var e=t.item,n=(0,u.useState)(!1),r=(0,Ke.A)(n,2),o=r[0],i=(r[1],e.data.content?e.data.content:e.data.label?e.data.label:e.data.text),a=i.length>20?"".concat(i.slice(0,20),"..."):i;return l().createElement("div",{style:sp,role:"BoxPreview"},l().createElement(cp,{title:a,color:o}))},lp={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"};function pp(t,e){if(!t||!e)return{display:"none"};var n=e.x,r=e.y,o="translate(".concat(n,"px, ").concat(r,"px)");return{transform:o,WebkitTransform:o}}const fp=function(){var t=function(){const t=ln().getMonitor(),[e,n]=Xe(t,function(t){return{item:t.getItem(),itemType:t.getItemType(),initialOffset:t.getInitialSourceClientOffset(),currentOffset:t.getSourceClientOffset(),isDragging:t.isDragging()}});return(0,u.useEffect)(()=>t.subscribeToOffsetChange(n)),(0,u.useEffect)(()=>t.subscribeToStateChange(n)),e}(),e=t.itemType,n=t.isDragging,r=t.item,o=t.initialOffset,i=t.currentOffset;return n?l().createElement("div",{style:lp},l().createElement("div",{style:pp(o,i)},e===Sn?l().createElement(up,{item:r}):null)):null};function dp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function hp(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dp(Object(n),!0).forEach(function(e){(0,Ie.A)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dp(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function gp(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(gp=function(){return!!t})()}var mp=rp.PlaceHolder,yp=function(t){function e(t){var r;(0,n.A)(this,e),r=function(t,e,n){return e=(0,i.A)(e),(0,o.A)(t,gp()?Reflect.construct(e,n||[],(0,i.A)(t).constructor):e.apply(t,n))}(this,e,[t]),(0,Ie.A)(r,"state",{data:[],answer_data:{}}),(0,Ie.A)(r,"registerDraftCommitter",function(t){return r.draftCommitter=t,function(){r.draftCommitter===t&&(r.draftCommitter=null)}}),(0,Ie.A)(r,"editModeOff",function(t){var e=r.editForm.current;if(e&&!e.contains(t.target)&&(!(n=t.target)||"function"!=typeof n.closest||!n.closest(".swal2-container, [data-rfb-keep-edit-open]"))){var n,o=r.draftCommitter;if(o){var i=document.activeElement;i&&i!==document.body&&e.contains(i)&&"function"==typeof i.blur&&(0,je.flushSync)(function(){return i.blur()}),!1!==o()&&r.manualEditModeOff()}else r.manualEditModeOff()}}),(0,Ie.A)(r,"manualEditModeOff",function(){var t=r.props.editElement;t&&t.dirty&&!r.draftCommitter&&(t.dirty=!1,r.updateElement(t)),r.props.manualEditModeOff()});var a=t.onLoad,s=t.onPost;return Ue.setExternalHandler(a,s),r.editForm=l().createRef(),r.state={data:t.data||[],answer_data:{}},r.seq=0,r._onUpdate=r._onChange.bind(r),r.getDataById=r.getDataById.bind(r),r.moveCard=r.moveCard.bind(r),r.moveItemBy=r.moveItemBy.bind(r),r.insertCard=r.insertCard.bind(r),r.setAsChild=r.setAsChild.bind(r),r.removeChild=r.removeChild.bind(r),r._onDestroy=r._onDestroy.bind(r),r}return(0,c.A)(e,t),(0,r.A)(e,[{key:"componentDidMount",value:function(){var t=this,e=this.props,n=e.data,r=e.url,o=e.saveUrl,i=e.saveAlways;Ue.subscribe(function(e){return t._onUpdate(e.data)}),Ue.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(t){return t.replace(/[^A-Z0-9]+/gi,"_").toLowerCase()}},{key:"updateElement",value:function(t){for(var e=this.state.data,n=!1,r=0,o=e.length;r<o;r++)if(t.id===e[r].id){e[r]=t,n=!0;break}n&&(this.seq=this.seq>1e5?0:this.seq+1,Ue.dispatch("updateOrder",e))}},{key:"_onChange",value:function(t){var e=this,n={};t.forEach(function(t){t&&t.readOnly&&e.props.variables[t.variableKey]&&(n[t.field_name]=e.props.variables[t.variableKey])}),this.setState({data:t,answer_data:n})}},{key:"_onDestroy",value:function(t){var e=this;t.childItems&&t.childItems.forEach(function(t){var n=e.getDataById(t);n&&Ue.dispatch("delete",n)}),Ue.dispatch("delete",t)}},{key:"getDataById",value:function(t){return this.state.data.find(function(e){return e&&e.id===t})}},{key:"swapChildren",value:function(t,e,n,r){if(void 0!==n.col&&e.id!==n.parentId)return!1;if(void 0===n.col||n.col===r||!e.childItems[r])return!1;var o=e.childItems[r],i=this.getDataById(o),a=n.col;return e.childItems[a]=o,i.col=a,e.childItems[r]=n.id,n.col=r,Ue.dispatch("updateOrder",t),!0}},{key:"setAsChild",value:function(t,e,n,r){var o=this.state.data;if(!this.swapChildren(o,t,e,n)&&!r){var i=this.getDataById(e.parentId),a=e.col;t.childItems[n]=e.id,e.col=n,e.parentId=t.id,e.parentIndex=o.indexOf(t),i&&(i.childItems[a]=null);var s=o.filter(function(e){return e&&e.parentId===t.id}).filter(function(e){return-1===t.childItems.indexOf(e.id)}),c=o;s.length&&(c=o.filter(function(t){return-1===s.indexOf(t)})),this.getDataById(e.id)||c.push(e),Ue.dispatch("updateOrder",c)}}},{key:"removeChild",value:function(t,e){var n=this.state.data,r=t.childItems[e],o=this.getDataById(r);if(o){var i=n.filter(function(t){return t!==o});t.childItems[e]=null,this.seq=this.seq>1e5?0:this.seq+1,Ue.dispatch("updateOrder",i),this.setState({data:i})}}},{key:"restoreCard",value:function(t,e){var n=this.state.data,r=this.getDataById(t.data.parentId),o=this.getDataById(e);if(r&&o){var i=n.indexOf(o),a=(0,Ae.A)(n);r.childItems[o.col]=null,delete o.parentId,delete t.setAsChild,delete t.parentIndex,t.index=i,this.seq=this.seq>1e5?0:this.seq+1,Ue.dispatch("updateOrder",a),this.setState({data:a})}}},{key:"insertCard",value:function(t,e,n){var r=this.state.data;n?this.restoreCard(t,n):(r.splice(e,0,t),this.saveData(t,e,e),Ue.dispatch("insertItem",t))}},{key:"moveCard",value:function(t,e){var n=this.state.data[t];void 0!==n&&this.saveData(n,t,e)}},{key:"moveItemBy",value:function(t,e){var n=this.state.data,r=n.map(function(t,e){return t&&!t.parentId?e:-1}).filter(function(t){return-1!==t}),o=r.findIndex(function(e){return n[e].id===t}),i=o+e;if(!(-1===o||i<0||i>=r.length)){var a=n.slice(),s=r[o],c=r[i],u=[a[c],a[s]];a[s]=u[0],a[c]=u[1],this.setState({data:a}),Ue.dispatch("updateOrder",a)}}},{key:"cardPlaceHolder",value:function(t,e){}},{key:"saveData",value:function(t,e,n){var r=Le()(this.state,{data:{$splice:[[e,1],[n,0,t]]}});this.setState(r),Ue.dispatch("updateOrder",r.data)}},{key:"getElement",value:function(t,e){t.custom&&(t.component&&"function"==typeof t.component||(t.component=this.props.registry.get(t.key)));var n=rp[t.element];return null===n?null:l().createElement(n,{id:t.id,seq:this.seq,index:e,moveCard:this.moveCard,moveItemBy:this.moveItemBy,isFirst:0===e,isLast:e===this.topCount-1,insertCard:this.insertCard,mutable:!1,parent:this.props.parent,editModeOn:this.props.editModeOn,isDraggable:!0,key:t.id,sortData:t.id,data:t,getDataById:this.getDataById,setAsChild:this.setAsChild,removeChild:this.removeChild,_onDestroy:this._onDestroy})}},{key:"showEditForm",value:function(){var t=this,e=function(e){return t.updateElement(e)};e.bind(this);var n={showCorrectColumn:this.props.showCorrectColumn,files:this.props.files,manualEditModeOff:this.manualEditModeOff,registerDraftCommitter:this.registerDraftCommitter,preview:this,element:this.props.editElement,updateElement:e};return this.props.renderEditForm(hp(hp({},n),{},{renderRichTextEditor:this.props.renderRichTextEditor,onImageUpload:this.props.onImageUpload}))}},{key:"render",value:function(){var t=this,e=this.props.className;this.props.editMode&&(e+=" is-editing");var n=this.state.data.filter(function(t){return!!t&&!t.parentId});this.topCount=n.length;var r=n.map(function(e,n){return t.getElement(e,n)});return l().createElement("div",{className:e},l().createElement("div",{className:"edit-form",ref:this.editForm},null!==this.props.editElement&&this.showEditForm()),l().createElement("div",{className:"Sortable"},r),l().createElement(mp,{id:"form-place-holder",show:0===r.length,index:r.length,moveCard:this.cardPlaceHolder,insertCard:this.insertCard}),l().createElement(fp,null))}}])}(l().Component);yp.defaultProps={showCorrectColumn:!1,files:[],editMode:!1,editElement:null,className:"col-md-9 react-form-builder-preview float-left",renderEditForm:function(t){return l().createElement(qe,t)}};var vp=a(7654),bp=a.n(vp);const wp=function(t){var e=t.data,n=t.onCreate,r=t.onClick,o=gn({type:En,item:function(){return{id:bp().uuid(),index:-1,data:e,onCreate:n}},collect:function(t){return{isDragging:t.isDragging()}}}),i=(0,Ke.A)(o,2),a=i[0].isDragging,s=i[1],c=a?.5:1;return l().createElement("li",{ref:s,onClick:r,style:{opacity:c,cursor:"move"}},l().createElement("i",{className:e.icon}),e.name)},_p=function(t){var e=t.name,n=t.group,r=t.renderItem,o=(0,u.useState)(!1),i=(0,Ke.A)(o,2),a=i[0],s=i[1],c="collapse"+(a?" show":"");return l().createElement("li",null,l().createElement("div",{className:"toolbar-group-item"},l().createElement("button",{className:"btn btn-link btn-block text-left",type:"button",onClick:function(){s(!a)}},e),l().createElement("div",{className:c},l().createElement("ul",null,n.map(r)))))};function Ep(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Ep=function(){return!!t})()}function Sp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function kp(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Sp(Object(n),!0).forEach(function(e){(0,Ie.A)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Sp(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}a(5143),a(9987),a(3754);var Cp=function(t){function e(t){var r;(0,n.A)(this,e),r=function(t,e,n){return e=(0,i.A)(e),(0,o.A)(t,Ep()?Reflect.construct(e,n||[],(0,i.A)(t).constructor):e.apply(t,n))}(this,e,[t]),(0,Ie.A)(r,"renderItem",function(t){return l().createElement(wp,{data:t,key:t.key,onClick:r._onClick.bind(r,t),onCreate:r.create})});var a=r.props.intl,s=function(t,e){return t?t.map(function(t){var n=e.find(function(e){return t.element===e.element&&e.key===t.key});return n||(n=e.find(function(e){return(t.element||t.key)===(e.element||e.key)})),n&&(!1!==t.inherited?n=kp(kp({},n),t):t.group_name&&(n.group_name=t.group_name)),n||t}):e}(t.items,r._defaultItems(a));return r.state={items:s},r.create=r.create.bind(r),r}return(0,c.A)(e,t),(0,r.A)(e,[{key:"componentDidMount",value:function(){var t=this;Ue.subscribe(function(e){return t.setState({store:e})})}},{key:"_defaultItems",value:function(t){return[{key:"Header",name:t.formatMessage({id:"header-text"}),icon:"fas fa-heading",static:!0,content:t.formatMessage({id:"place-holder-text"})},{key:"Label",name:t.formatMessage({id:"label"}),static:!0,icon:"fas fa-font",content:t.formatMessage({id:"place-holder-text"})},{key:"Paragraph",name:t.formatMessage({id:"paragraph"}),static:!0,icon:"fas fa-paragraph",content:t.formatMessage({id:"place-holder-text"})},{key:"LineBreak",name:t.formatMessage({id:"line-break"}),static:!0,icon:"fas fa-arrows-alt-h"},{key:"Dropdown",canHaveAnswer:!0,name:t.formatMessage({id:"dropdown"}),icon:"far fa-caret-square-down",label:t.formatMessage({id:"place-holder-label"}),field_name:"dropdown_",options:[]},{key:"Tags",canHaveAnswer:!0,name:t.formatMessage({id:"tags"}),icon:"fas fa-tags",label:t.formatMessage({id:"place-holder-label"}),field_name:"tags_",options:[]},{key:"Checkboxes",canHaveAnswer:!0,name:t.formatMessage({id:"checkboxes"}),icon:"far fa-check-square",label:t.formatMessage({id:"place-holder-label"}),field_name:"checkboxes_",options:[]},{key:"Checkbox",canHaveAnswer:!0,name:t.formatMessage({id:"checkbox"}),icon:"far fa-check-square",label:t.formatMessage({id:"place-holder-label"}),field_name:"checkbox_",boxLabel:"Agree To Rules & Regs"},{key:"RadioButtons",canHaveAnswer:!0,name:t.formatMessage({id:"multiple-choice"}),icon:"far fa-dot-circle",label:t.formatMessage({id:"place-holder-label"}),field_name:"radiobuttons_",options:[]},{key:"TextInput",canHaveAnswer:!0,name:t.formatMessage({id:"text-input"}),label:t.formatMessage({id:"place-holder-label"}),icon:"fas fa-font",field_name:"text_input_"},{key:"EmailInput",canHaveAnswer:!0,name:t.formatMessage({id:"email-input"}),label:t.formatMessage({id:"place-holder-email"}),icon:"fas fa-envelope",field_name:"email_input_",placeholder:""},{key:"NumberInput",canHaveAnswer:!0,name:t.formatMessage({id:"number-input"}),label:t.formatMessage({id:"place-holder-label"}),icon:"fas fa-plus",field_name:"number_input_"},{key:"PhoneNumber",canHaveAnswer:!0,name:t.formatMessage({id:"phone-input"}),label:t.formatMessage({id:"place-holder-phone-number"}),icon:"fas fa-phone",field_name:"phone_input_"},{key:"TextArea",canHaveAnswer:!0,name:t.formatMessage({id:"multi-line-input"}),label:t.formatMessage({id:"place-holder-label"}),icon:"fas fa-text-height",field_name:"text_area_"},{key:"FieldSet",canHaveAnswer:!1,name:t.formatMessage({id:"fieldset"}),label:t.formatMessage({id:"fieldset"}),icon:"fas fa-bars",field_name:"fieldset-element"},{key:"TwoColumnRow",canHaveAnswer:!1,name:t.formatMessage({id:"two-columns-row"}),label:"",icon:"fas fa-columns",field_name:"two_col_row_"},{key:"ThreeColumnRow",canHaveAnswer:!1,name:t.formatMessage({id:"three-columns-row"}),label:"",icon:"fas fa-columns",field_name:"three_col_row_"},{key:"FourColumnRow",element:"MultiColumnRow",canHaveAnswer:!1,name:t.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:t.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:t.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:t.formatMessage({id:"image"}),label:"",icon:"far fa-image",field_name:"image_",src:""},{key:"Rating",canHaveAnswer:!0,name:t.formatMessage({id:"rating"}),label:t.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:t.formatMessage({id:"date"}),icon:"far fa-calendar-alt",label:t.formatMessage({id:"place-holder-label"}),field_name:"date_picker_"},{key:"Signature",canReadOnly:!0,name:t.formatMessage({id:"signature"}),icon:"fas fa-pen-square",label:t.formatMessage({id:"signature"}),field_name:"signature_"},{key:"HyperLink",name:t.formatMessage({id:"website"}),icon:"fas fa-link",static:!0,content:t.formatMessage({id:"place-holder-website-link"}),href:"http://www.example.com"},{key:"Download",name:t.formatMessage({id:"file-attachment"}),icon:"fas fa-file",static:!0,content:t.formatMessage({id:"place-holder-file-name"}),field_name:"download_",file_path:"",_href:""},{key:"Range",name:t.formatMessage({id:"range"}),icon:"fas fa-sliders-h",label:t.formatMessage({id:"place-holder-label"}),field_name:"range_",step:1,default_value:3,min_value:1,max_value:5,min_label:t.formatMessage({id:"easy"}),max_label:t.formatMessage({id:"difficult"})},{key:"Camera",name:t.formatMessage({id:"camera"}),icon:"fas fa-camera",label:t.formatMessage({id:"place-holder-label"}),field_name:"camera_"},{key:"FileUpload",name:t.formatMessage({id:"file-upload"}),icon:"fas fa-file",label:t.formatMessage({id:"place-holder-label"}),field_name:"file_upload_"}]}},{key:"addCustomOptions",value:function(t,e){if("custom"===t.type){var n=kp(kp({},t),e);return n.custom=!0,n.component=t.component||null,n.custom_options=t.custom_options||[],n}return e}},{key:"create",value:function(t){var n=this.props.intl,r=t.element||t.key,o=this.addCustomOptions(t,{id:bp().uuid(),element:r,text:t.name,group_name:t.group_name,static:t.static,required:!1,showDescription:t.showDescription});return!0!==this.props.showDescription||t.static||(o.showDescription=!0),-1!==["NumberInput","EmailInput","TextInput","PhoneNumber","TextArea","DatePicker","Dropdown"].indexOf(r)&&(o.showPlaceholder=!0,void 0!==t.placeholder&&(o.placeholder=t.placeholder)),"custom"===t.type&&(o.key=t.key,o.custom=!0,o.forwardRef=t.forwardRef,o.bare=t.bare,o.props=t.props,o.component=t.component||null,o.custom_options=t.custom_options||[]),t.static&&(o.bold=!1,o.italic=!1),o.show_custom_name=t.show_custom_name,o.hide_display_label=t.hide_display_label,o.custom_name=t.custom_name,o.hide_required=t.hide_required,t.canHaveAnswer&&(o.canHaveAnswer=t.canHaveAnswer),t.canReadOnly&&(o.readOnly=!1),t.canDefaultToday&&(o.defaultToday=!1),t.content&&(o.content=t.content),t.href&&(o.href=t.href),void 0!==t.inherited&&(o.inherited=t.inherited),o.canHavePageBreakBefore=!1!==t.canHavePageBreakBefore,o.canHaveAlternateForm=!1!==t.canHaveAlternateForm,o.canHaveDisplayHorizontal=!1!==t.canHaveDisplayHorizontal,o.canHaveDisplayHorizontal&&(o.inline=t.inline),o.canHaveOptionCorrect=!1!==t.canHaveOptionCorrect,o.canHaveOptionValue=!1!==t.canHaveOptionValue,o.canPopulateFromApi=!1!==t.canPopulateFromApi,t.class_name&&(o.class_name=t.class_name),"Image"===r&&(o.src=t.src),"DatePicker"===r&&(o.dateFormat=t.dateFormat,o.timeFormat=t.timeFormat,o.showTimeSelect=t.showTimeSelect,o.showTimeSelectOnly=t.showTimeSelectOnly,o.showTimeInput=t.showTimeInput),"Download"===r&&(o._href=t._href,o.file_path=t.file_path),"Range"===r&&(o.step=t.step,o.default_value=t.default_value,o.min_value=t.min_value,o.max_value=t.max_value,o.min_label=t.min_label,o.max_label=t.max_label),"MultiColumnRow"===r&&(o.col_count=t.col_count),t.defaultValue&&(o.defaultValue=t.defaultValue),t.field_name&&(o.field_name=t.field_name+bp().uuid()),t.label&&(o.label=t.label),t.options&&(t.options.length>0?o.options=t.options.map(function(t){return kp(kp({},t),{},{key:"custom_option_".concat(bp().uuid())})}):o.options=e._defaultItemOptions(o.element,n)),o}},{key:"_onClick",value:function(t){Ue.dispatch("create",this.create(t))}},{key:"render",value:function(){var t=this,e=function(t){var e,n,r,o=t.filter(function(t){return!t.group_name}),i=t.filter(function(t){return!!t.group_name}),a=(e=i,n=function(t){return t.group_name},r=new Map,e.forEach(function(t){var e=n(t),o=r.get(e);o?o.push(t):r.set(e,[t])}),r),s=i.map(function(t){return t.group_name}).filter(function(t,e,n){return n.indexOf(t)===e});return{items:o,grouped:a,groupKeys:s}}(this.state.items),n=e.items,r=e.grouped,o=e.groupKeys;return l().createElement("div",{className:"col-md-3 react-form-builder-toolbar float-right"},l().createElement("h4",null,this.props.intl.formatMessage({id:"toolbox"})),l().createElement("ul",null,n.map(this.renderItem),o.map(function(e){return l().createElement(_p,{key:e,name:e,group:r.get(e),renderItem:t.renderItem})})))}}],[{key:"_defaultItemOptions",value:function(t,e){switch(t){case"Dropdown":return[{value:"place_holder_option_1",text:e.formatMessage({id:"place-holder-option-1"}),key:"dropdown_option_".concat(bp().uuid())},{value:"place_holder_option_2",text:e.formatMessage({id:"place-holder-option-2"}),key:"dropdown_option_".concat(bp().uuid())},{value:"place_holder_option_3",text:e.formatMessage({id:"place-holder-option-3"}),key:"dropdown_option_".concat(bp().uuid())}];case"Tags":return[{value:"place_holder_tag_1",text:e.formatMessage({id:"place-holder-tag-1"}),key:"tags_option_".concat(bp().uuid())},{value:"place_holder_tag_2",text:e.formatMessage({id:"place-holder-tag-2"}),key:"tags_option_".concat(bp().uuid())},{value:"place_holder_tag_3",text:e.formatMessage({id:"place-holder-tag-3"}),key:"tags_option_".concat(bp().uuid())}];case"Checkboxes":return[{value:"place_holder_option_1",text:e.formatMessage({id:"place-holder-option-1"}),key:"checkboxes_option_".concat(bp().uuid())}];case"RadioButtons":return[{value:"place_holder_option_1",text:e.formatMessage({id:"place-holder-option-1"}),key:"radiobuttons_option_".concat(bp().uuid())},{value:"place_holder_option_2",text:e.formatMessage({id:"place-holder-option-2"}),key:"radiobuttons_option_".concat(bp().uuid())},{value:"place_holder_option_3",text:e.formatMessage({id:"place-holder-option-3"}),key:"radiobuttons_option_".concat(bp().uuid())}];default:return[]}}}])}(l().Component);const Mp=(0,Oe.Ay)(Cp);var Op=a(2881),xp=a(8886);function Dp(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Dp=function(){return!!t})()}var Tp=new(Su().FilterXSS)({whiteList:{u:[],br:[],b:[],i:[],ol:["style"],ul:["style"],li:[],p:["style"],sub:[],sup:[],div:["style"],em:[],strong:[],span:["style"]}}),Ap=function(t){function e(t){var r;return(0,n.A)(this,e),r=function(t,e,n){return e=(0,i.A)(e),(0,o.A)(t,Dp()?Reflect.construct(e,n||[],(0,i.A)(t).constructor):e.apply(t,n))}(this,e,[t]),r.state={errors:[]},r}return(0,c.A)(e,t),(0,r.A)(e,[{key:"componentDidMount",value:function(){var t=this;this.subscription=this.props.emitter.addListener("formValidation",function(e){t.setState({errors:e})})}},{key:"componentWillUnmount",value:function(){this.subscription.remove()}},{key:"dismissModal",value:function(t){t.preventDefault(),this.setState({errors:[]})}},{key:"render",value:function(){var t=this.state.errors.map(function(t,e){return l().createElement("li",{key:"error_".concat(e),dangerouslySetInnerHTML:{__html:Tp.process(t)}})});return l().createElement("div",null,this.state.errors.length>0&&l().createElement("div",{className:"alert alert-danger validation-error"},l().createElement("div",{className:"clearfix"},l().createElement("i",{className:"fas fa-exclamation-triangle float-left"}),l().createElement("ul",{className:"float-left"},t)),l().createElement("div",{className:"clearfix"},l().createElement("a",{className:"float-right btn btn-default btn-sm btn-danger",onClick:this.dismissModal.bind(this)},l().createElement(xp.A,{id:"dismiss"})))))}}])}(l().Component);function Ip(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Ip=function(){return!!t})()}var jp=al.Image,Np=al.Checkboxes,Lp=al.Signature,Pp=al.Download,Rp=al.Camera,zp=al.FileUpload,Bp=function(t){function a(t){var e;return(0,n.A)(this,a),e=function(t,e,n){return e=(0,i.A)(e),(0,o.A)(t,Ip()?Reflect.construct(e,n||[],(0,i.A)(t).constructor):e.apply(t,n))}(this,a,[t]),(0,Ie.A)(e,"form",void 0),(0,Ie.A)(e,"inputs",{}),(0,Ie.A)(e,"answerData",void 0),(0,Ie.A)(e,"_getOptionKeyValue",function(t){return"value"===e.props.option_key_value?t.value:t.key}),(0,Ie.A)(e,"handleRenderSubmit",function(){var t=e.props.action_name||e.props.actionName||"Submit",n=e.props.submitButton;return void 0!==n&&n||l().createElement("input",{type:"submit",className:"btn btn-big",value:t})}),(0,Ie.A)(e,"handleRenderBack",function(){var t=e.props.back_name||e.props.backName||"Cancel",n=e.props.backButton;return void 0!==n&&n||l().createElement("a",{href:e.props.back_action,className:"btn btn-default btn-cancel btn-big"},t)}),e.answerData=e._convert(t.answer_data),e.emitter=new Op.EventEmitter,e.getDataById=e.getDataById.bind(e),e.handleBlur=e.handleBlur.bind(e),e.handleChange=e.handleChange.bind(e),e.handleSubmit=e.handleSubmit.bind(e),e}return(0,c.A)(a,t),(0,r.A)(a,[{key:"_convert",value:function(t){if(Array.isArray(t)){var e={};return t.forEach(function(t){t.name.indexOf("tags_")>-1?e[t.name]=t.value.map(function(t){return t.value}):e[t.name]=t.value}),e}return t||{}}},{key:"_getDefaultValue",value:function(t){return this.answerData[t.field_name]}},{key:"_optionsDefaultValue",value:function(t){var e=this,n=this._getDefaultValue(t);if(n)return n;var r=[];return t.options.forEach(function(t){e.answerData["option_".concat(t.key)]&&r.push(t.key)}),r}},{key:"_getItemValue",value:function(t,e,n){var r={element:t.element,value:""};return"Rating"===t.element?r.value=e.inputField.current.state.rating:"Tags"===t.element?r.value=e.inputField.current.state.value:"DatePicker"===t.element?r.value=e.state.value:"Camera"===t.element?r.value=e.state.img:"FileUpload"===t.element?r.value=e.state.fileUpload:e&&e.inputField&&e.inputField.current&&(r=e.inputField.current,n&&r&&"string"==typeof r.value&&(r.value=r.value.trim())),r}},{key:"_isIncorrect",value:function(t){var e=!1;if(t.canHaveAnswer){var n=this.inputs[t.field_name];if("Checkboxes"===t.element||"RadioButtons"===t.element)t.options.forEach(function(t){var r=n.options["child_ref_".concat(t.key)];(t.hasOwnProperty("correct")&&!r.checked||!t.hasOwnProperty("correct")&&r.checked)&&(e=!0)});else{var r=this._getItemValue(t,n);"Rating"===t.element?r.value.toString()!==t.correct&&(e=!0):r.value.toLowerCase()!==t.correct.trim().toLowerCase()&&(e=!0)}}return e}},{key:"_isInvalid",value:function(t){var e=!1;if(!0===t.required){var n=this.inputs[t.field_name];if("Checkboxes"===t.element||"RadioButtons"===t.element){var r=0;t.options.forEach(function(t){n.options["child_ref_".concat(t.key)].checked&&(r+=1)}),r<1&&(e=!0)}else{var o=this._getItemValue(t,n);"Rating"===t.element?0===o.value&&(e=!0):(void 0===o.value||o.value.length<1)&&(e=!0)}}return e}},{key:"_collect",value:function(t,e){var n=this,r={id:t.id,name:t.field_name,custom_name:t.custom_name||t.field_name};if(!r.name)return null;var o=this.inputs[t.field_name];if("Checkboxes"===t.element||"RadioButtons"===t.element){var i=[];t.options.forEach(function(t){o.options["child_ref_".concat(t.key)].checked&&i.push(n._getOptionKeyValue(t))}),r.value=i}else if("Checkbox"===t.element)o&&o.inputField&&o.inputField.current?r.value=o.inputField.current.checked:r.value=!1;else{if(!o)return null;r.value=this._getItemValue(t,o,e).value}return r.required=t.required||!1,r}},{key:"_collectFormData",value:function(t,e){var n=this,r=[];return t.forEach(function(t){var o=n._collect(t,e);o&&r.push(o)}),r}},{key:"_getSignatureImg",value:function(t){var e=this.inputs[t.field_name],n=e.canvas.current;if(n){var r=n.toDataURL().replace("data:image/png;base64,",""),o=n.isEmpty();e.inputField.current.value=o?"":r}}},{key:"handleSubmit",value:function(t){t.preventDefault();var e=[];if(this.props.skip_validations||(e=this.validateForm(),this.emitter.emit("formValidation",e)),e.length<1){var n=this.props.onSubmit;n?n(this._collectFormData(this.props.data,!0)):this.form.submit()}}},{key:"handleBlur",value:function(){this.props.onBlur&&(0,this.props.onBlur)(this._collectFormData(this.props.data,!0))}},{key:"handleChange",value:function(){this.props.onChange&&(0,this.props.onChange)(this._collectFormData(this.props.data,!1))}},{key:"validateForm",value:function(){var t=this,e=[],n=this.props.data,r=this.props.intl;return this.props.display_short&&(n=this.props.data.filter(function(t){return!0===t.alternateForm})),n.forEach(function(n){if("Signature"===n.element&&t._getSignatureImg(n),t._isInvalid(n)){var o=n.label&&n.label.trim()||n.placeholder||n.field_name;e.push("".concat(o," ").concat(r.formatMessage({id:"message.is-required"}),"!"))}if("EmailInput"===n.element){var i=t.inputs[n.field_name],a=t._getItemValue(n,i).value;a&&(a.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,}))$/)||e.push("".concat(n.label," ").concat(r.formatMessage({id:"message.invalid-email"}))))}if("PhoneNumber"===n.element){var s=t.inputs[n.field_name],c=t._getItemValue(n,s).value;c&&(c.match(/^[+]?(1\-|1\s|1|\d{3}\-|\d{3}\s|)?((\(\d{3}\))|\d{3})(\-|\s)?(\d{3})(\-|\s)?(\d{4})$/g)||e.push("".concat(n.label," ").concat(r.formatMessage({id:"message.invalid-phone-number"}))))}t.props.validateForCorrectness&&t._isIncorrect(n)&&e.push("".concat(n.label," ").concat(r.formatMessage({id:"message.was-answered-incorrectly"}),"!"))}),e}},{key:"getDataById",value:function(t){return this.props.data.find(function(e){return e.id===t})}},{key:"getInputElement",value:function(t){var e=this;if(t.custom)return this.getCustomElement(t);var n=al[t.element],r={handleChange:this.handleChange,ref:function(n){return e.inputs[t.field_name]=n},mutable:!0,key:"form_".concat(t.id),data:t,read_only:this.props.read_only,hide_required_alert:this.props.hide_required_alert,defaultValue:this._getDefaultValue(t)};return"Checkbox"===t.element&&(r.onCheckboxClick=this.props.onCheckboxClick),l().createElement(n,r)}},{key:"getContainerElement",value:function(t,e){var n=this,r=t.childItems.map(function(t){return t?n.getInputElement(n.getDataById(t)):l().createElement("div",null," ")});return l().createElement(e,{mutable:!0,key:"form_".concat(t.id),data:t,controls:r,hide_required_alert:this.props.hide_required_alert})}},{key:"getSimpleElement",value:function(t){var e=al[t.element];return l().createElement(e,{mutable:!0,key:"form_".concat(t.id),data:t,hide_required_alert:this.props.hide_required_alert})}},{key:"getCustomElement",value:function(t){var n=this,r=this.props.intl;t.component&&"function"==typeof t.component||(t.component=dl().get(t.key),t.component||console.error("".concat(t.element," ").concat(r.formatMessage({id:"message.was-not-registered"}))));var o=t.forwardRef&&{handleChange:this.handleChange,defaultValue:this._getDefaultValue(t),ref:function(e){return n.inputs[t.field_name]=e}};return l().createElement(pl,(0,e.A)({mutable:!0,read_only:this.props.read_only,hide_required_alert:this.props.hide_required_alert,key:"form_".concat(t.id),data:t},o))}},{key:"render",value:function(){var t=this,e=this.props.data;this.props.display_short&&(e=this.props.data.filter(function(t){return!0===t.alternateForm})),e.forEach(function(e){e&&e.readOnly&&e.variableKey&&t.props.variables[e.variableKey]&&(t.answerData[e.field_name]=t.props.variables[e.variableKey])});var n=e.filter(function(t){return!t.parentId}).map(function(e){if(!e)return null;switch(e.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 t.getInputElement(e);case"CustomElement":return t.getCustomElement(e);case"MultiColumnRow":return t.getContainerElement(e,Ol);case"ThreeColumnRow":return t.getContainerElement(e,Ml);case"TwoColumnRow":return t.getContainerElement(e,Cl);case"FieldSet":return t.getContainerElement(e,Il);case"Signature":return l().createElement(Lp,{ref:function(n){return t.inputs[e.field_name]=n},read_only:t.props.read_only||e.readOnly,mutable:!0,key:"form_".concat(e.id),data:e,defaultValue:t._getDefaultValue(e)});case"Checkboxes":return l().createElement(Np,{ref:function(n){return t.inputs[e.field_name]=n},read_only:t.props.read_only,handleChange:t.handleChange,mutable:!0,key:"form_".concat(e.id),data:e,defaultValue:t._optionsDefaultValue(e),hide_required_alert:t.props.hide_required_alert});case"Image":return l().createElement(jp,{ref:function(n){return t.inputs[e.field_name]=n},handleChange:t.handleChange,mutable:!0,key:"form_".concat(e.id),data:e,defaultValue:t._getDefaultValue(e),hide_required_alert:t.props.hide_required_alert});case"Download":return l().createElement(Pp,{download_path:t.props.download_path,mutable:!0,key:"form_".concat(e.id),data:e,hide_required_alert:t.props.hide_required_alert});case"Camera":return l().createElement(Rp,{ref:function(n){return t.inputs[e.field_name]=n},read_only:t.props.read_only||e.readOnly,mutable:!0,key:"form_".concat(e.id),data:e,defaultValue:t._getDefaultValue(e),hide_required_alert:t.props.hide_required_alert});case"FileUpload":return l().createElement(zp,{ref:function(n){return t.inputs[e.field_name]=n},read_only:t.props.read_only||e.readOnly,mutable:!0,key:"form_".concat(e.id),data:e,hide_required_alert:t.props.hide_required_alert,defaultValue:t._getDefaultValue(e)});default:return t.getSimpleElement(e)}});return l().createElement("div",null,l().createElement(Ap,{emitter:this.emitter}),l().createElement("div",{className:"react-form-builder-form"},l().createElement("form",{encType:"multipart/form-data",ref:function(e){return t.form=e},action:this.props.form_action,onBlur:this.handleBlur,onChange:this.handleChange,onSubmit:this.handleSubmit,method:this.props.form_method},this.props.authenticity_token&&l().createElement("div",{style:{display:"none"}},l().createElement("input",{name:"utf8",type:"hidden",value:"✓"}),l().createElement("input",{name:"authenticity_token",type:"hidden",value:this.props.authenticity_token}),l().createElement("input",{name:"task_id",type:"hidden",value:this.props.task_id})),n,l().createElement("div",{className:"btn-toolbar"},!this.props.hide_actions&&this.handleRenderSubmit(),!this.props.hide_actions&&this.props.back_action&&this.handleRenderBack()))))}}])}(l().Component);const Fp=(0,Oe.Ay)(Bp);function Up(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}Bp.defaultProps={validateForCorrectness:!1};var Hp={messages:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Up(Object(n),!0).forEach(function(e){(0,Ie.A)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Up(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},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-has-popup":"Make Pop Up","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"};const Kp=Hp;function Vp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var Yp={messages:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Vp(Object(n),!0).forEach(function(e){(0,Ie.A)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vp(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},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"};const qp=Yp;function Wp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var Gp={messages:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Wp(Object(n),!0).forEach(function(e){(0,Ie.A)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wp(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},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"};const Qp=Gp;function Zp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}var Jp={messages:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Zp(Object(n),!0).forEach(function(e){(0,Ie.A)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zp(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},JSON.parse('{"display-label":"برچسب نمایش","choose-file":"انتخاب فایل","choose-file-type":"انتخاب نوع فایل","select-file-type":"انتخاب نوع فایل","text-to-display":"متن برای نمایش","link-to":"لینک به","center":"مرکز","width":"عرض","height":"ارتفاع","required":"الزامی","read-only":"فقط خواندنی","default-to-today":"پیشفرض به امروز","show-time-select":"نمایش انتخاب زمان","show-time-select-only":"فقط نمایش انتخاب زمان","show-time-input":"نمایش ورودی زمان","display-horizontal":"نمایش افقی","variable-key":"کلید متغیر","variable-key-desc":"این عنصر را به کلیدی تبدیل میکند که میتواند با یک مقدار زمان اجرا جایگزین شود","print-options":"گزینههای پرینت","page-break-before-elements":"شکست صفحه قبل از عنصر","alternate-signature-page":"صفحه امضا/جایگزین","display-on-alternate-signature-page":"نمایش در صفحه امضا/جایگزین","step":"گام","min":"حداقل","max":"حداکثر","default-selected":"پیشفرض انتخاب شده","text-style":"سبک متن","bold":"پررنگ","italic":"ایتالیک","description":"توضیحات","correct-answer":"پاسخ صحیح","populate-options-from-api":"پر کردن گزینهها از API","populate":"پر کردن","pdf":"PDF","word":"Word","excel":"Excel","ppt":"PPT","options":"گزینهها","value":"مقدار","correct":"صحیح","dismiss":"رد کردن","place-holder-option-1":"گزینه جایگزین 1","place-holder-option-2":"گزینه جایگزین 2","place-holder-option-3":"گزینه جایگزین 3","place-holder-tag-1":"برچسب جایگزین 1","place-holder-tag-2":"برچسب جایگزین 2","place-holder-tag-3":"برچسب جایگزین 3","toolbox":"جعبه ابزار","header-text":"متن سرصفحه","label":"برچسب","paragraph":"پاراگراف","line-break":"شکست خط","dropdown":"منوی کشویی","tags":"برچسبها","checkboxes":"چک باکسها","multiple-choice":"چند گزینهای","text-input":"ورودی متن","email-input":"ایمیل","phone-input":"شماره تلفن","number-input":"ورودی عدد","multi-line-input":"ورودی چند خطی","fieldset":"مجموعه فیلد","two-columns-row":"ردیف دو ستونی","three-columns-row":"ردیف سه ستونی","four-columns-row":"ردیف چهار ستونی","five-columns-row":"ردیف پنج ستونی","six-columns-row":"ردیف شش ستونی","image":"تصویر","rating":"رتبهبندی","date":"تاریخ","signature":"امضا","website":"وبسایت","file-attachment":"پیوست فایل","range":"محدوده","camera":"دوربین","file-upload":"بارگذاری فایل","place-holder-text":"متن جایگزین...","place-holder-label":"برچسب جایگزین","place-holder-website-link":"لینک وبسایت جایگزین...","place-holder-file-name":"نام فایل جایگزین...","place-holder-email":"ایمیل","place-holder-phone-number":"شماره تلفن","easy":"آسان","difficult":"دشوار","drop-zone":"منطقه رها کردن","message.is-required":"الزامی است","message.was-answered-incorrectly":"به اشتباه پاسخ داده شد","message.was-not-registered":"ثبت نشد","message.invalid-email":"فیلد نیاز به آدرس ایمیل معتبر دارد","message.invalid-phone-number":"فیلد نیاز به شماره تلفن معتبر دارد"}')),locale:"fa-IR"};const $p={en:Kp,vi:Qp,it:qp,fa:Jp};function Xp(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Xp=function(){return!!t})()}var tf=function(t){function a(t){var e;return(0,n.A)(this,a),e=function(t,e,n){return e=(0,i.A)(e),(0,o.A)(t,Xp()?Reflect.construct(e,n||[],(0,i.A)(t).constructor):e.apply(t,n))}(this,a,[t]),e.state={editMode:!1,editElement:null},e.editModeOn=e.editModeOn.bind(e),e}return(0,c.A)(a,t),(0,r.A)(a,[{key:"editModeOn",value:function(t,e){e.preventDefault(),e.stopPropagation(),this.state.editMode?this.setState({editMode:!this.state.editMode,editElement:null}):this.setState({editMode:!this.state.editMode,editElement:t})}},{key:"manualEditModeOff",value:function(){this.state.editMode&&this.setState({editMode:!1,editElement:null})}},{key:"render",value:function(){var t={showDescription:this.props.show_description},n=this.props.locale?this.props.locale:"en",r=$p[n];return this.props.toolbarItems&&(t.items=this.props.toolbarItems),l().createElement(St,{backend:Vt,context:window},l().createElement(Te,{locale:r.locale,messages:r.messages},l().createElement("div",null,l().createElement("div",{className:"react-form-builder clearfix",onKeyDown:f},l().createElement("div",null,l().createElement(yp,{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:dl(),editElement:this.state.editElement,renderEditForm:this.props.renderEditForm,saveAlways:this.props.saveAlways,renderRichTextEditor:this.props.renderRichTextEditor,onImageUpload:this.props.onImageUpload}),l().createElement(Mp,(0,e.A)({},t,{customItems:this.props.customToolbarItems})))))))}}])}(l().Component);function ef(t){var n=t.locale?t.locale:"en",r=$p[n];return l().createElement(Te,{locale:r.locale,messages:r.messages},l().createElement(Fp,(0,e.A)({},t,{onCheckboxClick:function(e){t.onCheckboxClick&&t.onCheckboxClick(e)}})))}var nf={};nf.ReactFormBuilder=tf,nf.ReactFormGenerator=ef,nf.ElementStore=Ue,nf.Registry=dl();const rf=nf})(),s})());
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define("ReactFormBuilder",["react","react-dom"],t):"object"==typeof exports?exports.ReactFormBuilder=t(require("react"),require("react-dom")):e.ReactFormBuilder=t(e.React,e.ReactDOM)}(self,(e,t)=>(()=>{var n,r,i={328:(e,t,n)=>{n(8624),e.exports=self.fetch.bind(self)},467:(e,t,n)=>{"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise(function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,l,"next",e)}function l(e){r(a,i,o,s,l,"throw",e)}s(void 0)})}}n.d(t,{A:()=>i})},579:(e,t,n)=>{var r=n(3738).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},646:e=>{"use strict";e.exports=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(!e){var o;if(void 0===t)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(o=new Error(t.replace(/%s/g,function(){return String(r[a++])}))).name="Invariant Violation"}throw o.framesToPop=1,o}}},816:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2284);function i(e){var t=function(e){if("object"!=(0,r.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=(0,r.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(t)?t:t+""}},887:(e,t,n)=>{var r=n(6993),i=n(1791);e.exports=function(e,t,n,o,a){return new i(r().w(e,t,n,o),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},968:(e,t,n)=>{"use strict";n.d(t,{J:()=>s,b:()=>a});var r=n(328),i=n.n(r),o={Accept:"application/json","Content-Type":"application/json; charset=utf-8",OPTIONS:""};function a(e,t){return i()(e,{method:"POST",headers:o,body:JSON.stringify(t)}).then(function(e){return e})}function s(e){return i()(e,{method:"GET",headers:o}).then(function(e){return e.json()})}},1020:(e,t,n)=>{"use strict";var r=n(4012),i=Symbol.for("react.element"),o=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,n){var r,l={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)o.call(t,r)&&!s.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===l[r]&&(l[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:l,_owner:a.current}}},1071:(e,t,n)=>{"use strict";n.d(t,{RK:()=>a,TT:()=>r,hN:()=>s});var r,i=n(4293),o=n(1732);function a(e){return"function"==typeof e}function s(e,t,n,l,u,c,d){if(1===e.length&&(0,i.eW)(e[0]))return[{type:r.literal,value:e[0].value}];for(var h=[],p=0,f=e;p<f.length;p++){var m=f[p];if((0,i.eW)(m))h.push({type:r.literal,value:m.value});else if((0,i.jA)(m))"number"==typeof c&&h.push({type:r.literal,value:n.getNumberFormat(t).format(c)});else{var g=m.value;if(!u||!(g in u))throw new o.Ei(g,d);var v=u[g];if((0,i.Im)(m))v&&"string"!=typeof v&&"number"!=typeof v||(v="string"==typeof v||"number"==typeof v?String(v):""),h.push({type:"string"==typeof v?r.literal:r.object,value:v});else if((0,i.tv)(m)){var y="string"==typeof m.style?l.date[m.style]:(0,i.Tu)(m.style)?m.style.parsedOptions:void 0;h.push({type:r.literal,value:n.getDateTimeFormat(t,y).format(v)})}else if((0,i.Qh)(m))y="string"==typeof m.style?l.time[m.style]:(0,i.Tu)(m.style)?m.style.parsedOptions:l.time.medium,h.push({type:r.literal,value:n.getDateTimeFormat(t,y).format(v)});else if((0,i.oF)(m))(y="string"==typeof m.style?l.number[m.style]:(0,i.N1)(m.style)?m.style.parsedOptions:void 0)&&y.scale&&(v*=y.scale||1),h.push({type:r.literal,value:n.getNumberFormat(t,y).format(v)});else{if((0,i.xm)(m)){var b=m.children,w=m.value,E=u[w];if(!a(E))throw new o.Zo(w,"function",d);var _=E(s(b,t,n,l,u,c).map(function(e){return e.value}));Array.isArray(_)||(_=[_]),h.push.apply(h,_.map(function(e){return{type:"string"==typeof e?r.literal:r.object,value:e}}))}if((0,i.Jp)(m)){if(!(k=m.options[v]||m.options.other))throw new o.$x(m.value,v,Object.keys(m.options),d);h.push.apply(h,s(k.value,t,n,l,u))}else if((0,i.N6)(m)){var k;if(!(k=m.options["=".concat(v)])){if(!Intl.PluralRules)throw new o.IF('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',o.O4.MISSING_INTL_API,d);var T=n.getPluralRules(t,{type:m.pluralType}).select(v-(m.offset||0));k=m.options[T]||m.options.other}if(!k)throw new o.$x(m.value,v,Object.keys(m.options),d);h.push.apply(h,s(k.value,t,n,l,u,v-(m.offset||0)))}}}}return(C=h).length<2?C:C.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 C}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(r||(r={}))},1100: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,i;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,i=e.length;r<i;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,"")}}},1635:(e,t,n)=>{"use strict";n.d(t,{C6:()=>i,Cl:()=>o,Tt:()=>a,fX:()=>s});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 i(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 o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},1732:(e,t,n)=>{"use strict";n.d(t,{$x:()=>a,Ei:()=>l,IF:()=>o,O4:()=>r,Zo:()=>s});var r,i=n(1635);!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(r||(r={}));var o=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return(0,i.C6)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),a=function(e){function t(t,n,i,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),r.INVALID_VALUE,o)||this}return(0,i.C6)(t,e),t}(o),s=function(e){function t(t,n,i){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),r.INVALID_VALUE,i)||this}return(0,i.C6)(t,e),t}(o),l=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,i.C6)(t,e),t}(o)},1791:(e,t,n)=>{var r=n(5172),i=n(5546);e.exports=function e(t,n){function o(e,i,a,s){try{var l=t[e](i),u=l.value;return u instanceof r?n.resolve(u.v).then(function(e){o("next",e,a,s)},function(e){o("throw",e,a,s)}):n.resolve(u).then(function(e){l.value=e,a(l)},function(e){return o("throw",e,a,s)})}catch(e){s(e)}}var a;this.next||(i(e.prototype),i(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),i(this,"_invoke",function(e,t,r){function i(){return new n(function(t,n){o(e,r,t,n)})}return a=a?a.then(i,i):i()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},1857: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}()},2017:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!==i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!==i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!==i--;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},2048:(e,t,n)=>{var r=n(6018).FilterCSS,i=n(6018).getDefaultWhiteList,o=n(9349);var a=new r;function s(e){return e.replace(l,"<").replace(u,">")}var l=/</g,u=/>/g,c=/"/g,d=/"/g,h=/&#([a-zA-Z0-9]*);?/gim,p=/:?/gim,f=/&newline;?/gim,m=/((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,g=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,v=/u\s*r\s*l\s*\(.*/gi;function y(e){return e.replace(c,""")}function b(e){return e.replace(d,'"')}function w(e){return e.replace(h,function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))})}function E(e){return e.replace(p,":").replace(f," ")}function _(e){for(var t="",n=0,r=e.length;n<r;n++)t+=e.charCodeAt(n)<32?" ":e.charAt(n);return o.trim(t)}function k(e){return _(e=E(e=w(e=b(e))))}function T(e){return s(e=y(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","loading"],ins:["datetime"],kbd:[],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","loading"],ins:["datetime"],kbd:[],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=o.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(m.lastIndex=0,m.test(n))return""}else if("style"===t){if(g.lastIndex=0,g.test(n))return"";if(v.lastIndex=0,v.test(n)&&(m.lastIndex=0,m.test(n)))return"";!1!==r&&(n=(r=r||a).process(n))}return T(n)},t.escapeHtml=s,t.escapeQuote=y,t.unescapeQuote=b,t.escapeHtmlEntities=w,t.escapeDangerHtml5Entities=E,t.clearNonPrintableCharacter=_,t.friendlyAttrValue=k,t.escapeAttrValue=T,t.onIgnoreTagStripAll=function(){return""},t.StripTagBody=function(e,t){"function"!=typeof t&&(t=function(){});var n=!Array.isArray(e),r=[],i=!1;return{onIgnoreTag:function(a,s,l){if(function(t){return!!n||-1!==o.indexOf(e,t)}(a)){if(l.isClosing){var u=l.position+10;return r.push([!1!==i?i:l.position,u]),i=!1,"[/removed]"}return i||(i=l.position),"[removed]"}return t(a,s,l)},remove:function(e){var t="",n=0;return o.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 i=e.indexOf("--\x3e",r);if(-1===i)break;n=i+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.attributeWrapSign='"',t.cssFilter=a,t.getDefaultCSSWhiteList=i},2284:(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,{A:()=>r})},2587:(e,t,n)=>{"use strict";n.d(t,{S:()=>l});var r=n(1635),i=n(4819),o=n(4293),a=n(1071);function s(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}var l=function(){function e(t,n,o,l){void 0===n&&(n=e.defaultLocale);var u,c,d,h=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=h.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce(function(e,t){return e.length&&t.type===a.TT.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.hN)(h.ast,h.locales,h.formatters,h.formats,e,void 0,h.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=h.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(h.locales)[0]}},this.getAst=function(){return h.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`");var p=l||{},f=(p.formatters,(0,r.Tt)(p,["formatters"]));this.ast=e.__parse(t,(0,r.Cl)((0,r.Cl)({},f),{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=(c=e.formats,(d=o)?Object.keys(c).reduce(function(e,t){var n,i;return e[t]=(n=c[t],(i=d[t])?(0,r.Cl)((0,r.Cl)((0,r.Cl)({},n||{}),i||{}),Object.keys(n).reduce(function(e,t){return e[t]=(0,r.Cl)((0,r.Cl)({},n[t]),i[t]||{}),e},{})):n),e},(0,r.Cl)({},c)):c),this.formatters=l&&l.formatters||(void 0===(u=this.formatterCache)&&(u={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,i.B)(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.fX)([void 0],t,!1)))},{cache:s(u.number),strategy:i.W.variadic}),getDateTimeFormat:(0,i.B)(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.fX)([void 0],t,!1)))},{cache:s(u.dateTime),strategy:i.W.variadic}),getPluralRules:(0,i.B)(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.fX)([void 0],t,!1)))},{cache:s(u.pluralRules),strategy:i.W.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){if(void 0!==Intl.Locale){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.qg,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}()},2694:(e,t,n)=>{"use strict";var r=n(6925);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,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:o,resetWarningCache:i};return n.PropTypes=n,n}},2799:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case h:case g:case m:case l:return e;default:return t}}case i:return t}}}function _(e){return E(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=h,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return _(e)||E(e)===c},t.isConcurrentMode=_,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===h},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=E},2881:(e,t,n)=>{var r={EventEmitter:n(4566),EmitterSubscription:n(7274)};e.exports=r},2901:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(816);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,r.A)(i.key),i)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},3029:(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,{A:()=>r})},3145:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},3473:(e,t,n)=>{var r=n(7043),i=n(5323);function o(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(1100),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 i(e,function(e,t,i,l,u){var c=n[i],d=!1;if(!0===c?d=c:"function"==typeof c?d=c(l):c instanceof RegExp&&(d=c.test(l)),!0!==d&&(d=!1),l=s(i,l)){var h,p={position:t,sourcePosition:e,source:u,isWhite:d};return d?o(h=r(i,l,p))?i+":"+l:h:o(h=a(i,l,p))?void 0:h}})},e.exports=a},3738: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},3954:(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,{A:()=>r})},4005:(e,t,n)=>{var r=n(2048),i=n(5930),o=n(8327);function a(e,t){return new o(t).process(e)}(t=e.exports=a).filterXSS=a,t.FilterXSS=o,function(){for(var e in r)t[e]=r[e];for(var n in i)t[n]=i[n]}(),"undefined"!=typeof window&&(window.filterXSS=e.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=e.exports)},4012:t=>{"use strict";t.exports=e},4146:(e,t,n)=>{"use strict";var r=n(4363),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var i=p(n);i&&i!==f&&e(t,i,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!(o[v]||r&&r[v]||m&&m[v]||s&&s[v])){var y=h(n,v);try{u(t,v,y)}catch(e){}}}}return t}},4184:(e,t,n)=>{"use strict";n.d(t,{HM:()=>a,JF:()=>s,SP:()=>c,bN:()=>h,yU:()=>d});var r=n(1635),i=n(4012),o=n(7683);function a(e){!function(e,t,n){if(void 0===n&&(n=Error),!e)throw new n("[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}(e)}var s=(0,r.Cl)((0,r.Cl)({},o.JF),{textComponent:i.Fragment}),l={key:42},u=function(e){return i.isValidElement(e)?i.createElement(i.Fragment,l,e):e},c=function(e){var t;return null!==(t=i.Children.map(e,u))&&void 0!==t?t:[]};function d(e){return function(t){return e(i.Children.toArray(t))}}function h(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var o=0;o<i;o++){var a=n[o];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}},4213:function(e,t,n){var r,i;void 0===(i="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 i(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 o="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=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(e,n,a){var s=o.URL||o.webkitURL,l=document.createElement("a");n=n||e.name||"download",l.download=n,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?i(l):r(l.href)?t(e,n,a):i(l,l.target="_blank")):(l.href=s.createObjectURL(e),setTimeout(function(){s.revokeObjectURL(l.href)},4e4),setTimeout(function(){i(l)},0))}:"msSaveOrOpenBlob"in navigator?function(e,n,o){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,o),n);else if(r(e))t(e,n,o);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout(function(){i(a)})}}:function(e,n,r,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var s="application/octet-stream"===e.type,l=/constructor/i.test(o.HTMLElement)||o.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||s&&l||a)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=u?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},c.readAsDataURL(e)}else{var d=o.URL||o.webkitURL,h=d.createObjectURL(e);i?i.location=h:location.href=h,i=null,setTimeout(function(){d.revokeObjectURL(h)},4e4)}});o.saveAs=s.saveAs=s,e.exports=s})?r.apply(t,[]):r)||(e.exports=i)},4293:(e,t,n)=>{"use strict";n.d(t,{ZE:()=>i,Im:()=>u,tv:()=>d,Tu:()=>y,eW:()=>l,oF:()=>c,N1:()=>v,N6:()=>f,jA:()=>m,Jp:()=>p,xm:()=>g,Qh:()=>h,qg:()=>le});var r,i,o,a,s=n(1635);function l(e){return e.type===i.literal}function u(e){return e.type===i.argument}function c(e){return e.type===i.number}function d(e){return e.type===i.date}function h(e){return e.type===i.time}function p(e){return e.type===i.select}function f(e){return e.type===i.plural}function m(e){return e.type===i.pound}function g(e){return e.type===i.tag}function v(e){return!(!e||"object"!=typeof e||e.type!==o.number)}function y(e){return!(!e||"object"!=typeof e||e.type!==o.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={})),(a=i||(i={}))[a.literal=0]="literal",a[a.argument=1]="argument",a[a.number=2]="number",a[a.date=3]="date",a[a.time=4]="time",a[a.select=5]="select",a[a.plural=6]="plural",a[a.pound=7]="pound",a[a.tag=8]="tag",function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(o||(o={}));var b=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,w=/(?:[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 E(e){var t={};return e.replace(w,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?"long":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 _=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function k(e){return e.replace(/^(.*?)-/,"")}var T=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,C=/^(@+)?(\+|#+)?[rs]?$/g,A=/(\*)(0+)|(#+)(0+)|(0+)/g,O=/^(0+)$/;function x(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(C,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 S(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 D(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)),!O.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function I(e){return S(e)||{}}function P(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.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=k(i.options[0]);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,s.Cl)((0,s.Cl)((0,s.Cl)({},t),{notation:"scientific"}),i.options.reduce(function(e,t){return(0,s.Cl)((0,s.Cl)({},e),I(t))},{}));continue;case"engineering":t=(0,s.Cl)((0,s.Cl)((0,s.Cl)({},t),{notation:"engineering"}),i.options.reduce(function(e,t){return(0,s.Cl)((0,s.Cl)({},e),I(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(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(A,function(e,n,r,i,o,a){if(n)t.minimumIntegerDigits=r.length;else{if(i&&o)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(O.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(T.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(T,function(e,n,r,i,o,a){return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""});var o=i.options[0];"w"===o?t=(0,s.Cl)((0,s.Cl)({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=(0,s.Cl)((0,s.Cl)({},t),x(o)))}else if(C.test(i.stem))t=(0,s.Cl)((0,s.Cl)({},t),x(i.stem));else{var a=S(i.stem);a&&(t=(0,s.Cl)((0,s.Cl)({},t),a));var l=D(i.stem);l&&(t=(0,s.Cl)((0,s.Cl)({},t),l))}}return t}var M,N={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function R(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),(N[n||""]||N[r||""]||N["".concat(r,"-001")]||N["001"])[0]}var L=new RegExp("^".concat(b.source,"*")),H=new RegExp("".concat(b.source,"*$"));function B(e,t){return{start:e,end:t}}var F=!!String.prototype.startsWith&&"_a".startsWith("a",1),j=!!String.fromCodePoint,U=!!Object.fromEntries,V=!!String.prototype.codePointAt,z=!!String.prototype.trimStart,q=!!String.prototype.trimEnd,G=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},W=!0;try{W="a"===(null===(M=ee("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===M?void 0:M[0])}catch(e){W=!1}var Y,$=F?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},X=j?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,o=0;i>o;){if((n=e[o++])>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},K=U?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],a=i[1];t[o]=a}return t},Q=V?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},Z=z?function(e){return e.trimStart()}:function(e){return e.replace(L,"")},J=q?function(e){return e.trimEnd()}:function(e){return e.replace(H,"")};function ee(e,t){return new RegExp(e,t)}if(W){var te=ee("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Y=function(e,t){var n;return te.lastIndex=t,null!==(n=te.exec(e)[1])&&void 0!==n?n:""}}else Y=function(e,t){for(var n=[];;){var r=Q(e,t);if(void 0===r||oe(r)||ae(r))break;n.push(r),t+=r>=65536?2:1}return X.apply(void 0,n)};var ne=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 o=[];!this.isEOF();){var a=this.char();if(123===a){if((s=this.parseArgument(e,n)).err)return s;o.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,B(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&re(this.peek()||0)){if((s=this.parseTag(e,t)).err)return s;o.push(s.val)}else{var s;if((s=this.parseLiteral(e,t)).err)return s;o.push(s.val)}}else{var l=this.clonePosition();this.bump(),o.push({type:i.pound,location:B(l,this.clonePosition())})}}}return{val:o,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:i.literal,value:"<".concat(o,"/>"),location:B(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,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!re(this.char()))return this.error(r.INVALID_TAG,B(l,this.clonePosition()));var u=this.clonePosition();return o!==this.parseTagName()?this.error(r.UNMATCHED_CLOSING_TAG,B(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:i.tag,value:o,children:s,location:B(n,this.clonePosition())},err:null}:this.error(r.INVALID_TAG,B(l,this.clonePosition())))}return this.error(r.UNCLOSED_TAG,B(n,this.clonePosition()))}return this.error(r.INVALID_TAG,B(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&ie(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{var a=this.tryParseUnquoted(e,t);if(a)r+=a;else{var s=this.tryParseLeftAngleBracket();if(!s)break;r+=s}}}var l=B(n,this.clonePosition());return{val:{type:i.literal,value:r,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(re(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 X.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(),X(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,B(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(r.EMPTY_ARGUMENT,B(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(r.MALFORMED_ARGUMENT,B(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,B(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:i.argument,value:o,location:B(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,B(n,this.clonePosition())):this.parseArgumentOptions(e,t,o,n);default:return this.error(r.MALFORMED_ARGUMENT,B(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:B(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,a){var l,u=this.clonePosition(),c=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(c){case"":return this.error(r.EXPECT_ARGUMENT_TYPE,B(u,d));case"number":case"date":case"time":this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var p=this.clonePosition();if((_=this.parseSimpleArgStyleIfPossible()).err)return _;if(0===(v=J(_.val)).length)return this.error(r.EXPECT_ARGUMENT_STYLE,B(this.clonePosition(),this.clonePosition()));h={style:v,styleLocation:B(p,this.clonePosition())}}if((k=this.tryParseArgumentClose(a)).err)return k;var f=B(a,this.clonePosition());if(h&&$(null==h?void 0:h.style,"::",0)){var m=Z(h.style.slice(2));if("number"===c)return(_=this.parseNumberSkeletonFromString(m,h.styleLocation)).err?_:{val:{type:i.number,value:n,location:f,style:_.val},err:null};if(0===m.length)return this.error(r.EXPECT_DATE_TIME_SKELETON,f);var g=m;this.locale&&(g=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var a=1+(1&o),s=o<2?1:3+(o>>1),l=R(t);for("H"!=l&&"k"!=l||(s=0);s-- >0;)n+="a";for(;a-- >0;)n=l+n}else n+="J"===i?"H":i}return n}(m,this.locale));var v={type:o.dateTime,pattern:g,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?E(g):{}};return{val:{type:"date"===c?i.date:i.time,value:n,location:f,style:v},err:null}}return{val:{type:"number"===c?i.number:"date"===c?i.date:i.time,value:n,location:f,style:null!==(l=null==h?void 0:h.style)&&void 0!==l?l:null},err:null};case"plural":case"selectordinal":case"select":var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(r.EXPECT_SELECT_ARGUMENT_OPTIONS,B(y,(0,s.Cl)({},y)));this.bumpSpace();var b=this.parseIdentifierIfPossible(),w=0;if("select"!==c&&"offset"===b.value){if(!this.bumpIf(":"))return this.error(r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,B(this.clonePosition(),this.clonePosition()));var _;if(this.bumpSpace(),(_=this.tryParseDecimalInteger(r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return _;this.bumpSpace(),b=this.parseIdentifierIfPossible(),w=_.val}var k,T=this.tryParsePluralOrSelectOptions(e,c,t,b);if(T.err)return T;if((k=this.tryParseArgumentClose(a)).err)return k;var C=B(a,this.clonePosition());return"select"===c?{val:{type:i.select,value:n,options:K(T.val),location:C},err:null}:{val:{type:i.plural,value:n,options:K(T.val),offset:w,pluralType:"plural"===c?"cardinal":"ordinal",location:C},err:null};default:return this.error(r.INVALID_ARGUMENT_TYPE,B(u,d))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,B(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,B(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(_).filter(function(e){return e.length>0});n<r.length;n++){var i=r[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],a=i.slice(1),s=0,l=a;s<l.length;s++)if(0===l[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:a})}return t}(e)}catch(e){return this.error(r.INVALID_NUMBER_SKELETON,t)}return{val:{type:o.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?P(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,i){for(var o,a=!1,s=[],l=new Set,u=i.value,c=i.location;;){if(0===u.length){var d=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger(r.EXPECT_PLURAL_ARGUMENT_SELECTOR,r.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=B(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}if(l.has(u))return this.error("select"===t?r.DUPLICATE_SELECT_ARGUMENT_SELECTOR:r.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===u&&(a=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,B(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(e+1,t,n);if(f.err)return f;var m=this.tryParseArgumentClose(p);if(m.err)return m;s.push([u,{value:f.val,location:B(p,this.clonePosition())}]),l.add(u),this.bumpSpace(),u=(o=this.parseIdentifierIfPossible()).value,c=o.location}return 0===s.length?this.error("select"===t?r.EXPECT_SELECT_ARGUMENT_SELECTOR:r.EXPECT_PLURAL_ARGUMENT_SELECTOR,B(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(r.MISSING_OTHER_CLAUSE,B(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 i=!1,o=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var s=B(r,this.clonePosition());return i?G(o*=n)?{val:o,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($(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()&&oe(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 re(e){return e>=97&&e<=122||e>=65&&e<=90}function ie(e){return 45===e||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}function oe(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function ae(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 se(e){e.forEach(function(e){if(delete e.location,p(e)||f(e))for(var t in e.options)delete e.options[t].location,se(e.options[t].value);else c(e)&&v(e.style)||(d(e)||h(e))&&y(e.style)?delete e.style.location:g(e)&&se(e.children)})}function le(e,t){void 0===t&&(t={}),t=(0,s.Cl)({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new ne(e,t).parse();if(n.err){var i=SyntaxError(r[n.err.kind]);throw i.location=n.err.location,i.originalMessage=n.err.message,i}return(null==t?void 0:t.captureLocation)||se(n.val),n.val}},4363:(e,t,n)=>{"use strict";e.exports=n(2799)},4373:e=>{e.exports=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},4467:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(816);function i(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},4566:(e,t,n)=>{"use strict";var r=n(7274),i=n(9402),o=n(646),a=n(9395),s=function(){function e(){this._subscriber=new i,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||o(!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 i=t[n[r]];i&&(this._currentSubscription=i,this.__emitToSubscription.apply(this,[i].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},4633:(e,t,n)=>{var r=n(5172),i=n(6993),o=n(5869),a=n(887),s=n(1791),l=n(4373),u=n(579);function c(){"use strict";var t=i(),n=t.m(c),d=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function h(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))}var p={throw:1,return:2,break:3,continue:3};function f(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,p[e],t)},delegateYield:function(e,i,o){return t.resultName=i,n(r.d,u(e),o)},finish:function(e){return n(r.f,e)}},n=function(e,n,i){r.p=t.prev,r.n=t.next;try{return e(n,i)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(e.exports=c=function(){return{wrap:function(e,n,r,i){return t.w(f(e),n,r,i&&i.reverse())},isGeneratorFunction:h,mark:t.m,awrap:function(e,t){return new r(e,t)},AsyncIterator:s,async:function(e,t,n,r,i){return(h(t)?a:o)(f(e),t,n,r,i)},keys:l,values:u}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports},4756:(e,t,n)=>{var r=n(4633)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},4819:(e,t,n)=>{"use strict";function r(e,t){var n=t&&t.cache?t.cache:c,r=t&&t.serializer?t.serializer:l;return(t&&t.strategy?t.strategy:s)(e,{cache:n,serializer:r})}function i(e,t,n,r){var i,o=null==(i=r)||"number"==typeof i||"boolean"==typeof i?r:n(r),a=t.get(o);return void 0===a&&(a=e.call(this,r),t.set(o,a)),a}function o(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return void 0===o&&(o=e.apply(this,r),t.set(i,o)),o}function a(e,t,n,r,i){return n.bind(t,e,r,i)}function s(e,t){return a(e,this,1===e.length?i:o,t.cache.create(),t.serializer)}n.d(t,{B:()=>r,W:()=>d});var l=function(){return JSON.stringify(arguments)},u=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e}(),c={create:function(){return new u}},d={variadic:function(e,t){return a(e,this,o,t.cache.create(),t.serializer)},monadic:function(e,t){return a(e,this,i,t.cache.create(),t.serializer)}}},4848:(e,t,n)=>{"use strict";e.exports=n(1020)},5172:e=>{e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},5323:(e,t,n)=>{var r=n(1100);e.exports=function(e,t){";"!==(e=r.trimRight(e))[e.length-1]&&(e+=";");var n=e.length,i=!1,o=0,a=0,s="";function l(){if(!i){var n=r.trim(e.slice(o,a)),l=n.indexOf(":");if(-1!==l){var u=r.trim(n.slice(0,l)),c=r.trim(n.slice(l+1));if(u){var d=t(o,s.length,u,c,n);d&&(s+=d+"; ")}}}o=a+1}for(;a<n;a++){var u=e[a];if("/"===u&&"*"===e[a+1]){var c=e.indexOf("*/",a+2);if(-1===c)break;o=(a=c+1)+1,i=!1}else"("===u?i=!0:")"===u?i=!1:";"===u?i||l():"\n"===u&&l()}return r.trim(s)}},5361:(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 i(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,{A:()=>i})},5458:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(3145),i=n(7800);function o(e){return function(e){if(Array.isArray(e))return(0,r.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,i.A)(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.")}()}},5546:e=>{function t(n,r,i,o){var a=Object.defineProperty;try{a({},"",{})}catch(n){a=0}e.exports=t=function(e,n,r,i){function o(n,r){t(e,n,function(e){return this._invoke(n,r,e)})}n?a?a(e,n,{value:r,enumerable:!i,configurable:!i,writable:!i}):e[n]=r:(o("next",0),o("throw",1),o("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r,i,o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},5556:(e,t,n)=>{e.exports=n(2694)()},5856: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},5869:(e,t,n)=>{var r=n(887);e.exports=function(e,t,n,i,o){var a=r(e,t,n,i,o);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},5930:(e,t,n)=>{var r=n(9349);function i(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 o(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 l(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 c(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,l=!1,u=0,c=e.length,d="",h="";e:for(u=0;u<c;u++){var p=e.charAt(u);if(!1===s){if("<"===p){s=u;continue}}else if(!1===l){if("<"===p){r+=n(e.slice(a,u)),s=u,a=u;continue}if(">"===p||u===c-1){r+=n(e.slice(a,s)),d=i(h=e.slice(s,u+1)),r+=t(s,r.length,d,h,o(h)),a=u+1,s=!1;continue}if('"'===p||"'"===p)for(var f=1,m=e.charAt(u-f);""===m.trim()||"="===m;){if("="===m){l=p;continue e}m=e.charAt(u-++f)}}else if(p===l){l=!1;continue}}return a<c&&(r+=n(e.substr(a))),r},t.parseAttr=function(e,t){"use strict";var n=0,i=0,o=[],d=!1,h=e.length;function p(e,n){if(!((e=(e=r.trim(e)).replace(a,"").toLowerCase()).length<1)){var i=t(e,n||"");i&&o.push(i)}}for(var f=0;f<h;f++){var m,g=e.charAt(f);if(!1!==d||"="!==g)if(!1===d||f!==i){if(/\s|\n|\t/.test(g)){if(e=e.replace(/\s|\n|\t/g," "),!1===d){if(-1===(m=s(e,f))){p(r.trim(e.slice(n,f))),d=!1,n=f+1;continue}f=m-1;continue}if(-1===(m=u(e,f-1))){p(d,c(r.trim(e.slice(n,f)))),d=!1,n=f+1;continue}}}else{if(-1===(m=e.indexOf(g,f+1)))break;p(d,r.trim(e.slice(i+1,m))),d=!1,n=(f=m)+1}else d=e.slice(n,f),n=f+1,i='"'===e.charAt(n)||"'"===e.charAt(n)?n:l(e,f+1)}return n<e.length&&(!1===d?p(e.slice(n)):p(d,c(r.trim(e.slice(n))))),r.trim(o.join(" "))}},6018:(e,t,n)=>{var r=n(7043),i=n(3473);for(var o in(t=e.exports=function(e,t){return new i(t).process(e)}).FilterCSS=i,r)t[o]=r[o];"undefined"!=typeof window&&(window.filterCSS=e.exports)},6033:e=>{"use strict";e.exports=t},6567:function(e){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.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,i){for(var o=e?1:-1,a=e?0:r-1;e?a<r:a>-1;a+=o)for(var s=0;s<t;s++)if(n(s,a,t,i))return a;return null}function i(e,t,r,i){for(var o=e?1:-1,a=e?0:t-1;e?a<t:a>-1;a+=o)for(var s=0;s<r;s++)if(n(a,s,t,i))return a;return null}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.getContext("2d"),n=e.width,o=e.height,a=t.getImageData(0,0,n,o).data,s=r(!0,n,o,a),l=r(!1,n,o,a),u=i(!0,n,o,a),c=i(!1,n,o,a)-u+1,d=l-s+1,h=t.getImageData(u,s,c,d);return e.width=c,e.height=d,t.clearRect(0,0,c,d),t.putImageData(h,0,0),e}}])},6822:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2284),i=n(9417);function o(e,t){if(t&&("object"==(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.A)(e)}},6894:(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 i(e,t){if(!e){if(r)throw new Error("Invariant failed");throw new Error(t())}}t.invariant=i;var o=Object.prototype.hasOwnProperty,a=Array.prototype.splice,s=Object.prototype.toString;function l(e){return s.call(e).slice(8,-1)}var u=Object.assign||function(e,t){return c(t).forEach(function(n){o.call(t,n)&&(e[n]=t[n])}),e},c="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function d(e){return Array.isArray(e)?u(e.constructor(e.length),e):"Map"===l(e)?new Map(e):"Set"===l(e)?new Set(e):e&&"object"==typeof e?u(Object.create(Object.getPrototypeOf(e)),e):e}var h=function(){function e(){this.commands=u({},p),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)||i(!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."}),i("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 c(r).forEach(function(t){if(o.call(n.commands,t)){var i=e===a;a=n.commands[t](r[t],a,r,e),i&&n.isEquals(a,e)&&(a=e)}else{var s="Map"===l(e)?n.update(e.get(t),r[t]):n.update(e[t],r[t]),u="Map"===l(a)?a.get(t):a[t];n.isEquals(s,u)&&(void 0!==s||o.call(e,t))||(a===e&&(a=d(e)),"Map"===l(a)?a.set(t,s):a[t]=s)}}),a},e}();t.Context=h;var p={$push:function(e,t,n){return m(t,n,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,n){return m(t,n,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,r,o){return function(e,t){i(Array.isArray(e),function(){return"Expected $splice target to be an array; got "+n(e)}),v(t.$splice)}(t,r),e.forEach(function(e){v(e),t===o&&e.length&&(t=d(o)),a.apply(t,e)}),t},$set:function(e,t,n){return function(e){i(1===Object.keys(e).length,function(){return"Cannot have more than one key in an object with $set"})}(n),e},$toggle:function(e,t){g(e,"$toggle");var n=e.length?d(t):t;return e.forEach(function(e){n[e]=!t[e]}),n},$unset:function(e,t,n,r){return g(e,"$unset"),e.forEach(function(e){Object.hasOwnProperty.call(t,e)&&(t===r&&(t=d(r)),delete t[e])}),t},$add:function(e,t,n,r){return y(t,"$add"),g(e,"$add"),"Map"===l(t)?e.forEach(function(e){var n=e[0],i=e[1];t===r&&t.get(n)!==i&&(t=d(r)),t.set(n,i)}):e.forEach(function(e){t!==r||t.has(e)||(t=d(r)),t.add(e)}),t},$remove:function(e,t,n,r){return y(t,"$remove"),g(e,"$remove"),e.forEach(function(e){t===r&&t.has(e)&&(t=d(r)),t.delete(e)}),t},$merge:function(e,t,r,o){var a,s;return a=t,i((s=e)&&"object"==typeof s,function(){return"update(): $merge expects a spec of type 'object'; got "+n(s)}),i(a&&"object"==typeof a,function(){return"update(): $merge expects a target of type 'object'; got "+n(a)}),c(e).forEach(function(n){e[n]!==t[n]&&(t===o&&(t=d(o)),t[n]=e[n])}),t},$apply:function(e,t){var r;return i("function"==typeof(r=e),function(){return"update(): expected spec of $apply to be a function; got "+n(r)+"."}),e(t)}},f=new h;function m(e,t,r){i(Array.isArray(e),function(){return"update(): expected target of "+n(r)+" to be an array; got "+n(e)+"."}),g(t[r],r)}function g(e,t){i(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 v(e){i(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 y(e,t){var r=l(e);i("Map"===r||"Set"===r,function(){return"update(): "+n(t)+" expects a target of type Set or Map; got "+n(r)})}t.isEquals=f.update.isEquals,t.extend=f.extend,t.default=f.update,t.default.default=e.exports=u(t.default,t)},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,o(n)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},6993:(e,t,n)=>{var r=n(5546);function i(){var t,n,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.toStringTag||"@@toStringTag";function l(e,i,o,a){var s=i&&i.prototype instanceof c?i:c,l=Object.create(s.prototype);return r(l,"_invoke",function(e,r,i){var o,a,s,l=0,c=i||[],d=!1,h={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return o=e,a=0,s=t,h.n=n,u}};function p(e,r){for(a=e,s=r,n=0;!d&&l&&!i&&n<c.length;n++){var i,o=c[n],p=h.p,f=o[2];e>3?(i=f===r)&&(s=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=p&&((i=e<2&&p<o[1])?(a=0,h.v=r,h.n=o[1]):p<f&&(i=e<3||o[0]>r||r>f)&&(o[4]=e,o[5]=r,h.n=f,a=0))}if(i||e>1)return u;throw d=!0,r}return function(i,c,f){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,f),a=c,s=f;(n=a<2?t:s)||!d;){o||(a?a<3?(a>1&&(h.n=-1),p(a,s)):h.n=s:h.v=s);try{if(l=2,o){if(a||(i="next"),n=o[i]){if(!(n=n.call(o,s)))throw TypeError("iterator result is not an object");if(!n.done)return n;s=n.value,a<2&&(a=0)}else 1===a&&(n=o.return)&&n.call(o),a<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((n=(d=h.n<0)?s:e.call(r,h))!==u)break}catch(e){o=t,a=1,s=e}finally{l=1}}return{value:n,done:d}}}(e,o,a),!0),l}var u={};function c(){}function d(){}function h(){}n=Object.getPrototypeOf;var p=[][a]?n(n([][a]())):(r(n={},a,function(){return this}),n),f=h.prototype=c.prototype=Object.create(p);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,r(e,s,"GeneratorFunction")),e.prototype=Object.create(f),e}return d.prototype=h,r(f,"constructor",h),r(h,"constructor",d),d.displayName="GeneratorFunction",r(h,s,"GeneratorFunction"),r(f),r(f,s,"Generator"),r(f,a,function(){return this}),r(f,"toString",function(){return"[object Generator]"}),(e.exports=i=function(){return{w:l,m}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},7003:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=n(4012).useLayoutEffect},7043:(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}},7274:(e,t,n)=>{"use strict";var r=function(e){var t,n;function r(t,n,r){var i;return(i=e.call(this,t)||this).listener=n,i.context=r,i}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(n(5856));e.exports=r},7436:function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(4012),n(5556),n(9168)],r=function(e,t,n,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(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 a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ReactBootstrapSlider=void 0,t=i(t),n=i(n),r=i(r);class l extends t.default.Component{constructor(...e){super(...e),s(this,"checkAndDoDisabled",()=>{const e="disabled"!==this.props.disabled,t=this.mySlider.isEnabled();e?t||this.mySlider.enable():t&&this.mySlider.disable()}),s(this,"updateSliderValues",()=>{void 0===this.props.min||void 0===this.mySlider.min&&void 0===this.mySlider.options.min||this.mySlider.setAttribute("min",this.props.min),void 0===this.props.max||void 0===this.mySlider.max&&void 0===this.mySlider.options.max||this.mySlider.setAttribute("max",this.props.max),void 0===this.props.step||void 0===this.mySlider.step&&void 0===this.mySlider.options.step||this.mySlider.setAttribute("step",this.props.step),this.mySlider.setValue(this.props.value),this.checkAndDoDisabled()})}componentDidMount(){const e=this,t=a(a({},this.props),{},{tooltip:this.props.tooltip||"show"});if(this.mySlider=new r.default(this.node,t),this.props.change||this.props.handleChange){const e=this.props.change||this.props.handleChange;this.mySlider.on("change",t=>{const n={target:{value:t.newValue}};e(n)})}this.props.slideStop&&this.mySlider.on("slideStop",t=>{const n={target:{value:t}};e.props.slideStop(n)}),this.checkAndDoDisabled()}componentDidUpdate(){this.updateSliderValues()}componentWillUnmount(){this.mySlider.destroy()}render(){return t.default.createElement("div",{ref:e=>this.node=e})}}e.ReactBootstrapSlider=l,l.propTypes={min:n.default.number,max:n.default.number,step:n.default.number,value:n.default.oneOfType([n.default.number,n.default.arrayOf(n.default.number.isRequired).isRequired]).isRequired,disabled:n.default.string,tooltip:n.default.string,change:n.default.func,handleChange:n.default.func,slideStop:n.default.func,labelledby:n.default.oneOfType([n.default.string,n.default.arrayOf(n.default.string)])};var u=l;e.default=u},void 0===(o=r.apply(t,i))||(e.exports=o)},7654:e=>{var t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n={uuid:function(e,n){var r,i,o=t,a=[];if(n=n||o.length,e)for(r=0;r<e;r++)a[r]=o[0|Math.random()*n];else for(a[8]=a[13]=a[18]=a[23]="-",a[14]="4",r=0;r<36;r++)a[r]||(i=0|16*Math.random(),a[r]=o[19==r?3&i|8:i]);return a.join("")},uuidFast:function(){for(var e,n=t,r=new Array(36),i=0,o=0;o<36;o++)8==o||13==o||18==o||23==o?r[o]="-":14==o?r[o]="4":(i<=2&&(i=33554432+16777216*Math.random()|0),e=15&i,i>>=4,r[o]=n[19==o?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},7683:(e,t,n)=>{"use strict";n.d(t,{F3:()=>p,GT:()=>h,J9:()=>l,JF:()=>u,MT:()=>c,V1:()=>s});var r=n(1635),i=n(4819),o=n(2587),a=n(9160);function s(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}function l(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 u={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){},onWarn:function(e){}};function c(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function d(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function h(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.B)(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.fX)([void 0],t,!1)))},{cache:d(e.dateTime),strategy:i.W.variadic}),l=(0,i.B)(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.fX)([void 0],t,!1)))},{cache:d(e.number),strategy:i.W.variadic}),u=(0,i.B)(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.fX)([void 0],t,!1)))},{cache:d(e.pluralRules),strategy:i.W.variadic});return{getDateTimeFormat:s,getNumberFormat:l,getMessageFormat:(0,i.B)(function(e,t,n,i){return new o.S(e,t,n,(0,r.Cl)({formatters:{getNumberFormat:l,getDateTimeFormat:s,getPluralRules:u}},i||{}))},{cache:d(e.message),strategy:i.W.variadic}),getRelativeTimeFormat:(0,i.B)(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,(0,r.fX)([void 0],e,!1)))},{cache:d(e.relativeTime),strategy:i.W.variadic}),getPluralRules:u,getListFormat:(0,i.B)(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,(0,r.fX)([void 0],e,!1)))},{cache:d(e.list),strategy:i.W.variadic}),getDisplayNames:(0,i.B)(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(a.bind.apply(a,(0,r.fX)([void 0],e,!1)))},{cache:d(e.displayNames),strategy:i.W.variadic})}}function p(e,t,n,r){var i,o=e&&e[t];if(o&&(i=o[n]),i)return i;r(new a.OC("No ".concat(t," format named: ").concat(n)))}},7800:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(3145);function i(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},8168:(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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},8327:(e,t,n)=>{var r=n(6018).FilterCSS,i=n(2048),o=n(5930),a=o.parseTag,s=o.parseAttr,l=n(9349);function u(e){return null==e}function c(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=i.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=i.whiteList,this.attributeWrapSign=!0===e.singleQuotedAttributeValue?"'":i.attributeWrapSign,e.onTag=e.onTag||i.onTag,e.onTagAttr=e.onTagAttr||i.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||i.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||i.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||i.safeAttrValue,e.escapeHtml=e.escapeHtml||i.escapeHtml,this.options=e,!1===e.css?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new r(e.css))}c.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this,n=t.options,r=n.whiteList,o=n.onTag,c=n.onIgnoreTag,d=n.onTagAttr,h=n.onIgnoreTagAttr,p=n.safeAttrValue,f=n.escapeHtml,m=t.attributeWrapSign,g=t.cssFilter;n.stripBlankChar&&(e=i.stripBlankChar(e)),n.allowCommentTag||(e=i.stripCommentTag(e));var v=!1;n.stripIgnoreTagBody&&(v=i.StripTagBody(n.stripIgnoreTagBody,c),c=v.onIgnoreTag);var y=a(e,function(e,t,n,i,a){var v={sourcePosition:e,position:t,isClosing:a,isWhite:Object.prototype.hasOwnProperty.call(r,n)},y=o(n,i,v);if(!u(y))return y;if(v.isWhite){if(v.isClosing)return"</"+n+">";var b=function(e){var t=l.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=l.trim(e.slice(t+1,-1)))[e.length-1];return n&&(e=l.trim(e.slice(0,-1))),{html:e,closing:n}}(i),w=r[n],E=s(b.html,function(e,t){var r=-1!==l.indexOf(w,e),i=d(n,e,t,r);return u(i)?r?(t=p(n,e,t,g))?e+"="+m+t+m:e:u(i=h(n,e,t,r))?void 0:i:i});return i="<"+n,E&&(i+=" "+E),b.closing&&(i+=" /"),i+">"}return u(y=c(n,i,v))?f(i):y},f);return v&&(y=v.remove(y)),y},e.exports=c},8587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},8624:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DOMException:()=>E,Headers:()=>c,Request:()=>v,Response:()=>b,fetch:()=>_});var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n.g&&n.g||{},i={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(i.arrayBuffer)var o=["[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&&o.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 l(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 i.iterable&&(t[Symbol.iterator]=function(){return t}),t}function c(e){this.map={},e instanceof c?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 d(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function h(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function p(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function f(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():i.arrayBuffer&&i.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=f(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e))?this._bodyArrayBuffer=f(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):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var e=d(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 d(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(i.blob)return this.blob().then(p);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r,i,o=d(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=h(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=r?r[1]:"utf-8",t.readAsText(e,i),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)},i.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(e,t){e=s(e),t=l(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},c.prototype.delete=function(e){delete this.map[s(e)]},c.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},c.prototype.set=function(e,t){this.map[s(e)]=l(t)},c.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},c.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),u(e)},c.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),u(e)},c.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),u(e)},i.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var g=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function v(e,t){if(!(this instanceof v))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,i,o=(t=t||{}).body;if(e instanceof v){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=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 c(t.headers)),this.method=(i=(n=t.method||this.method||"GET").toUpperCase(),g.indexOf(i)>-1?i: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)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("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 y(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),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 c(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},m.call(v.prototype),m.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},b.error=function(){var e=new b(null,{status:200,statusText:""});return e.ok=!1,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 E=r.DOMException;try{new E}catch(e){(E=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),E.prototype.constructor=E}function _(e,t){return new Promise(function(n,o){var a=new v(e,t);if(a.signal&&a.signal.aborted)return o(new E("Aborted","AbortError"));var u=new XMLHttpRequest;function d(){u.abort()}if(u.onload=function(){var e,t,r={statusText:u.statusText,headers:(e=u.getAllResponseHeaders()||"",t=new c,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 i=n.join(":").trim();try{t.append(r,i)}catch(e){console.warn("Response "+e.message)}}}),t)};0===a.url.indexOf("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 i="response"in u?u.response:u.responseText;setTimeout(function(){n(new b(i,r))},0)},u.onerror=function(){setTimeout(function(){o(new TypeError("Network request failed"))},0)},u.ontimeout=function(){setTimeout(function(){o(new TypeError("Network request timed out"))},0)},u.onabort=function(){setTimeout(function(){o(new E("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&&(i.blob?u.responseType="blob":i.arrayBuffer&&(u.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof c||r.Headers&&t.headers instanceof r.Headers)){var h=[];Object.getOwnPropertyNames(t.headers).forEach(function(e){h.push(s(e)),u.setRequestHeader(e,l(t.headers[e]))}),a.headers.forEach(function(e,t){-1===h.indexOf(t)&&u.setRequestHeader(t,e)})}else a.headers.forEach(function(e,t){u.setRequestHeader(t,e)});a.signal&&(a.signal.addEventListener("abort",d),u.onreadystatechange=function(){4===u.readyState&&a.signal.removeEventListener("abort",d)}),u.send(void 0===a._bodyInit?null:a._bodyInit)})}_.polyfill=!0,r.fetch||(r.fetch=_,r.Headers=c,r.Request=v,r.Response=b)},8798:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>h,Kq:()=>c,ob:()=>d});var r=n(1635),i=n(4146),o=n.n(i),a=n(4012),s=n(4184),l="undefined"==typeof window||window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?a.createContext(null):window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=a.createContext(null)),u=l.Consumer,c=l.Provider,d=l;function h(e,t){var n,i=t||{},l=i.intlPropName,c=void 0===l?"intl":l,d=i.forwardRef,h=void 0!==d&&d,p=i.enforceContext,f=void 0===p||p,m=function(t){return a.createElement(u,null,function(n){var i;f&&(0,s.HM)(n);var o=((i={})[c]=n,i);return a.createElement(e,(0,r.Cl)({},t,o,{ref:h?t.forwardedRef:null}))})};return m.displayName="injectIntl(".concat((n=e).displayName||n.name||"Component",")"),m.WrappedComponent=e,h?o()(a.forwardRef(function(e,t){return a.createElement(m,(0,r.Cl)({},e,{forwardedRef:t}))}),e):o()(m,e)}},8886:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(4012),i=n.n(r),o=n(1635),a=n(4184),s=n(8798);function l(e){var t=function(){var e=r.useContext(s.ob);return(0,a.HM)(e),e}(),n=t.formatMessage,i=t.textComponent,o=void 0===i?r.Fragment:i,l=e.id,u=e.description,c=e.defaultMessage,d=e.values,h=e.children,p=e.tagName,f=void 0===p?o:p,m=n({id:l,description:u,defaultMessage:c},d,{ignoreTag:e.ignoreTag});return"function"==typeof h?h(Array.isArray(m)?m:[m]):f?r.createElement(f,null,m):r.createElement(r.Fragment,null,m)}l.displayName="FormattedMessage";var u=r.memo(l,function(e,t){var n=e.values,r=(0,o.Tt)(e,["values"]),i=t.values,s=(0,o.Tt)(t,["values"]);return(0,a.bN)(i,n)&&(0,a.bN)(r,s)});u.displayName="MemoizedFormattedMessage";const c=u,d=(0,s.Ay)(function(e){return i().createElement(c,e)},{withRef:!1})},8985:e=>{e.exports=null},9160:(e,t,n)=>{"use strict";n.d(t,{Ho:()=>c,OC:()=>a,hr:()=>l,pg:()=>u,sb:()=>d,uo:()=>s});var r,i=n(1635);!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 o=function(e){function t(n,r,i){var o=this,a=i?i instanceof Error?i:new Error(String(i)):void 0;return(o=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(o,t),o}return(0,i.C6)(t,e),t}(Error),a=function(e){function t(t,n){return e.call(this,r.UNSUPPORTED_FORMATTER,t,n)||this}return(0,i.C6)(t,e),t}(o),s=function(e){function t(t,n){return e.call(this,r.INVALID_CONFIG,t,n)||this}return(0,i.C6)(t,e),t}(o),l=function(e){function t(t,n){return e.call(this,r.MISSING_DATA,t,n)||this}return(0,i.C6)(t,e),t}(o),u=function(e){function t(t,n,i){var o=e.call(this,r.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(n,"\n"),i)||this;return o.locale=n,o}return(0,i.C6)(t,e),t}(o),c=function(e){function t(t,n,r,i){var o=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,i)||this;return o.descriptor=r,o.locale=n,o}return(0,i.C6)(t,e),t}(u),d=function(e){function t(t,n){var i=e.call(this,r.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(n,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map(function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=t,i}return(0,i.C6)(t,e),t}(o)},9168:(e,t,n)=>{"use strict";var r,i,o,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},s="object"===("undefined"==typeof window?"undefined":a(window));i=[n(8985)],void 0===(o="function"==typeof(r=function(e){var t,n="slider",r="bootstrapSlider";return s&&!window.console&&(window.console={}),s&&!window.console.log&&(window.console.log=function(){}),s&&!window.console.warn&&(window.console.warn=function(){}),function(e){var t=Array.prototype.slice;function n(){}!function(e){if(e){var r="undefined"==typeof console?n:function(e){console.error(e)};e.bridget=function(n,i){(function(t){t.prototype.option||(t.prototype.option=function(t){e.isPlainObject(t)&&(this.options=e.extend(!0,this.options,t))})})(i),function(n,i){e.fn[n]=function(o){if("string"==typeof o){for(var a=t.call(arguments,1),s=0,l=this.length;s<l;s++){var u=this[s],c=e.data(u,n);if(c)if(e.isFunction(c[o])&&"_"!==o.charAt(0)){var d=c[o].apply(c,a);if(void 0!==d&&d!==c)return d}else r("no such method '"+o+"' for "+n+" instance");else r("cannot call methods on "+n+" prior to initialization; attempted to call '"+o+"'")}return this}var h=this.map(function(){var t=e.data(this,n);return t?(t.option(o),t._init()):(t=new i(this,o),e.data(this,n,t)),e(this)});return 1===h.length?h[0]:h}}(n,i)},e.bridget}}(e)}(e),function(e){var i=void 0,o=function(e){return"Invalid input value '"+e+"' passed in"},a={linear:{getValue:function(e,t){return e<t.min?t.min:e>t.max?t.max:e},toValue:function(e){var t=e/100*(this.options.max-this.options.min),n=!0;if(this.options.ticks_positions.length>0){for(var r,i,o,s=0,l=1;l<this.options.ticks_positions.length;l++)if(e<=this.options.ticks_positions[l]){r=this.options.ticks[l-1],o=this.options.ticks_positions[l-1],i=this.options.ticks[l],s=this.options.ticks_positions[l];break}t=r+(e-o)/(s-o)*(i-r),n=!1}var u=(n?this.options.min:0)+Math.round(t/this.options.step)*this.options.step;return a.linear.getValue(u,this.options)},toPercentage:function(e){if(this.options.max===this.options.min)return 0;if(this.options.ticks_positions.length>0){for(var t,n,r,i=0,o=0;o<this.options.ticks.length;o++)if(e<=this.options.ticks[o]){t=o>0?this.options.ticks[o-1]:0,r=o>0?this.options.ticks_positions[o-1]:0,n=this.options.ticks[o],i=this.options.ticks_positions[o];break}if(o>0)return r+(e-t)/(n-t)*(i-r)}return 100*(e-this.options.min)/(this.options.max-this.options.min)}},logarithmic:{toValue:function(e){var t=1-this.options.min,n=Math.log(this.options.min+t),r=Math.log(this.options.max+t),i=Math.exp(n+(r-n)*e/100)-t;return Math.round(i)===r?r:(i=this.options.min+Math.round((i-this.options.min)/this.options.step)*this.options.step,a.linear.getValue(i,this.options))},toPercentage:function(e){if(this.options.max===this.options.min)return 0;var t=1-this.options.min,n=Math.log(this.options.max+t),r=Math.log(this.options.min+t);return 100*(Math.log(e+t)-r)/(n-r)}}};function l(t,n){this._state={value:null,enabled:null,offset:null,size:null,percentage:null,inDrag:!1,over:!1,tickIndex:null},this.ticksCallbackMap={},this.handleCallbackMap={},"string"==typeof t?this.element=document.querySelector(t):t instanceof HTMLElement&&(this.element=t),n=n||{};for(var r=Object.keys(this.defaultOptions),i=n.hasOwnProperty("min"),o=n.hasOwnProperty("max"),s=0;s<r.length;s++){var l=r[s],u=n[l];u=null!==(u=void 0!==u?u:d(this.element,l))?u:this.defaultOptions[l],this.options||(this.options={}),this.options[l]=u}if(this.ticksAreValid=Array.isArray(this.options.ticks)&&this.options.ticks.length>0,this.ticksAreValid||(this.options.lock_to_ticks=!1),"auto"===this.options.rtl){var c=window.getComputedStyle(this.element);this.options.rtl=null!=c?"rtl"===c.direction:"rtl"===this.element.style.direction}function d(e,t){var n="data-slider-"+t.replace(/_/g,"-"),r=e.getAttribute(n);try{return JSON.parse(r)}catch(e){return r}}"vertical"!==this.options.orientation||"top"!==this.options.tooltip_position&&"bottom"!==this.options.tooltip_position?"horizontal"!==this.options.orientation||"left"!==this.options.tooltip_position&&"right"!==this.options.tooltip_position||(this.options.tooltip_position="top"):this.options.rtl?this.options.tooltip_position="left":this.options.tooltip_position="right";var h,p,f,m,g,v=this.element.style.width,y=!1,b=this.element.parentNode;if(this.sliderElem)y=!0;else{this.sliderElem=document.createElement("div"),this.sliderElem.className="slider";var w=document.createElement("div");w.className="slider-track",(p=document.createElement("div")).className="slider-track-low",(h=document.createElement("div")).className="slider-selection",(f=document.createElement("div")).className="slider-track-high",(m=document.createElement("div")).className="slider-handle min-slider-handle",m.setAttribute("role","slider"),m.setAttribute("aria-valuemin",this.options.min),m.setAttribute("aria-valuemax",this.options.max),(g=document.createElement("div")).className="slider-handle max-slider-handle",g.setAttribute("role","slider"),g.setAttribute("aria-valuemin",this.options.min),g.setAttribute("aria-valuemax",this.options.max),w.appendChild(p),w.appendChild(h),w.appendChild(f),this.rangeHighlightElements=[];var E=this.options.rangeHighlights;if(Array.isArray(E)&&E.length>0)for(var _=0;_<E.length;_++){var k=document.createElement("div"),T=E[_].class||"";k.className="slider-rangeHighlight slider-selection "+T,this.rangeHighlightElements.push(k),w.appendChild(k)}var C=Array.isArray(this.options.labelledby);if(C&&this.options.labelledby[0]&&m.setAttribute("aria-labelledby",this.options.labelledby[0]),C&&this.options.labelledby[1]&&g.setAttribute("aria-labelledby",this.options.labelledby[1]),!C&&this.options.labelledby&&(m.setAttribute("aria-labelledby",this.options.labelledby),g.setAttribute("aria-labelledby",this.options.labelledby)),this.ticks=[],Array.isArray(this.options.ticks)&&this.options.ticks.length>0){for(this.ticksContainer=document.createElement("div"),this.ticksContainer.className="slider-tick-container",s=0;s<this.options.ticks.length;s++){var A=document.createElement("div");if(A.className="slider-tick",this.options.ticks_tooltip){var O=this._addTickListener(),x=O.addMouseEnter(this,A,s),S=O.addMouseLeave(this,A);this.ticksCallbackMap[s]={mouseEnter:x,mouseLeave:S}}this.ticks.push(A),this.ticksContainer.appendChild(A)}h.className+=" tick-slider-selection"}if(this.tickLabels=[],Array.isArray(this.options.ticks_labels)&&this.options.ticks_labels.length>0)for(this.tickLabelContainer=document.createElement("div"),this.tickLabelContainer.className="slider-tick-label-container",s=0;s<this.options.ticks_labels.length;s++){var D=document.createElement("div"),I=0===this.options.ticks_positions.length,P=this.options.reversed&&I?this.options.ticks_labels.length-(s+1):s;D.className="slider-tick-label",D.innerHTML=this.options.ticks_labels[P],this.tickLabels.push(D),this.tickLabelContainer.appendChild(D)}var M=function(e){var t=document.createElement("div");t.className="arrow";var n=document.createElement("div");n.className="tooltip-inner",e.appendChild(t),e.appendChild(n)},N=document.createElement("div");N.className="tooltip tooltip-main",N.setAttribute("role","presentation"),M(N);var R=document.createElement("div");R.className="tooltip tooltip-min",R.setAttribute("role","presentation"),M(R);var L=document.createElement("div");L.className="tooltip tooltip-max",L.setAttribute("role","presentation"),M(L),this.sliderElem.appendChild(w),this.sliderElem.appendChild(N),this.sliderElem.appendChild(R),this.sliderElem.appendChild(L),this.tickLabelContainer&&this.sliderElem.appendChild(this.tickLabelContainer),this.ticksContainer&&this.sliderElem.appendChild(this.ticksContainer),this.sliderElem.appendChild(m),this.sliderElem.appendChild(g),b.insertBefore(this.sliderElem,this.element),this.element.style.display="none"}if(e&&(this.$element=e(this.element),this.$sliderElem=e(this.sliderElem)),this.eventToCallbackMap={},this.sliderElem.id=this.options.id,this.touchCapable="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,this.touchX=0,this.touchY=0,this.tooltip=this.sliderElem.querySelector(".tooltip-main"),this.tooltipInner=this.tooltip.querySelector(".tooltip-inner"),this.tooltip_min=this.sliderElem.querySelector(".tooltip-min"),this.tooltipInner_min=this.tooltip_min.querySelector(".tooltip-inner"),this.tooltip_max=this.sliderElem.querySelector(".tooltip-max"),this.tooltipInner_max=this.tooltip_max.querySelector(".tooltip-inner"),a[this.options.scale]&&(this.options.scale=a[this.options.scale]),!0===y&&(this._removeClass(this.sliderElem,"slider-horizontal"),this._removeClass(this.sliderElem,"slider-vertical"),this._removeClass(this.sliderElem,"slider-rtl"),this._removeClass(this.tooltip,"hide"),this._removeClass(this.tooltip_min,"hide"),this._removeClass(this.tooltip_max,"hide"),["left","right","top","width","height"].forEach(function(e){this._removeProperty(this.trackLow,e),this._removeProperty(this.trackSelection,e),this._removeProperty(this.trackHigh,e)},this),[this.handle1,this.handle2].forEach(function(e){this._removeProperty(e,"left"),this._removeProperty(e,"right"),this._removeProperty(e,"top")},this),[this.tooltip,this.tooltip_min,this.tooltip_max].forEach(function(e){this._removeProperty(e,"bs-tooltip-left"),this._removeProperty(e,"bs-tooltip-right"),this._removeProperty(e,"bs-tooltip-top"),this._removeClass(e,"bs-tooltip-right"),this._removeClass(e,"bs-tooltip-left"),this._removeClass(e,"bs-tooltip-top")},this)),"vertical"===this.options.orientation?(this._addClass(this.sliderElem,"slider-vertical"),this.stylePos="top",this.mousePos="pageY",this.sizePos="offsetHeight"):(this._addClass(this.sliderElem,"slider-horizontal"),this.sliderElem.style.width=v,this.options.orientation="horizontal",this.options.rtl?this.stylePos="right":this.stylePos="left",this.mousePos="clientX",this.sizePos="offsetWidth"),this.options.rtl&&this._addClass(this.sliderElem,"slider-rtl"),this._setTooltipPosition(),Array.isArray(this.options.ticks)&&this.options.ticks.length>0&&(o||(this.options.max=Math.max.apply(Math,this.options.ticks)),i||(this.options.min=Math.min.apply(Math,this.options.ticks))),Array.isArray(this.options.value)?(this.options.range=!0,this._state.value=this.options.value):this.options.range?this._state.value=[this.options.value,this.options.max]:this._state.value=this.options.value,this.trackLow=p||this.trackLow,this.trackSelection=h||this.trackSelection,this.trackHigh=f||this.trackHigh,"none"===this.options.selection?(this._addClass(this.trackLow,"hide"),this._addClass(this.trackSelection,"hide"),this._addClass(this.trackHigh,"hide")):"after"!==this.options.selection&&"before"!==this.options.selection||(this._removeClass(this.trackLow,"hide"),this._removeClass(this.trackSelection,"hide"),this._removeClass(this.trackHigh,"hide")),this.handle1=m||this.handle1,this.handle2=g||this.handle2,!0===y)for(this._removeClass(this.handle1,"round triangle"),this._removeClass(this.handle2,"round triangle hide"),s=0;s<this.ticks.length;s++)this._removeClass(this.ticks[s],"round triangle hide");if(-1!==["round","triangle","custom"].indexOf(this.options.handle))for(this._addClass(this.handle1,this.options.handle),this._addClass(this.handle2,this.options.handle),s=0;s<this.ticks.length;s++)this._addClass(this.ticks[s],this.options.handle);if(this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this.setValue(this._state.value),this.handle1Keydown=this._keydown.bind(this,0),this.handle1.addEventListener("keydown",this.handle1Keydown,!1),this.handle2Keydown=this._keydown.bind(this,1),this.handle2.addEventListener("keydown",this.handle2Keydown,!1),this.mousedown=this._mousedown.bind(this),this.touchstart=this._touchstart.bind(this),this.touchmove=this._touchmove.bind(this),this.touchCapable&&(this.sliderElem.addEventListener("touchstart",this.touchstart,!1),this.sliderElem.addEventListener("touchmove",this.touchmove,!1)),this.sliderElem.addEventListener("mousedown",this.mousedown,!1),this.resize=this._resize.bind(this),window.addEventListener("resize",this.resize,!1),"hide"===this.options.tooltip)this._addClass(this.tooltip,"hide"),this._addClass(this.tooltip_min,"hide"),this._addClass(this.tooltip_max,"hide");else if("always"===this.options.tooltip)this._showTooltip(),this._alwaysShowTooltip=!0;else{if(this.showTooltip=this._showTooltip.bind(this),this.hideTooltip=this._hideTooltip.bind(this),this.options.ticks_tooltip){var H=this._addTickListener(),B=H.addMouseEnter(this,this.handle1),F=H.addMouseLeave(this,this.handle1);this.handleCallbackMap.handle1={mouseEnter:B,mouseLeave:F},B=H.addMouseEnter(this,this.handle2),F=H.addMouseLeave(this,this.handle2),this.handleCallbackMap.handle2={mouseEnter:B,mouseLeave:F}}else this.sliderElem.addEventListener("mouseenter",this.showTooltip,!1),this.sliderElem.addEventListener("mouseleave",this.hideTooltip,!1),this.touchCapable&&(this.sliderElem.addEventListener("touchstart",this.showTooltip,!1),this.sliderElem.addEventListener("touchmove",this.showTooltip,!1),this.sliderElem.addEventListener("touchend",this.hideTooltip,!1));this.handle1.addEventListener("focus",this.showTooltip,!1),this.handle1.addEventListener("blur",this.hideTooltip,!1),this.handle2.addEventListener("focus",this.showTooltip,!1),this.handle2.addEventListener("blur",this.hideTooltip,!1),this.touchCapable&&(this.handle1.addEventListener("touchstart",this.showTooltip,!1),this.handle1.addEventListener("touchmove",this.showTooltip,!1),this.handle1.addEventListener("touchend",this.hideTooltip,!1),this.handle2.addEventListener("touchstart",this.showTooltip,!1),this.handle2.addEventListener("touchmove",this.showTooltip,!1),this.handle2.addEventListener("touchend",this.hideTooltip,!1))}this.options.enabled?this.enable():this.disable()}(t=function(e,t){return l.call(this,e,t),this}).prototype={_init:function(){},constructor:t,defaultOptions:{id:"",min:0,max:10,step:1,precision:0,orientation:"horizontal",value:5,range:!1,selection:"before",tooltip:"show",tooltip_split:!1,lock_to_ticks:!1,handle:"round",reversed:!1,rtl:"auto",enabled:!0,formatter:function(e){return Array.isArray(e)?e[0]+" : "+e[1]:e},natural_arrow_keys:!1,ticks:[],ticks_positions:[],ticks_labels:[],ticks_snap_bounds:0,ticks_tooltip:!1,scale:"linear",focus:!1,tooltip_position:null,labelledby:null,rangeHighlights:[]},getElement:function(){return this.sliderElem},getValue:function(){return this.options.range?this._state.value:this._state.value[0]},setValue:function(e,t,n){e||(e=0);var r=this.getValue();this._state.value=this._validateInputValue(e);var i=this._applyPrecision.bind(this);this.options.range?(this._state.value[0]=i(this._state.value[0]),this._state.value[1]=i(this._state.value[1]),this.ticksAreValid&&this.options.lock_to_ticks&&(this._state.value[0]=this.options.ticks[this._getClosestTickIndex(this._state.value[0])],this._state.value[1]=this.options.ticks[this._getClosestTickIndex(this._state.value[1])]),this._state.value[0]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[0])),this._state.value[1]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[1]))):(this._state.value=i(this._state.value),this.ticksAreValid&&this.options.lock_to_ticks&&(this._state.value=this.options.ticks[this._getClosestTickIndex(this._state.value)]),this._state.value=[Math.max(this.options.min,Math.min(this.options.max,this._state.value))],this._addClass(this.handle2,"hide"),"after"===this.options.selection?this._state.value[1]=this.options.max:this._state.value[1]=this.options.min),this._setTickIndex(),this.options.max>this.options.min?this._state.percentage=[this._toPercentage(this._state.value[0]),this._toPercentage(this._state.value[1]),100*this.options.step/(this.options.max-this.options.min)]:this._state.percentage=[0,0,100],this._layout();var o=this.options.range?this._state.value:this._state.value[0];return this._setDataVal(o),!0===t&&this._trigger("slide",o),(Array.isArray(o)?r[0]!==o[0]||r[1]!==o[1]:r!==o)&&!0===n&&this._trigger("change",{oldValue:r,newValue:o}),this},destroy:function(){this._removeSliderEventHandlers(),this.sliderElem.parentNode.removeChild(this.sliderElem),this.element.style.display="",this._cleanUpEventCallbacksMap(),this.element.removeAttribute("data"),e&&(this._unbindJQueryEventHandlers(),i===n&&this.$element.removeData(i),this.$element.removeData(r))},disable:function(){return this._state.enabled=!1,this.handle1.removeAttribute("tabindex"),this.handle2.removeAttribute("tabindex"),this._addClass(this.sliderElem,"slider-disabled"),this._trigger("slideDisabled"),this},enable:function(){return this._state.enabled=!0,this.handle1.setAttribute("tabindex",0),this.handle2.setAttribute("tabindex",0),this._removeClass(this.sliderElem,"slider-disabled"),this._trigger("slideEnabled"),this},toggle:function(){return this._state.enabled?this.disable():this.enable(),this},isEnabled:function(){return this._state.enabled},on:function(e,t){return this._bindNonQueryEventHandler(e,t),this},off:function(t,n){e?(this.$element.off(t,n),this.$sliderElem.off(t,n)):this._unbindNonQueryEventHandler(t,n)},getAttribute:function(e){return e?this.options[e]:this.options},setAttribute:function(e,t){return this.options[e]=t,this},refresh:function(t){var o=this.getValue();return this._removeSliderEventHandlers(),l.call(this,this.element,this.options),t&&!0===t.useCurrentValue&&this.setValue(o),e&&(i===n?(e.data(this.element,n,this),e.data(this.element,r,this)):e.data(this.element,r,this)),this},relayout:function(){return this._resize(),this},_removeTooltipListener:function(e,t){this.handle1.removeEventListener(e,t,!1),this.handle2.removeEventListener(e,t,!1)},_removeSliderEventHandlers:function(){if(this.handle1.removeEventListener("keydown",this.handle1Keydown,!1),this.handle2.removeEventListener("keydown",this.handle2Keydown,!1),this.options.ticks_tooltip){for(var e=this.ticksContainer.getElementsByClassName("slider-tick"),t=0;t<e.length;t++)e[t].removeEventListener("mouseenter",this.ticksCallbackMap[t].mouseEnter,!1),e[t].removeEventListener("mouseleave",this.ticksCallbackMap[t].mouseLeave,!1);this.handleCallbackMap.handle1&&this.handleCallbackMap.handle2&&(this.handle1.removeEventListener("mouseenter",this.handleCallbackMap.handle1.mouseEnter,!1),this.handle2.removeEventListener("mouseenter",this.handleCallbackMap.handle2.mouseEnter,!1),this.handle1.removeEventListener("mouseleave",this.handleCallbackMap.handle1.mouseLeave,!1),this.handle2.removeEventListener("mouseleave",this.handleCallbackMap.handle2.mouseLeave,!1))}this.handleCallbackMap=null,this.ticksCallbackMap=null,this.showTooltip&&this._removeTooltipListener("focus",this.showTooltip),this.hideTooltip&&this._removeTooltipListener("blur",this.hideTooltip),this.showTooltip&&this.sliderElem.removeEventListener("mouseenter",this.showTooltip,!1),this.hideTooltip&&this.sliderElem.removeEventListener("mouseleave",this.hideTooltip,!1),this.sliderElem.removeEventListener("mousedown",this.mousedown,!1),this.touchCapable&&(this.showTooltip&&(this.handle1.removeEventListener("touchstart",this.showTooltip,!1),this.handle1.removeEventListener("touchmove",this.showTooltip,!1),this.handle2.removeEventListener("touchstart",this.showTooltip,!1),this.handle2.removeEventListener("touchmove",this.showTooltip,!1)),this.hideTooltip&&(this.handle1.removeEventListener("touchend",this.hideTooltip,!1),this.handle2.removeEventListener("touchend",this.hideTooltip,!1)),this.showTooltip&&(this.sliderElem.removeEventListener("touchstart",this.showTooltip,!1),this.sliderElem.removeEventListener("touchmove",this.showTooltip,!1)),this.hideTooltip&&this.sliderElem.removeEventListener("touchend",this.hideTooltip,!1),this.sliderElem.removeEventListener("touchstart",this.touchstart,!1),this.sliderElem.removeEventListener("touchmove",this.touchmove,!1)),window.removeEventListener("resize",this.resize,!1)},_bindNonQueryEventHandler:function(e,t){void 0===this.eventToCallbackMap[e]&&(this.eventToCallbackMap[e]=[]),this.eventToCallbackMap[e].push(t)},_unbindNonQueryEventHandler:function(e,t){var n=this.eventToCallbackMap[e];if(void 0!==n)for(var r=0;r<n.length;r++)if(n[r]===t){n.splice(r,1);break}},_cleanUpEventCallbacksMap:function(){for(var e=Object.keys(this.eventToCallbackMap),t=0;t<e.length;t++){var n=e[t];delete this.eventToCallbackMap[n]}},_showTooltip:function(){!1===this.options.tooltip_split?(this._addClass(this.tooltip,"show"),this.tooltip_min.style.display="none",this.tooltip_max.style.display="none"):(this._addClass(this.tooltip_min,"show"),this._addClass(this.tooltip_max,"show"),this.tooltip.style.display="none"),this._state.over=!0},_hideTooltip:function(){!1===this._state.inDrag&&!0!==this._alwaysShowTooltip&&(this._removeClass(this.tooltip,"show"),this._removeClass(this.tooltip_min,"show"),this._removeClass(this.tooltip_max,"show")),this._state.over=!1},_setToolTipOnMouseOver:function(e){var t,n=this,r=this.options.formatter(e?e.value[0]:this._state.value[0]),i=(t=e||this._state,this.options.reversed?[100-t.percentage[0],n.options.range?100-t.percentage[1]:t.percentage[1]]:[t.percentage[0],t.percentage[1]]);this._setText(this.tooltipInner,r),this.tooltip.style[this.stylePos]=i[0]+"%"},_copyState:function(){return{value:[this._state.value[0],this._state.value[1]],enabled:this._state.enabled,offset:this._state.offset,size:this._state.size,percentage:[this._state.percentage[0],this._state.percentage[1],this._state.percentage[2]],inDrag:this._state.inDrag,over:this._state.over,dragged:this._state.dragged,keyCtrl:this._state.keyCtrl}},_addTickListener:function(){return{addMouseEnter:function(e,t,n){var r=function(){var r=e._copyState(),i=t===e.handle1?r.value[0]:r.value[1],o=void 0;void 0!==n?(i=e.options.ticks[n],o=e.options.ticks_positions.length>0&&e.options.ticks_positions[n]||e._toPercentage(e.options.ticks[n])):o=e._toPercentage(i),r.value[0]=i,r.percentage[0]=o,e._setToolTipOnMouseOver(r),e._showTooltip()};return t.addEventListener("mouseenter",r,!1),r},addMouseLeave:function(e,t){var n=function(){e._hideTooltip()};return t.addEventListener("mouseleave",n,!1),n}}},_layout:function(){var e,t,n;if(e=this.options.reversed?[100-this._state.percentage[0],this.options.range?100-this._state.percentage[1]:this._state.percentage[1]]:[this._state.percentage[0],this._state.percentage[1]],this.handle1.style[this.stylePos]=e[0]+"%",this.handle1.setAttribute("aria-valuenow",this._state.value[0]),t=this.options.formatter(this._state.value[0]),isNaN(t)?this.handle1.setAttribute("aria-valuetext",t):this.handle1.removeAttribute("aria-valuetext"),this.handle2.style[this.stylePos]=e[1]+"%",this.handle2.setAttribute("aria-valuenow",this._state.value[1]),t=this.options.formatter(this._state.value[1]),isNaN(t)?this.handle2.setAttribute("aria-valuetext",t):this.handle2.removeAttribute("aria-valuetext"),this.rangeHighlightElements.length>0&&Array.isArray(this.options.rangeHighlights)&&this.options.rangeHighlights.length>0)for(var r=0;r<this.options.rangeHighlights.length;r++){var i=this._toPercentage(this.options.rangeHighlights[r].start),o=this._toPercentage(this.options.rangeHighlights[r].end);if(this.options.reversed){var a=100-o;o=100-i,i=a}var s=this._createHighlightRange(i,o);s?"vertical"===this.options.orientation?(this.rangeHighlightElements[r].style.top=s.start+"%",this.rangeHighlightElements[r].style.height=s.size+"%"):(this.options.rtl?this.rangeHighlightElements[r].style.right=s.start+"%":this.rangeHighlightElements[r].style.left=s.start+"%",this.rangeHighlightElements[r].style.width=s.size+"%"):this.rangeHighlightElements[r].style.display="none"}if(Array.isArray(this.options.ticks)&&this.options.ticks.length>0){var l,u="vertical"===this.options.orientation?"height":"width";l="vertical"===this.options.orientation?"marginTop":this.options.rtl?"marginRight":"marginLeft";var c=this._state.size/(this.options.ticks.length-1);if(this.tickLabelContainer){var d=0;if(0===this.options.ticks_positions.length)"vertical"!==this.options.orientation&&(this.tickLabelContainer.style[l]=-c/2+"px"),d=this.tickLabelContainer.offsetHeight;else for(h=0;h<this.tickLabelContainer.childNodes.length;h++)this.tickLabelContainer.childNodes[h].offsetHeight>d&&(d=this.tickLabelContainer.childNodes[h].offsetHeight);"horizontal"===this.options.orientation&&(this.sliderElem.style.marginBottom=d+"px")}for(var h=0;h<this.options.ticks.length;h++){var p=this.options.ticks_positions[h]||this._toPercentage(this.options.ticks[h]);this.options.reversed&&(p=100-p),this.ticks[h].style[this.stylePos]=p+"%",this._removeClass(this.ticks[h],"in-selection"),this.options.range?p>=e[0]&&p<=e[1]&&this._addClass(this.ticks[h],"in-selection"):("after"===this.options.selection&&p>=e[0]||"before"===this.options.selection&&p<=e[0])&&this._addClass(this.ticks[h],"in-selection"),this.tickLabels[h]&&(this.tickLabels[h].style[u]=c+"px","vertical"!==this.options.orientation&&void 0!==this.options.ticks_positions[h]?(this.tickLabels[h].style.position="absolute",this.tickLabels[h].style[this.stylePos]=p+"%",this.tickLabels[h].style[l]=-c/2+"px"):"vertical"===this.options.orientation&&(this.options.rtl?this.tickLabels[h].style.marginRight=this.sliderElem.offsetWidth+"px":this.tickLabels[h].style.marginLeft=this.sliderElem.offsetWidth+"px",this.tickLabelContainer.style[l]=this.sliderElem.offsetWidth/2*-1+"px"),this._removeClass(this.tickLabels[h],"label-in-selection label-is-selection"),this.options.range?p>=e[0]&&p<=e[1]&&(this._addClass(this.tickLabels[h],"label-in-selection"),(p===e[0]||e[1])&&this._addClass(this.tickLabels[h],"label-is-selection")):(("after"===this.options.selection&&p>=e[0]||"before"===this.options.selection&&p<=e[0])&&this._addClass(this.tickLabels[h],"label-in-selection"),p===e[0]&&this._addClass(this.tickLabels[h],"label-is-selection")))}}if(this.options.range){n=this.options.formatter(this._state.value),this._setText(this.tooltipInner,n),this.tooltip.style[this.stylePos]=(e[1]+e[0])/2+"%";var f=this.options.formatter(this._state.value[0]);this._setText(this.tooltipInner_min,f);var m=this.options.formatter(this._state.value[1]);this._setText(this.tooltipInner_max,m),this.tooltip_min.style[this.stylePos]=e[0]+"%",this.tooltip_max.style[this.stylePos]=e[1]+"%"}else n=this.options.formatter(this._state.value[0]),this._setText(this.tooltipInner,n),this.tooltip.style[this.stylePos]=e[0]+"%";if("vertical"===this.options.orientation)this.trackLow.style.top="0",this.trackLow.style.height=Math.min(e[0],e[1])+"%",this.trackSelection.style.top=Math.min(e[0],e[1])+"%",this.trackSelection.style.height=Math.abs(e[0]-e[1])+"%",this.trackHigh.style.bottom="0",this.trackHigh.style.height=100-Math.min(e[0],e[1])-Math.abs(e[0]-e[1])+"%";else{"right"===this.stylePos?this.trackLow.style.right="0":this.trackLow.style.left="0",this.trackLow.style.width=Math.min(e[0],e[1])+"%","right"===this.stylePos?this.trackSelection.style.right=Math.min(e[0],e[1])+"%":this.trackSelection.style.left=Math.min(e[0],e[1])+"%",this.trackSelection.style.width=Math.abs(e[0]-e[1])+"%","right"===this.stylePos?this.trackHigh.style.left="0":this.trackHigh.style.right="0",this.trackHigh.style.width=100-Math.min(e[0],e[1])-Math.abs(e[0]-e[1])+"%";var g=this.tooltip_min.getBoundingClientRect(),v=this.tooltip_max.getBoundingClientRect();"bottom"===this.options.tooltip_position?g.right>v.left?(this._removeClass(this.tooltip_max,"bs-tooltip-bottom"),this._addClass(this.tooltip_max,"bs-tooltip-top"),this.tooltip_max.style.top="",this.tooltip_max.style.bottom="22px"):(this._removeClass(this.tooltip_max,"bs-tooltip-top"),this._addClass(this.tooltip_max,"bs-tooltip-bottom"),this.tooltip_max.style.top=this.tooltip_min.style.top,this.tooltip_max.style.bottom=""):g.right>v.left?(this._removeClass(this.tooltip_max,"bs-tooltip-top"),this._addClass(this.tooltip_max,"bs-tooltip-bottom"),this.tooltip_max.style.top="18px"):(this._removeClass(this.tooltip_max,"bs-tooltip-bottom"),this._addClass(this.tooltip_max,"bs-tooltip-top"),this.tooltip_max.style.top=this.tooltip_min.style.top)}},_createHighlightRange:function(e,t){return this._isHighlightRange(e,t)?e>t?{start:t,size:e-t}:{start:e,size:t-e}:null},_isHighlightRange:function(e,t){return 0<=e&&e<=100&&0<=t&&t<=100},_resize:function(e){this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this._layout()},_removeProperty:function(e,t){e.style.removeProperty?e.style.removeProperty(t):e.style.removeAttribute(t)},_mousedown:function(e){if(!this._state.enabled)return!1;e.preventDefault&&e.preventDefault(),this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos];var t=this._getPercentage(e);if(this.options.range){var n=Math.abs(this._state.percentage[0]-t),r=Math.abs(this._state.percentage[1]-t);this._state.dragged=n<r?0:1,this._adjustPercentageForRangeSliders(t)}else this._state.dragged=0;this._state.percentage[this._state.dragged]=t,this.touchCapable&&(document.removeEventListener("touchmove",this.mousemove,!1),document.removeEventListener("touchend",this.mouseup,!1)),this.mousemove&&document.removeEventListener("mousemove",this.mousemove,!1),this.mouseup&&document.removeEventListener("mouseup",this.mouseup,!1),this.mousemove=this._mousemove.bind(this),this.mouseup=this._mouseup.bind(this),this.touchCapable&&(document.addEventListener("touchmove",this.mousemove,!1),document.addEventListener("touchend",this.mouseup,!1)),document.addEventListener("mousemove",this.mousemove,!1),document.addEventListener("mouseup",this.mouseup,!1),this._state.inDrag=!0;var i=this._calculateValue();return this._trigger("slideStart",i),this.setValue(i,!1,!0),e.returnValue=!1,this.options.focus&&this._triggerFocusOnHandle(this._state.dragged),!0},_touchstart:function(e){this._mousedown(e)},_triggerFocusOnHandle:function(e){0===e&&this.handle1.focus(),1===e&&this.handle2.focus()},_keydown:function(e,t){if(!this._state.enabled)return!1;var n;switch(t.keyCode){case 37:case 40:n=-1;break;case 39:case 38:n=1}if(n){if(this.options.natural_arrow_keys){var r="horizontal"===this.options.orientation,i="vertical"===this.options.orientation,o=this.options.rtl,a=this.options.reversed;r?o?a||(n=-n):a&&(n=-n):i&&(a||(n=-n))}var s;if(this.ticksAreValid&&this.options.lock_to_ticks){var l=void 0;-1===(l=this.options.ticks.indexOf(this._state.value[e]))&&(l=0,window.console.warn("(lock_to_ticks) _keydown: index should not be -1")),l+=n,l=Math.max(0,Math.min(this.options.ticks.length-1,l)),s=this.options.ticks[l]}else s=this._state.value[e]+n*this.options.step;var u=this._toPercentage(s);if(this._state.keyCtrl=e,this.options.range){this._adjustPercentageForRangeSliders(u);var c=this._state.keyCtrl?this._state.value[0]:s,d=this._state.keyCtrl?s:this._state.value[1];s=[Math.max(this.options.min,Math.min(this.options.max,c)),Math.max(this.options.min,Math.min(this.options.max,d))]}else s=Math.max(this.options.min,Math.min(this.options.max,s));return this._trigger("slideStart",s),this.setValue(s,!0,!0),this._trigger("slideStop",s),this._pauseEvent(t),delete this._state.keyCtrl,!1}},_pauseEvent:function(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.cancelBubble=!0,e.returnValue=!1},_mousemove:function(e){if(!this._state.enabled)return!1;var t=this._getPercentage(e);this._adjustPercentageForRangeSliders(t),this._state.percentage[this._state.dragged]=t;var n=this._calculateValue(!0);return this.setValue(n,!0,!0),!1},_touchmove:function(e){void 0!==e.changedTouches&&e.preventDefault&&e.preventDefault()},_adjustPercentageForRangeSliders:function(e){if(this.options.range){var t=this._getNumDigitsAfterDecimalPlace(e);t=t?t-1:0;var n=this._applyToFixedAndParseFloat(e,t);0===this._state.dragged&&this._applyToFixedAndParseFloat(this._state.percentage[1],t)<n?(this._state.percentage[0]=this._state.percentage[1],this._state.dragged=1):1===this._state.dragged&&this._applyToFixedAndParseFloat(this._state.percentage[0],t)>n?(this._state.percentage[1]=this._state.percentage[0],this._state.dragged=0):0===this._state.keyCtrl&&this._toPercentage(this._state.value[1])<e?(this._state.percentage[0]=this._state.percentage[1],this._state.keyCtrl=1,this.handle2.focus()):1===this._state.keyCtrl&&this._toPercentage(this._state.value[0])>e&&(this._state.percentage[1]=this._state.percentage[0],this._state.keyCtrl=0,this.handle1.focus())}},_mouseup:function(e){if(!this._state.enabled)return!1;var t=this._getPercentage(e);this._adjustPercentageForRangeSliders(t),this._state.percentage[this._state.dragged]=t,this.touchCapable&&(document.removeEventListener("touchmove",this.mousemove,!1),document.removeEventListener("touchend",this.mouseup,!1)),document.removeEventListener("mousemove",this.mousemove,!1),document.removeEventListener("mouseup",this.mouseup,!1),this._state.inDrag=!1,!1===this._state.over&&this._hideTooltip();var n=this._calculateValue(!0);return this.setValue(n,!1,!0),this._trigger("slideStop",n),this._state.dragged=null,!1},_setValues:function(e,t){var n=0===e?0:100;this._state.percentage[e]!==n&&(t.data[e]=this._toValue(this._state.percentage[e]),t.data[e]=this._applyPrecision(t.data[e]))},_calculateValue:function(e){var t={};return this.options.range?(t.data=[this.options.min,this.options.max],this._setValues(0,t),this._setValues(1,t),e&&(t.data[0]=this._snapToClosestTick(t.data[0]),t.data[1]=this._snapToClosestTick(t.data[1]))):(t.data=this._toValue(this._state.percentage[0]),t.data=parseFloat(t.data),t.data=this._applyPrecision(t.data),e&&(t.data=this._snapToClosestTick(t.data))),t.data},_snapToClosestTick:function(e){for(var t=[e,1/0],n=0;n<this.options.ticks.length;n++){var r=Math.abs(this.options.ticks[n]-e);r<=t[1]&&(t=[this.options.ticks[n],r])}return t[1]<=this.options.ticks_snap_bounds?t[0]:e},_applyPrecision:function(e){var t=this.options.precision||this._getNumDigitsAfterDecimalPlace(this.options.step);return this._applyToFixedAndParseFloat(e,t)},_getNumDigitsAfterDecimalPlace:function(e){var t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},_applyToFixedAndParseFloat:function(e,t){var n=e.toFixed(t);return parseFloat(n)},_getPercentage:function(e){!this.touchCapable||"touchstart"!==e.type&&"touchmove"!==e.type&&"touchend"!==e.type||(e=e.changedTouches[0]);var t=e[this.mousePos]-this._state.offset[this.stylePos];"right"===this.stylePos&&(t=-t);var n=t/this._state.size*100;return n=Math.round(n/this._state.percentage[2])*this._state.percentage[2],this.options.reversed&&(n=100-n),Math.max(0,Math.min(100,n))},_validateInputValue:function(e){if(isNaN(+e)){if(Array.isArray(e))return this._validateArray(e),e;throw new Error(o(e))}return+e},_validateArray:function(e){for(var t=0;t<e.length;t++){var n=e[t];if("number"!=typeof n)throw new Error(o(n))}},_setDataVal:function(e){this.element.setAttribute("data-value",e),this.element.setAttribute("value",e),this.element.value=e},_trigger:function(t,n){n=n||0===n?n:void 0;var r=this.eventToCallbackMap[t];if(r&&r.length)for(var i=0;i<r.length;i++)(0,r[i])(n);e&&this._triggerJQueryEvent(t,n)},_triggerJQueryEvent:function(e,t){var n={type:e,value:t};this.$element.trigger(n),this.$sliderElem.trigger(n)},_unbindJQueryEventHandlers:function(){this.$element.off(),this.$sliderElem.off()},_setText:function(e,t){void 0!==e.textContent?e.textContent=t:void 0!==e.innerText&&(e.innerText=t)},_removeClass:function(e,t){for(var n=t.split(" "),r=e.className,i=0;i<n.length;i++){var o=n[i],a=new RegExp("(?:\\s|^)"+o+"(?:\\s|$)");r=r.replace(a," ")}e.className=r.trim()},_addClass:function(e,t){for(var n=t.split(" "),r=e.className,i=0;i<n.length;i++){var o=n[i];new RegExp("(?:\\s|^)"+o+"(?:\\s|$)").test(r)||(r+=" "+o)}e.className=r.trim()},_offsetLeft:function(e){return e.getBoundingClientRect().left},_offsetRight:function(e){return e.getBoundingClientRect().right},_offsetTop:function(e){for(var t=e.offsetTop;(e=e.offsetParent)&&!isNaN(e.offsetTop);)t+=e.offsetTop,"BODY"!==e.tagName&&(t-=e.scrollTop);return t},_offset:function(e){return{left:this._offsetLeft(e),right:this._offsetRight(e),top:this._offsetTop(e)}},_css:function(t,n,r){if(e)e.style(t,n,r);else{var i=n.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()});t.style[i]=r}},_toValue:function(e){return this.options.scale.toValue.apply(this,[e])},_toPercentage:function(e){return this.options.scale.toPercentage.apply(this,[e])},_setTooltipPosition:function(){var e=[this.tooltip,this.tooltip_min,this.tooltip_max];if("vertical"===this.options.orientation){var t,n="left"===(t=this.options.tooltip_position?this.options.tooltip_position:this.options.rtl?"left":"right")?"right":"left";e.forEach(function(e){this._addClass(e,"bs-tooltip-"+t),e.style[n]="100%"}.bind(this))}else"bottom"===this.options.tooltip_position?e.forEach(function(e){this._addClass(e,"bs-tooltip-bottom"),e.style.top="22px"}.bind(this)):e.forEach(function(e){this._addClass(e,"bs-tooltip-top"),e.style.top=-this.tooltip.outerHeight-14+"px"}.bind(this))},_getClosestTickIndex:function(e){for(var t=Math.abs(e-this.options.ticks[0]),n=0,r=0;r<this.options.ticks.length;++r){var i=Math.abs(e-this.options.ticks[r]);i<t&&(t=i,n=r)}return n},_setTickIndex:function(){this.ticksAreValid&&(this._state.tickIndex=[this.options.ticks.indexOf(this._state.value[0]),this.options.ticks.indexOf(this._state.value[1])])}},e&&e.fn&&(e.fn.slider?(s&&window.console.warn("bootstrap-slider.js - WARNING: $.fn.slider namespace is already bound. Use the $.fn.bootstrapSlider namespace instead."),i=r):(e.bridget(n,t),i=n),e.bridget(r,t),e(function(){e("input[data-provide=slider]")[i]()}))}(e),t})?r.apply(t,i):r)||(e.exports=o)},9349: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,i;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,i=e.length;r<i;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}}},9395: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},9402:(e,t,n)=>{"use strict";var r=n(646),i=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=i},9417:(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,{A:()=>r})}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return i[e].call(n.exports,n,n.exports,a),n.exports}a.m=i,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+".app.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="ReactFormBuilder:",a.l=(e,t,i,o)=>{if(n[e])n[e].push(t);else{var s,l;if(void 0!==i)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var d=u[c];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+i){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",r+i),s.src=e),n[e]=[t];var h=(t,r)=>{s.onerror=s.onload=null,clearTimeout(p);var i=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach(e=>e(r)),t)return t(r)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),l&&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&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e={792: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 i=new Promise((n,i)=>r=e[t]=[n,i]);n.push(r[2]=i);var o=a.p+a.u(t),s=new Error;a.l(o,n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",s.name="ChunkLoadError",s.type=i,s.request=o,r[1](s)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[o,s,l]=n,u=0;if(o.some(t=>0!==e[t])){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);l&&l(a)}for(t&&t(n);u<o.length;u++)i=o[u],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunkReactFormBuilder=self.webpackChunkReactFormBuilder||[];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:()=>Ut,ReactFormBuilder:()=>uh,ReactFormGenerator:()=>ch,Registry:()=>_c(),default:()=>hh});var e={};a.r(e),a.d(e,{FILE:()=>xe,HTML:()=>Ie,TEXT:()=>De,URL:()=>Se});var t=a(8168),n=a(3029),r=a(2901),i=a(6822),o=a(3954),l=a(5361),u=a(4012),c=a.n(u),d=new Set(["button","submit","reset","image","file","hidden"]);function h(e){if(!("Enter"!==e.key||e.defaultPrevented||e.nativeEvent&&e.nativeEvent.isComposing)){var t=e.target;"undefined"!=typeof HTMLInputElement&&t instanceof HTMLInputElement&&(d.has(String(t.type).toLowerCase())||t.form&&e.preventDefault())}}var p=a(4848);function f(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 m="function"==typeof Symbol&&Symbol.observable||"@@observable",g=function(){return Math.random().toString(36).substring(7).split("").join(".")},v={INIT:"@@redux/INIT"+g(),REPLACE:"@@redux/REPLACE"+g(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+g()}};function y(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(f(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(f(1));return n(y)(e,t)}if("function"!=typeof e)throw new Error(f(2));var i=e,o=t,a=[],s=a,l=!1;function u(){s===a&&(s=a.slice())}function c(){if(l)throw new Error(f(3));return o}function d(e){if("function"!=typeof e)throw new Error(f(4));if(l)throw new Error(f(5));var t=!0;return u(),s.push(e),function(){if(t){if(l)throw new Error(f(6));t=!1,u();var n=s.indexOf(e);s.splice(n,1),a=null}}}function h(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(f(7));if(void 0===e.type)throw new Error(f(8));if(l)throw new Error(f(9));try{l=!0,o=i(o,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++)(0,t[n])();return e}return h({type:v.INIT}),(r={dispatch:h,subscribe:d,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(f(10));i=e,h({type:v.REPLACE})}})[m]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(f(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[m]=function(){return this},e},r}function b(e,t,...n){if("undefined"!=typeof process&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let r=0;e=new Error(t.replace(/%s/g,function(){return n[r++]})),e.name="Invariant Violation"}throw e.framesToPop=1,e}}function w(e){return"object"==typeof e}const E="dnd-core/INIT_COORDS",_="dnd-core/BEGIN_DRAG",k="dnd-core/PUBLISH_DRAG_SOURCE",T="dnd-core/HOVER",C="dnd-core/DROP",A="dnd-core/END_DRAG";function O(e,t){return{type:E,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const x={type:E,payload:{clientOffset:null,sourceClientOffset:null}};function S(e){return function(t=[],n={publishSource:!0}){const{publishSource:r=!0,clientOffset:i,getSourceClientOffset:o}=n,a=e.getMonitor(),s=e.getRegistry();e.dispatch(O(i)),function(e,t,n){b(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(e){b(n.getSource(e),"Expected sourceIds to be registered.")})}(t,a,s);const l=function(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,a);if(null==l)return void e.dispatch(x);let u=null;if(i){if(!o)throw new Error("getSourceClientOffset must be defined");!function(e){b("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(o),u=o(l)}e.dispatch(O(i,u));const c=s.getSource(l).beginDrag(a,l);if(null==c)return;!function(e){b(w(e),"Item must be an object.")}(c),s.pinSource(l);const d=s.getSourceType(l);return{type:_,payload:{itemType:d,item:c,sourceId:l,clientOffset:i||null,sourceClientOffset:u||null,isSourcePublic:!!r}}}}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}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){D(e,t,n[t])})}return e}function P(e){return function(t={}){const n=e.getMonitor(),r=e.getRegistry();!function(e){b(e.isDragging(),"Cannot call drop while not dragging."),b(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);const i=function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);i.forEach((i,o)=>{const a=function(e,t,n,r){const i=n.getTarget(e);let o=i?i.drop(r,e):void 0;return function(e){b(void 0===e||w(e),"Drop result must either be an object or undefined.")}(o),void 0===o&&(o=0===t?{}:r.getDropResult()),o}(i,o,r,n),s={type:C,payload:{dropResult:I({},t,a)}};e.dispatch(s)})}}function M(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){b(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const r=t.getSourceId();return null!=r&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:A}}}function N(e,t){return null===t?null===e:Array.isArray(e)?e.some(e=>e===t):e===t}function R(e){return function(t,{clientOffset:n}={}){!function(e){b(Array.isArray(e),"Expected targetIds to be an array.")}(t);const r=t.slice(0),i=e.getMonitor(),o=e.getRegistry();return function(e,t,n){for(let r=e.length-1;r>=0;r--){const i=e[r];N(t.getTargetType(i),n)||e.splice(r,1)}}(r,o,i.getItemType()),function(e,t,n){b(t.isDragging(),"Cannot call hover while not dragging."),b(!t.didDrop(),"Cannot call hover after drop.");for(let t=0;t<e.length;t++){const r=e[t];b(e.lastIndexOf(r)===t,"Expected targetIds to be unique in the passed array."),b(n.getTarget(r),"Expected targetIds to be registered.")}}(r,i,o),function(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}(r,i,o),{type:T,payload:{targetIds:r,clientOffset:n||null}}}}function L(e){return function(){if(e.getMonitor().isDragging())return{type:k}}}class H{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store,n=function(e){return{beginDrag:S(e),publishDragSource:L(e),hover:R(e),drop:P(e),endDrag:M(e)}}(this);return Object.keys(n).reduce((r,i)=>{const o=n[i];var a;return r[i]=(a=o,(...n)=>{const r=a.apply(e,n);void 0!==r&&t(r)}),r},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function B(e,t){return{x:e.x-t.x,y:e.y-t.y}}const F=[],j=[];F.__IS_NONE__=!0,j.__IS_ALL__=!0;class U{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;b("function"==typeof e,"listener must be a function."),b(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;return this.store.subscribe(()=>{const t=this.store.getState(),i=t.stateId;try{const o=i===r||i===r+1&&!function(e,t){return e!==F&&(e===j||void 0===t||(n=e,t.filter(e=>n.indexOf(e)>-1)).length>0);var n}(t.dirtyHandlerIds,n);o||e()}finally{r=i}})}subscribeToOffsetChange(e){b("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe(()=>{const n=this.store.getState().dragOffset;n!==t&&(t=n,e())})}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return b(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);return b(t,`Expected to find a valid target. targetId=${e}`),!(!this.isDragging()||this.didDrop())&&(N(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e))}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);return b(t,`Expected to find a valid source. sourceId=${e}`),!(!this.isDragging()||!this.isSourcePublic())&&(this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e))}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:n}=t;if(!this.isDragging())return!1;const r=this.registry.getTargetType(e),i=this.getItemType();if(i&&!N(r,i))return!1;const o=this.getTargetIds();if(!o.length)return!1;const a=o.indexOf(e);return n?a===o.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return t&&n&&r?B((o=r,{x:(i=t).x+o.x,y:i.y+o.y}),n):null;var i,o}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:n}=e;return t&&n?B(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const V="undefined"!=typeof global?global:self,z=V.MutationObserver||V.WebKitMutationObserver;function q(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const G="function"==typeof z?function(e){let t=1;const n=new z(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:q;class W{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 Y=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=G(this.flush),this.requestErrorThrow=q(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},$=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new W(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(Y.registerPendingError),X="dnd-core/ADD_SOURCE",K="dnd-core/ADD_TARGET",Q="dnd-core/REMOVE_SOURCE",Z="dnd-core/REMOVE_TARGET";function J(e,t){t&&Array.isArray(e)?e.forEach(e=>J(e,!1)):b("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var ee;!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(ee||(ee={}));let te=0;function ne(e){switch(e[0]){case"S":return ee.SOURCE;case"T":return ee.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function re(e,t){const n=e.entries();let r=!1;do{const{done:e,value:[,i]}=n.next();if(i===t)return!0;r=!!e}while(!r);return!1}class ie{addSource(e,t){J(e),function(e){b("function"==typeof e.canDrag,"Expected canDrag to be a function."),b("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),b("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(ee.SOURCE,e,t);return this.store.dispatch(function(e){return{type:X,payload:{sourceId:e}}}(n)),n}addTarget(e,t){J(e,!0),function(e){b("function"==typeof e.canDrop,"Expected canDrop to be a function."),b("function"==typeof e.hover,"Expected hover to be a function."),b("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(ee.TARGET,e,t);return this.store.dispatch(function(e){return{type:K,payload:{targetId:e}}}(n)),n}containsHandler(e){return re(this.dragSources,e)||re(this.dropTargets,e)}getSource(e,t=!1){return b(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return b(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return b(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return b(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return ne(e)===ee.SOURCE}isTargetId(e){return ne(e)===ee.TARGET}removeSource(e){var t;b(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:Q,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},Y.enqueueTask($.create(t))}removeTarget(e){b(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:Z,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);b(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){b(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=function(e){const t=(te++).toString();switch(e){case ee.SOURCE:return`S${t}`;case ee.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}(e);return this.types.set(r,t),e===ee.SOURCE?this.dragSources.set(r,n):e===ee.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const oe=(e,t)=>e===t;function ae(e=F,t){switch(t.type){case T:break;case X:case K:case Z:case Q:return F;default:return j}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=function(e,t){const n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);const i=[];return n.forEach((e,t)=>{1===e&&i.push(t)}),i}(n,r),o=i.length>0||!function(e,t,n=oe){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(n,r);if(!o)return F;const a=r[r.length-1],s=n[n.length-1];return a!==s&&(a&&i.push(a),s&&i.push(s)),i}function se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const le={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function ue(e=le,t){const{payload:n}=t;switch(t.type){case E:case _:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case T:return r=e.clientOffset,i=n.clientOffset,!r&&!i||r&&i&&r.x===i.x&&r.y===i.y?e:function(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){se(e,t,n[t])})}return e}({},e,{clientOffset:n.clientOffset});case A:case C:return le;default:return e}var r,i}function ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function de(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){ce(e,t,n[t])})}return e}const he={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function pe(e=he,t){const{payload:n}=t;switch(t.type){case _:return de({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case k:return de({},e,{isSourcePublic:!0});case T:return de({},e,{targetIds:n.targetIds});case Z:return-1===e.targetIds.indexOf(n.targetId)?e:de({},e,{targetIds:(r=e.targetIds,i=n.targetId,r.filter(e=>e!==i))});case C:return de({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case A:return de({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,i}function fe(e=0,t){switch(t.type){case X:case K:return e+1;case Q:case Z:return e-1;default:return e}}function me(e=0){return e+1}function ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ve(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){ge(e,t,n[t])})}return e}function ye(e={},t){return{dirtyHandlerIds:ae(e.dirtyHandlerIds,{type:t.type,payload:ve({},t.payload,{prevTargetIds:(n=e,r=[],"dragOperation.targetIds".split(".").reduce((e,t)=>e&&e[t]?e[t]:r||null,n))})}),dragOffset:ue(e.dragOffset,t),refCount:fe(e.refCount,t),dragOperation:pe(e.dragOperation,t),stateId:me(e.stateId)};var n,r}function be(e,t=void 0,n={},r=!1){const i=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return y(ye,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(r),o=new U(i,new ie(i)),a=new H(i,o),s=e(a,t,n);return a.receiveBackend(s),a}const we=(0,u.createContext)({dragDropManager:void 0});let Ee=0;const _e=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var ke=(0,u.memo)(function(e){var{children:t}=e,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["children"]);const[r,i]=function(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=function(e,t=Te(),n,r){const i=t;return i[_e]||(i[_e]={dragDropManager:be(e,t,n,r)}),i[_e]}(e.backend,e.context,e.options,e.debugMode);return[t,!e.context]}(n);return(0,u.useEffect)(()=>{if(i){const e=Te();return++Ee,()=>{0===--Ee&&(e[_e]=null)}}},[]),(0,p.jsx)(we.Provider,{value:r,children:t})});function Te(){return"undefined"!=typeof global?global:window}function Ce(e){let t=null;return()=>(null==t&&(t=e()),t)}class Ae{enter(e){const t=this.entered.length;return this.entered=function(e,t){const n=new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);const i=[];return n.forEach(e=>i.push(e)),i}(this.entered.filter(t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var n,r;return this.entered=(n=this.entered.filter(this.isNodeInDocument),r=e,n.filter(e=>e!==r)),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class Oe{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})})}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach(n=>{const r=this.config.exposeProperties[n];null!=r&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const xe="__NATIVE_FILE__",Se="__NATIVE_URL__",De="__NATIVE_TEXT__",Ie="__NATIVE_HTML__";function Pe(e,t,n){const r=t.reduce((t,n)=>t||e.getData(n),"");return null!=r?r:n}const Me={[xe]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[Ie]:{exposeProperties:{html:(e,t)=>Pe(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Se]:{exposeProperties:{urls:(e,t)=>Pe(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[De]:{exposeProperties:{text:(e,t)=>Pe(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function Ne(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Me).filter(e=>{const n=Me[e];return!!(null==n?void 0:n.matchesTypes)&&n.matchesTypes.some(e=>t.indexOf(e)>-1)})[0]||null}const Re=Ce(()=>/firefox/i.test(navigator.userAgent)),Le=Ce(()=>Boolean(window.safari));class He{interpolate(e){const{xs:t,ys:n,c1s:r,c2s:i,c3s:o}=this;let a=t.length-1;if(e===t[a])return n[a];let s,l=0,u=o.length-1;for(;l<=u;){s=Math.floor(.5*(l+u));const r=t[s];if(r<e)l=s+1;else{if(!(r>e))return n[s];u=s-1}}a=Math.max(0,u);const c=e-t[a],d=c*c;return n[a]+r[a]*c+i[a]*d+o[a]*c*d}constructor(e,t){const{length:n}=e,r=[];for(let e=0;e<n;e++)r.push(e);r.sort((t,n)=>e[t]<e[n]?-1:1);const i=[],o=[],a=[];let s,l;for(let r=0;r<n-1;r++)s=e[r+1]-e[r],l=t[r+1]-t[r],o.push(s),i.push(l),a.push(l/s);const u=[a[0]];for(let e=0;e<o.length-1;e++){const t=a[e],n=a[e+1];if(t*n<=0)u.push(0);else{s=o[e];const r=o[e+1],i=s+r;u.push(3*i/((i+r)/t+(i+s)/n))}}u.push(a[a.length-1]);const c=[],d=[];let h;for(let e=0;e<u.length-1;e++){h=a[e];const t=u[e],n=1/o[e],r=t+u[e+1]-h-h;c.push((h-t-r)*n),d.push(r*n*n)}this.xs=e,this.ys=t,this.c1s=u,this.c2s=c,this.c3s=d}}function Be(e){const t=1===e.nodeType?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function Fe(e){return{x:e.clientX,y:e.clientY}}class je{get window(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function Ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ve(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){Ue(e,t,n[t])})}return e}class ze{profile(){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}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;var t;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);const r=t=>this.handleDragStart(t,e),i=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",i),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),i=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",n),t.addEventListener("dragover",r),t.addEventListener("drop",i),()=>{t.removeEventListener("dragenter",n),t.removeEventListener("dragover",r),t.removeEventListener("drop",i)}}addEventListeners(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))}removeEventListeners(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))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return Ve({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return Ve({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(e).some(n=>e[n]===t)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const n=Me[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new Oe(n);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout(()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}clearCurrentDragSourceNode(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){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.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&Be(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const n=Fe(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});const{dataTransfer:r}=e,i=Ne(r);if(this.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),i=this.sourcePreviewNodes.get(e)||t;if(i){const{anchorX:e,anchorY:o,offsetX:a,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),l=function(e,t,n,r,i){const o=function(e){var t;return"IMG"===e.nodeName&&(Re()||!(null===(t=document.documentElement)||void 0===t?void 0:t.contains(e)))}(t),a=Be(o?e:t),s={x:n.x-a.x,y:n.y-a.y},{offsetWidth:l,offsetHeight:u}=e,{anchorX:c,anchorY:d}=r,{dragPreviewWidth:h,dragPreviewHeight:p}=function(e,t,n,r){let i=e?t.width:n,o=e?t.height:r;return Le()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}(o,t,l,u),{offsetX:f,offsetY:m}=i,g=0===m||m;return{x:0===f||f?f:new He([0,.5,1],[s.x,s.x/l*h,s.x+h-l]).interpolate(c),y:g?m:(()=>{let e=new He([0,.5,1],[s.y,s.y/u*p,s.y+p-u]).interpolate(d);return Le()&&o&&(e+=(window.devicePixelRatio-1)*p),e})()}}(t,i,n,{anchorX:e,anchorY:o},{offsetX:a,offsetY:s});r.setDragImage(i,l.x,l.y)}}try{null==r||r.setData("application/json",{})}catch(e){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(i)this.beginDragNativeItem(i);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)),!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:n}=e,r=Ne(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;this.dragEnterTargetIds=[],this.monitor.isDragging()&&(this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:Fe(e)}),t.some(e=>this.monitor.canDropOnTarget(e))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())))},this.handleTopDragOverCapture=e=>{var t;this.dragOverTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=Fe(e),this.scheduleHover(t),(t||[]).some(e=>this.monitor.canDropOnTarget(e))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;this.dropTargetIds=[],this.isDraggingNativeItem()?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):Ne(e.dataTransfer)&&e.preventDefault(),this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:Fe(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const 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 je(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Ae(this.isNodeInDocument)}}const qe=function(e,t,n){return new ze(e,t,n)};var Ge=a(1635),We=a(7683),Ye=a(4184),$e=a(4293),Xe=a(2587),Ke=a(9160);function Qe(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=(0,Ge.Cl)({timeZone:t},e[r]),n},{})}function Ze(e,t){return Object.keys((0,Ge.Cl)((0,Ge.Cl)({},e),t)).reduce(function(n,r){return n[r]=(0,Ge.Cl)((0,Ge.Cl)({},e[r]||{}),t[r]||{}),n},{})}function Je(e,t){if(!t)return e;var n=Xe.S.formats;return(0,Ge.Cl)((0,Ge.Cl)((0,Ge.Cl)({},n),e),{date:Ze(Qe(n.date,t),Qe(e.date||{},t)),time:Ze(Qe(n.time,t),Qe(e.time||{},t))})}var et=function(e,t,n,r,i){var o=e.locale,a=e.formats,s=e.messages,l=e.defaultLocale,u=e.defaultFormats,c=e.fallbackOnEmptyString,d=e.onError,h=e.timeZone,p=e.defaultRichTextElements;void 0===n&&(n={id:""});var f=n.id,m=n.defaultMessage;(0,We.V1)(!!f,"[@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.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var g=String(f),v=s&&Object.prototype.hasOwnProperty.call(s,g)&&s[g];if(Array.isArray(v)&&1===v.length&&v[0].type===$e.ZE.literal)return v[0].value;if(!r&&v&&"string"==typeof v&&!p)return v.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=(0,Ge.Cl)((0,Ge.Cl)({},p),r||{}),a=Je(a,h),u=Je(u,h),!v){if(!1===c&&""===v)return v;if((!m||o&&o.toLowerCase()!==l.toLowerCase())&&d(new Ke.sb(n,o)),m)try{return t.getMessageFormat(m,l,u,i).format(r)}catch(e){return d(new Ke.Ho('Error formatting default message for: "'.concat(g,'", rendering default message verbatim'),o,n,e)),"string"==typeof m?m:g}return g}try{return t.getMessageFormat(v,o,a,(0,Ge.Cl)({formatters:t},i||{})).format(r)}catch(e){d(new Ke.Ho('Error formatting message: "'.concat(g,'", using ').concat(m?"default message":"id"," as fallback."),o,n,e))}if(m)try{return t.getMessageFormat(m,l,u,i).format(r)}catch(e){d(new Ke.Ho('Error formatting the default message for: "'.concat(g,'", rendering message verbatim'),o,n,e))}return"string"==typeof v?v:"string"==typeof m?m:g},tt=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function nt(e,t,n,r){var i=e.locale,o=e.formats,a=e.onError,s=e.timeZone;void 0===r&&(r={});var l=r.format,u=(0,Ge.Cl)((0,Ge.Cl)({},s&&{timeZone:s}),l&&(0,We.F3)(o,t,l,a)),c=(0,We.J9)(r,tt,u);return"time"!==t||c.hour||c.minute||c.second||c.timeStyle||c.dateStyle||(c=(0,Ge.Cl)((0,Ge.Cl)({},c),{hour:"numeric",minute:"numeric"})),n(i,c)}function rt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return nt(e,"date",t,a).format(s)}catch(t){e.onError(new Ke.pg("Error formatting date.",e.locale,t))}return String(s)}function it(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return nt(e,"time",t,a).format(s)}catch(t){e.onError(new Ke.pg("Error formatting time.",e.locale,t))}return String(s)}function ot(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=n[2],s=void 0===a?{}:a,l="string"==typeof i?new Date(i||0):i,u="string"==typeof o?new Date(o||0):o;try{return nt(e,"dateTimeRange",t,s).formatRange(l,u)}catch(t){e.onError(new Ke.pg("Error formatting date time range.",e.locale,t))}return String(l)}function at(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return nt(e,"date",t,a).formatToParts(s)}catch(t){e.onError(new Ke.pg("Error formatting date.",e.locale,t))}return[]}function st(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return nt(e,"time",t,a).formatToParts(s)}catch(t){e.onError(new Ke.pg("Error formatting time.",e.locale,t))}return[]}var lt=a(1732),ut=["style","type","fallback","languageDisplay"];function ct(e,t,n,r){var i=e.locale,o=e.onError;Intl.DisplayNames||o(new lt.IF('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',lt.O4.MISSING_INTL_API));var a=(0,We.J9)(r,ut);try{return t(i,a).of(n)}catch(e){o(new Ke.pg("Error formatting display name.",i,e))}}var dt=["type","style"],ht=Date.now();function pt(e,t,n,r){void 0===r&&(r={});var i=ft(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===i.length?i[0]:0===i.length?"":i}function ft(e,t,n,r){var i=e.locale,o=e.onError;void 0===r&&(r={}),Intl.ListFormat||o(new lt.IF('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',lt.O4.MISSING_INTL_API));var a=(0,We.J9)(r,dt);try{var s={},l=n.map(function(e,t){if("object"==typeof e){var n=function(e){return"".concat(ht,"_").concat(e,"_").concat(ht)}(t);return s[n]=e,n}return String(e)});return t(i,a).formatToParts(l).map(function(e){return"literal"===e.type?e:(0,Ge.Cl)((0,Ge.Cl)({},e),{value:s[e.value]||e.value})})}catch(e){o(new Ke.pg("Error formatting list.",i,e))}return n}var mt=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function gt(e,t,n){var r=e.locale,i=e.formats,o=e.onError;void 0===n&&(n={});var a=n.format,s=a&&(0,We.F3)(i,"number",a,o)||{};return t(r,(0,We.J9)(n,mt,s))}function vt(e,t,n,r){void 0===r&&(r={});try{return gt(e,t,r).format(n)}catch(t){e.onError(new Ke.pg("Error formatting number.",e.locale,t))}return String(n)}function yt(e,t,n,r){void 0===r&&(r={});try{return gt(e,t,r).formatToParts(n)}catch(t){e.onError(new Ke.pg("Error formatting number.",e.locale,t))}return[]}var bt=["type"];function wt(e,t,n,r){var i=e.locale,o=e.onError;void 0===r&&(r={}),Intl.PluralRules||o(new lt.IF('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',lt.O4.MISSING_INTL_API));var a=(0,We.J9)(r,bt);try{return t(i,a).select(n)}catch(e){o(new Ke.pg("Error formatting plural.",i,e))}return"other"}var Et=["numeric","style"];function _t(e,t,n,r,i){void 0===i&&(i={}),r||(r="second"),Intl.RelativeTimeFormat||e.onError(new lt.IF('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',lt.O4.MISSING_INTL_API));try{return function(e,t,n){var r=e.locale,i=e.formats,o=e.onError;void 0===n&&(n={});var a=n.format,s=!!a&&(0,We.F3)(i,"relative",a,o)||{};return t(r,(0,We.J9)(n,Et,s))}(e,t,i).format(n,r)}catch(t){e.onError(new Ke.pg("Error formatting relative time.",e.locale,t))}return String(n)}var kt=a(1071);function Tt(e){return e?Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=(0,kt.RK)(r)?(0,Ye.yU)(r):r,t},{}):e}var Ct=function(e,t,n,r){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];var a=Tt(r),s=et.apply(void 0,(0,Ge.fX)([e,t,n,a],i,!1));return Array.isArray(s)?(0,Ye.SP)(s):s},At=function(e,t){var n=e.defaultRichTextElements,r=(0,Ge.Tt)(e,["defaultRichTextElements"]),i=Tt(n),o=function(e,t){var n=(0,We.GT)(t),r=(0,Ge.Cl)((0,Ge.Cl)({},We.JF),e),i=r.locale,o=r.defaultLocale,a=r.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&a?a(new Ke.hr('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&a&&a(new Ke.hr('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new Ke.uo('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.github.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.github.io/docs/getting-started/message-distribution')}(r),(0,Ge.Cl)((0,Ge.Cl)({},r),{formatters:n,formatNumber:vt.bind(null,r,n.getNumberFormat),formatNumberToParts:yt.bind(null,r,n.getNumberFormat),formatRelativeTime:_t.bind(null,r,n.getRelativeTimeFormat),formatDate:rt.bind(null,r,n.getDateTimeFormat),formatDateToParts:at.bind(null,r,n.getDateTimeFormat),formatTime:it.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:ot.bind(null,r,n.getDateTimeFormat),formatTimeToParts:st.bind(null,r,n.getDateTimeFormat),formatPlural:wt.bind(null,r,n.getPluralRules),formatMessage:et.bind(null,r,n),$t:et.bind(null,r,n),formatList:pt.bind(null,r,n.getListFormat),formatListToParts:ft.bind(null,r,n.getListFormat),formatDisplayName:ct.bind(null,r,n.getDisplayNames)})}((0,Ge.Cl)((0,Ge.Cl)((0,Ge.Cl)({},Ye.JF),r),{defaultRichTextElements:i}),t),a={locale:o.locale,timeZone:o.timeZone,fallbackOnEmptyString:o.fallbackOnEmptyString,formats:o.formats,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,messages:o.messages,onError:o.onError,defaultRichTextElements:i};return(0,Ge.Cl)((0,Ge.Cl)({},o),{formatMessage:Ct.bind(null,a,o.formatters),$t:Ct.bind(null,a,o.formatters)})},Ot=a(8798);function xt(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}}var St=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache=(0,We.MT)(),t.state={cache:t.cache,intl:At(xt(t.props),t.cache),prevConfig:xt(t.props)},t}return(0,Ge.C6)(t,e),t.getDerivedStateFromProps=function(e,t){var n=t.prevConfig,r=t.cache,i=xt(e);return(0,Ye.bN)(n,i)?null:{intl:At(i,r),prevConfig:i}},t.prototype.render=function(){return(0,Ye.HM)(this.state.intl),u.createElement(Ot.Kq,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=Ye.JF,t}(u.PureComponent);const Dt=St;var It=a(5458),Pt=a(4467),Mt=a(6033),Nt=a(6894),Rt=a.n(Nt);var Lt,Ht,Bt,Ft=a(968),jt=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,i=t.saveUrl,o=t.data,a=t.saveAlways;Lt=i;var s=a||void 0===a;e.commit("setSaveAlways",s),Bt?Bt().then(function(t){o&&o.length>0&&0===t.length&&o.forEach(function(e){return t.push(e)}),n.setData(e,t)}):r?(0,Ft.J)(r).then(function(t){o&&o.length>0&&0===t.length&&o.forEach(function(e){return t.push(e)}),n.setData(e,t)}):this.setData(e,o)},create:function(e,t){var n=e.state,r=n.data,i=n.saveAlways;r.push(t),this.setData(e,r,i)},delete:function(e,t){var n=e.state,r=n.data,i=n.saveAlways;r.splice(r.indexOf(t),1),this.setData(e,r,i)},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){Ht?Ht({task_data:e}):Lt&&(0,Ft.b)(Lt,{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}});jt.setExternalHandler=function(e,t){Bt=e,Ht=t};const Ut=jt;var Vt=a(467),zt=a(7800);function qt(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,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||(0,zt.A)(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 Gt=a(4756),Wt=a.n(Gt);const Yt=function(e){var t=qt(c().useState(null),2),n=t[0],r=t[1];if(c().useEffect(function(){var e=function(){var e=(0,Vt.A)(Wt().mark(function e(){var t;return Wt().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,a.e(845).then(a.bind(a,845));case 1:t=e.sent,r(function(){return t.default});case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();e()},[]),!n)return c().createElement("div",null,"Loading...");var i=n;return c().createElement(i,e)};var $t=a(8587);function Xt(e,t){if(null==e)return{};var n,r,i=(0,$t.A)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Kt=a(5556),Qt=a.n(Kt),Zt=a(2017);const Jt="undefined"!=typeof window?u.useLayoutEffect:u.useEffect;function en(e,t,n){const[r,i]=(0,u.useState)(()=>t(e)),o=(0,u.useCallback)(()=>{const o=t(e);Zt(r,o)||(i(o),n&&n())},[r,e,n]);return Jt(o),[r,o]}function tn(e,t,n){return function(e,t){const[r,i]=en(e,t,()=>n.reconnect());return Jt(function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(i,{handlerIds:[t]})},[e,i]),r}(t,e||(()=>({})))}function nn(e,t){const n=[...t||[]];return null==t&&"function"!=typeof e&&n.push(e),(0,u.useMemo)(()=>"function"==typeof e?e():e,n)}function rn(e){return(0,u.useMemo)(()=>e.hooks.dragSource(),[e])}function on(e){return(0,u.useMemo)(()=>e.hooks.dragPreview(),[e])}function an(e,t,n,r){let i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let a=0;a<o.length;a++){const l=o[a];if(!s(l))return!1;const u=e[l],c=t[l];if(i=n?n.call(r,u,c,l):void 0,!1===i||void 0===i&&u!==c)return!1}return!0}function sn(e){return null!==e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function ln(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const e=function(e){return(t=null,n=null)=>{if(!(0,u.isValidElement)(t)){const r=t;return e(r,n),r}const r=t;!function(e){if("string"==typeof e.type)return;const 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 ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}(r);const i=n?t=>e(t,n):e;return function(e,t){const n=e.ref;return b("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://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?(0,u.cloneElement)(e,{ref:e=>{un(n,e),un(t,e)}}):(0,u.cloneElement)(e,{ref:t})}(r,i)}}(r);t[n]=()=>e}}),t}function un(e,t){"function"==typeof e?e(t):e.current=t}class cn{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return 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)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(t?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!an(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!an(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=ln({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,sn(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,sn(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.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=e}}function dn(){const{dragDropManager:e}=(0,u.useContext)(we);return b(null!=e,"Expected drag drop context"),e}let hn=!1,pn=!1;class fn{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){b(!hn,"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 hn=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{hn=!1}}isDragging(){if(!this.sourceId)return!1;b(!pn,"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 pn=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{pn=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}class mn{beginDrag(){const e=this.spec,t=this.monitor;let n=null;return n="object"==typeof e.item?e.item:"function"==typeof e.item?e.item(t):{},null!=n?n:null}canDrag(){const e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}isDragging(e,t){const n=this.spec,r=this.monitor,{isDragging:i}=n;return i?i(r):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,n=this.connector,{end:r}=e;r&&r(t.getItem(),t),n.reconnect()}constructor(e,t,n){this.spec=e,this.monitor=t,this.connector=n}}function gn(e,t){const n=nn(e,t);b(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=function(){const e=dn();return(0,u.useMemo)(()=>new fn(e),[e])}(),i=function(e,t){const n=dn(),r=(0,u.useMemo)(()=>new cn(n.getBackend()),[n]);return Jt(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),Jt(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}(n.options,n.previewOptions);return function(e,t,n){const r=dn(),i=function(e,t,n){const r=(0,u.useMemo)(()=>new mn(e,t,n),[t,n]);return(0,u.useEffect)(()=>{r.spec=e},[e]),r}(e,t,n),o=function(e){return(0,u.useMemo)(()=>{const t=e.type;return b(null!=t,"spec.type must be defined"),t},[e])}(e);Jt(function(){if(null!=o){const[e,a]=function(e,t,n){const r=n.getRegistry(),i=r.addSource(e,t);return[i,()=>r.removeSource(i)]}(o,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),a}},[r,t,n,i,o])}(n,r,i),[tn(n.collect,r,i),rn(i),on(i)]}function vn(e){return(0,u.useMemo)(()=>e.hooks.dropTarget(),[e])}class yn{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const 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)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!an(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=ln({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,sn(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}let bn=!1;class wn{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;b(!bn,"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 bn=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{bn=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}class En{canDrop(){const e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function _n(e,t){const n=nn(e,t),r=function(){const e=dn();return(0,u.useMemo)(()=>new wn(e),[e])}(),i=function(e){const t=dn(),n=(0,u.useMemo)(()=>new yn(t.getBackend()),[t]);return Jt(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}(n.options);return function(e,t,n){const r=dn(),i=function(e,t){const n=(0,u.useMemo)(()=>new En(e,t),[t]);return(0,u.useEffect)(()=>{n.spec=e},[e]),n}(e,t),o=function(e){const{accept:t}=e;return(0,u.useMemo)(()=>(b(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}(e);Jt(function(){const[e,a]=function(e,t,n){const r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}(o,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),a},[r,t,i,n,o.map(e=>e.toString()).join("|")])}(n,r,i),[tn(n.collect,r,i),vn(i)]}const kn="card",Tn="box";var Cn=["index","id","moveCard","seq"];function An(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 On(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?An(Object(n),!0).forEach(function(t){(0,Pt.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var xn={border:"1px dashed gray",padding:"0.5rem 1rem",marginBottom:".5rem",backgroundColor:"white",cursor:"pointer"},Sn=function(e){var n=e.index,r=e.id,i=e.moveCard,o=e.seq,a=void 0===o?-1:o,s=Xt(e,Cn),l=function(e){var t=(0,u.useRef)(null),n=qt(gn({type:kn,item:function(){return{itemType:kn,id:e.id,index:e.index}},collect:function(e){return{isDragging:e.isDragging()}}}),3),r=n[0].isDragging,i=n[1],o=n[2],a=qt(_n({accept:[kn,Tn],drop:function(t){if(!(e.data&&e.data.isContainer||t.itemType===kn)){var n=e.index,r=t.index;t.data&&"function"==typeof t.setAsChild&&-1===r&&e.insertCard(t,n,t.id)}},hover:function(n,r){var i,o;if((n.itemType!==Tn||-1!==n.index)&&(null===(i=e.data)||void 0===i||!i.isContainer||null!==(o=n.data)&&void 0!==o&&o.isContainer)){var a=n.index,s=e.index;if(a!==s){if(-1===a){if(e.data&&e.data.isContainer)return;return n.index=s,void e.insertCard(n.onCreate(n.data),s)}if(t.current){var l=t.current.getBoundingClientRect(),u=(l.bottom-l.top)/2,c=r.getClientOffset();if(c){var d=c.y-l.top;a<s&&d<u||a>s&&d>u||(e.moveCard(a,s),n.index=s)}}}}}}),2)[1];return{ref:function(e){t.current=e,a(e),i(e)},previewRef:o,isDragging:r}}(e),d=l.ref,h=l.previewRef,p=l.isDragging?0:1,f=e.component;return c().createElement("div",{ref:h},c().createElement("div",{ref:d},c().createElement(f,(0,t.A)({},s,{index:n,id:r,moveCard:i,seq:a,style:On(On({},xn),{},{opacity:p})}))))};function Dn(e){return function(n){return c().createElement(Sn,(0,t.A)({},n,{component:e}))}}function In(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(In=function(){return!!e})()}Sn.propTypes={component:Qt().elementType.isRequired,index:Qt().number.isRequired,isDragging:Qt().bool,id:Qt().any.isRequired,moveCard:Qt().func.isRequired,seq:Qt().number},Sn.defaultProps={seq:-1};var Pn=function(e){function t(){return(0,n.A)(this,t),e=this,r=t,a=arguments,r=(0,o.A)(r),(0,i.A)(e,In()?Reflect.construct(r,a||[],(0,o.A)(e).constructor):r.apply(e,a));var e,r,a}return(0,l.A)(t,e),(0,r.A)(t,[{key:"render",value:function(){var e=this.props.intl,t=this.props.show?"form-place-holder":"form-place-holder-hidden",n=this.props.show?"Dropzone"===this.props.text?e.formatMessage({id:"drop-zone"}):this.props.text:"";return c().createElement("div",{className:t},c().createElement("div",null,n))}}])}(c().Component);const Mn=(0,Ot.Ay)(Pn);Pn.propTypes={text:Qt().string,show:Qt().bool},Pn.defaultProps={text:"Dropzone",show:!1};var Nn=a(328),Rn=a.n(Nn),Ln=a(4213);function Hn(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 Bn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hn(Object(n),!0).forEach(function(t){(0,Pt.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Fn=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function jn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(jn=function(){return!!e})()}function Un(e){var t=jn();return function(){var n,r=(0,o.A)(e);if(t){var a=(0,o.A)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,i.A)(this,n)}}var Vn=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){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),zn=Math.abs,qn=String.fromCharCode,Gn=Object.assign;function Wn(e){return e.trim()}function Yn(e,t,n){return e.replace(t,n)}function $n(e,t){return e.indexOf(t)}function Xn(e,t){return 0|e.charCodeAt(t)}function Kn(e,t,n){return e.slice(t,n)}function Qn(e){return e.length}function Zn(e){return e.length}function Jn(e,t){return t.push(e),e}var er=1,tr=1,nr=0,rr=0,ir=0,or="";function ar(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:er,column:tr,length:a,return:""}}function sr(e,t){return Gn(ar("",null,null,"",null,null,0),e,{length:-e.length},t)}function lr(){return ir=rr>0?Xn(or,--rr):0,tr--,10===ir&&(tr=1,er--),ir}function ur(){return ir=rr<nr?Xn(or,rr++):0,tr++,10===ir&&(tr=1,er++),ir}function cr(){return Xn(or,rr)}function dr(){return rr}function hr(e,t){return Kn(or,e,t)}function pr(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 fr(e){return er=tr=1,nr=Qn(or=e),rr=0,[]}function mr(e){return or="",e}function gr(e){return Wn(hr(rr-1,br(91===e?e+2:40===e?e+1:e)))}function vr(e){for(;(ir=cr())&&ir<33;)ur();return pr(e)>2||pr(ir)>3?"":" "}function yr(e,t){for(;--t&&ur()&&!(ir<48||ir>102||ir>57&&ir<65||ir>70&&ir<97););return hr(e,dr()+(t<6&&32==cr()&&32==ur()))}function br(e){for(;ur();)switch(ir){case e:return rr;case 34:case 39:34!==e&&39!==e&&br(ir);break;case 40:41===e&&br(e);break;case 92:ur()}return rr}function wr(e,t){for(;ur()&&e+ir!==57&&(e+ir!==84||47!==cr()););return"/*"+hr(t,rr-1)+"*"+qn(47===e?e:ur())}function Er(e){for(;!pr(cr());)ur();return hr(e,rr)}var _r="-ms-",kr="-moz-",Tr="-webkit-",Cr="comm",Ar="rule",Or="decl",xr="@keyframes";function Sr(e,t){for(var n="",r=Zn(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Dr(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Or:return e.return=e.return||e.value;case Cr:return"";case xr:return e.return=e.value+"{"+Sr(e.children,r)+"}";case Ar:e.value=e.props.join(",")}return Qn(n=Sr(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ir(e){return mr(Pr("",null,null,null,[""],e=fr(e),0,[0],e))}function Pr(e,t,n,r,i,o,a,s,l){for(var u=0,c=0,d=a,h=0,p=0,f=0,m=1,g=1,v=1,y=0,b="",w=i,E=o,_=r,k=b;g;)switch(f=y,y=ur()){case 40:if(108!=f&&58==Xn(k,d-1)){-1!=$n(k+=Yn(gr(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=gr(y);break;case 9:case 10:case 13:case 32:k+=vr(f);break;case 92:k+=yr(dr()-1,7);continue;case 47:switch(cr()){case 42:case 47:Jn(Nr(wr(ur(),dr()),t,n),l);break;default:k+="/"}break;case 123*m:s[u++]=Qn(k)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:-1==v&&(k=Yn(k,/\f/g,"")),p>0&&Qn(k)-d&&Jn(p>32?Rr(k+";",r,n,d-1):Rr(Yn(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Jn(_=Mr(k,t,n,u,c,i,s,b,w=[],E=[],d),o),123===y)if(0===c)Pr(k,t,_,_,w,o,d,s,E);else switch(99===h&&110===Xn(k,3)?100:h){case 100:case 108:case 109:case 115:Pr(e,_,_,r&&Jn(Mr(e,_,_,0,0,i,s,b,i,w=[],d),E),i,E,d,s,r?w:E);break;default:Pr(k,_,_,_,[""],E,0,s,E)}}u=c=p=0,m=v=1,b=k="",d=a;break;case 58:d=1+Qn(k),p=f;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==lr())continue;switch(k+=qn(y),y*m){case 38:v=c>0?1:(k+="\f",-1);break;case 44:s[u++]=(Qn(k)-1)*v,v=1;break;case 64:45===cr()&&(k+=gr(ur())),h=cr(),c=d=Qn(b=k+=Er(dr())),y++;break;case 45:45===f&&2==Qn(k)&&(m=0)}}return o}function Mr(e,t,n,r,i,o,a,s,l,u,c){for(var d=i-1,h=0===i?o:[""],p=Zn(h),f=0,m=0,g=0;f<r;++f)for(var v=0,y=Kn(e,d+1,d=zn(m=a[f])),b=e;v<p;++v)(b=Wn(m>0?h[v]+" "+y:Yn(y,/&\f/g,h[v])))&&(l[g++]=b);return ar(e,t,n,0===i?Ar:s,l,u,c)}function Nr(e,t,n){return ar(e,t,n,Cr,qn(ir),Kn(e,2,-2),0)}function Rr(e,t,n,r){return ar(e,t,n,Or,Kn(e,0,r),Kn(e,r+1,-1),r)}var Lr=function(e,t,n){for(var r=0,i=0;r=i,i=cr(),38===r&&12===i&&(t[n]=1),!pr(i);)ur();return hr(e,rr)},Hr=new WeakMap,Br=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)||Hr.get(n))&&!r){Hr.set(e,!0);for(var i=[],o=function(e,t){return mr(function(e,t){var n=-1,r=44;do{switch(pr(r)){case 0:38===r&&12===cr()&&(t[n]=1),e[n]+=Lr(rr-1,t,n);break;case 2:e[n]+=gr(r);break;case 4:if(44===r){e[++n]=58===cr()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=qn(r)}}while(r=ur());return e}(fr(e),t))}(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[u]):a[u]+" "+o[s]}}},Fr=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function jr(e,t){switch(function(e,t){return 45^Xn(e,0)?(((t<<2^Xn(e,0))<<2^Xn(e,1))<<2^Xn(e,2))<<2^Xn(e,3):0}(e,t)){case 5103:return Tr+"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 Tr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Tr+e+kr+e+_r+e+e;case 6828:case 4268:return Tr+e+_r+e+e;case 6165:return Tr+e+_r+"flex-"+e+e;case 5187:return Tr+e+Yn(e,/(\w+).+(:[^]+)/,Tr+"box-$1$2"+_r+"flex-$1$2")+e;case 5443:return Tr+e+_r+"flex-item-"+Yn(e,/flex-|-self/,"")+e;case 4675:return Tr+e+_r+"flex-line-pack"+Yn(e,/align-content|flex-|-self/,"")+e;case 5548:return Tr+e+_r+Yn(e,"shrink","negative")+e;case 5292:return Tr+e+_r+Yn(e,"basis","preferred-size")+e;case 6060:return Tr+"box-"+Yn(e,"-grow","")+Tr+e+_r+Yn(e,"grow","positive")+e;case 4554:return Tr+Yn(e,/([^-])(transform)/g,"$1"+Tr+"$2")+e;case 6187:return Yn(Yn(Yn(e,/(zoom-|grab)/,Tr+"$1"),/(image-set)/,Tr+"$1"),e,"")+e;case 5495:case 3959:return Yn(e,/(image-set\([^]*)/,Tr+"$1$`$1");case 4968:return Yn(Yn(e,/(.+:)(flex-)?(.*)/,Tr+"box-pack:$3"+_r+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Tr+e+e;case 4095:case 3583:case 4068:case 2532:return Yn(e,/(.+)-inline(.+)/,Tr+"$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(Qn(e)-1-t>6)switch(Xn(e,t+1)){case 109:if(45!==Xn(e,t+4))break;case 102:return Yn(e,/(.+:)(.+)-([^]+)/,"$1"+Tr+"$2-$3$1"+kr+(108==Xn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~$n(e,"stretch")?jr(Yn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Xn(e,t+1))break;case 6444:switch(Xn(e,Qn(e)-3-(~$n(e,"!important")&&10))){case 107:return Yn(e,":",":"+Tr)+e;case 101:return Yn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Tr+(45===Xn(e,14)?"inline-":"")+"box$3$1"+Tr+"$2$3$1"+_r+"$2box$3")+e}break;case 5936:switch(Xn(e,t+11)){case 114:return Tr+e+_r+Yn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Tr+e+_r+Yn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Tr+e+_r+Yn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Tr+e+_r+e+e}return e}var Ur=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Or:e.return=jr(e.value,e.length);break;case xr:return Sr([sr(e,{value:Yn(e.value,"@","@"+Tr)})],r);case Ar:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Sr([sr(e,{props:[Yn(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Sr([sr(e,{props:[Yn(t,/:(plac\w+)/,":"+Tr+"input-$1")]}),sr(e,{props:[Yn(t,/:(plac\w+)/,":-moz-$1")]}),sr(e,{props:[Yn(t,/:(plac\w+)/,_r+"input-$1")]})],r)}return""})}}],Vr=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,i,o=e.stylisPlugins||Ur,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 l,u,c,d,h=[Dr,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(u=[Br,Fr].concat(o,h),c=Zn(u),function(e,t,n,r){for(var i="",o=0;o<c;o++)i+=u[o](e,t,n,r)||"";return i});i=function(e,t,n,r){l=n,function(e){Sr(Ir(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new Vn({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return f.sheet.hydrate(s),f},zr=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},qr={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,scale: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 Gr(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Wr=/[A-Z]|^ms/g,Yr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$r=function(e){return 45===e.charCodeAt(1)},Xr=function(e){return null!=e&&"boolean"!=typeof e},Kr=Gr(function(e){return $r(e)?e:e.replace(Wr,"-$&").toLowerCase()}),Qr=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Yr,function(e,t,n){return Jr={name:t,styles:n,next:Jr},t})}return 1===qr[e]||$r(e)||"number"!=typeof t||0===t?t:t+"px"};function Zr(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return Jr={name:i.name,styles:i.styles,next:Jr},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)Jr={name:a.name,styles:a.styles,next:Jr},a=a.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Zr(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":Xr(s)&&(r+=Kr(o)+":"+Qr(o,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Zr(e,t,a);switch(o){case"animation":case"animationName":r+=Kr(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var u=0;u<a.length;u++)Xr(a[u])&&(r+=Kr(o)+":"+Qr(o,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=Jr,l=n(e);return Jr=s,Zr(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var Jr,ei=/label:\s*([^\s;{]+)\s*(;|$)/g;function ti(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,i="";Jr=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=Zr(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=Zr(n,t,e[a]),r&&(i+=o[a]);ei.lastIndex=0;for(var s,l="";null!==(s=ei.exec(i));)l+="-"+s[1];var u=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=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(i){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)}(i)+l;return{name:u,styles:i,next:Jr}}var ni,ri,ii=!!u.useInsertionEffect&&u.useInsertionEffect,oi=ii||function(e){return e()},ai=(ii||u.useLayoutEffect,u.createContext("undefined"!=typeof HTMLElement?Vr({key:"css"}):null)),si=(ai.Provider,function(e){return(0,u.forwardRef)(function(t,n){var r=(0,u.useContext)(ai);return e(t,r,n)})}),li=u.createContext({}),ui={}.hasOwnProperty,ci="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",di=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return zr(t,n,r),oi(function(){return function(e,t,n){zr(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}(t,n,r)}),null},hi=si(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[ci],o=[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]+";"):n&&(r+=n+" ")}),r}(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=ti(o,void 0,u.useContext(li));a+=t.key+"-"+s.name;var l={};for(var c in e)ui.call(e,c)&&"css"!==c&&c!==ci&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),u.createElement(u.Fragment,null,u.createElement(di,{cache:t,serialized:s,isStringTag:"string"==typeof i}),u.createElement(i,l))}),pi=hi,fi=(a(4146),function(e,t){var n=arguments;if(null==t||!ui.call(t,"css"))return u.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=pi,i[1]=function(e,t){var n={};for(var r in t)ui.call(t,r)&&(n[r]=t[r]);return n[ci]=e,n}(e,t);for(var o=2;o<r;o++)i[o]=n[o];return u.createElement.apply(null,i)});function mi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ti(t)}ni=fi||(fi={}),ri||(ri=ni.JSX||(ni.JSX={}));var gi=a(2284);const vi=Math.min,yi=Math.max,bi=Math.round,wi=Math.floor,Ei=e=>({x:e,y:e});function _i(){return"undefined"!=typeof window}function ki(e){return Ai(e)?(e.nodeName||"").toLowerCase():"#document"}function Ti(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ci(e){var t;return null==(t=(Ai(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ai(e){return!!_i()&&(e instanceof Node||e instanceof Ti(e).Node)}function Oi(e){return!!_i()&&(e instanceof Element||e instanceof Ti(e).Element)}function xi(e){return!!_i()&&(e instanceof HTMLElement||e instanceof Ti(e).HTMLElement)}function Si(e){return!(!_i()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Ti(e).ShadowRoot)}const Di=new Set(["inline","contents"]);function Ii(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Mi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Di.has(i)}const Pi=new Set(["html","body","#document"]);function Mi(e){return Ti(e).getComputedStyle(e)}function Ni(e){const t=function(e){if("html"===ki(e))return e;const t=e.assignedSlot||e.parentNode||Si(e)&&e.host||Ci(e);return Si(t)?t.host:t}(e);return function(e){return Pi.has(ki(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:xi(t)&&Ii(t)?t:Ni(t)}function Ri(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=Ni(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=Ti(i);if(o){const e=Li(a);return t.concat(a,a.visualViewport||[],Ii(i)?i:[],e&&n?Ri(e):[])}return t.concat(i,Ri(i,[],n))}function Li(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Hi(e){return Oi(e)?e:e.contextElement}function Bi(e){const t=Hi(e);if(!xi(t))return Ei(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=function(e){const t=Mi(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=xi(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=bi(n)!==o||bi(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}(t);let a=(o?bi(n.width):n.width)/r,s=(o?bi(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Fi=Ei(0);function ji(e){const t=Ti(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Fi}function Ui(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=Hi(e);let a=Ei(1);t&&(r?Oi(r)&&(a=Bi(r)):a=Bi(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ti(e))&&t}(o,n,r)?ji(o):Ei(0);let l=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,c=i.width/a.x,d=i.height/a.y;if(o){const e=Ti(o),t=r&&Oi(r)?Ti(r):r;let n=e,i=Li(n);for(;i&&r&&t!==n;){const e=Bi(i),t=i.getBoundingClientRect(),r=Mi(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=o,u+=a,n=Ti(i),i=Li(n)}}return function(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}({width:c,height:d,x:l,y:u})}function Vi(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var zi=a(7003),qi=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Gi=function(){};function Wi(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Yi(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(Wi(e,a)));return o.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var $i=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===(0,gi.A)(e)&&null!==e?[e]:[];var t},Xi=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,Bn({},Xt(e,qi))},Ki=function(e,t,n){var r=e.cx,i=e.getStyles,o=e.getClassNames,a=e.className;return{css:i(t,e),className:r(null!=n?n:{},o(t,e),a)}};function Qi(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Zi(e){return Qi(e)?window.pageYOffset:e.scrollTop}function Ji(e,t){Qi(e)?window.scrollTo(0,t):e.scrollTop=t}function eo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Gi,i=Zi(e),o=t-i,a=0;!function t(){var s,l=o*((s=(s=a+=10)/n-1)*s*s+1)+i;Ji(e,l),a<n?window.requestAnimationFrame(t):r(e)}()}function to(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?Ji(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&Ji(e,Math.max(t.offsetTop-i,0))}function no(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var ro=!1,io={get passive(){return ro=!0}},oo="undefined"!=typeof window?window:{};oo.addEventListener&&oo.removeEventListener&&(oo.addEventListener("p",Gi,io),oo.removeEventListener("p",Gi,!1));var ao=ro;function so(e){return null!=e}function lo(e,t,n){return e?t:n}var uo=["children","innerProps"],co=["children","innerProps"];var ho,po,fo,mo=function(e){return"auto"===e?"bottom":e},go=(0,u.createContext)(null),vo=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,o=e.menuPosition,a=e.menuShouldScrollIntoView,s=e.theme,l=((0,u.useContext)(go)||{}).setPortalPlacement,c=(0,u.useRef)(null),d=qt((0,u.useState)(r),2),h=d[0],p=d[1],f=qt((0,u.useState)(null),2),m=f[0],g=f[1],v=s.spacing.controlHeight;return(0,zi.A)(function(){var e=c.current;if(e){var t="fixed"===o,s=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c,d=l.getBoundingClientRect().height,h=n.getBoundingClientRect(),p=h.bottom,f=h.height,m=h.top,g=n.offsetParent.getBoundingClientRect().top,v=a||Qi(c=l)?window.innerHeight:c.clientHeight,y=Zi(l),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),E=g-w,_=v-m,k=E+y,T=d-y-m,C=p-v+y+b,A=y+m-w,O=160;switch(i){case"auto":case"bottom":if(_>=f)return{placement:"bottom",maxHeight:t};if(T>=f&&!a)return o&&eo(l,C,O),{placement:"bottom",maxHeight:t};if(!a&&T>=r||a&&_>=r)return o&&eo(l,C,O),{placement:"bottom",maxHeight:a?_-b:T-b};if("auto"===i||a){var x=t,S=a?E:k;return S>=r&&(x=Math.min(S-b-s,t)),{placement:"top",maxHeight:x}}if("bottom"===i)return o&&Ji(l,C),{placement:"bottom",maxHeight:t};break;case"top":if(E>=f)return{placement:"top",maxHeight:t};if(k>=f&&!a)return o&&eo(l,A,O),{placement:"top",maxHeight:t};if(!a&&k>=r||a&&E>=r){var D=t;return(!a&&k>=r||a&&E>=r)&&(D=a?E-w:k-w),o&&eo(l,A,O),{placement:"top",maxHeight:D}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:v});p(s.maxHeight),g(s.placement),null==l||l(s.placement)}},[r,i,o,a,n,l,v]),t({ref:c,placerProps:Bn(Bn({},e),{},{placement:m||mo(i),maxHeight:h})})},yo=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return Bn({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},bo=yo,wo=yo,Eo=["size"],_o=["innerProps","isRtl","size"],ko={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},To=function(e){var n=e.size,r=Xt(e,Eo);return fi("svg",(0,t.A)({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ko},r))},Co=function(e){return fi(To,(0,t.A)({size:20},e),fi("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"}))},Ao=function(e){return fi(To,(0,t.A)({size:20},e),fi("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"}))},Oo=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return Bn({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*i,":hover":{color:n?o.neutral80:o.neutral40}})},xo=Oo,So=Oo,Do=function(){var e=mi.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_"}}}(ho||(po=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],fo||(fo=po.slice(0)),ho=Object.freeze(Object.defineProperties(po,{raw:{value:Object.freeze(fo)}})))),Io=function(e){var t=e.delay,n=e.offset;return fi("span",{css:mi({animation:"".concat(Do," 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"},"","")})},Po=["data"],Mo=["innerRef","isDisabled","isHidden","inputClassName"],No={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Ro={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Bn({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},No)},Lo=function(e){return Bn({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},No)},Ho=function(e){var t=e.children,n=e.innerProps;return fi("div",n,t)},Bo={ClearIndicator:function(e){var n=e.children,r=e.innerProps;return fi("div",(0,t.A)({},Ki(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||fi(Co,null))},Control:function(e){var n=e.children,r=e.isDisabled,i=e.isFocused,o=e.innerRef,a=e.innerProps,s=e.menuIsOpen;return fi("div",(0,t.A)({ref:o},Ki(e,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":s}),a,{"aria-disabled":r||void 0}),n)},DropdownIndicator:function(e){var n=e.children,r=e.innerProps;return fi("div",(0,t.A)({},Ki(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||fi(Ao,null))},DownChevron:Ao,CrossIcon:Co,Group:function(e){var n=e.children,r=e.cx,i=e.getStyles,o=e.getClassNames,a=e.Heading,s=e.headingProps,l=e.innerProps,u=e.label,c=e.theme,d=e.selectProps;return fi("div",(0,t.A)({},Ki(e,"group",{group:!0}),l),fi(a,(0,t.A)({},s,{selectProps:d,theme:c,getStyles:i,getClassNames:o,cx:r}),u),fi("div",null,n))},GroupHeading:function(e){var n=Xi(e);n.data;var r=Xt(n,Po);return fi("div",(0,t.A)({},Ki(e,"groupHeading",{"group-heading":!0}),r))},IndicatorsContainer:function(e){var n=e.children,r=e.innerProps;return fi("div",(0,t.A)({},Ki(e,"indicatorsContainer",{indicators:!0}),r),n)},IndicatorSeparator:function(e){var n=e.innerProps;return fi("span",(0,t.A)({},n,Ki(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var n=e.cx,r=e.value,i=Xi(e),o=i.innerRef,a=i.isDisabled,s=i.isHidden,l=i.inputClassName,u=Xt(i,Mo);return fi("div",(0,t.A)({},Ki(e,"input",{"input-container":!0}),{"data-value":r||""}),fi("input",(0,t.A)({className:n({input:!0},l),ref:o,style:Lo(s),disabled:a},u)))},LoadingIndicator:function(e){var n=e.innerProps,r=e.isRtl,i=e.size,o=void 0===i?4:i,a=Xt(e,_o);return fi("div",(0,t.A)({},Ki(Bn(Bn({},a),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),fi(Io,{delay:0,offset:r}),fi(Io,{delay:160,offset:!0}),fi(Io,{delay:320,offset:!r}))},Menu:function(e){var n=e.children,r=e.innerRef,i=e.innerProps;return fi("div",(0,t.A)({},Ki(e,"menu",{menu:!0}),{ref:r},i),n)},MenuList:function(e){var n=e.children,r=e.innerProps,i=e.innerRef,o=e.isMulti;return fi("div",(0,t.A)({},Ki(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},MenuPortal:function(e){var n=e.appendTo,r=e.children,i=e.controlElement,o=e.innerProps,a=e.menuPlacement,s=e.menuPosition,l=(0,u.useRef)(null),c=(0,u.useRef)(null),d=qt((0,u.useState)(mo(a)),2),h=d[0],p=d[1],f=(0,u.useMemo)(function(){return{setPortalPlacement:p}},[]),m=qt((0,u.useState)(null),2),g=m[0],v=m[1],y=(0,u.useCallback)(function(){if(i){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}}(i),t="fixed"===s?0:window.pageYOffset,n=e[h]+t;n===(null==g?void 0:g.offset)&&e.left===(null==g?void 0:g.rect.left)&&e.width===(null==g?void 0:g.rect.width)||v({offset:n,rect:e})}},[i,s,h,null==g?void 0:g.offset,null==g?void 0:g.rect.left,null==g?void 0:g.rect.width]);(0,zi.A)(function(){y()},[y]);var b=(0,u.useCallback)(function(){"function"==typeof c.current&&(c.current(),c.current=null),i&&l.current&&(c.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=Hi(e),c=i||o?[...u?Ri(u):[],...Ri(t)]:[];c.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});const d=u&&s?function(e,t){let n,r=null;const i=Ci(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const u=e.getBoundingClientRect(),{left:c,top:d,width:h,height:p}=u;if(s||t(),!h||!p)return;const f={rootMargin:-wi(d)+"px "+-wi(i.clientWidth-(c+h))+"px "+-wi(i.clientHeight-(d+p))+"px "+-wi(c)+"px",threshold:yi(0,vi(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||Vi(u,e.getBoundingClientRect())||a(),m=!1}try{r=new IntersectionObserver(g,{...f,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),o}(u,n):null;let h,p=-1,f=null;a&&(f=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=f)||e.observe(t)})),n()}),u&&!l&&f.observe(u),f.observe(t));let m=l?Ui(e):null;return l&&function t(){const r=Ui(e);m&&!Vi(m,r)&&n(),m=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(h)}}(i,l.current,y,{elementResize:"ResizeObserver"in window}))},[i,y]);(0,zi.A)(function(){b()},[b]);var w=(0,u.useCallback)(function(e){l.current=e,b()},[b]);if(!n&&"fixed"!==s||!g)return null;var E=fi("div",(0,t.A)({ref:w},Ki(Bn(Bn({},e),{},{offset:g.offset,position:s,rect:g.rect}),"menuPortal",{"menu-portal":!0}),o),r);return fi(go.Provider,{value:f},n?(0,Mt.createPortal)(E,n):E)},LoadingMessage:function(e){var n=e.children,r=void 0===n?"Loading...":n,i=e.innerProps,o=Xt(e,co);return fi("div",(0,t.A)({},Ki(Bn(Bn({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},NoOptionsMessage:function(e){var n=e.children,r=void 0===n?"No options":n,i=e.innerProps,o=Xt(e,uo);return fi("div",(0,t.A)({},Ki(Bn(Bn({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,o=e.isDisabled,a=e.removeProps,s=e.selectProps,l=n.Container,u=n.Label,c=n.Remove;return fi(l,{data:r,innerProps:Bn(Bn({},Ki(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:s},fi(u,{data:r,innerProps:Bn({},Ki(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),fi(c,{data:r,innerProps:Bn(Bn({},Ki(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:Ho,MultiValueLabel:Ho,MultiValueRemove:function(e){var n=e.children,r=e.innerProps;return fi("div",(0,t.A)({role:"button"},r),n||fi(Co,{size:14}))},Option:function(e){var n=e.children,r=e.isDisabled,i=e.isFocused,o=e.isSelected,a=e.innerRef,s=e.innerProps;return fi("div",(0,t.A)({},Ki(e,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":o}),{ref:a,"aria-disabled":r},s),n)},Placeholder:function(e){var n=e.children,r=e.innerProps;return fi("div",(0,t.A)({},Ki(e,"placeholder",{placeholder:!0}),r),n)},SelectContainer:function(e){var n=e.children,r=e.innerProps,i=e.isDisabled,o=e.isRtl;return fi("div",(0,t.A)({},Ki(e,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},SingleValue:function(e){var n=e.children,r=e.isDisabled,i=e.innerProps;return fi("div",(0,t.A)({},Ki(e,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},ValueContainer:function(e){var n=e.children,r=e.innerProps,i=e.isMulti,o=e.hasValue;return fi("div",(0,t.A)({},Ki(e,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)}},Fo=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function jo(e,t){return e===t||!(!Fo(e)||!Fo(t))}function Uo(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!jo(e[n],t[n]))return!1;return!0}for(var Vo={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"},zo=function(e){return fi("span",(0,t.A)({css:Vo},e))},qo={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,i=e.context,o=e.isInitialFocus;switch(i){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 o?"".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,i=e.labels,o=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(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return"option ".concat(r,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,a=e.selectValue,s=e.isDisabled,l=e.isSelected,u=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(o," focused, ").concat(c(a,n),".");if("menu"===t&&u){var d=s?" disabled":"",h="".concat(l?" selected":"").concat(d);return"".concat(o).concat(h,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Go=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,o=e.isFocused,a=e.selectValue,s=e.selectProps,l=e.id,c=e.isAppleDevice,d=s.ariaLiveMessages,h=s.getOptionLabel,p=s.inputValue,f=s.isMulti,m=s.isOptionDisabled,g=s.isSearchable,v=s.menuIsOpen,y=s.options,b=s.screenReaderStatus,w=s.tabSelectsValue,E=s.isLoading,_=s["aria-label"],k=s["aria-live"],T=(0,u.useMemo)(function(){return Bn(Bn({},qo),d||{})},[d]),C=(0,u.useMemo)(function(){var e,n="";if(t&&T.onChange){var r=t.option,i=t.options,o=t.removedValue,s=t.removedValues,l=t.value,u=o||r||(e=l,Array.isArray(e)?null:e),c=u?h(u):"",d=i||s||void 0,p=d?d.map(h):[],f=Bn({isDisabled:u&&m(u,a),label:c,labels:p},t);n=T.onChange(f)}return n},[t,T,m,a,h]),A=(0,u.useMemo)(function(){var e="",t=n||r,o=!!(n&&a&&a.includes(n));if(t&&T.onFocus){var s={focused:t,label:h(t),isDisabled:m(t,a),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:a,isAppleDevice:c};e=T.onFocus(s)}return e},[n,r,h,m,T,i,a,c]),O=(0,u.useMemo)(function(){var e="";if(v&&y.length&&!E&&T.onFilter){var t=b({count:i.length});e=T.onFilter({inputValue:p,resultsMessage:t})}return e},[i,p,v,T,y,b,E]),x="initial-input-focus"===(null==t?void 0:t.action),S=(0,u.useMemo)(function(){var e="";if(T.guidance){var t=r?"value":v?"menu":"input";e=T.guidance({"aria-label":_,context:t,isDisabled:n&&m(n,a),isMulti:f,isSearchable:g,tabSelectsValue:w,isInitialFocus:x})}return e},[_,n,r,f,m,g,v,T,a,w,x]),D=fi(u.Fragment,null,fi("span",{id:"aria-selection"},C),fi("span",{id:"aria-focused"},A),fi("span",{id:"aria-results"},O),fi("span",{id:"aria-guidance"},S));return fi(u.Fragment,null,fi(zo,{id:l},x&&D),fi(zo,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!x&&D))},Wo=[{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źẑżžẓẕƶȥɀⱬꝣ"}],Yo=new RegExp("["+Wo.map(function(e){return e.letters}).join("")+"]","g"),$o={},Xo=0;Xo<Wo.length;Xo++)for(var Ko=Wo[Xo],Qo=0;Qo<Ko.letters.length;Qo++)$o[Ko.letters[Qo]]=Ko.base;var Zo=function(e){return e.replace(Yo,function(e){return $o[e]})},Jo=function(e,t){void 0===t&&(t=Uo);var n=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var o=e.apply(this,r);return n={lastResult:o,lastArgs:r,lastThis:this},o}return r.clear=function(){n=null},r}(Zo),ea=function(e){return e.replace(/^\s+|\s+$/g,"")},ta=function(e){return"".concat(e.label," ").concat(e.value)},na=["innerRef"];function ra(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 i=Object.entries(e).filter(function(e){var t=qt(e,1)[0];return!n.includes(t)});return i.reduce(function(e,t){var n=qt(t,2),r=n[0],i=n[1];return e[r]=i,e},{})}(Xt(e,na),"onExited","in","enter","exit","appear");return fi("input",(0,t.A)({ref:n},r,{css:mi({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 ia=["boxSizing","height","overflow","paddingRight","position"],oa={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function aa(e){e.cancelable&&e.preventDefault()}function sa(e){e.stopPropagation()}function la(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function ua(){return"ontouchstart"in window||navigator.maxTouchPoints}var ca=!("undefined"==typeof window||!window.document||!window.document.createElement),da=0,ha={capture:!1,passive:!1},pa=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},fa={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function ma(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,a=(0,u.useRef)(!1),s=(0,u.useRef)(!1),l=(0,u.useRef)(0),c=(0,u.useRef)(null),d=(0,u.useCallback)(function(e,t){if(null!==c.current){var l=c.current,u=l.scrollTop,d=l.scrollHeight,h=l.clientHeight,p=c.current,f=t>0,m=d-h-u,g=!1;m>t&&a.current&&(r&&r(e),a.current=!1),f&&s.current&&(o&&o(e),s.current=!1),f&&t>m?(n&&!a.current&&n(e),p.scrollTop=d,g=!0,a.current=!0):!f&&-t>u&&(i&&!s.current&&i(e),p.scrollTop=0,g=!0,s.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[n,r,i,o]),h=(0,u.useCallback)(function(e){d(e,e.deltaY)},[d]),p=(0,u.useCallback)(function(e){l.current=e.changedTouches[0].clientY},[]),f=(0,u.useCallback)(function(e){var t=l.current-e.changedTouches[0].clientY;d(e,t)},[d]),m=(0,u.useCallback)(function(e){if(e){var t=!!ao&&{passive:!1};e.addEventListener("wheel",h,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",f,t)}},[f,p,h]),g=(0,u.useCallback)(function(e){e&&(e.removeEventListener("wheel",h,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",f,!1))},[f,p,h]);return(0,u.useEffect)(function(){if(t){var e=c.current;return m(e),function(){g(e)}}},[t,m,g]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),o=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=(0,u.useRef)({}),o=(0,u.useRef)(null),a=(0,u.useCallback)(function(e){if(ca){var t=document.body,n=t&&t.style;if(r&&ia.forEach(function(e){var t=n&&n[e];i.current[e]=t}),r&&da<1){var o=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+o||0;Object.keys(oa).forEach(function(e){var t=oa[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(s,"px"))}t&&ua()&&(t.addEventListener("touchmove",aa,ha),e&&(e.addEventListener("touchstart",la,ha),e.addEventListener("touchmove",sa,ha))),da+=1}},[r]),s=(0,u.useCallback)(function(e){if(ca){var t=document.body,n=t&&t.style;da=Math.max(da-1,0),r&&da<1&&ia.forEach(function(e){var t=i.current[e];n&&(n[e]=t)}),t&&ua()&&(t.removeEventListener("touchmove",aa,ha),e&&(e.removeEventListener("touchstart",la,ha),e.removeEventListener("touchmove",sa,ha)))}},[r]);return(0,u.useEffect)(function(){if(t){var e=o.current;return a(e),function(){s(e)}}},[t,a,s]),function(e){o.current=e}}({isEnabled:n});return fi(u.Fragment,null,n&&fi("div",{onClick:pa,css:fa}),t(function(e){i(e),o(e)}))}var ga={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},va=function(e){var t=e.name,n=e.onFocus;return fi("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:ga,value:"",onChange:function(){}})};function ya(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 ba(){return ya(/^Mac/i)}var wa={clearIndicator:So,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,i=e.theme,o=i.colors,a=i.borderRadius;return Bn({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?o.neutral5:o.neutral0,borderColor:n?o.neutral10:r?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:r?o.primary:o.neutral30}})},dropdownIndicator:xo,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,i=n.spacing;return Bn({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.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,i=r.spacing.baseUnit,o=r.colors;return Bn({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?o.neutral10:o.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,o=i.spacing,a=i.colors;return Bn(Bn({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Ro),t?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,i=e.theme,o=i.colors,a=i.spacing.baseUnit;return Bn({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*a})},loadingMessage:wo,menu:function(e,t){var n,r=e.placement,i=e.theme,o=i.borderRadius,a=i.spacing,s=i.colors;return Bn((n={label:"menu"},(0,Pt.A)(n,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),(0,Pt.A)(n,"position","absolute"),(0,Pt.A)(n,"width","100%"),(0,Pt.A)(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:o,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 Bn({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,i=n.borderRadius,o=n.colors;return Bn({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,o=e.cropWithEllipsis;return Bn({overflow:"hidden",textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors,a=e.isFocused;return Bn({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:a?o.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},noOptionsMessage:bo,option:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.theme,a=o.spacing,s=o.colors;return Bn({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return Bn({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,o=r.colors;return Bn({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,o=e.selectProps.controlShouldRenderValue;return Bn({alignItems:"center",display:r&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Ea={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}},_a={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:no(),captureMenuScroll:!no(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Bn({ignoreCase:!0,ignoreAccents:!0,stringify:ta,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,i=n.ignoreAccents,o=n.stringify,a=n.trim,s=n.matchFrom,l=a?ea(t):t,u=a?ea(o(e)):o(e);return r&&(l=l.toLowerCase(),u=u.toLowerCase()),i&&(l=Jo(l),u=Zo(u)),"start"===s?u.substr(0,l.length)===l:u.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function ka(e,t,n,r){return{type:"option",data:t,isDisabled:Ia(e,t,n),isSelected:Pa(e,t,n),label:Sa(e,t),value:Da(e,t),index:r}}function Ta(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(n,r){return ka(e,n,t,r)}).filter(function(t){return Oa(e,t)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=ka(e,n,t,r);return Oa(e,o)?o:void 0}).filter(so)}function Ca(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,(0,It.A)(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function Aa(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,(0,It.A)(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 Oa(e,t){var n=e.inputValue,r=void 0===n?"":n,i=t.data,o=t.isSelected,a=t.label,s=t.value;return(!Na(e)||!o)&&Ma(e,{label:a,value:s,data:i},r)}var xa=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},Sa=function(e,t){return e.getOptionLabel(t)},Da=function(e,t){return e.getOptionValue(t)};function Ia(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Pa(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Da(e,t);return n.some(function(t){return Da(e,t)===r})}function Ma(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Na=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Ra=1,La=function(e){(0,l.A)(o,e);var i=Un(o);function o(e){var t;if((0,n.A)(this,o),(t=i.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:"",isAppleDevice:!1},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.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,i=r.onChange,o=r.name;n.name=o,t.ariaOnChange(e,n),i(e,n)},t.setValue=function(e,n,r){var i=t.props,o=i.closeMenuOnSelect,a=i.isMulti,s=i.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),o&&(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,i=n.isMulti,o=n.name,a=t.state.selectValue,s=i&&t.isOptionSelected(e,a),l=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(l)return void t.ariaOnChange(e,{action:"select-option",option:e,name:o});i?t.setValue([].concat((0,It.A)(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,i=t.getOptionValue(e),o=r.filter(function(e){return t.getOptionValue(e)!==i}),a=lo(n,o,o[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(lo(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],i=n.slice(0,n.length-1),o=lo(e,i,i[0]||null);r&&t.onChange(o,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return xa(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return Aa(Ta(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 Yi.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return Sa(t.props,e)},t.getOptionValue=function(e){return Da(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,i=wa[e](n,r);i.boxSizing="border-box";var o=t.props.styles[e];return o?o(i,n):i},t.getClassNames=function(e,n){var r,i;return null===(r=(i=t.props.classNames)[e])||void 0===r?void 0:r.call(i,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,Bn(Bn({},Bo),e.components);var e},t.buildCategorizedOptions=function(){return Ta(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Ca(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:Bn({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,i=n.menuIsOpen;t.focusInput(),i?(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&&Qi(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 i=Math.abs(r.clientX-t.initialTouchX),o=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=i>5||o>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 Na(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,i=n.backspaceRemovesValue,o=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,l=n.isDisabled,u=n.menuIsOpen,c=n.onKeyDown,d=n.tabSelectsValue,h=n.openMenuOnFocus,p=t.state,f=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!(l||"function"==typeof c&&(c(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(m)t.removeValue(m);else{if(!i)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!u||!d||!f||h&&t.isOptionSelected(f,g))return;t.selectOption(f);break;case"Enter":if(229===e.keyCode)break;if(u){if(!f)return;if(t.isComposing)return;t.selectOption(f);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&o&&t.clearValue();break;case" ":if(a)return;if(!u){t.openMenu("first");break}if(!f)return;t.selectOption(f);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||++Ra),t.state.selectValue=$i(e.value),e.menuIsOpen&&t.state.selectValue.length){var r=t.getFocusableOptionsWithIds(),a=t.buildFocusableOptions(),s=a.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=r,t.state.focusedOption=a[s],t.state.focusedOptionId=xa(r,a[s])}return t}return(0,r.A)(o,[{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&&to(this.menuListRef,this.focusedOptionRef),(ba()||ya(/^iPhone/i)||ya(/^iPad/i)||ba()&&navigator.maxTouchPoints>1)&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(to(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,i=n.isFocused,o=this.buildFocusableOptions(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var s=o.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a],focusedOptionId:this.getFocusedOptionId(o[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 i=n.indexOf(r);r||(i=-1);var o=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(a=i+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 i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Ea):Bn(Bn({},Ea),this.props.theme):Ea}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,o=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,u=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:c,selectOption:o,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 Ia(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Pa(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Ma(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,i=e.inputId,o=e.inputValue,a=e.tabIndex,s=e.form,l=e.menuIsOpen,c=e.required,d=this.getComponents().Input,h=this.state,p=h.inputIsHidden,f=h.ariaSelection,m=this.commonProps,g=i||this.getElementId("input"),v=Bn(Bn(Bn({"aria-autocomplete":"list","aria-expanded":l,"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":c,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!r&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return r?u.createElement(d,(0,t.A)({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:n,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:s,type:"text",value:o},v)):u.createElement(ra,(0,t.A)({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Gi,onFocus:this.onInputFocus,disabled:n,tabIndex:a,inputMode:"none",form:s,value:""},v))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,n=this.getComponents(),r=n.MultiValue,i=n.MultiValueContainer,o=n.MultiValueLabel,a=n.MultiValueRemove,s=n.SingleValue,l=n.Placeholder,c=this.commonProps,d=this.props,h=d.controlShouldRenderValue,p=d.isDisabled,f=d.isMulti,m=d.inputValue,g=d.placeholder,v=this.state,y=v.selectValue,b=v.focusedValue,w=v.isFocused;if(!this.hasValue()||!h)return m?null:u.createElement(l,(0,t.A)({},c,{key:"placeholder",isDisabled:p,isFocused:w,innerProps:{id:this.getElementId("placeholder")}}),g);if(f)return y.map(function(n,s){var l=n===b,d="".concat(e.getOptionLabel(n),"-").concat(e.getOptionValue(n));return u.createElement(r,(0,t.A)({},c,{components:{Container:i,Label:o,Remove:a},isFocused:l,isDisabled:p,key:d,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(m)return null;var E=y[0];return u.createElement(s,(0,t.A)({},c,{data:E,isDisabled:p}),this.formatOptionLabel(E,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,n=this.commonProps,r=this.props,i=r.isDisabled,o=r.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||i||!this.hasValue()||o)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return u.createElement(e,(0,t.A)({},n,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,n=this.commonProps,r=this.props,i=r.isDisabled,o=r.isLoading,a=this.state.isFocused;return e&&o?u.createElement(e,(0,t.A)({},n,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),n=e.DropdownIndicator,r=e.IndicatorSeparator;if(!n||!r)return null;var i=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return u.createElement(r,(0,t.A)({},i,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var n=this.commonProps,r=this.props.isDisabled,i=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return u.createElement(e,(0,t.A)({},n,{innerProps:o,isDisabled:r,isFocused:i}))}},{key:"renderMenu",value:function(){var e=this,n=this.getComponents(),r=n.Group,i=n.GroupHeading,o=n.Menu,a=n.MenuList,s=n.MenuPortal,l=n.LoadingMessage,c=n.NoOptionsMessage,d=n.Option,h=this.commonProps,p=this.state.focusedOption,f=this.props,m=f.captureMenuScroll,g=f.inputValue,v=f.isLoading,y=f.loadingMessage,b=f.minMenuHeight,w=f.maxMenuHeight,E=f.menuIsOpen,_=f.menuPlacement,k=f.menuPosition,T=f.menuPortalTarget,C=f.menuShouldBlockScroll,A=f.menuShouldScrollIntoView,O=f.noOptionsMessage,x=f.onMenuScrollToTop,S=f.onMenuScrollToBottom;if(!E)return null;var D,I=function(n,r){var i=n.type,o=n.data,a=n.isDisabled,s=n.isSelected,l=n.label,c=n.value,f=p===o,m=a?void 0:function(){return e.onOptionHover(o)},g=a?void 0:function(){return e.selectOption(o)},v="".concat(e.getElementId("option"),"-").concat(r),y={id:v,onClick:g,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:s};return u.createElement(d,(0,t.A)({},h,{innerProps:y,data:o,isDisabled:a,isSelected:s,key:v,label:l,type:i,value:c,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())D=this.getCategorizedOptions().map(function(n){if("group"===n.type){var o=n.data,a=n.options,s=n.index,l="".concat(e.getElementId("group"),"-").concat(s),c="".concat(l,"-heading");return u.createElement(r,(0,t.A)({},h,{key:l,data:o,options:a,Heading:i,headingProps:{id:c,data:n.data},label:e.formatGroupLabel(n.data)}),n.options.map(function(e){return I(e,"".concat(s,"-").concat(e.index))}))}if("option"===n.type)return I(n,"".concat(n.index))});else if(v){var P=y({inputValue:g});if(null===P)return null;D=u.createElement(l,h,P)}else{var M=O({inputValue:g});if(null===M)return null;D=u.createElement(c,h,M)}var N={minMenuHeight:b,maxMenuHeight:w,menuPlacement:_,menuPosition:k,menuShouldScrollIntoView:A},R=u.createElement(vo,(0,t.A)({},h,N),function(n){var r=n.ref,i=n.placerProps,s=i.placement,l=i.maxHeight;return u.createElement(o,(0,t.A)({},h,N,{innerRef:r,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:v,placement:s}),u.createElement(ma,{captureEnabled:m,onTopArrive:x,onBottomArrive:S,lockEnabled:C},function(n){return u.createElement(a,(0,t.A)({},h,{innerRef:function(t){e.getMenuListRef(t),n(t)},innerProps:{role:"listbox","aria-multiselectable":h.isMulti,id:e.getElementId("listbox")},isLoading:v,maxHeight:l,focusedOption:p}),D)}))});return T||"fixed"===k?u.createElement(s,(0,t.A)({},h,{appendTo:T,controlElement:this.controlRef,menuPlacement:_,menuPosition:k}),R):R}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,o=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!r)return u.createElement(va,{name:o,onFocus:this.onValueInputFocus});if(o&&!r){if(i){if(n){var l=s.map(function(t){return e.getOptionValue(t)}).join(n);return u.createElement("input",{name:o,type:"hidden",value:l})}var c=s.length>0?s.map(function(t,n){return u.createElement("input",{key:"i-".concat(n),name:o,type:"hidden",value:e.getOptionValue(t)})}):u.createElement("input",{name:o,type:"hidden",value:""});return u.createElement("div",null,c)}var d=s[0]?this.getOptionValue(s[0]):"";return u.createElement("input",{name:o,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,n=this.state,r=n.ariaSelection,i=n.focusedOption,o=n.focusedValue,a=n.isFocused,s=n.selectValue,l=this.getFocusableOptions();return u.createElement(Go,(0,t.A)({},e,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:i,focusedValue:o,isFocused:a,selectValue:s,focusableOptions:l,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),n=e.Control,r=e.IndicatorsContainer,i=e.SelectContainer,o=e.ValueContainer,a=this.props,s=a.className,l=a.id,c=a.isDisabled,d=a.menuIsOpen,h=this.state.isFocused,p=this.commonProps=this.getCommonProps();return u.createElement(i,(0,t.A)({},p,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:h}),this.renderLiveRegion(),u.createElement(n,(0,t.A)({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:h,menuIsOpen:d}),u.createElement(o,(0,t.A)({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),u.createElement(r,(0,t.A)({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,o=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,l=t.instancePrefix,u=e.options,c=e.value,d=e.menuIsOpen,h=e.inputValue,p=e.isMulti,f=$i(c),m={};if(n&&(c!==n.value||u!==n.options||d!==n.menuIsOpen||h!==n.inputValue)){var g=d?function(e,t){return Ca(Ta(e,t))}(e,f):[],v=d?Aa(Ta(e,f),"".concat(l,"-option")):[],y=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,f):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:f,focusedOption:b,focusedOptionId:xa(v,b),focusableOptionsWithIds:v,focusedValue:y,clearFocusValueOnUpdate:!1}}var w=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},E=o,_=a&&s;return a&&!_&&(E={value:lo(p,f,f[0]||null),options:f,action:"initial-input-focus"},_=!s),"initial-input-focus"===(null==o?void 0:o.action)&&(E=null),Bn(Bn(Bn({},m),w),{},{prevProps:e,ariaSelection:E,prevWasFocused:_})}}]),o}(u.Component);La.defaultProps=_a;var Ha=(0,u.forwardRef)(function(e,n){var r=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,i=void 0!==r&&r,o=e.defaultValue,a=void 0===o?null:o,s=e.inputValue,l=e.menuIsOpen,c=e.onChange,d=e.onInputChange,h=e.onMenuClose,p=e.onMenuOpen,f=e.value,m=Xt(e,Fn),g=qt((0,u.useState)(void 0!==s?s:n),2),v=g[0],y=g[1],b=qt((0,u.useState)(void 0!==l?l:i),2),w=b[0],E=b[1],_=qt((0,u.useState)(void 0!==f?f:a),2),k=_[0],T=_[1],C=(0,u.useCallback)(function(e,t){"function"==typeof c&&c(e,t),T(e)},[c]),A=(0,u.useCallback)(function(e,t){var n;"function"==typeof d&&(n=d(e,t)),y(void 0!==n?n:e)},[d]),O=(0,u.useCallback)(function(){"function"==typeof p&&p(),E(!0)},[p]),x=(0,u.useCallback)(function(){"function"==typeof h&&h(),E(!1)},[h]),S=void 0!==s?s:v,D=void 0!==l?l:w,I=void 0!==f?f:k;return Bn(Bn({},m),{},{inputValue:S,menuIsOpen:D,onChange:C,onInputChange:A,onMenuClose:x,onMenuOpen:O,value:I})}(e);return u.createElement(La,(0,t.A)({ref:n},r))}),Ba=Ha;function Fa(e,t,n){this.x=e,this.y=t,this.time=n||(new Date).getTime()}function ja(e,t,n,r){this.startPoint=e,this.control1=t,this.control2=n,this.endPoint=r}function Ua(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,i,o,a=null,s=0;n||(n={});var l=function(){s=!1===n.leading?0:Date.now(),a=null,o=e.apply(r,i),a||(r=i=null)};return function(){var u=Date.now();s||!1!==n.leading||(s=u);var c=t-(u-s);return r=this,i=arguments,c<=0||c>t?(a&&(clearTimeout(a),a=null),s=u,o=e.apply(r,i),a||(r=i=null)):a||!1===n.trailing||(a=setTimeout(l,c)),o}}(Ua.prototype._strokeUpdate,this.throttle):this._strokeMoveUpdate=Ua.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()}Fa.prototype.velocityFrom=function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):1},Fa.prototype.distanceTo=function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))},Fa.prototype.equals=function(e){return this.x===e.x&&this.y===e.y&&this.time===e.time},ja.prototype.length=function(){for(var e=0,t=void 0,n=void 0,r=0;r<=10;r+=1){var i=r/10,o=this._point(i,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),a=this._point(i,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(r>0){var s=o-t,l=a-n;e+=Math.sqrt(s*s+l*l)}t=o,n=a}return e},ja.prototype._point=function(e,t,n,r,i){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*r*(1-e)*e*e+i*e*e*e},Ua.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},Ua.prototype.fromDataURL=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new Image,i=n.ratio||window.devicePixelRatio||1,o=n.width||this._canvas.width/i,a=n.height||this._canvas.height/i;this._reset(),r.src=e,r.onload=function(){t._ctx.drawImage(r,0,0,o,a)},this._isEmpty=!1},Ua.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),i=1;i<n;i++)r[i-1]=arguments[i];return(t=this._canvas).toDataURL.apply(t,[e].concat(r))},Ua.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()},Ua.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)},Ua.prototype.isEmpty=function(){return this._isEmpty},Ua.prototype._strokeBegin=function(e){this._data.push([]),this._reset(),this._strokeUpdate(e),"function"==typeof this.onBegin&&this.onBegin(e)},Ua.prototype._strokeUpdate=function(e){var t=e.clientX,n=e.clientY,r=this._createPoint(t,n),i=this._data[this._data.length-1],o=i&&i[i.length-1],a=o&&r.distanceTo(o)<this.minDistance;if(!o||!a){var s=this._addPoint(r),l=s.curve,u=s.widths;l&&u&&this._drawCurve(l,u.start,u.end),this._data[this._data.length-1].push({x:r.x,y:r.y,time:r.time,color:this.penColor})}},Ua.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],i=r[r.length-1];n.equals(i)||r.push({x:n.x,y:n.y,time:n.time,color:this.penColor})}"function"==typeof this.onEnd&&this.onEnd(e)},Ua.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)},Ua.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)},Ua.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor},Ua.prototype._createPoint=function(e,t,n){var r=this._canvas.getBoundingClientRect();return new Fa(e-r.left,t-r.top,n||(new Date).getTime())},Ua.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 ja(t[1],n,r,t[2]),o=this._calculateCurveWidths(i);return t.shift(),{curve:i,widths:o}}return{}},Ua.prototype._calculateCurveControlPoints=function(e,t,n){var r=e.x-t.x,i=e.y-t.y,o=t.x-n.x,a=t.y-n.y,s=(e.x+t.x)/2,l=(e.y+t.y)/2,u=(t.x+n.x)/2,c=(t.y+n.y)/2,d=Math.sqrt(r*r+i*i),h=Math.sqrt(o*o+a*a),p=h/(d+h),f=u+(s-u)*p,m=c+(l-c)*p,g=t.x-f,v=t.y-m;return{c1:new Fa(s+g,l+v),c2:new Fa(u+g,c+v)}},Ua.prototype._calculateCurveWidths=function(e){var t=e.startPoint,n=e.endPoint,r={start:null,end:null},i=this.velocityFilterWeight*n.velocityFrom(t)+(1-this.velocityFilterWeight)*this._lastVelocity,o=this._strokeWidth(i);return r.start=this._lastWidth,r.end=o,this._lastVelocity=i,this._lastWidth=o,r},Ua.prototype._strokeWidth=function(e){return Math.max(this.maxWidth/(e+1),this.minWidth)},Ua.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},Ua.prototype._drawCurve=function(e,t,n){var r=this._ctx,i=n-t,o=Math.floor(e.length());r.beginPath();for(var a=0;a<o;a+=1){var s=a/o,l=s*s,u=l*s,c=1-s,d=c*c,h=d*c,p=h*e.startPoint.x;p+=3*d*s*e.control1.x,p+=3*c*l*e.control2.x,p+=u*e.endPoint.x;var f=h*e.startPoint.y;f+=3*d*s*e.control1.y,f+=3*c*l*e.control2.y,f+=u*e.endPoint.y;var m=t+u*i;this._drawPoint(p,f,m)}r.closePath(),r.fill()},Ua.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()},Ua.prototype._fromData=function(e,t,n){for(var r=0;r<e.length;r+=1){var i=e[r];if(i.length>1)for(var o=0;o<i.length;o+=1){var a=i[o],s=new Fa(a.x,a.y,a.time),l=a.color;if(0===o)this.penColor=l,this._reset(),this._addPoint(s);else if(o!==i.length-1){var u=this._addPoint(s),c=u.curve,d=u.widths;c&&d&&t(c,d,l)}}else this._reset(),n(i[0])}},Ua.prototype._toSVG=function(){var e=this,t=this._data,n=this._canvas,r=Math.max(window.devicePixelRatio||1,1),i=n.width/r,o=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 i="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",i),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 '+i+" "+o+'" width="'+i+'" height="'+o+'">',l=a.innerHTML;if(void 0===l){var u=document.createElement("dummy"),c=a.childNodes;u.innerHTML="";for(var d=0;d<c.length;d+=1)u.appendChild(c[d].cloneNode(!0));l=u.innerHTML}return"data:image/svg+xml;base64,"+btoa(s+l+"</svg>")},Ua.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},Ua.prototype.toData=function(){return this._data};const Va=Ua;var za=a(6567),qa=["canvasProps","clearOnResize"],Ga=function(e){(0,l.A)(o,e);var i=Un(o);function o(){var e;(0,n.A)(this,o);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return(e=i.call.apply(i,[this].concat(a))).staticThis=e.constructor,e._sigPad=null,e._canvas=null,e.setRef=function(t){e._canvas=t,null===e._canvas&&(e._sigPad=null)},e._excludeOurProps=function(){var t=e.props;return t.canvasProps,t.clearOnResize,Xt(t,qa)},e.componentDidMount=function(){var t=e.getCanvas();e._sigPad=new Va(t,e._excludeOurProps()),e._resizeCanvas(),e.on()},e.componentWillUnmount=function(){e.off()},e.componentDidUpdate=function(){Object.assign(e._sigPad,e._excludeOurProps())},e.getCanvas=function(){if(null===e._canvas)throw e.staticThis.refNullError;return e._canvas},e.getTrimmedCanvas=function(){var t=e.getCanvas(),n=document.createElement("canvas");return n.width=t.width,n.height=t.height,n.getContext("2d").drawImage(t,0,0),za(n)},e.getSignaturePad=function(){if(null===e._sigPad)throw e.staticThis.refNullError;return e._sigPad},e._checkClearOnResize=function(){e.props.clearOnResize&&e._resizeCanvas()},e._resizeCanvas=function(){var t,n,r=null!==(t=e.props.canvasProps)&&void 0!==t?t:{},i=r.width,o=r.height;if(void 0===i||void 0===o){var a=e.getCanvas(),s=Math.max(null!==(n=window.devicePixelRatio)&&void 0!==n?n:1,1);void 0===i&&(a.width=a.offsetWidth*s),void 0===o&&(a.height=a.offsetHeight*s),a.getContext("2d").scale(s,s),e.clear()}},e.render=function(){var n=e.props.canvasProps;return u.createElement("canvas",(0,t.A)({ref:e.setRef},n))},e.on=function(){return window.addEventListener("resize",e._checkClearOnResize),e.getSignaturePad().on()},e.off=function(){return window.removeEventListener("resize",e._checkClearOnResize),e.getSignaturePad().off()},e.clear=function(){return e.getSignaturePad().clear()},e.isEmpty=function(){return e.getSignaturePad().isEmpty()},e.fromDataURL=function(t,n){return e.getSignaturePad().fromDataURL(t,n)},e.toDataURL=function(t,n){return e.getSignaturePad().toDataURL(t,n)},e.fromData=function(t){return e.getSignaturePad().fromData(t)},e.toData=function(){return e.getSignaturePad().toData()},e}return(0,r.A)(o)}(u.Component);Ga.propTypes={velocityFilterWeight:Kt.number,minWidth:Kt.number,maxWidth:Kt.number,minDistance:Kt.number,dotSize:Kt.oneOfType([Kt.number,Kt.func]),penColor:Kt.string,throttle:Kt.number,onEnd:Kt.func,onBegin:Kt.func,canvasProps:Kt.object,clearOnResize:Kt.bool},Ga.defaultProps={clearOnResize:!0},Ga.refNullError=new Error("react-signature-canvas is currently mounting or unmounting: React refs are null during this phase.");var Wa=a(7436),Ya=a.n(Wa),$a=a(6942),Xa=a.n($a);function Ka(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ka=function(){return!!e})()}var Qa=function(e){function t(e){var r;(0,n.A)(this,t),r=function(e,t,n){return t=(0,o.A)(t),(0,i.A)(e,Ka()?Reflect.construct(t,n||[],(0,o.A)(e).constructor):t.apply(e,n))}(this,t,[e]),r.min=0,r.max=e.ratingAmount||5,r.handleMouseLeave=r.handleMouseLeave.bind(r),r.handleMouseMove=r.handleMouseMove.bind(r),r.handleClick=r.handleClick.bind(r),r.rootNode=c().createRef(),r.ratingContainerNode=c().createRef();var a=e.rating,s={pos:a?r.getStarRatingPosition(a):0,rating:e.rating};return r.state={ratingCache:s,editing:e.editing||!e.rating,stars:5,rating:s.rating,pos:s.pos,glyph:r.getStars()},r}return(0,l.A)(t,e),(0,r.A)(t,[{key:"getStars",value:function(){for(var e="",t=this.props.ratingAmount,n=0;n<t;n++)e+="★";return e}},{key:"componentDidMount",value:function(){this.props.rating&&this.setState({pos:this.getStarRatingPosition(this.props.rating),rating:this.props.rating})}},{key:"getPosition",value:function(e){return this.rootNode.current?e.pageX-this.rootNode.current.getBoundingClientRect().left:0}},{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){if(null==e||"number"!=typeof e)return 0;var t=this.min,n=this.max;return e<=t||t===n?0:e>=n?100:(e-t)/(n-t)*100}},{key:"getValueFromPosition",value:function(e){if(!this.ratingContainerNode.current)return 0;var t=this.getDecimalPlaces(this.props.step),n=this.ratingContainerNode.current.offsetWidth;if(!n)return 0;var r=(this.max-this.min)*e/(n*this.props.step);r=Math.ceil(r);var i=this.applyPrecision(parseFloat(this.min+r*this.props.step),t);return Math.max(Math.min(i,this.max),this.min)}},{key:"calculate",value:function(e){var t=this.getValueFromPosition(e);return{width:"".concat(this.getWidthFromValue(t),"%"),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 c().createElement("svg",{className:"react-star-rating__star",viewBox:"0 0 286 272",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},c().createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},c().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){if(!this.props.disabled&&(this.state.editing||this.props.editing)){var t=this.getRatingEvent(e);this.setState({pos:t.width,rating:t.val})}}},{key:"shouldComponentUpdate",value:function(e,t){return e.rating!==this.props.rating||t.ratingCache.rating!==this.state.ratingCache.rating||t.rating!==this.state.rating||t.pos!==this.state.pos}},{key:"componentDidUpdate",value:function(e){e.rating!==this.props.rating&&this.props.rating!==this.state.rating&&this.setState({pos:this.getStarRatingPosition(this.props.rating),rating:this.props.rating,ratingCache:{pos:this.getStarRatingPosition(this.props.rating),rating:this.props.rating}})}},{key:"handleClick",value:function(e){if(this.props.disabled)return e.stopPropagation(),e.preventDefault(),!1;var t=this.getRatingEvent(e),n={pos:t.width,rating:t.val,caption:this.props.caption,name:this.props.name};return this.setState({ratingCache:n,pos:t.width,rating:t.val}),this.props.onRatingClick(e,n),!0}},{key:"treatName",value:function(e){return"string"==typeof e?e.toLowerCase().split(" ").join("_"):null}},{key:"render",value:function(){var e,t=Xa()((0,Pt.A)((0,Pt.A)({"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)),n=!this.props.disabled&&(this.state.editing||this.props.editing);return e=n?c().createElement("div",{ref:this.ratingContainerNode,className:"rating-container rating-gly-star","data-content":this.state.glyph,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onClick:this.handleClick},c().createElement("div",{className:"rating-stars","data-content":this.state.glyph,style:{width:this.state.pos}})):c().createElement("div",{ref:this.ratingContainerNode,className:"rating-container rating-gly-star","data-content":this.state.glyph},c().createElement("div",{className:"rating-stars","data-content":this.state.glyph,style:{width:this.state.pos}})),c().createElement("span",{className:"react-star-rating"},c().createElement("span",{ref:this.rootNode,style:{cursor:n?"pointer":"default"},className:t},e,c().createElement("input",{type:"hidden",name:this.props.name,value:this.state.rating||0,style:{display:"none !important",width:65},min:this.min,max:this.max,readOnly:!0})))}}])}(c().Component);function Za(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Ja(e){Za(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,gi.A)(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 es(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 ts(e,t){return Za(2,arguments),function(e,t){Za(2,arguments);var n=Ja(e).getTime(),r=es(t);return new Date(n+r)}(e,-es(t))}function ns(e){Za(1,arguments);var t=Ja(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 rs(e){Za(1,arguments);var t=Ja(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=ns(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=ns(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function is(e){Za(1,arguments);var t=Ja(e),n=ns(t).getTime()-function(e){Za(1,arguments);var t=rs(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),ns(n)}(t).getTime();return Math.round(n/6048e5)+1}Qa.propTypes={name:Qt().string.isRequired,caption:Qt().string,ratingAmount:Qt().number.isRequired,rating:Qt().number,onRatingClick:Qt().func,disabled:Qt().bool,editing:Qt().bool,size:Qt().string},Qa.defaultProps={step:.5,ratingAmount:5,onRatingClick:function(){},disabled:!1};var os={};function as(){return os}function ss(e,t){var n,r,i,o,a,s,l,u;Za(1,arguments);var c=as(),d=es(null!==(n=null!==(r=null!==(i=null!==(o=null==t?void 0:t.weekStartsOn)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==i?i:c.weekStartsOn)&&void 0!==r?r:null===(l=c.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Ja(e),p=h.getUTCDay(),f=(p<d?7:0)+p-d;return h.setUTCDate(h.getUTCDate()-f),h.setUTCHours(0,0,0,0),h}function ls(e,t){var n,r,i,o,a,s,l,u;Za(1,arguments);var c=Ja(e),d=c.getUTCFullYear(),h=as(),p=es(null!==(n=null!==(r=null!==(i=null!==(o=null==t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==i?i:h.firstWeekContainsDate)&&void 0!==r?r:null===(l=h.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(d+1,0,p),f.setUTCHours(0,0,0,0);var m=ss(f,t),g=new Date(0);g.setUTCFullYear(d,0,p),g.setUTCHours(0,0,0,0);var v=ss(g,t);return c.getTime()>=m.getTime()?d+1:c.getTime()>=v.getTime()?d:d-1}function us(e,t){Za(1,arguments);var n=Ja(e),r=ss(n,t).getTime()-function(e,t){var n,r,i,o,a,s,l,u;Za(1,arguments);var c=as(),d=es(null!==(n=null!==(r=null!==(i=null!==(o=null==t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==i?i:c.firstWeekContainsDate)&&void 0!==r?r:null===(l=c.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),h=ls(e,t),p=new Date(0);return p.setUTCFullYear(h,0,d),p.setUTCHours(0,0,0,0),ss(p,t)}(n,t).getTime();return Math.round(r/6048e5)+1}function cs(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var ds={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return cs("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):cs(n+1,2)},d:function(e,t){return cs(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 cs(e.getUTCHours()%12||12,t.length)},H:function(e,t){return cs(e.getUTCHours(),t.length)},m:function(e,t){return cs(e.getUTCMinutes(),t.length)},s:function(e,t){return cs(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return cs(Math.floor(r*Math.pow(10,n-3)),t.length)}};const hs=ds;var ps={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(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return hs.y(e,t)},Y:function(e,t,n,r){var i=ls(e,r),o=i>0?i:1-i;return"YY"===t?cs(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):cs(o,t.length)},R:function(e,t){return cs(rs(e),t.length)},u:function(e,t){return cs(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 cs(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 cs(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 hs.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 cs(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 i=us(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):cs(i,t.length)},I:function(e,t,n){var r=is(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):cs(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):hs.d(e,t)},D:function(e,t,n){var r=function(e){Za(1,arguments);var t=Ja(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"}):cs(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 i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return cs(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return cs(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return cs(i,t.length);case"io":return n.ordinalNumber(i,{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,i=e.getUTCHours();switch(r=12===i?"noon":0===i?"midnight":i/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,i=e.getUTCHours();switch(r=i>=17?"evening":i>=12?"afternoon":i>=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 hs.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):hs.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):cs(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):cs(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):hs.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):hs.s(e,t)},S:function(e,t){return hs.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return ms(i);case"XXXX":case"XX":return gs(i);default:return gs(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return ms(i);case"xxxx":case"xx":return gs(i);default:return gs(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+fs(i,":");default:return"GMT"+gs(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+fs(i,":");default:return"GMT"+gs(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e;return cs(Math.floor(i.getTime()/1e3),t.length)},T:function(e,t,n,r){return cs((r._originalDate||e).getTime(),t.length)}};function fs(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=t||"";return n+String(i)+a+cs(o,2)}function ms(e,t){return e%60==0?(e>0?"-":"+")+cs(Math.abs(e)/60,2):gs(e,t)}function gs(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+cs(Math.floor(i/60),2)+n+cs(i%60,2)}const vs=ps;var ys=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"})}},bs=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 ws={p:bs,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return ys(e,t);switch(i){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}}",ys(i,t)).replace("{{time}}",bs(o,t))}};function Es(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 _s=["D","DD"],ks=["YY","YYYY"];function Ts(e){return-1!==_s.indexOf(e)}function Cs(e){return-1!==ks.indexOf(e)}function As(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 Os={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 xs(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 Ss={date:xs({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:xs({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:xs({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var Ds={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Is(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!=n&&n.width?String(n.width):i;r=e.formattingValues[o]||e.formattingValues[i]}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 Ps={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:Is({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Is({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:Is({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:Is({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:Is({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 Ms(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a,s=o[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(l,function(e){return e.test(s)}):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(l,function(e){return e.test(s)});return a=e.valueCallback?e.valueCallback(u):u,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var Ns,Rs={ordinalNumber:(Ns={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(Ns.matchPattern);if(!n)return null;var r=n[0],i=e.match(Ns.parsePattern);if(!i)return null;var o=Ns.valueCallback?Ns.valueCallback(i[0]):i[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(r.length)}}),era:Ms({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:Ms({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:Ms({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:Ms({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:Ms({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 Ls={code:"en-US",formatDistance:function(e,t,n){var r,i=Os[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:Ss,formatRelative:function(e,t,n,r){return Ds[e]},localize:Ps,match:Rs,options:{weekStartsOn:0,firstWeekContainsDate:1}};var Hs=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Bs=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Fs=/^'([^]*?)'?$/,js=/''/g,Us=/[a-zA-Z]/;function Vs(e,t,n){var r,i,o,a,s,l,u,c,d,h,p,f,m,g,v,y,b,w;Za(2,arguments);var E=String(t),_=as(),k=null!==(r=null!==(i=null==n?void 0:n.locale)&&void 0!==i?i:_.locale)&&void 0!==r?r:Ls,T=es(null!==(o=null!==(a=null!==(s=null!==(l=null==n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null==n||null===(u=n.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==s?s:_.firstWeekContainsDate)&&void 0!==a?a:null===(d=_.locale)||void 0===d||null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==o?o:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=es(null!==(p=null!==(f=null!==(m=null!==(g=null==n?void 0:n.weekStartsOn)&&void 0!==g?g:null==n||null===(v=n.locale)||void 0===v||null===(y=v.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==m?m:_.weekStartsOn)&&void 0!==f?f:null===(b=_.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(C>=0&&C<=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 A=Ja(e);if(!function(e){if(Za(1,arguments),!function(e){return Za(1,arguments),e instanceof Date||"object"===(0,gi.A)(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=Ja(e);return!isNaN(Number(t))}(A))throw new RangeError("Invalid time value");var O=ts(A,Es(A)),x={firstWeekContainsDate:T,weekStartsOn:C,locale:k,_originalDate:A};return E.match(Bs).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,ws[t])(e,k.formatLong):e}).join("").match(Hs).map(function(r){if("''"===r)return"'";var i,o,a=r[0];if("'"===a)return(o=(i=r).match(Fs))?o[1].replace(js,"'"):i;var s=vs[a];if(s)return null!=n&&n.useAdditionalWeekYearTokens||!Cs(r)||As(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!Ts(r)||As(r,t,String(e)),s(O,r,k.localize,x);if(a.match(Us))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return r}).join("")}function zs(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,zt.A)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,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,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function qs(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 Gs=a(9417),Ws=function(){function e(){(0,n.A)(this,e),(0,Pt.A)(this,"priority",void 0),(0,Pt.A)(this,"subPriority",0)}return(0,r.A)(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),Ys=function(e){(0,l.A)(i,e);var t=Un(i);function i(e,r,o,a,s){var l;return(0,n.A)(this,i),(l=t.call(this)).value=e,l.validateValue=r,l.setValue=o,l.priority=a,s&&(l.subPriority=s),l}return(0,r.A)(i,[{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)}}]),i}(Ws),$s=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",10),(0,Pt.A)((0,Gs.A)(e),"subPriority",-1),e}return(0,r.A)(i,[{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}}]),i}(Ws),Xs=function(){function e(){(0,n.A)(this,e),(0,Pt.A)(this,"incompatibleTokens",void 0),(0,Pt.A)(this,"priority",void 0),(0,Pt.A)(this,"subPriority",void 0)}return(0,r.A)(e,[{key:"run",value:function(e,t,n,r){var i=this.parse(e,t,n,r);return i?{setter:new Ys(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),Ks=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",140),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens",["R","u","t","T"]),e}return(0,r.A)(i,[{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}}]),i}(Xs),Qs=(Math.pow(10,8),/^(1[0-2]|0?\d)/),Zs=/^(3[0-1]|[0-2]?\d)/,Js=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,el=/^(5[0-3]|[0-4]?\d)/,tl=/^(2[0-3]|[0-1]?\d)/,nl=/^(2[0-4]|[0-1]?\d)/,rl=/^(1[0-1]|0?\d)/,il=/^(1[0-2]|0?\d)/,ol=/^[0-5]?\d/,al=/^[0-5]?\d/,sl=/^\d/,ll=/^\d{1,2}/,ul=/^\d{1,3}/,cl=/^\d{1,4}/,dl=/^-?\d+/,hl=/^-?\d/,pl=/^-?\d{1,2}/,fl=/^-?\d{1,3}/,ml=/^-?\d{1,4}/,gl=/^([+-])(\d{2})(\d{2})?|Z/,vl=/^([+-])(\d{2})(\d{2})|Z/,yl=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,bl=/^([+-])(\d{2}):(\d{2})|Z/,wl=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function El(e,t){return e?{value:t(e.value),rest:e.rest}:e}function _l(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function kl(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 Tl(e){return _l(dl,e)}function Cl(e,t){switch(e){case 1:return _l(sl,t);case 2:return _l(ll,t);case 3:return _l(ul,t);case 4:return _l(cl,t);default:return _l(new RegExp("^\\d{1,"+e+"}"),t)}}function Al(e,t){switch(e){case 1:return _l(hl,t);case 2:return _l(pl,t);case 3:return _l(fl,t);case 4:return _l(ml,t);default:return _l(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Ol(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function xl(e,t){var n,r=t>0,i=r?t:1-t;if(i<=50)n=e||100;else{var o=i+50;n=e+100*Math.floor(o/100)-(e>=o%100?100:0)}return r?n:1-n}function Sl(e){return e%400==0||e%4==0&&e%100!=0}var Dl=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",130),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return(0,r.A)(i,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return El(Cl(4,e),r);case"yo":return El(n.ordinalNumber(e,{unit:"year"}),r);default:return El(Cl(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 i=xl(n.year,r);return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}var o="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}}]),i}(Xs),Il=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",130),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return(0,r.A)(i,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return El(Cl(4,e),r);case"Yo":return El(n.ordinalNumber(e,{unit:"year"}),r);default:return El(Cl(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 i=ls(e,r);if(n.isTwoDigitYear){var o=xl(n.year,i);return e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),ss(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),ss(e,r)}}]),i}(Xs),Pl=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",130),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return(0,r.A)(i,[{key:"parse",value:function(e,t){return Al("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),ns(r)}}]),i}(Xs),Ml=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",130),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return(0,r.A)(i,[{key:"parse",value:function(e,t){return Al("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}}]),i}(Xs),Nl=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",120),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return(0,r.A)(i,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return Cl(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}}]),i}(Xs),Rl=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",120),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return(0,r.A)(i,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return Cl(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}}]),i}(Xs),Ll=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),(0,Pt.A)((0,Gs.A)(e),"priority",110),e}return(0,r.A)(i,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"M":return El(_l(Qs,e),r);case"MM":return El(Cl(2,e),r);case"Mo":return El(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}}]),i}(Xs),Hl=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",110),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return(0,r.A)(i,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"L":return El(_l(Qs,e),r);case"LL":return El(Cl(2,e),r);case"Lo":return El(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}}]),i}(Xs),Bl=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",100),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return(0,r.A)(i,[{key:"parse",value:function(e,t,n){switch(t){case"w":return _l(el,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return Cl(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,r){return ss(function(e,t,n){Za(2,arguments);var r=Ja(e),i=es(t),o=us(r,n)-i;return r.setUTCDate(r.getUTCDate()-7*o),r}(e,n,r),r)}}]),i}(Xs),Fl=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",100),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return(0,r.A)(i,[{key:"parse",value:function(e,t,n){switch(t){case"I":return _l(el,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return Cl(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return ns(function(e,t){Za(2,arguments);var n=Ja(e),r=es(t),i=is(n)-r;return n.setUTCDate(n.getUTCDate()-7*i),n}(e,n))}}]),i}(Xs),jl=[31,28,31,30,31,30,31,31,30,31,30,31],Ul=[31,29,31,30,31,30,31,31,30,31,30,31],Vl=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",90),(0,Pt.A)((0,Gs.A)(e),"subPriority",1),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return(0,r.A)(i,[{key:"parse",value:function(e,t,n){switch(t){case"d":return _l(Zs,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return Cl(t.length,e)}}},{key:"validate",value:function(e,t){var n=Sl(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=Ul[r]:t>=1&&t<=jl[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),i}(Xs),zl=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",90),(0,Pt.A)((0,Gs.A)(e),"subpriority",1),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return(0,r.A)(i,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return _l(Js,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return Cl(t.length,e)}}},{key:"validate",value:function(e,t){return Sl(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}}]),i}(Xs);function ql(e,t,n){var r,i,o,a,s,l,u,c;Za(2,arguments);var d=as(),h=es(null!==(r=null!==(i=null!==(o=null!==(a=null==n?void 0:n.weekStartsOn)&&void 0!==a?a:null==n||null===(s=n.locale)||void 0===s||null===(l=s.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==o?o:d.weekStartsOn)&&void 0!==i?i:null===(u=d.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==r?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Ja(e),f=es(t),m=((f%7+7)%7<h?7:0)+f-p.getUTCDay();return p.setUTCDate(p.getUTCDate()+m),p}var Gl=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",90),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return(0,r.A)(i,[{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=ql(e,n,r)).setUTCHours(0,0,0,0),e}}]),i}(Xs),Wl=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",90),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return(0,r.A)(i,[{key:"parse",value:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return El(Cl(t.length,e),i);case"eo":return El(n.ordinalNumber(e,{unit:"day"}),i);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=ql(e,n,r)).setUTCHours(0,0,0,0),e}}]),i}(Xs),Yl=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",90),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return(0,r.A)(i,[{key:"parse",value:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return El(Cl(t.length,e),i);case"co":return El(n.ordinalNumber(e,{unit:"day"}),i);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=ql(e,n,r)).setUTCHours(0,0,0,0),e}}]),i}(Xs),$l=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",90),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return(0,r.A)(i,[{key:"parse",value:function(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return Cl(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return El(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 El(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return El(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return El(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){Za(2,arguments);var n=es(t);n%7==0&&(n-=7);var r=Ja(e),i=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+i),r}(e,n),e.setUTCHours(0,0,0,0),e}}]),i}(Xs),Xl=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",80),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return(0,r.A)(i,[{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(Ol(n),0,0,0),e}}]),i}(Xs),Kl=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",80),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return(0,r.A)(i,[{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(Ol(n),0,0,0),e}}]),i}(Xs),Ql=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",80),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens",["a","b","t","T"]),e}return(0,r.A)(i,[{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(Ol(n),0,0,0),e}}]),i}(Xs),Zl=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",70),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens",["H","K","k","t","T"]),e}return(0,r.A)(i,[{key:"parse",value:function(e,t,n){switch(t){case"h":return _l(il,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return Cl(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}}]),i}(Xs),Jl=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",70),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return(0,r.A)(i,[{key:"parse",value:function(e,t,n){switch(t){case"H":return _l(tl,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return Cl(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}}]),i}(Xs),eu=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",70),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens",["h","H","k","t","T"]),e}return(0,r.A)(i,[{key:"parse",value:function(e,t,n){switch(t){case"K":return _l(rl,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return Cl(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}}]),i}(Xs),tu=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",70),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return(0,r.A)(i,[{key:"parse",value:function(e,t,n){switch(t){case"k":return _l(nl,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return Cl(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}}]),i}(Xs),nu=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",60),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens",["t","T"]),e}return(0,r.A)(i,[{key:"parse",value:function(e,t,n){switch(t){case"m":return _l(ol,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return Cl(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}}]),i}(Xs),ru=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",50),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens",["t","T"]),e}return(0,r.A)(i,[{key:"parse",value:function(e,t,n){switch(t){case"s":return _l(al,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return Cl(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}}]),i}(Xs),iu=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",30),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens",["t","T"]),e}return(0,r.A)(i,[{key:"parse",value:function(e,t){return El(Cl(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}}]),i}(Xs),ou=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",10),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens",["t","T","x"]),e}return(0,r.A)(i,[{key:"parse",value:function(e,t){switch(t){case"X":return kl(gl,e);case"XX":return kl(vl,e);case"XXXX":return kl(yl,e);case"XXXXX":return kl(wl,e);default:return kl(bl,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),i}(Xs),au=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",10),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens",["t","T","X"]),e}return(0,r.A)(i,[{key:"parse",value:function(e,t){switch(t){case"x":return kl(gl,e);case"xx":return kl(vl,e);case"xxxx":return kl(yl,e);case"xxxxx":return kl(wl,e);default:return kl(bl,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),i}(Xs),su=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",40),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens","*"),e}return(0,r.A)(i,[{key:"parse",value:function(e){return Tl(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),i}(Xs),lu=function(e){(0,l.A)(i,e);var t=Un(i);function i(){var e;(0,n.A)(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,Pt.A)((0,Gs.A)(e),"priority",20),(0,Pt.A)((0,Gs.A)(e),"incompatibleTokens","*"),e}return(0,r.A)(i,[{key:"parse",value:function(e){return Tl(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),i}(Xs),uu={G:new Ks,y:new Dl,Y:new Il,R:new Pl,u:new Ml,Q:new Nl,q:new Rl,M:new Ll,L:new Hl,w:new Bl,I:new Fl,d:new Vl,D:new zl,E:new Gl,e:new Wl,c:new Yl,i:new $l,a:new Xl,b:new Kl,B:new Ql,h:new Zl,H:new Jl,K:new eu,k:new tu,m:new nu,s:new ru,S:new iu,X:new ou,x:new au,t:new su,T:new lu},cu=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,du=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,hu=/^'([^]*?)'?$/,pu=/''/g,fu=/\S/,mu=/[a-zA-Z]/;let gu;var vu={cursor:"move"};const yu=function(e){var t=e.data,n=e.index,r=e.onDestroy,i=e.setAsChild,o=e.getDataById,a=qt(gn({type:Tn,item:function(){return{itemType:Tn,index:t.parentId?-1:n,parentIndex:t.parentIndex,id:t.id,col:t.col,onDestroy:r,setAsChild:i,getDataById:o,data:t}},collect:function(e){return{isDragging:e.isDragging()}}}),3),s=a[1],l=a[2];return(0,u.useEffect)(function(){l((gu||(gu=new Image,gu.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),gu),{captureDraggingState:!0})},[l]),c().createElement("div",{ref:s,className:"btn is-isolated",style:vu},c().createElement("i",{className:"is-isolated fas fa-grip-vertical"}))};function bu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(bu=function(){return!!e})()}var wu=function(e){function t(){return(0,n.A)(this,t),function(e,t,n){return t=(0,o.A)(t),(0,i.A)(e,bu()?Reflect.construct(t,n||[],(0,o.A)(e).constructor):t.apply(e,n))}(this,t,arguments)}return(0,l.A)(t,e),(0,r.A)(t,[{key:"render",value:function(){var e=this;return c().createElement("div",{className:"toolbar-header"},c().createElement("span",{className:"badge badge-secondary"},this.props.data.text),c().createElement("div",{className:"toolbar-header-buttons"},"LineBreak"!==this.props.data.element&&c().createElement("div",{className:"btn is-isolated",role:"button",tabIndex:0,"aria-label":"Edit field",onClick:this.props.editModeOn.bind(this.props.parent,this.props.data)},c().createElement("i",{className:"is-isolated fas fa-edit"})),c().createElement("div",{className:"btn is-isolated",role:"button",tabIndex:0,"aria-label":"Delete field",onClick:this.props.onDestroy.bind(this,this.props.data)},c().createElement("i",{className:"is-isolated fas fa-trash"})),"function"==typeof this.props.moveItemBy&&c().createElement(c().Fragment,null,c().createElement("button",{type:"button",className:"btn is-isolated rfb-move-btn","aria-label":"Move field up",title:"Move up",disabled:!!this.props.isFirst,onClick:function(){return e.props.moveItemBy(e.props.data.id,-1)}},c().createElement("i",{className:"is-isolated fas fa-arrow-up"})),c().createElement("button",{type:"button",className:"btn is-isolated rfb-move-btn","aria-label":"Move field down",title:"Move down",disabled:!!this.props.isLast,onClick:function(){return e.props.moveItemBy(e.props.data.id,1)}},c().createElement("i",{className:"is-isolated fas fa-arrow-down"}))),c().createElement(yu,{data:this.props.data,index:this.props.index,onDestroy:this.props.onDestroy,setAsChild:this.props.setAsChild})))}}])}(c().Component);const Eu=function(e){return e.mutable?null:c().createElement("div",null,e.data.pageBreakBefore&&c().createElement("div",{className:"preview-page-break"},"Page Break"),c().createElement(wu,{isFieldSet:e.isFieldSet,parent:e.parent,editModeOn:e.editModeOn,data:e.data,index:e.index,moveItemBy:e.moveItemBy,isFirst:e.isFirst,isLast:e.isLast,setAsChild:e.setAsChild,onDestroy:e._onDestroy,onEdit:e.onEdit,static:e.data.static,required:e.data.required}))};var _u=a(4005),ku=a.n(_u);const Tu=new(ku().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:[]}});var Cu="#2a2a2a",Au=[255,255,255],Ou={black:[0,0,0],white:Au,snow:Au,ivory:Au,ghostwhite:Au,whitesmoke:Au,floralwhite:Au,mintcream:Au,azure:Au,aliceblue:Au,seashell:Au,honeydew:Au,lightyellow:Au,lightcyan:Au,lavenderblush:Au,oldlace:Au,linen:Au,cornsilk:Au,beige:Au},xu=function(e){var t=parseFloat(e);return Number.isFinite(t)?e.trim().endsWith("%")?t/100*255:t:null};function Su(e){if("string"!=typeof e)return null;var t=e.trim().toLowerCase();if(!t)return null;if(Ou[t])return(0,It.A)(Ou[t]);var n=/^#([0-9a-f]{3,8})$/.exec(t);if(n){var r=n[1];return 3===r.length||4===r.length?[0,1,2].map(function(e){return parseInt(r[e]+r[e],16)}):6===r.length||8===r.length?[0,2,4].map(function(e){return parseInt(r.slice(e,e+2),16)}):null}var i=/^rgba?\(([^)]*)\)$/.exec(t);if(i){var o=i[1].split(/[\s,/]+/).filter(Boolean);if(o.length<3)return null;var a=o.slice(0,3).map(xu);return a.some(function(e){return null===e})?null:a}var s=/^hsla?\(([^)]*)\)$/.exec(t);if(s){var l=s[1].split(/[\s,/]+/).filter(Boolean);if(l.length<3)return null;var u=parseFloat(l[0]),c=parseFloat(l[1]),d=parseFloat(l[2]);return[u,c,d].every(Number.isFinite)?function(e,t,n){var r=(e%360+360)%360/360;if(0===t)return[n,n,n].map(function(e){return Math.round(255*e)});var i=n<.5?n*(1+t):n+t-n*t,o=2*n-i,a=function(e){var t=e;return t<0&&(t+=1),t>1&&(t-=1),t<1/6?o+6*(i-o)*t:t<.5?i:t<2/3?o+(i-o)*(2/3-t)*6:o};return[a(r+1/3),a(r),a(r-1/3)].map(function(e){return Math.round(255*e)})}(u,Math.min(100,Math.max(0,c))/100,Math.min(100,Math.max(0,d))/100):null}return null}var Du=function(e){var t=qt(e.map(function(e){var t=Math.min(255,Math.max(0,e))/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}),3);return.2126*t[0]+.7152*t[1]+.0722*t[2]},Iu=function(e,t){var n=e.getAttribute&&e.getAttribute("style");if(!n)return null;var r=null;return n.split(";").forEach(function(e){var n=e.indexOf(":");-1!==n&&e.slice(0,n).trim().toLowerCase()===t&&(r=e.slice(n+1).trim())}),r},Pu=function(e){return!(!Iu(e,"background-color")&&!Iu(e,"background"))};function Mu(e,t){return e&&!1===e.mutable?function(e){if("string"!=typeof e||!e||-1===e.indexOf("color"))return e;if("undefined"==typeof window||void 0===window.DOMParser)return e;var t;try{t=(new window.DOMParser).parseFromString("<!doctype html><body>".concat(e),"text/html").body}catch(t){return e}if(!t)return e;var n=!1;return t.querySelectorAll("[style]").forEach(function(e){var r=Iu(e,"color");if(r){var i=function(e){var t=Su(e),n=Su("#ffffff");if(!t||!n)return null;var r=Du(t),i=Du(n);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}(r);if(!(null===i||i>=3)){for(var o=e;o&&o!==t;o=o.parentElement)if(Pu(o))return;var a=(e.getAttribute("style")||"").trim().replace(/;$/,"");e.setAttribute("style","".concat(a,"; background-color: ").concat(Cu,"; border-radius: 3px; box-shadow: 0 0 0 2px ").concat(Cu,";")),e.setAttribute("data-rfb-contrast-backing","dark"),e.setAttribute("title","Shown on a dark backing so you can read it here. Your form shows this text on its own background."),n=!0}}}),n?t.innerHTML:e}(t):t}const Nu=function(e){var t=e.data.hasOwnProperty("required")&&!0===e.data.required&&!e.read_only,n=Tu.process(e.data.label);if(!n||!n.trim())return null;var r=!!e.data.hasPopUp;return c().createElement("label",{id:e.data.field_name?"".concat(e.data.field_name,"__label"):void 0,onClick:r?e.passUpClick:void 0,className:e.className||"form-label",style:{marginTop:"0.5rem"}},c().createElement("span",{dangerouslySetInnerHTML:{__html:Mu(e,n)}}),t&&!e.hide_required_alert&&c().createElement("span",{className:"label-required badge badge-danger"},"Required"))};function Ru(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 Lu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ru(Object(n),!0).forEach(function(t){(0,Pt.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ru(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Hu=function(){return!!e})()}var Bu=function(e){function t(e){var r;(0,n.A)(this,t),r=function(e,t,n){return t=(0,o.A)(t),(0,i.A)(e,Hu()?Reflect.construct(t,n||[],(0,o.A)(e).constructor):t.apply(e,n))}(this,t,[e]),r.inputField=c().createRef();var a=t.updateFormat(e,null).formatMask,s=t.updateDateTime(e,{formatMask:a},a);return s.value=s.value||"",s.internalValue=s.internalValue||"",r.state=s,r}return(0,l.A)(t,e),(0,r.A)(t,[{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,i=t.year,o=e.target.value;switch(e.target.name){case"month":o>12?this.setState({month:"12"}):this.setState({month:o});break;case"day":o>31?this.setState({day:"31"}):this.setState({day:o});break;case"year":o>(new Date).getFullYear()?this.setState({year:(new Date).getFullYear().toString()}):this.setState({year:o})}var a="month"===e.target.name?o:n,s="day"===e.target.name?o:r,l="year"===e.target.name?o:i;this.setState({value:{year:l,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 i="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(i+=" alwaysbreak"),c().createElement("div",{className:i,style:Lu({},this.props.style)},c().createElement(Eu,this.props),c().createElement("div",{className:"form-group"},c().createElement(Nu,this.props),c().createElement("div",null,r&&c().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&&c().createElement("div",{className:"input-group",style:{border:"1px solid #ced4da",borderRadius:"0.25rem",marginTop:10}},c().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&&c().createElement(c().Fragment,null,c().createElement("span",{style:{display:this.state.year||this.state.day||this.state.month?"":"none",alignSelf:"center"}},"/"),c().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*"}),c().createElement("span",{style:{display:this.state.year||this.state.day||this.state.month?"":"none",alignSelf:"center"}},"/"),c().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,i,o=e.data.defaultToday;if(!o||""!==e.defaultValue&&void 0!==e.defaultValue)if(""===(r=e.defaultValue||""))i="";else{var a=function(e,t,n,r){var i,o,a,s,l,u,c,d,h,p,f,m,g,v,y,b,w,E;Za(3,arguments);var _=String(e),k=String(t),T=as(),C=null!==(i=null!==(o=null==r?void 0:r.locale)&&void 0!==o?o:T.locale)&&void 0!==i?i:Ls;if(!C.match)throw new RangeError("locale must contain match property");var A=es(null!==(a=null!==(s=null!==(l=null!==(u=null==r?void 0:r.firstWeekContainsDate)&&void 0!==u?u:null==r||null===(c=r.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==l?l:T.firstWeekContainsDate)&&void 0!==s?s:null===(h=T.locale)||void 0===h||null===(p=h.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==a?a:1);if(!(A>=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=es(null!==(f=null!==(m=null!==(g=null!==(v=null==r?void 0:r.weekStartsOn)&&void 0!==v?v:null==r||null===(y=r.locale)||void 0===y||null===(b=y.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==g?g:T.weekStartsOn)&&void 0!==m?m:null===(w=T.locale)||void 0===w||null===(E=w.options)||void 0===E?void 0:E.weekStartsOn)&&void 0!==f?f:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===k)return""===_?Ja(n):new Date(NaN);var x,S={firstWeekContainsDate:A,weekStartsOn:O,locale:C},D=[new $s],I=k.match(du).map(function(e){var t=e[0];return t in ws?(0,ws[t])(e,C.formatLong):e}).join("").match(cu),P=[],M=zs(I);try{var N=function(){var t=x.value;null!=r&&r.useAdditionalWeekYearTokens||!Cs(t)||As(t,k,e),null!=r&&r.useAdditionalDayOfYearTokens||!Ts(t)||As(t,k,e);var n=t[0],i=uu[n];if(i){var o=i.incompatibleTokens;if(Array.isArray(o)){var a=P.find(function(e){return o.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("*"===i.incompatibleTokens&&P.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));P.push({token:n,fullToken:t});var s=i.run(_,t,C.match,S);if(!s)return{v:new Date(NaN)};D.push(s.setter),_=s.rest}else{if(n.match(mu))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=t.match(hu)[1].replace(pu,"'")),0!==_.indexOf(t))return{v:new Date(NaN)};_=_.slice(t.length)}};for(M.s();!(x=M.n()).done;){var R=N();if("object"===(0,gi.A)(R))return R.v}}catch(e){M.e(e)}finally{M.f()}if(_.length>0&&fu.test(_))return new Date(NaN);var L=D.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 D.filter(function(t){return t.priority===e}).sort(function(e,t){return t.subPriority-e.subPriority})}).map(function(e){return e[0]}),H=Ja(n);if(isNaN(H.getTime()))return new Date(NaN);var B,F=ts(H,Es(H)),j={},U=zs(L);try{for(U.s();!(B=U.n()).done;){var V=B.value;if(!V.validate(F,S))return new Date(NaN);var z=V.set(F,j,S);Array.isArray(z)?(F=z[0],qs(j,z[1])):F=z}}catch(e){U.e(e)}finally{U.f()}return F}(r,n,new Date);i="Invalid Date"===a.toString()?"":a}else{var s=new Date;r="Invalid Date"===s.toString()?"":Vs(s,"yyyy-MM-dd"),i="Invalid Date"===s.toString()?"":s}return{value:r,internalValue:i,placeholder:n.toLowerCase(),defaultToday:o,formatMask:n}}},{key:"updateFormat",value:function(e,t){var n=e.data,r=n.showTimeSelect,i=n.showTimeSelectOnly,o=n.showTimeInput,a=r&&i?"":e.data.dateFormat,s=r||o?e.data.timeFormat:"",l="".concat(a," ").concat(s).trim();return{updated:l!==t,formatMask:l}}},{key:"getDerivedStateFromProps",value:function(e,n){var r=t.updateFormat(e,n.formatMask),i=r.updated,o=r.formatMask;return e.data.defaultToday!==n.defaultToday||i?t.updateDateTime(e,n,o):null}}])}(c().Component);const Fu=Bu;function ju(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 Uu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ju(Object(n),!0).forEach(function(t){(0,Pt.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ju(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vu(e,t,n){return t=(0,o.A)(t),(0,i.A)(e,zu()?Reflect.construct(t,n||[],(0,o.A)(e).constructor):t.apply(e,n))}function zu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(zu=function(){return!!e})()}var qu=function(e){return(e||"").replace(/_\d+$/,"").replace(/[_-]+/g," ").trim().replace(/\b\w/g,function(e){return e.toUpperCase()})},Gu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.label&&String(e.label).trim())return{"aria-labelledby":"".concat(e.field_name,"__label")};var t=e.placeholder&&String(e.placeholder).trim()||qu(e.custom_name)||qu(e.field_name);return t?{"aria-label":t}:{}},Wu={},Yu=function(e){function t(){return(0,n.A)(this,t),Vu(this,t,arguments)}return(0,l.A)(t,e),(0,r.A)(t,[{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"),c().createElement("div",{style:Uu({},this.props.style),className:t},c().createElement(Eu,this.props),c().createElement("h3",{className:e,dangerouslySetInnerHTML:{__html:Mu(this.props,Tu.process(this.props.data.content))}}))}}])}(c().Component),$u=function(e){function t(){return(0,n.A)(this,t),Vu(this,t,arguments)}return(0,l.A)(t,e),(0,r.A)(t,[{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"),c().createElement("div",{style:Uu({},this.props.style),className:t},c().createElement(Eu,this.props),c().createElement("p",{className:e,dangerouslySetInnerHTML:{__html:Mu(this.props,Tu.process(this.props.data.content))}}))}}])}(c().Component),Xu=function(e){function t(){return(0,n.A)(this,t),Vu(this,t,arguments)}return(0,l.A)(t,e),(0,r.A)(t,[{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"),c().createElement("div",{style:Uu({},this.props.style),className:t},c().createElement(Eu,this.props),c().createElement("label",{className:"".concat(e," form-label"),dangerouslySetInnerHTML:{__html:Mu(this.props,Tu.process(this.props.data.content))}}))}}])}(c().Component),Ku=function(e){function t(){return(0,n.A)(this,t),Vu(this,t,arguments)}return(0,l.A)(t,e),(0,r.A)(t,[{key:"render",value:function(){var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),c().createElement("div",{style:Uu({},this.props.style),className:e},c().createElement(Eu,this.props),c().createElement("hr",null))}}])}(c().Component),Qu=function(e){function t(e){var r;return(0,n.A)(this,t),(r=Vu(this,t,[e])).inputField=c().createRef(),r}return(0,l.A)(t,e),(0,r.A)(t,[{key:"render",value:function(){var e={type:"text",className:"form-control"};e.name=this.props.data.field_name,e.placeholder=this.props.data.placeholder,Object.assign(e,Gu(this.props.data)),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"),c().createElement("div",{style:Uu({},this.props.style),className:t},c().createElement(Eu,this.props),c().createElement("div",{className:"form-group"},c().createElement(Nu,this.props),c().createElement("input",e)))}}])}(c().Component),Zu=function(e){function t(e){var r;return(0,n.A)(this,t),(r=Vu(this,t,[e])).inputField=c().createRef(),r}return(0,l.A)(t,e),(0,r.A)(t,[{key:"render",value:function(){var e={type:"text",className:"form-control"};e.name=this.props.data.field_name,e.placeholder=this.props.data.placeholder,Object.assign(e,Gu(this.props.data)),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"),c().createElement("div",{style:Uu({},this.props.style),className:t},c().createElement(Eu,this.props),c().createElement("div",{className:"form-group"},c().createElement(Nu,this.props),c().createElement("input",e)))}}])}(c().Component),Ju=function(e){function t(e){var r;return(0,n.A)(this,t),(r=Vu(this,t,[e])).inputField=c().createRef(),r}return(0,l.A)(t,e),(0,r.A)(t,[{key:"render",value:function(){var e={type:"tel",className:"form-control"};e.name=this.props.data.field_name,e.placeholder=this.props.data.placeholder,Object.assign(e,Gu(this.props.data)),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"),c().createElement("div",{style:Uu({},this.props.style),className:t},c().createElement(Eu,this.props),c().createElement("div",{className:"form-group"},c().createElement(Nu,this.props),c().createElement("input",e)))}}])}(c().Component),ec=function(e){function t(e){var r;return(0,n.A)(this,t),(r=Vu(this,t,[e])).inputField=c().createRef(),r}return(0,l.A)(t,e),(0,r.A)(t,[{key:"render",value:function(){var e={type:"number",className:"form-control"};e.name=this.props.data.field_name,e.placeholder=this.props.data.placeholder,Object.assign(e,Gu(this.props.data)),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"),c().createElement("div",{style:Uu({},this.props.style),className:t},c().createElement(Eu,this.props),c().createElement("div",{className:"form-group"},c().createElement(Nu,this.props),c().createElement("input",e)))}}])}(c().Component),tc=function(e){function t(e){var r;return(0,n.A)(this,t),(r=Vu(this,t,[e])).inputField=c().createRef(),r}return(0,l.A)(t,e),(0,r.A)(t,[{key:"render",value:function(){var e={className:"form-control"};e.name=this.props.data.field_name,e.placeholder=this.props.data.placeholder,Object.assign(e,Gu(this.props.data)),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"),c().createElement("div",{style:Uu({},this.props.style),className:t},c().createElement(Eu,this.props),c().createElement("div",{className:"form-group"},c().createElement(Nu,this.props),c().createElement("textarea",e)))}}])}(c().Component),nc=function(e){function t(e){var r;return(0,n.A)(this,t),(r=Vu(this,t,[e])).inputField=c().createRef(),r}return(0,l.A)(t,e),(0,r.A)(t,[{key:"render",value:function(){var e={className:"form-control"};e.name=this.props.data.field_name;var t=this.props.data.placeholder;t&&(e.defaultValue=""),this.props.mutable&&(void 0!==this.props.defaultValue&&(e.defaultValue=this.props.defaultValue),e.ref=this.inputField),this.props.read_only&&(e.disabled="disabled");var n="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(n+=" alwaysbreak"),c().createElement("div",{style:Uu({},this.props.style),className:n},c().createElement(Eu,this.props),c().createElement("div",{className:"form-group"},c().createElement(Nu,this.props),c().createElement("select",e,t&&c().createElement("option",{value:"",disabled:!0,hidden:!0},t),this.props.data.options.map(function(e){var t="preview_".concat(e.key);return c().createElement("option",{value:e.value,key:t},e.text)}))))}}])}(c().Component),rc=function(e){function t(e){var r;return(0,n.A)(this,t),r=Vu(this,t,[e]),(0,Pt.A)(r,"clear",function(){r.state.defaultValue?r.setState({defaultValue:""}):r.canvas.current&&r.canvas.current.clear()}),r.state={defaultValue:e.defaultValue},r.inputField=c().createRef(),r.canvas=c().createRef(),r}return(0,l.A)(t,e),(0,r.A)(t,[{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),r.clearOnResize=!1;var i,o="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(o+=" alwaysbreak"),e&&e.length>0&&(i="data:image/png;base64,".concat(e)),c().createElement("div",{style:Uu({},this.props.style),className:o},c().createElement(Eu,this.props),c().createElement("div",{className:"form-group"},c().createElement(Nu,this.props),!0===this.props.read_only||i?c().createElement("img",{src:i}):c().createElement(Ga,r),t&&c().createElement("i",{className:"fas fa-times clear-signature",onClick:this.clear,title:"Clear Signature"}),c().createElement("input",n)))}}])}(c().Component),ic=function(e){function t(e){var r;(0,n.A)(this,t),r=Vu(this,t,[e]),(0,Pt.A)(r,"handleChange",function(e){r.setState({value:e||[]})}),r.inputField=c().createRef();var i=e.defaultValue,o=e.data;return r.state={value:r.getDefaultValue(i,o.options)},r}return(0,l.A)(t,e),(0,r.A)(t,[{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"),c().createElement("div",{style:Uu({},this.props.style),className:n},c().createElement(Eu,this.props),c().createElement("div",{className:"form-group"},c().createElement(Nu,this.props),c().createElement(Ba,t)))}}])}(c().Component),oc=function(e){function i(e){var t;return(0,n.A)(this,i),(t=Vu(this,i,[e])).options={},t}return(0,l.A)(i,e),(0,r.A)(i,[{key:"render",value:function(){var e=this,n=this,r="custom-control custom-checkbox";this.props.data.inline&&(r+=" option-inline");var i="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(i+=" alwaysbreak"),c().createElement("div",{style:Uu({},this.props.style),className:i},c().createElement(Eu,this.props),c().createElement("div",{className:"form-group"},c().createElement(Nu,this.props),this.props.data.options.map(function(i){var o="preview_".concat(i.key),a={};return a.name="option_".concat(i.key),a.type="checkbox",a.value=i.value,n.props.mutable&&(a.defaultChecked=void 0!==n.props.defaultValue&&(n.props.defaultValue.indexOf(i.key)>-1||n.props.defaultValue.indexOf(i.value)>-1)),e.props.read_only&&(a.disabled="disabled"),c().createElement("div",{className:r,key:o},c().createElement("input",(0,t.A)({id:"fid_".concat(o),className:"custom-control-input",ref:function(e){e&&n.props.mutable&&(n.options["child_ref_".concat(i.key)]=e)}},a)),c().createElement("label",{className:"custom-control-label",htmlFor:"fid_".concat(o)},i.text))})))}}])}(c().Component),ac=function(e){function i(e){var t;return(0,n.A)(this,i),t=Vu(this,i,[e]),(0,Pt.A)(t,"clickDetected",function(){t.props.onCheckboxClick&&t.props.onCheckboxClick(t.props.data)}),(0,Pt.A)(t,"handleLabelClick",function(){t.props.data&&t.props.data.hasPopUp&&t.clickDetected()}),t.inputField=c().createRef(),t}return(0,l.A)(i,e),(0,r.A)(i,[{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"),c().createElement("div",{style:Uu({},this.props.style),className:e},c().createElement(Eu,this.props),c().createElement("div",{className:"form-group"},c().createElement(Nu,(0,t.A)({passUpClick:this.clickDetected,className:"form-label"},this.props)),c().createElement("div",{className:"form-check"},c().createElement("input",(0,t.A)({className:"form-check-input",id:this.props.data.field_name,"aria-labelledby":"".concat(this.props.data.field_name,"__boxlabel")},n)),c().createElement("label",{id:"".concat(this.props.data.field_name,"__boxlabel"),className:"form-check-label",onClick:this.handleLabelClick,dangerouslySetInnerHTML:{__html:Mu(this.props,this.props.data.boxLabel)}}))))}}])}(c().Component),sc=function(e){function i(e){var t;return(0,n.A)(this,i),(t=Vu(this,i,[e])).options={},t}return(0,l.A)(i,e),(0,r.A)(i,[{key:"render",value:function(){var e=this,n=this,r="custom-control custom-radio";this.props.data.inline&&(r+=" option-inline");var i="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(i+=" alwaysbreak"),c().createElement("div",{style:Uu({},this.props.style),className:i},c().createElement(Eu,this.props),c().createElement("div",{className:"form-group"},c().createElement(Nu,this.props),this.props.data.options.map(function(i){var o="preview_".concat(i.key),a={};return a.name=n.props.data.field_name,a.type="radio",a.value=i.value,n.props.mutable&&(a.defaultChecked=void 0!==n.props.defaultValue&&(n.props.defaultValue.indexOf(i.key)>-1||n.props.defaultValue.indexOf(i.value)>-1)),e.props.read_only&&(a.disabled="disabled"),c().createElement("div",{className:r,key:o},c().createElement("input",(0,t.A)({id:"fid_".concat(o),className:"custom-control-input",ref:function(e){e&&n.props.mutable&&(n.options["child_ref_".concat(i.key)]=e)}},a)),c().createElement("label",{className:"custom-control-label",htmlFor:"fid_".concat(o)},i.text))})))}}])}(c().Component),lc=function(e){function t(){return(0,n.A)(this,t),Vu(this,t,arguments)}return(0,l.A)(t,e),(0,r.A)(t,[{key:"render",value:function(){var e=this.props.data.center?{textAlign:"center"}:null,t="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(t+=" alwaysbreak"),c().createElement("div",{style:Uu(Uu({},this.props.style),e),className:t},c().createElement(Eu,this.props),this.props.data.src&&c().createElement("img",{src:this.props.data.src,width:this.props.data.width,height:this.props.data.height}),!this.props.data.src&&c().createElement("div",{className:"no-image"},"No Image"))}}])}(c().Component),uc=function(e){function t(e){var r;return(0,n.A)(this,t),(r=Vu(this,t,[e])).inputField=c().createRef(),r}return(0,l.A)(t,e),(0,r.A)(t,[{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"),c().createElement("div",{style:Uu({},this.props.style),className:t},c().createElement(Eu,this.props),c().createElement("div",{className:"form-group"},c().createElement(Nu,this.props),c().createElement(Qa,e)))}}])}(c().Component),cc=function(e){function t(){return(0,n.A)(this,t),Vu(this,t,arguments)}return(0,l.A)(t,e),(0,r.A)(t,[{key:"render",value:function(){var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),c().createElement("div",{style:Uu({},this.props.style),className:e},c().createElement(Eu,this.props),c().createElement("div",{className:"form-group"},c().createElement("label",{className:"form-label"},c().createElement("a",{target:"_blank",href:this.props.data.href,dangerouslySetInnerHTML:{__html:Mu(this.props,Tu.process(this.props.data.content))}}))))}}])}(c().Component),dc=function(e){function t(){return(0,n.A)(this,t),Vu(this,t,arguments)}return(0,l.A)(t,e),(0,r.A)(t,[{key:"render",value:function(){var e="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(e+=" alwaysbreak"),c().createElement("div",{style:Uu({},this.props.style),className:e},c().createElement(Eu,this.props),c().createElement("div",{className:"form-group"},c().createElement("a",{href:"".concat(this.props.download_path,"?id=").concat(this.props.data.file_path)},this.props.data.content)))}}])}(c().Component),hc=function(e){function i(e){var t;return(0,n.A)(this,i),t=Vu(this,i,[e]),(0,Pt.A)(t,"displayImage",function(e){var n=t,r=e.target;r.files&&r.files.length&&n.setState({img:r.files[0],previewImg:URL.createObjectURL(r.files[0])})}),(0,Pt.A)(t,"clearImage",function(){t.setState({img:null,previewImg:null})}),t.state={img:null,previewImg:null},t}return(0,l.A)(i,e),(0,r.A)(i,[{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"},i="SortableItem rfb-item",o=this.props.data.field_name,a=this.state.img?{display:"none"}:null;return this.props.data.pageBreakBefore&&(i+=" alwaysbreak"),!0===this.props.read_only&&this.props.defaultValue&&this.props.defaultValue.length>0&&(e=this.props.defaultValue.indexOf(o>-1)?this.props.defaultValue:"data:image/png;base64,".concat(this.props.defaultValue)),c().createElement("div",{style:Uu({},this.props.style),className:i},c().createElement(Eu,this.props),c().createElement("div",{className:"form-group"},c().createElement(Nu,this.props),!0===this.props.read_only&&this.props.defaultValue&&this.props.defaultValue.length>0?c().createElement("div",null,c().createElement("img",(0,t.A)({style:r,src:e},this.getImageSizeProps(this.props.data)))):c().createElement("div",{className:"image-upload-container"},c().createElement("div",{style:a},c().createElement("input",{name:o,type:"file",accept:"image/*",capture:"camera",className:"image-upload",onChange:this.displayImage}),c().createElement("div",{className:"image-upload-control"},c().createElement("div",{className:"btn btn-default"},c().createElement("i",{className:"fas fa-camera"})," Upload Photo"),c().createElement("p",null,"Select an image from your computer or device."))),this.state.img&&c().createElement("div",null,c().createElement("img",{onLoad:function(){return URL.revokeObjectURL(n.state.previewImg)},src:this.state.previewImg,height:"100",className:"image-upload-preview"}),c().createElement("br",null),c().createElement("div",{className:"btn btn-image-clear",onClick:this.clearImage},c().createElement("i",{className:"fas fa-times"})," Clear Photo")))))}}])}(c().Component),pc=function(e){function t(e){var r;return(0,n.A)(this,t),r=Vu(this,t,[e]),(0,Pt.A)(r,"displayFileUpload",function(e){var t,n=r,i=e.target;i.files&&i.files.length>0&&(t=i.files[0],n.setState({fileUpload:t}))}),(0,Pt.A)(r,"clearFileUpload",function(){r.setState({fileUpload:null})}),(0,Pt.A)(r,"saveFile",function(){var e=(0,Vt.A)(Wt().mark(function e(t){var n,i,o,a,s,l,u;return Wt().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),n=r.props.defaultValue,e.next=1,Rn()(n,{method:"GET",headers:{Accept:"application/json","Content-Type":"application/json; charset=utf-8"},responseType:"blob"});case 1:return i=e.sent,o=i.headers.get("Content-Disposition"),e.next=2,i.blob();case 2:a=e.sent,s=new Blob([a],{type:r.props.data.fileType||i.headers.get("Content-Type")}),o&&o.indexOf(";filename=")>-1?(l=o.split(";filename=")[1],(0,Ln.saveAs)(s,l)):(u=n.substring(n.lastIndexOf("/")+1),(0,Ln.saveAs)(i.url,u));case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),r.state={fileUpload:null},r}return(0,l.A)(t,e),(0,r.A)(t,[{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"),c().createElement("div",{style:Uu({},this.props.style),className:e},c().createElement(Eu,this.props),c().createElement("div",{className:"form-group"},c().createElement(Nu,this.props),!0===this.props.read_only&&this.props.defaultValue&&this.props.defaultValue.length>0?c().createElement("div",null,c().createElement("button",{type:"button",className:"btn btn-default",onClick:this.saveFile},c().createElement("i",{className:"fas fa-download"})," Download File")):c().createElement("div",{className:"image-upload-container"},c().createElement("div",{style:n},c().createElement("input",{name:t,type:"file",accept:this.props.data.fileType||"*",className:"image-upload",onChange:this.displayFileUpload}),c().createElement("div",{className:"image-upload-control"},c().createElement("div",{className:"btn btn-default"},c().createElement("i",{className:"fas fa-file"})," Upload File"),c().createElement("p",null,"Select a file from your computer or device."))),this.state.fileUpload&&c().createElement("div",null,c().createElement("div",{className:"file-upload-preview"},c().createElement("div",{style:{display:"inline-block",marginRight:"5px"}},"Name: ".concat(this.state.fileUpload.name)),c().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"))),c().createElement("br",null),c().createElement("div",{className:"btn btn-file-upload-clear",onClick:this.clearFileUpload},c().createElement("i",{className:"fas fa-times"})," Clear File")))))}}])}(c().Component),fc=function(e){function t(e){var r;return(0,n.A)(this,t),r=Vu(this,t,[e]),(0,Pt.A)(r,"changeValue",function(e){var t=e.target;r.setState({value:t.value})}),r.inputField=c().createRef(),r.state={value:void 0!==e.defaultValue?parseInt(e.defaultValue,10):parseInt(e.data.default_value,10)},r}return(0,l.A)(t,e),(0,r.A)(t,[{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.change=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 i=100/(n.length-1),o=n.map(function(t,n){return c().createElement("option",{key:"".concat(e.list,"_").concat(n)},t)}),a=n.map(function(t,r){var o={},a=i;return 0!==r&&r!==n.length-1||(a=i/2),o.key="".concat(e.list,"_label_").concat(r),o.style={width:"".concat(a,"%")},r===n.length-1&&(o.style={width:"".concat(a,"%"),textAlign:"right"}),c().createElement("label",o,t)});this.props.read_only&&(e.disabled="disabled");var s="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(s+=" alwaysbreak"),c().createElement("div",{style:Uu({},this.props.style),className:s},c().createElement(Eu,this.props),c().createElement("div",{className:"form-group"},c().createElement(Nu,this.props),c().createElement("div",{className:"range"},c().createElement("div",{className:"clearfix"},c().createElement("span",{className:"float-left"},this.props.data.min_label),c().createElement("span",{className:"float-right"},this.props.data.max_label)),c().createElement(Ya(),e)),c().createElement("div",{className:"visible_marks"},a),c().createElement("input",{name:t,value:this.state.value,type:"hidden"}),c().createElement("datalist",{id:e.list},o)))}}])}(c().Component);Wu.Header=Yu,Wu.Paragraph=$u,Wu.Label=Xu,Wu.LineBreak=Ku,Wu.TextInput=Qu,Wu.EmailInput=Zu,Wu.PhoneNumber=Ju,Wu.NumberInput=ec,Wu.TextArea=tc,Wu.Dropdown=nc,Wu.Signature=rc,Wu.Checkboxes=oc,Wu.Checkbox=ac,Wu.DatePicker=Fu,Wu.RadioButtons=sc,Wu.Image=lc,Wu.Rating=uc,Wu.Tags=ic,Wu.HyperLink=cc,Wu.Download=dc,Wu.Camera=hc,Wu.FileUpload=pc,Wu.Range=fc;const mc=Wu;function gc(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 vc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gc(Object(n),!0).forEach(function(t){(0,Pt.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(yc=function(){return!!e})()}var bc=function(e){function a(e){var t;return(0,n.A)(this,a),t=function(e,t,n){return t=(0,o.A)(t),(0,i.A)(e,yc()?Reflect.construct(t,n||[],(0,o.A)(e).constructor):t.apply(e,n))}(this,a,[e]),t.inputField=c().createRef(),t}return(0,l.A)(a,e),(0,r.A)(a,[{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,i="SortableItem rfb-item";return this.props.data.pageBreakBefore&&(i+=" alwaysbreak"),c().createElement("div",{className:i,style:vc({},this.props.style)},c().createElement(Eu,this.props),e?c().createElement(r,(0,t.A)({data:this.props.data},this.props.data.props,n)):c().createElement("div",{className:"form-group"},c().createElement(Nu,(0,t.A)({className:"form-label"},this.props)),c().createElement(r,(0,t.A)({data:this.props.data},this.props.data.props,n))))}}])}(u.Component);bc.propTypes={};const wc=bc;var Ec=a(1857),_c=a.n(Ec),kc=["onDropSuccess","seq","parentIndex","items","col","getDataById","accepts","data","setAsChild"];function Tc(e){return{border:"1px solid rgba(0,0,0,0.2)",minHeight:"2rem",minWidth:"7rem",width:"100%",backgroundColor:e,padding:0,float:"left"}}const Cc=function(e){var n,r=e.onDropSuccess,i=(e.seq,e.parentIndex),o=e.items,a=e.col,s=e.getDataById,l=e.accepts,d=e.data,h=e.setAsChild,p=Xt(e,kc),f=(0,u.useRef)(null),m=s(o[a]),g=_n({accept:l,collect:function(e){return{isOver:e.isOver(),canDrop:e.canDrop(),draggedItem:e.getItem()}},drop:function(e){if(a!==e.col||o[a]!==e.id)if(void 0===e.col&&o[a])Ut.dispatch("resetLastItem");else if(!function(e){if(e.itemType!==kn){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}(e)){console.log("Item dropped",e);var t=!!o[a];if(e.data){var n=e.data.id?e.data:e.onCreate(e.data);"function"==typeof h&&h(d,n,a,t),r&&r(),Ut.dispatch("deleteLastItem")}}},canDrop:function(e){return!0}}),v=qt(g,2),y=v[0],b=y.isOver,w=y.canDrop,E=y.draggedItem,_=v[1],k=function(e,n){if(!e)return null;if(e.custom)return function(e,n){return e.component&&"function"==typeof e.component||(e.component=_c().get(e.key),e.component||console.error("".concat(e.element," was not registered"))),c().createElement(wc,(0,t.A)({},n,{mutable:!1,key:"form_".concat(e.id),data:e}))}(e,n);var r=mc[e.element||e.key];return c().createElement(r,(0,t.A)({},n,{key:"form_".concat(e.id),data:e}))}(m,p),T=!!E&&E.index===i,C="rgba(0, 0, 0, .03)";return T||!b||!w||!E||null!==(n=E.data)&&void 0!==n&&n.isContainer||(C="#F7F589"),_(f),c().createElement("div",{ref:f,style:Tc(T?"rgba(0, 0, 0, .03)":C)},!k&&c().createElement("span",null,"Drop your element here"),k)};var Ac=["data","class_name"],Oc=["data","class_name"],xc=["data"];function Sc(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 Dc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sc(Object(n),!0).forEach(function(t){(0,Pt.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ic(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ic=function(){return!!e})()}var Pc=[Tn,kn],Mc=function(e){function t(){return(0,n.A)(this,t),function(e,t,n){return t=(0,o.A)(t),(0,i.A)(e,Ic()?Reflect.construct(t,n||[],(0,o.A)(e).constructor):t.apply(e,n))}(this,t,arguments)}return(0,l.A)(t,e),(0,r.A)(t,[{key:"render",value:function(){var e=this.props,t=e.controls,n=e.data,r=e.editModeOn,i=e.getDataById,o=e.setAsChild,a=e.removeChild,s=e.seq,l=e.className,u=e.index,d=n.childItems,h="SortableItem rfb-item";return n.pageBreakBefore&&(h+=" alwaysbreak"),c().createElement("div",{style:Dc({},this.props.style),className:h},c().createElement(Eu,this.props),c().createElement("div",null,c().createElement(Nu,this.props),c().createElement("div",{className:"row"},d.map(function(e,h){return c().createElement("div",{key:"".concat(h,"_").concat(e||"_"),className:l},t?t[h]:c().createElement(Cc,{style:{width:"100%"},data:n,accepts:Pc,items:d,col:h,parentIndex:u,editModeOn:r,_onDestroy:function(){return a(n,h)},getDataById:i,setAsChild:o,seq:s}))}))))}}])}(c().Component),Nc=function(e){var n=e.data,r=e.class_name,i=Xt(e,Ac),o=r||"col-md-6";return n.childItems||(n.childItems=[null,null],n.isContainer=!0),c().createElement(Mc,(0,t.A)({},i,{className:o,data:n}))},Rc=function(e){var n=e.data,r=e.class_name,i=Xt(e,Oc),o=r||"col-md-4";return n.childItems||(n.childItems=[null,null,null],n.isContainer=!0),c().createElement(Mc,(0,t.A)({},i,{className:o,data:n}))},Lc=function(e){var n=e.data,r=Xt(e,xc),i=n.col_count||4,o=n.class_name||(4===i?"col-md-3":"col");return n.childItems||(n.childItems=Array.from({length:i},function(e,t){return null}),n.isContainer=!0),c().createElement(Mc,(0,t.A)({},r,{className:o,data:n}))},Hc=["data","class_name"];function Bc(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 Fc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bc(Object(n),!0).forEach(function(t){(0,Pt.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var jc=[Tn,kn];function Uc(e){var n=qt((0,u.useState)({}),2),r=n[0],i=n[1],o=qt((0,u.useState)(null),2),a=o[0],s=o[1];(0,u.useEffect)(function(){var t=e.data;e.class_name,Xt(e,Hc),i(t),l(1,t)},[e]);var l=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)},d=e.controls,h=e.editModeOn,p=e.getDataById,f=e.setAsChild,m=e.removeChild,g=e.seq,v=(e.className,e.index),y="SortableItem rfb-item";return r.pageBreakBefore&&(y+=" alwaysbreak"),c().createElement("div",{style:Fc({},e.style),className:y},c().createElement(Eu,(0,t.A)({},e,{isFieldSet:!0})),c().createElement("div",null,c().createElement(Nu,e),c().createElement("div",{className:"row"},null==a?void 0:a.map(function(t,n){return c().createElement("div",{key:"".concat(n,"_").concat(t||"_"),className:"col-md-12"},d?d[n]:c().createElement(Cc,{style:{width:"100%"},data:r,accepts:jc,items:a,key:n,col:n,onDropSuccess:function(){return t=n,void((a?a.length:0)===t+1&&(i=(r=e.data).childItems.length+1,o=r.childItems,r.childItems=Array.from({length:i},function(e,t){return o[t]?o[t]:null}),s(r.childItems)));var t,r,i,o},parentIndex:v,editModeOn:h,_onDestroy:function(){return m(r,n)},getDataById:p,setAsChild:f,seq:g,rowNo:n}))}))))}var Vc=mc.Header,zc=mc.Paragraph,qc=mc.Label,Gc=mc.LineBreak,Wc=mc.TextInput,Yc=mc.EmailInput,$c=mc.PhoneNumber,Xc=mc.NumberInput,Kc=mc.TextArea,Qc=mc.Dropdown,Zc=mc.Checkboxes,Jc=mc.DatePicker,ed=mc.RadioButtons,td=mc.Image,nd=mc.Rating,rd=mc.Tags,id=mc.Signature,od=mc.HyperLink,ad=mc.Download,sd=mc.Camera,ld=mc.Range,ud=mc.FileUpload,cd=mc.Checkbox,dd={};dd.Header=Dn(Vc),dd.Paragraph=Dn(zc),dd.Label=Dn(qc),dd.LineBreak=Dn(Gc),dd.TextInput=Dn(Wc),dd.EmailInput=Dn(Yc),dd.PhoneNumber=Dn($c),dd.NumberInput=Dn(Xc),dd.TextArea=Dn(Kc),dd.Dropdown=Dn(Qc),dd.Signature=Dn(id),dd.Checkboxes=Dn(Zc),dd.Checkbox=Dn(cd),dd.DatePicker=Dn(Jc),dd.RadioButtons=Dn(ed),dd.Image=Dn(td),dd.Rating=Dn(nd),dd.Tags=Dn(rd),dd.HyperLink=Dn(od),dd.Download=Dn(ad),dd.Camera=Dn(sd),dd.FileUpload=Dn(ud),dd.Range=Dn(ld),dd.PlaceHolder=Dn(Mn),dd.FieldSet=Dn(Uc),dd.TwoColumnRow=Dn(Nc),dd.ThreeColumnRow=Dn(Rc),dd.MultiColumnRow=Dn(Lc),dd.CustomElement=Dn(wc);const hd=dd;function pd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pd(Object(n),!0).forEach(function(t){(0,Pt.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var md={border:"1px dashed gray",padding:"0.5rem 1rem",cursor:"move"},gd={display:"inline-block",transform:"rotate(-7deg)",WebkitTransform:"rotate(-7deg)"},vd=function(e){var t=e.title,n=e.color?"#059862":"white";return c().createElement("div",{style:fd(fd({},md),{},{backgroundColor:n})},t)},yd=function(e){var t=e.item,n=qt((0,u.useState)(!1),2),r=n[0],i=(n[1],t.data.content?t.data.content:t.data.label?t.data.label:t.data.text),o=i.length>20?"".concat(i.slice(0,20),"..."):i;return c().createElement("div",{style:gd,role:"BoxPreview"},c().createElement(vd,{title:o,color:r}))},bd={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"};function wd(e,t){if(!e||!t)return{display:"none"};var n=t.x,r=t.y,i="translate(".concat(n,"px, ").concat(r,"px)");return{transform:i,WebkitTransform:i}}const Ed=function(){var e=function(){const e=dn().getMonitor(),[t,n]=en(e,function(e){return{item:e.getItem(),itemType:e.getItemType(),initialOffset:e.getInitialSourceClientOffset(),currentOffset:e.getSourceClientOffset(),isDragging:e.isDragging()}});return(0,u.useEffect)(()=>e.subscribeToOffsetChange(n)),(0,u.useEffect)(()=>e.subscribeToStateChange(n)),t}(),t=e.itemType,n=e.isDragging,r=e.item,i=e.initialOffset,o=e.currentOffset;return n?c().createElement("div",{style:bd},c().createElement("div",{style:wd(i,o)},t===Tn?c().createElement(yd,{item:r}):null)):null};function _d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_d(Object(n),!0).forEach(function(t){(0,Pt.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Td(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Td=function(){return!!e})()}var Cd=hd.PlaceHolder,Ad=function(e){function t(e){var r;(0,n.A)(this,t),r=function(e,t,n){return t=(0,o.A)(t),(0,i.A)(e,Td()?Reflect.construct(t,n||[],(0,o.A)(e).constructor):t.apply(e,n))}(this,t,[e]),(0,Pt.A)(r,"state",{data:[],answer_data:{}}),(0,Pt.A)(r,"registerDraftCommitter",function(e){return r.draftCommitter=e,function(){r.draftCommitter===e&&(r.draftCommitter=null)}}),(0,Pt.A)(r,"editModeOff",function(e){var t=r.editForm.current;if(t&&!t.contains(e.target)&&(!(n=e.target)||"function"!=typeof n.closest||!n.closest(".swal2-container, [data-rfb-keep-edit-open]"))){var n,i=r.draftCommitter;if(i){var o=document.activeElement;o&&o!==document.body&&t.contains(o)&&"function"==typeof o.blur&&(0,Mt.flushSync)(function(){return o.blur()}),!1!==i()&&r.manualEditModeOff()}else r.manualEditModeOff()}}),(0,Pt.A)(r,"manualEditModeOff",function(){var e=r.props.editElement;e&&e.dirty&&!r.draftCommitter&&(e.dirty=!1,r.updateElement(e)),r.props.manualEditModeOff()});var a=e.onLoad,s=e.onPost;return Ut.setExternalHandler(a,s),r.editForm=c().createRef(),r.state={data:e.data||[],answer_data:{}},r.seq=0,r._onUpdate=r._onChange.bind(r),r.getDataById=r.getDataById.bind(r),r.moveCard=r.moveCard.bind(r),r.moveItemBy=r.moveItemBy.bind(r),r.insertCard=r.insertCard.bind(r),r.setAsChild=r.setAsChild.bind(r),r.removeChild=r.removeChild.bind(r),r._onDestroy=r._onDestroy.bind(r),r}return(0,l.A)(t,e),(0,r.A)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.data,r=t.url,i=t.saveUrl,o=t.saveAlways;Ut.subscribe(function(t){return e._onUpdate(t.data)}),Ut.dispatch("load",{loadUrl:r,saveUrl:i,data:n||[],saveAlways:o}),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,i=t.length;r<i;r++)if(e.id===t[r].id){t[r]=e,n=!0;break}n&&(this.seq=this.seq>1e5?0:this.seq+1,Ut.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&&Ut.dispatch("delete",n)}),Ut.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 i=t.childItems[r],o=this.getDataById(i),a=n.col;return t.childItems[a]=i,o.col=a,t.childItems[r]=n.id,n.col=r,Ut.dispatch("updateOrder",e),!0}},{key:"setAsChild",value:function(e,t,n,r){var i=this.state.data;if(!this.swapChildren(i,e,t,n)&&!r){var o=this.getDataById(t.parentId),a=t.col;e.childItems[n]=t.id,t.col=n,t.parentId=e.id,t.parentIndex=i.indexOf(e),o&&(o.childItems[a]=null);var s=i.filter(function(t){return t&&t.parentId===e.id}).filter(function(t){return-1===e.childItems.indexOf(t.id)}),l=i;s.length&&(l=i.filter(function(e){return-1===s.indexOf(e)})),this.getDataById(t.id)||l.push(t),Ut.dispatch("updateOrder",l)}}},{key:"removeChild",value:function(e,t){var n=this.state.data,r=e.childItems[t],i=this.getDataById(r);if(i){var o=n.filter(function(e){return e!==i});e.childItems[t]=null,this.seq=this.seq>1e5?0:this.seq+1,Ut.dispatch("updateOrder",o),this.setState({data:o})}}},{key:"restoreCard",value:function(e,t){var n=this.state.data,r=this.getDataById(e.data.parentId),i=this.getDataById(t);if(r&&i){var o=n.indexOf(i),a=(0,It.A)(n);r.childItems[i.col]=null,delete i.parentId,delete e.setAsChild,delete e.parentIndex,e.index=o,this.seq=this.seq>1e5?0:this.seq+1,Ut.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),Ut.dispatch("insertItem",e))}},{key:"moveCard",value:function(e,t){var n=this.state.data[e];void 0!==n&&this.saveData(n,e,t)}},{key:"moveItemBy",value:function(e,t){var n=this.state.data,r=n.map(function(e,t){return e&&!e.parentId?t:-1}).filter(function(e){return-1!==e}),i=r.findIndex(function(t){return n[t].id===e}),o=i+t;if(!(-1===i||o<0||o>=r.length)){var a=n.slice(),s=r[i],l=r[o],u=[a[l],a[s]];a[s]=u[0],a[l]=u[1],this.setState({data:a}),Ut.dispatch("updateOrder",a)}}},{key:"cardPlaceHolder",value:function(e,t){}},{key:"saveData",value:function(e,t,n){var r=Rt()(this.state,{data:{$splice:[[t,1],[n,0,e]]}});this.setState(r),Ut.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=hd[e.element];return null===n?null:c().createElement(n,{id:e.id,seq:this.seq,index:t,moveCard:this.moveCard,moveItemBy:this.moveItemBy,isFirst:0===t,isLast:t===this.topCount-1,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,registerDraftCommitter:this.registerDraftCommitter,preview:this,element:this.props.editElement,updateElement:t};return this.props.renderEditForm(kd(kd({},n),{},{renderRichTextEditor:this.props.renderRichTextEditor,onImageUpload:this.props.onImageUpload}))}},{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});this.topCount=n.length;var r=n.map(function(t,n){return e.getElement(t,n)});return c().createElement("div",{className:t},c().createElement("div",{className:"edit-form",ref:this.editForm},null!==this.props.editElement&&this.showEditForm()),c().createElement("div",{className:"Sortable"},r),c().createElement(Cd,{id:"form-place-holder",show:0===r.length,index:r.length,moveCard:this.cardPlaceHolder,insertCard:this.insertCard}),c().createElement(Ed,null))}}])}(c().Component);Ad.defaultProps={showCorrectColumn:!1,files:[],editMode:!1,editElement:null,className:"col-md-9 react-form-builder-preview float-left",renderEditForm:function(e){return c().createElement(Yt,e)}};var Od=a(7654),xd=a.n(Od);const Sd=function(e){var t=e.data,n=e.onCreate,r=e.onClick,i=qt(gn({type:kn,item:function(){return{id:xd().uuid(),index:-1,data:t,onCreate:n}},collect:function(e){return{isDragging:e.isDragging()}}}),2),o=i[0].isDragging,a=i[1],s=o?.5:1;return c().createElement("li",{ref:a,onClick:r,style:{opacity:s,cursor:"move"}},c().createElement("i",{className:t.icon}),t.name)},Dd=function(e){var t=e.name,n=e.group,r=e.renderItem,i=qt((0,u.useState)(!1),2),o=i[0],a=i[1],s="collapse"+(o?" show":"");return c().createElement("li",null,c().createElement("div",{className:"toolbar-group-item"},c().createElement("button",{className:"btn btn-link btn-block text-left",type:"button",onClick:function(){a(!o)}},t),c().createElement("div",{className:s},c().createElement("ul",null,n.map(r)))))};function Id(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Id=function(){return!!e})()}function Pd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Md(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pd(Object(n),!0).forEach(function(t){(0,Pt.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Nd=function(e){function t(e){var r;(0,n.A)(this,t),r=function(e,t,n){return t=(0,o.A)(t),(0,i.A)(e,Id()?Reflect.construct(t,n||[],(0,o.A)(e).constructor):t.apply(e,n))}(this,t,[e]),(0,Pt.A)(r,"renderItem",function(e){return c().createElement(Sd,{data:e,key:e.key,onClick:r._onClick.bind(r,e),onCreate:r.create})});var a=r.props.intl,s=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=Md(Md({},n),e):e.group_name&&(n.group_name=e.group_name)),n||e}):t}(e.items,r._defaultItems(a));return r.state={items:s},r.create=r.create.bind(r),r}return(0,l.A)(t,e),(0,r.A)(t,[{key:"componentDidMount",value:function(){var e=this;Ut.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=Md(Md({},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 n=this.props.intl,r=e.element||e.key,i=this.addCustomOptions(e,{id:xd().uuid(),element:r,text:e.name,group_name:e.group_name,static:e.static,required:!1,showDescription:e.showDescription});return!0!==this.props.showDescription||e.static||(i.showDescription=!0),-1!==["NumberInput","EmailInput","TextInput","PhoneNumber","TextArea","DatePicker","Dropdown"].indexOf(r)&&(i.showPlaceholder=!0,void 0!==e.placeholder&&(i.placeholder=e.placeholder)),"custom"===e.type&&(i.key=e.key,i.custom=!0,i.forwardRef=e.forwardRef,i.bare=e.bare,i.props=e.props,i.component=e.component||null,i.custom_options=e.custom_options||[]),e.static&&(i.bold=!1,i.italic=!1),i.show_custom_name=e.show_custom_name,i.hide_display_label=e.hide_display_label,i.custom_name=e.custom_name,i.hide_required=e.hide_required,e.canHaveAnswer&&(i.canHaveAnswer=e.canHaveAnswer),e.canReadOnly&&(i.readOnly=!1),e.canDefaultToday&&(i.defaultToday=!1),e.content&&(i.content=e.content),e.href&&(i.href=e.href),void 0!==e.inherited&&(i.inherited=e.inherited),i.canHavePageBreakBefore=!1!==e.canHavePageBreakBefore,i.canHaveAlternateForm=!1!==e.canHaveAlternateForm,i.canHaveDisplayHorizontal=!1!==e.canHaveDisplayHorizontal,i.canHaveDisplayHorizontal&&(i.inline=e.inline),i.canHaveOptionCorrect=!1!==e.canHaveOptionCorrect,i.canHaveOptionValue=!1!==e.canHaveOptionValue,i.canPopulateFromApi=!1!==e.canPopulateFromApi,e.class_name&&(i.class_name=e.class_name),"Image"===r&&(i.src=e.src),"DatePicker"===r&&(i.dateFormat=e.dateFormat,i.timeFormat=e.timeFormat,i.showTimeSelect=e.showTimeSelect,i.showTimeSelectOnly=e.showTimeSelectOnly,i.showTimeInput=e.showTimeInput),"Download"===r&&(i._href=e._href,i.file_path=e.file_path),"Range"===r&&(i.step=e.step,i.default_value=e.default_value,i.min_value=e.min_value,i.max_value=e.max_value,i.min_label=e.min_label,i.max_label=e.max_label),"MultiColumnRow"===r&&(i.col_count=e.col_count),e.defaultValue&&(i.defaultValue=e.defaultValue),e.field_name&&(i.field_name=e.field_name+xd().uuid()),e.label&&(i.label=e.label),e.options&&(e.options.length>0?i.options=e.options.map(function(e){return Md(Md({},e),{},{key:"custom_option_".concat(xd().uuid())})}):i.options=t._defaultItemOptions(i.element,n)),i}},{key:"_onClick",value:function(e){Ut.dispatch("create",this.create(e))}},{key:"render",value:function(){var e=this,t=function(e){var t,n,r,i=e.filter(function(e){return!e.group_name}),o=e.filter(function(e){return!!e.group_name}),a=(t=o,n=function(e){return e.group_name},r=new Map,t.forEach(function(e){var t=n(e),i=r.get(t);i?i.push(e):r.set(t,[e])}),r),s=o.map(function(e){return e.group_name}).filter(function(e,t,n){return n.indexOf(e)===t});return{items:i,grouped:a,groupKeys:s}}(this.state.items),n=t.items,r=t.grouped,i=t.groupKeys;return c().createElement("div",{className:"col-md-3 react-form-builder-toolbar float-right"},c().createElement("h4",null,this.props.intl.formatMessage({id:"toolbox"})),c().createElement("ul",null,n.map(this.renderItem),i.map(function(t){return c().createElement(Dd,{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(xd().uuid())},{value:"place_holder_option_2",text:t.formatMessage({id:"place-holder-option-2"}),key:"dropdown_option_".concat(xd().uuid())},{value:"place_holder_option_3",text:t.formatMessage({id:"place-holder-option-3"}),key:"dropdown_option_".concat(xd().uuid())}];case"Tags":return[{value:"place_holder_tag_1",text:t.formatMessage({id:"place-holder-tag-1"}),key:"tags_option_".concat(xd().uuid())},{value:"place_holder_tag_2",text:t.formatMessage({id:"place-holder-tag-2"}),key:"tags_option_".concat(xd().uuid())},{value:"place_holder_tag_3",text:t.formatMessage({id:"place-holder-tag-3"}),key:"tags_option_".concat(xd().uuid())}];case"Checkboxes":return[{value:"place_holder_option_1",text:t.formatMessage({id:"place-holder-option-1"}),key:"checkboxes_option_".concat(xd().uuid())}];case"RadioButtons":return[{value:"place_holder_option_1",text:t.formatMessage({id:"place-holder-option-1"}),key:"radiobuttons_option_".concat(xd().uuid())},{value:"place_holder_option_2",text:t.formatMessage({id:"place-holder-option-2"}),key:"radiobuttons_option_".concat(xd().uuid())},{value:"place_holder_option_3",text:t.formatMessage({id:"place-holder-option-3"}),key:"radiobuttons_option_".concat(xd().uuid())}];default:return[]}}}])}(c().Component);const Rd=(0,Ot.Ay)(Nd);var Ld=a(2881),Hd=a(8886);function Bd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Bd=function(){return!!e})()}var Fd=new(ku().FilterXSS)({whiteList:{u:[],br:[],b:[],i:[],ol:["style"],ul:["style"],li:[],p:["style"],sub:[],sup:[],div:["style"],em:[],strong:[],span:["style"]}}),jd=function(e){function t(e){var r;return(0,n.A)(this,t),r=function(e,t,n){return t=(0,o.A)(t),(0,i.A)(e,Bd()?Reflect.construct(t,n||[],(0,o.A)(e).constructor):t.apply(e,n))}(this,t,[e]),r.state={errors:[]},r}return(0,l.A)(t,e),(0,r.A)(t,[{key:"componentDidMount",value:function(){var e=this;this.subscription=this.props.emitter.addListener("formValidation",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 c().createElement("li",{key:"error_".concat(t),dangerouslySetInnerHTML:{__html:Fd.process(e)}})});return c().createElement("div",null,this.state.errors.length>0&&c().createElement("div",{className:"alert alert-danger validation-error"},c().createElement("div",{className:"clearfix"},c().createElement("i",{className:"fas fa-exclamation-triangle float-left"}),c().createElement("ul",{className:"float-left"},e)),c().createElement("div",{className:"clearfix"},c().createElement("a",{className:"float-right btn btn-default btn-sm btn-danger",onClick:this.dismissModal.bind(this)},c().createElement(Hd.A,{id:"dismiss"})))))}}])}(c().Component);function Ud(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ud=function(){return!!e})()}var Vd=mc.Image,zd=mc.Checkboxes,qd=mc.Signature,Gd=mc.Download,Wd=mc.Camera,Yd=mc.FileUpload,$d=function(e){function a(e){var t;return(0,n.A)(this,a),t=function(e,t,n){return t=(0,o.A)(t),(0,i.A)(e,Ud()?Reflect.construct(t,n||[],(0,o.A)(e).constructor):t.apply(e,n))}(this,a,[e]),(0,Pt.A)(t,"form",void 0),(0,Pt.A)(t,"inputs",{}),(0,Pt.A)(t,"answerData",void 0),(0,Pt.A)(t,"_getOptionKeyValue",function(e){return"value"===t.props.option_key_value?e.value:e.key}),(0,Pt.A)(t,"handleRenderSubmit",function(){var e=t.props.action_name||t.props.actionName||"Submit",n=t.props.submitButton;return void 0!==n&&n||c().createElement("input",{type:"submit",className:"btn btn-big",value:e})}),(0,Pt.A)(t,"handleRenderBack",function(){var e=t.props.back_name||t.props.backName||"Cancel",n=t.props.backButton;return void 0!==n&&n||c().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 Ld.EventEmitter,t.getDataById=t.getDataById.bind(t),t.handleBlur=t.handleBlur.bind(t),t.handleChange=t.handleChange.bind(t),t.handleSubmit=t.handleSubmit.bind(t),t}return(0,l.A)(a,e),(0,r.A)(a,[{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,n){var r={element:e.element,value:""};return"Rating"===e.element?r.value=t.inputField.current.state.rating:"Tags"===e.element?r.value=t.inputField.current.state.value:"DatePicker"===e.element?r.value=t.state.value:"Camera"===e.element?r.value=t.state.img:"FileUpload"===e.element?r.value=t.state.fileUpload:t&&t.inputField&&t.inputField.current&&(r=t.inputField.current,n&&r&&"string"==typeof r.value&&(r.value=r.value.trim())),r}},{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=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){n.options["child_ref_".concat(e.key)].checked&&(r+=1)}),r<1&&(t=!0)}else{var i=this._getItemValue(e,n);"Rating"===e.element?0===i.value&&(t=!0):(void 0===i.value||i.value.length<1)&&(t=!0)}}return t}},{key:"_collect",value:function(e,t){var n=this,r={id:e.id,name:e.field_name,custom_name:e.custom_name||e.field_name};if(!r.name)return null;var i=this.inputs[e.field_name];if("Checkboxes"===e.element||"RadioButtons"===e.element){var o=[];e.options.forEach(function(e){i.options["child_ref_".concat(e.key)].checked&&o.push(n._getOptionKeyValue(e))}),r.value=o}else if("Checkbox"===e.element)i&&i.inputField&&i.inputField.current?r.value=i.inputField.current.checked:r.value=!1;else{if(!i)return null;r.value=this._getItemValue(e,i,t).value}return r.required=e.required||!1,r}},{key:"_collectFormData",value:function(e,t){var n=this,r=[];return e.forEach(function(e){var i=n._collect(e,t);i&&r.push(i)}),r}},{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,",""),i=n.isEmpty();t.inputField.current.value=i?"":r}}},{key:"handleSubmit",value:function(e){e.preventDefault();var t=[];if(this.props.skip_validations||(t=this.validateForm(),this.emitter.emit("formValidation",t)),t.length<1){var n=this.props.onSubmit;n?n(this._collectFormData(this.props.data,!0)):this.form.submit()}}},{key:"handleBlur",value:function(){this.props.onBlur&&(0,this.props.onBlur)(this._collectFormData(this.props.data,!0))}},{key:"handleChange",value:function(){this.props.onChange&&(0,this.props.onChange)(this._collectFormData(this.props.data,!1))}},{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)){var i=n.label&&n.label.trim()||n.placeholder||n.field_name;t.push("".concat(i," ").concat(r.formatMessage({id:"message.is-required"}),"!"))}if("EmailInput"===n.element){var o=e.inputs[n.field_name],a=e._getItemValue(n,o).value;a&&(a.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 s=e.inputs[n.field_name],l=e._getItemValue(n,s).value;l&&(l.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=mc[e.element],r={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)};return"Checkbox"===e.element&&(r.onCheckboxClick=this.props.onCheckboxClick),c().createElement(n,r)}},{key:"getContainerElement",value:function(e,t){var n=this,r=e.childItems.map(function(e){return e?n.getInputElement(n.getDataById(e)):c().createElement("div",null," ")});return c().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=mc[e.element];return c().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=_c().get(e.key),e.component||console.error("".concat(e.element," ").concat(r.formatMessage({id:"message.was-not-registered"}))));var i=e.forwardRef&&{handleChange:this.handleChange,defaultValue:this._getDefaultValue(e),ref:function(t){return n.inputs[e.field_name]=t}};return c().createElement(wc,(0,t.A)({mutable:!0,read_only:this.props.read_only,hide_required_alert:this.props.hide_required_alert,key:"form_".concat(e.id),data:e},i))}},{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,Lc);case"ThreeColumnRow":return e.getContainerElement(t,Rc);case"TwoColumnRow":return e.getContainerElement(t,Nc);case"FieldSet":return e.getContainerElement(t,Uc);case"Signature":return c().createElement(qd,{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 c().createElement(zd,{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 c().createElement(Vd,{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 c().createElement(Gd,{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 c().createElement(Wd,{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 c().createElement(Yd,{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 c().createElement("div",null,c().createElement(jd,{emitter:this.emitter}),c().createElement("div",{className:"react-form-builder-form"},c().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&&c().createElement("div",{style:{display:"none"}},c().createElement("input",{name:"utf8",type:"hidden",value:"✓"}),c().createElement("input",{name:"authenticity_token",type:"hidden",value:this.props.authenticity_token}),c().createElement("input",{name:"task_id",type:"hidden",value:this.props.task_id})),n,c().createElement("div",{className:"btn-toolbar"},!this.props.hide_actions&&this.handleRenderSubmit(),!this.props.hide_actions&&this.props.back_action&&this.handleRenderBack()))))}}])}(c().Component);const Xd=(0,Ot.Ay)($d);function Kd(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}$d.defaultProps={validateForCorrectness:!1};var Qd={messages:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kd(Object(n),!0).forEach(function(t){(0,Pt.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kd(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-has-popup":"Make Pop Up","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"};const Zd=Qd;function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var eh={messages:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jd(Object(n),!0).forEach(function(t){(0,Pt.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jd(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"};const th=eh;function nh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var rh={messages:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nh(Object(n),!0).forEach(function(t){(0,Pt.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nh(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"};const ih=rh;function oh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var ah={messages:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oh(Object(n),!0).forEach(function(t){(0,Pt.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},JSON.parse('{"display-label":"برچسب نمایش","choose-file":"انتخاب فایل","choose-file-type":"انتخاب نوع فایل","select-file-type":"انتخاب نوع فایل","text-to-display":"متن برای نمایش","link-to":"لینک به","center":"مرکز","width":"عرض","height":"ارتفاع","required":"الزامی","read-only":"فقط خواندنی","default-to-today":"پیشفرض به امروز","show-time-select":"نمایش انتخاب زمان","show-time-select-only":"فقط نمایش انتخاب زمان","show-time-input":"نمایش ورودی زمان","display-horizontal":"نمایش افقی","variable-key":"کلید متغیر","variable-key-desc":"این عنصر را به کلیدی تبدیل میکند که میتواند با یک مقدار زمان اجرا جایگزین شود","print-options":"گزینههای پرینت","page-break-before-elements":"شکست صفحه قبل از عنصر","alternate-signature-page":"صفحه امضا/جایگزین","display-on-alternate-signature-page":"نمایش در صفحه امضا/جایگزین","step":"گام","min":"حداقل","max":"حداکثر","default-selected":"پیشفرض انتخاب شده","text-style":"سبک متن","bold":"پررنگ","italic":"ایتالیک","description":"توضیحات","correct-answer":"پاسخ صحیح","populate-options-from-api":"پر کردن گزینهها از API","populate":"پر کردن","pdf":"PDF","word":"Word","excel":"Excel","ppt":"PPT","options":"گزینهها","value":"مقدار","correct":"صحیح","dismiss":"رد کردن","place-holder-option-1":"گزینه جایگزین 1","place-holder-option-2":"گزینه جایگزین 2","place-holder-option-3":"گزینه جایگزین 3","place-holder-tag-1":"برچسب جایگزین 1","place-holder-tag-2":"برچسب جایگزین 2","place-holder-tag-3":"برچسب جایگزین 3","toolbox":"جعبه ابزار","header-text":"متن سرصفحه","label":"برچسب","paragraph":"پاراگراف","line-break":"شکست خط","dropdown":"منوی کشویی","tags":"برچسبها","checkboxes":"چک باکسها","multiple-choice":"چند گزینهای","text-input":"ورودی متن","email-input":"ایمیل","phone-input":"شماره تلفن","number-input":"ورودی عدد","multi-line-input":"ورودی چند خطی","fieldset":"مجموعه فیلد","two-columns-row":"ردیف دو ستونی","three-columns-row":"ردیف سه ستونی","four-columns-row":"ردیف چهار ستونی","five-columns-row":"ردیف پنج ستونی","six-columns-row":"ردیف شش ستونی","image":"تصویر","rating":"رتبهبندی","date":"تاریخ","signature":"امضا","website":"وبسایت","file-attachment":"پیوست فایل","range":"محدوده","camera":"دوربین","file-upload":"بارگذاری فایل","place-holder-text":"متن جایگزین...","place-holder-label":"برچسب جایگزین","place-holder-website-link":"لینک وبسایت جایگزین...","place-holder-file-name":"نام فایل جایگزین...","place-holder-email":"ایمیل","place-holder-phone-number":"شماره تلفن","easy":"آسان","difficult":"دشوار","drop-zone":"منطقه رها کردن","message.is-required":"الزامی است","message.was-answered-incorrectly":"به اشتباه پاسخ داده شد","message.was-not-registered":"ثبت نشد","message.invalid-email":"فیلد نیاز به آدرس ایمیل معتبر دارد","message.invalid-phone-number":"فیلد نیاز به شماره تلفن معتبر دارد"}')),locale:"fa-IR"};const sh={en:Zd,vi:ih,it:th,fa:ah};function lh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(lh=function(){return!!e})()}var uh=function(e){function a(e){var t;return(0,n.A)(this,a),t=function(e,t,n){return t=(0,o.A)(t),(0,i.A)(e,lh()?Reflect.construct(t,n||[],(0,o.A)(e).constructor):t.apply(e,n))}(this,a,[e]),t.state={editMode:!1,editElement:null},t.editModeOn=t.editModeOn.bind(t),t}return(0,l.A)(a,e),(0,r.A)(a,[{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=sh[n];return this.props.toolbarItems&&(e.items=this.props.toolbarItems),c().createElement(ke,{backend:qe,context:window},c().createElement(Dt,{locale:r.locale,messages:r.messages},c().createElement("div",null,c().createElement("div",{className:"react-form-builder clearfix",onKeyDown:h},c().createElement("div",null,c().createElement(Ad,{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:_c(),editElement:this.state.editElement,renderEditForm:this.props.renderEditForm,saveAlways:this.props.saveAlways,renderRichTextEditor:this.props.renderRichTextEditor,onImageUpload:this.props.onImageUpload}),c().createElement(Rd,(0,t.A)({},e,{customItems:this.props.customToolbarItems})))))))}}])}(c().Component);function ch(e){var n=e.locale?e.locale:"en",r=sh[n];return c().createElement(Dt,{locale:r.locale,messages:r.messages},c().createElement(Xd,(0,t.A)({},e,{onCheckboxClick:function(t){e.onCheckboxClick&&e.onCheckboxClick(t)}})))}var dh={};dh.ReactFormBuilder=uh,dh.ReactFormGenerator=ch,dh.ElementStore=Ut,dh.Registry=_c();const hh=dh})(),s})());
|