aldehyde 0.2.99 → 0.2.100

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.
Files changed (190) hide show
  1. package/dist/bundle.021f784b1c84781461d2.js +1 -0
  2. package/dist/bundle.03c542ca824e205fe307.js +2 -0
  3. package/dist/bundle.03c542ca824e205fe307.js.LICENSE.txt +27 -0
  4. package/dist/bundle.03c542ca824e205fe307.js.gz +0 -0
  5. package/dist/bundle.15cb660c34802f6cccf5.js +1 -0
  6. package/dist/bundle.15cb660c34802f6cccf5.js.gz +0 -0
  7. package/dist/bundle.2f9c2d692fe0277a37aa.js +2 -0
  8. package/dist/bundle.2f9c2d692fe0277a37aa.js.LICENSE.txt +1 -0
  9. package/dist/bundle.2f9c2d692fe0277a37aa.js.gz +0 -0
  10. package/dist/bundle.320c02187dd135005102.js +2 -0
  11. package/dist/bundle.320c02187dd135005102.js.LICENSE.txt +6 -0
  12. package/dist/bundle.320c02187dd135005102.js.gz +0 -0
  13. package/dist/bundle.35a4af7e2d0da1942d79.js +10 -0
  14. package/dist/bundle.35a4af7e2d0da1942d79.js.gz +0 -0
  15. package/dist/bundle.3f9072b1629cdb384b46.js +2 -0
  16. package/dist/bundle.3f9072b1629cdb384b46.js.LICENSE.txt +5 -0
  17. package/dist/bundle.3f9072b1629cdb384b46.js.gz +0 -0
  18. package/dist/bundle.46e2295b5360a725bcd5.js +1 -0
  19. package/dist/bundle.46e2295b5360a725bcd5.js.gz +0 -0
  20. package/dist/bundle.4c3c988531c3cf360b87.js +1 -0
  21. package/dist/bundle.4c3c988531c3cf360b87.js.gz +0 -0
  22. package/dist/bundle.4df89546fd2e9d665dfb.js +2 -0
  23. package/dist/bundle.4df89546fd2e9d665dfb.js.LICENSE.txt +5 -0
  24. package/dist/bundle.4df89546fd2e9d665dfb.js.gz +0 -0
  25. package/dist/bundle.5a9afb9ee6cceca506fa.js +5 -0
  26. package/dist/bundle.5a9afb9ee6cceca506fa.js.LICENSE.txt +10 -0
  27. package/dist/bundle.5a9afb9ee6cceca506fa.js.gz +0 -0
  28. package/dist/bundle.5e6cccd06b34a0e3a2ff.js +1 -0
  29. package/dist/bundle.5e6cccd06b34a0e3a2ff.js.gz +0 -0
  30. package/dist/bundle.62c62e6aaa7f3c20761e.js +2 -0
  31. package/dist/bundle.62c62e6aaa7f3c20761e.js.LICENSE.txt +17 -0
  32. package/dist/bundle.62c62e6aaa7f3c20761e.js.gz +0 -0
  33. package/dist/bundle.6fd2dadd29083268c5a6.js +2 -0
  34. package/dist/bundle.6fd2dadd29083268c5a6.js.LICENSE.txt +17 -0
  35. package/dist/bundle.6fd2dadd29083268c5a6.js.gz +0 -0
  36. package/dist/bundle.8241d8d05e35988dd480.js +1 -0
  37. package/dist/bundle.8241d8d05e35988dd480.js.gz +0 -0
  38. package/dist/bundle.829683dfa6a98c78c58e.js +2 -0
  39. package/dist/bundle.829683dfa6a98c78c58e.js.LICENSE.txt +14 -0
  40. package/dist/bundle.829683dfa6a98c78c58e.js.gz +0 -0
  41. package/dist/bundle.840e28984e710e12f467.js +75 -0
  42. package/dist/bundle.840e28984e710e12f467.js.LICENSE.txt +8 -0
  43. package/dist/bundle.840e28984e710e12f467.js.gz +0 -0
  44. package/dist/bundle.85ce5221fe6ab1d91f7d.js +2 -0
  45. package/dist/bundle.85ce5221fe6ab1d91f7d.js.LICENSE.txt +1 -0
  46. package/dist/bundle.85ce5221fe6ab1d91f7d.js.gz +0 -0
  47. package/dist/bundle.9cfd99a04bde7f781c30.js +1 -0
  48. package/dist/bundle.9cfd99a04bde7f781c30.js.gz +0 -0
  49. package/dist/bundle.a049dc8814bbbf59160f.js +1 -0
  50. package/dist/bundle.a049dc8814bbbf59160f.js.gz +0 -0
  51. package/dist/bundle.a94f7811fac19aa9d6a3.js +2 -0
  52. package/dist/bundle.a94f7811fac19aa9d6a3.js.LICENSE.txt +1 -0
  53. package/dist/bundle.a94f7811fac19aa9d6a3.js.gz +0 -0
  54. package/dist/bundle.abdde6e82ee9f60d1bf3.js +2 -0
  55. package/dist/bundle.abdde6e82ee9f60d1bf3.js.LICENSE.txt +30 -0
  56. package/dist/bundle.abdde6e82ee9f60d1bf3.js.gz +0 -0
  57. package/dist/bundle.b207a66d5902f39d0c5a.js +1 -0
  58. package/dist/bundle.b207a66d5902f39d0c5a.js.gz +0 -0
  59. package/dist/bundle.b7b86a025aa95dea0e19.js +2 -0
  60. package/dist/bundle.b7b86a025aa95dea0e19.js.LICENSE.txt +8 -0
  61. package/dist/bundle.b7b86a025aa95dea0e19.js.gz +0 -0
  62. package/dist/bundle.b7e3eb480b649b3de67b.js +2 -0
  63. package/dist/bundle.b7e3eb480b649b3de67b.js.LICENSE.txt +5 -0
  64. package/dist/bundle.b7e3eb480b649b3de67b.js.gz +0 -0
  65. package/dist/bundle.c1c6028fd703ebf78c2e.js +2 -0
  66. package/dist/bundle.c1c6028fd703ebf78c2e.js.LICENSE.txt +5 -0
  67. package/dist/bundle.c1c6028fd703ebf78c2e.js.gz +0 -0
  68. package/dist/bundle.cd10ae07e0e0c36d0dee.js +2 -0
  69. package/dist/bundle.cd10ae07e0e0c36d0dee.js.LICENSE.txt +22 -0
  70. package/dist/bundle.cd10ae07e0e0c36d0dee.js.gz +0 -0
  71. package/dist/bundle.cf6a1933769c2aee4e6e.js +1 -0
  72. package/dist/bundle.cf6a1933769c2aee4e6e.js.gz +0 -0
  73. package/dist/bundle.d158d417d1d7a8acb2a1.js +1 -0
  74. package/dist/bundle.d158d417d1d7a8acb2a1.js.gz +0 -0
  75. package/dist/bundle.db40aa107272f4303ece.js +1 -0
  76. package/dist/bundle.db40aa107272f4303ece.js.gz +0 -0
  77. package/dist/bundle.ddefe6d8f235ef95d470.js +1 -0
  78. package/dist/bundle.ddefe6d8f235ef95d470.js.gz +0 -0
  79. package/dist/bundle.e02a7a16b4a6b3bb412f.js +2 -0
  80. package/dist/bundle.e02a7a16b4a6b3bb412f.js.LICENSE.txt +16 -0
  81. package/dist/bundle.e02a7a16b4a6b3bb412f.js.gz +0 -0
  82. package/dist/bundle.e760a70171cf0ae4567b.js +1 -0
  83. package/dist/bundle.e760a70171cf0ae4567b.js.gz +0 -0
  84. package/dist/bundle.f3ce062a620fe456c152.js +1 -0
  85. package/dist/bundle.f6e1c4fda58154810fe2.js +2 -0
  86. package/dist/bundle.f6e1c4fda58154810fe2.js.LICENSE.txt +41 -0
  87. package/dist/bundle.f6e1c4fda58154810fe2.js.gz +0 -0
  88. package/dist/bundle.fe9c09b8ace9c3117b0a.js +1 -0
  89. package/dist/bundle.fe9c09b8ace9c3117b0a.js.gz +0 -0
  90. package/dist/bundle.feaa17bec2057a4ee54f.js +1 -0
  91. package/dist/bundle.feaa17bec2057a4ee54f.js.gz +0 -0
  92. package/dist/css/chemstruc-graph-6437e59640f8b99b774f.css +12 -0
  93. package/dist/css/chemstruc-graph-6437e59640f8b99b774f.css.gz +0 -0
  94. package/dist/css/common-901df6b21f13391f2a53.css +56 -0
  95. package/dist/css/html-editor-draft-5e8e152675ab7d201c00.css +886 -0
  96. package/dist/css/html-editor-draft-5e8e152675ab7d201c00.css.gz +0 -0
  97. package/dist/css/main-f3c8fdebab315e61e7be.css +865 -0
  98. package/dist/css/main-f3c8fdebab315e61e7be.css.gz +0 -0
  99. package/dist/images/development-30de07a0.png +0 -0
  100. package/dist/images/logo-54b328b7.png +0 -0
  101. package/dist/images/pain-point-8f02421e.png +0 -0
  102. package/dist/images/target-13a5b4b9.png +0 -0
  103. package/dist/images/time-cost-cb40d2c2.png +0 -0
  104. package/dist/images/time-prograss-44b86b36.png +0 -0
  105. package/dist/index.html +4 -0
  106. package/lib/controls/collapse-card/index.d.ts +11 -2
  107. package/lib/controls/collapse-card/index.d.ts.map +1 -1
  108. package/lib/controls/collapse-card/index.js +18 -16
  109. package/lib/controls/collapse-card/index.js.map +1 -1
  110. package/lib/controls/entry-control.d.ts.map +1 -1
  111. package/lib/controls/entry-control.js +2 -1
  112. package/lib/controls/entry-control.js.map +1 -1
  113. package/lib/detail/button/fix-right-submit-button-bar.js +1 -1
  114. package/lib/detail/button/fix-right-submit-button-bar.js.map +1 -1
  115. package/lib/detail/view/act-dtmpl-view.js +1 -1
  116. package/lib/detail/view/act-dtmpl-view.js.map +1 -1
  117. package/lib/detail/view/field-view-group.d.ts +10 -1
  118. package/lib/detail/view/field-view-group.d.ts.map +1 -1
  119. package/lib/detail/view/field-view-group.js +17 -11
  120. package/lib/detail/view/field-view-group.js.map +1 -1
  121. package/lib/form/criteria-form.js +3 -3
  122. package/lib/form/criteria-form.js.map +1 -1
  123. package/lib/form/form-Item-group.js +1 -1
  124. package/lib/form/form-Item-group.js.map +1 -1
  125. package/lib/layout/MainPage.js +1 -1
  126. package/lib/layout/MainPage.js.map +1 -1
  127. package/lib/layout/header/index.js +3 -3
  128. package/lib/layout/header/index.js.map +1 -1
  129. package/lib/layout/menu/block.d.ts +13 -1
  130. package/lib/layout/menu/block.d.ts.map +1 -1
  131. package/lib/layout/menu/block.js +66 -8
  132. package/lib/layout/menu/block.js.map +1 -1
  133. package/lib/layout/menu/menu-2layers.d.ts +10 -0
  134. package/lib/layout/menu/menu-2layers.d.ts.map +1 -1
  135. package/lib/layout/menu/menu-2layers.js +32 -9
  136. package/lib/layout/menu/menu-2layers.js.map +1 -1
  137. package/lib/layout/sidebar/index.d.ts.map +1 -1
  138. package/lib/layout/sidebar/index.js +3 -1
  139. package/lib/layout/sidebar/index.js.map +1 -1
  140. package/lib/locale/LocaleProvider.d.ts.map +1 -1
  141. package/lib/locale/LocaleProvider.js +10 -8
  142. package/lib/locale/LocaleProvider.js.map +1 -1
  143. package/lib/locale/translate.d.ts.map +1 -1
  144. package/lib/locale/translate.js +10 -8
  145. package/lib/locale/translate.js.map +1 -1
  146. package/lib/routable/ltmpl-route.d.ts +2 -2
  147. package/lib/routable/ltmpl-route.d.ts.map +1 -1
  148. package/lib/routable/ltmpl-route.js +22 -21
  149. package/lib/routable/ltmpl-route.js.map +1 -1
  150. package/lib/table/act-table.d.ts.map +1 -1
  151. package/lib/table/act-table.js +18 -8
  152. package/lib/table/act-table.js.map +1 -1
  153. package/lib/table/column/column-selector.d.ts.map +1 -1
  154. package/lib/table/column/column-selector.js +20 -18
  155. package/lib/table/column/column-selector.js.map +1 -1
  156. package/lib/table/query-table.d.ts +10 -1
  157. package/lib/table/query-table.d.ts.map +1 -1
  158. package/lib/table/query-table.js +47 -41
  159. package/lib/table/query-table.js.map +1 -1
  160. package/lib/table/relation-table.js +4 -4
  161. package/lib/table/relation-table.js.map +1 -1
  162. package/lib/tree/tmpl-tree.d.ts.map +1 -1
  163. package/lib/tree/tmpl-tree.js +9 -6
  164. package/lib/tree/tmpl-tree.js.map +1 -1
  165. package/lib/tree/tree-node.d.ts.map +1 -1
  166. package/lib/tree/tree-node.js.map +1 -1
  167. package/package.json +1 -1
  168. package/src/aldehyde/controls/action/index.tsx +6 -5
  169. package/src/aldehyde/controls/collapse-card/index.tsx +96 -54
  170. package/src/aldehyde/controls/entry-control.tsx +2 -1
  171. package/src/aldehyde/detail/button/fix-right-submit-button-bar.tsx +1 -1
  172. package/src/aldehyde/detail/view/act-dtmpl-view.tsx +1 -1
  173. package/src/aldehyde/detail/view/field-view-group.tsx +62 -47
  174. package/src/aldehyde/form/criteria-form.tsx +3 -3
  175. package/src/aldehyde/form/form-Item-group.tsx +1 -1
  176. package/src/aldehyde/layout/MainPage.tsx +1 -1
  177. package/src/aldehyde/layout/header/index.tsx +4 -4
  178. package/src/aldehyde/layout/menu/block.less +11 -0
  179. package/src/aldehyde/layout/menu/block.tsx +132 -72
  180. package/src/aldehyde/layout/menu/menu-2layers.tsx +99 -64
  181. package/src/aldehyde/layout/sidebar/index.tsx +5 -1
  182. package/src/aldehyde/locale/LocaleProvider.tsx +10 -9
  183. package/src/aldehyde/locale/translate.ts +10 -7
  184. package/src/aldehyde/routable/ltmpl-route.tsx +220 -196
  185. package/src/aldehyde/table/act-table.tsx +26 -9
  186. package/src/aldehyde/table/column/column-selector.tsx +111 -72
  187. package/src/aldehyde/table/query-table.tsx +354 -304
  188. package/src/aldehyde/table/relation-table.tsx +4 -4
  189. package/src/aldehyde/tree/tmpl-tree.tsx +19 -3
  190. package/src/aldehyde/tree/tree-node.tsx +0 -3
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkaldehyde=self.webpackChunkaldehyde||[]).push([[402],{58406:function(e,t,n){n.d(t,{q6:function(){return l},Ho:function(){return v},NT:function(){return c}});var r=n(5544),i=n(26956),o=n(30981),a=n(43210),u=n(96540),s=n(40961);function l(e){var t=u.createContext(void 0);return{Context:t,Provider:function(e){var n=e.value,i=e.children,a=u.useRef(n);a.current=n;var l=u.useState((function(){return{getValue:function(){return a.current},listeners:new Set}})),c=(0,r.A)(l,1)[0];return(0,o.A)((function(){(0,s.unstable_batchedUpdates)((function(){c.listeners.forEach((function(e){e(n)}))}))}),[n]),u.createElement(t.Provider,{value:c},i)},defaultValue:e}}function c(e,t){var n=(0,i.A)("function"==typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach((function(t){n[t]=e[t]})),n}),s=u.useContext(null==e?void 0:e.Context),l=s||{},c=l.listeners,f=l.getValue,d=u.useRef();d.current=n(s?f():null==e?void 0:e.defaultValue);var v=u.useState({}),m=(0,r.A)(v,2)[1];return(0,o.A)((function(){if(s)return c.add(e),function(){c.delete(e)};function e(e){var t=n(e);(0,a.A)(d.current,t,!0)||m({})}}),[s]),d.current}var f=n(58168),d=n(8719);function v(){var e=u.createContext(null);function t(){return u.useContext(e)}return{makeImmutable:function(n,r){var i=(0,d.f3)(n),o=function(o,a){var s=i?{ref:a}:{},l=u.useRef(0),c=u.useRef(o);return null!==t()?u.createElement(n,(0,f.A)({},o,s)):(r&&!r(c.current,o)||(l.current+=1),c.current=o,u.createElement(e.Provider,{value:l.current},u.createElement(n,(0,f.A)({},o,s))))};return i?u.forwardRef(o):o},responseImmutable:function(e,n){var r=(0,d.f3)(e),i=function(n,i){var o=r?{ref:i}:{};return t(),u.createElement(e,(0,f.A)({},n,o))};return r?u.memo(u.forwardRef(i),n):u.memo(i,n)},useImmutableMark:t}}var m=v();m.makeImmutable,m.responseImmutable,m.useImmutableMark},23702:function(e,t,n){n.d(t,{Ay:function(){return c},Mg:function(){return f}});var r=n(23029),i=n(92901),o=n(64467),a=n(5062),u=function(){function e(t){if((0,r.A)(this,e),(0,o.A)(this,"origin",""),(0,o.A)(this,"negative",void 0),(0,o.A)(this,"integer",void 0),(0,o.A)(this,"decimal",void 0),(0,o.A)(this,"decimalLen",void 0),(0,o.A)(this,"empty",void 0),(0,o.A)(this,"nan",void 0),(0,a.Im)(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var n=t;if((0,a.Yf)(n)&&(n=Number(n)),n="string"==typeof n?n:(0,a.yH)(n),(0,a.yb)(n)){var i=(0,a.OM)(n);this.negative=i.negative;var u=i.trimStr.split(".");this.integer=BigInt(u[0]);var s=u[1]||"0";this.decimal=BigInt(s),this.decimalLen=s.length}else this.nan=!0}}return(0,i.A)(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,n,r){var i=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),o=n(this.alignDecimal(i),t.alignDecimal(i)).toString(),u=r(i),s=(0,a.OM)(o),l=s.negativeStr,c=s.trimStr,f="".concat(l).concat(c.padStart(u+1,"0"));return new e("".concat(f.slice(0,-u),".").concat(f.slice(-u)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,(function(e,t){return e+t}),(function(e){return e}))}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,(function(e,t){return e*t}),(function(e){return 2*e}))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){return arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.origin:this.isInvalidate()?"":(0,a.OM)("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr}}]),e}(),s=function(){function e(t){(0,r.A)(this,e),(0,o.A)(this,"origin",""),(0,o.A)(this,"number",void 0),(0,o.A)(this,"empty",void 0),(0,a.Im)(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return(0,i.A)(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max((0,a.i5)(this.number),(0,a.i5)(n));return new e(r.toFixed(i))}},{key:"multi",value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var r=this.number*n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max((0,a.i5)(this.number),(0,a.i5)(n));return new e(r.toFixed(i))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null==e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){return arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.origin:this.isInvalidate()?"":(0,a.yH)(this.number)}}]),e}(),l=n(85056);function c(e){return(0,l.r)()?new u(e):new s(e)}function f(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var i=(0,a.OM)(e),o=i.negativeStr,u=i.integerStr,s=i.decimalStr,l="".concat(t).concat(s),d="".concat(o).concat(u);if(n>=0){var v=Number(s[n]);return v>=5&&!r?f(c(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-v)).toString(),t,n,r):0===n?d:"".concat(d).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return".0"===l?d:"".concat(d).concat(l)}},57059:function(e,t,n){var r=n(23702);t.Ay=r.Ay},5062:function(e,t,n){n.d(t,{Im:function(){return i},OM:function(){return o},Yf:function(){return a},i5:function(){return u},yH:function(){return s},yb:function(){return l}});var r=n(85056);function i(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function o(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",i=r.split("."),o=i[0]||"0",a=i[1]||"0";"0"===o&&"0"===a&&(n=!1);var u=n?"-":"";return{negative:n,negativeStr:u,trimStr:r,integerStr:o,decimalStr:a,fullStr:"".concat(u).concat(r)}}function a(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function u(e){var t=String(e);if(a(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return null!=r&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&l(t)?t.length-t.indexOf(".")-1:0}function s(e){var t=String(e);if(a(e)){if(e>Number.MAX_SAFE_INTEGER)return String((0,r.r)()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String((0,r.r)()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(u(t))}return o(t).fullStr}function l(e){return"number"==typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}},85056:function(e,t,n){function r(){return"function"==typeof BigInt}n.d(t,{r:function(){return r}})},45062:function(e,t,n){n.d(t,{A:function(){return A}});var r=n(5544),i=n(96540),o=n(40961),a=n(20998),u=(n(68210),n(8719)),s=i.createContext(null),l=n(60436),c=n(30981),f=[],d=n(85089),v=n(82987),m="rc-util-locker-".concat(Date.now()),h=0;var p=!1,g=function(e){return!1!==e&&((0,a.A)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},A=i.forwardRef((function(e,t){var n=e.open,A=e.autoLock,y=e.getContainer,b=(e.debug,e.autoDestroy),w=void 0===b||b,E=e.children,C=i.useState(n),F=(0,r.A)(C,2),x=F[0],k=F[1],N=x||n;i.useEffect((function(){(w||n)&&k(n)}),[n,w]);var P=i.useState((function(){return g(y)})),R=(0,r.A)(P,2),S=R[0],M=R[1];i.useEffect((function(){var e=g(y);M(null!=e?e:null)}));var V=function(e,t){var n=i.useState((function(){return(0,a.A)()?document.createElement("div"):null})),o=(0,r.A)(n,1)[0],u=i.useRef(!1),d=i.useContext(s),v=i.useState(f),m=(0,r.A)(v,2),h=m[0],p=m[1],g=d||(u.current?void 0:function(e){p((function(t){return[e].concat((0,l.A)(t))}))});function A(){o.parentElement||document.body.appendChild(o),u.current=!0}function y(){var e;null===(e=o.parentElement)||void 0===e||e.removeChild(o),u.current=!1}return(0,c.A)((function(){return e?d?d(A):A():y(),y}),[e]),(0,c.A)((function(){h.length&&(h.forEach((function(e){return e()})),p(f))}),[h]),[o,g]}(N&&!S),I=(0,r.A)(V,2),O=I[0],T=I[1],L=null!=S?S:O;!function(e){var t=!!e,n=i.useState((function(){return h+=1,"".concat(m,"_").concat(h)})),o=(0,r.A)(n,1)[0];(0,c.A)((function(){if(t){var e=(0,v.V)(document.body).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,d.BD)("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),o)}else(0,d.m6)(o);return function(){(0,d.m6)(o)}}),[t,o])}(A&&n&&(0,a.A)()&&(L===O||L===document.body));var D=null;E&&(0,u.f3)(E)&&t&&(D=E.ref);var q=(0,u.xK)(D,t);if(!N||!(0,a.A)()||void 0===S)return null;var j=!1===L||p,W=E;return t&&(W=i.cloneElement(E,{ref:q})),i.createElement(s.Provider,{value:T},j?W:(0,o.createPortal)(W,L))}))},62427:function(e,t,n){n.d(t,{A:function(){return _}});var r=n(89379),i=n(5544),o=n(80045),a=n(45062),u=n(46942),s=n.n(u),l=n(26076),c=n(66588),f=n(72633),d=n(26956),v=n(56855),m=n(30981),h=n(68430),p=n(96540),g=n(58168),A=n(57557),y=n(8719);function b(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,o=r||{},a=o.className,u=o.content,l=i.x,c=void 0===l?0:l,f=i.y,d=void 0===f?0:f,v=p.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(!1!==n.autoArrow){var h=n.points[0],g=n.points[1],A=h[0],y=h[1],b=g[0],w=g[1];A!==b&&["t","b"].includes(A)?"t"===A?m.top=0:m.bottom=0:m.top=d,y!==w&&["l","r"].includes(y)?"l"===y?m.left=0:m.right=0:m.left=c}return p.createElement("div",{ref:v,className:s()("".concat(t,"-arrow"),a),style:m},u)}function w(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,o=e.motion;return i?p.createElement(A.Ay,(0,g.A)({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return p.createElement("div",{style:{zIndex:r},className:s()("".concat(t,"-mask"),n)})})):null}var E=p.memo((function(e){return e.children}),(function(e,t){return t.cache})),C=p.forwardRef((function(e,t){var n=e.popup,o=e.className,a=e.prefixCls,u=e.style,c=e.target,f=e.onVisibleChanged,d=e.open,v=e.keepDom,h=e.fresh,C=e.onClick,F=e.mask,x=e.arrow,k=e.arrowPos,N=e.align,P=e.motion,R=e.maskMotion,S=e.forceRender,M=e.getPopupContainer,V=e.autoDestroy,I=e.portal,O=e.zIndex,T=e.onMouseEnter,L=e.onMouseLeave,D=e.onPointerEnter,q=e.ready,j=e.offsetX,W=e.offsetY,$=e.offsetR,_=e.offsetB,X=e.onAlign,Y=e.onPrepare,H=e.stretch,z=e.targetWidth,U=e.targetHeight,B="function"==typeof n?n():n,K=d||v,Z=(null==M?void 0:M.length)>0,G=p.useState(!M||!Z),J=(0,i.A)(G,2),Q=J[0],ee=J[1];if((0,m.A)((function(){!Q&&Z&&c&&ee(!0)}),[Q,Z,c]),!Q)return null;var te="auto",ne={left:"-1000vw",top:"-1000vh",right:te,bottom:te};if(q||!d){var re,ie=N.points,oe=N.dynamicInset||(null===(re=N._experimental)||void 0===re?void 0:re.dynamicInset),ae=oe&&"r"===ie[0][1],ue=oe&&"b"===ie[0][0];ae?(ne.right=$,ne.left=te):(ne.left=j,ne.right=te),ue?(ne.bottom=_,ne.top=te):(ne.top=W,ne.bottom=te)}var se={};return H&&(H.includes("height")&&U?se.height=U:H.includes("minHeight")&&U&&(se.minHeight=U),H.includes("width")&&z?se.width=z:H.includes("minWidth")&&z&&(se.minWidth=z)),d||(se.pointerEvents="none"),p.createElement(I,{open:S||K,getContainer:M&&function(){return M(c)},autoDestroy:V},p.createElement(w,{prefixCls:a,open:d,zIndex:O,mask:F,motion:R}),p.createElement(l.A,{onResize:X,disabled:!d},(function(e){return p.createElement(A.Ay,(0,g.A)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:S,leavedClassName:"".concat(a,"-hidden")},P,{onAppearPrepare:Y,onEnterPrepare:Y,visible:d,onVisibleChanged:function(e){var t;null==P||null===(t=P.onVisibleChanged)||void 0===t||t.call(P,e),f(e)}}),(function(n,i){var l=n.className,c=n.style,f=s()(a,l,o);return p.createElement("div",{ref:(0,y.K4)(e,t,i),className:f,style:(0,r.A)((0,r.A)((0,r.A)((0,r.A)({"--arrow-x":"".concat(k.x||0,"px"),"--arrow-y":"".concat(k.y||0,"px")},ne),se),c),{},{boxSizing:"border-box",zIndex:O},u),onMouseEnter:T,onMouseLeave:L,onPointerEnter:D,onClick:C},x&&p.createElement(b,{prefixCls:a,arrow:x,arrowPos:k,align:N}),p.createElement(E,{cache:!d&&!h},B))}))})))})),F=p.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=(0,y.f3)(n),o=p.useCallback((function(e){(0,y.Xf)(t,r?r(e):e)}),[r]),a=(0,y.xK)(o,n.ref);return i?p.cloneElement(n,{ref:a}):n})),x=p.createContext(null);function k(e){return e?Array.isArray(e)?e:[e]:[]}var N=n(42467);function P(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function R(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function S(e){return e.ownerDocument.defaultView}function M(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=S(n).getComputedStyle(n);[i.overflowX,i.overflowY,i.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function V(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function I(e){return V(parseFloat(e),0)}function O(e,t){var n=(0,r.A)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=S(e).getComputedStyle(e),r=t.overflow,i=t.overflowClipMargin,o=t.borderTopWidth,a=t.borderBottomWidth,u=t.borderLeftWidth,s=t.borderRightWidth,l=e.getBoundingClientRect(),c=e.offsetHeight,f=e.clientHeight,d=e.offsetWidth,v=e.clientWidth,m=I(o),h=I(a),p=I(u),g=I(s),A=V(Math.round(l.width/d*1e3)/1e3),y=V(Math.round(l.height/c*1e3)/1e3),b=(d-v-p-g)*A,w=(c-f-m-h)*y,E=m*y,C=h*y,F=p*A,x=g*A,k=0,N=0;if("clip"===r){var P=I(i);k=P*A,N=P*y}var R=l.x+F-k,M=l.y+E-N,O=R+l.width+2*k-F-x-b,T=M+l.height+2*N-E-C-w;n.left=Math.max(n.left,R),n.top=Math.max(n.top,M),n.right=Math.min(n.right,O),n.bottom=Math.min(n.bottom,T)}})),n}function T(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function L(e,t){var n=t||[],r=(0,i.A)(n,2),o=r[0],a=r[1];return[T(e.width,o),T(e.height,a)]}function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function q(e,t){var n,r=t[0],i=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===i?e.x:"r"===i?e.x+e.width:e.x+e.width/2,y:n}}function j(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var W=n(60436);n(68210);var $=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"],_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.A,t=p.forwardRef((function(t,n){var a=t.prefixCls,u=void 0===a?"rc-trigger-popup":a,g=t.children,A=t.action,y=void 0===A?"hover":A,b=t.showAction,w=t.hideAction,E=t.popupVisible,I=t.defaultPopupVisible,T=t.onPopupVisibleChange,_=t.afterPopupVisibleChange,X=t.mouseEnterDelay,Y=t.mouseLeaveDelay,H=void 0===Y?.1:Y,z=t.focusDelay,U=t.blurDelay,B=t.mask,K=t.maskClosable,Z=void 0===K||K,G=t.getPopupContainer,J=t.forceRender,Q=t.autoDestroy,ee=t.destroyPopupOnHide,te=t.popup,ne=t.popupClassName,re=t.popupStyle,ie=t.popupPlacement,oe=t.builtinPlacements,ae=void 0===oe?{}:oe,ue=t.popupAlign,se=t.zIndex,le=t.stretch,ce=t.getPopupClassNameFromAlign,fe=t.fresh,de=t.alignPoint,ve=t.onPopupClick,me=t.onPopupAlign,he=t.arrow,pe=t.popupMotion,ge=t.maskMotion,Ae=t.popupTransitionName,ye=t.popupAnimation,be=t.maskTransitionName,we=t.maskAnimation,Ee=t.className,Ce=t.getTriggerDOMNode,Fe=(0,o.A)(t,$),xe=Q||ee||!1,ke=p.useState(!1),Ne=(0,i.A)(ke,2),Pe=Ne[0],Re=Ne[1];(0,m.A)((function(){Re((0,h.A)())}),[]);var Se=p.useRef({}),Me=p.useContext(x),Ve=p.useMemo((function(){return{registerSubPopup:function(e,t){Se.current[e]=t,null==Me||Me.registerSubPopup(e,t)}}}),[Me]),Ie=(0,v.A)(),Oe=p.useState(null),Te=(0,i.A)(Oe,2),Le=Te[0],De=Te[1],qe=p.useRef(null),je=(0,d.A)((function(e){qe.current=e,(0,c.f)(e)&&Le!==e&&De(e),null==Me||Me.registerSubPopup(Ie,e)})),We=p.useState(null),$e=(0,i.A)(We,2),_e=$e[0],Xe=$e[1],Ye=p.useRef(null),He=(0,d.A)((function(e){(0,c.f)(e)&&_e!==e&&(Xe(e),Ye.current=e)})),ze=p.Children.only(g),Ue=(null==ze?void 0:ze.props)||{},Be={},Ke=(0,d.A)((function(e){var t,n,r=_e;return(null==r?void 0:r.contains(e))||(null===(t=(0,f.j)(r))||void 0===t?void 0:t.host)===e||e===r||(null==Le?void 0:Le.contains(e))||(null===(n=(0,f.j)(Le))||void 0===n?void 0:n.host)===e||e===Le||Object.values(Se.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Ze=R(u,pe,ye,Ae),Ge=R(u,ge,we,be),Je=p.useState(I||!1),Qe=(0,i.A)(Je,2),et=Qe[0],tt=Qe[1],nt=null!=E?E:et,rt=(0,d.A)((function(e){void 0===E&&tt(e)}));(0,m.A)((function(){tt(E||!1)}),[E]);var it=p.useRef(nt);it.current=nt;var ot=p.useRef([]);ot.current=[];var at=(0,d.A)((function(e){var t;rt(e),(null!==(t=ot.current[ot.current.length-1])&&void 0!==t?t:nt)!==e&&(ot.current.push(e),null==T||T(e))})),ut=p.useRef(),st=function(){clearTimeout(ut.current)},lt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;st(),0===t?at(e):ut.current=setTimeout((function(){at(e)}),1e3*t)};p.useEffect((function(){return st}),[]);var ct=p.useState(!1),ft=(0,i.A)(ct,2),dt=ft[0],vt=ft[1];(0,m.A)((function(e){e&&!nt||vt(!0)}),[nt]);var mt=p.useState(null),ht=(0,i.A)(mt,2),pt=ht[0],gt=ht[1],At=p.useState([0,0]),yt=(0,i.A)(At,2),bt=yt[0],wt=yt[1],Et=function(e){wt([e.clientX,e.clientY])},Ct=function(e,t,n,o,a,u,s){var l=p.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[o]||{}}),f=(0,i.A)(l,2),v=f[0],h=f[1],g=p.useRef(0),A=p.useMemo((function(){return t?M(t):[]}),[t]),y=p.useRef({});e||(y.current={});var b=(0,d.A)((function(){if(t&&n&&e){var l,f,d,v=t,m=v.ownerDocument,p=S(v).getComputedStyle(v),g=p.width,b=p.height,w=p.position,E=v.style.left,C=v.style.top,F=v.style.right,x=v.style.bottom,k=v.style.overflow,P=(0,r.A)((0,r.A)({},a[o]),u),R=m.createElement("div");if(null===(l=v.parentElement)||void 0===l||l.appendChild(R),R.style.left="".concat(v.offsetLeft,"px"),R.style.top="".concat(v.offsetTop,"px"),R.style.position=w,R.style.height="".concat(v.offsetHeight,"px"),R.style.width="".concat(v.offsetWidth,"px"),v.style.left="0",v.style.top="0",v.style.right="auto",v.style.bottom="auto",v.style.overflow="hidden",Array.isArray(n))d={x:n[0],y:n[1],width:0,height:0};else{var M=n.getBoundingClientRect();d={x:M.x,y:M.y,width:M.width,height:M.height}}var I=v.getBoundingClientRect(),T=m.documentElement,W=T.clientWidth,$=T.clientHeight,_=T.scrollWidth,X=T.scrollHeight,Y=T.scrollTop,H=T.scrollLeft,z=I.height,U=I.width,B=d.height,K=d.width,Z={left:0,top:0,right:W,bottom:$},G={left:-H,top:-Y,right:_-H,bottom:X-Y},J=P.htmlRegion,Q="visible",ee="visibleFirst";"scroll"!==J&&J!==ee&&(J=Q);var te=J===ee,ne=O(G,A),re=O(Z,A),ie=J===Q?re:ne,oe=te?re:ie;v.style.left="auto",v.style.top="auto",v.style.right="0",v.style.bottom="0";var ae=v.getBoundingClientRect();v.style.left=E,v.style.top=C,v.style.right=F,v.style.bottom=x,v.style.overflow=k,null===(f=v.parentElement)||void 0===f||f.removeChild(R);var ue=V(Math.round(U/parseFloat(g)*1e3)/1e3),se=V(Math.round(z/parseFloat(b)*1e3)/1e3);if(0===ue||0===se||(0,c.f)(n)&&!(0,N.A)(n))return;var le=P.offset,ce=P.targetOffset,fe=L(I,le),de=(0,i.A)(fe,2),ve=de[0],me=de[1],he=L(d,ce),pe=(0,i.A)(he,2),ge=pe[0],Ae=pe[1];d.x-=ge,d.y-=Ae;var ye=P.points||[],be=(0,i.A)(ye,2),we=be[0],Ee=D(be[1]),Ce=D(we),Fe=q(d,Ee),xe=q(I,Ce),ke=(0,r.A)({},P),Ne=Fe.x-xe.x+ve,Pe=Fe.y-xe.y+me;function wt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ie,r=I.x+e,i=I.y+t,o=r+U,a=i+z,u=Math.max(r,n.left),s=Math.max(i,n.top),l=Math.min(o,n.right),c=Math.min(a,n.bottom);return Math.max(0,(l-u)*(c-s))}var Re,Se,Me,Ve,Ie=wt(Ne,Pe),Oe=wt(Ne,Pe,re),Te=q(d,["t","l"]),Le=q(I,["t","l"]),De=q(d,["b","r"]),qe=q(I,["b","r"]),je=P.overflow||{},We=je.adjustX,$e=je.adjustY,_e=je.shiftX,Xe=je.shiftY,Ye=function(e){return"boolean"==typeof e?e:e>=0};function Et(){Re=I.y+Pe,Se=Re+z,Me=I.x+Ne,Ve=Me+U}Et();var He=Ye($e),ze=Ce[0]===Ee[0];if(He&&"t"===Ce[0]&&(Se>oe.bottom||y.current.bt)){var Ue=Pe;ze?Ue-=z-B:Ue=Te.y-qe.y-me;var Be=wt(Ne,Ue),Ke=wt(Ne,Ue,re);Be>Ie||Be===Ie&&(!te||Ke>=Oe)?(y.current.bt=!0,Pe=Ue,me=-me,ke.points=[j(Ce,0),j(Ee,0)]):y.current.bt=!1}if(He&&"b"===Ce[0]&&(Re<oe.top||y.current.tb)){var Ze=Pe;ze?Ze+=z-B:Ze=De.y-Le.y-me;var Ge=wt(Ne,Ze),Je=wt(Ne,Ze,re);Ge>Ie||Ge===Ie&&(!te||Je>=Oe)?(y.current.tb=!0,Pe=Ze,me=-me,ke.points=[j(Ce,0),j(Ee,0)]):y.current.tb=!1}var Qe=Ye(We),et=Ce[1]===Ee[1];if(Qe&&"l"===Ce[1]&&(Ve>oe.right||y.current.rl)){var tt=Ne;et?tt-=U-K:tt=Te.x-qe.x-ve;var nt=wt(tt,Pe),rt=wt(tt,Pe,re);nt>Ie||nt===Ie&&(!te||rt>=Oe)?(y.current.rl=!0,Ne=tt,ve=-ve,ke.points=[j(Ce,1),j(Ee,1)]):y.current.rl=!1}if(Qe&&"r"===Ce[1]&&(Me<oe.left||y.current.lr)){var it=Ne;et?it+=U-K:it=De.x-Le.x-ve;var ot=wt(it,Pe),at=wt(it,Pe,re);ot>Ie||ot===Ie&&(!te||at>=Oe)?(y.current.lr=!0,Ne=it,ve=-ve,ke.points=[j(Ce,1),j(Ee,1)]):y.current.lr=!1}Et();var ut=!0===_e?0:_e;"number"==typeof ut&&(Me<re.left&&(Ne-=Me-re.left-ve,d.x+K<re.left+ut&&(Ne+=d.x-re.left+K-ut)),Ve>re.right&&(Ne-=Ve-re.right-ve,d.x>re.right-ut&&(Ne+=d.x-re.right+ut)));var st=!0===Xe?0:Xe;"number"==typeof st&&(Re<re.top&&(Pe-=Re-re.top-me,d.y+B<re.top+st&&(Pe+=d.y-re.top+B-st)),Se>re.bottom&&(Pe-=Se-re.bottom-me,d.y>re.bottom-st&&(Pe+=d.y-re.bottom+st)));var lt=I.x+Ne,ct=lt+U,ft=I.y+Pe,dt=ft+z,vt=d.x,mt=vt+K,ht=d.y,pt=ht+B,gt=(Math.max(lt,vt)+Math.min(ct,mt))/2-lt,At=(Math.max(ft,ht)+Math.min(dt,pt))/2-ft;null==s||s(t,ke);var yt=ae.right-I.x-(Ne+I.width),bt=ae.bottom-I.y-(Pe+I.height);h({ready:!0,offsetX:Ne/ue,offsetY:Pe/se,offsetR:yt/ue,offsetB:bt/se,arrowX:gt/ue,arrowY:At/se,scaleX:ue,scaleY:se,align:ke})}})),w=function(){h((function(e){return(0,r.A)((0,r.A)({},e),{},{ready:!1})}))};return(0,m.A)(w,[o]),(0,m.A)((function(){e||w()}),[e]),[v.ready,v.offsetX,v.offsetY,v.offsetR,v.offsetB,v.arrowX,v.arrowY,v.scaleX,v.scaleY,v.align,function(){g.current+=1;var e=g.current;Promise.resolve().then((function(){g.current===e&&b()}))}]}(nt,Le,de?bt:_e,ie,ae,ue,me),Ft=(0,i.A)(Ct,11),xt=Ft[0],kt=Ft[1],Nt=Ft[2],Pt=Ft[3],Rt=Ft[4],St=Ft[5],Mt=Ft[6],Vt=Ft[7],It=Ft[8],Ot=Ft[9],Tt=Ft[10],Lt=function(e,t,n,r){return p.useMemo((function(){var i=k(null!=n?n:t),o=k(null!=r?r:t),a=new Set(i),u=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),u.has("hover")&&(u.delete("hover"),u.add("click"))),[a,u]}),[e,t,n,r])}(Pe,y,b,w),Dt=(0,i.A)(Lt,2),qt=Dt[0],jt=Dt[1],Wt=qt.has("click"),$t=jt.has("click")||jt.has("contextMenu"),_t=(0,d.A)((function(){dt||Tt()}));!function(e,t,n,r,i){(0,m.A)((function(){if(e&&t&&n){var i=n,o=M(t),a=M(i),u=S(i),s=new Set([u].concat((0,W.A)(o),(0,W.A)(a)));function l(){r(),it.current&&de&&$t&&lt(!1)}return s.forEach((function(e){e.addEventListener("scroll",l,{passive:!0})})),u.addEventListener("resize",l,{passive:!0}),r(),function(){s.forEach((function(e){e.removeEventListener("scroll",l),u.removeEventListener("resize",l)}))}}}),[e,t,n])}(nt,_e,Le,_t),(0,m.A)((function(){_t()}),[bt,ie]),(0,m.A)((function(){!nt||null!=ae&&ae[ie]||_t()}),[JSON.stringify(ue)]);var Xt=p.useMemo((function(){var e=function(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a<o.length;a+=1){var u,s=o[a];if(P(null===(u=e[s])||void 0===u?void 0:u.points,i,r))return"".concat(t,"-placement-").concat(s)}return""}(ae,u,Ot,de);return s()(e,null==ce?void 0:ce(Ot))}),[Ot,ce,ae,u,de]);p.useImperativeHandle(n,(function(){return{nativeElement:Ye.current,popupElement:qe.current,forceAlign:_t}}));var Yt=p.useState(0),Ht=(0,i.A)(Yt,2),zt=Ht[0],Ut=Ht[1],Bt=p.useState(0),Kt=(0,i.A)(Bt,2),Zt=Kt[0],Gt=Kt[1],Jt=function(){if(le&&_e){var e=_e.getBoundingClientRect();Ut(e.width),Gt(e.height)}};function Qt(e,t,n,r){Be[e]=function(i){var o;null==r||r(i),lt(t,n);for(var a=arguments.length,u=new Array(a>1?a-1:0),s=1;s<a;s++)u[s-1]=arguments[s];null===(o=Ue[e])||void 0===o||o.call.apply(o,[Ue,i].concat(u))}}(0,m.A)((function(){pt&&(Tt(),pt(),gt(null))}),[pt]),(Wt||$t)&&(Be.onClick=function(e){var t;it.current&&$t?lt(!1):!it.current&&Wt&&(Et(e),lt(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];null===(t=Ue.onClick)||void 0===t||t.call.apply(t,[Ue,e].concat(r))}),function(e,t,n,r,i,o,a,u){var s=p.useRef(e);s.current=e,p.useEffect((function(){if(t&&r&&(!i||o)){var e=function(e){var t=e.target;s.current&&!a(t)&&u(!1)},l=S(r);l.addEventListener("mousedown",e,!0),l.addEventListener("contextmenu",e,!0);var c=(0,f.j)(n);return c&&(c.addEventListener("mousedown",e,!0),c.addEventListener("contextmenu",e,!0)),function(){l.removeEventListener("mousedown",e,!0),l.removeEventListener("contextmenu",e,!0),c&&(c.removeEventListener("mousedown",e,!0),c.removeEventListener("contextmenu",e,!0))}}}),[t,n,r,i,o])}(nt,$t,_e,Le,B,Z,Ke,lt);var en,tn,nn=qt.has("hover"),rn=jt.has("hover");nn&&(Qt("onMouseEnter",!0,X,(function(e){Et(e)})),Qt("onPointerEnter",!0,X,(function(e){Et(e)})),en=function(e){(nt||dt)&&null!=Le&&Le.contains(e.target)&&lt(!0,X)},de&&(Be.onMouseMove=function(e){var t;null===(t=Ue.onMouseMove)||void 0===t||t.call(Ue,e)})),rn&&(Qt("onMouseLeave",!1,H),Qt("onPointerLeave",!1,H),tn=function(){lt(!1,H)}),qt.has("focus")&&Qt("onFocus",!0,z),jt.has("focus")&&Qt("onBlur",!1,U),qt.has("contextMenu")&&(Be.onContextMenu=function(e){var t;it.current&&jt.has("contextMenu")?lt(!1):(Et(e),lt(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];null===(t=Ue.onContextMenu)||void 0===t||t.call.apply(t,[Ue,e].concat(r))}),Ee&&(Be.className=s()(Ue.className,Ee));var on=(0,r.A)((0,r.A)({},Ue),Be),an={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){Fe[e]&&(an[e]=function(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];null===(t=on[e])||void 0===t||t.call.apply(t,[on].concat(r)),Fe[e].apply(Fe,r)})}));var un=p.cloneElement(ze,(0,r.A)((0,r.A)({},on),an)),sn={x:St,y:Mt},ln=he?(0,r.A)({},!0!==he?he:{}):null;return p.createElement(p.Fragment,null,p.createElement(l.A,{disabled:!nt,ref:He,onResize:function(){Jt(),_t()}},p.createElement(F,{getTriggerDOMNode:Ce},un)),p.createElement(x.Provider,{value:Ve},p.createElement(C,{portal:e,ref:je,prefixCls:u,popup:te,className:s()(ne,Xt),style:re,target:_e,onMouseEnter:en,onMouseLeave:tn,onPointerEnter:en,zIndex:se,open:nt,keepDom:dt,fresh:fe,onClick:ve,mask:B,motion:Ze,maskMotion:Ge,onVisibleChanged:function(e){vt(!1),Tt(),null==_||_(e)},onPrepare:function(){return new Promise((function(e){Jt(),gt((function(){return e}))}))},forceRender:J,autoDestroy:xe,getPopupContainer:G,align:Ot,arrow:ln,arrowPos:sn,ready:xt,offsetX:kt,offsetY:Nt,offsetR:Pt,offsetB:Rt,onAlign:_t,stretch:le,targetWidth:zt/Vt,targetHeight:Zt/It})))}));return t}(a.A)},33766:function(e,t,n){n.d(t,{Z:function(){return C},A:function(){return R}});var r=n(58168),i=n(5544),o=n(45062),a=n(96540),u=a.createContext({}),s=n(89379),l=n(46942),c=n.n(l),f=n(54808),d=n(56855),v=n(16928),m=n(72065);function h(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function p(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var i=e.document;"number"!=typeof(n=i.documentElement[r])&&(n=i.body[r])}return n}var g=n(57557),A=n(82284),y=n(8719),b=a.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate})),w={width:0,height:0,overflow:"hidden",outline:"none"},E={outline:"none"},C=a.forwardRef((function(e,t){var n=e.prefixCls,i=e.className,o=e.style,l=e.title,f=e.ariaId,d=e.footer,v=e.closable,h=e.closeIcon,p=e.onClose,g=e.children,C=e.bodyStyle,F=e.bodyProps,x=e.modalRender,k=e.onMouseDown,N=e.onMouseUp,P=e.holderRef,R=e.visible,S=e.forceRender,M=e.width,V=e.height,I=e.classNames,O=e.styles,T=a.useContext(u).panel,L=(0,y.xK)(P,T),D=(0,a.useRef)(),q=(0,a.useRef)(),j=(0,a.useRef)();a.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=j.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===q.current?D.current.focus():e||t!==D.current||q.current.focus()}}}));var W,$,_={};void 0!==M&&(_.width=M),void 0!==V&&(_.height=V),d&&(W=a.createElement("div",{className:c()("".concat(n,"-footer"),null==I?void 0:I.footer),style:(0,s.A)({},null==O?void 0:O.footer)},d)),l&&($=a.createElement("div",{className:c()("".concat(n,"-header"),null==I?void 0:I.header),style:(0,s.A)({},null==O?void 0:O.header)},a.createElement("div",{className:"".concat(n,"-title"),id:f},l)));var X,Y=(0,a.useMemo)((function(){return"object"===(0,A.A)(v)&&null!==v?v:v?{closeIcon:null!=h?h:a.createElement("span",{className:"".concat(n,"-close-x")})}:{}}),[v,h]),H=(0,m.A)(Y,!0);v&&(X=a.createElement("button",(0,r.A)({type:"button",onClick:p,"aria-label":"Close"},H,{className:"".concat(n,"-close")}),Y.closeIcon));var z=a.createElement("div",{className:c()("".concat(n,"-content"),null==I?void 0:I.content),style:null==O?void 0:O.content},X,$,a.createElement("div",(0,r.A)({className:c()("".concat(n,"-body"),null==I?void 0:I.body),style:(0,s.A)((0,s.A)({},C),null==O?void 0:O.body)},F),g),W);return a.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":l?f:null,"aria-modal":"true",ref:L,style:(0,s.A)((0,s.A)({},o),_),className:c()(n,i),onMouseDown:k,onMouseUp:N},a.createElement("div",{tabIndex:0,ref:D,style:w,"aria-hidden":"true"}),a.createElement("div",{ref:j,tabIndex:-1,style:E},a.createElement(b,{shouldUpdate:R||S},x?x(z):z)),a.createElement("div",{tabIndex:0,ref:q,style:w,"aria-hidden":"true"}))})),F=a.forwardRef((function(e,t){var n=e.prefixCls,o=e.title,u=e.style,l=e.className,f=e.visible,d=e.forceRender,v=e.destroyOnClose,m=e.motionName,h=e.ariaId,A=e.onVisibleChanged,y=e.mousePosition,b=(0,a.useRef)(),w=a.useState(),E=(0,i.A)(w,2),F=E[0],x=E[1],k={};function N(){var e,t,n,r,i,o=(n={left:(t=(e=b.current).getBoundingClientRect()).left,top:t.top},i=(r=e.ownerDocument).defaultView||r.parentWindow,n.left+=p(i),n.top+=p(i,!0),n);x(y?"".concat(y.x-o.left,"px ").concat(y.y-o.top,"px"):"")}return F&&(k.transformOrigin=F),a.createElement(g.Ay,{visible:f,onVisibleChanged:A,onAppearPrepare:N,onEnterPrepare:N,forceRender:d,motionName:m,removeOnLeave:v,ref:b},(function(i,f){var d=i.className,v=i.style;return a.createElement(C,(0,r.A)({},e,{ref:t,title:o,ariaId:h,prefixCls:n,holderRef:f,style:(0,s.A)((0,s.A)((0,s.A)({},v),u),k),className:c()(l,d)}))}))}));F.displayName="Content";var x=F;function k(e){var t=e.prefixCls,n=e.style,i=e.visible,o=e.maskProps,u=e.motionName,l=e.className;return a.createElement(g.Ay,{key:"mask",visible:i,motionName:u,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,i){var u=e.className,f=e.style;return a.createElement("div",(0,r.A)({ref:i,style:(0,s.A)((0,s.A)({},f),n),className:c()("".concat(t,"-mask"),u,l)},o))}))}function N(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,o=e.zIndex,u=e.visible,l=void 0!==u&&u,p=e.keyboard,g=void 0===p||p,A=e.focusTriggerAfterClose,y=void 0===A||A,b=e.wrapStyle,w=e.wrapClassName,E=e.wrapProps,C=e.onClose,F=e.afterOpenChange,N=e.afterClose,P=e.transitionName,R=e.animation,S=e.closable,M=void 0===S||S,V=e.mask,I=void 0===V||V,O=e.maskTransitionName,T=e.maskAnimation,L=e.maskClosable,D=void 0===L||L,q=e.maskStyle,j=e.maskProps,W=e.rootClassName,$=e.classNames,_=e.styles,X=(0,a.useRef)(),Y=(0,a.useRef)(),H=(0,a.useRef)(),z=a.useState(l),U=(0,i.A)(z,2),B=U[0],K=U[1],Z=(0,d.A)();function G(e){null==C||C(e)}var J=(0,a.useRef)(!1),Q=(0,a.useRef)(),ee=null;return D&&(ee=function(e){J.current?J.current=!1:Y.current===e.target&&G(e)}),(0,a.useEffect)((function(){l&&(K(!0),(0,f.A)(Y.current,document.activeElement)||(X.current=document.activeElement))}),[l]),(0,a.useEffect)((function(){return function(){clearTimeout(Q.current)}}),[]),a.createElement("div",(0,r.A)({className:c()("".concat(n,"-root"),W)},(0,m.A)(e,{data:!0})),a.createElement(k,{prefixCls:n,visible:I&&l,motionName:h(n,O,T),style:(0,s.A)((0,s.A)({zIndex:o},q),null==_?void 0:_.mask),maskProps:j,className:null==$?void 0:$.mask}),a.createElement("div",(0,r.A)({tabIndex:-1,onKeyDown:function(e){if(g&&e.keyCode===v.A.ESC)return e.stopPropagation(),void G(e);l&&e.keyCode===v.A.TAB&&H.current.changeActive(!e.shiftKey)},className:c()("".concat(n,"-wrap"),w,null==$?void 0:$.wrapper),ref:Y,onClick:ee,style:(0,s.A)((0,s.A)((0,s.A)({zIndex:o},b),null==_?void 0:_.wrapper),{},{display:B?null:"none"})},E),a.createElement(x,(0,r.A)({},e,{onMouseDown:function(){clearTimeout(Q.current),J.current=!0},onMouseUp:function(){Q.current=setTimeout((function(){J.current=!1}))},ref:H,closable:M,ariaId:Z,prefixCls:n,visible:l&&B,onClose:G,onVisibleChanged:function(e){if(e)(0,f.A)(Y.current,document.activeElement)||null===(t=H.current)||void 0===t||t.focus();else{if(K(!1),I&&X.current&&y){try{X.current.focus({preventScroll:!0})}catch(e){}X.current=null}B&&(null==N||N())}var t;null==F||F(e)},motionName:h(n,P,R)}))))}n(68210);var P=function(e){var t=e.visible,n=e.getContainer,s=e.forceRender,l=e.destroyOnClose,c=void 0!==l&&l,f=e.afterClose,d=e.panelRef,v=a.useState(t),m=(0,i.A)(v,2),h=m[0],p=m[1],g=a.useMemo((function(){return{panel:d}}),[d]);return a.useEffect((function(){t&&p(!0)}),[t]),s||!c||h?a.createElement(u.Provider,{value:g},a.createElement(o.A,{open:t||s||h,autoDestroy:!1,getContainer:n,autoLock:t||h},a.createElement(N,(0,r.A)({},e,{destroyOnClose:c,afterClose:function(){null==f||f(),p(!1)}})))):null};P.displayName="Dialog";var R=P},50848:function(e,t,n){n.d(t,{A:function(){return N}});var r=n(89379),i=n(5544),o=n(45062),a=n(30981),u=n(96540),s=u.createContext(null),l=u.createContext({}),c=s,f=n(64467),d=n(58168),v=n(46942),m=n.n(v),h=n(57557),p=n(16928),g=n(72065),A=n(80045),y=n(8719),b=["prefixCls","className","containerRef"],w=function(e){var t=e.prefixCls,n=e.className,r=e.containerRef,i=(0,A.A)(e,b),o=u.useContext(l).panel,a=(0,y.xK)(o,r);return u.createElement("div",(0,d.A)({className:m()("".concat(t,"-content"),n),role:"dialog",ref:a},(0,g.A)(e,{aria:!0}),{"aria-modal":"true"},i))},E=n(68210);function C(e){return"string"==typeof e&&String(Number(e))===e?((0,E.Ay)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var F={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function x(e,t){var n,o,a,s=e.prefixCls,l=e.open,v=e.placement,A=e.inline,y=e.push,b=e.forceRender,E=e.autoFocus,x=e.keyboard,k=e.classNames,N=e.rootClassName,P=e.rootStyle,R=e.zIndex,S=e.className,M=e.id,V=e.style,I=e.motion,O=e.width,T=e.height,L=e.children,D=e.mask,q=e.maskClosable,j=e.maskMotion,W=e.maskClassName,$=e.maskStyle,_=e.afterOpenChange,X=e.onClose,Y=e.onMouseEnter,H=e.onMouseOver,z=e.onMouseLeave,U=e.onClick,B=e.onKeyDown,K=e.onKeyUp,Z=e.styles,G=u.useRef(),J=u.useRef(),Q=u.useRef();u.useImperativeHandle(t,(function(){return G.current})),u.useEffect((function(){var e;l&&E&&(null===(e=G.current)||void 0===e||e.focus({preventScroll:!0}))}),[l]);var ee=u.useState(!1),te=(0,i.A)(ee,2),ne=te[0],re=te[1],ie=u.useContext(c),oe=null!==(n=null!==(o=null===(a="boolean"==typeof y?y?{}:{distance:0}:y||{})||void 0===a?void 0:a.distance)&&void 0!==o?o:null==ie?void 0:ie.pushDistance)&&void 0!==n?n:180,ae=u.useMemo((function(){return{pushDistance:oe,push:function(){re(!0)},pull:function(){re(!1)}}}),[oe]);u.useEffect((function(){var e,t;l?null==ie||null===(e=ie.push)||void 0===e||e.call(ie):null==ie||null===(t=ie.pull)||void 0===t||t.call(ie)}),[l]),u.useEffect((function(){return function(){var e;null==ie||null===(e=ie.pull)||void 0===e||e.call(ie)}}),[]);var ue=D&&u.createElement(h.Ay,(0,d.A)({key:"mask"},j,{visible:l}),(function(e,t){var n=e.className,i=e.style;return u.createElement("div",{className:m()("".concat(s,"-mask"),n,null==k?void 0:k.mask,W),style:(0,r.A)((0,r.A)((0,r.A)({},i),$),null==Z?void 0:Z.mask),onClick:q&&l?X:void 0,ref:t})})),se="function"==typeof I?I(v):I,le={};if(ne&&oe)switch(v){case"top":le.transform="translateY(".concat(oe,"px)");break;case"bottom":le.transform="translateY(".concat(-oe,"px)");break;case"left":le.transform="translateX(".concat(oe,"px)");break;default:le.transform="translateX(".concat(-oe,"px)")}"left"===v||"right"===v?le.width=C(O):le.height=C(T);var ce={onMouseEnter:Y,onMouseOver:H,onMouseLeave:z,onClick:U,onKeyDown:B,onKeyUp:K},fe=u.createElement(h.Ay,(0,d.A)({key:"panel"},se,{visible:l,forceRender:b,onVisibleChanged:function(e){null==_||_(e)},removeOnLeave:!1,leavedClassName:"".concat(s,"-content-wrapper-hidden")}),(function(t,n){var i=t.className,o=t.style;return u.createElement("div",(0,d.A)({className:m()("".concat(s,"-content-wrapper"),null==k?void 0:k.wrapper,i),style:(0,r.A)((0,r.A)((0,r.A)({},le),o),null==Z?void 0:Z.wrapper)},(0,g.A)(e,{data:!0})),u.createElement(w,(0,d.A)({id:M,containerRef:n,prefixCls:s,className:m()(S,null==k?void 0:k.content),style:(0,r.A)((0,r.A)({},V),null==Z?void 0:Z.content)},(0,g.A)(e,{aria:!0}),ce),L))})),de=(0,r.A)({},P);return R&&(de.zIndex=R),u.createElement(c.Provider,{value:ae},u.createElement("div",{className:m()(s,"".concat(s,"-").concat(v),N,(0,f.A)((0,f.A)({},"".concat(s,"-open"),l),"".concat(s,"-inline"),A)),style:de,tabIndex:-1,ref:G,onKeyDown:function(e){var t=e.keyCode,n=e.shiftKey;switch(t){case p.A.TAB:var r;if(t===p.A.TAB)if(n||document.activeElement!==Q.current){if(n&&document.activeElement===J.current){var i;null===(i=Q.current)||void 0===i||i.focus({preventScroll:!0})}}else null===(r=J.current)||void 0===r||r.focus({preventScroll:!0});break;case p.A.ESC:X&&x&&(e.stopPropagation(),X(e))}}},ue,u.createElement("div",{tabIndex:0,ref:J,style:F,"aria-hidden":"true","data-sentinel":"start"}),fe,u.createElement("div",{tabIndex:0,ref:Q,style:F,"aria-hidden":"true","data-sentinel":"end"})))}var k=u.forwardRef(x),N=function(e){var t=e.open,n=void 0!==t&&t,s=e.prefixCls,c=void 0===s?"rc-drawer":s,f=e.placement,d=void 0===f?"right":f,v=e.autoFocus,m=void 0===v||v,h=e.keyboard,p=void 0===h||h,g=e.width,A=void 0===g?378:g,y=e.mask,b=void 0===y||y,w=e.maskClosable,E=void 0===w||w,C=e.getContainer,F=e.forceRender,x=e.afterOpenChange,N=e.destroyOnClose,P=e.onMouseEnter,R=e.onMouseOver,S=e.onMouseLeave,M=e.onClick,V=e.onKeyDown,I=e.onKeyUp,O=e.panelRef,T=u.useState(!1),L=(0,i.A)(T,2),D=L[0],q=L[1],j=u.useState(!1),W=(0,i.A)(j,2),$=W[0],_=W[1];(0,a.A)((function(){_(!0)}),[]);var X=!!$&&n,Y=u.useRef(),H=u.useRef();(0,a.A)((function(){X&&(H.current=document.activeElement)}),[X]);var z=u.useMemo((function(){return{panel:O}}),[O]);if(!F&&!D&&!X&&N)return null;var U={onMouseEnter:P,onMouseOver:R,onMouseLeave:S,onClick:M,onKeyDown:V,onKeyUp:I},B=(0,r.A)((0,r.A)({},e),{},{open:X,prefixCls:c,placement:d,autoFocus:m,keyboard:p,width:A,mask:b,maskClosable:E,inline:!1===C,afterOpenChange:function(e){var t,n;q(e),null==x||x(e),e||!H.current||null!==(t=Y.current)&&void 0!==t&&t.contains(H.current)||null===(n=H.current)||void 0===n||n.focus({preventScroll:!0})},ref:Y},U);return u.createElement(l.Provider,{value:z},u.createElement(o.A,{open:X||F||D,autoDestroy:!1,getContainer:C,autoLock:b&&(X||D)},u.createElement(k,B)))}},3497:function(e,t,n){n.d(t,{A:function(){return E}});var r=n(58168),i=n(64467),o=n(5544),a=n(80045),u=n(62427),s=n(46942),l=n.n(s),c=n(8719),f=n(96540),d=n(16928),v=n(25371),m=d.A.ESC,h=d.A.TAB,p=(0,f.forwardRef)((function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,o=(0,f.useMemo)((function(){return"function"==typeof n?n():n}),[n]),a=(0,c.K4)(t,null==o?void 0:o.ref);return f.createElement(f.Fragment,null,r&&f.createElement("div",{className:"".concat(i,"-arrow")}),f.cloneElement(o,{ref:(0,c.f3)(o)?a:void 0}))})),g={adjustX:1,adjustY:1},A=[0,0],y={topLeft:{points:["bl","tl"],overflow:g,offset:[0,-4],targetOffset:A},top:{points:["bc","tc"],overflow:g,offset:[0,-4],targetOffset:A},topRight:{points:["br","tr"],overflow:g,offset:[0,-4],targetOffset:A},bottomLeft:{points:["tl","bl"],overflow:g,offset:[0,4],targetOffset:A},bottom:{points:["tc","bc"],overflow:g,offset:[0,4],targetOffset:A},bottomRight:{points:["tr","br"],overflow:g,offset:[0,4],targetOffset:A}},b=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function w(e,t){var n,s=e.arrow,d=void 0!==s&&s,g=e.prefixCls,A=void 0===g?"rc-dropdown":g,w=e.transitionName,E=e.animation,C=e.align,F=e.placement,x=void 0===F?"bottomLeft":F,k=e.placements,N=void 0===k?y:k,P=e.getPopupContainer,R=e.showAction,S=e.hideAction,M=e.overlayClassName,V=e.overlayStyle,I=e.visible,O=e.trigger,T=void 0===O?["hover"]:O,L=e.autoFocus,D=e.overlay,q=e.children,j=e.onVisibleChange,W=(0,a.A)(e,b),$=f.useState(),_=(0,o.A)($,2),X=_[0],Y=_[1],H="visible"in e?I:X,z=f.useRef(null),U=f.useRef(null),B=f.useRef(null);f.useImperativeHandle(t,(function(){return z.current}));var K=function(e){Y(e),null==j||j(e)};!function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,o=e.overlayRef,a=f.useRef(!1),u=function(){var e,i;t&&(null===(e=n.current)||void 0===e||null===(i=e.focus)||void 0===i||i.call(e),null==r||r(!1))},s=function(){var e;return!(null===(e=o.current)||void 0===e||!e.focus||(o.current.focus(),a.current=!0,0))},l=function(e){switch(e.keyCode){case m:u();break;case h:var t=!1;a.current||(t=s()),t?e.preventDefault():u()}};f.useEffect((function(){return t?(window.addEventListener("keydown",l),i&&(0,v.A)(s,3),function(){window.removeEventListener("keydown",l),a.current=!1}):function(){a.current=!1}}),[t])}({visible:H,triggerRef:B,onVisibleChange:K,autoFocus:L,overlayRef:U});var Z,G,J,Q=function(){return f.createElement(p,{ref:U,overlay:D,prefixCls:A,arrow:d})},ee=f.cloneElement(q,{className:l()(null===(n=q.props)||void 0===n?void 0:n.className,H&&(Z=e.openClassName,void 0!==Z?Z:"".concat(A,"-open"))),ref:(0,c.f3)(q)?(0,c.K4)(B,q.ref):void 0}),te=S;return te||-1===T.indexOf("contextMenu")||(te=["click"]),f.createElement(u.A,(0,r.A)({builtinPlacements:N},W,{prefixCls:A,ref:z,popupClassName:l()(M,(0,i.A)({},"".concat(A,"-show-arrow"),d)),popupStyle:V,action:T,showAction:R,hideAction:te,popupPlacement:x,popupAlign:C,popupTransitionName:w,popupAnimation:E,popupVisible:H,stretch:(G=e.minOverlayWidthMatchTrigger,J=e.alignPoint,("minOverlayWidthMatchTrigger"in e?G:!J)?"minWidth":""),popup:"function"==typeof D?Q:Q(),onPopupVisibleChange:K,onPopupClick:function(t){var n=e.onOverlayClick;Y(!1),n&&n(t)},getPopupContainer:P}),ee)}var E=f.forwardRef(w)},93592:function(e,t,n){n.d(t,{D0:function(){return be},_z:function(){return w},Op:function(){return Se},B8:function(){return we},EF:function(){return E},Ay:function(){return De},mN:function(){return Pe},FH:function(){return Te}});var r=n(96540),i=n(58168),o=n(80045),a=n(90675),u=n(10467),s=n(89379),l=n(60436),c=n(23029),f=n(92901),d=n(9417),v=n(85501),m=n(29426),h=n(64467),p=n(82546),g=n(43210),A=n(68210),y="RC_FORM_INTERNAL_HOOKS",b=function(){(0,A.Ay)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},w=r.createContext({getFieldValue:b,getFieldsValue:b,getFieldError:b,getFieldWarning:b,getFieldsError:b,isFieldsTouched:b,isFieldTouched:b,isFieldValidating:b,isFieldsValidating:b,resetFields:b,setFields:b,setFieldValue:b,setFieldsValue:b,validateFields:b,submit:b,getInternalHooks:function(){return b(),{dispatch:b,initEntityValue:b,registerField:b,useSubscribe:b,setInitialValues:b,destroyForm:b,setCallbacks:b,registerWatch:b,getFields:b,setValidateMessages:b,setPreserve:b,getInitialValue:b}}}),E=r.createContext(null);function C(e){return null==e?[]:Array.isArray(e)?e:[e]}var F=n(82284);function x(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var k=x(),N=n(73437),P=/%[sdj%]/g;function R(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function S(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=0,o=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(P,(function(e){if("%%"===e)return"%";if(i>=o)return e;switch(e){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(e){return"[Circular]"}break;default:return e}})):e}function M(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e)}function V(e,t,n){var r=0,i=e.length;!function o(a){if(a&&a.length)n(a);else{var u=r;r+=1,u<i?t(e[u],o):n([])}}([])}var I=function(e){(0,v.A)(n,e);var t=(0,m.A)(n);function n(e,r){var i;return(0,c.A)(this,n),i=t.call(this,"Async Validation Error"),(0,h.A)((0,d.A)(i),"errors",void 0),(0,h.A)((0,d.A)(i),"fields",void 0),i.errors=e,i.fields=r,i}return(0,f.A)(n)}((0,N.A)(Error));function O(e,t){return function(n){var r,i;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(i=n)&&void 0!==i.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function T(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===(0,F.A)(r)&&"object"===(0,F.A)(e[n])?e[n]=(0,s.A)((0,s.A)({},e[n]),r):e[n]=r}return e}var L,D="enum",q=function(e,t,n,r,i,o){!e.required||n.hasOwnProperty(e.field)&&!M(t,o||e.type)||r.push(S(i.messages.required,e.fullField))},j=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,W=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,$={integer:function(e){return $.number(e)&&parseInt(e,10)===e},float:function(e){return $.number(e)&&!$.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===(0,F.A)(e)&&!$.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(j)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(L)return L;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],o="(?:".concat(i.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(o,"$)")),u=new RegExp("^".concat(n,"$")),s=new RegExp("^".concat(o,"$")),l=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(o).concat(t(e),")"),"g")};l.v4=function(e){return e&&e.exact?u:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},l.v6=function(e){return e&&e.exact?s:new RegExp("".concat(t(e)).concat(o).concat(t(e)),"g")};var c=l.v4().source,f=l.v6().source,d="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(c,"|").concat(f,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return L=new RegExp("(?:^".concat(d,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(W)}},_=q,X=function(e,t,n,r,i){(/^\s+$/.test(t)||""===t)&&r.push(S(i.messages.whitespace,e.fullField))},Y=function(e,t,n,r,i){if(e.required&&void 0===t)q(e,t,n,r,i);else{var o=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(o)>-1?$[o](t)||r.push(S(i.messages.types[o],e.fullField,e.type)):o&&(0,F.A)(t)!==e.type&&r.push(S(i.messages.types[o],e.fullField,e.type))}},H=function(e,t,n,r,i){var o="number"==typeof e.len,a="number"==typeof e.min,u="number"==typeof e.max,s=t,l=null,c="number"==typeof t,f="string"==typeof t,d=Array.isArray(t);if(c?l="number":f?l="string":d&&(l="array"),!l)return!1;d&&(s=t.length),f&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?s!==e.len&&r.push(S(i.messages[l].len,e.fullField,e.len)):a&&!u&&s<e.min?r.push(S(i.messages[l].min,e.fullField,e.min)):u&&!a&&s>e.max?r.push(S(i.messages[l].max,e.fullField,e.max)):a&&u&&(s<e.min||s>e.max)&&r.push(S(i.messages[l].range,e.fullField,e.min,e.max))},z=function(e,t,n,r,i){e[D]=Array.isArray(e[D])?e[D]:[],-1===e[D].indexOf(t)&&r.push(S(i.messages[D],e.fullField,e[D].join(", ")))},U=function(e,t,n,r,i){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(S(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(S(i.messages.pattern.mismatch,e.fullField,t,e.pattern))))},B=function(e,t,n,r,i){var o=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(M(t,o)&&!e.required)return n();_(e,t,r,a,i,o),M(t,o)||Y(e,t,r,a,i)}n(a)},K={string:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(M(t,"string")&&!e.required)return n();_(e,t,r,o,i,"string"),M(t,"string")||(Y(e,t,r,o,i),H(e,t,r,o,i),U(e,t,r,o,i),!0===e.whitespace&&X(e,t,r,o,i))}n(o)},method:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(M(t)&&!e.required)return n();_(e,t,r,o,i),void 0!==t&&Y(e,t,r,o,i)}n(o)},number:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),M(t)&&!e.required)return n();_(e,t,r,o,i),void 0!==t&&(Y(e,t,r,o,i),H(e,t,r,o,i))}n(o)},boolean:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(M(t)&&!e.required)return n();_(e,t,r,o,i),void 0!==t&&Y(e,t,r,o,i)}n(o)},regexp:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(M(t)&&!e.required)return n();_(e,t,r,o,i),M(t)||Y(e,t,r,o,i)}n(o)},integer:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(M(t)&&!e.required)return n();_(e,t,r,o,i),void 0!==t&&(Y(e,t,r,o,i),H(e,t,r,o,i))}n(o)},float:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(M(t)&&!e.required)return n();_(e,t,r,o,i),void 0!==t&&(Y(e,t,r,o,i),H(e,t,r,o,i))}n(o)},array:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();_(e,t,r,o,i,"array"),null!=t&&(Y(e,t,r,o,i),H(e,t,r,o,i))}n(o)},object:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(M(t)&&!e.required)return n();_(e,t,r,o,i),void 0!==t&&Y(e,t,r,o,i)}n(o)},enum:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(M(t)&&!e.required)return n();_(e,t,r,o,i),void 0!==t&&z(e,t,r,o,i)}n(o)},pattern:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(M(t,"string")&&!e.required)return n();_(e,t,r,o,i),M(t,"string")||U(e,t,r,o,i)}n(o)},date:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(M(t,"date")&&!e.required)return n();var a;_(e,t,r,o,i),M(t,"date")||(a=t instanceof Date?t:new Date(t),Y(e,a,r,o,i),a&&H(e,a.getTime(),r,o,i))}n(o)},url:B,hex:B,email:B,required:function(e,t,n,r,i){var o=[],a=Array.isArray(t)?"array":(0,F.A)(t);_(e,t,r,o,i,a),n(o)},any:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(M(t)&&!e.required)return n();_(e,t,r,o,i)}n(o)}},Z=function(){function e(t){(0,c.A)(this,e),(0,h.A)(this,"rules",null),(0,h.A)(this,"_messages",k),this.define(t)}return(0,f.A)(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==(0,F.A)(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))}},{key:"messages",value:function(e){return e&&(this._messages=T(x(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof i&&(o=i,i={}),!this.rules||0===Object.keys(this.rules).length)return o&&o(null,r),Promise.resolve(r);if(i.messages){var a=this.messages();a===k&&(a=x()),T(a,i.messages),i.messages=a}else i.messages=this.messages();var u={};(i.keys||Object.keys(this.rules)).forEach((function(e){var i=n.rules[e],o=r[e];i.forEach((function(i){var a=i;if("function"==typeof a.transform){r===t&&(r=(0,s.A)({},r)),o=r[e]=a.transform(o);var l=a.type||(Array.isArray(o)?"array":(0,F.A)(o));M(o,l)||(a.type=l)}(a="function"==typeof a?{validator:a}:(0,s.A)({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),u[e]=u[e]||[],u[e].push({rule:a,value:o,source:r,field:e}))}))}));var c={};return function(e,t,n,r,i){if(t.first){var o=new Promise((function(t,o){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,(0,l.A)(e[n]||[]))})),t}(e);V(a,n,(function(e){return r(e),e.length?o(new I(e,R(e))):t(i)}))}));return o.catch((function(e){return e})),o}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],u=Object.keys(e),s=u.length,c=0,f=[],d=new Promise((function(t,o){var d=function(e){if(f.push.apply(f,e),++c===s)return r(f),f.length?o(new I(f,R(f))):t(i)};u.length||(r(f),t(i)),u.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?V(r,n,d):function(e,t,n){var r=[],i=0,o=e.length;function a(e){r.push.apply(r,(0,l.A)(e||[])),++i===o&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,d)}))}));return d.catch((function(e){return e})),d}(u,i,(function(t,n){var o,a=t.rule,u=!("object"!==a.type&&"array"!==a.type||"object"!==(0,F.A)(a.fields)&&"object"!==(0,F.A)(a.defaultField));function f(e,t){return(0,s.A)((0,s.A)({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat((0,l.A)(a.fullFields),[e]):[e]})}function d(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],d=Array.isArray(o)?o:[o];!i.suppressWarning&&d.length&&e.warning("async-validator:",d),d.length&&void 0!==a.message&&(d=[].concat(a.message));var v=d.map(O(a,r));if(i.first&&v.length)return c[a.field]=1,n(v);if(u){if(a.required&&!t.value)return void 0!==a.message?v=[].concat(a.message).map(O(a,r)):i.error&&(v=[i.error(a,S(i.messages.required,a.field))]),n(v);var m={};a.defaultField&&Object.keys(t.value).map((function(e){m[e]=a.defaultField})),m=(0,s.A)((0,s.A)({},m),t.rule.fields);var h={};Object.keys(m).forEach((function(e){var t=m[e],n=Array.isArray(t)?t:[t];h[e]=n.map(f.bind(null,e))}));var p=new e(h);p.messages(i.messages),t.rule.options&&(t.rule.options.messages=i.messages,t.rule.options.error=i.error),p.validate(t.value,t.rule.options||i,(function(e){var t=[];v&&v.length&&t.push.apply(t,(0,l.A)(v)),e&&e.length&&t.push.apply(t,(0,l.A)(e)),n(t.length?t:null)}))}else n(v)}if(u=u&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)o=a.asyncValidator(a,t.value,d,t.source,i);else if(a.validator){try{o=a.validator(a,t.value,d,t.source,i)}catch(e){var v,m;null===(v=(m=console).error)||void 0===v||v.call(m,e),i.suppressValidatorError||setTimeout((function(){throw e}),0),d(e.message)}!0===o?d():!1===o?d("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):o instanceof Array?d(o):o instanceof Error&&d(o.message)}o&&o.then&&o.then((function(){return d()}),(function(e){return d(e)}))}),(function(e){!function(e){for(var t,n,i=[],a={},u=0;u<e.length;u++)t=e[u],n=void 0,Array.isArray(t)?i=(n=i).concat.apply(n,(0,l.A)(t)):i.push(t);i.length?(a=R(i),o(i,a)):o(null,r)}(e)}),r)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!K.hasOwnProperty(e.type))throw new Error(S("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?K.required:K[this.getType(e)]||void 0}}]),e}();(0,h.A)(Z,"register",(function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");K[e]=t})),(0,h.A)(Z,"warning",(function(){})),(0,h.A)(Z,"messages",k),(0,h.A)(Z,"validators",K);var G=Z,J="'${name}' is not a valid ${type}",Q={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:J,method:J,array:J,object:J,number:J,date:J,boolean:J,integer:J,float:J,regexp:J,email:J,url:J,hex:J},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},ee=n(20488),te=G;function ne(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}var re="CODE_LOGIC_ERROR";function ie(e,t,n,r,i){return oe.apply(this,arguments)}function oe(){return oe=(0,u.A)((0,a.A)().mark((function e(t,n,i,o,u){var c,f,d,v,m,p,g,A,y;return(0,a.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(c=(0,s.A)({},i)).ruleIndex,te.warning=function(){},c.validator&&(f=c.validator,c.validator=function(){try{return f.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(re)}}),d=null,c&&"array"===c.type&&c.defaultField&&(d=c.defaultField,delete c.defaultField),v=new te((0,h.A)({},t,[c])),m=(0,ee.h)(Q,o.validateMessages),v.messages(m),p=[],e.prev=10,e.next=13,Promise.resolve(v.validate((0,h.A)({},t,n),(0,s.A)({},o)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(p=e.t0.errors.map((function(e,t){var n=e.message,i=n===re?m.default:n;return r.isValidElement(i)?r.cloneElement(i,{key:"error_".concat(t)}):i})));case 18:if(p.length||!d){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return ie("".concat(t,".").concat(n),e,d,o,u)})));case 21:return g=e.sent,e.abrupt("return",g.reduce((function(e,t){return[].concat((0,l.A)(e),(0,l.A)(t))}),[]));case 23:return A=(0,s.A)((0,s.A)({},i),{},{name:t,enum:(i.enum||[]).join(", ")},u),y=p.map((function(e){return"string"==typeof e?ne(e,A):e})),e.abrupt("return",y);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),oe.apply(this,arguments)}function ae(e,t,n,r,i,o){var l,c=e.join("."),f=n.map((function(e,t){var n=e.validator,r=(0,s.A)((0,s.A)({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var i=!1,o=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){(0,A.Ay)(!i,"Your validator function has already return a promise. `callback` will be ignored."),i||r.apply(void 0,t)}))}));i=o&&"function"==typeof o.then&&"function"==typeof o.catch,(0,A.Ay)(i,"`callback` is deprecated. Please return a promise instead."),i&&o.then((function(){r()})).catch((function(e){r(e||" ")}))}),r})).sort((function(e,t){var n=e.warningOnly,r=e.ruleIndex,i=t.warningOnly,o=t.ruleIndex;return!!n==!!i?r-o:n?1:-1}));if(!0===i)l=new Promise(function(){var e=(0,u.A)((0,a.A)().mark((function e(n,i){var u,s,l;return(0,a.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u=0;case 1:if(!(u<f.length)){e.next=12;break}return s=f[u],e.next=5,ie(c,t,s,r,o);case 5:if(!(l=e.sent).length){e.next=9;break}return i([{errors:l,rule:s}]),e.abrupt("return");case 9:u+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var d=f.map((function(e){return ie(c,t,e,r,o).then((function(t){return{errors:t,rule:e}}))}));l=(i?function(e){return se.apply(this,arguments)}(d):function(e){return ue.apply(this,arguments)}(d)).then((function(e){return Promise.reject(e)}))}return l.catch((function(e){return e})),l}function ue(){return(ue=(0,u.A)((0,a.A)().mark((function e(t){return(0,a.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,(0,l.A)(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function se(){return(se=(0,u.A)((0,a.A)().mark((function e(t){var n;return(0,a.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var le=n(16300);function ce(e){return C(e)}function fe(e,t){var n={};return t.forEach((function(t){var r=(0,le.A)(e,t);n=(0,ee.A)(n,t,r)})),n}function de(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return ve(t,e,n)}))}function ve(e,t){return!(!e||!t)&&!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t}))}function me(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===(0,F.A)(t.target)&&e in t.target?t.target[e]:t}function he(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],o=t-n;return o>0?[].concat((0,l.A)(e.slice(0,n)),[i],(0,l.A)(e.slice(n,t)),(0,l.A)(e.slice(t+1,r))):o<0?[].concat((0,l.A)(e.slice(0,t)),(0,l.A)(e.slice(t+1,n+1)),[i],(0,l.A)(e.slice(n+1,r))):e}var pe=["name"],ge=[];function Ae(e,t,n,r,i,o){return"function"==typeof e?e(t,n,"source"in o?{source:o.source}:{}):r!==i}var ye=function(e){(0,v.A)(n,e);var t=(0,m.A)(n);function n(e){var i;return(0,c.A)(this,n),i=t.call(this,e),(0,h.A)((0,d.A)(i),"state",{resetCount:0}),(0,h.A)((0,d.A)(i),"cancelRegisterFunc",null),(0,h.A)((0,d.A)(i),"mounted",!1),(0,h.A)((0,d.A)(i),"touched",!1),(0,h.A)((0,d.A)(i),"dirty",!1),(0,h.A)((0,d.A)(i),"validatePromise",void 0),(0,h.A)((0,d.A)(i),"prevValidating",void 0),(0,h.A)((0,d.A)(i),"errors",ge),(0,h.A)((0,d.A)(i),"warnings",ge),(0,h.A)((0,d.A)(i),"cancelRegister",(function(){var e=i.props,t=e.preserve,n=e.isListField,r=e.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(n,t,ce(r)),i.cancelRegisterFunc=null})),(0,h.A)((0,d.A)(i),"getNamePath",(function(){var e=i.props,t=e.name,n=e.fieldContext.prefixName,r=void 0===n?[]:n;return void 0!==t?[].concat((0,l.A)(r),(0,l.A)(t)):[]})),(0,h.A)((0,d.A)(i),"getRules",(function(){var e=i.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(r):e}))})),(0,h.A)((0,d.A)(i),"refresh",(function(){i.mounted&&i.setState((function(e){return{resetCount:e.resetCount+1}}))})),(0,h.A)((0,d.A)(i),"metaCache",null),(0,h.A)((0,d.A)(i),"triggerMetaEvent",(function(e){var t=i.props.onMetaChange;if(t){var n=(0,s.A)((0,s.A)({},i.getMeta()),{},{destroy:e});(0,g.A)(i.metaCache,n)||t(n),i.metaCache=n}else i.metaCache=null})),(0,h.A)((0,d.A)(i),"onStoreChange",(function(e,t,n){var r=i.props,o=r.shouldUpdate,a=r.dependencies,u=void 0===a?[]:a,s=r.onReset,l=n.store,c=i.getNamePath(),f=i.getValue(e),d=i.getValue(l),v=t&&de(t,c);switch("valueUpdate"!==n.type||"external"!==n.source||(0,g.A)(f,d)||(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=ge,i.warnings=ge,i.triggerMetaEvent()),n.type){case"reset":if(!t||v)return i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=ge,i.warnings=ge,i.triggerMetaEvent(),null==s||s(),void i.refresh();break;case"remove":if(o)return void i.reRender();break;case"setField":var m=n.data;if(v)return"touched"in m&&(i.touched=m.touched),"validating"in m&&!("originRCField"in m)&&(i.validatePromise=m.validating?Promise.resolve([]):null),"errors"in m&&(i.errors=m.errors||ge),"warnings"in m&&(i.warnings=m.warnings||ge),i.dirty=!0,i.triggerMetaEvent(),void i.reRender();if("value"in m&&de(t,c,!0))return void i.reRender();if(o&&!c.length&&Ae(o,e,l,f,d,n))return void i.reRender();break;case"dependenciesUpdate":if(u.map(ce).some((function(e){return de(n.relatedFields,e)})))return void i.reRender();break;default:if(v||(!u.length||c.length||o)&&Ae(o,e,l,f,d,n))return void i.reRender()}!0===o&&i.reRender()})),(0,h.A)((0,d.A)(i),"validateRules",(function(e){var t=i.getNamePath(),n=i.getValue(),r=e||{},o=r.triggerName,s=r.validateOnly,c=void 0!==s&&s,f=Promise.resolve().then((0,u.A)((0,a.A)().mark((function r(){var u,s,c,d,v,m,h;return(0,a.A)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(u=i.props,s=u.validateFirst,c=void 0!==s&&s,d=u.messageVariables,v=u.validateDebounce,m=i.getRules(),o&&(m=m.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||C(t).includes(o)}))),!v||!o){r.next=10;break}return r.next=8,new Promise((function(e){setTimeout(e,v)}));case 8:if(i.validatePromise===f){r.next=10;break}return r.abrupt("return",[]);case 10:return(h=ae(t,n,m,e,c,d)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ge;if(i.validatePromise===f){var t;i.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,i=e.errors,o=void 0===i?ge:i;t?r.push.apply(r,(0,l.A)(o)):n.push.apply(n,(0,l.A)(o))})),i.errors=n,i.warnings=r,i.triggerMetaEvent(),i.reRender()}})),r.abrupt("return",h);case 13:case"end":return r.stop()}}),r)}))));return c||(i.validatePromise=f,i.dirty=!0,i.errors=ge,i.warnings=ge,i.triggerMetaEvent(),i.reRender()),f})),(0,h.A)((0,d.A)(i),"isFieldValidating",(function(){return!!i.validatePromise})),(0,h.A)((0,d.A)(i),"isFieldTouched",(function(){return i.touched})),(0,h.A)((0,d.A)(i),"isFieldDirty",(function(){return!(!i.dirty&&void 0===i.props.initialValue)||void 0!==(0,i.props.fieldContext.getInternalHooks(y).getInitialValue)(i.getNamePath())})),(0,h.A)((0,d.A)(i),"getErrors",(function(){return i.errors})),(0,h.A)((0,d.A)(i),"getWarnings",(function(){return i.warnings})),(0,h.A)((0,d.A)(i),"isListField",(function(){return i.props.isListField})),(0,h.A)((0,d.A)(i),"isList",(function(){return i.props.isList})),(0,h.A)((0,d.A)(i),"isPreserve",(function(){return i.props.preserve})),(0,h.A)((0,d.A)(i),"getMeta",(function(){return i.prevValidating=i.isFieldValidating(),{touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:null===i.validatePromise}})),(0,h.A)((0,d.A)(i),"getOnlyChild",(function(e){if("function"==typeof e){var t=i.getMeta();return(0,s.A)((0,s.A)({},i.getOnlyChild(e(i.getControlled(),t,i.props.fieldContext))),{},{isFunction:!0})}var n=(0,p.A)(e);return 1===n.length&&r.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),(0,h.A)((0,d.A)(i),"getValue",(function(e){var t=i.props.fieldContext.getFieldsValue,n=i.getNamePath();return(0,le.A)(e||t(!0),n)})),(0,h.A)((0,d.A)(i),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=i.props,n=t.name,r=t.trigger,o=t.validateTrigger,a=t.getValueFromEvent,u=t.normalize,l=t.valuePropName,c=t.getValueProps,f=t.fieldContext,d=void 0!==o?o:f.validateTrigger,v=i.getNamePath(),m=f.getInternalHooks,p=f.getFieldsValue,g=m(y).dispatch,A=i.getValue(),b=c||function(e){return(0,h.A)({},l,e)},w=e[r],E=void 0!==n?b(A):{},F=(0,s.A)((0,s.A)({},e),E);return F[r]=function(){var e;i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e=a?a.apply(void 0,n):me.apply(void 0,[l].concat(n)),u&&(e=u(e,A,p(!0))),g({type:"updateValue",namePath:v,value:e}),w&&w.apply(void 0,n)},C(d||[]).forEach((function(e){var t=F[e];F[e]=function(){t&&t.apply(void 0,arguments);var n=i.props.rules;n&&n.length&&g({type:"validateField",namePath:v,triggerName:e})}})),F})),e.fieldContext&&(0,(0,e.fieldContext.getInternalHooks)(y).initEntityValue)((0,d.A)(i)),i}return(0,f.A)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(y).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,i=this.getOnlyChild(n),o=i.child;return i.isFunction?e=o:r.isValidElement(o)?e=r.cloneElement(o,this.getControlled(o.props)):((0,A.Ay)(!o,"`children` of Field is not validate ReactElement."),e=o),r.createElement(r.Fragment,{key:t},e)}}]),n}(r.Component);(0,h.A)(ye,"contextType",w),(0,h.A)(ye,"defaultProps",{trigger:"onChange",valuePropName:"value"});var be=function(e){var t=e.name,n=(0,o.A)(e,pe),a=r.useContext(w),u=r.useContext(E),s=void 0!==t?ce(t):void 0,l="keep";return n.isListField||(l="_".concat((s||[]).join("_"))),r.createElement(ye,(0,i.A)({key:l,name:s,isListField:!!u},n,{fieldContext:a}))},we=function(e){var t=e.name,n=e.initialValue,i=e.children,o=e.rules,a=e.validateTrigger,u=e.isListField,c=r.useContext(w),f=r.useContext(E),d=r.useRef({keys:[],id:0}).current,v=r.useMemo((function(){var e=ce(c.prefixName)||[];return[].concat((0,l.A)(e),(0,l.A)(ce(t)))}),[c.prefixName,t]),m=r.useMemo((function(){return(0,s.A)((0,s.A)({},c),{},{prefixName:v})}),[c,v]),h=r.useMemo((function(){return{getKey:function(e){var t=v.length,n=e[t];return[d.keys[n],e.slice(t+1)]}}}),[v]);return"function"!=typeof i?((0,A.Ay)(!1,"Form.List only accepts function as children."),null):r.createElement(E.Provider,{value:h},r.createElement(w.Provider,{value:m},r.createElement(be,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:null!=u?u:!!f},(function(e,t){var n=e.value,r=void 0===n?[]:n,o=e.onChange,a=c.getFieldValue,u=function(){return a(v||[])||[]},s={add:function(e,t){var n=u();t>=0&&t<=n.length?(d.keys=[].concat((0,l.A)(d.keys.slice(0,t)),[d.id],(0,l.A)(d.keys.slice(t))),o([].concat((0,l.A)(n.slice(0,t)),[e],(0,l.A)(n.slice(t))))):(d.keys=[].concat((0,l.A)(d.keys),[d.id]),o([].concat((0,l.A)(n),[e]))),d.id+=1},remove:function(e){var t=u(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(d.keys=d.keys.filter((function(e,t){return!n.has(t)})),o(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=u();e<0||e>=n.length||t<0||t>=n.length||(d.keys=he(d.keys,e,t),o(he(n,e,t)))}}},f=r||[];return Array.isArray(f)||(f=[]),i(f.map((function(e,t){var n=d.keys[t];return void 0===n&&(d.keys[t]=d.id,n=d.keys[t],d.id+=1),{name:t,key:n,isListField:!0}})),s,t)}))))},Ee=n(5544),Ce="__@field_split__";function Fe(e){return e.map((function(e){return"".concat((0,F.A)(e),":").concat(e)})).join(Ce)}var xe=function(){function e(){(0,c.A)(this,e),(0,h.A)(this,"kvs",new Map)}return(0,f.A)(e,[{key:"set",value:function(e,t){this.kvs.set(Fe(e),t)}},{key:"get",value:function(e){return this.kvs.get(Fe(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(Fe(e))}},{key:"map",value:function(e){return(0,l.A)(this.kvs.entries()).map((function(t){var n=(0,Ee.A)(t,2),r=n[0],i=n[1],o=r.split(Ce);return e({key:o.map((function(e){var t=e.match(/^([^:]*):(.*)$/),n=(0,Ee.A)(t,3),r=n[1],i=n[2];return"number"===r?Number(i):i})),value:i})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}(),ke=["name"],Ne=(0,f.A)((function e(t){var n=this;(0,c.A)(this,e),(0,h.A)(this,"formHooked",!1),(0,h.A)(this,"forceRootUpdate",void 0),(0,h.A)(this,"subscribable",!0),(0,h.A)(this,"store",{}),(0,h.A)(this,"fieldEntities",[]),(0,h.A)(this,"initialValues",{}),(0,h.A)(this,"callbacks",{}),(0,h.A)(this,"validateMessages",null),(0,h.A)(this,"preserve",null),(0,h.A)(this,"lastValidatePromise",null),(0,h.A)(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),(0,h.A)(this,"getInternalHooks",(function(e){return e===y?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):((0,A.Ay)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),(0,h.A)(this,"useSubscribe",(function(e){n.subscribable=e})),(0,h.A)(this,"prevWithoutPreserves",null),(0,h.A)(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,i=(0,ee.h)(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;i=(0,ee.A)(i,n,(0,le.A)(e,n))})),n.prevWithoutPreserves=null,n.updateStore(i)}})),(0,h.A)(this,"destroyForm",(function(){var e=new xe;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e})),(0,h.A)(this,"getInitialValue",(function(e){var t=(0,le.A)(n.initialValues,e);return e.length?(0,ee.h)(t):t})),(0,h.A)(this,"setCallbacks",(function(e){n.callbacks=e})),(0,h.A)(this,"setValidateMessages",(function(e){n.validateMessages=e})),(0,h.A)(this,"setPreserve",(function(e){n.preserve=e})),(0,h.A)(this,"watchList",[]),(0,h.A)(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),(0,h.A)(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),(0,h.A)(this,"timeoutId",null),(0,h.A)(this,"warningUnhooked",(function(){})),(0,h.A)(this,"updateStore",(function(e){n.store=e})),(0,h.A)(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),(0,h.A)(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new xe;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),(0,h.A)(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=ce(e);return t.get(n)||{INVALIDATE_NAME_PATH:ce(e)}}))})),(0,h.A)(this,"getFieldsValue",(function(e,t){var r,i,o;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,i=t):e&&"object"===(0,F.A)(e)&&(o=e.strict,i=e.filter),!0===r&&!i)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),u=[];return a.forEach((function(e){var t,n,a,s,l="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(o){if(null!==(a=(s=e).isList)&&void 0!==a&&a.call(s))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(i){var c="getMeta"in e?e.getMeta():null;i(c)&&u.push(l)}else u.push(l)})),fe(n.store,u.map(ce))})),(0,h.A)(this,"getFieldValue",(function(e){n.warningUnhooked();var t=ce(e);return(0,le.A)(n.store,t)})),(0,h.A)(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:ce(e[n]),errors:[],warnings:[]}}))})),(0,h.A)(this,"getFieldError",(function(e){n.warningUnhooked();var t=ce(e);return n.getFieldsError([t])[0].errors})),(0,h.A)(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=ce(e);return n.getFieldsError([t])[0].warnings})),(0,h.A)(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,o=t[0],a=t[1],u=!1;0===t.length?i=null:1===t.length?Array.isArray(o)?(i=o.map(ce),u=!1):(i=null,u=o):(i=o.map(ce),u=a);var s=n.getFieldEntities(!0),c=function(e){return e.isFieldTouched()};if(!i)return u?s.every((function(e){return c(e)||e.isList()})):s.some(c);var f=new xe;i.forEach((function(e){f.set(e,[])})),s.forEach((function(e){var t=e.getNamePath();i.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&f.update(n,(function(t){return[].concat((0,l.A)(t),[e])}))}))}));var d=function(e){return e.some(c)},v=f.map((function(e){return e.value}));return u?v.every(d):v.some(d)})),(0,h.A)(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),(0,h.A)(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(ce);return t.some((function(e){var t=e.getNamePath();return de(r,t)&&e.isFieldValidating()}))})),(0,h.A)(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),(0,h.A)(this,"resetWithFieldInitialValue",(function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=new xe,i=n.getFieldEntities(!0);i.forEach((function(e){var t=e.props.initialValue,n=e.getNamePath();if(void 0!==t){var i=r.get(n)||new Set;i.add({entity:e,value:t}),r.set(n,i)}})),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach((function(t){var n,i=r.get(t);i&&(n=e).push.apply(n,(0,l.A)((0,l.A)(i).map((function(e){return e.entity}))))}))):e=i,e.forEach((function(e){if(void 0!==e.props.initialValue){var i=e.getNamePath();if(void 0!==n.getInitialValue(i))(0,A.Ay)(!1,"Form already set 'initialValues' with path '".concat(i.join("."),"'. Field can not overwrite it."));else{var o=r.get(i);if(o&&o.size>1)(0,A.Ay)(!1,"Multiple Field with path '".concat(i.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(o){var a=n.getFieldValue(i);e.isListField()||t.skipExist&&void 0!==a||n.updateStore((0,ee.A)(n.store,i,(0,l.A)(o)[0].value))}}}}))})),(0,h.A)(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore((0,ee.h)(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(ce);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore((0,ee.A)(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),(0,h.A)(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var i=e.name,a=(0,o.A)(e,ke),u=ce(i);r.push(u),"value"in a&&n.updateStore((0,ee.A)(n.store,u,a.value)),n.notifyObservers(t,[u],{type:"setField",data:e})})),n.notifyWatch(r)})),(0,h.A)(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=e.getMeta(),i=(0,s.A)((0,s.A)({},r),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(i,"originRCField",{value:!0}),i}))})),(0,h.A)(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===(0,le.A)(n.store,r)&&n.updateStore((0,ee.A)(n.store,r,t))}})),(0,h.A)(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),(0,h.A)(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(i)&&(!r||o.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!ve(e.getNamePath(),t)}))){var u=n.store;n.updateStore((0,ee.A)(u,t,a,!0)),n.notifyObservers(u,[t],{type:"remove"}),n.triggerDependenciesUpdate(u,t)}}n.notifyWatch([t])}})),(0,h.A)(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var i=e.namePath,o=e.triggerName;n.validateFields([i],{triggerName:o})}})),(0,h.A)(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var i=(0,s.A)((0,s.A)({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,i)}))}else n.forceRootUpdate()})),(0,h.A)(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat((0,l.A)(r))}),r})),(0,h.A)(this,"updateValue",(function(e,t){var r=ce(e),i=n.store;n.updateStore((0,ee.A)(n.store,r,t)),n.notifyObservers(i,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var o=n.triggerDependenciesUpdate(i,r),a=n.callbacks.onValuesChange;a&&a(fe(n.store,[r]),n.getFieldsValue()),n.triggerOnFieldsChange([r].concat((0,l.A)(o)))})),(0,h.A)(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=(0,ee.h)(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),(0,h.A)(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),(0,h.A)(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],i=new xe;return n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=ce(t);i.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))})),function e(n){(i.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var i=n.getNamePath();n.isFieldDirty()&&i.length&&(r.push(i),e(i))}}))}(e),r})),(0,h.A)(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var i=n.getFields();if(t){var o=new xe;t.forEach((function(e){var t=e.name,n=e.errors;o.set(t,n)})),i.forEach((function(e){e.errors=o.get(e.name)||e.errors}))}var a=i.filter((function(t){var n=t.name;return de(e,n)}));a.length&&r(a,i)}})),(0,h.A)(this,"validateFields",(function(e,t){var r,i;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,i=t):i=e;var o=!!r,a=o?r.map(ce):[],u=[],c=String(Date.now()),f=new Set,d=i||{},v=d.recursive,m=d.dirty;n.getFieldEntities(!0).forEach((function(e){if(o||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!m||e.isFieldDirty())){var t=e.getNamePath();if(f.add(t.join(c)),!o||de(a,t,v)){var r=e.validateRules((0,s.A)({validateMessages:(0,s.A)((0,s.A)({},Q),n.validateMessages)},i));u.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],i=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?i.push.apply(i,(0,l.A)(n)):r.push.apply(r,(0,l.A)(n))})),r.length?Promise.reject({name:t,errors:r,warnings:i}):{name:t,errors:r,warnings:i}})))}}}));var h=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(i,o){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&o(r),i(r))}))}))})):Promise.resolve([])}(u);n.lastValidatePromise=h,h.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var p=h.then((function(){return n.lastValidatePromise===h?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==h})}));p.catch((function(e){return e}));var g=a.filter((function(e){return f.has(e.join(c))}));return n.triggerOnFieldsChange(g),p})),(0,h.A)(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t})),Pe=function(e){var t=r.useRef(),n=r.useState({}),i=(0,Ee.A)(n,2)[1];if(!t.current)if(e)t.current=e;else{var o=new Ne((function(){i({})}));t.current=o.getForm()}return[t.current]},Re=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Se=function(e){var t=e.validateMessages,n=e.onFormChange,i=e.onFormFinish,o=e.children,a=r.useContext(Re),u=r.useRef({});return r.createElement(Re.Provider,{value:(0,s.A)((0,s.A)({},a),{},{validateMessages:(0,s.A)((0,s.A)({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:u.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){i&&i(e,{values:t,forms:u.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(u.current=(0,s.A)((0,s.A)({},u.current),{},(0,h.A)({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=(0,s.A)({},u.current);delete t[e],u.current=t,a.unregisterForm(e)}})},o)},Me=Re,Ve=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],Ie=function(e,t){var n=e.name,a=e.initialValues,u=e.fields,c=e.form,f=e.preserve,d=e.children,v=e.component,m=void 0===v?"form":v,h=e.validateMessages,p=e.validateTrigger,g=void 0===p?"onChange":p,A=e.onValuesChange,b=e.onFieldsChange,C=e.onFinish,x=e.onFinishFailed,k=(0,o.A)(e,Ve),N=r.useContext(Me),P=Pe(c),R=(0,Ee.A)(P,1)[0],S=R.getInternalHooks(y),M=S.useSubscribe,V=S.setInitialValues,I=S.setCallbacks,O=S.setValidateMessages,T=S.setPreserve,L=S.destroyForm;r.useImperativeHandle(t,(function(){return R})),r.useEffect((function(){return N.registerForm(n,R),function(){N.unregisterForm(n)}}),[N,R,n]),O((0,s.A)((0,s.A)({},N.validateMessages),h)),I({onValuesChange:A,onFieldsChange:function(e){if(N.triggerFormChange(n,e),b){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];b.apply(void 0,[e].concat(r))}},onFinish:function(e){N.triggerFormFinish(n,e),C&&C(e)},onFinishFailed:x}),T(f);var D,q=r.useRef(null);V(a,!q.current),q.current||(q.current=!0),r.useEffect((function(){return L}),[]);var j="function"==typeof d;D=j?d(R.getFieldsValue(!0),R):d,M(!j);var W=r.useRef();r.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==(0,F.A)(e)||"object"!==(0,F.A)(t))return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return(0,l.A)(i).every((function(n){var r=e[n],i=t[n];return"function"==typeof r&&"function"==typeof i||r===i}))})(W.current||[],u||[])||R.setFields(u||[]),W.current=u}),[u,R]);var $=r.useMemo((function(){return(0,s.A)((0,s.A)({},R),{},{validateTrigger:g})}),[R,g]),_=r.createElement(E.Provider,{value:null},r.createElement(w.Provider,{value:$},D));return!1===m?_:r.createElement(m,(0,i.A)({},k,{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),R.submit()},onReset:function(e){var t;e.preventDefault(),R.resetFields(),null===(t=k.onReset)||void 0===t||t.call(k,e)}}),_)};function Oe(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var Te=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[0],o=t[1],a=void 0===o?{}:o,u=function(e){return e&&!!e._init}(a)?{form:a}:a,s=u.form,l=(0,r.useState)(),c=(0,Ee.A)(l,2),f=c[0],d=c[1],v=(0,r.useMemo)((function(){return Oe(f)}),[f]),m=(0,r.useRef)(v);m.current=v;var h=(0,r.useContext)(w),p=s||h,g=p&&p._init,A=ce(i),b=(0,r.useRef)(A);return b.current=A,(0,r.useEffect)((function(){if(g){var e=p.getFieldsValue,t=(0,p.getInternalHooks)(y).registerWatch,n=function(e,t){var n=u.preserve?t:e;return"function"==typeof i?i(n):(0,le.A)(n,b.current)},r=t((function(e,t){var r=n(e,t),i=Oe(r);m.current!==i&&(m.current=i,d(r))})),o=n(e(),e(!0));return f!==o&&d(o),r}}),[g]),f},Le=r.forwardRef(Ie);Le.FormProvider=Se,Le.Field=be,Le.List=we,Le.useForm=Pe,Le.useWatch=Te;var De=Le},33205:function(e,t,n){n.d(t,{A:function(){return $}});var r=n(58168),i=n(89379),o=n(64467),a=n(5544),u=n(82284),s=n(80045),l=n(46942),c=n.n(l),f=n(92830),d=n(12533),v=n(96540),m=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],h=v.createContext(null),p=0;function g(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,i=(0,v.useState)(n?"loading":"normal"),o=(0,a.A)(i,2),u=o[0],s=o[1],l=(0,v.useRef)(!1),c="error"===u;(0,v.useEffect)((function(){var e=!0;return function(e){return new Promise((function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e}))}(t).then((function(t){!t&&e&&s("error")})),function(){e=!1}}),[t]),(0,v.useEffect)((function(){n&&!l.current?s("loading"):c&&s("normal")}),[t]);var f=function(){s("normal")};return[function(e){l.current=!1,"loading"===u&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(l.current=!0,f())},c&&r?{src:r}:{onLoad:f,src:t},u]}var A=n(33766),y=n(69916),b=n(16928),w=n(43210),E=n(25371),C={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1},F=n(68210);function x(e,t,n,r){var i=t+n,a=(n-r)/2;if(n>r){if(t>0)return(0,o.A)({},e,a);if(t<0&&i<r)return(0,o.A)({},e,-a)}else if(t<0||i>r)return(0,o.A)({},e,t<0?a:-a);return{}}function k(e,t,n,r){var o=(0,f.XV)(),a=o.width,u=o.height,s=null;return e<=a&&t<=u?s={x:0,y:0}:(e>a||t>u)&&(s=(0,i.A)((0,i.A)({},x("x",n,e,a)),x("y",r,t,u))),s}function N(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}var P=n(45062),R=n(57557),S=function(e){var t=e.visible,n=e.maskTransitionName,r=e.getContainer,a=e.prefixCls,u=e.rootClassName,s=e.icons,l=e.countRender,f=e.showSwitch,d=e.showProgress,m=e.current,p=e.transform,g=e.count,A=e.scale,y=e.minScale,w=e.maxScale,E=e.closeIcon,C=e.onSwitchLeft,F=e.onSwitchRight,x=e.onClose,k=e.onZoomIn,N=e.onZoomOut,S=e.onRotateRight,M=e.onRotateLeft,V=e.onFlipX,I=e.onFlipY,O=e.toolbarRender,T=e.zIndex,L=(0,v.useContext)(h),D=s.rotateLeft,q=s.rotateRight,j=s.zoomIn,W=s.zoomOut,$=s.close,_=s.left,X=s.right,Y=s.flipX,H=s.flipY,z="".concat(a,"-operations-operation");v.useEffect((function(){var e=function(e){e.keyCode===b.A.ESC&&x()};return t&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[t]);var U=[{icon:H,onClick:I,type:"flipY"},{icon:Y,onClick:V,type:"flipX"},{icon:D,onClick:M,type:"rotateLeft"},{icon:q,onClick:S,type:"rotateRight"},{icon:W,onClick:N,type:"zoomOut",disabled:A<=y},{icon:j,onClick:k,type:"zoomIn",disabled:A===w}].map((function(e){var t,n=e.icon,r=e.onClick,i=e.type,u=e.disabled;return v.createElement("div",{className:c()(z,(t={},(0,o.A)(t,"".concat(a,"-operations-operation-").concat(i),!0),(0,o.A)(t,"".concat(a,"-operations-operation-disabled"),!!u),t)),onClick:r,key:i},n)})),B=v.createElement("div",{className:"".concat(a,"-operations")},U);return v.createElement(R.Ay,{visible:t,motionName:n},(function(e){var t=e.className,n=e.style;return v.createElement(P.A,{open:!0,getContainer:null!=r?r:document.body},v.createElement("div",{className:c()("".concat(a,"-operations-wrapper"),t,u),style:(0,i.A)((0,i.A)({},n),{},{zIndex:T})},null===E?null:v.createElement("button",{className:"".concat(a,"-close"),onClick:x},E||$),f&&v.createElement(v.Fragment,null,v.createElement("div",{className:c()("".concat(a,"-switch-left"),(0,o.A)({},"".concat(a,"-switch-left-disabled"),0===m)),onClick:C},_),v.createElement("div",{className:c()("".concat(a,"-switch-right"),(0,o.A)({},"".concat(a,"-switch-right-disabled"),m===g-1)),onClick:F},X)),v.createElement("div",{className:"".concat(a,"-footer")},d&&v.createElement("div",{className:"".concat(a,"-progress")},l?l(m+1,g):"".concat(m+1," / ").concat(g)),O?O(B,(0,i.A)({icons:{flipYIcon:U[0],flipXIcon:U[1],rotateLeftIcon:U[2],rotateRightIcon:U[3],zoomOutIcon:U[4],zoomInIcon:U[5]},actions:{onFlipY:I,onFlipX:V,onRotateLeft:M,onRotateRight:S,onZoomOut:N,onZoomIn:k},transform:p},L?{current:m,total:g}:{})):B)))}))},M=["fallback","src","imgRef"],V=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],I=function(e){var t=e.fallback,n=e.src,i=e.imgRef,o=(0,s.A)(e,M),u=g({src:n,fallback:t}),l=(0,a.A)(u,2),c=l[0],f=l[1];return v.createElement("img",(0,r.A)({ref:function(e){i.current=e,c(e)}},o,f))},O=function(e){var t=e.prefixCls,n=e.src,u=e.alt,l=e.fallback,d=e.movable,m=void 0===d||d,p=e.onClose,g=e.visible,x=e.icons,P=void 0===x?{}:x,R=e.rootClassName,M=e.closeIcon,O=e.getContainer,T=e.current,L=void 0===T?0:T,D=e.count,q=void 0===D?1:D,j=e.countRender,W=e.scaleStep,$=void 0===W?.5:W,_=e.minScale,X=void 0===_?1:_,Y=e.maxScale,H=void 0===Y?50:Y,z=e.transitionName,U=void 0===z?"zoom":z,B=e.maskTransitionName,K=void 0===B?"fade":B,Z=e.imageRender,G=e.imgCommonProps,J=e.toolbarRender,Q=e.onTransform,ee=e.onChange,te=(0,s.A)(e,V),ne=(0,v.useRef)(),re=(0,v.useContext)(h),ie=re&&q>1,oe=re&&q>=1,ae=(0,v.useState)(!0),ue=(0,a.A)(ae,2),se=ue[0],le=ue[1],ce=function(e,t,n,r){var o=(0,v.useRef)(null),u=(0,v.useRef)([]),s=(0,v.useState)(C),l=(0,a.A)(s,2),c=l[0],d=l[1],m=function(e,t){null===o.current&&(u.current=[],o.current=(0,E.A)((function(){d((function(e){var n=e;return u.current.forEach((function(e){n=(0,i.A)((0,i.A)({},n),e)})),o.current=null,null==r||r({transform:n,action:t}),n}))}))),u.current.push((0,i.A)((0,i.A)({},c),e))};return{transform:c,resetTransform:function(e){d(C),r&&!(0,w.A)(C,c)&&r({transform:C,action:e})},updateTransform:m,dispatchZoomChange:function(r,i,o,a,u){var s=e.current,l=s.width,d=s.height,v=s.offsetWidth,h=s.offsetHeight,p=s.offsetLeft,g=s.offsetTop,A=r,y=c.scale*r;y>n?(y=n,A=n/c.scale):y<t&&(A=(y=u?y:t)/c.scale);var b=null!=o?o:innerWidth/2,w=null!=a?a:innerHeight/2,E=A-1,C=E*l*.5,F=E*d*.5,x=E*(b-c.x-p),k=E*(w-c.y-g),N=c.x-(x-C),P=c.y-(k-F);if(r<1&&1===y){var R=v*y,S=h*y,M=(0,f.XV)(),V=M.width,I=M.height;R<=V&&S<=I&&(N=0,P=0)}m({x:N,y:P,scale:y},i)}}}(ne,X,H,Q),fe=ce.transform,de=ce.resetTransform,ve=ce.updateTransform,me=ce.dispatchZoomChange,he=function(e,t,n,r,o,u,s){var l=o.rotate,c=o.scale,f=o.x,d=o.y,m=(0,v.useState)(!1),h=(0,a.A)(m,2),p=h[0],g=h[1],A=(0,v.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),b=function(e){n&&p&&u({x:e.pageX-A.current.diffX,y:e.pageY-A.current.diffY},"move")},w=function(){if(n&&p){g(!1);var t=A.current,r=t.transformX,o=t.transformY;if(f===r||d===o)return;var a=e.current.offsetWidth*c,s=e.current.offsetHeight*c,v=e.current.getBoundingClientRect(),m=v.left,h=v.top,y=l%180!=0,b=k(y?s:a,y?a:s,m,h);b&&u((0,i.A)({},b),"dragRebound")}};return(0,v.useEffect)((function(){var e,n,r,i;if(t){r=(0,y.A)(window,"mouseup",w,!1),i=(0,y.A)(window,"mousemove",b,!1);try{window.top!==window.self&&(e=(0,y.A)(window.top,"mouseup",w,!1),n=(0,y.A)(window.top,"mousemove",b,!1))}catch(e){(0,F.$e)(!1,"[rc-image] ".concat(e))}}return function(){var t,o,a,u;null===(t=r)||void 0===t||t.remove(),null===(o=i)||void 0===o||o.remove(),null===(a=e)||void 0===a||a.remove(),null===(u=n)||void 0===u||u.remove()}}),[n,p,f,d,l,t]),{isMoving:p,onMouseDown:function(e){t&&0===e.button&&(e.preventDefault(),e.stopPropagation(),A.current={diffX:e.pageX-f,diffY:e.pageY-d,transformX:f,transformY:d},g(!0))},onMouseMove:b,onMouseUp:w,onWheel:function(e){if(n&&0!=e.deltaY){var t=Math.abs(e.deltaY/100),i=1+Math.min(t,1)*r;e.deltaY>0&&(i=1/i),s(i,"wheel",e.clientX,e.clientY)}}}}(ne,m,g,$,fe,ve,me),pe=he.isMoving,ge=he.onMouseDown,Ae=he.onWheel,ye=function(e,t,n,r,o,u,s){var l=o.rotate,c=o.scale,f=o.x,d=o.y,m=(0,v.useState)(!1),h=(0,a.A)(m,2),p=h[0],g=h[1],A=(0,v.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),b=function(e){A.current=(0,i.A)((0,i.A)({},A.current),e)};return(0,v.useEffect)((function(){var e;return n&&t&&(e=(0,y.A)(window,"touchmove",(function(e){return e.preventDefault()}),{passive:!1})),function(){var t;null===(t=e)||void 0===t||t.remove()}}),[n,t]),{isTouching:p,onTouchStart:function(e){if(t){e.stopPropagation(),g(!0);var n=e.touches,r=void 0===n?[]:n;r.length>1?b({point1:{x:r[0].clientX,y:r[0].clientY},point2:{x:r[1].clientX,y:r[1].clientY},eventType:"touchZoom"}):b({point1:{x:r[0].clientX-f,y:r[0].clientY-d},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,r=A.current,i=r.point1,o=r.point2,l=r.eventType;if(n.length>1&&"touchZoom"===l){var c={x:n[0].clientX,y:n[0].clientY},f={x:n[1].clientX,y:n[1].clientY},d=function(e,t,n,r){var i=N(e,n),o=N(t,r);if(0===i&&0===o)return[e.x,e.y];var a=i/(i+o);return[e.x+a*(t.x-e.x),e.y+a*(t.y-e.y)]}(i,o,c,f),v=(0,a.A)(d,2),m=v[0],h=v[1],p=N(c,f)/N(i,o);s(p,"touchZoom",m,h,!0),b({point1:c,point2:f,eventType:"touchZoom"})}else"move"===l&&(u({x:n[0].clientX-i.x,y:n[0].clientY-i.y},"move"),b({eventType:"move"}))},onTouchEnd:function(){if(n){if(p&&g(!1),b({eventType:"none"}),r>c)return u({x:0,y:0,scale:r},"touchZoom");var t=e.current.offsetWidth*c,o=e.current.offsetHeight*c,a=e.current.getBoundingClientRect(),s=a.left,f=a.top,d=l%180!=0,v=k(d?o:t,d?t:o,s,f);v&&u((0,i.A)({},v),"dragRebound")}}}}(ne,m,g,X,fe,ve,me),be=ye.isTouching,we=ye.onTouchStart,Ee=ye.onTouchMove,Ce=ye.onTouchEnd,Fe=fe.rotate,xe=fe.scale,ke=c()((0,o.A)({},"".concat(t,"-moving"),pe));(0,v.useEffect)((function(){se||le(!0)}),[se]);var Ne=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),L>0&&(le(!1),de("prev"),null==ee||ee(L-1,L))},Pe=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),L<q-1&&(le(!1),de("next"),null==ee||ee(L+1,L))},Re=function(e){g&&ie&&(e.keyCode===b.A.LEFT?Ne():e.keyCode===b.A.RIGHT&&Pe())};(0,v.useEffect)((function(){var e=(0,y.A)(window,"keydown",Re,!1);return function(){e.remove()}}),[g,ie,L]);var Se=v.createElement(I,(0,r.A)({},G,{width:e.width,height:e.height,imgRef:ne,className:"".concat(t,"-img"),alt:u,style:{transform:"translate3d(".concat(fe.x,"px, ").concat(fe.y,"px, 0) scale3d(").concat(fe.flipX?"-":"").concat(xe,", ").concat(fe.flipY?"-":"").concat(xe,", 1) rotate(").concat(Fe,"deg)"),transitionDuration:(!se||be)&&"0s"},fallback:l,src:n,onWheel:Ae,onMouseDown:ge,onDoubleClick:function(e){g&&(1!==xe?ve({x:0,y:0,scale:1},"doubleClick"):me(1+$,"doubleClick",e.clientX,e.clientY))},onTouchStart:we,onTouchMove:Ee,onTouchEnd:Ce,onTouchCancel:Ce}));return v.createElement(v.Fragment,null,v.createElement(A.A,(0,r.A)({transitionName:U,maskTransitionName:K,closable:!1,keyboard:!0,prefixCls:t,onClose:p,visible:g,classNames:{wrapper:ke},rootClassName:R,getContainer:O},te,{afterClose:function(){de("close")}}),v.createElement("div",{className:"".concat(t,"-img-wrapper")},Z?Z(Se,(0,i.A)({transform:fe},re?{current:L}:{})):Se)),v.createElement(S,{visible:g,transform:fe,maskTransitionName:K,closeIcon:M,getContainer:O,prefixCls:t,rootClassName:R,icons:P,countRender:j,showSwitch:ie,showProgress:oe,current:L,count:q,scale:xe,minScale:X,maxScale:H,toolbarRender:J,onSwitchLeft:Ne,onSwitchRight:Pe,onZoomIn:function(){me(1+$,"zoomIn")},onZoomOut:function(){me(1/(1+$),"zoomOut")},onRotateRight:function(){ve({rotate:Fe+90},"rotateRight")},onRotateLeft:function(){ve({rotate:Fe-90},"rotateLeft")},onFlipX:function(){ve({flipX:!fe.flipX},"flipX")},onFlipY:function(){ve({flipY:!fe.flipY},"flipY")},onClose:p,zIndex:void 0!==te.zIndex?te.zIndex+1:void 0}))},T=n(60436),L=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],D=["src"],q=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],j=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],W=function(e){var t=e.src,n=e.alt,l=e.onPreviewClose,A=e.prefixCls,y=void 0===A?"rc-image":A,b=e.previewPrefixCls,w=void 0===b?"".concat(y,"-preview"):b,E=e.placeholder,C=e.fallback,F=e.width,x=e.height,k=e.style,N=e.preview,P=void 0===N||N,R=e.className,S=e.onClick,M=e.onError,V=e.wrapperClassName,I=e.wrapperStyle,T=e.rootClassName,L=(0,s.A)(e,q),D=E&&!0!==E,W="object"===(0,u.A)(P)?P:{},$=W.src,_=W.visible,X=void 0===_?void 0:_,Y=W.onVisibleChange,H=void 0===Y?l:Y,z=W.getContainer,U=void 0===z?void 0:z,B=W.mask,K=W.maskClassName,Z=W.movable,G=W.icons,J=W.scaleStep,Q=W.minScale,ee=W.maxScale,te=W.imageRender,ne=W.toolbarRender,re=(0,s.A)(W,j),ie=null!=$?$:t,oe=(0,d.A)(!!X,{value:X,onChange:H}),ae=(0,a.A)(oe,2),ue=ae[0],se=ae[1],le=g({src:t,isCustomPlaceholder:D,fallback:C}),ce=(0,a.A)(le,3),fe=ce[0],de=ce[1],ve=ce[2],me=(0,v.useState)(null),he=(0,a.A)(me,2),pe=he[0],ge=he[1],Ae=(0,v.useContext)(h),ye=!!P,be=c()(y,V,T,(0,o.A)({},"".concat(y,"-error"),"error"===ve)),we=(0,v.useMemo)((function(){var t={};return m.forEach((function(n){void 0!==e[n]&&(t[n]=e[n])})),t}),m.map((function(t){return e[t]}))),Ee=function(e,t){var n=v.useState((function(){return String(p+=1)})),r=(0,a.A)(n,1)[0],i=v.useContext(h),o={data:t,canPreview:e};return v.useEffect((function(){if(i)return i.register(r,o)}),[]),v.useEffect((function(){i&&i.register(r,o)}),[e,t]),r}(ye,(0,v.useMemo)((function(){return(0,i.A)((0,i.A)({},we),{},{src:ie})}),[ie,we]));return v.createElement(v.Fragment,null,v.createElement("div",(0,r.A)({},L,{className:be,onClick:ye?function(e){var t=(0,f.A3)(e.target),n=t.left,r=t.top;Ae?Ae.onPreview(Ee,n,r):(ge({x:n,y:r}),se(!0)),null==S||S(e)}:S,style:(0,i.A)({width:F,height:x},I)}),v.createElement("img",(0,r.A)({},we,{className:c()("".concat(y,"-img"),(0,o.A)({},"".concat(y,"-img-placeholder"),!0===E),R),style:(0,i.A)({height:x},k),ref:fe},de,{width:F,height:x,onError:M})),"loading"===ve&&v.createElement("div",{"aria-hidden":"true",className:"".concat(y,"-placeholder")},E),B&&ye&&v.createElement("div",{className:c()("".concat(y,"-mask"),K),style:{display:"none"===(null==k?void 0:k.display)?"none":void 0}},B)),!Ae&&ye&&v.createElement(O,(0,r.A)({"aria-hidden":!ue,visible:ue,prefixCls:w,onClose:function(){se(!1),ge(null)},mousePosition:pe,src:ie,alt:n,fallback:C,getContainer:U,icons:G,movable:Z,scaleStep:J,minScale:Q,maxScale:ee,rootClassName:T,imageRender:te,imgCommonProps:we,toolbarRender:ne},re)))};W.PreviewGroup=function(e){var t,n=e.previewPrefixCls,l=void 0===n?"rc-image-preview":n,c=e.children,f=e.icons,p=void 0===f?{}:f,g=e.items,A=e.preview,y=e.fallback,b="object"===(0,u.A)(A)?A:{},w=b.visible,E=b.onVisibleChange,C=b.getContainer,F=b.current,x=b.movable,k=b.minScale,N=b.maxScale,P=b.countRender,R=b.closeIcon,S=b.onChange,M=b.onTransform,V=b.toolbarRender,I=b.imageRender,q=(0,s.A)(b,L),j=function(e){var t=v.useState({}),n=(0,a.A)(t,2),r=n[0],u=n[1],s=v.useCallback((function(e,t){return u((function(n){return(0,i.A)((0,i.A)({},n),{},(0,o.A)({},e,t))})),function(){u((function(t){var n=(0,i.A)({},t);return delete n[e],n}))}}),[]);return[v.useMemo((function(){return e?e.map((function(e){if("string"==typeof e)return{data:{src:e}};var t={};return Object.keys(e).forEach((function(n){["src"].concat((0,T.A)(m)).includes(n)&&(t[n]=e[n])})),{data:t}})):Object.keys(r).reduce((function(e,t){var n=r[t],i=n.canPreview,o=n.data;return i&&e.push({data:o,id:t}),e}),[])}),[e,r]),s]}(g),W=(0,a.A)(j,2),$=W[0],_=W[1],X=(0,d.A)(0,{value:F}),Y=(0,a.A)(X,2),H=Y[0],z=Y[1],U=(0,v.useState)(!1),B=(0,a.A)(U,2),K=B[0],Z=B[1],G=(null===(t=$[H])||void 0===t?void 0:t.data)||{},J=G.src,Q=(0,s.A)(G,D),ee=(0,d.A)(!!w,{value:w,onChange:function(e,t){null==E||E(e,t,H)}}),te=(0,a.A)(ee,2),ne=te[0],re=te[1],ie=(0,v.useState)(null),oe=(0,a.A)(ie,2),ae=oe[0],ue=oe[1],se=v.useCallback((function(e,t,n){var r=$.findIndex((function(t){return t.id===e}));re(!0),ue({x:t,y:n}),z(r<0?0:r),Z(!0)}),[$]);v.useEffect((function(){ne?K||z(0):Z(!1)}),[ne]);var le=v.useMemo((function(){return{register:_,onPreview:se}}),[_,se]);return v.createElement(h.Provider,{value:le},c,v.createElement(O,(0,r.A)({"aria-hidden":!ne,movable:x,visible:ne,prefixCls:l,closeIcon:R,onClose:function(){re(!1),ue(null)},mousePosition:ae,imgCommonProps:Q,src:J,fallback:y,icons:p,minScale:k,maxScale:N,getContainer:C,current:H,count:$.length,countRender:P,onTransform:M,toolbarRender:V,imageRender:I,onChange:function(e,t){z(e),null==S||S(e,t)}},q)))},W.displayName="Image";var $=W}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkaldehyde=self.webpackChunkaldehyde||[]).push([[689],{85889:function(e,t,n){function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(95748),a=n(23018),c=n(56840),l=n(65224),u=n(49938),s=n(12242),f=n(6991),p=n(47282),d=n(9404),g=n(46059),h=p("draft_tree_data_support"),y=h?l:c,v=d.List,m=d.Repeat,S={insertAtomicBlock:function(e,t,n){var o=e.getCurrentContent(),c=e.getSelection(),l=u.removeRange(o,c,"backward"),p=l.getSelectionAfter(),d=u.splitBlock(l,p),g=d.getSelectionAfter(),S=u.setBlockType(d,g,"atomic"),b=a.create({entity:t}),k={key:f(),type:"atomic",text:n,characterList:v(m(b,n.length))},C={key:f(),type:"unstyled"};h&&(k=r({},k,{nextSibling:C.key}),C=r({},C,{prevSibling:k.key}));var _=[new y(k),new y(C)],E=i.createFromArray(_),O=u.replaceWithFragment(S,g,E),D=O.merge({selectionBefore:c,selectionAfter:O.getSelectionAfter().set("hasFocus",!0)});return s.push(e,D,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o,i=e.getCurrentContent(),a=e.getSelection();if("before"===r||"after"===r){var c=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=g(i,t,c,r)}else{var l=u.removeRange(i,n,"backward"),f=l.getSelectionAfter(),p=l.getBlockForKey(f.getFocusKey());if(0===f.getStartOffset())o=g(l,t,p,"before");else if(f.getEndOffset()===p.getLength())o=g(l,t,p,"after");else{var d=u.splitBlock(l,f),h=d.getSelectionAfter(),y=d.getBlockForKey(h.getFocusKey());o=g(d,t,y,"before")}}var v=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return s.push(e,v,"move-block")}};e.exports=S},95748:function(e,t,n){var r=n(9404).OrderedMap,o={createFromArray:function(e){return r(e.map((function(e){return[e.getKey(),e]})))}};e.exports=o},19981:function(e,t,n){function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(18227),i=n(679),a=n(9404),c=a.List,l=a.Repeat,u=a.Record,s=function(){return!0},f=u({start:null,end:null}),p=u({start:null,end:null,decoratorKey:null,leaves:null}),d={generate:function(e,t,n){var r=t.getLength();if(!r)return c.of(new p({start:0,end:0,decoratorKey:null,leaves:c.of(new f({start:0,end:0}))}));var i=[],a=n?n.getDecorations(t,e):c(l(null,r)),u=t.getCharacterList();return o(a,g,s,(function(e,t){var n,r,l,d;i.push(new p({start:e,end:t,decoratorKey:a.get(e),leaves:(n=u.slice(e,t).toList(),r=e,l=[],d=n.map((function(e){return e.getStyle()})).toList(),o(d,g,s,(function(e,t){l.push(new f({start:e+r,end:t+r}))})),c(l))}))})),c(i)},fromJS:function(e){var t=e.leaves,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["leaves"]);return new p(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},n,{leaves:null!=t?c(Array.isArray(t)?t:i(t)).map((function(e){return f(e)})):null}))}};function g(e,t){return e===t}e.exports=d},23018:function(e,t,n){var r=n(9404),o=r.Map,i=r.OrderedSet,a=r.Record,c=i(),l={style:c,entity:null},u=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.getStyle=function(){return this.get("style")},a.getEntity=function(){return this.get("entity")},a.hasStyle=function(e){return this.getStyle().includes(e)},r.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return r.create(n)},r.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return r.create(n)},r.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return r.create(n)},r.create=function(e){if(!e)return s;var t=o({style:c,entity:null}).merge(e),n=f.get(t);if(n)return n;var i=new r(t);return f=f.set(t,i),i},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?i(t):t,entity:Array.isArray(n)?i(n):n})},r}(a(l)),s=new u,f=o([[o(l),s]]);u.EMPTY=s,e.exports=u},69083:function(e,t,n){var r=n(9404).List,o=function(){function e(e){var t,n;n=void 0,(t="_decorators")in this?Object.defineProperty(this,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[t]=n,this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(n,e,t)&&(function(e,t,n,r){for(var o=t;o<n;o++)e[o]=r}(n,e,t,o+"."+i),i++)}),t)})),r(n)},t.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},t.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();e.exports=o},56840:function(e,t,n){var r=n(23018),o=n(18227),i=n(9404),a=i.List,c=i.Map,l=i.OrderedSet,u=i.Record,s=i.Repeat,f=l(),p=function(e){var t,n;function i(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=a(s(r.EMPTY,n.length))),e}(t))||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var c=i.prototype;return c.getKey=function(){return this.get("key")},c.getType=function(){return this.get("type")},c.getText=function(){return this.get("text")},c.getCharacterList=function(){return this.get("characterList")},c.getLength=function(){return this.getText().length},c.getDepth=function(){return this.get("depth")},c.getData=function(){return this.get("data")},c.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():f},c.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},c.findStyleRanges=function(e,t){o(this.getCharacterList(),d,e,t)},c.findEntityRanges=function(e,t){o(this.getCharacterList(),g,e,t)},i}(u({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:c()}));function d(e,t){return e.getStyle()===t.getStyle()}function g(e,t){return e.getEntity()===t.getEntity()}e.exports=p},65224:function(e,t,n){var r=n(23018),o=n(18227),i=n(9404),a=i.List,c=i.Map,l=i.OrderedSet,u=i.Record,s=i.Repeat,f=l(),p={parent:null,characterList:a(),data:c(),depth:0,key:"",text:"",type:"unstyled",children:a(),prevSibling:null,nextSibling:null},d=function(e,t){return e.getStyle()===t.getStyle()},g=function(e,t){return e.getEntity()===t.getEntity()},h=function(e){var t,n;function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=a(s(r.EMPTY,n.length))),e}(t))||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var c=i.prototype;return c.getKey=function(){return this.get("key")},c.getType=function(){return this.get("type")},c.getText=function(){return this.get("text")},c.getCharacterList=function(){return this.get("characterList")},c.getLength=function(){return this.getText().length},c.getDepth=function(){return this.get("depth")},c.getData=function(){return this.get("data")},c.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():f},c.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},c.getChildKeys=function(){return this.get("children")},c.getParentKey=function(){return this.get("parent")},c.getPrevSiblingKey=function(){return this.get("prevSibling")},c.getNextSiblingKey=function(){return this.get("nextSibling")},c.findStyleRanges=function(e,t){o(this.getCharacterList(),d,e,t)},c.findEntityRanges=function(e,t){o(this.getCharacterList(),g,e,t)},i}(u(p));e.exports=h},97656:function(e,t,n){function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(95748),a=n(23018),c=n(56840),l=n(65224),u=n(11608),s=n(91381),f=n(6991),p=n(679),d=n(47282),g=n(9404),h=n(91721),y=g.List,v=g.Record,m=g.Repeat,S=g.Map,b=g.OrderedMap,k=v({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),C=d("draft_tree_data_support")?l:c,_=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var c=o.prototype;return c.getEntityMap=function(){return u},c.getBlockMap=function(){return this.get("blockMap")},c.getSelectionBefore=function(){return this.get("selectionBefore")},c.getSelectionAfter=function(){return this.get("selectionAfter")},c.getBlockForKey=function(e){return this.getBlockMap().get(e)},c.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},c.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},c.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},c.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},c.getBlocksAsArray=function(){return this.getBlockMap().toArray()},c.getFirstBlock=function(){return this.getBlockMap().first()},c.getLastBlock=function(){return this.getBlockMap().last()},c.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},c.getLastCreatedEntityKey=function(){return u.__getLastCreatedEntityKey()},c.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},c.createEntity=function(e,t,n){return u.__create(e,t,n),this},c.mergeEntityData=function(e,t){return u.__mergeData(e,t),this},c.replaceEntityData=function(e,t){return u.__replaceData(e,t),this},c.addEntity=function(e){return u.__add(e),this},c.getEntity=function(e){return u.__get(e)},c.getAllEntities=function(){return u.__getAll()},c.loadWithEntities=function(e){return u.__loadWithEntities(e)},o.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,r=i.createFromArray(n),a=r.isEmpty()?new s:s.createEmpty(r.first().getKey());return new o({blockMap:r,entityMap:t||u,selectionBefore:a,selectionAfter:a})},o.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t).map((function(e){return e=h(e),new C({key:f(),text:e,type:"unstyled",characterList:y(m(a.EMPTY,e.length))})}));return o.createFromBlockArray(n)},o.fromJS=function(e){return new o(r({},e,{blockMap:b(e.blockMap).map(o.createContentBlockFromJS),selectionBefore:new s(e.selectionBefore),selectionAfter:new s(e.selectionAfter)}))},o.createContentBlockFromJS=function(e){var t=e.characterList;return new C(r({},e,{data:S(e.data),characterList:null!=t?y((Array.isArray(t)?t:p(t)).map((function(e){return a.fromJS(e)}))):void 0}))},o}(k);e.exports=_},94092:function(e,t,n){var r=n(23018),o=n(9404).Map,i={add:function(e,t,n){return a(e,t,n,!0)},remove:function(e,t,n){return a(e,t,n,!1)}};function a(e,t,n,i){var a=e.getBlockMap(),c=t.getStartKey(),l=t.getStartOffset(),u=t.getEndKey(),s=t.getEndOffset(),f=a.skipUntil((function(e,t){return t===c})).takeUntil((function(e,t){return t===u})).concat(o([[u,a.get(u)]])).map((function(e,t){var o,a;c===u?(o=l,a=s):(o=t===c?l:0,a=t===u?s:e.getLength());for(var f,p=e.getCharacterList();o<a;)f=p.get(o),p=p.set(o,i?r.applyStyle(f,n):r.removeStyle(f,n)),o++;return e.set("characterList",p)}));return e.merge({blockMap:a.merge(f),selectionBefore:t,selectionAfter:t})}e.exports=i},47378:function(e,t,n){function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(14134),i=n(88372),a=n(35389),c=n(9404),l=n(90646),u=n(56408),s=c.Map,f={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},p=o.isBrowser("IE <= 11"),d=function(){function e(e){var t=this;r(this,"observer",void 0),r(this,"container",void 0),r(this,"mutations",void 0),r(this,"onCharData",void 0),this.container=e,this.mutations=s();var n=a(e);n.MutationObserver&&!p?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||l(!1),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,f):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=s(),t},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,n=e.target,r=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return p?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var n=u(i(e.target));this.mutations=this.mutations.set(n,t)}},e}();e.exports=d},13387:function(e,t,n){var r=n(96540),o=n(98003),i=(0,n(9404).Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:r.createElement("ul",{className:o("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:r.createElement("ol",{className:o("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:r.createElement("pre",{className:o("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=i},87918:function(e){e.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},35143:function(e,t,n){var r=n(85889),o=n(95748),i=n(23018),a=n(69083),c=n(56840),l=n(97656),u=n(13387),s=n(87918),f=n(63299),p=n(81124),d=n(11608),g=n(49938),h=n(5407),y=n(12242),v=n(59414),m=n(66429),S=n(7018),b=n(91381),k=n(7470),C=n(50428),_=n(6991),E=n(57811),O=n(30894),D={Editor:f,EditorBlock:p,EditorState:y,CompositeDecorator:a,Entity:d,EntityInstance:h,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:c,ContentState:l,RawDraftContentState:m,SelectionState:b,AtomicBlockUtils:r,KeyBindingUtil:v,Modifier:g,RichUtils:S,DefaultDraftBlockRenderMap:u,DefaultDraftInlineStyle:s,convertFromHTML:n(24712),convertFromRaw:C,convertToRaw:k,genKey:_,getDefaultKeyBinding:E,getVisibleSelectionRect:O};e.exports=D},63299:function(e,t,n){var r=n(45228);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){c(e,t,n[t])}))}return e}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var u=n(13387),s=n(87918),f=n(13136),p=n(79777),d=n(42474),g=n(97784),h=n(74576),y=n(49884),v=n(953),m=n(12242),S=n(96540),b=n(93529),k=n(2935),C=n(14134),_=n(98003),E=n(6991),O=n(57811),D=n(97392),x=n(47282),w=n(90646),K=n(55291),T=n(56408),M=C.isBrowser("IE"),B=!M,A={edit:g,composite:f,drag:d,cut:null,render:null},F=!1,R=function(e){function t(){return e.apply(this,arguments)||this}l(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(S.Component),L=function(e){function t(t){var n;return c(a(n=e.call(this,t)||this),"_blockSelectEvents",void 0),c(a(n),"_clipboard",void 0),c(a(n),"_handler",void 0),c(a(n),"_dragCount",void 0),c(a(n),"_internalDrag",void 0),c(a(n),"_editorKey",void 0),c(a(n),"_placeholderAccessibilityID",void 0),c(a(n),"_latestEditorState",void 0),c(a(n),"_latestCommittedEditorState",void 0),c(a(n),"_pendingStateFromBeforeInput",void 0),c(a(n),"_onBeforeInput",void 0),c(a(n),"_onBlur",void 0),c(a(n),"_onCharacterData",void 0),c(a(n),"_onCompositionEnd",void 0),c(a(n),"_onCompositionStart",void 0),c(a(n),"_onCopy",void 0),c(a(n),"_onCut",void 0),c(a(n),"_onDragEnd",void 0),c(a(n),"_onDragOver",void 0),c(a(n),"_onDragStart",void 0),c(a(n),"_onDrop",void 0),c(a(n),"_onInput",void 0),c(a(n),"_onFocus",void 0),c(a(n),"_onKeyDown",void 0),c(a(n),"_onKeyPress",void 0),c(a(n),"_onKeyUp",void 0),c(a(n),"_onMouseDown",void 0),c(a(n),"_onMouseUp",void 0),c(a(n),"_onPaste",void 0),c(a(n),"_onSelect",void 0),c(a(n),"editor",void 0),c(a(n),"editorContainer",void 0),c(a(n),"focus",void 0),c(a(n),"blur",void 0),c(a(n),"setMode",void 0),c(a(n),"exitCurrentMode",void 0),c(a(n),"restoreEditorDOM",void 0),c(a(n),"setClipboard",void 0),c(a(n),"getClipboard",void 0),c(a(n),"getEditorKey",void 0),c(a(n),"update",void 0),c(a(n),"onDragEnter",void 0),c(a(n),"onDragLeave",void 0),c(a(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),c(a(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=k.getScrollParent(o),a=e||D(i),c=a.x,l=a.y;K(o)||w(!1),o.focus(),i===window?window.scrollTo(c,l):b.setTop(i,l),r||n.update(m.forceSelection(t,t.getSelection()))}})),c(a(n),"blur",(function(){var e=n.editor;e&&(K(e)||w(!1),e.blur())})),c(a(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,a=t.onCopy,c=i({},A.edit);r&&(c.onPaste=r),o&&(c.onCut=o),a&&(c.onCopy=a);var l=i({},A,{edit:c});n._handler=l[e]})),c(a(n),"exitCurrentMode",(function(){n.setMode("edit")})),c(a(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),c(a(n),"setClipboard",(function(e){n._clipboard=e})),c(a(n),"getClipboard",(function(){return n._clipboard})),c(a(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),c(a(n),"onDragEnter",(function(){n._dragCount++})),c(a(n),"onDragLeave",(function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()})),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=t.editorKey||E(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=t.editorState,n._latestCommittedEditorState=t.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},n.state={contentsKey:0},n}l(t,e);var r=t.prototype;return r._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&(h?h((function(){return r(t,n)})):r(t,n))}}},r._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},r._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:T(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return S.createElement(y,e)}return null},r._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},r.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,a=e.customStyleFn,c=e.customStyleMap,l=e.editorState,u=e.preventScroll,f=e.readOnly,d=e.textAlignment,g=e.textDirectionality,h=_({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===d,"DraftEditor/alignRight":"right"===d,"DraftEditor/alignCenter":"center"===d}),y=this.props.role||"textbox",v="combobox"===y?!!this.props.ariaExpanded:null,m={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:i({},s,c),customStyleFn:a,editorKey:this._editorKey,editorState:l,preventScroll:u,textDirectionality:g};return S.createElement("div",{className:h},this._renderPlaceholder(),S.createElement("div",{className:_("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},S.createElement("div",{"aria-activedescendant":f?null:this.props.ariaActiveDescendantID,"aria-autocomplete":f?null:this.props.ariaAutoComplete,"aria-controls":f?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":f?null:v,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":f?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:_({notranslate:!f,"public/DraftEditor/content":!0}),contentEditable:!f,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:f?null:y,spellCheck:B&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},S.createElement(R,{editor:this,editorState:l}),S.createElement(p,o({},m,{key:"contents"+this.state.contentsKey})))))},r.componentDidMount=function(){this._blockSelectEvents=!1,!F&&x("draft_ods_enabled")&&(F=!0,v.initODS()),this.setMode("edit"),M&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):n.g.execCommand("AutoUrlDetect",!1,!1))},r.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(S.Component);c(L,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:u,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:O,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),e.exports=L},81124:function(e,t,n){var r=n(45228);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}var i=n(55203),a=n(3885),c=n(96540),l=n(93529),u=n(2935),s=n(68307),f=n(55822),p=n(98003),d=n(78527),g=n(97392),h=n(41401),y=n(90646),v=n(55291),m=n(56408),S=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},b=function(e){var t,n;function r(){for(var t,n,r,o,i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return o=void 0,(r="_node")in(n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(a))||this))?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var b=r.prototype;return b.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||S(e.selection,e.block.getKey())&&e.forceSelection},b.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this._node;if(null!=n){var r,o=u.getScrollParent(n),i=g(o);if(o===window){var a=d(n);(r=a.y+a.height-h().height)>0&&window.scrollTo(i.x,i.y+r+10)}else v(n)||y(!1),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&l.setTop(o,l.getTop(o)+r+10)}}}},b._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),l=this.props.tree.size-1,u=S(this.props.selection,n);return this.props.tree.map((function(p,d){var g=p.get("leaves");if(0===g.size)return null;var h=g.size-1,y=g.map((function(o,s){var f=a.encode(n,d,s),p=o.get("start"),g=o.get("end");return c.createElement(i,{key:f,offsetKey:f,block:t,start:p,selection:u?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(p,g),styleSet:t.getInlineStyleAt(p),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:d===l&&s===h})})).toArray(),v=p.get("decoratorKey");if(null==v)return y;if(!e.props.decorator)return y;var S=m(e.props.decorator),b=S.getComponentForKey(v);if(!b)return y;var k=S.getPropsForKey(v),C=a.encode(n,d,0),_=g.first().get("start"),E=g.last().get("end"),O=r.slice(_,E),D=t.getEntityAt(p.get("start")),x=f.getHTMLDirIfDifferent(s.getDirection(O),e.props.direction),w={contentState:e.props.contentState,decoratedText:O,dir:x,start:_,end:E,blockKey:n,entityKey:D,offsetKey:C};return c.createElement(b,o({},k,w,{key:C}),y)})).toArray()},b.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=p({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return c.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(c.Component);e.exports=b},22784:function(e,t,n){var r=n(45228);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=n(84379),l=n(3885),u=n(96540),s=n(93529),f=n(2935),p=n(78527),d=n(97392),g=n(41401),h=n(9404),y=n(90646),v=n(55291),m=(h.List,function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t}),S=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),r=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:r}},b=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},k=function(e,t,n,r,o,a){var c={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:a},l=r(e);return l&&(c.className=l),void 0!==o.customEditable&&(c=i({},c,{contentEditable:o.customEditable,suppressContentEditableWarning:!0})),c},C=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return a(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(r))||this),"wrapperRef",u.createRef()),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var h=r.prototype;return h.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,o=t.tree,i=!n.getChildKeys().isEmpty(),a=n!==e.block||o!==e.tree||r!==e.direction||m(e.selection,e.block.getKey())&&e.forceSelection;return i||a},h.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=f.getScrollParent(n),i=d(o);if(o===window){var a=p(n);(r=a.y+a.height-g().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{v(n)||y(!1);var c=n;(r=c.offsetHeight+c.offsetTop-(o.offsetHeight+i.y))>0&&s.setTop(o,s.getTop(o)+r+10)}}}},h.render=function(){var e=this,t=this.props,n=t.block,a=t.blockRenderMap,s=t.blockRendererFn,f=t.blockStyleFn,p=t.contentState,d=t.decorator,g=t.editorKey,h=t.editorState,y=t.customStyleFn,v=t.customStyleMap,C=t.direction,_=t.forceSelection,E=t.selection,O=t.tree,D=null;n.children.size&&(D=n.children.reduce((function(t,n){var o=l.encode(n,0,0),c=p.getBlockForKey(n),d=b(c,s),y=d.CustomComponent||r,v=S(c,a),m=v.Element,C=v.wrapperTemplate,_=k(c,g,o,f,d,null),E=i({},e.props,{tree:h.getBlockTree(n),blockProps:d.customProps,offsetKey:o,block:c});return t.push(u.createElement(m,_,u.createElement(y,E))),!C||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(c,p)||function(e,t,n){var r=[],o=!0,i=!1,a=void 0;try{for(var c,s=n.reverse()[Symbol.iterator]();!(o=(c=s.next()).done);o=!0){var f=c.value;if(f.type!==t)break;r.push(f)}}catch(e){i=!0,a=e}finally{try{o||null==s.return||s.return()}finally{if(i)throw a}}n.splice(n.indexOf(r[0]),r.length+1);var p=r.reverse(),d=p[0].key;n.push(u.cloneElement(e,{key:"".concat(d,"-wrap"),"data-offset-key":l.encode(d,0,0)},p))}(C,m,t),t}),[]));var x=n.getKey(),w=l.encode(x,0,0),K=b(n,s),T=K.CustomComponent,M=null!=T?u.createElement(T,o({},this.props,{tree:h.getBlockTree(x),blockProps:K.customProps,offsetKey:w,block:n})):u.createElement(c,{block:n,children:D,contentState:p,customStyleFn:y,customStyleMap:v,decorator:d,direction:C,forceSelection:_,hasSelection:m(E,x),selection:E,tree:O});if(n.getParentKey())return M;var B=S(n,a).Element,A=k(n,g,w,f,K,this.wrapperRef);return u.createElement(B,A,M)},r}(u.Component);e.exports=C},13136:function(e,t,n){var r=n(47378),o=n(49938),i=n(3885),a=n(12242),c=n(45852),l=n(14134),u=n(16207),s=n(63564),f=n(80120),p=n(9927),d=n(56408),g=l.isBrowser("IE"),h=!1,y=!1,v=null,m={onCompositionStart:function(e){y=!0,function(e){v||(v=new r(s(e))).start()}(e)},onCompositionEnd:function(e){h=!1,y=!1,setTimeout((function(){h||m.resolveComposition(e)}),20)},onSelect:u,onKeyDown:function(e,t){if(!y)return m.resolveComposition(e),void e._onKeyDown(t);t.which!==c.RIGHT&&t.which!==c.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===c.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!y){var t=d(v).stopAndFlushMutations();v=null,h=!0;var n=a.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var c=i.decode(t),l=c.blockKey,u=c.decoratorKey,s=c.leafKey,f=n.getBlockTree(l).getIn([u,"leaves",s]),d=f.start,g=f.end,h=n.getSelection().merge({anchorKey:l,focusKey:l,anchorOffset:d,focusOffset:g,isBackward:!1}),y=p(r,h),v=r.getBlockForKey(l).getInlineStyleAt(d);r=o.replaceText(r,h,e,v,y),n=a.set(n,{currentContent:r})}));var c=f(n,s(e)).selectionState;e.restoreEditorDOM();var l=g?a.forceSelection(n,c):a.acceptSelection(n,c);e.update(a.push(l,r,"insert-characters"))}else e.update(n)}}};e.exports=m},93659:function(e,t,n){var r=n(45228);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=n(81124),l=n(3885),u=n(96540),s=n(98003),f=n(50798),p=n(56408),d=function(e,t,n,r){return s({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},g=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),c=n.getCurrentContent(),l=t.getDecorator(),u=n.getDecorator();return o!==i||a!==c||l!==u||n.mustForceSelection()},a.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,a=e.customStyleMap,s=e.customStyleFn,g=e.editorState,h=e.editorKey,y=e.preventScroll,v=e.textDirectionality,m=g.getCurrentContent(),S=g.getSelection(),b=g.mustForceSelection(),k=g.getDecorator(),C=p(g.getDirectionMap()),_=m.getBlocksAsArray(),E=[],O=null,D=null,x=0;x<_.length;x++){var w=_[x],K=w.getKey(),T=w.getType(),M=n(w),B=void 0,A=void 0,F=void 0;M&&(B=M.component,A=M.props,F=M.editable);var R=v||C.get(K),L=l.encode(K,0,0),I={contentState:m,block:w,blockProps:A,blockStyleFn:r,customStyleMap:a,customStyleFn:s,decorator:k,direction:R,forceSelection:b,offsetKey:L,preventScroll:y,selection:S,tree:g.getBlockTree(K)},P=t.get(T)||t.get("unstyled"),N=P.wrapper,j=P.element||t.get("unstyled").element,U=w.getDepth(),H="";r&&(H=r(w)),"li"===j&&(H=f(H,d(T,U,D!==N||null===O||U>O,R)));var W=B||c,z={className:H,"data-block":!0,"data-editor":h,"data-offset-key":L,key:K};void 0!==F&&(z=i({},z,{contentEditable:F,suppressContentEditableWarning:!0}));var J=u.createElement(j,z,u.createElement(W,o({},I,{key:K})));E.push({block:J,wrapperTemplate:N,key:K,offsetKey:L}),O=N?w.getDepth():null,D=N}for(var G=[],q=0;q<E.length;){var V=E[q];if(V.wrapperTemplate){var X=[];do{X.push(E[q].block),q++}while(q<E.length&&E[q].wrapperTemplate===V.wrapperTemplate);var Y=u.cloneElement(V.wrapperTemplate,{key:V.key+"-wrap","data-offset-key":V.offsetKey},X);G.push(Y)}else G.push(V.block),q++}return u.createElement("div",{"data-contents":"true"},G)},r}(u.Component);e.exports=g},79777:function(e,t,n){var r=n(47282)("draft_tree_data_support");e.exports=n(r?71803:93659)},71803:function(e,t,n){var r=n(45228);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}var i=n(22784),a=n(3885),c=n(96540),l=n(56408),u=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var u=r.prototype;return u.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),c=n.getCurrentContent(),l=t.getDecorator(),u=n.getDecorator();return o!==i||a!==c||l!==u||n.mustForceSelection()},u.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,u=e.customStyleMap,s=e.customStyleFn,f=e.editorState,p=e.editorKey,d=e.textDirectionality,g=f.getCurrentContent(),h=f.getSelection(),y=f.mustForceSelection(),v=f.getDecorator(),m=l(f.getDirectionMap()),S=[],b=g.getBlocksAsArray()[0];b;){var k=b.getKey(),C={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,contentState:g,customStyleFn:s,customStyleMap:u,decorator:v,editorKey:p,editorState:f,forceSelection:y,selection:h,block:b,direction:d||m.get(k),tree:f.getBlockTree(k)},_=(t.get(b.getType())||t.get("unstyled")).wrapper;S.push({block:c.createElement(i,o({key:k},C)),wrapperTemplate:_,key:k,offsetKey:a.encode(k,0,0)});var E=b.getNextSiblingKey();b=E?g.getBlockForKey(E):null}for(var O=[],D=0;D<S.length;){var x=S[D];if(x.wrapperTemplate){var w=[];do{w.push(S[D].block),D++}while(D<S.length&&S[D].wrapperTemplate===x.wrapperTemplate);var K=c.cloneElement(x.wrapperTemplate,{key:x.key+"-wrap","data-offset-key":x.offsetKey},w);O.push(K)}else O.push(x.block),D++}return c.createElement("div",{"data-contents":"true"},O)},r}(c.Component);e.exports=u},71988:function(e,t,n){var r=n(45228);function o(){return o=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}var i=n(3885),a=n(96540),c=n(68307),l=n(55822),u=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(){var e=this.props,t=e.block,n=e.children,r=e.contentState,u=e.decorator,s=e.decoratorKey,f=e.direction,p=e.leafSet,d=e.text,g=t.getKey(),h=p.get("leaves"),y=u.getComponentForKey(s),v=u.getPropsForKey(s),m=i.encode(g,parseInt(s,10),0),S=d.slice(h.first().get("start"),h.last().get("end")),b=l.getHTMLDirIfDifferent(c.getDirection(S),f);return a.createElement(y,o({},v,{contentState:r,decoratedText:S,dir:b,key:m,entityKey:t.getEntityAt(p.get("start")),offsetKey:m}),n)},r}(a.Component);e.exports=u},42474:function(e,t,n){var r=n(92395),o=n(49938),i=n(12242),a=n(88372),c=n(19677),l=n(723),u=n(79450),s=n(35389),f=n(73680),p=n(56408),d={onDragEnd:function(e){e.exitCurrentMode(),g(e)},onDrop:function(e,t){var n=new r(t.nativeEvent.dataTransfer),s=e._latestEditorState,d=function(e,t){var n=null,r=null,o=c(e.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(e.x,e.y);n=i.startContainer,r=i.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=p(n),r=p(r);var l=p(a(n));return u(t,l,r,l,r)}(t.nativeEvent,s);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=d){var y=n.getFiles();if(y.length>0){if(e.props.handleDroppedFiles&&f(e.props.handleDroppedFiles(d,y)))return;l(y,(function(t){t&&e.update(h(s,d,t))}))}else{var v=e._internalDrag?"internal":"external";e.props.handleDrop&&f(e.props.handleDrop(d,n,v))||(e._internalDrag?e.update(function(e,t){var n=o.moveText(e.getCurrentContent(),e.getSelection(),t);return i.push(e,n,"insert-fragment")}(s,d)):e.update(h(s,d,n.getText()))),g(e)}}}};function g(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:s(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function h(e,t,n){var r=o.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return i.push(e,r,"insert-fragment")}e.exports=d},97784:function(e,t,n){var r=n(14134),o=n(73722),i=n(18058),a=n(87141),c=n(3694),l=n(73919),u=n(16127),s=n(74861),f=n(44447),p=n(5091),d=n(48136),g=n(72208),h=n(16207),y=r.isBrowser("Chrome"),v=r.isBrowser("Firefox"),m=y||v?h:function(e){},S={onBeforeInput:o,onBlur:i,onCompositionStart:a,onCopy:c,onCut:l,onDragOver:u,onDragStart:s,onFocus:f,onInput:p,onKeyDown:d,onPaste:g,onSelect:h,onMouseUp:m,onKeyUp:m};e.exports=S},74576:function(e,t,n){var r=n(40961).unstable_flushControlled;e.exports=r},55203:function(e,t,n){var r=n(45228),o=n(16268),i=n(96540),a=n(90646),c=n(12623),l=n(94660).setDraftEditorSelection,u=function(e){var t,n;function u(){for(var t,n,r,o,i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return o=void 0,(r="leaf")in(n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(a))||this))?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}n=e,(t=u).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=u.prototype;return s._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,o=t.text,i=n.getKey(),u=r+o.length;if(e.hasEdgeWithin(i,r,u)){var s=this.leaf;s||a(!1);var f,p=s.firstChild;p||a(!1),p.nodeType===Node.TEXT_NODE?f=p:c(p)?f=s:(f=p.firstChild)||a(!1),l(e,f,i,r,u)}}},s.shouldComponentUpdate=function(e){var t=this.leaf;return t||a(!1),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},s.componentDidUpdate=function(){this._setSelection()},s.componentDidMount=function(){this._setSelection()},s.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var a=this.props,c=a.customStyleMap,l=a.customStyleFn,u=a.offsetKey,s=a.styleSet,f=s.reduce((function(e,t){var n={},o=c[t];return void 0!==o&&e.textDecoration!==o.textDecoration&&(n.textDecoration=[e.textDecoration,o.textDecoration].join(" ").trim()),r(e,o,n)}),{});if(l){var p=l(s,t);f=r(f,p)}return i.createElement("span",{"data-offset-key":u,ref:function(t){return e.leaf=t},style:f},i.createElement(o,null,n))},u}(i.Component);e.exports=u},84379:function(e,t,n){var r=n(71988),o=n(55203),i=n(3885),a=n(9404),c=n(96540),l=n(98003),u=(a.List,function(e){var t,n;function a(){return e.apply(this,arguments)||this}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a.prototype.render=function(){var e=this.props,t=e.block,n=e.contentState,a=e.customStyleFn,u=e.customStyleMap,s=e.decorator,f=e.direction,p=e.forceSelection,d=e.hasSelection,g=e.selection,h=e.tree,y=t.getKey(),v=t.getText(),m=h.size-1,S=this.props.children||h.map((function(e,l){var h=e.get("decoratorKey"),S=e.get("leaves"),b=S.size-1,k=S.map((function(e,n){var r=i.encode(y,l,n),s=e.get("start"),f=e.get("end");return c.createElement(o,{key:r,offsetKey:r,block:t,start:s,selection:d?g:null,forceSelection:p,text:v.slice(s,f),styleSet:t.getInlineStyleAt(s),customStyleMap:u,customStyleFn:a,isLast:h===m&&n===b})})).toArray();return h&&s?c.createElement(r,{block:t,children:k,contentState:n,decorator:s,decoratorKey:h,direction:f,leafSet:e,text:v,key:l}):k})).toArray();return c.createElement("div",{"data-offset-key":i.encode(y,0,0),className:l({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},S)},a}(c.Component));e.exports=u},49884:function(e,t,n){var r=n(96540),o=n(98003),i=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=i.prototype;return a.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},a.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=o({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return r.createElement("div",{className:t},r.createElement("div",{className:o("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},i}(r.Component);e.exports=i},16268:function(e,t,n){function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(96540),a=n(14134),c=n(90646),l=n(93816),u=a.isBrowser("IE <= 11"),s=function(e){var t,n;function a(t){var n;return o(r(n=e.call(this,t)||this),"_forceFlag",void 0),o(r(n),"_node",void 0),n._forceFlag=!1,n}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=a.prototype;return s.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;l(t)||c(!1);var r=t;return n?!function(e){return u?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},s.componentDidMount=function(){this._forceFlag=!this._forceFlag},s.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},s.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},u?i.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):i.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return u?i.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):i.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):i.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},a}(i.Component);e.exports=s},953:function(e){e.exports={initODS:function(){},handleExtensionCausedError:function(){}}},11608:function(e,t,n){function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(5407),i=n(9404),a=n(90646),c=n(24809),l=(0,i.Map)(),u=c();function s(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var f={getLastCreatedEntityKey:function(){return s("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),f.__getLastCreatedEntityKey()},create:function(e,t,n){return s("DraftEntity.create","contentState.createEntity"),f.__create(e,t,n)},add:function(e){return s("DraftEntity.add","contentState.addEntity"),f.__add(e)},get:function(e){return s("DraftEntity.get","contentState.getEntity"),f.__get(e)},__getAll:function(){return l},__loadWithEntities:function(e){l=e,u=c()},mergeData:function(e,t){return s("DraftEntity.mergeData","contentState.mergeEntityData"),f.__mergeData(e,t)},replaceData:function(e,t){return s("DraftEntity.replaceData","contentState.replaceEntityData"),f.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return u},__create:function(e,t,n){return f.__add(new o({type:e,mutability:t,data:n||{}}))},__add:function(e){return u=c(),l=l.set(u,e),u},__get:function(e){var t=l.get(e);return t||a(!1),t},__mergeData:function(e,t){var n=f.__get(e),o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},n.getData(),t),i=n.set("data",o);return l=l.set(e,i),i},__replaceData:function(e,t){var n=f.__get(e).set("data",t);return l=l.set(e,n),n}};e.exports=f},5407:function(e,t,n){var r=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},r}((0,n(9404).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));e.exports=r},68382:function(e){e.exports={getRemovalRange:function(e,t,n,r,o){var i=n.split(" ");i=i.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e}));for(var a,c=r,l=null,u=null,s=0;s<i.length;s++){if(e<(a=c+i[s].length)&&c<t)null!==l||(l=c),u=a;else if(null!==l)break;c=a}var f=r+n.length,p=l===r,d=u===f;return(!p&&d||p&&!d)&&("forward"===o?u!==f&&u++:l!==r&&l--),{start:l,end:u}}}},67204:function(e){e.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}},49938:function(e,t,n){var r=n(23018),o=n(94092),i=n(16416),a=n(80508),c=n(30866),l=n(9404),u=n(19127),s=n(3136),f=n(90646),p=n(5462),d=n(86044),g=n(54435),h=n(53222),y=l.OrderedSet,v={replaceText:function(e,t,n,o,i){var a=d(e,t),c=g(a,t),l=r.create({style:o||y(),entity:i||null});return s(c,c.getSelectionAfter(),n,l)},insertText:function(e,t,n,r,o){return t.isCollapsed()||f(!1),v.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=c(e,t),o=v.removeRange(e,t,"backward");return v.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=d(e,t),i=g(o,t);return u(i,i.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,o,i,c;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),i=e.getBlockForKey(r),c=e.getBlockForKey(o);var l=t.getStartOffset(),u=t.getEndOffset(),s=i.getEntityAt(l),f=c.getEntityAt(u-1);if(r===o&&s&&s===f){var p=a(e.getEntityMap(),i,c,t,n);return g(e,p)}var h=d(e,t);return g(h,t)},splitBlock:function(e,t){var n=d(e,t),r=g(n,t);return h(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return o.add(e,t,n)},removeInlineStyle:function(e,t,n){return o.remove(e,t,n)},setBlockType:function(e,t,n){return p(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return p(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return p(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=d(e,t);return i(r,t,n)}};e.exports=v},3885:function(e){var t="-",n={encode:function(e,n,r){return e+t+n+t+r},decode:function(e){var n=e.split(t).reverse(),r=n[0],o=n[1];return{blockKey:n.slice(2).reverse().join(t),decoratorKey:parseInt(o,10),leafKey:parseInt(r,10)}}};e.exports=n},50046:function(e,t,n){function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(56840),i=n(65224),a=n(24712),c=n(6991),l=n(19248),u=n(47282),s=n(9404),f=n(91721),p=s.List,d=s.Repeat,g=u("draft_tree_data_support"),h=g?i:o,y={processHTML:function(e,t){return a(e,l,t)},processText:function(e,t,n){return e.reduce((function(e,o,i){o=f(o);var a=c(),l={key:a,type:n,text:o,characterList:p(d(t,o.length))};if(g&&0!==i){var u=i-1;l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},l,{prevSibling:(e[u]=e[u].merge({nextSibling:a})).getKey()})}return e.push(new h(l)),e}),[])}};e.exports=y},73998:function(e,t,n){var r="['‘’]",o="\\s|(?![_])"+n(77405).getPunctuation(),i=new RegExp("^(?:"+o+")*(?:"+r+"|(?!"+o+").)*(?:(?!"+o+").)"),a=new RegExp("(?:(?!"+o+").)(?:"+r+"|(?!"+o+").)*(?:"+o+")*$");function c(e,t){var n=t?a.exec(e):i.exec(e);return n?n[0]:e}var l={getBackward:function(e){return c(e,!0)},getForward:function(e){return c(e,!1)}};e.exports=l},91439:function(e){var t={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=t},62396:function(e,t,n){function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(6991),a=n(90646),c=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},l={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||a(!1),Array.isArray(t)&&t.length?(function(e,t){for(var o=[].concat(e).reverse();o.length;){var i=o.pop();s=void 0,s=r({},u=i),c(u)&&(s.depth=s.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?r({},t,{depth:(e.depth||0)+1}):t})))}(u),null!=u.children&&u.children.length>0)||(delete s.children,n.push(s));var l=i.children;Array.isArray(l)||a(!1),o=o.concat([].concat(l.reverse()))}var u,s}(t),e.blocks=n,r({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var o=c(e),a=e.depth||0,l=r({},e,{children:[]});if(o){var u=n[0];if(null==u&&0===a)t.push(l);else if(null==u||u.depth<a-1){var s={key:i(),text:"",depth:a-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(s),1===a?t.push(s):null!=u&&u.children.push(s),s.children.push(l)}else if(u.depth===a-1)u.children.push(l);else{for(;null!=u&&u.depth>=a;)n.shift(),u=n[0];a>0?u.children.push(l):t.push(l)}}else t.push(l)})),r({},e,{blocks:t})}};e.exports=l},72490:function(e,t,n){n(14594),e.exports={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r&&!t.get(r).getChildKeys().includes(n))return!1;if(!e.getChildKeys().map((function(e){return t.get(e)})).every((function(e){return e.getParentKey()===n})))return!1;var o=e.getPrevSiblingKey();if(null!=o&&t.get(o).getNextSiblingKey()!==n)return!1;var i=e.getNextSiblingKey();return(null==i||t.get(i).getPrevSiblingKey()===n)&&!(null!==i&&null!==o&&o===i||""!=e.text&&e.getChildKeys().size>0)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return!1;for(var n=0,r=t.shift().getKey(),o=[];null!=r;){var i=e.get(r),a=i.getChildKeys(),c=i.getNextSiblingKey();if(a.size>0){null!=c&&o.unshift(c);var l=a.map((function(t){return e.get(t)})).find((function(e){return null==e.getPrevSiblingKey()}));if(null==l)return!1;r=l.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}}},3914:function(e,t,n){var r,o=n(61708),i=n(9404),a=n(56408),c=i.OrderedMap,l={getDirectionMap:function(e,t){r?r.reset():r=new o;var n=e.getBlockMap(),l=n.valueSeq().map((function(e){return a(r).getDirection(e.getText())})),u=c(n.keySeq().zip(l));return null!=t&&i.is(t,u)?t:u}};e.exports=l},12242:function(e,t,n){function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(19981),a=n(97656),c=n(3914),l=n(91381),u=n(9404),s=u.OrderedSet,f=u.Record,p=u.Stack,d=u.OrderedMap,g=u.List,h=f({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:p(),selection:null,treeMap:null,undoStack:p()}),y=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(a.createFromText(e),n)},t.createWithContent=function(e,n){if(0===e.getBlockMap().count())return t.createEmpty(n);var r=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:p(),redoStack:p(),decorator:n||null,selection:l.createEmpty(r)})},t.create=function(e){var n=e.currentContent,o=r({},e,{treeMap:m(n,e.decorator),directionMap:c.getDirectionMap(n)});return new t(new h(o))},t.fromJS=function(e){return new t(new h(r({},e,{directionMap:null!=e.directionMap?d(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?s(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?a.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?p(e.redoStack.map((function(e){return a.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new l(e.selection):e.selection,treeMap:null!=e.treeMap?d(e.treeMap).map((function(e){return g(e).map((function(e){return i.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?p(e.undoStack.map((function(e){return a.fromJS(e)}))):e.undoStack,currentContent:a.fromJS(e.currentContent)})))},t.set=function(e,n){return new t(e.getImmutable().withMutations((function(t){var r=t.get("decorator"),o=r;null===n.decorator?o=null:n.decorator&&(o=n.decorator);var a=n.currentContent||e.getCurrentContent();if(o!==r){var c,l=t.get("treeMap");return c=o&&r?function(e,t,n,r,o){return n.merge(t.toSeq().filter((function(t){return r.getDecorations(t,e)!==o.getDecorations(t,e)})).map((function(t){return i.generate(e,t,r)})))}(a,a.getBlockMap(),l,o,r):m(a,o),void t.merge({decorator:o,treeMap:c,nativelyRenderedContent:null})}a!==e.getCurrentContent()&&t.set("treeMap",function(e,t,n,r){var o=e.getCurrentContent().set("entityMap",n),a=o.getBlockMap();return e.getImmutable().get("treeMap").merge(t.toSeq().filter((function(e,t){return e!==a.get(t)})).map((function(e){return i.generate(o,e,r)})))}(e,a.getBlockMap(),a.getEntityMap(),o)),t.merge(n)})))};var e=t.prototype;function t(e){o(this,"_immutable",void 0),this._immutable=e}return e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,n){return t.set(e,{inlineStyleOverride:n})},e.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);return r>0?o.getInlineStyleAt(r-1):o.getLength()?o.getInlineStyleAt(0):S(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);return r<o.getLength()?o.getInlineStyleAt(r):r>0?o.getInlineStyleAt(r-1):S(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return v(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),v(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new l({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var i=c.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=e.getSelection(),l=e.getCurrentContent(),u=e.getUndoStack(),s=n;a!==l.getSelectionAfter()||function(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,r)?(u=u.push(l),s=s.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(s=s.set("selectionBefore",l.getSelectionBefore()));var f=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(f=null);var d={currentContent:s,directionMap:i,undoStack:u,redoStack:p(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:f};return t.set(e,d)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=c.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=c.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:e.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function v(e,t,n){return y.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function m(e,t){return e.getBlockMap().map((function(n){return i.generate(e,n,t)})).toOrderedMap()}function S(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):s()}e.exports=y},59414:function(e,t,n){var r=n(14134),o=n(83174),i=r.isPlatform("Mac OS X"),a={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return i&&e.altKey},usesMacOSHeuristics:function(){return i},hasCommandModifier:function(e){return i?!!e.metaKey&&!e.altKey:a.isCtrlKeyCommand(e)},isSoftNewlineEvent:o};e.exports=a},66429:function(){},7018:function(e,t,n){var r=n(49938),o=n(12242),i=n(60286),a=n(56408),c={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return c.toggleInlineStyle(e,"BOLD");case"italic":return c.toggleInlineStyle(e,"ITALIC");case"underline":return c.toggleInlineStyle(e,"UNDERLINE");case"code":return c.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return c.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return c.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=r.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=o.push(e,t,"insert-characters");return o.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),i=n.getBlockBefore(r);if(i&&"atomic"===i.getType()){var a=n.getBlockMap().delete(i.getKey()),l=n.merge({blockMap:a,selectionAfter:t});if(l!==n)return o.push(e,l,"remove-range")}var u=c.tryToRemoveBlockStyle(e);return u?o.push(e,u,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),i=t.getStartKey(),a=n.getBlockForKey(i).getLength();if(t.getStartOffset()<a)return null;var c=n.getBlockAfter(i);if(!c||"atomic"!==c.getType())return null;var l=t.merge({focusKey:c.getKey(),focusOffset:c.getLength()}),u=r.removeRange(n,l,"forward");return u!==n?o.push(e,u,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),a=r.getAnchorKey();if(a!==r.getFocusKey())return t;var c=t.getCurrentContent(),l=c.getBlockForKey(a),u=l.getType();if("unordered-list-item"!==u&&"ordered-list-item"!==u)return t;e.preventDefault();var s=l.getDepth();if(!e.shiftKey&&s===n)return t;var f=i(c,r,e.shiftKey?-1:1,n);return o.push(t,f,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),i=n.getStartKey(),c=n.getEndKey(),l=e.getCurrentContent(),u=n;if(i!==c&&0===n.getEndOffset()){var s=a(l.getBlockBefore(c));c=s.getKey(),u=u.merge({anchorKey:i,anchorOffset:n.getStartOffset(),focusKey:c,focusOffset:s.getLength(),isBackward:!1})}if(l.getBlockMap().skipWhile((function(e,t){return t!==i})).reverse().skipWhile((function(e,t){return t!==c})).some((function(e){return"atomic"===e.getType()})))return e;var f=l.getBlockForKey(i).getType()===t?"unstyled":t;return o.push(e,r.setBlockType(l,u,f),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?c.toggleBlockType(e,"code-block"):c.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),i=e.getCurrentInlineStyle();if(n.isCollapsed())return o.setInlineStyleOverride(e,i.has(t)?i.remove(t):i.add(t));var a,c=e.getCurrentContent();return a=i.has(t)?r.removeInlineStyle(c,n,t):r.applyInlineStyle(c,n,t),o.push(e,a,"change-inline-style")},toggleLink:function(e,t,n){var i=r.applyEntity(e.getCurrentContent(),t,n);return o.push(e,i,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var o=t.getAnchorKey(),i=e.getCurrentContent(),a=i.getBlockForKey(o).getType(),c=i.getBlockBefore(o);if("code-block"===a&&c&&"code-block"===c.getType()&&0!==c.getLength())return null;if("unstyled"!==a)return r.setBlockType(i,t,"unstyled")}return null}};e.exports=c},45170:function(e,t,n){var r=n(49938),o=n(12242),i=n(30866),a=n(56408),c=null,l={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),l=null;if(n.isCollapsed()){var u=n.getAnchorKey(),s=t.getBlockForKey(u).getLength();if(s===n.getAnchorOffset()){var f=t.getKeyAfter(u);if(null==f)return e;l=n.set("focusKey",f).set("focusOffset",0)}else l=n.set("focusOffset",s)}else l=n;l=a(l),c=i(t,l);var p=r.removeRange(t,l,"forward");return p===t?e:o.push(e,p,"remove-range")},paste:function(e){if(!c)return e;var t=r.replaceWithFragment(e.getCurrentContent(),e.getSelection(),c);return o.push(e,t,"insert-fragment")}};e.exports=l},91381:function(e,t,n){var r=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var i=this.getStartOffset(),a=this.getEndOffset();return t<=i&&i<=n||t<=a&&a<=n}if(e!==r&&e!==o)return!1;var c=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=c&&n>=c},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,n(9404).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=r},60286:function(e){e.exports=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),c=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(c),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},41952:function(e,t,n){var r=n(23018);e.exports=function(e,t,n,o){for(var i=t,a=e.getCharacterList();i<n;)a=a.set(i,r.applyEntity(a.get(i),o)),i++;return e.set("characterList",a)}},16416:function(e,t,n){var r=n(41952),o=n(9404);e.exports=function(e,t,n){var i=e.getBlockMap(),a=t.getStartKey(),c=t.getStartOffset(),l=t.getEndKey(),u=t.getEndOffset(),s=i.skipUntil((function(e,t){return t===a})).takeUntil((function(e,t){return t===l})).toOrderedMap().merge(o.OrderedMap([[l,i.get(l)]])).map((function(e,t){var o=t===a?c:0,i=t===l?u:e.getLength();return r(e,o,i,n)}));return e.merge({blockMap:i.merge(s),selectionBefore:t,selectionAfter:t})}},7470:function(e,t,n){function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(56840),i=n(65224),a=n(91439),c=n(55481),l=n(20702),u=n(90646),s=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:l(e),entityRanges:c(e,t),data:e.getData().toObject()}};e.exports=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,c=[],l={},f={},p=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=a.stringify(r);f[o]||(f[o]=r,n[o]="".concat(p),p++)})),function(e,t,n,a){if(e instanceof o)n.push(s(e,t));else{e instanceof i||u(!1);var c=e.getParentKey(),l=a[e.getKey()]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}({},s(e,t),{children:[]});c?a[c].children.push(l):n.push(l)}}(e,n,c,l)})),{blocks:c,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,r=t.entityMap,o={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(a.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t}},24712:function(e,t,n){var r;function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(23018),c=n(56840),l=n(65224),u=n(13387),s=n(11608),f=n(25324),p=n(98003),d=n(6991),g=n(19248),h=n(47282),y=n(9404),v=y.List,m=y.Map,S=y.OrderedSet,b=n(20316),k=n(12623),C=n(55291),_=n(7296),E=h("draft_tree_data_support"),O=new RegExp("\r","g"),D=new RegExp("\n","g"),x=new RegExp("^\n","g"),w=new RegExp("&nbsp;","g"),K=new RegExp("&#13;?","g"),T=new RegExp("&#8203;?","g"),M=["bold","bolder","500","600","700","800","900"],B=["light","lighter","normal","100","200","300","400"],A=["className","href","rel","target","title"],F=["alt","className","height","src","width"],R=(i(r={},p("public/DraftStyleDefault/depth0"),0),i(r,p("public/DraftStyleDefault/depth1"),1),i(r,p("public/DraftStyleDefault/depth2"),2),i(r,p("public/DraftStyleDefault/depth3"),3),i(r,p("public/DraftStyleDefault/depth4"),4),r),L=m({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),I=function(e){return C(e)&&e.style.fontFamily.includes("monospace")?"CODE":null},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(R).some((function(n){e.classList.contains(n)&&(t=R[n])})),t},N=function(e){if(!b(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{return new f(t.href),!0}catch(e){return!1}},j=function(e){if(!_(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},U=function(e,t){if(!C(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){M.indexOf(r)>=0?e.add("BOLD"):B.indexOf(r)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},H=function(e){return"ul"===e||"ol"===e},W=function(){function e(e,t){i(this,"characterList",v()),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",s),i(this,"blockTypeMap",void 0),i(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=v(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=s,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],S())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(E?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o({key:e.key||d(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:v(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=v(),this.currentBlockType="unstyled",this.currentText="",t},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=o.nodeName.toLowerCase();if("body"===i||H(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,c=this.wrapper;H(i)&&(this.wrapper=i,H(c)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),t)),this.currentDepth=a,this.wrapper=c}else{var l=this.blockTypeMap.get(i);if(void 0===l)if("#text"!==i)if("br"!==i)if(j(o))this._addImgNode(o,t);else if(N(o))this._addAnchorNode(o,n,t);else{var u=t;L.has(i)&&(u=u.add(L.get(i))),u=U(o,u);var s=I(o);null!=s&&(u=u.add(s)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),u))}else this._addBreakNode(o,t);else this._addTextNode(o,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var f=this.currentDepth,p=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof l&&(l=this.disambiguate(i,this.wrapper)||l[0]||"unstyled"),!E&&C(o)&&("unordered-list-item"===l||"ordered-list-item"===l)){var g=o;this.currentDepth=P(g,this.currentDepth)}var h=d(),y=this._toBlockConfigs(Array.from(o.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:h,childConfigs:y,type:l})),this.currentDepth=f,this.wrapper=p}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=a.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(r))},t._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry((function(e){return null!==e.getEntity()}));(t=void 0!==r?Math.min(t,r[0]):t)>(n=void 0!==(r=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-r[0]):n)?(this.currentText="",this.characterList=v()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(x,"")).replace(D," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){k(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(_(e)){var n=e,r={};F.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),h("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(b(e)){var r=e,o={};A.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new f(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var i=e[r];i.parent=t,i.prevSibling=r>0?e[r-1].key:null,i.nextSibling=r<n?e[r+1].key:null,i.children=v(i.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new l(o({},i))),this._toContentBlocks(i.childConfigs,i.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return v(e).flatMap((function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)}))},t._toFlatContentBlocks=function(e){var t=this;this._hoistContainersInBlockConfigs(e).forEach((function(e){var n=t._extractTextFromBlockConfigs(e.childConfigs),r=n.text,i=n.characterList;t.contentBlocks.push(new c(o({},e,{text:e.text+r,characterList:e.characterList.concat(i)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=v(),o=0;o<=t;o++){var i=e[o];n+=i.text,r=r.concat(i.characterList),""!==n&&"unstyled"!==i.type&&(n+="\n",r=r.push(r.last()));var a=this._extractTextFromBlockConfigs(i.childConfigs);n+=a.text,r=r.concat(a.characterList)}return{text:n,characterList:r}},e}();e.exports=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:g)(e=e.trim().replace(O,"").replace(w," ").replace(K,"").replace(T,""));if(!n)return null;var r=function(e){var t={};return e.mapKeys((function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach((function(n){void 0===t[n]?t[n]=e:"string"==typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),m(t)}(t);return new W(r,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()}},50428:function(e,t,n){function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(56840),a=n(65224),c=n(97656),l=n(11608),u=n(62396),s=(n(72490),n(91381)),f=n(40803),p=n(52401),d=n(33830),g=n(6991),h=n(47282),y=n(9404),v=n(90646),m=h("draft_tree_data_support"),S=y.List,b=y.Map,k=y.OrderedMap,C=function(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||g(),data:b(o),characterList:_(e,t)}},_=function(e,t){var n=e.text,o=e.entityRanges,i=e.inlineStyleRanges,a=o||[];return f(d(n,i||[]),p(n,a.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return r({},e,{key:t[e.key]})}))))},E=function(e){return r({},e,{key:e.key||g()})},O=function(e,t,n){var o=t.map((function(e){return r({},e,{parentRef:n})}));return e.concat(o.reverse())};e.exports=function(e){Array.isArray(e.blocks)||v(!1);var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=l.__create(o,i,a||{})})),n}(e),n=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),o=m&&!n?u.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!m)return function(e,t){return k(e.map((function(e){var n=new i(C(e,t));return[n.getKey(),n]})))}(n?u.fromRawTreeStateToRawState(e).blocks:o,t);var c=function(e,t){return e.map(E).reduce((function(n,o,i){Array.isArray(o.children)||v(!1);var c=o.children.map(E),l=new a(r({},C(o,t),{prevSibling:0===i?null:e[i-1].key,nextSibling:i===e.length-1?null:e[i+1].key,children:S(c.map((function(e){return e.key})))}));n=n.set(l.getKey(),l);for(var u=O([],c,l);u.length>0;){var s=u.pop(),f=s.parentRef,p=f.getChildKeys(),d=p.indexOf(s.key),g=Array.isArray(s.children);if(!g){g||v(!1);break}var h=s.children.map(E),y=new a(r({},C(s,t),{parent:f.getKey(),children:S(h.map((function(e){return e.key}))),prevSibling:0===d?null:p.get(d-1),nextSibling:d===p.size-1?null:p.get(d+1)}));n=n.set(y.getKey(),y),u=O(u,h,y)}return n}),k())}(o,t);return c}(e,t),o=n.isEmpty()?new s:s.createEmpty(n.first().getKey());return new c({blockMap:n,entityMap:t,selectionBefore:o,selectionAfter:o})}},40803:function(e,t,n){var r=n(23018),o=n(9404).List;e.exports=function(e,t){var n=e.map((function(e,n){var o=t[n];return r.create({style:e,entity:o})}));return o(n)}},52401:function(e,t,n){var r=n(50580).substr;e.exports=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var o=r(e,0,t.offset).length,i=o+r(e,t.offset,t.length).length,a=o;a<i;a++)n[a]=t.key})),n}},33830:function(e,t,n){var r=n(50580),o=n(9404).OrderedSet,i=r.substr,a=o();e.exports=function(e,t){var n=Array(e.length).fill(a);return t&&t.forEach((function(t){for(var r=i(e,0,t.offset).length,o=r+i(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n}},51103:function(e){e.exports={notEmptyKey:function(e){return null!=e&&""!=e}}},73722:function(e,t,n){var r=n(49938),o=n(12242),i=n(14134),a=n(9927),c=n(73680),l=n(17759),u=n(56408),s=n(19765),f=i.isBrowser("Firefox");function p(e,t,n,i,a){var c=r.replaceText(e.getCurrentContent(),e.getSelection(),t,n,i);return o.push(e,c,"insert-characters",a)}e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,r=t.data;if(r)if(e.props.handleBeforeInput&&c(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var i=n.getSelection(),d=i.getStartOffset(),g=i.getAnchorKey();if(!i.isCollapsed())return t.preventDefault(),void e.update(p(n,r,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!0));var h,y=p(n,r,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!1),v=!1;if(v||(v=l(e._latestCommittedEditorState)),!v){var m=n.getBlockTree(g),S=y.getBlockTree(g);v=m.size!==S.size||m.zip(S).some((function(e){var t=e[0],n=e[1],o=t.get("start"),i=o+(o>=d?r.length:0),a=t.get("end"),c=a+(a>=d?r.length:0),l=n.get("start"),u=n.get("end"),s=n.get("decoratorKey");return t.get("decoratorKey")!==s||t.get("leaves").size!==n.get("leaves").size||i!==l||c!==u||null!=s&&u-l!=a-o}))}if(v||(h=r,v=f&&("'"==h||"/"==h)),v||(v=u(y.getDirectionMap()).get(g)!==u(n.getDirectionMap()).get(g)),v)return t.preventDefault(),y=o.set(y,{forceSelection:!0}),void e.update(y);y=o.set(y,{nativelyRenderedContent:y.getCurrentContent()}),e._pendingStateFromBeforeInput=y,s((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}}},18058:function(e,t,n){var r=n(12242),o=n(4909),i=n(69758);e.exports=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&i(n)===n.body){var a=n.defaultView.getSelection(),c=e.editor;1===a.rangeCount&&o(c,a.anchorNode)&&o(c,a.focusNode)&&a.removeAllRanges()}var l=e._latestEditorState,u=l.getSelection();if(u.getHasFocus()){var s=u.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(r.acceptSelection(l,s))}}},87141:function(e,t,n){var r=n(12242);e.exports=function(e,t){e.setMode("composite"),e.update(r.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}},3694:function(e,t,n){var r=n(31296);e.exports=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(r(e._latestEditorState))}},73919:function(e,t,n){var r=n(49938),o=n(12242),i=n(2935),a=n(31296),c=n(97392),l=n(64316);e.exports=function(e,t){var n,u=e._latestEditorState,s=u.getSelection(),f=t.target;if(s.isCollapsed())t.preventDefault();else{if(l(f)){var p=f;n=c(i.getScrollParent(p))}var d=a(u);e.setClipboard(d),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=r.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return o.push(e,t,"remove-range")}(u))}),0)}}},16127:function(e){e.exports=function(e,t){e.setMode("drag"),t.preventDefault()}},74861:function(e){e.exports=function(e){e._internalDrag=!0,e.setMode("drag")}},44447:function(e,t,n){var r=n(12242),o=n(14134);e.exports=function(e,t){var n=e._latestEditorState,i=n.getSelection();if(!i.getHasFocus()){var a=i.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),o.isBrowser("Chrome < 60.0.3081.0")?e.update(r.forceSelection(n,a)):e.update(r.acceptSelection(n,a))}}},5091:function(e,t,n){var r=n(49938),o=n(3885),i=n(12242),a=n(14134),c=n(51103).notEmptyKey,l=n(88372),u=n(47381),s=n(56408),f=a.isEngine("Gecko");e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),a=n.anchorNode,p=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 g=a.parentNode;if(null==g)return;a.nodeValue=g.textContent;for(var h=g.firstChild;null!=h;h=h.nextSibling)h!==a&&g.removeChild(h)}var y=a.textContent,v=e._latestEditorState,m=s(l(a)),S=o.decode(m),b=S.blockKey,k=S.decoratorKey,C=S.leafKey,_=v.getBlockTree(b).getIn([k,"leaves",C]),E=_.start,O=_.end,D=v.getCurrentContent(),x=D.getBlockForKey(b),w=x.getText().slice(E,O);if(y.endsWith("\n\n")&&(y=y.slice(0,-1)),y!==w){var K,T,M,B,A=v.getSelection(),F=A.merge({anchorOffset:E,focusOffset:O,isBackward:!1}),R=x.getEntityAt(E),L=c(R)?D.getEntity(R):null,I="MUTABLE"===(null!=L?L.getMutability():null),P=I?"spellcheck-change":"apply-entity",N=r.replaceText(D,F,y,x.getInlineStyleAt(E),I?x.getEntityAt(E):null);if(f)K=n.anchorOffset,T=n.focusOffset,B=(M=E+Math.min(K,T))+Math.abs(K-T),K=M,T=B;else{var j=y.length-w.length;M=A.getStartOffset(),B=A.getEndOffset(),K=p?B+j:M,T=B+j}var U=N.merge({selectionBefore:D.getSelectionAfter(),selectionAfter:A.merge({anchorOffset:K,focusOffset:T})});e.update(i.push(v,U,P))}else{var H=t.nativeEvent.inputType;if(H){var W=function(e,t){return"deleteContentBackward"===e?u(t):t}(H,v);if(W!==v)return e.restoreEditorDOM(),void e.update(W)}}}}},48136:function(e,t,n){var r=n(49938),o=n(12242),i=n(59414),a=n(45852),c=n(45170),l=n(14134),u=n(73680),s=n(88771),f=n(94143),p=n(70525),d=n(64071),g=n(15169),h=n(20070),y=n(47381),v=n(2383),m=n(25935),S=n(8976),b=i.isOptionKeyCommand,k=l.isBrowser("Chrome");e.exports=function(e,t){var n=t.which,i=e._latestEditorState;function l(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case a.RETURN:if(t.preventDefault(),e.props.handleReturn&&u(e.props.handleReturn(t,i)))return;break;case a.ESC:if(t.preventDefault(),l("onEscape"))return;break;case a.TAB:if(l("onTab"))return;break;case a.UP:if(l("onUpArrow"))return;break;case a.RIGHT:if(l("onRightArrow"))return;break;case a.DOWN:if(l("onDownArrow"))return;break;case a.LEFT:if(l("onLeftArrow"))return;break;case a.SPACE:k&&b(t)&&t.preventDefault()}var C=e.props.keyBindingFn(t);if(null!=C&&""!==C)if("undo"!==C){if(t.preventDefault(),!e.props.handleKeyCommand||!u(e.props.handleKeyCommand(C,i,t.timeStamp))){var _=function(e,t,n){switch(e){case"redo":return o.redo(t);case"delete":return v(t);case"delete-word":return p(t);case"backspace":return y(t);case"backspace-word":return f(t);case"backspace-to-start-of-line":return s(t,n);case"split-block":return d(t);case"transpose-characters":return m(t);case"move-selection-to-start-of-block":return h(t);case"move-selection-to-end-of-block":return g(t);case"secondary-cut":return c.cut(t);case"secondary-paste":return c.paste(t);default:return t}}(C,i,t);_!==i&&e.update(_)}}else S(t,i,e.update);else if(n===a.SPACE&&k&&b(t)){var E=r.replaceText(i.getCurrentContent(),i.getSelection()," ");e.update(o.push(i,E,"insert-characters"))}}},72208:function(e,t,n){var r=n(95748),o=n(23018),i=n(92395),a=n(49938),c=n(50046),l=n(12242),u=n(7018),s=n(9927),f=n(723),p=n(73680),d=n(73676);function g(e,t,n){var r=a.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return l.push(e,r.set("entityMap",n),"insert-fragment")}e.exports=function(e,t){t.preventDefault();var n=new i(t.clipboardData);if(!n.isRichText()){var h=n.getFiles(),y=n.getText();if(h.length>0){if(e.props.handlePastedFiles&&p(e.props.handlePastedFiles(h)))return;return void f(h,(function(t){if(t=t||y){var n=e._latestEditorState,i=d(t),f=o.create({style:n.getCurrentInlineStyle(),entity:s(n.getCurrentContent(),n.getSelection())}),p=u.getCurrentBlockType(n),g=c.processText(i,f,p),h=r.createFromArray(g),v=a.replaceWithFragment(n.getCurrentContent(),n.getSelection(),h);e.update(l.push(n,v,"insert-fragment"))}}))}}var v=[],m=n.getText(),S=n.getHTML(),b=e._latestEditorState;if(e.props.formatPastedText){var k=e.props.formatPastedText(m,S);m=k.text,S=k.html}if(!e.props.handlePastedText||!p(e.props.handlePastedText(m,S,b))){if(m&&(v=d(m)),!e.props.stripPastedStyles){var C,_=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&_){if(-1!==(null===(C=S)||void 0===C?void 0:C.indexOf(e.getEditorKey()))||1===v.length&&1===_.size&&_.first().getText()===m)return void e.update(g(e._latestEditorState,_))}else if(_&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(v,_))return void e.update(g(e._latestEditorState,_));if(S){var E=c.processHTML(S,e.props.blockRenderMap);if(E){var O=E.contentBlocks,D=E.entityMap;if(O){var x=r.createFromArray(O);return void e.update(g(e._latestEditorState,x,D))}}}e.setClipboard(null)}if(v.length){var w=o.create({style:b.getCurrentInlineStyle(),entity:s(b.getCurrentContent(),b.getSelection())}),K=u.getCurrentBlockType(b),T=c.processText(v,w,K),M=r.createFromArray(T);e.update(g(e._latestEditorState,M))}}}},16207:function(e,t,n){var r=n(67204),o=n(12242),i=n(63564),a=n(80120);e.exports=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();r.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,c=a(n,i(e)),l=c.selectionState;l!==n.getSelection()&&(n=c.needsRecovery?o.forceSelection(n,l):o.acceptSelection(n,l),e.update(n))}}},55481:function(e,t,n){var r=n(91439),o=n(50580).strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(i,a){var c=e.getText(),l=e.getEntityAt(i);n.push({offset:o(c.slice(0,i)),length:o(c.slice(i,a)),key:Number(t[r.stringify(l)])})})),n}},20702:function(e,t,n){var r=n(50580),o=n(18227),i=function(e,t){return e===t},a=function(e){return!!e},c=[];e.exports=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var c=[],l=t.map((function(e){return e.has(n)})).toList();return o(l,i,a,(function(t,o){var i=e.getText();c.push({offset:r.strlen(i.slice(0,t)),length:r.strlen(i.slice(t,o)),style:n})})),c}(e,t,n)}));return Array.prototype.concat.apply(c,n.toJS())}},85989:function(e,t,n){var r=n(50580),o=n(19677),i=n(25377),a=n(90646);function c(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var c=e[a];0!==c.width&&1!==c.width&&(n=Math.min(n,c.top),r=Math.min(r,c.bottom),o=Math.max(o,c.top),i=Math.max(i,c.bottom))}return o<=r&&o-n<t&&i-r<t}function l(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}e.exports=function(e){e.collapsed||a(!1);var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=o(e),r=n.createElement("div");r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.fontStyle=t.fontStyle,r.style.fontWeight=t.fontWeight,r.style.lineHeight=t.lineHeight,r.style.position="absolute",r.textContent="M";var i=n.body;i||a(!1),i.appendChild(r);var c=r.getBoundingClientRect();return i.removeChild(r),c.height}(t),u=e.endContainer,s=e.endOffset;for(e.setStart(e.startContainer,0);c(i(e),n)&&(u=e.startContainer,s=e.startOffset,u.parentNode||a(!1),e.setStartBefore(u),1!==u.nodeType||"inline"===getComputedStyle(u).display););for(var f=u,p=s-1;;){for(var d=f.nodeValue,g=p;g>=0;g--)if(!(null!=d&&g>0&&r.isSurrogatePair(d,g-1))){if(e.setStart(f,g),!c(i(e),n))break;u=f,s=g}if(-1===g||0===f.childNodes.length)break;p=l(f=f.childNodes[g])}return e.setStart(u,s),e}},88372:function(e,t,n){var r=n(19677),o=n(74453);e.exports=function(e){for(var t=e;t&&t!==r(e).documentElement;){var n=o(t);if(null!=n)return n;t=t.parentNode}return null}},18227:function(e){e.exports=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),n(e.last())&&r(o,e.count())}}},6991:function(e){var t={},n=Math.pow(2,24);e.exports=function(){for(var e;void 0===e||t.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*n).toString(32);return t[e]=!0,e}},80508:function(e,t,n){var r=n(68382),o=n(69311),i=n(90646);function a(e,t,n,a,c,l,u){var s=n.getStartOffset(),f=n.getEndOffset(),p=e.__get(c).getMutability(),d=u?s:f;if("MUTABLE"===p)return n;var g=o(t,c).filter((function(e){return d<=e.end&&d>=e.start}));1!=g.length&&i(!1);var h=g[0];if("IMMUTABLE"===p)return n.merge({anchorOffset:h.start,focusOffset:h.end,isBackward:!1});l||(u?f=h.end:s=h.start);var y=r.getRemovalRange(s,f,t.getText().slice(h.start,h.end),h.start,a);return n.merge({anchorOffset:y.start,focusOffset:y.end,isBackward:!1})}e.exports=function(e,t,n,r,o){var i=r.getStartOffset(),c=r.getEndOffset(),l=t.getEntityAt(i),u=n.getEntityAt(c-1);if(!l&&!u)return r;var s=r;if(l&&l===u)s=a(e,t,s,o,l,!0,!0);else if(l&&u){var f=a(e,t,s,o,l,!1,!0),p=a(e,n,s,o,u,!1,!1);s=s.merge({anchorOffset:f.getAnchorOffset(),focusOffset:p.getFocusOffset(),isBackward:!1})}else if(l){var d=a(e,t,s,o,l,!1,!0);s=s.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(u){var g=a(e,n,s,o,u,!1,!1);s=s.merge({focusOffset:g.getEndOffset(),isBackward:!1})}return s}},63564:function(e,t,n){var r=n(90646),o=n(55291);e.exports=function(e){var t=e.editorContainer;return t||r(!1),o(t.firstChild)||r(!1),t.firstChild}},30866:function(e,t,n){var r=n(53310),o=n(86044);e.exports=function(e,t){var n=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),c=t.getEndOffset(),l=o(e,t).getBlockMap(),u=l.keySeq(),s=u.indexOf(n),f=u.indexOf(a)+1;return r(l.slice(s,f).map((function(e,t){var r=e.getText(),o=e.getCharacterList();return n===a?e.merge({text:r.slice(i,c),characterList:o.slice(i,c)}):t===n?e.merge({text:r.slice(i),characterList:o.slice(i)}):t===a?e.merge({text:r.slice(0,c),characterList:o.slice(0,c)}):e})))}},19677:function(e){e.exports=function(e){return e&&e.ownerDocument?e.ownerDocument:document}},57811:function(e,t,n){var r=n(59414),o=n(45852),i=n(14134),a=i.isPlatform("Mac OS X"),c=a&&i.isBrowser("Firefox < 29"),l=r.hasCommandModifier,u=r.isCtrlKeyCommand;function s(e){return a&&e.altKey||u(e)}e.exports=function(e){switch(e.keyCode){case 66:return l(e)?"bold":null;case 68:return u(e)?"delete":null;case 72:return u(e)?"backspace":null;case 73:return l(e)?"italic":null;case 74:return l(e)?"code":null;case 75:return a&&u(e)?"secondary-cut":null;case 77:case 79:return u(e)?"split-block":null;case 84:return a&&u(e)?"transpose-characters":null;case 85:return l(e)?"underline":null;case 87:return a&&u(e)?"backspace-word":null;case 89:return u(e)?a?"secondary-paste":"redo":null;case 90:return function(e){return l(e)?e.shiftKey?"redo":"undo":null}(e)||null;case o.RETURN:return"split-block";case o.DELETE:return function(e){return!a&&e.shiftKey?null:s(e)?"delete-word":"delete"}(e);case o.BACKSPACE:return function(e){return l(e)&&a?"backspace-to-start-of-line":s(e)?"backspace-word":"backspace"}(e);case o.LEFT:return c&&l(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return c&&l(e)?"move-selection-to-end-of-block":null;default:return null}}},80120:function(e,t,n){var r=n(29215);e.exports=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),o=n.anchorNode,i=n.anchorOffset,a=n.focusNode,c=n.focusOffset;return 0===n.rangeCount||null==o||null==a?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,t,o,i,a,c)}},29215:function(e,t,n){var r=n(88372),o=n(74453),i=n(79450),a=n(90646),c=n(93816),l=n(56408);function u(e,t,n){var i=t,u=r(i);if(null!=u||e&&(e===i||e.firstChild===i)||a(!1),e===i&&(i=i.firstChild,c(i)||a(!1),"true"!==i.getAttribute("data-contents")&&a(!1),n>0&&(n=i.childNodes.length)),0===n){var f=null;if(null!=u)f=u;else{var p=function(e){for(;e.firstChild&&(c(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||o(e.firstChild));)e=e.firstChild;return e}(i);f=l(o(p))}return{key:f,offset:0}}var d=i.childNodes[n-1],g=null,h=null;if(o(d)){var y=function(e){for(;e.lastChild&&(c(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||o(e.lastChild));)e=e.lastChild;return e}(d);g=l(o(y)),h=s(y)}else g=l(u),h=s(d);return{key:g,offset:h}}function s(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=function(e,t,n,o,a,c){var s=n.nodeType===Node.TEXT_NODE,f=a.nodeType===Node.TEXT_NODE;if(s&&f)return{selectionState:i(e,l(r(n)),o,l(r(a)),c),needsRecovery:!1};var p=null,d=null,g=!0;return s?(p={key:l(r(n)),offset:o},d=u(t,a,c)):f?(d={key:l(r(a)),offset:c},p=u(t,n,o)):(p=u(t,n,o),d=u(t,a,c),n===a&&o===c&&(g=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:i(e,p.key,p.offset,d.key,d.offset),needsRecovery:g}}},9927:function(e,t,n){var r=n(51103).notEmptyKey;function o(e,t){return r(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),i=t.getAnchorOffset();return i>0?(n=e.getBlockForKey(r).getEntityAt(i-1))!==e.getBlockForKey(r).getEntityAt(i)?null:o(e.getEntityMap(),n):null}var a=t.getStartKey(),c=t.getStartOffset(),l=e.getBlockForKey(a);return n=c===l.getLength()?null:l.getEntityAt(c),o(e.getEntityMap(),n)}},31296:function(e,t,n){var r=n(30866);e.exports=function(e){var t=e.getSelection();return t.isCollapsed()?null:r(e.getCurrentContent(),t)}},7376:function(e,t,n){var r=n(65224);e.exports=function(e,t){if(!(e instanceof r))return null;var n=e.getNextSiblingKey();if(n)return n;var o=e.getParentKey();if(!o)return null;for(var i=t.get(o);i&&!i.getNextSiblingKey();){var a=i.getParentKey();i=a?t.get(a):null}return i?i.getNextSiblingKey():null}},679:function(e){e.exports=function(e){return Object.keys(e).map((function(t){return e[t]}))}},64658:function(e,t,n){var r=n(25377);e.exports=function(e){var t=r(e),n=0,o=0,i=0,a=0;if(t.length){if(t.length>1&&0===t[0].width){var c=t[1];n=c.top,o=c.right,i=c.bottom,a=c.left}else{var l=t[0];n=l.top,o=l.right,i=l.bottom,a=l.left}for(var u=1;u<t.length;u++){var s=t[u];0!==s.height&&0!==s.width&&(n=Math.min(n,s.top),o=Math.max(o,s.right),i=Math.max(i,s.bottom),a=Math.min(a,s.left))}}return{top:n,right:o,bottom:i,left:a,width:o-a,height:i-n}}},25377:function(e,t,n){var r=n(14134),o=n(90646),i=r.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var i=r===e.commonAncestorContainer;i?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var a,c=Array.from(t.getClientRects());if(n.push(c),i)return n.reverse(),(a=[]).concat.apply(a,n);t.setEndBefore(r)}o(!1)}:function(e){return Array.from(e.getClientRects())};e.exports=i},69311:function(e,t,n){var r=n(90646);e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),n.length||r(!1),n}},19248:function(e,t,n){var r=n(14134),o=n(90646),i=r.isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!i&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||o(!1),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},74453:function(e,t,n){var r=n(93816);e.exports=function e(t){if(r(t)){var n=t,o=n.getAttribute("data-offset-key");if(o)return o;for(var i=0;i<n.childNodes.length;i++){var a=e(n.childNodes[i]);if(a)return a}}return null}},723:function(e,t,n){var r=n(90646),o=/\.textClipping$/,i={"text/plain":!0,"text/html":!0,"text/rtf":!0};e.exports=function(e,t){var a=0,c=[];e.forEach((function(l){!function(e,t){if(!n.g.FileReader||e.type&&!(e.type in i))t("");else{if(""===e.type){var a="";return o.test(e.name)&&(a=e.name.replace(o,"")),void t(a)}var c=new FileReader;c.onload=function(){var e=c.result;"string"!=typeof e&&r(!1),t(e)},c.onerror=function(){t("")},c.readAsText(e)}}(l,(function(n){a++,n&&c.push(n.slice(0,5e3)),a==e.length&&t(c.join("\r"))}))}))}},79450:function(e,t,n){var r=n(3885),o=n(56408);e.exports=function(e,t,n,i,a){var c=o(e.getSelection());if(!t||!i)return c;var l=r.decode(t),u=l.blockKey,s=e.getBlockTree(u),f=s&&s.getIn([l.decoratorKey,"leaves",l.leafKey]),p=r.decode(i),d=p.blockKey,g=e.getBlockTree(d),h=g&&g.getIn([p.decoratorKey,"leaves",p.leafKey]);if(!f||!h)return c;var y=f.get("start"),v=h.get("start"),m=f?y+n:null,S=h?v+a:null;if(c.getAnchorKey()===u&&c.getAnchorOffset()===m&&c.getFocusKey()===d&&c.getFocusOffset()===S)return c;var b=!1;if(u===d){var k=f.get("end"),C=h.get("end");b=v===y&&C===k?a<n:v<y}else b=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===u||e===d})).first()===d;return c.merge({anchorKey:u,anchorOffset:m,focusKey:d,focusOffset:S,isBackward:b})}},30894:function(e,t,n){var r=n(64658);e.exports=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),o=r(n),i=o.top,a=o.right,c=o.bottom,l=o.left;return 0===i&&0===a&&0===c&&0===l?null:o}},35389:function(e){e.exports=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}},47282:function(e){e.exports=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX||!window.__DRAFT_GKX[e])}}}]);