PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.6.5
ShopBuilder – WooCommerce Builder For Elementor v2.6.5
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
shopbuilder / assets / js / backend / admin-settings.js

admin-settings.js in ShopBuilder – WooCommerce Builder For Elementor 2.6.5, at assets/js/backend/admin-settings.js

82 lines 1.7 MB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 !function(){var e,t,n={7526:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=l(e),a=i[0],c=i[1],s=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,c)),u=0,f=c>0?a-4:a;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],s[u++]=t>>16&255,s[u++]=t>>8&255,s[u++]=255&t;2===c&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,s[u++]=255&t);1===c&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t);return s},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,l=0,s=r-o;l<s;l+=a)i.push(c(e,l,l+a>s?s:l+a));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,r){for(var o,i,a=[],l=t;l<r;l+=3)o=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(255&e[l+2]),a.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},8287:function(e,t,n){"use strict";var r=n(7526),o=n(251),i=n(5336);
2 /*!
3 * The buffer module from node.js, for the browser.
4 *
5 * @author Feross Aboukhadijeh <http://feross.org>
6 * @license MIT
7 */function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return s(this,e,t,n)}function s(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=d(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n);e=l(e,r);var o=e.write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|p(t.length);return 0===(e=l(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?l(e,0):d(e,t);if("Buffer"===t.type&&i(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(u(t),e=l(e,t<0?0:0|p(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|p(t.length);e=l(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function v(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return j(this,t,n);case"latin1":case"binary":return $(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,o);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,o){var i,a=1,l=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,l/=2,c/=2,n/=2}function s(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=n;i<l;i++)if(s(e,i)===s(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===c)return u*a}else-1!==u&&(i-=i-u),u=-1}else for(n+c>l&&(n=l-c),i=n;i>=0;i--){for(var f=!0,d=0;d<c;d++)if(s(e,i+d)!==s(t,d)){f=!1;break}if(f)return i}return-1}function y(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var l=parseInt(t.substr(2*a,2),16);if(isNaN(l))return a;e[n+a]=l}return a}function w(e,t,n,r){return H(B(t,e.length-n),e,n,r)}function x(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function S(e,t,n,r){return x(e,t,n,r)}function C(e,t,n,r){return H(F(t),e,n,r)}function k(e,t,n,r){return H(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function E(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function O(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,l,c,s=e[o],u=null,f=s>239?4:s>223?3:s>191?2:1;if(o+f<=n)switch(f){case 1:s<128&&(u=s);break;case 2:128==(192&(i=e[o+1]))&&(c=(31&s)<<6|63&i)>127&&(u=c);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(c=(15&s)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:i=e[o+1],a=e[o+2],l=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&l)&&(c=(15&s)<<18|(63&i)<<12|(63&a)<<6|63&l)>65535&&c<1114112&&(u=c)}null===u?(u=65533,f=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=f}return function(e){var t=e.length;if(t<=_)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=_));return n}(r)}t.hp=c,t.IS=50,c.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?n.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return s(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?l(e,t):void 0!==n?"string"==typeof r?l(e,t).fill(n,r):l(e,t).fill(n):l(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return f(null,e)},c.allocUnsafeSlow=function(e){return f(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},c.byteLength=h,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?O(this,0,e):v.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.IS;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,o){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),l=Math.min(i,a),s=this.slice(r,o),u=e.slice(t,n),f=0;f<l;++f)if(s[f]!==u[f]){i=s[f],a=u[f];break}return i<a?-1:a<i?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return x(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var _=4096;function j(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function $(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function N(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=z(e[i]);return o}function P(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function I(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,r,o,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function R(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function A(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function T(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function q(e,t,n,r,i){return i||T(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function D(e,t,n,r,i){return i||T(e,0,n,8),o.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var o=t-e;n=new c(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},c.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):A(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):A(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}var i=0,a=1,l=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===l&&0!==this[t+i-1]&&(l=1),this[t+i]=(e/a|0)-l&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}var i=n-1,a=1,l=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===l&&0!==this[t+i+1]&&(l=1),this[t+i]=(e/a|0)-l&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):A(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):A(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return q(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return q(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=c.isBuffer(e)?e:B(new c(e,r).toString()),l=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%l]}return this};var L=/[^+\/0-9A-Za-z-_]/g;function z(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function F(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(L,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}},5336:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},7965:function(e,t,n){"use strict";var r=n(6426),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,l,c,s,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),l=document.createRange(),c=document.getSelection(),(s=document.createElement("span")).textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(s),l.selectNodeContents(s),c.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(l):c.removeAllRanges()),s&&document.body.removeChild(s),a()}return u}},1958:function(e,t,n){"use strict";var r=n(6314),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,'/*!\n * Quill Editor v1.3.7\n * https://quilljs.com/\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */.ql-container{-webkit-box-sizing:border-box;box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{height:1px;left:-100000px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{word-wrap:break-word;-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;line-height:1.42;outline:none;overflow-y:auto;padding:12px 15px;-o-tab-size:4;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap}.ql-editor>*{cursor:text}.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor ol,.ql-editor p,.ql-editor pre,.ql-editor ul{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;margin:0;padding:0}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"\\2022"}.ql-editor ul[data-checked=false],.ql-editor ul[data-checked=true]{pointer-events:none}.ql-editor ul[data-checked=false]>li *,.ql-editor ul[data-checked=true]>li *{pointer-events:all}.ql-editor ul[data-checked=false]>li:before,.ql-editor ul[data-checked=true]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"\\2611"}.ql-editor ul[data-checked=false]>li:before{content:"\\2610"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl):before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl:before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-increment:list-0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow .ql-toolbar:after,.ql-snow.ql-toolbar:after{clear:both;content:"";display:table}.ql-snow .ql-toolbar button,.ql-snow.ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow .ql-toolbar button svg,.ql-snow.ql-toolbar button svg{float:left;height:100%}.ql-snow .ql-toolbar button:active:hover,.ql-snow.ql-toolbar button:active:hover{outline:none}.ql-snow .ql-toolbar input.ql-image[type=file],.ql-snow.ql-toolbar input.ql-image[type=file]{display:none}.ql-snow .ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar button.ql-active,.ql-snow .ql-toolbar button:focus,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar button.ql-active,.ql-snow.ql-toolbar button:focus,.ql-snow.ql-toolbar button:hover{color:#06c}.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill{fill:#06c}.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow .ql-toolbar button:hover:not(.ql-active),.ql-snow.ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{-webkit-box-sizing:border-box;box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;-webkit-transform:translateY(10px);transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{-webkit-transform:translateY(-10px);transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-stroke.ql-thin,.ql-snow .ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor pre{margin-bottom:5px;margin-top:5px;padding:5px 10px;white-space:pre-wrap}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;padding:2px 4px;width:24px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{margin-top:-9px;position:absolute;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-item:before,.ql-snow .ql-picker.ql-header .ql-picker-label:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-item:before,.ql-snow .ql-picker.ql-font .ql-picker-label:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-item:before,.ql-snow .ql-picker.ql-size .ql-picker-label:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-toolbar.ql-snow{border:1px solid #ccc;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.2);box-shadow:0 2px 8px rgba(0,0,0,.2)}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;-webkit-box-shadow:0 0 5px #ddd;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{border:1px solid #ccc;display:none;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}',""]),t.A=o},6314:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);r&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},4353:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",l="day",c="week",s="month",u="quarter",f="year",d="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},b={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,s),i=n-o<0,a=t.clone().add(r+(i?-1:1),s);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:s,y:f,w:c,d:l,D:d,h:a,m:i,s:o,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",w={};w[y]=m;var x="$isDayjsObject",S=function(e){return e instanceof O||!(!e||!e[x])},C=function e(t,n,r){var o;if(!t)return y;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(o=i),n&&(w[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var l=t.name;w[l]=t,o=l}return!r&&o&&(y=o),o||!r&&y},k=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new O(n)},E=b;E.l=C,E.i=S,E.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var O=function(){function m(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return E},g.isValid=function(){return!(this.$d.toString()===p)},g.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return k(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<k(e)},g.$g=function(e,t,n){return E.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,r=!!E.u(t)||t,u=E.p(e),p=function(e,t){var o=E.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(l)},h=function(e,t){return E.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},v=this.$W,m=this.$M,g=this.$D,b="set"+(this.$u?"UTC":"");switch(u){case f:return r?p(1,0):p(31,11);case s:return r?p(1,m):p(0,m+1);case c:var y=this.$locale().weekStart||0,w=(v<y?v+7:v)-y;return p(r?g-w:g+(6-w),m);case l:case d:return h(b+"Hours",0);case a:return h(b+"Minutes",1);case i:return h(b+"Seconds",2);case o:return h(b+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var n,c=E.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[l]=u+"Date",n[d]=u+"Date",n[s]=u+"Month",n[f]=u+"FullYear",n[a]=u+"Hours",n[i]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[c],h=c===l?this.$D+(t-this.$W):t;if(c===s||c===f){var v=this.clone().set(d,1);v.$d[p](h),v.init(),this.$d=v.set(d,Math.min(this.$D,v.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[E.p(e)]()},g.add=function(r,u){var d,p=this;r=Number(r);var h=E.p(u),v=function(e){var t=k(p);return E.w(t.date(t.date()+Math.round(e*r)),p)};if(h===s)return this.set(s,this.$M+r);if(h===f)return this.set(f,this.$y+r);if(h===l)return v(1);if(h===c)return v(7);var m=(d={},d[i]=t,d[a]=n,d[o]=e,d)[h]||1,g=this.$d.getTime()+r*m;return E.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=E.z(this),i=this.$H,a=this.$m,l=this.$M,c=n.weekdays,s=n.months,u=n.meridiem,f=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},d=function(e){return E.s(i%12||12,e,"0")},h=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(v,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return E.s(t.$y,4,"0");case"M":return l+1;case"MM":return E.s(l+1,2,"0");case"MMM":return f(n.monthsShort,l,s,3);case"MMMM":return f(s,l);case"D":return t.$D;case"DD":return E.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return f(n.weekdaysMin,t.$W,c,2);case"ddd":return f(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(i);case"HH":return E.s(i,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return h(i,a,!0);case"A":return h(i,a,!1);case"m":return String(a);case"mm":return E.s(a,2,"0");case"s":return String(t.$s);case"ss":return E.s(t.$s,2,"0");case"SSS":return E.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,d,p){var h,v=this,m=E.p(d),g=k(r),b=(g.utcOffset()-this.utcOffset())*t,y=this-g,w=function(){return E.m(v,g)};switch(m){case f:h=w()/12;break;case s:h=w();break;case u:h=w()/3;break;case c:h=(y-b)/6048e5;break;case l:h=(y-b)/864e5;break;case a:h=y/n;break;case i:h=y/t;break;case o:h=y/e;break;default:h=y}return p?h:E.a(h)},g.daysInMonth=function(){return this.endOf(s).$D},g.$locale=function(){return w[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return E.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),_=O.prototype;return k.prototype=_,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",l],["$M",s],["$y",f],["$D",d]].forEach((function(e){_[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),k.extend=function(e,t){return e.$i||(e(t,O,k),e.$i=!0),k},k.locale=C,k.isDayjs=S,k.unix=function(e){return k(1e3*e)},k.en=w[y],k.Ls=w,k.p={},k}()},7375:function(e){e.exports=function(){"use strict";return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),i=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return r.bind(this)(i)}}}()},445:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,i={},a=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],s=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},f={A:[o,function(e){this.afternoon=u(e,!1)}],a:[o,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,l("seconds")],ss:[r,l("seconds")],m:[r,l("minutes")],mm:[r,l("minutes")],H:[r,l("hours")],h:[r,l("hours")],HH:[r,l("hours")],hh:[r,l("hours")],D:[r,l("day")],DD:[n,l("day")],Do:[o,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,l("month")],MM:[n,l("month")],MMM:[o,function(e){var t=s("months"),n=(s("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=s("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function d(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),l=a.length,c=0;c<l;c+=1){var s=a[c],u=f[s],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:s.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<l;n+=1){var o=a[n];if("string"==typeof o)r+=o.length;else{var i=o.regex,c=o.parser,s=e.slice(r),u=i.exec(s)[0];c.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var l=a[1];if("string"==typeof l){var c=!0===a[2],s=!0===a[3],u=c||s,f=a[2];s&&(f=a[2]),i=this.$locale(),!c&&f&&(i=n.Ls[f]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=d(t)(e),o=r.year,i=r.month,a=r.day,l=r.hours,c=r.minutes,s=r.seconds,u=r.milliseconds,f=r.zone,p=new Date,h=a||(o||i?1:p.getDate()),v=o||p.getFullYear(),m=0;o&&!i||(m=i>0?i-1:p.getMonth());var g=l||0,b=c||0,y=s||0,w=u||0;return f?new Date(Date.UTC(v,m,h,g,b,y,w+60*f.offset*1e3)):n?new Date(Date.UTC(v,m,h,g,b,y,w)):new Date(v,m,h,g,b,y,w)}catch(e){return new Date("")}}(t,l,r),this.init(),f&&!0!==f&&(this.$L=this.locale(f).$L),u&&t!=this.format(l)&&(this.$d=new Date("")),i={}}else if(l instanceof Array)for(var p=l.length,h=1;h<=p;h+=1){a[1]=l[h-1];var v=n.apply(this,a);if(v.isValid()){this.$d=v.$d,this.$L=v.$L,this.init();break}h===p&&(this.$d=new Date(""))}else o.call(this,e)}}}()},1840:function(e){e.exports=function(){"use strict";return function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,r,i){var a=e.name?e:e.$locale(),l=o(a[t]),c=o(a[n]),s=l||c.map((function(e){return e.slice(0,r)}));if(!i)return s;var u=a.weekStart;return s.map((function(e,t){return s[(t+(u||0))%7]}))},a=function(){return n.Ls[n.locale()]},l=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return l(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return l(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(a(),"months")},n.monthsShort=function(){return i(a(),"monthsShort","months",3)},n.weekdays=function(e){return i(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(a(),"weekdaysMin","weekdays",2,e)}}}()},8134:function(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,r,o){var i=r.prototype;i.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=o(this).startOf(t).add(1,t).date(r),a=o(this).endOf(e);if(i.isBefore(a))return 1}var l=o(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),c=this.diff(l,e,!0);return c<0?o(this).startOf("week").week():Math.ceil(c)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},8623:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}}()},6986:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,"day").add(e,"day")}}}()},251:function(e,t){
8 /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
9 t.read=function(e,t,n,r,o){var i,a,l=8*o-r-1,c=(1<<l)-1,s=c>>1,u=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-u)-1,p>>=-u,u+=l;u>0;i=256*i+e[t+f],f+=d,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+f],f+=d,u-=8);if(0===i)i=1-s;else{if(i===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=s}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,l,c,s=8*i-o-1,u=(1<<s)-1,f=u>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+f>=1?d/c:d*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=u?(l=0,a=u):a+f>=1?(l=(t*c-1)*Math.pow(2,o),a+=f):(l=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&l,p+=h,l/=256,o-=8);for(a=a<<o|l,s+=o;s>0;e[n+p]=255&a,p+=h,a/=256,s-=8);e[n+p-h]|=128*v}},311:function(e){"use strict";e.exports=function(e,t,n,r,o,i,a,l){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,l],u=0;(c=new Error(t.replace(/%s/g,(function(){return s[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},5580:function(e,t,n){var r=n(6110)(n(9325),"DataView");e.exports=r},1549:function(e,t,n){var r=n(2032),o=n(3862),i=n(6721),a=n(2749),l=n(5749);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=l,e.exports=c},79:function(e,t,n){var r=n(3702),o=n(80),i=n(4739),a=n(8655),l=n(1175);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=l,e.exports=c},8223:function(e,t,n){var r=n(6110)(n(9325),"Map");e.exports=r},3661:function(e,t,n){var r=n(3040),o=n(7670),i=n(289),a=n(4509),l=n(2949);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=l,e.exports=c},2804:function(e,t,n){var r=n(6110)(n(9325),"Promise");e.exports=r},6545:function(e,t,n){var r=n(6110)(n(9325),"Set");e.exports=r},8859:function(e,t,n){var r=n(3661),o=n(1380),i=n(1459);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},7217:function(e,t,n){var r=n(79),o=n(1420),i=n(938),a=n(3605),l=n(9817),c=n(945);function s(e){var t=this.__data__=new r(e);this.size=t.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=l,s.prototype.set=c,e.exports=s},1873:function(e,t,n){var r=n(9325).Symbol;e.exports=r},7828:function(e,t,n){var r=n(9325).Uint8Array;e.exports=r},8303:function(e,t,n){var r=n(6110)(n(9325),"WeakMap");e.exports=r},9770:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},695:function(e,t,n){var r=n(8096),o=n(2428),i=n(6449),a=n(3656),l=n(361),c=n(7167),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&o(e),f=!n&&!u&&a(e),d=!n&&!u&&!f&&c(e),p=n||u||f||d,h=p?r(e.length,String):[],v=h.length;for(var m in e)!t&&!s.call(e,m)||p&&("length"==m||f&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||l(m,v))||h.push(m);return h}},4528:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},4248:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},6025:function(e,t,n){var r=n(5288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},2199:function(e,t,n){var r=n(4528),o=n(6449);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},2552:function(e,t,n){var r=n(1873),o=n(659),i=n(9350),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},7534:function(e,t,n){var r=n(2552),o=n(346);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},270:function(e,t,n){var r=n(7068),o=n(346);e.exports=function e(t,n,i,a,l){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,l))}},7068:function(e,t,n){var r=n(7217),o=n(5911),i=n(1986),a=n(689),l=n(5861),c=n(6449),s=n(3656),u=n(7167),f="[object Arguments]",d="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,m,g){var b=c(e),y=c(t),w=b?d:l(e),x=y?d:l(t),S=(w=w==f?p:w)==p,C=(x=x==f?p:x)==p,k=w==x;if(k&&s(e)){if(!s(t))return!1;b=!0,S=!1}if(k&&!S)return g||(g=new r),b||u(e)?o(e,t,n,v,m,g):i(e,t,w,n,v,m,g);if(!(1&n)){var E=S&&h.call(e,"__wrapped__"),O=C&&h.call(t,"__wrapped__");if(E||O){var _=E?e.value():e,j=O?t.value():t;return g||(g=new r),m(_,j,n,v,g)}}return!!k&&(g||(g=new r),a(e,t,n,v,m,g))}},5083:function(e,t,n){var r=n(1882),o=n(7296),i=n(3805),a=n(7473),l=/^\[object .+?Constructor\]$/,c=Function.prototype,s=Object.prototype,u=c.toString,f=s.hasOwnProperty,d=RegExp("^"+u.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?d:l).test(a(e))}},4901:function(e,t,n){var r=n(2552),o=n(294),i=n(346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},8984:function(e,t,n){var r=n(5527),o=n(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},8096:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},7301:function(e){e.exports=function(e){return function(t){return e(t)}}},9219:function(e){e.exports=function(e,t){return e.has(t)}},5481:function(e,t,n){var r=n(9325)["__core-js_shared__"];e.exports=r},5911:function(e,t,n){var r=n(8859),o=n(4248),i=n(9219);e.exports=function(e,t,n,a,l,c){var s=1&n,u=e.length,f=t.length;if(u!=f&&!(s&&f>u))return!1;var d=c.get(e),p=c.get(t);if(d&&p)return d==t&&p==e;var h=-1,v=!0,m=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++h<u;){var g=e[h],b=t[h];if(a)var y=s?a(b,g,h,t,e,c):a(g,b,h,e,t,c);if(void 0!==y){if(y)continue;v=!1;break}if(m){if(!o(t,(function(e,t){if(!i(m,t)&&(g===e||l(g,e,n,a,c)))return m.push(t)}))){v=!1;break}}else if(g!==b&&!l(g,b,n,a,c)){v=!1;break}}return c.delete(e),c.delete(t),v}},1986:function(e,t,n){var r=n(1873),o=n(7828),i=n(5288),a=n(5911),l=n(317),c=n(4247),s=r?r.prototype:void 0,u=s?s.valueOf:void 0;e.exports=function(e,t,n,r,s,f,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=l;case"[object Set]":var h=1&r;if(p||(p=c),e.size!=t.size&&!h)return!1;var v=d.get(e);if(v)return v==t;r|=2,d.set(e,t);var m=a(p(e),p(t),r,s,f,d);return d.delete(e),m;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},689:function(e,t,n){var r=n(2),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,l){var c=1&n,s=r(e),u=s.length;if(u!=r(t).length&&!c)return!1;for(var f=u;f--;){var d=s[f];if(!(c?d in t:o.call(t,d)))return!1}var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var v=!0;l.set(e,t),l.set(t,e);for(var m=c;++f<u;){var g=e[d=s[f]],b=t[d];if(i)var y=c?i(b,g,d,t,e,l):i(g,b,d,e,t,l);if(!(void 0===y?g===b||a(g,b,n,i,l):y)){v=!1;break}m||(m="constructor"==d)}if(v&&!m){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(v=!1)}return l.delete(e),l.delete(t),v}},4840:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},2:function(e,t,n){var r=n(2199),o=n(4664),i=n(5950);e.exports=function(e){return r(e,i,o)}},2651:function(e,t,n){var r=n(4218);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},6110:function(e,t,n){var r=n(5083),o=n(392);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},659:function(e,t,n){var r=n(1873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[l]=n:delete e[l]),o}},4664:function(e,t,n){var r=n(9770),o=n(3345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,l=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=l},5861:function(e,t,n){var r=n(5580),o=n(8223),i=n(2804),a=n(6545),l=n(8303),c=n(2552),s=n(7473),u="[object Map]",f="[object Promise]",d="[object Set]",p="[object WeakMap]",h="[object DataView]",v=s(r),m=s(o),g=s(i),b=s(a),y=s(l),w=c;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=u||i&&w(i.resolve())!=f||a&&w(new a)!=d||l&&w(new l)!=p)&&(w=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?s(n):"";if(r)switch(r){case v:return h;case m:return u;case g:return f;case b:return d;case y:return p}return t}),e.exports=w},392:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},2032:function(e,t,n){var r=n(1042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},3862:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6721:function(e,t,n){var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},2749:function(e,t,n){var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},5749:function(e,t,n){var r=n(1042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},361:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},4218:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7296:function(e,t,n){var r,o=n(5481),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},5527:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},3702:function(e){e.exports=function(){this.__data__=[],this.size=0}},80:function(e,t,n){var r=n(6025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},4739:function(e,t,n){var r=n(6025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},8655:function(e,t,n){var r=n(6025);e.exports=function(e){return r(this.__data__,e)>-1}},1175:function(e,t,n){var r=n(6025);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},3040:function(e,t,n){var r=n(1549),o=n(79),i=n(8223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},7670:function(e,t,n){var r=n(2651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},289:function(e,t,n){var r=n(2651);e.exports=function(e){return r(this,e).get(e)}},4509:function(e,t,n){var r=n(2651);e.exports=function(e){return r(this,e).has(e)}},2949:function(e,t,n){var r=n(2651);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},317:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},1042:function(e,t,n){var r=n(6110)(Object,"create");e.exports=r},3650:function(e,t,n){var r=n(4335)(Object.keys,Object);e.exports=r},6009:function(e,t,n){e=n.nmd(e);var r=n(4840),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,l=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=l},9350:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},9325:function(e,t,n){var r=n(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},1380:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1459:function(e){e.exports=function(e){return this.__data__.has(e)}},4247:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},1420:function(e,t,n){var r=n(79);e.exports=function(){this.__data__=new r,this.size=0}},938:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},3605:function(e){e.exports=function(e){return this.__data__.get(e)}},9817:function(e){e.exports=function(e){return this.__data__.has(e)}},945:function(e,t,n){var r=n(79),o=n(8223),i=n(3661);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},7473:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},5288:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},4480:function(e,t,n){var r=n(9761).runInContext();e.exports=n(3424)(r,r)},3424:function(e,t,n){var r=n(6962),o=n(2874),i=Array.prototype.push;function a(e,t){return 2==t?function(t,n){return e(t,n)}:function(t){return e(t)}}function l(e){for(var t=e?e.length:0,n=Array(t);t--;)n[t]=e[t];return n}function c(e,t){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var o=r[0]=t.apply(void 0,r);return e.apply(void 0,r),o}}}e.exports=function e(t,n,s,u){var f="function"==typeof n,d=n===Object(n);if(d&&(u=s,s=n,n=void 0),null==s)throw new TypeError;u||(u={});var p={cap:!("cap"in u)||u.cap,curry:!("curry"in u)||u.curry,fixed:!("fixed"in u)||u.fixed,immutable:!("immutable"in u)||u.immutable,rearg:!("rearg"in u)||u.rearg},h=f?s:o,v="curry"in u&&u.curry,m="fixed"in u&&u.fixed,g="rearg"in u&&u.rearg,b=f?s.runInContext():void 0,y=f?s:{ary:t.ary,assign:t.assign,clone:t.clone,curry:t.curry,forEach:t.forEach,isArray:t.isArray,isError:t.isError,isFunction:t.isFunction,isWeakMap:t.isWeakMap,iteratee:t.iteratee,keys:t.keys,rearg:t.rearg,toInteger:t.toInteger,toPath:t.toPath},w=y.ary,x=y.assign,S=y.clone,C=y.curry,k=y.forEach,E=y.isArray,O=y.isError,_=y.isFunction,j=y.isWeakMap,$=y.keys,N=y.rearg,P=y.toInteger,I=y.toPath,M=$(r.aryMethod),R={castArray:function(e){return function(){var t=arguments[0];return E(t)?e(l(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[1],n=e(arguments[0],t),r=n.length;return p.cap&&"number"==typeof t?(t=t>2?t-2:1,r&&r<=t?n:a(n,t)):n}},mixin:function(e){return function(t){var n=this;if(!_(n))return e(n,Object(t));var r=[];return k($(t),(function(e){_(t[e])&&r.push([e,n.prototype[e]])})),e(n,Object(t)),k(r,(function(e){var t=e[1];_(t)?n.prototype[e[0]]=t:delete n.prototype[e[0]]})),n}},nthArg:function(e){return function(t){var n=t<0?1:P(t)+1;return C(e(t),n)}},rearg:function(e){return function(t,n){var r=n?n.length:0;return C(e(t,n),r)}},runInContext:function(n){return function(r){return e(t,n(r),u)}}};function A(e,t){if(p.cap){var n=r.iterateeRearg[e];if(n)return function(e,t){return z(e,(function(e){var n=t.length;return function(e,t){return 2==t?function(t,n){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(N(a(e,n),t),n)}))}(t,n);var o=!f&&r.iterateeAry[e];if(o)return function(e,t){return z(e,(function(e){return"function"==typeof e?a(e,t):e}))}(t,o)}return t}function T(e,t,n){if(p.fixed&&(m||!r.skipFixed[e])){var o=r.methodSpread[e],a=o&&o.start;return void 0===a?w(t,n):function(e,t){return function(){for(var n=arguments.length,r=n-1,o=Array(n);n--;)o[n]=arguments[n];var a=o[t],l=o.slice(0,t);return a&&i.apply(l,a),t!=r&&i.apply(l,o.slice(t+1)),e.apply(this,l)}}(t,a)}return t}function q(e,t,n){return p.rearg&&n>1&&(g||!r.skipRearg[e])?N(t,r.methodRearg[e]||r.aryRearg[n]):t}function D(e,t){for(var n=-1,r=(t=I(t)).length,o=r-1,i=S(Object(e)),a=i;null!=a&&++n<r;){var l=t[n],c=a[l];null==c||_(c)||O(c)||j(c)||(a[l]=S(n==o?c:Object(c))),a=a[l]}return i}function L(t,n){var o=r.aliasToReal[t]||t,i=r.remap[o]||o,a=u;return function(t){var r=f?b:y,l=f?b[i]:n,c=x(x({},a),t);return e(r,o,l,c)}}function z(e,t){return function(){var n=arguments.length;if(!n)return e();for(var r=Array(n);n--;)r[n]=arguments[n];var o=p.rearg?0:n-1;return r[o]=t(r[o]),e.apply(void 0,r)}}function B(e,t,n){var o,i=r.aliasToReal[e]||e,a=t,s=R[i];return s?a=s(t):p.immutable&&(r.mutate.array[i]?a=c(t,l):r.mutate.object[i]?a=c(t,function(e){return function(t){return e({},t)}}(t)):r.mutate.set[i]&&(a=c(t,D))),k(M,(function(e){return k(r.aryMethod[e],(function(t){if(i==t){var n=r.methodSpread[i],l=n&&n.afterRearg;return o=l?T(i,q(i,a,e),e):q(i,T(i,a,e),e),o=function(e,t,n){return v||p.curry&&n>1?C(t,n):t}(0,o=A(i,o),e),!1}})),!o})),o||(o=a),o==t&&(o=v?C(o,1):function(){return t.apply(this,arguments)}),o.convert=L(i,t),o.placeholder=t.placeholder=n,o}if(!d)return B(n,s,h);var F=s,H=[];return k(M,(function(e){k(r.aryMethod[e],(function(e){var t=F[r.remap[e]||e];t&&H.push([e,B(e,t,F)])}))})),k($(F),(function(e){var t=F[e];if("function"==typeof t){for(var n=H.length;n--;)if(H[n][0]==e)return;t.convert=L(e,t),H.push([e,t])}})),k(H,(function(e){F[e[0]]=e[1]})),F.convert=function(e){return F.runInContext.convert(e)(void 0)},F.placeholder=F,k($(F),(function(e){k(r.realToAlias[e]||[],(function(t){F[t]=F[e]}))})),F}},6962:function(e,t){t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,n=t.aliasToReal,r={};for(var o in n){var i=n[o];e.call(r,i)?r[i].push(o):r[i]=[o]}return r}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},2874:function(e){e.exports={}},2428:function(e,t,n){var r=n(7534),o=n(346),i=Object.prototype,a=i.hasOwnProperty,l=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!l.call(e,"callee")};e.exports=c},6449:function(e){var t=Array.isArray;e.exports=t},4894:function(e,t,n){var r=n(1882),o=n(294);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},3656:function(e,t,n){e=n.nmd(e);var r=n(9325),o=n(9935),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,l=a&&a.exports===i?r.Buffer:void 0,c=(l?l.isBuffer:void 0)||o;e.exports=c},2404:function(e,t,n){var r=n(270);e.exports=function(e,t){return r(e,t)}},1882:function(e,t,n){var r=n(2552),o=n(3805);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3805:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},7167:function(e,t,n){var r=n(4901),o=n(7301),i=n(6009),a=i&&i.isTypedArray,l=a?o(a):r;e.exports=l},5950:function(e,t,n){var r=n(695),o=n(8984),i=n(4894);e.exports=function(e){return i(e)?r(e):o(e)}},2543:function(e,t,n){var r;
10 /**
11 * @license
12 * Lodash <https://lodash.com/>
13 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
14 * Released under MIT license <https://lodash.com/license>
15 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
16 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
17 */e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",l="__lodash_placeholder__",c=16,s=32,u=64,f=128,d=256,p=1/0,h=9007199254740991,v=NaN,m=4294967295,g=[["ary",f],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",s],["partialRight",u],["rearg",d]],b="[object Arguments]",y="[object Array]",w="[object Boolean]",x="[object Date]",S="[object Error]",C="[object Function]",k="[object GeneratorFunction]",E="[object Map]",O="[object Number]",_="[object Object]",j="[object Promise]",$="[object RegExp]",N="[object Set]",P="[object String]",I="[object Symbol]",M="[object WeakMap]",R="[object ArrayBuffer]",A="[object DataView]",T="[object Float32Array]",q="[object Float64Array]",D="[object Int8Array]",L="[object Int16Array]",z="[object Int32Array]",B="[object Uint8Array]",F="[object Uint8ClampedArray]",H="[object Uint16Array]",W="[object Uint32Array]",V=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,X=RegExp(Y.source),Q=RegExp(K.source),Z=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(oe.source),ae=/^\s+/,le=/\s/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ve=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,be=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Se=/($^)/,Ce=/['\n\r\u2028\u2029\\]/g,ke="\\ud800-\\udfff",Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Oe="\\u2700-\\u27bf",_e="a-z\\xdf-\\xf6\\xf8-\\xff",je="A-Z\\xc0-\\xd6\\xd8-\\xde",$e="\\ufe0e\\ufe0f",Ne="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pe="['’]",Ie="["+ke+"]",Me="["+Ne+"]",Re="["+Ee+"]",Ae="\\d+",Te="["+Oe+"]",qe="["+_e+"]",De="[^"+ke+Ne+Ae+Oe+_e+je+"]",Le="\\ud83c[\\udffb-\\udfff]",ze="[^"+ke+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",Fe="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+je+"]",We="\\u200d",Ve="(?:"+qe+"|"+De+")",Ue="(?:"+He+"|"+De+")",Ge="(?:['’](?:d|ll|m|re|s|t|ve))?",Ye="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Re+"|"+Le+")"+"?",Xe="["+$e+"]?",Qe=Xe+Ke+("(?:"+We+"(?:"+[ze,Be,Fe].join("|")+")"+Xe+Ke+")*"),Ze="(?:"+[Te,Be,Fe].join("|")+")"+Qe,Je="(?:"+[ze+Re+"?",Re,Be,Fe,Ie].join("|")+")",et=RegExp(Pe,"g"),tt=RegExp(Re,"g"),nt=RegExp(Le+"(?="+Le+")|"+Je+Qe,"g"),rt=RegExp([He+"?"+qe+"+"+Ge+"(?="+[Me,He,"$"].join("|")+")",Ue+"+"+Ye+"(?="+[Me,He+Ve,"$"].join("|")+")",He+"?"+Ve+"+"+Ge,He+"+"+Ye,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ae,Ze].join("|"),"g"),ot=RegExp("["+We+ke+Ee+$e+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],lt=-1,ct={};ct[T]=ct[q]=ct[D]=ct[L]=ct[z]=ct[B]=ct[F]=ct[H]=ct[W]=!0,ct[b]=ct[y]=ct[R]=ct[w]=ct[A]=ct[x]=ct[S]=ct[C]=ct[E]=ct[O]=ct[_]=ct[$]=ct[N]=ct[P]=ct[M]=!1;var st={};st[b]=st[y]=st[R]=st[A]=st[w]=st[x]=st[T]=st[q]=st[D]=st[L]=st[z]=st[E]=st[O]=st[_]=st[$]=st[N]=st[P]=st[I]=st[B]=st[F]=st[H]=st[W]=!0,st[S]=st[C]=st[M]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ft=parseFloat,dt=parseInt,pt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ht="object"==typeof self&&self&&self.Object===Object&&self,vt=pt||ht||Function("return this")(),mt=t&&!t.nodeType&&t,gt=mt&&e&&!e.nodeType&&e,bt=gt&&gt.exports===mt,yt=bt&&pt.process,wt=function(){try{var e=gt&&gt.require&&gt.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(e){}}(),xt=wt&&wt.isArrayBuffer,St=wt&&wt.isDate,Ct=wt&&wt.isMap,kt=wt&&wt.isRegExp,Et=wt&&wt.isSet,Ot=wt&&wt.isTypedArray;function _t(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function jt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function $t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Nt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Pt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function It(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Mt(e,t){return!!(null==e?0:e.length)&&Ht(e,t,0)>-1}function Rt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function At(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Tt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function qt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Dt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Lt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var zt=Gt("length");function Bt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Ft(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Ht(e,t,n){return t==t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Ft(e,Vt,n)}function Wt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Vt(e){return e!=e}function Ut(e,t){var n=null==e?0:e.length;return n?Xt(e,t)/n:v}function Gt(e){return function(t){return null==t?o:t[e]}}function Yt(e){return function(t){return null==e?o:e[t]}}function Kt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Xt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Qt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Zt(e){return e?e.slice(0,mn(e)+1).replace(ae,""):e}function Jt(e){return function(t){return e(t)}}function en(e,t){return At(t,(function(t){return e[t]}))}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Ht(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Ht(t,e[n],0)>-1;);return n}var on=Yt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),an=Yt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function ln(e){return"\\"+ut[e]}function cn(e){return ot.test(e)}function sn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function un(e,t){return function(n){return e(t(n))}}function fn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==l||(e[n]=l,i[o++]=n)}return i}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function hn(e){return cn(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):zt(e)}function vn(e){return cn(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function mn(e){for(var t=e.length;t--&&le.test(e.charAt(t)););return t}var gn=Yt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var bn=function e(t){var n,r=(t=null==t?vt:bn.defaults(vt.Object(),t,bn.pick(vt,at))).Array,le=t.Date,ke=t.Error,Ee=t.Function,Oe=t.Math,_e=t.Object,je=t.RegExp,$e=t.String,Ne=t.TypeError,Pe=r.prototype,Ie=Ee.prototype,Me=_e.prototype,Re=t["__core-js_shared__"],Ae=Ie.toString,Te=Me.hasOwnProperty,qe=0,De=(n=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Le=Me.toString,ze=Ae.call(_e),Be=vt._,Fe=je("^"+Ae.call(Te).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=bt?t.Buffer:o,We=t.Symbol,Ve=t.Uint8Array,Ue=He?He.allocUnsafe:o,Ge=un(_e.getPrototypeOf,_e),Ye=_e.create,Ke=Me.propertyIsEnumerable,Xe=Pe.splice,Qe=We?We.isConcatSpreadable:o,Ze=We?We.iterator:o,Je=We?We.toStringTag:o,nt=function(){try{var e=pi(_e,"defineProperty");return e({},"",{}),e}catch(e){}}(),ot=t.clearTimeout!==vt.clearTimeout&&t.clearTimeout,ut=le&&le.now!==vt.Date.now&&le.now,pt=t.setTimeout!==vt.setTimeout&&t.setTimeout,ht=Oe.ceil,mt=Oe.floor,gt=_e.getOwnPropertySymbols,yt=He?He.isBuffer:o,wt=t.isFinite,zt=Pe.join,Yt=un(_e.keys,_e),yn=Oe.max,wn=Oe.min,xn=le.now,Sn=t.parseInt,Cn=Oe.random,kn=Pe.reverse,En=pi(t,"DataView"),On=pi(t,"Map"),_n=pi(t,"Promise"),jn=pi(t,"Set"),$n=pi(t,"WeakMap"),Nn=pi(_e,"create"),Pn=$n&&new $n,In={},Mn=Li(En),Rn=Li(On),An=Li(_n),Tn=Li(jn),qn=Li($n),Dn=We?We.prototype:o,Ln=Dn?Dn.valueOf:o,zn=Dn?Dn.toString:o;function Bn(e){if(nl(e)&&!Va(e)&&!(e instanceof Vn)){if(e instanceof Wn)return e;if(Te.call(e,"__wrapped__"))return zi(e)}return new Wn(e)}var Fn=function(){function e(){}return function(t){if(!tl(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Hn(){}function Wn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Un(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Yn;++t<n;)this.add(e[t])}function Xn(e){var t=this.__data__=new Gn(e);this.size=t.size}function Qn(e,t){var n=Va(e),r=!n&&Wa(e),o=!n&&!r&&Ka(e),i=!n&&!r&&!o&&ul(e),a=n||r||o||i,l=a?Qt(e.length,$e):[],c=l.length;for(var s in e)!t&&!Te.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||wi(s,c))||l.push(s);return l}function Zn(e){var t=e.length;return t?e[Kr(0,t-1)]:o}function Jn(e,t){return Ti(Po(e),cr(t,0,e.length))}function er(e){return Ti(Po(e))}function tr(e,t,n){(n!==o&&!Ba(e[t],n)||n===o&&!(t in e))&&ar(e,t,n)}function nr(e,t,n){var r=e[t];Te.call(e,t)&&Ba(r,n)&&(n!==o||t in e)||ar(e,t,n)}function rr(e,t){for(var n=e.length;n--;)if(Ba(e[n][0],t))return n;return-1}function or(e,t,n,r){return pr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function ir(e,t){return e&&Io(t,Il(t),e)}function ar(e,t,n){"__proto__"==t&&nt?nt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function lr(e,t){for(var n=-1,i=t.length,a=r(i),l=null==e;++n<i;)a[n]=l?o:_l(e,t[n]);return a}function cr(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function sr(e,t,n,r,i,a){var l,c=1&t,s=2&t,u=4&t;if(n&&(l=i?n(e,r,i,a):n(e)),l!==o)return l;if(!tl(e))return e;var f=Va(e);if(f){if(l=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Te.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return Po(e,l)}else{var d=mi(e),p=d==C||d==k;if(Ka(e))return Eo(e,c);if(d==_||d==b||p&&!i){if(l=s||p?{}:bi(e),!c)return s?function(e,t){return Io(e,vi(e),t)}(e,function(e,t){return e&&Io(t,Ml(t),e)}(l,e)):function(e,t){return Io(e,hi(e),t)}(e,ir(l,e))}else{if(!st[d])return i?e:{};l=function(e,t,n){var r=e.constructor;switch(t){case R:return Oo(e);case w:case x:return new r(+e);case A:return function(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case T:case q:case D:case L:case z:case B:case F:case H:case W:return _o(e,n);case E:return new r;case O:case P:return new r(e);case $:return function(e){var t=new e.constructor(e.source,ve.exec(e));return t.lastIndex=e.lastIndex,t}(e);case N:return new r;case I:return o=e,Ln?_e(Ln.call(o)):{}}var o}(e,d,c)}}a||(a=new Xn);var h=a.get(e);if(h)return h;a.set(e,l),ll(e)?e.forEach((function(r){l.add(sr(r,t,n,r,e,a))})):rl(e)&&e.forEach((function(r,o){l.set(o,sr(r,t,n,o,e,a))}));var v=f?o:(u?s?ai:ii:s?Ml:Il)(e);return $t(v||e,(function(r,o){v&&(r=e[o=r]),nr(l,o,sr(r,t,n,o,e,a))})),l}function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=_e(e);r--;){var i=n[r],a=t[i],l=e[i];if(l===o&&!(i in e)||!a(l))return!1}return!0}function fr(e,t,n){if("function"!=typeof e)throw new Ne(i);return Ii((function(){e.apply(o,n)}),t)}function dr(e,t,n,r){var o=-1,i=Mt,a=!0,l=e.length,c=[],s=t.length;if(!l)return c;n&&(t=At(t,Jt(n))),r?(i=Rt,a=!1):t.length>=200&&(i=tn,a=!1,t=new Kn(t));e:for(;++o<l;){var u=e[o],f=null==n?u:n(u);if(u=r||0!==u?u:0,a&&f==f){for(var d=s;d--;)if(t[d]===f)continue e;c.push(u)}else i(t,f,r)||c.push(u)}return c}Bn.templateSettings={escape:Z,evaluate:J,interpolate:ee,variable:"",imports:{_:Bn}},Bn.prototype=Hn.prototype,Bn.prototype.constructor=Bn,Wn.prototype=Fn(Hn.prototype),Wn.prototype.constructor=Wn,Vn.prototype=Fn(Hn.prototype),Vn.prototype.constructor=Vn,Un.prototype.clear=function(){this.__data__=Nn?Nn(null):{},this.size=0},Un.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Un.prototype.get=function(e){var t=this.__data__;if(Nn){var n=t[e];return n===a?o:n}return Te.call(t,e)?t[e]:o},Un.prototype.has=function(e){var t=this.__data__;return Nn?t[e]!==o:Te.call(t,e)},Un.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Nn&&t===o?a:t,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Xe.call(t,n,1),--this.size,!0)},Gn.prototype.get=function(e){var t=this.__data__,n=rr(t,e);return n<0?o:t[n][1]},Gn.prototype.has=function(e){return rr(this.__data__,e)>-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new Un,map:new(On||Gn),string:new Un}},Yn.prototype.delete=function(e){var t=fi(this,e).delete(e);return this.size-=t?1:0,t},Yn.prototype.get=function(e){return fi(this,e).get(e)},Yn.prototype.has=function(e){return fi(this,e).has(e)},Yn.prototype.set=function(e,t){var n=fi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,a),this},Kn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!On||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yn(r)}return n.set(e,t),this.size=n.size,this};var pr=Ao(xr),hr=Ao(Sr,!0);function vr(e,t){var n=!0;return pr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function mr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],l=t(a);if(null!=l&&(c===o?l==l&&!sl(l):n(l,c)))var c=l,s=a}return s}function gr(e,t){var n=[];return pr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function br(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=yi),o||(o=[]);++i<a;){var l=e[i];t>0&&n(l)?t>1?br(l,t-1,n,r,o):Tt(o,l):r||(o[o.length]=l)}return o}var yr=To(),wr=To(!0);function xr(e,t){return e&&yr(e,t,Il)}function Sr(e,t){return e&&wr(e,t,Il)}function Cr(e,t){return It(t,(function(t){return Za(e[t])}))}function kr(e,t){for(var n=0,r=(t=xo(t,e)).length;null!=e&&n<r;)e=e[Di(t[n++])];return n&&n==r?e:o}function Er(e,t,n){var r=t(e);return Va(e)?r:Tt(r,n(e))}function Or(e){return null==e?e===o?"[object Undefined]":"[object Null]":Je&&Je in _e(e)?function(e){var t=Te.call(e,Je),n=e[Je];try{e[Je]=o;var r=!0}catch(e){}var i=Le.call(e);r&&(t?e[Je]=n:delete e[Je]);return i}(e):function(e){return Le.call(e)}(e)}function _r(e,t){return e>t}function jr(e,t){return null!=e&&Te.call(e,t)}function $r(e,t){return null!=e&&t in _e(e)}function Nr(e,t,n){for(var i=n?Rt:Mt,a=e[0].length,l=e.length,c=l,s=r(l),u=1/0,f=[];c--;){var d=e[c];c&&t&&(d=At(d,Jt(t))),u=wn(d.length,u),s[c]=!n&&(t||a>=120&&d.length>=120)?new Kn(c&&d):o}d=e[0];var p=-1,h=s[0];e:for(;++p<a&&f.length<u;){var v=d[p],m=t?t(v):v;if(v=n||0!==v?v:0,!(h?tn(h,m):i(f,m,n))){for(c=l;--c;){var g=s[c];if(!(g?tn(g,m):i(e[c],m,n)))continue e}h&&h.push(m),f.push(v)}}return f}function Pr(e,t,n){var r=null==(e=$i(e,t=xo(t,e)))?e:e[Di(Qi(t))];return null==r?o:_t(r,e,n)}function Ir(e){return nl(e)&&Or(e)==b}function Mr(e,t,n,r,i){return e===t||(null==e||null==t||!nl(e)&&!nl(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var l=Va(e),c=Va(t),s=l?y:mi(e),u=c?y:mi(t),f=(s=s==b?_:s)==_,d=(u=u==b?_:u)==_,p=s==u;if(p&&Ka(e)){if(!Ka(t))return!1;l=!0,f=!1}if(p&&!f)return a||(a=new Xn),l||ul(e)?ri(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case A:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case R:return!(e.byteLength!=t.byteLength||!i(new Ve(e),new Ve(t)));case w:case x:case O:return Ba(+e,+t);case S:return e.name==t.name&&e.message==t.message;case $:case P:return e==t+"";case E:var l=sn;case N:var c=1&r;if(l||(l=dn),e.size!=t.size&&!c)return!1;var s=a.get(e);if(s)return s==t;r|=2,a.set(e,t);var u=ri(l(e),l(t),r,o,i,a);return a.delete(e),u;case I:if(Ln)return Ln.call(e)==Ln.call(t)}return!1}(e,t,s,n,r,i,a);if(!(1&n)){var h=f&&Te.call(e,"__wrapped__"),v=d&&Te.call(t,"__wrapped__");if(h||v){var m=h?e.value():e,g=v?t.value():t;return a||(a=new Xn),i(m,g,n,r,a)}}if(!p)return!1;return a||(a=new Xn),function(e,t,n,r,i,a){var l=1&n,c=ii(e),s=c.length,u=ii(t),f=u.length;if(s!=f&&!l)return!1;var d=s;for(;d--;){var p=c[d];if(!(l?p in t:Te.call(t,p)))return!1}var h=a.get(e),v=a.get(t);if(h&&v)return h==t&&v==e;var m=!0;a.set(e,t),a.set(t,e);var g=l;for(;++d<s;){var b=e[p=c[d]],y=t[p];if(r)var w=l?r(y,b,p,t,e,a):r(b,y,p,e,t,a);if(!(w===o?b===y||i(b,y,n,r,a):w)){m=!1;break}g||(g="constructor"==p)}if(m&&!g){var x=e.constructor,S=t.constructor;x==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof S&&S instanceof S||(m=!1)}return a.delete(e),a.delete(t),m}(e,t,n,r,i,a)}(e,t,n,r,Mr,i))}function Rr(e,t,n,r){var i=n.length,a=i,l=!r;if(null==e)return!a;for(e=_e(e);i--;){var c=n[i];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<a;){var s=(c=n[i])[0],u=e[s],f=c[1];if(l&&c[2]){if(u===o&&!(s in e))return!1}else{var d=new Xn;if(r)var p=r(u,f,s,e,t,d);if(!(p===o?Mr(f,u,3,r,d):p))return!1}}return!0}function Ar(e){return!(!tl(e)||(t=e,De&&De in t))&&(Za(e)?Fe:be).test(Li(e));var t}function Tr(e){return"function"==typeof e?e:null==e?oc:"object"==typeof e?Va(e)?Fr(e[0],e[1]):Br(e):pc(e)}function qr(e){if(!Ei(e))return Yt(e);var t=[];for(var n in _e(e))Te.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Dr(e){if(!tl(e))return function(e){var t=[];if(null!=e)for(var n in _e(e))t.push(n);return t}(e);var t=Ei(e),n=[];for(var r in e)("constructor"!=r||!t&&Te.call(e,r))&&n.push(r);return n}function Lr(e,t){return e<t}function zr(e,t){var n=-1,o=Ga(e)?r(e.length):[];return pr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Br(e){var t=di(e);return 1==t.length&&t[0][2]?_i(t[0][0],t[0][1]):function(n){return n===e||Rr(n,e,t)}}function Fr(e,t){return Si(e)&&Oi(t)?_i(Di(e),t):function(n){var r=_l(n,e);return r===o&&r===t?jl(n,e):Mr(t,r,3)}}function Hr(e,t,n,r,i){e!==t&&yr(t,(function(a,l){if(i||(i=new Xn),tl(a))!function(e,t,n,r,i,a,l){var c=Ni(e,n),s=Ni(t,n),u=l.get(s);if(u)return void tr(e,n,u);var f=a?a(c,s,n+"",e,t,l):o,d=f===o;if(d){var p=Va(s),h=!p&&Ka(s),v=!p&&!h&&ul(s);f=s,p||h||v?Va(c)?f=c:Ya(c)?f=Po(c):h?(d=!1,f=Eo(s,!0)):v?(d=!1,f=_o(s,!0)):f=[]:il(s)||Wa(s)?(f=c,Wa(c)?f=bl(c):tl(c)&&!Za(c)||(f=bi(s))):d=!1}d&&(l.set(s,f),i(f,s,r,a,l),l.delete(s));tr(e,n,f)}(e,t,l,n,Hr,r,i);else{var c=r?r(Ni(e,l),a,l+"",e,t,i):o;c===o&&(c=a),tr(e,l,c)}}),Ml)}function Wr(e,t){var n=e.length;if(n)return wi(t+=t<0?n:0,n)?e[t]:o}function Vr(e,t,n){t=t.length?At(t,(function(e){return Va(e)?function(t){return kr(t,1===e.length?e[0]:e)}:e})):[oc];var r=-1;t=At(t,Jt(ui()));var o=zr(e,(function(e,n,o){var i=At(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,a=o.length,l=n.length;for(;++r<a;){var c=jo(o[r],i[r]);if(c)return r>=l?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Ur(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],l=kr(e,a);n(l,a)&&eo(i,xo(a,e),l)}return i}function Gr(e,t,n,r){var o=r?Wt:Ht,i=-1,a=t.length,l=e;for(e===t&&(t=Po(t)),n&&(l=At(e,Jt(n)));++i<a;)for(var c=0,s=t[i],u=n?n(s):s;(c=o(l,u,c,r))>-1;)l!==e&&Xe.call(l,c,1),Xe.call(e,c,1);return e}function Yr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;wi(o)?Xe.call(e,o,1):po(e,o)}}return e}function Kr(e,t){return e+mt(Cn()*(t-e+1))}function Xr(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=mt(t/2))&&(e+=e)}while(t);return n}function Qr(e,t){return Mi(ji(e,t,oc),e+"")}function Zr(e){return Zn(Bl(e))}function Jr(e,t){var n=Bl(e);return Ti(n,cr(t,0,n.length))}function eo(e,t,n,r){if(!tl(e))return e;for(var i=-1,a=(t=xo(t,e)).length,l=a-1,c=e;null!=c&&++i<a;){var s=Di(t[i]),u=n;if("__proto__"===s||"constructor"===s||"prototype"===s)return e;if(i!=l){var f=c[s];(u=r?r(f,s,c):o)===o&&(u=tl(f)?f:wi(t[i+1])?[]:{})}nr(c,s,u),c=c[s]}return e}var to=Pn?function(e,t){return Pn.set(e,t),e}:oc,no=nt?function(e,t){return nt(e,"toString",{configurable:!0,enumerable:!1,value:tc(t),writable:!0})}:oc;function ro(e){return Ti(Bl(e))}function oo(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function io(e,t){var n;return pr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function ao(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!sl(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return lo(e,t,oc,n)}function lo(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var l=(t=n(t))!=t,c=null===t,s=sl(t),u=t===o;i<a;){var f=mt((i+a)/2),d=n(e[f]),p=d!==o,h=null===d,v=d==d,m=sl(d);if(l)var g=r||v;else g=u?v&&(r||p):c?v&&p&&(r||!h):s?v&&p&&!h&&(r||!m):!h&&!m&&(r?d<=t:d<t);g?i=f+1:a=f}return wn(a,4294967294)}function co(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],l=t?t(a):a;if(!n||!Ba(l,c)){var c=l;i[o++]=0===a?0:a}}return i}function so(e){return"number"==typeof e?e:sl(e)?v:+e}function uo(e){if("string"==typeof e)return e;if(Va(e))return At(e,uo)+"";if(sl(e))return zn?zn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function fo(e,t,n){var r=-1,o=Mt,i=e.length,a=!0,l=[],c=l;if(n)a=!1,o=Rt;else if(i>=200){var s=t?null:Qo(e);if(s)return dn(s);a=!1,o=tn,c=new Kn}else c=t?[]:l;e:for(;++r<i;){var u=e[r],f=t?t(u):u;if(u=n||0!==u?u:0,a&&f==f){for(var d=c.length;d--;)if(c[d]===f)continue e;t&&c.push(f),l.push(u)}else o(c,f,n)||(c!==l&&c.push(f),l.push(u))}return l}function po(e,t){return null==(e=$i(e,t=xo(t,e)))||delete e[Di(Qi(t))]}function ho(e,t,n,r){return eo(e,t,n(kr(e,t)),r)}function vo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?oo(e,r?0:i,r?i+1:o):oo(e,r?i+1:0,r?o:i)}function mo(e,t){var n=e;return n instanceof Vn&&(n=n.value()),qt(t,(function(e,t){return t.func.apply(t.thisArg,Tt([e],t.args))}),n)}function go(e,t,n){var o=e.length;if(o<2)return o?fo(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var l=e[i],c=-1;++c<o;)c!=i&&(a[i]=dr(a[i]||l,e[c],t,n));return fo(br(a,1),t,n)}function bo(e,t,n){for(var r=-1,i=e.length,a=t.length,l={};++r<i;){var c=r<a?t[r]:o;n(l,e[r],c)}return l}function yo(e){return Ya(e)?e:[]}function wo(e){return"function"==typeof e?e:oc}function xo(e,t){return Va(e)?e:Si(e,t)?[e]:qi(yl(e))}var So=Qr;function Co(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:oo(e,t,n)}var ko=ot||function(e){return vt.clearTimeout(e)};function Eo(e,t){if(t)return e.slice();var n=e.length,r=Ue?Ue(n):new e.constructor(n);return e.copy(r),r}function Oo(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function _o(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function jo(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=sl(e),l=t!==o,c=null===t,s=t==t,u=sl(t);if(!c&&!u&&!a&&e>t||a&&l&&s&&!c&&!u||r&&l&&s||!n&&s||!i)return 1;if(!r&&!a&&!u&&e<t||u&&n&&i&&!r&&!a||c&&n&&i||!l&&i||!s)return-1}return 0}function $o(e,t,n,o){for(var i=-1,a=e.length,l=n.length,c=-1,s=t.length,u=yn(a-l,0),f=r(s+u),d=!o;++c<s;)f[c]=t[c];for(;++i<l;)(d||i<a)&&(f[n[i]]=e[i]);for(;u--;)f[c++]=e[i++];return f}function No(e,t,n,o){for(var i=-1,a=e.length,l=-1,c=n.length,s=-1,u=t.length,f=yn(a-c,0),d=r(f+u),p=!o;++i<f;)d[i]=e[i];for(var h=i;++s<u;)d[h+s]=t[s];for(;++l<c;)(p||i<a)&&(d[h+n[l]]=e[i++]);return d}function Po(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Io(e,t,n,r){var i=!n;n||(n={});for(var a=-1,l=t.length;++a<l;){var c=t[a],s=r?r(n[c],e[c],c,n,e):o;s===o&&(s=e[c]),i?ar(n,c,s):nr(n,c,s)}return n}function Mo(e,t){return function(n,r){var o=Va(n)?jt:or,i=t?t():{};return o(n,e,ui(r,2),i)}}function Ro(e){return Qr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,l=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,l&&xi(n[0],n[1],l)&&(a=i<3?o:a,i=1),t=_e(t);++r<i;){var c=n[r];c&&e(t,c,r,a)}return t}))}function Ao(e,t){return function(n,r){if(null==n)return n;if(!Ga(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=_e(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function To(e){return function(t,n,r){for(var o=-1,i=_e(t),a=r(t),l=a.length;l--;){var c=a[e?l:++o];if(!1===n(i[c],c,i))break}return t}}function qo(e){return function(t){var n=cn(t=yl(t))?vn(t):o,r=n?n[0]:t.charAt(0),i=n?Co(n,1).join(""):t.slice(1);return r[e]()+i}}function Do(e){return function(t){return qt(Zl(Wl(t).replace(et,"")),e,"")}}function Lo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Fn(e.prototype),r=e.apply(n,t);return tl(r)?r:n}}function zo(e){return function(t,n,r){var i=_e(t);if(!Ga(t)){var a=ui(n,3);t=Il(t),n=function(e){return a(i[e],e,i)}}var l=e(t,n,r);return l>-1?i[a?t[l]:l]:o}}function Bo(e){return oi((function(t){var n=t.length,r=n,a=Wn.prototype.thru;for(e&&t.reverse();r--;){var l=t[r];if("function"!=typeof l)throw new Ne(i);if(a&&!c&&"wrapper"==ci(l))var c=new Wn([],!0)}for(r=c?r:n;++r<n;){var s=ci(l=t[r]),u="wrapper"==s?li(l):o;c=u&&Ci(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?c[ci(u[0])].apply(c,u[3]):1==l.length&&Ci(l)?c[s]():c.thru(l)}return function(){var e=arguments,r=e[0];if(c&&1==e.length&&Va(r))return c.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Fo(e,t,n,i,a,l,c,s,u,d){var p=t&f,h=1&t,v=2&t,m=24&t,g=512&t,b=v?o:Lo(e);return function f(){for(var y=arguments.length,w=r(y),x=y;x--;)w[x]=arguments[x];if(m)var S=si(f),C=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,S);if(i&&(w=$o(w,i,a,m)),l&&(w=No(w,l,c,m)),y-=C,m&&y<d){var k=fn(w,S);return Ko(e,t,Fo,f.placeholder,n,w,k,s,u,d-y)}var E=h?n:this,O=v?E[e]:e;return y=w.length,s?w=function(e,t){var n=e.length,r=wn(t.length,n),i=Po(e);for(;r--;){var a=t[r];e[r]=wi(a,n)?i[a]:o}return e}(w,s):g&&y>1&&w.reverse(),p&&u<y&&(w.length=u),this&&this!==vt&&this instanceof f&&(O=b||Lo(O)),O.apply(E,w)}}function Ho(e,t){return function(n,r){return function(e,t,n,r){return xr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Wo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=uo(n),r=uo(r)):(n=so(n),r=so(r)),i=e(n,r)}return i}}function Vo(e){return oi((function(t){return t=At(t,Jt(ui())),Qr((function(n){var r=this;return e(t,(function(e){return _t(e,r,n)}))}))}))}function Uo(e,t){var n=(t=t===o?" ":uo(t)).length;if(n<2)return n?Xr(t,e):t;var r=Xr(t,ht(e/hn(t)));return cn(t)?Co(vn(r),0,e).join(""):r.slice(0,e)}function Go(e){return function(t,n,i){return i&&"number"!=typeof i&&xi(t,n,i)&&(n=i=o),t=hl(t),n===o?(n=t,t=0):n=hl(n),function(e,t,n,o){for(var i=-1,a=yn(ht((t-e)/(n||1)),0),l=r(a);a--;)l[o?a:++i]=e,e+=n;return l}(t,n,i=i===o?t<n?1:-1:hl(i),e)}}function Yo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=gl(t),n=gl(n)),e(t,n)}}function Ko(e,t,n,r,i,a,l,c,f,d){var p=8&t;t|=p?s:u,4&(t&=~(p?u:s))||(t&=-4);var h=[e,t,i,p?a:o,p?l:o,p?o:a,p?o:l,c,f,d],v=n.apply(o,h);return Ci(e)&&Pi(v,h),v.placeholder=r,Ri(v,e,t)}function Xo(e){var t=Oe[e];return function(e,n){if(e=gl(e),(n=null==n?0:wn(vl(n),292))&&wt(e)){var r=(yl(e)+"e").split("e");return+((r=(yl(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Qo=jn&&1/dn(new jn([,-0]))[1]==p?function(e){return new jn(e)}:sc;function Zo(e){return function(t){var n=mi(t);return n==E?sn(t):n==N?pn(t):function(e,t){return At(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Jo(e,t,n,a,p,h,v,m){var g=2&t;if(!g&&"function"!=typeof e)throw new Ne(i);var b=a?a.length:0;if(b||(t&=-97,a=p=o),v=v===o?v:yn(vl(v),0),m=m===o?m:vl(m),b-=p?p.length:0,t&u){var y=a,w=p;a=p=o}var x=g?o:li(e),S=[e,t,n,a,p,y,w,h,v,m];if(x&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==f&&8==n||r==f&&n==d&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var c=t[3];if(c){var s=e[3];e[3]=s?$o(s,c,t[4]):c,e[4]=s?fn(e[3],l):t[4]}(c=t[5])&&(s=e[5],e[5]=s?No(s,c,t[6]):c,e[6]=s?fn(e[5],l):t[6]);(c=t[7])&&(e[7]=c);r&f&&(e[8]=null==e[8]?t[8]:wn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(S,x),e=S[0],t=S[1],n=S[2],a=S[3],p=S[4],!(m=S[9]=S[9]===o?g?0:e.length:yn(S[9]-b,0))&&24&t&&(t&=-25),t&&1!=t)C=8==t||t==c?function(e,t,n){var i=Lo(e);return function a(){for(var l=arguments.length,c=r(l),s=l,u=si(a);s--;)c[s]=arguments[s];var f=l<3&&c[0]!==u&&c[l-1]!==u?[]:fn(c,u);return(l-=f.length)<n?Ko(e,t,Fo,a.placeholder,o,c,f,o,o,n-l):_t(this&&this!==vt&&this instanceof a?i:e,this,c)}}(e,t,m):t!=s&&33!=t||p.length?Fo.apply(o,S):function(e,t,n,o){var i=1&t,a=Lo(e);return function t(){for(var l=-1,c=arguments.length,s=-1,u=o.length,f=r(u+c),d=this&&this!==vt&&this instanceof t?a:e;++s<u;)f[s]=o[s];for(;c--;)f[s++]=arguments[++l];return _t(d,i?n:this,f)}}(e,t,n,a);else var C=function(e,t,n){var r=1&t,o=Lo(e);return function t(){return(this&&this!==vt&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Ri((x?to:Pi)(C,S),e,t)}function ei(e,t,n,r){return e===o||Ba(e,Me[n])&&!Te.call(r,n)?t:e}function ti(e,t,n,r,i,a){return tl(e)&&tl(t)&&(a.set(t,e),Hr(e,t,o,ti,a),a.delete(t)),e}function ni(e){return il(e)?o:e}function ri(e,t,n,r,i,a){var l=1&n,c=e.length,s=t.length;if(c!=s&&!(l&&s>c))return!1;var u=a.get(e),f=a.get(t);if(u&&f)return u==t&&f==e;var d=-1,p=!0,h=2&n?new Kn:o;for(a.set(e,t),a.set(t,e);++d<c;){var v=e[d],m=t[d];if(r)var g=l?r(m,v,d,t,e,a):r(v,m,d,e,t,a);if(g!==o){if(g)continue;p=!1;break}if(h){if(!Lt(t,(function(e,t){if(!tn(h,t)&&(v===e||i(v,e,n,r,a)))return h.push(t)}))){p=!1;break}}else if(v!==m&&!i(v,m,n,r,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function oi(e){return Mi(ji(e,o,Ui),e+"")}function ii(e){return Er(e,Il,hi)}function ai(e){return Er(e,Ml,vi)}var li=Pn?function(e){return Pn.get(e)}:sc;function ci(e){for(var t=e.name+"",n=In[t],r=Te.call(In,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function si(e){return(Te.call(Bn,"placeholder")?Bn:e).placeholder}function ui(){var e=Bn.iteratee||ic;return e=e===ic?Tr:e,arguments.length?e(arguments[0],arguments[1]):e}function fi(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function di(e){for(var t=Il(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Oi(o)]}return t}function pi(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Ar(n)?n:o}var hi=gt?function(e){return null==e?[]:(e=_e(e),It(gt(e),(function(t){return Ke.call(e,t)})))}:mc,vi=gt?function(e){for(var t=[];e;)Tt(t,hi(e)),e=Ge(e);return t}:mc,mi=Or;function gi(e,t,n){for(var r=-1,o=(t=xo(t,e)).length,i=!1;++r<o;){var a=Di(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&el(o)&&wi(a,o)&&(Va(e)||Wa(e))}function bi(e){return"function"!=typeof e.constructor||Ei(e)?{}:Fn(Ge(e))}function yi(e){return Va(e)||Wa(e)||!!(Qe&&e&&e[Qe])}function wi(e,t){var n=typeof e;return!!(t=null==t?h:t)&&("number"==n||"symbol"!=n&&we.test(e))&&e>-1&&e%1==0&&e<t}function xi(e,t,n){if(!tl(n))return!1;var r=typeof t;return!!("number"==r?Ga(n)&&wi(t,n.length):"string"==r&&t in n)&&Ba(n[t],e)}function Si(e,t){if(Va(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!sl(e))||(ne.test(e)||!te.test(e)||null!=t&&e in _e(t))}function Ci(e){var t=ci(e),n=Bn[t];if("function"!=typeof n||!(t in Vn.prototype))return!1;if(e===n)return!0;var r=li(n);return!!r&&e===r[0]}(En&&mi(new En(new ArrayBuffer(1)))!=A||On&&mi(new On)!=E||_n&&mi(_n.resolve())!=j||jn&&mi(new jn)!=N||$n&&mi(new $n)!=M)&&(mi=function(e){var t=Or(e),n=t==_?e.constructor:o,r=n?Li(n):"";if(r)switch(r){case Mn:return A;case Rn:return E;case An:return j;case Tn:return N;case qn:return M}return t});var ki=Re?Za:gc;function Ei(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Me)}function Oi(e){return e==e&&!tl(e)}function _i(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in _e(n)))}}function ji(e,t,n){return t=yn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=yn(o.length-t,0),l=r(a);++i<a;)l[i]=o[t+i];i=-1;for(var c=r(t+1);++i<t;)c[i]=o[i];return c[t]=n(l),_t(e,this,c)}}function $i(e,t){return t.length<2?e:kr(e,oo(t,0,-1))}function Ni(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Pi=Ai(to),Ii=pt||function(e,t){return vt.setTimeout(e,t)},Mi=Ai(no);function Ri(e,t,n){var r=t+"";return Mi(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ce,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return $t(g,(function(n){var r="_."+n[0];t&n[1]&&!Mt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ue):[]}(r),n)))}function Ai(e){var t=0,n=0;return function(){var r=xn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ti(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Kr(n,i),l=e[a];e[a]=e[n],e[n]=l}return e.length=t,e}var qi=function(e){var t=Aa(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,o){t.push(r?o.replace(pe,"$1"):n||e)})),t}));function Di(e){if("string"==typeof e||sl(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Li(e){if(null!=e){try{return Ae.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function zi(e){if(e instanceof Vn)return e.clone();var t=new Wn(e.__wrapped__,e.__chain__);return t.__actions__=Po(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Bi=Qr((function(e,t){return Ya(e)?dr(e,br(t,1,Ya,!0)):[]})),Fi=Qr((function(e,t){var n=Qi(t);return Ya(n)&&(n=o),Ya(e)?dr(e,br(t,1,Ya,!0),ui(n,2)):[]})),Hi=Qr((function(e,t){var n=Qi(t);return Ya(n)&&(n=o),Ya(e)?dr(e,br(t,1,Ya,!0),o,n):[]}));function Wi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:vl(n);return o<0&&(o=yn(r+o,0)),Ft(e,ui(t,3),o)}function Vi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=vl(n),i=n<0?yn(r+i,0):wn(i,r-1)),Ft(e,ui(t,3),i,!0)}function Ui(e){return(null==e?0:e.length)?br(e,1):[]}function Gi(e){return e&&e.length?e[0]:o}var Yi=Qr((function(e){var t=At(e,yo);return t.length&&t[0]===e[0]?Nr(t):[]})),Ki=Qr((function(e){var t=Qi(e),n=At(e,yo);return t===Qi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Nr(n,ui(t,2)):[]})),Xi=Qr((function(e){var t=Qi(e),n=At(e,yo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Nr(n,o,t):[]}));function Qi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Zi=Qr(Ji);function Ji(e,t){return e&&e.length&&t&&t.length?Gr(e,t):e}var ea=oi((function(e,t){var n=null==e?0:e.length,r=lr(e,t);return Yr(e,At(t,(function(e){return wi(e,n)?+e:e})).sort(jo)),r}));function ta(e){return null==e?e:kn.call(e)}var na=Qr((function(e){return fo(br(e,1,Ya,!0))})),ra=Qr((function(e){var t=Qi(e);return Ya(t)&&(t=o),fo(br(e,1,Ya,!0),ui(t,2))})),oa=Qr((function(e){var t=Qi(e);return t="function"==typeof t?t:o,fo(br(e,1,Ya,!0),o,t)}));function ia(e){if(!e||!e.length)return[];var t=0;return e=It(e,(function(e){if(Ya(e))return t=yn(e.length,t),!0})),Qt(t,(function(t){return At(e,Gt(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=ia(e);return null==t?n:At(n,(function(e){return _t(t,o,e)}))}var la=Qr((function(e,t){return Ya(e)?dr(e,t):[]})),ca=Qr((function(e){return go(It(e,Ya))})),sa=Qr((function(e){var t=Qi(e);return Ya(t)&&(t=o),go(It(e,Ya),ui(t,2))})),ua=Qr((function(e){var t=Qi(e);return t="function"==typeof t?t:o,go(It(e,Ya),o,t)})),fa=Qr(ia);var da=Qr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,aa(e,n)}));function pa(e){var t=Bn(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var va=oi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return lr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Vn&&wi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ha,args:[i],thisArg:o}),new Wn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));var ma=Mo((function(e,t,n){Te.call(e,n)?++e[n]:ar(e,n,1)}));var ga=zo(Wi),ba=zo(Vi);function ya(e,t){return(Va(e)?$t:pr)(e,ui(t,3))}function wa(e,t){return(Va(e)?Nt:hr)(e,ui(t,3))}var xa=Mo((function(e,t,n){Te.call(e,n)?e[n].push(t):ar(e,n,[t])}));var Sa=Qr((function(e,t,n){var o=-1,i="function"==typeof t,a=Ga(e)?r(e.length):[];return pr(e,(function(e){a[++o]=i?_t(t,e,n):Pr(e,t,n)})),a})),Ca=Mo((function(e,t,n){ar(e,n,t)}));function ka(e,t){return(Va(e)?At:zr)(e,ui(t,3))}var Ea=Mo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Oa=Qr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&xi(e,t[0],t[1])?t=[]:n>2&&xi(t[0],t[1],t[2])&&(t=[t[0]]),Vr(e,br(t,1),[])})),_a=ut||function(){return vt.Date.now()};function ja(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Jo(e,f,o,o,o,o,t)}function $a(e,t){var n;if("function"!=typeof t)throw new Ne(i);return e=vl(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Na=Qr((function(e,t,n){var r=1;if(n.length){var o=fn(n,si(Na));r|=s}return Jo(e,r,t,n,o)})),Pa=Qr((function(e,t,n){var r=3;if(n.length){var o=fn(n,si(Pa));r|=s}return Jo(t,r,e,n,o)}));function Ia(e,t,n){var r,a,l,c,s,u,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new Ne(i);function v(t){var n=r,i=a;return r=a=o,f=t,c=e.apply(i,n)}function m(e){var n=e-u;return u===o||n>=t||n<0||p&&e-f>=l}function g(){var e=_a();if(m(e))return b(e);s=Ii(g,function(e){var n=t-(e-u);return p?wn(n,l-(e-f)):n}(e))}function b(e){return s=o,h&&r?v(e):(r=a=o,c)}function y(){var e=_a(),n=m(e);if(r=arguments,a=this,u=e,n){if(s===o)return function(e){return f=e,s=Ii(g,t),d?v(e):c}(u);if(p)return ko(s),s=Ii(g,t),v(u)}return s===o&&(s=Ii(g,t)),c}return t=gl(t)||0,tl(n)&&(d=!!n.leading,l=(p="maxWait"in n)?yn(gl(n.maxWait)||0,t):l,h="trailing"in n?!!n.trailing:h),y.cancel=function(){s!==o&&ko(s),f=0,r=u=a=s=o},y.flush=function(){return s===o?c:b(_a())},y}var Ma=Qr((function(e,t){return fr(e,1,t)})),Ra=Qr((function(e,t,n){return fr(e,gl(t)||0,n)}));function Aa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ne(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Aa.Cache||Yn),n}function Ta(e){if("function"!=typeof e)throw new Ne(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Aa.Cache=Yn;var qa=So((function(e,t){var n=(t=1==t.length&&Va(t[0])?At(t[0],Jt(ui())):At(br(t,1),Jt(ui()))).length;return Qr((function(r){for(var o=-1,i=wn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return _t(e,this,r)}))})),Da=Qr((function(e,t){var n=fn(t,si(Da));return Jo(e,s,o,t,n)})),La=Qr((function(e,t){var n=fn(t,si(La));return Jo(e,u,o,t,n)})),za=oi((function(e,t){return Jo(e,d,o,o,o,t)}));function Ba(e,t){return e===t||e!=e&&t!=t}var Fa=Yo(_r),Ha=Yo((function(e,t){return e>=t})),Wa=Ir(function(){return arguments}())?Ir:function(e){return nl(e)&&Te.call(e,"callee")&&!Ke.call(e,"callee")},Va=r.isArray,Ua=xt?Jt(xt):function(e){return nl(e)&&Or(e)==R};function Ga(e){return null!=e&&el(e.length)&&!Za(e)}function Ya(e){return nl(e)&&Ga(e)}var Ka=yt||gc,Xa=St?Jt(St):function(e){return nl(e)&&Or(e)==x};function Qa(e){if(!nl(e))return!1;var t=Or(e);return t==S||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!il(e)}function Za(e){if(!tl(e))return!1;var t=Or(e);return t==C||t==k||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ja(e){return"number"==typeof e&&e==vl(e)}function el(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function tl(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function nl(e){return null!=e&&"object"==typeof e}var rl=Ct?Jt(Ct):function(e){return nl(e)&&mi(e)==E};function ol(e){return"number"==typeof e||nl(e)&&Or(e)==O}function il(e){if(!nl(e)||Or(e)!=_)return!1;var t=Ge(e);if(null===t)return!0;var n=Te.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ae.call(n)==ze}var al=kt?Jt(kt):function(e){return nl(e)&&Or(e)==$};var ll=Et?Jt(Et):function(e){return nl(e)&&mi(e)==N};function cl(e){return"string"==typeof e||!Va(e)&&nl(e)&&Or(e)==P}function sl(e){return"symbol"==typeof e||nl(e)&&Or(e)==I}var ul=Ot?Jt(Ot):function(e){return nl(e)&&el(e.length)&&!!ct[Or(e)]};var fl=Yo(Lr),dl=Yo((function(e,t){return e<=t}));function pl(e){if(!e)return[];if(Ga(e))return cl(e)?vn(e):Po(e);if(Ze&&e[Ze])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ze]());var t=mi(e);return(t==E?sn:t==N?dn:Bl)(e)}function hl(e){return e?(e=gl(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function vl(e){var t=hl(e),n=t%1;return t==t?n?t-n:t:0}function ml(e){return e?cr(vl(e),0,m):0}function gl(e){if("number"==typeof e)return e;if(sl(e))return v;if(tl(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=tl(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var n=ge.test(e);return n||ye.test(e)?dt(e.slice(2),n?2:8):me.test(e)?v:+e}function bl(e){return Io(e,Ml(e))}function yl(e){return null==e?"":uo(e)}var wl=Ro((function(e,t){if(Ei(t)||Ga(t))Io(t,Il(t),e);else for(var n in t)Te.call(t,n)&&nr(e,n,t[n])})),xl=Ro((function(e,t){Io(t,Ml(t),e)})),Sl=Ro((function(e,t,n,r){Io(t,Ml(t),e,r)})),Cl=Ro((function(e,t,n,r){Io(t,Il(t),e,r)})),kl=oi(lr);var El=Qr((function(e,t){e=_e(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&xi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],l=Ml(a),c=-1,s=l.length;++c<s;){var u=l[c],f=e[u];(f===o||Ba(f,Me[u])&&!Te.call(e,u))&&(e[u]=a[u])}return e})),Ol=Qr((function(e){return e.push(o,ti),_t(Al,o,e)}));function _l(e,t,n){var r=null==e?o:kr(e,t);return r===o?n:r}function jl(e,t){return null!=e&&gi(e,t,$r)}var $l=Ho((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),e[t]=n}),tc(oc)),Nl=Ho((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Le.call(t)),Te.call(e,t)?e[t].push(n):e[t]=[n]}),ui),Pl=Qr(Pr);function Il(e){return Ga(e)?Qn(e):qr(e)}function Ml(e){return Ga(e)?Qn(e,!0):Dr(e)}var Rl=Ro((function(e,t,n){Hr(e,t,n)})),Al=Ro((function(e,t,n,r){Hr(e,t,n,r)})),Tl=oi((function(e,t){var n={};if(null==e)return n;var r=!1;t=At(t,(function(t){return t=xo(t,e),r||(r=t.length>1),t})),Io(e,ai(e),n),r&&(n=sr(n,7,ni));for(var o=t.length;o--;)po(n,t[o]);return n}));var ql=oi((function(e,t){return null==e?{}:function(e,t){return Ur(e,t,(function(t,n){return jl(e,n)}))}(e,t)}));function Dl(e,t){if(null==e)return{};var n=At(ai(e),(function(e){return[e]}));return t=ui(t),Ur(e,n,(function(e,n){return t(e,n[0])}))}var Ll=Zo(Il),zl=Zo(Ml);function Bl(e){return null==e?[]:en(e,Il(e))}var Fl=Do((function(e,t,n){return t=t.toLowerCase(),e+(n?Hl(t):t)}));function Hl(e){return Ql(yl(e).toLowerCase())}function Wl(e){return(e=yl(e))&&e.replace(xe,on).replace(tt,"")}var Vl=Do((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ul=Do((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Gl=qo("toLowerCase");var Yl=Do((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Kl=Do((function(e,t,n){return e+(n?" ":"")+Ql(t)}));var Xl=Do((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ql=qo("toUpperCase");function Zl(e,t,n){return e=yl(e),(t=n?o:t)===o?function(e){return it.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(fe)||[]}(e):e.match(t)||[]}var Jl=Qr((function(e,t){try{return _t(e,o,t)}catch(e){return Qa(e)?e:new ke(e)}})),ec=oi((function(e,t){return $t(t,(function(t){t=Di(t),ar(e,t,Na(e[t],e))})),e}));function tc(e){return function(){return e}}var nc=Bo(),rc=Bo(!0);function oc(e){return e}function ic(e){return Tr("function"==typeof e?e:sr(e,1))}var ac=Qr((function(e,t){return function(n){return Pr(n,e,t)}})),lc=Qr((function(e,t){return function(n){return Pr(e,n,t)}}));function cc(e,t,n){var r=Il(t),o=Cr(t,r);null!=n||tl(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Cr(t,Il(t)));var i=!(tl(n)&&"chain"in n&&!n.chain),a=Za(e);return $t(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Po(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Tt([this.value()],arguments))})})),e}function sc(){}var uc=Vo(At),fc=Vo(Pt),dc=Vo(Lt);function pc(e){return Si(e)?Gt(Di(e)):function(e){return function(t){return kr(t,e)}}(e)}var hc=Go(),vc=Go(!0);function mc(){return[]}function gc(){return!1}var bc=Wo((function(e,t){return e+t}),0),yc=Xo("ceil"),wc=Wo((function(e,t){return e/t}),1),xc=Xo("floor");var Sc,Cc=Wo((function(e,t){return e*t}),1),kc=Xo("round"),Ec=Wo((function(e,t){return e-t}),0);return Bn.after=function(e,t){if("function"!=typeof t)throw new Ne(i);return e=vl(e),function(){if(--e<1)return t.apply(this,arguments)}},Bn.ary=ja,Bn.assign=wl,Bn.assignIn=xl,Bn.assignInWith=Sl,Bn.assignWith=Cl,Bn.at=kl,Bn.before=$a,Bn.bind=Na,Bn.bindAll=ec,Bn.bindKey=Pa,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Va(e)?e:[e]},Bn.chain=pa,Bn.chunk=function(e,t,n){t=(n?xi(e,t,n):t===o)?1:yn(vl(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,l=0,c=r(ht(i/t));a<i;)c[l++]=oo(e,a,a+=t);return c},Bn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Bn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Tt(Va(n)?Po(n):[n],br(t,1))},Bn.cond=function(e){var t=null==e?0:e.length,n=ui();return e=t?At(e,(function(e){if("function"!=typeof e[1])throw new Ne(i);return[n(e[0]),e[1]]})):[],Qr((function(n){for(var r=-1;++r<t;){var o=e[r];if(_t(o[0],this,n))return _t(o[1],this,n)}}))},Bn.conforms=function(e){return function(e){var t=Il(e);return function(n){return ur(n,e,t)}}(sr(e,1))},Bn.constant=tc,Bn.countBy=ma,Bn.create=function(e,t){var n=Fn(e);return null==t?n:ir(n,t)},Bn.curry=function e(t,n,r){var i=Jo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Bn.curryRight=function e(t,n,r){var i=Jo(t,c,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Bn.debounce=Ia,Bn.defaults=El,Bn.defaultsDeep=Ol,Bn.defer=Ma,Bn.delay=Ra,Bn.difference=Bi,Bn.differenceBy=Fi,Bn.differenceWith=Hi,Bn.drop=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=n||t===o?1:vl(t))<0?0:t,r):[]},Bn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,0,(t=r-(t=n||t===o?1:vl(t)))<0?0:t):[]},Bn.dropRightWhile=function(e,t){return e&&e.length?vo(e,ui(t,3),!0,!0):[]},Bn.dropWhile=function(e,t){return e&&e.length?vo(e,ui(t,3),!0):[]},Bn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&xi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=vl(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:vl(r))<0&&(r+=i),r=n>r?0:ml(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Bn.filter=function(e,t){return(Va(e)?It:gr)(e,ui(t,3))},Bn.flatMap=function(e,t){return br(ka(e,t),1)},Bn.flatMapDeep=function(e,t){return br(ka(e,t),p)},Bn.flatMapDepth=function(e,t,n){return n=n===o?1:vl(n),br(ka(e,t),n)},Bn.flatten=Ui,Bn.flattenDeep=function(e){return(null==e?0:e.length)?br(e,p):[]},Bn.flattenDepth=function(e,t){return(null==e?0:e.length)?br(e,t=t===o?1:vl(t)):[]},Bn.flip=function(e){return Jo(e,512)},Bn.flow=nc,Bn.flowRight=rc,Bn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Bn.functions=function(e){return null==e?[]:Cr(e,Il(e))},Bn.functionsIn=function(e){return null==e?[]:Cr(e,Ml(e))},Bn.groupBy=xa,Bn.initial=function(e){return(null==e?0:e.length)?oo(e,0,-1):[]},Bn.intersection=Yi,Bn.intersectionBy=Ki,Bn.intersectionWith=Xi,Bn.invert=$l,Bn.invertBy=Nl,Bn.invokeMap=Sa,Bn.iteratee=ic,Bn.keyBy=Ca,Bn.keys=Il,Bn.keysIn=Ml,Bn.map=ka,Bn.mapKeys=function(e,t){var n={};return t=ui(t,3),xr(e,(function(e,r,o){ar(n,t(e,r,o),e)})),n},Bn.mapValues=function(e,t){var n={};return t=ui(t,3),xr(e,(function(e,r,o){ar(n,r,t(e,r,o))})),n},Bn.matches=function(e){return Br(sr(e,1))},Bn.matchesProperty=function(e,t){return Fr(e,sr(t,1))},Bn.memoize=Aa,Bn.merge=Rl,Bn.mergeWith=Al,Bn.method=ac,Bn.methodOf=lc,Bn.mixin=cc,Bn.negate=Ta,Bn.nthArg=function(e){return e=vl(e),Qr((function(t){return Wr(t,e)}))},Bn.omit=Tl,Bn.omitBy=function(e,t){return Dl(e,Ta(ui(t)))},Bn.once=function(e){return $a(2,e)},Bn.orderBy=function(e,t,n,r){return null==e?[]:(Va(t)||(t=null==t?[]:[t]),Va(n=r?o:n)||(n=null==n?[]:[n]),Vr(e,t,n))},Bn.over=uc,Bn.overArgs=qa,Bn.overEvery=fc,Bn.overSome=dc,Bn.partial=Da,Bn.partialRight=La,Bn.partition=Ea,Bn.pick=ql,Bn.pickBy=Dl,Bn.property=pc,Bn.propertyOf=function(e){return function(t){return null==e?o:kr(e,t)}},Bn.pull=Zi,Bn.pullAll=Ji,Bn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,ui(n,2)):e},Bn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,o,n):e},Bn.pullAt=ea,Bn.range=hc,Bn.rangeRight=vc,Bn.rearg=za,Bn.reject=function(e,t){return(Va(e)?It:gr)(e,Ta(ui(t,3)))},Bn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ui(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Yr(e,o),n},Bn.rest=function(e,t){if("function"!=typeof e)throw new Ne(i);return Qr(e,t=t===o?t:vl(t))},Bn.reverse=ta,Bn.sampleSize=function(e,t,n){return t=(n?xi(e,t,n):t===o)?1:vl(t),(Va(e)?Jn:Jr)(e,t)},Bn.set=function(e,t,n){return null==e?e:eo(e,t,n)},Bn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:eo(e,t,n,r)},Bn.shuffle=function(e){return(Va(e)?er:ro)(e)},Bn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&xi(e,t,n)?(t=0,n=r):(t=null==t?0:vl(t),n=n===o?r:vl(n)),oo(e,t,n)):[]},Bn.sortBy=Oa,Bn.sortedUniq=function(e){return e&&e.length?co(e):[]},Bn.sortedUniqBy=function(e,t){return e&&e.length?co(e,ui(t,2)):[]},Bn.split=function(e,t,n){return n&&"number"!=typeof n&&xi(e,t,n)&&(t=n=o),(n=n===o?m:n>>>0)?(e=yl(e))&&("string"==typeof t||null!=t&&!al(t))&&!(t=uo(t))&&cn(e)?Co(vn(e),0,n):e.split(t,n):[]},Bn.spread=function(e,t){if("function"!=typeof e)throw new Ne(i);return t=null==t?0:yn(vl(t),0),Qr((function(n){var r=n[t],o=Co(n,0,t);return r&&Tt(o,r),_t(e,this,o)}))},Bn.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},Bn.take=function(e,t,n){return e&&e.length?oo(e,0,(t=n||t===o?1:vl(t))<0?0:t):[]},Bn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=r-(t=n||t===o?1:vl(t)))<0?0:t,r):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?vo(e,ui(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?vo(e,ui(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Ne(i);return tl(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ia(e,t,{leading:r,maxWait:t,trailing:o})},Bn.thru=ha,Bn.toArray=pl,Bn.toPairs=Ll,Bn.toPairsIn=zl,Bn.toPath=function(e){return Va(e)?At(e,Di):sl(e)?[e]:Po(qi(yl(e)))},Bn.toPlainObject=bl,Bn.transform=function(e,t,n){var r=Va(e),o=r||Ka(e)||ul(e);if(t=ui(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:tl(e)&&Za(i)?Fn(Ge(e)):{}}return(o?$t:xr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Bn.unary=function(e){return ja(e,1)},Bn.union=na,Bn.unionBy=ra,Bn.unionWith=oa,Bn.uniq=function(e){return e&&e.length?fo(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?fo(e,ui(t,2)):[]},Bn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?fo(e,o,t):[]},Bn.unset=function(e,t){return null==e||po(e,t)},Bn.unzip=ia,Bn.unzipWith=aa,Bn.update=function(e,t,n){return null==e?e:ho(e,t,wo(n))},Bn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:ho(e,t,wo(n),r)},Bn.values=Bl,Bn.valuesIn=function(e){return null==e?[]:en(e,Ml(e))},Bn.without=la,Bn.words=Zl,Bn.wrap=function(e,t){return Da(wo(t),e)},Bn.xor=ca,Bn.xorBy=sa,Bn.xorWith=ua,Bn.zip=fa,Bn.zipObject=function(e,t){return bo(e||[],t||[],nr)},Bn.zipObjectDeep=function(e,t){return bo(e||[],t||[],eo)},Bn.zipWith=da,Bn.entries=Ll,Bn.entriesIn=zl,Bn.extend=xl,Bn.extendWith=Sl,cc(Bn,Bn),Bn.add=bc,Bn.attempt=Jl,Bn.camelCase=Fl,Bn.capitalize=Hl,Bn.ceil=yc,Bn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=gl(n))==n?n:0),t!==o&&(t=(t=gl(t))==t?t:0),cr(gl(e),t,n)},Bn.clone=function(e){return sr(e,4)},Bn.cloneDeep=function(e){return sr(e,5)},Bn.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:o)},Bn.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:o)},Bn.conformsTo=function(e,t){return null==t||ur(e,t,Il(t))},Bn.deburr=Wl,Bn.defaultTo=function(e,t){return null==e||e!=e?t:e},Bn.divide=wc,Bn.endsWith=function(e,t,n){e=yl(e),t=uo(t);var r=e.length,i=n=n===o?r:cr(vl(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Bn.eq=Ba,Bn.escape=function(e){return(e=yl(e))&&Q.test(e)?e.replace(K,an):e},Bn.escapeRegExp=function(e){return(e=yl(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},Bn.every=function(e,t,n){var r=Va(e)?Pt:vr;return n&&xi(e,t,n)&&(t=o),r(e,ui(t,3))},Bn.find=ga,Bn.findIndex=Wi,Bn.findKey=function(e,t){return Bt(e,ui(t,3),xr)},Bn.findLast=ba,Bn.findLastIndex=Vi,Bn.findLastKey=function(e,t){return Bt(e,ui(t,3),Sr)},Bn.floor=xc,Bn.forEach=ya,Bn.forEachRight=wa,Bn.forIn=function(e,t){return null==e?e:yr(e,ui(t,3),Ml)},Bn.forInRight=function(e,t){return null==e?e:wr(e,ui(t,3),Ml)},Bn.forOwn=function(e,t){return e&&xr(e,ui(t,3))},Bn.forOwnRight=function(e,t){return e&&Sr(e,ui(t,3))},Bn.get=_l,Bn.gt=Fa,Bn.gte=Ha,Bn.has=function(e,t){return null!=e&&gi(e,t,jr)},Bn.hasIn=jl,Bn.head=Gi,Bn.identity=oc,Bn.includes=function(e,t,n,r){e=Ga(e)?e:Bl(e),n=n&&!r?vl(n):0;var o=e.length;return n<0&&(n=yn(o+n,0)),cl(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Ht(e,t,n)>-1},Bn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:vl(n);return o<0&&(o=yn(r+o,0)),Ht(e,t,o)},Bn.inRange=function(e,t,n){return t=hl(t),n===o?(n=t,t=0):n=hl(n),function(e,t,n){return e>=wn(t,n)&&e<yn(t,n)}(e=gl(e),t,n)},Bn.invoke=Pl,Bn.isArguments=Wa,Bn.isArray=Va,Bn.isArrayBuffer=Ua,Bn.isArrayLike=Ga,Bn.isArrayLikeObject=Ya,Bn.isBoolean=function(e){return!0===e||!1===e||nl(e)&&Or(e)==w},Bn.isBuffer=Ka,Bn.isDate=Xa,Bn.isElement=function(e){return nl(e)&&1===e.nodeType&&!il(e)},Bn.isEmpty=function(e){if(null==e)return!0;if(Ga(e)&&(Va(e)||"string"==typeof e||"function"==typeof e.splice||Ka(e)||ul(e)||Wa(e)))return!e.length;var t=mi(e);if(t==E||t==N)return!e.size;if(Ei(e))return!qr(e).length;for(var n in e)if(Te.call(e,n))return!1;return!0},Bn.isEqual=function(e,t){return Mr(e,t)},Bn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Mr(e,t,o,n):!!r},Bn.isError=Qa,Bn.isFinite=function(e){return"number"==typeof e&&wt(e)},Bn.isFunction=Za,Bn.isInteger=Ja,Bn.isLength=el,Bn.isMap=rl,Bn.isMatch=function(e,t){return e===t||Rr(e,t,di(t))},Bn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Rr(e,t,di(t),n)},Bn.isNaN=function(e){return ol(e)&&e!=+e},Bn.isNative=function(e){if(ki(e))throw new ke("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ar(e)},Bn.isNil=function(e){return null==e},Bn.isNull=function(e){return null===e},Bn.isNumber=ol,Bn.isObject=tl,Bn.isObjectLike=nl,Bn.isPlainObject=il,Bn.isRegExp=al,Bn.isSafeInteger=function(e){return Ja(e)&&e>=-9007199254740991&&e<=h},Bn.isSet=ll,Bn.isString=cl,Bn.isSymbol=sl,Bn.isTypedArray=ul,Bn.isUndefined=function(e){return e===o},Bn.isWeakMap=function(e){return nl(e)&&mi(e)==M},Bn.isWeakSet=function(e){return nl(e)&&"[object WeakSet]"==Or(e)},Bn.join=function(e,t){return null==e?"":zt.call(e,t)},Bn.kebabCase=Vl,Bn.last=Qi,Bn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=vl(n))<0?yn(r+i,0):wn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Ft(e,Vt,i,!0)},Bn.lowerCase=Ul,Bn.lowerFirst=Gl,Bn.lt=fl,Bn.lte=dl,Bn.max=function(e){return e&&e.length?mr(e,oc,_r):o},Bn.maxBy=function(e,t){return e&&e.length?mr(e,ui(t,2),_r):o},Bn.mean=function(e){return Ut(e,oc)},Bn.meanBy=function(e,t){return Ut(e,ui(t,2))},Bn.min=function(e){return e&&e.length?mr(e,oc,Lr):o},Bn.minBy=function(e,t){return e&&e.length?mr(e,ui(t,2),Lr):o},Bn.stubArray=mc,Bn.stubFalse=gc,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=Cc,Bn.nth=function(e,t){return e&&e.length?Wr(e,vl(t)):o},Bn.noConflict=function(){return vt._===this&&(vt._=Be),this},Bn.noop=sc,Bn.now=_a,Bn.pad=function(e,t,n){e=yl(e);var r=(t=vl(t))?hn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Uo(mt(o),n)+e+Uo(ht(o),n)},Bn.padEnd=function(e,t,n){e=yl(e);var r=(t=vl(t))?hn(e):0;return t&&r<t?e+Uo(t-r,n):e},Bn.padStart=function(e,t,n){e=yl(e);var r=(t=vl(t))?hn(e):0;return t&&r<t?Uo(t-r,n)+e:e},Bn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Sn(yl(e).replace(ae,""),t||0)},Bn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&xi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=hl(e),t===o?(t=e,e=0):t=hl(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Cn();return wn(e+i*(t-e+ft("1e-"+((i+"").length-1))),t)}return Kr(e,t)},Bn.reduce=function(e,t,n){var r=Va(e)?qt:Kt,o=arguments.length<3;return r(e,ui(t,4),n,o,pr)},Bn.reduceRight=function(e,t,n){var r=Va(e)?Dt:Kt,o=arguments.length<3;return r(e,ui(t,4),n,o,hr)},Bn.repeat=function(e,t,n){return t=(n?xi(e,t,n):t===o)?1:vl(t),Xr(yl(e),t)},Bn.replace=function(){var e=arguments,t=yl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(e,t,n){var r=-1,i=(t=xo(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Di(t[r])];a===o&&(r=i,a=n),e=Za(a)?a.call(e):a}return e},Bn.round=kc,Bn.runInContext=e,Bn.sample=function(e){return(Va(e)?Zn:Zr)(e)},Bn.size=function(e){if(null==e)return 0;if(Ga(e))return cl(e)?hn(e):e.length;var t=mi(e);return t==E||t==N?e.size:qr(e).length},Bn.snakeCase=Yl,Bn.some=function(e,t,n){var r=Va(e)?Lt:io;return n&&xi(e,t,n)&&(t=o),r(e,ui(t,3))},Bn.sortedIndex=function(e,t){return ao(e,t)},Bn.sortedIndexBy=function(e,t,n){return lo(e,t,ui(n,2))},Bn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ao(e,t);if(r<n&&Ba(e[r],t))return r}return-1},Bn.sortedLastIndex=function(e,t){return ao(e,t,!0)},Bn.sortedLastIndexBy=function(e,t,n){return lo(e,t,ui(n,2),!0)},Bn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ao(e,t,!0)-1;if(Ba(e[n],t))return n}return-1},Bn.startCase=Kl,Bn.startsWith=function(e,t,n){return e=yl(e),n=null==n?0:cr(vl(n),0,e.length),t=uo(t),e.slice(n,n+t.length)==t},Bn.subtract=Ec,Bn.sum=function(e){return e&&e.length?Xt(e,oc):0},Bn.sumBy=function(e,t){return e&&e.length?Xt(e,ui(t,2)):0},Bn.template=function(e,t,n){var r=Bn.templateSettings;n&&xi(e,t,n)&&(t=o),e=yl(e),t=Sl({},t,r,ei);var i,a,l=Sl({},t.imports,r.imports,ei),c=Il(l),s=en(l,c),u=0,f=t.interpolate||Se,d="__p += '",p=je((t.escape||Se).source+"|"+f.source+"|"+(f===ee?he:Se).source+"|"+(t.evaluate||Se).source+"|$","g"),h="//# sourceURL="+(Te.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++lt+"]")+"\n";e.replace(p,(function(t,n,r,o,l,c){return r||(r=o),d+=e.slice(u,c).replace(Ce,ln),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),l&&(a=!0,d+="';\n"+l+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=c+t.length,t})),d+="';\n";var v=Te.call(t,"variable")&&t.variable;if(v){if(de.test(v))throw new ke("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(V,""):d).replace(U,"$1").replace(G,"$1;"),d="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=Jl((function(){return Ee(c,h+"return "+d).apply(o,s)}));if(m.source=d,Qa(m))throw m;return m},Bn.times=function(e,t){if((e=vl(e))<1||e>h)return[];var n=m,r=wn(e,m);t=ui(t),e-=m;for(var o=Qt(r,t);++n<e;)t(n);return o},Bn.toFinite=hl,Bn.toInteger=vl,Bn.toLength=ml,Bn.toLower=function(e){return yl(e).toLowerCase()},Bn.toNumber=gl,Bn.toSafeInteger=function(e){return e?cr(vl(e),-9007199254740991,h):0===e?e:0},Bn.toString=yl,Bn.toUpper=function(e){return yl(e).toUpperCase()},Bn.trim=function(e,t,n){if((e=yl(e))&&(n||t===o))return Zt(e);if(!e||!(t=uo(t)))return e;var r=vn(e),i=vn(t);return Co(r,nn(r,i),rn(r,i)+1).join("")},Bn.trimEnd=function(e,t,n){if((e=yl(e))&&(n||t===o))return e.slice(0,mn(e)+1);if(!e||!(t=uo(t)))return e;var r=vn(e);return Co(r,0,rn(r,vn(t))+1).join("")},Bn.trimStart=function(e,t,n){if((e=yl(e))&&(n||t===o))return e.replace(ae,"");if(!e||!(t=uo(t)))return e;var r=vn(e);return Co(r,nn(r,vn(t))).join("")},Bn.truncate=function(e,t){var n=30,r="...";if(tl(t)){var i="separator"in t?t.separator:i;n="length"in t?vl(t.length):n,r="omission"in t?uo(t.omission):r}var a=(e=yl(e)).length;if(cn(e)){var l=vn(e);a=l.length}if(n>=a)return e;var c=n-hn(r);if(c<1)return r;var s=l?Co(l,0,c).join(""):e.slice(0,c);if(i===o)return s+r;if(l&&(c+=s.length-c),al(i)){if(e.slice(c).search(i)){var u,f=s;for(i.global||(i=je(i.source,yl(ve.exec(i))+"g")),i.lastIndex=0;u=i.exec(f);)var d=u.index;s=s.slice(0,d===o?c:d)}}else if(e.indexOf(uo(i),c)!=c){var p=s.lastIndexOf(i);p>-1&&(s=s.slice(0,p))}return s+r},Bn.unescape=function(e){return(e=yl(e))&&X.test(e)?e.replace(Y,gn):e},Bn.uniqueId=function(e){var t=++qe;return yl(e)+t},Bn.upperCase=Xl,Bn.upperFirst=Ql,Bn.each=ya,Bn.eachRight=wa,Bn.first=Gi,cc(Bn,(Sc={},xr(Bn,(function(e,t){Te.call(Bn.prototype,t)||(Sc[t]=e)})),Sc),{chain:!1}),Bn.VERSION="4.17.21",$t(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Bn[e].placeholder=Bn})),$t(["drop","take"],(function(e,t){Vn.prototype[e]=function(n){n=n===o?1:yn(vl(n),0);var r=this.__filtered__&&!t?new Vn(this):this.clone();return r.__filtered__?r.__takeCount__=wn(n,r.__takeCount__):r.__views__.push({size:wn(n,m),type:e+(r.__dir__<0?"Right":"")}),r},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),$t(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ui(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),$t(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}})),$t(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}})),Vn.prototype.compact=function(){return this.filter(oc)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Qr((function(e,t){return"function"==typeof e?new Vn(this):this.map((function(n){return Pr(n,e,t)}))})),Vn.prototype.reject=function(e){return this.filter(Ta(ui(e)))},Vn.prototype.slice=function(e,t){e=vl(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Vn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=vl(t))<0?n.dropRight(-t):n.take(t-e)),n)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(m)},xr(Vn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Bn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Bn.prototype[t]=function(){var t=this.__wrapped__,l=r?[1]:arguments,c=t instanceof Vn,s=l[0],u=c||Va(t),f=function(e){var t=i.apply(Bn,Tt([e],l));return r&&d?t[0]:t};u&&n&&"function"==typeof s&&1!=s.length&&(c=u=!1);var d=this.__chain__,p=!!this.__actions__.length,h=a&&!d,v=c&&!p;if(!a&&u){t=v?t:new Vn(this);var m=e.apply(t,l);return m.__actions__.push({func:ha,args:[f],thisArg:o}),new Wn(m,d)}return h&&v?e.apply(this,l):(m=this.thru(f),h?r?m.value()[0]:m.value():m)})})),$t(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Pe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Va(o)?o:[],e)}return this[n]((function(n){return t.apply(Va(n)?n:[],e)}))}})),xr(Vn.prototype,(function(e,t){var n=Bn[t];if(n){var r=n.name+"";Te.call(In,r)||(In[r]=[]),In[r].push({name:t,func:n})}})),In[Fo(o,2).name]=[{name:"wrapper",func:o}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Po(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Po(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Po(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Va(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=wn(t,e+a);break;case"takeRight":e=yn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,l=i.end,c=l-a,s=r?l:a-1,u=this.__iteratees__,f=u.length,d=0,p=wn(c,this.__takeCount__);if(!n||!r&&o==c&&p==c)return mo(e,this.__actions__);var h=[];e:for(;c--&&d<p;){for(var v=-1,m=e[s+=t];++v<f;){var g=u[v],b=g.iteratee,y=g.type,w=b(m);if(2==y)m=w;else if(!w){if(1==y)continue e;break e}}h[d++]=m}return h},Bn.prototype.at=va,Bn.prototype.chain=function(){return pa(this)},Bn.prototype.commit=function(){return new Wn(this.value(),this.__chain__)},Bn.prototype.next=function(){this.__values__===o&&(this.__values__=pl(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Bn.prototype.plant=function(e){for(var t,n=this;n instanceof Hn;){var r=zi(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Bn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ta],thisArg:o}),new Wn(t,this.__chain__)}return this.thru(ta)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return mo(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,Ze&&(Bn.prototype[Ze]=function(){return this}),Bn}();vt._=bn,(r=function(){return bn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},9761:function(e,t,n){var r;
18 /**
19 * @license
20 * Lodash <https://lodash.com/>
21 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
22 * Released under MIT license <https://lodash.com/license>
23 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
24 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
25 */e=n.nmd(e),function(){function o(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function i(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function a(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function l(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function c(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function s(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function u(e,t){return!(null==e||!e.length)&&w(e,t,0)>-1}function f(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function d(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function p(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function h(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function v(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function m(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function g(e){return e.match(tt)||[]}function b(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function y(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function w(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):y(e,S,n)}function x(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function S(e){return e!=e}function C(e,t){var n=null==e?0:e.length;return n?_(e,t)/n:re}function k(e){return function(t){return null==t?U:t[e]}}function E(e){return function(t){return null==e?U:e[t]}}function O(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function _(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);i!==U&&(n=n===U?i:n+i)}return n}function j(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function $(e){return e?e.slice(0,W(e)+1).replace(Xe,""):e}function N(e){return function(t){return e(t)}}function P(e,t){return d(t,(function(t){return e[t]}))}function I(e,t){return e.has(t)}function M(e,t){for(var n=-1,r=e.length;++n<r&&w(t,e[n],0)>-1;);return n}function R(e,t){for(var n=e.length;n--&&w(t,e[n],0)>-1;);return n}function A(e){return"\\"+en[e]}function T(e){return Yt.test(e)}function q(e){return Kt.test(e)}function D(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function L(e,t){return function(n){return e(t(n))}}function z(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==K||(e[n]=K,i[o++]=n)}return i}function B(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function F(e){return T(e)?function(e){for(var t=Ut.lastIndex=0;Ut.test(e);)++t;return t}(e):bn(e)}function H(e){return T(e)?function(e){return e.match(Ut)||[]}(e):function(e){return e.split("")}(e)}function W(e){for(var t=e.length;t--&&Qe.test(e.charAt(t)););return t}function V(e){return e.match(Gt)||[]}var U,G="Expected a function",Y="__lodash_hash_undefined__",K="__lodash_placeholder__",X=16,Q=32,Z=64,J=128,ee=256,te=1/0,ne=9007199254740991,re=NaN,oe=4294967295,ie=oe-1,ae=oe>>>1,le=[["ary",J],["bind",1],["bindKey",2],["curry",8],["curryRight",X],["flip",512],["partial",Q],["partialRight",Z],["rearg",ee]],ce="[object Arguments]",se="[object Array]",ue="[object Boolean]",fe="[object Date]",de="[object Error]",pe="[object Function]",he="[object GeneratorFunction]",ve="[object Map]",me="[object Number]",ge="[object Object]",be="[object Promise]",ye="[object RegExp]",we="[object Set]",xe="[object String]",Se="[object Symbol]",Ce="[object WeakMap]",ke="[object ArrayBuffer]",Ee="[object DataView]",Oe="[object Float32Array]",_e="[object Float64Array]",je="[object Int8Array]",$e="[object Int16Array]",Ne="[object Int32Array]",Pe="[object Uint8Array]",Ie="[object Uint8ClampedArray]",Me="[object Uint16Array]",Re="[object Uint32Array]",Ae=/\b__p \+= '';/g,Te=/\b(__p \+=) '' \+/g,qe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,De=/&(?:amp|lt|gt|quot|#39);/g,Le=/[&<>"']/g,ze=RegExp(De.source),Be=RegExp(Le.source),Fe=/<%-([\s\S]+?)%>/g,He=/<%([\s\S]+?)%>/g,We=/<%=([\s\S]+?)%>/g,Ve=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ue=/^\w*$/,Ge=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ye=/[\\^$.*+?()[\]{}|]/g,Ke=RegExp(Ye.source),Xe=/^\s+/,Qe=/\s/,Ze=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Je=/\{\n\/\* \[wrapped with (.+)\] \*/,et=/,? & /,tt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,nt=/[()=,{}\[\]\/\s]/,rt=/\\(\\)?/g,ot=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,it=/\w*$/,at=/^[-+]0x[0-9a-f]+$/i,lt=/^0b[01]+$/i,ct=/^\[object .+?Constructor\]$/,st=/^0o[0-7]+$/i,ut=/^(?:0|[1-9]\d*)$/,ft=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,dt=/($^)/,pt=/['\n\r\u2028\u2029\\]/g,ht="\\ud800-\\udfff",vt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",mt="\\u2700-\\u27bf",gt="a-z\\xdf-\\xf6\\xf8-\\xff",bt="A-Z\\xc0-\\xd6\\xd8-\\xde",yt="\\ufe0e\\ufe0f",wt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",xt="['’]",St="["+ht+"]",Ct="["+wt+"]",kt="["+vt+"]",Et="\\d+",Ot="["+mt+"]",_t="["+gt+"]",jt="[^"+ht+wt+Et+mt+gt+bt+"]",$t="\\ud83c[\\udffb-\\udfff]",Nt="[^"+ht+"]",Pt="(?:\\ud83c[\\udde6-\\uddff]){2}",It="[\\ud800-\\udbff][\\udc00-\\udfff]",Mt="["+bt+"]",Rt="\\u200d",At="(?:"+_t+"|"+jt+")",Tt="(?:"+Mt+"|"+jt+")",qt="(?:['’](?:d|ll|m|re|s|t|ve))?",Dt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Lt="(?:"+kt+"|"+$t+")"+"?",zt="["+yt+"]?",Bt=zt+Lt+("(?:"+Rt+"(?:"+[Nt,Pt,It].join("|")+")"+zt+Lt+")*"),Ft="(?:"+[Ot,Pt,It].join("|")+")"+Bt,Ht="(?:"+[Nt+kt+"?",kt,Pt,It,St].join("|")+")",Wt=RegExp(xt,"g"),Vt=RegExp(kt,"g"),Ut=RegExp($t+"(?="+$t+")|"+Ht+Bt,"g"),Gt=RegExp([Mt+"?"+_t+"+"+qt+"(?="+[Ct,Mt,"$"].join("|")+")",Tt+"+"+Dt+"(?="+[Ct,Mt+At,"$"].join("|")+")",Mt+"?"+At+"+"+qt,Mt+"+"+Dt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Et,Ft].join("|"),"g"),Yt=RegExp("["+Rt+ht+vt+yt+"]"),Kt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Xt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Qt=-1,Zt={};Zt[Oe]=Zt[_e]=Zt[je]=Zt[$e]=Zt[Ne]=Zt[Pe]=Zt[Ie]=Zt[Me]=Zt[Re]=!0,Zt[ce]=Zt[se]=Zt[ke]=Zt[ue]=Zt[Ee]=Zt[fe]=Zt[de]=Zt[pe]=Zt[ve]=Zt[me]=Zt[ge]=Zt[ye]=Zt[we]=Zt[xe]=Zt[Ce]=!1;var Jt={};Jt[ce]=Jt[se]=Jt[ke]=Jt[Ee]=Jt[ue]=Jt[fe]=Jt[Oe]=Jt[_e]=Jt[je]=Jt[$e]=Jt[Ne]=Jt[ve]=Jt[me]=Jt[ge]=Jt[ye]=Jt[we]=Jt[xe]=Jt[Se]=Jt[Pe]=Jt[Ie]=Jt[Me]=Jt[Re]=!0,Jt[de]=Jt[pe]=Jt[Ce]=!1;var en={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tn=parseFloat,nn=parseInt,rn="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,on="object"==typeof self&&self&&self.Object===Object&&self,an=rn||on||Function("return this")(),ln=t&&!t.nodeType&&t,cn=ln&&e&&!e.nodeType&&e,sn=cn&&cn.exports===ln,un=sn&&rn.process,fn=function(){try{var e=cn&&cn.require&&cn.require("util").types;return e||un&&un.binding&&un.binding("util")}catch(e){}}(),dn=fn&&fn.isArrayBuffer,pn=fn&&fn.isDate,hn=fn&&fn.isMap,vn=fn&&fn.isRegExp,mn=fn&&fn.isSet,gn=fn&&fn.isTypedArray,bn=k("length"),yn=E({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),wn=E({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),xn=E({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),Sn=function e(t){function n(e){if(Bo(e)&&!Nl(e)&&!(e instanceof Qe)){if(e instanceof E)return e;if(Ni.call(e,"__wrapped__"))return po(e)}return new E(e)}function r(){}function E(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=U}function Qe(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=oe,this.__views__=[]}function tt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ht(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function vt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function mt(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new vt;++t<n;)this.add(e[t])}function gt(e){this.size=(this.__data__=new ht(e)).size}function bt(e,t){var n=Nl(e),r=!n&&$l(e),o=!n&&!r&&Il(e),i=!n&&!r&&!o&&ql(e),a=n||r||o||i,l=a?j(e.length,Ci):[],c=l.length;for(var s in e)!t&&!Ni.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Xr(s,c))||l.push(s);return l}function yt(e){var t=e.length;return t?e[Mn(0,t-1)]:U}function wt(e,t){return co(ur(e),$t(t,0,e.length))}function xt(e){return co(ur(e))}function St(e,t,n){(n===U||Mo(e[t],n))&&(n!==U||t in e)||_t(e,t,n)}function Ct(e,t,n){var r=e[t];Ni.call(e,t)&&Mo(r,n)&&(n!==U||t in e)||_t(e,t,n)}function kt(e,t){for(var n=e.length;n--;)if(Mo(e[n][0],t))return n;return-1}function Et(e,t,n,r){return ja(e,(function(e,o,i){t(r,e,n(e),i)})),r}function Ot(e,t){return e&&fr(t,ti(t),e)}function _t(e,t,n){"__proto__"==t&&Yi?Yi(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function jt(e,t){for(var n=-1,r=t.length,o=mi(r),i=null==e;++n<r;)o[n]=i?U:Jo(e,t[n]);return o}function $t(e,t,n){return e==e&&(n!==U&&(e=e<=n?e:n),t!==U&&(e=e>=t?e:t)),e}function Nt(e,t,n,r,o,i){var l,c=1&t,s=2&t,u=4&t;if(n&&(l=o?n(e,r,o,i):n(e)),l!==U)return l;if(!zo(e))return e;var f=Nl(e);if(f){if(l=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ni.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!c)return ur(e,l)}else{var d=za(e),p=d==pe||d==he;if(Il(e))return or(e,c);if(d==ge||d==ce||p&&!o){if(l=s||p?{}:Yr(e),!c)return s?function(e,t){return fr(e,La(e),t)}(e,function(e,t){return e&&fr(t,ni(t),e)}(l,e)):function(e,t){return fr(e,Da(e),t)}(e,Ot(l,e))}else{if(!Jt[d])return o?e:{};l=function(e,t,n){var r=e.constructor;switch(t){case ke:return ir(e);case ue:case fe:return new r(+e);case Ee:return function(e,t){return new e.constructor(t?ir(e.buffer):e.buffer,e.byteOffset,e.byteLength)}(e,n);case Oe:case _e:case je:case $e:case Ne:case Pe:case Ie:case Me:case Re:return ar(e,n);case ve:return new r;case me:case xe:return new r(e);case ye:return function(e){var t=new e.constructor(e.source,it.exec(e));return t.lastIndex=e.lastIndex,t}(e);case we:return new r;case Se:return function(e){return Ea?xi(Ea.call(e)):{}}(e)}}(e,d,c)}}i||(i=new gt);var h=i.get(e);if(h)return h;i.set(e,l),Tl(e)?e.forEach((function(r){l.add(Nt(r,t,n,r,e,i))})):Rl(e)&&e.forEach((function(r,o){l.set(o,Nt(r,t,n,o,e,i))}));var v=f?U:(u?s?zr:Lr:s?ni:ti)(e);return a(v||e,(function(r,o){v&&(r=e[o=r]),Ct(l,o,Nt(r,t,n,o,e,i))})),l}function Pt(e,t,n){var r=n.length;if(null==e)return!r;for(e=xi(e);r--;){var o=n[r],i=t[o],a=e[o];if(a===U&&!(o in e)||!i(a))return!1}return!0}function It(e,t,n){if("function"!=typeof e)throw new ki(G);return Ha((function(){e.apply(U,n)}),t)}function Mt(e,t,n,r){var o=-1,i=u,a=!0,l=e.length,c=[],s=t.length;if(!l)return c;n&&(t=d(t,N(n))),r?(i=f,a=!1):t.length>=200&&(i=I,a=!1,t=new mt(t));e:for(;++o<l;){var p=e[o],h=null==n?p:n(p);if(p=r||0!==p?p:0,a&&h==h){for(var v=s;v--;)if(t[v]===h)continue e;c.push(p)}else i(t,h,r)||c.push(p)}return c}function Rt(e,t){var n=!0;return ja(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function At(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(l===U?a==a&&!Vo(a):n(a,l)))var l=a,c=i}return c}function Tt(e,t){var n=[];return ja(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function qt(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=Kr),o||(o=[]);++i<a;){var l=e[i];t>0&&n(l)?t>1?qt(l,t-1,n,r,o):p(o,l):r||(o[o.length]=l)}return o}function Dt(e,t){return e&&Na(e,t,ti)}function Lt(e,t){return e&&Pa(e,t,ti)}function zt(e,t){return s(t,(function(t){return qo(e[t])}))}function Bt(e,t){for(var n=0,r=(t=nr(t,e)).length;null!=e&&n<r;)e=e[so(t[n++])];return n&&n==r?e:U}function Ft(e,t,n){var r=t(e);return Nl(e)?r:p(r,n(e))}function Ht(e){return null==e?e===U?"[object Undefined]":"[object Null]":Gi&&Gi in xi(e)?function(e){var t=Ni.call(e,Gi),n=e[Gi];try{e[Gi]=U;var r=!0}catch(e){}var o=Mi.call(e);return r&&(t?e[Gi]=n:delete e[Gi]),o}(e):function(e){return Mi.call(e)}(e)}function Ut(e,t){return e>t}function Gt(e,t){return null!=e&&Ni.call(e,t)}function Yt(e,t){return null!=e&&t in xi(e)}function Kt(e,t,n){for(var r=n?f:u,o=e[0].length,i=e.length,a=i,l=mi(i),c=1/0,s=[];a--;){var p=e[a];a&&t&&(p=d(p,N(t))),c=aa(p.length,c),l[a]=!n&&(t||o>=120&&p.length>=120)?new mt(a&&p):U}p=e[0];var h=-1,v=l[0];e:for(;++h<o&&s.length<c;){var m=p[h],g=t?t(m):m;if(m=n||0!==m?m:0,!(v?I(v,g):r(s,g,n))){for(a=i;--a;){var b=l[a];if(!(b?I(b,g):r(e[a],g,n)))continue e}v&&v.push(g),s.push(m)}}return s}function en(e,t,n){var r=null==(e=oo(e,t=nr(t,e)))?e:e[so(bo(t))];return null==r?U:o(r,e,n)}function rn(e){return Bo(e)&&Ht(e)==ce}function on(e,t,n,r,o){return e===t||(null==e||null==t||!Bo(e)&&!Bo(t)?e!=e&&t!=t:function(e,t,n,r,o,i){var a=Nl(e),l=Nl(t),c=a?se:za(e),s=l?se:za(t);c=c==ce?ge:c,s=s==ce?ge:s;var u=c==ge,f=s==ge,d=c==s;if(d&&Il(e)){if(!Il(t))return!1;a=!0,u=!1}if(d&&!u)return i||(i=new gt),a||ql(e)?qr(e,t,n,r,o,i):function(e,t,n,r,o,i,a){switch(n){case Ee:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ke:return!(e.byteLength!=t.byteLength||!i(new Li(e),new Li(t)));case ue:case fe:case me:return Mo(+e,+t);case de:return e.name==t.name&&e.message==t.message;case ye:case xe:return e==t+"";case ve:var l=D;case we:var c=1&r;if(l||(l=B),e.size!=t.size&&!c)return!1;var s=a.get(e);if(s)return s==t;r|=2,a.set(e,t);var u=qr(l(e),l(t),r,o,i,a);return a.delete(e),u;case Se:if(Ea)return Ea.call(e)==Ea.call(t)}return!1}(e,t,c,n,r,o,i);if(!(1&n)){var p=u&&Ni.call(e,"__wrapped__"),h=f&&Ni.call(t,"__wrapped__");if(p||h){var v=p?e.value():e,m=h?t.value():t;return i||(i=new gt),o(v,m,n,r,i)}}return!!d&&(i||(i=new gt),function(e,t,n,r,o,i){var a=1&n,l=Lr(e),c=l.length;if(c!=Lr(t).length&&!a)return!1;for(var s=c;s--;){var u=l[s];if(!(a?u in t:Ni.call(t,u)))return!1}var f=i.get(e),d=i.get(t);if(f&&d)return f==t&&d==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++s<c;){var v=e[u=l[s]],m=t[u];if(r)var g=a?r(m,v,u,t,e,i):r(v,m,u,e,t,i);if(!(g===U?v===m||o(v,m,n,r,i):g)){p=!1;break}h||(h="constructor"==u)}if(p&&!h){var b=e.constructor,y=t.constructor;b!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y)&&(p=!1)}return i.delete(e),i.delete(t),p}(e,t,n,r,o,i))}(e,t,n,r,on,o))}function ln(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=xi(e);o--;){var l=n[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<i;){var c=(l=n[o])[0],s=e[c],u=l[1];if(a&&l[2]){if(s===U&&!(c in e))return!1}else{var f=new gt;if(r)var d=r(s,u,c,e,t,f);if(!(d===U?on(u,s,3,r,f):d))return!1}}return!0}function cn(e){return!(!zo(e)||function(e){return!!Ii&&Ii in e}(e))&&(qo(e)?Ti:ct).test(uo(e))}function un(e){return"function"==typeof e?e:null==e?si:"object"==typeof e?Nl(e)?On(e[0],e[1]):En(e):pi(e)}function fn(e){if(!eo(e))return oa(e);var t=[];for(var n in xi(e))Ni.call(e,n)&&"constructor"!=n&&t.push(n);return t}function bn(e){if(!zo(e))return function(e){var t=[];if(null!=e)for(var n in xi(e))t.push(n);return t}(e);var t=eo(e),n=[];for(var r in e)("constructor"!=r||!t&&Ni.call(e,r))&&n.push(r);return n}function Cn(e,t){return e<t}function kn(e,t){var n=-1,r=Ro(e)?mi(e.length):[];return ja(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function En(e){var t=Vr(e);return 1==t.length&&t[0][2]?no(t[0][0],t[0][1]):function(n){return n===e||ln(n,e,t)}}function On(e,t){return Zr(e)&&to(t)?no(so(e),t):function(n){var r=Jo(n,e);return r===U&&r===t?ei(n,e):on(t,r,3)}}function _n(e,t,n,r,o){e!==t&&Na(t,(function(i,a){if(o||(o=new gt),zo(i))!function(e,t,n,r,o,i,a){var l=io(e,n),c=io(t,n),s=a.get(c);if(s)return St(e,n,s),U;var u=i?i(l,c,n+"",e,t,a):U,f=u===U;if(f){var d=Nl(c),p=!d&&Il(c),h=!d&&!p&&ql(c);u=c,d||p||h?Nl(l)?u=l:Ao(l)?u=ur(l):p?(f=!1,u=or(c,!0)):h?(f=!1,u=ar(c,!0)):u=[]:Ho(c)||$l(c)?(u=l,$l(l)?u=Qo(l):zo(l)&&!qo(l)||(u=Yr(c))):f=!1}f&&(a.set(c,u),o(u,c,r,i,a),a.delete(c)),St(e,n,u)}(e,t,a,n,_n,r,o);else{var l=r?r(io(e,a),i,a+"",e,t,o):U;l===U&&(l=i),St(e,a,l)}}),ni)}function jn(e,t){var n=e.length;if(n)return Xr(t+=t<0?n:0,n)?e[t]:U}function $n(e,t,n){t=t.length?d(t,(function(e){return Nl(e)?function(t){return Bt(t,1===e.length?e[0]:e)}:e})):[si];var r=-1;return t=d(t,N(Hr())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(kn(e,(function(e,n,o){return{criteria:d(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,l=n.length;++r<a;){var c=lr(o[r],i[r]);if(c)return r>=l?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Nn(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],l=Bt(e,a);n(l,a)&&Dn(i,nr(a,e),l)}return i}function Pn(e,t,n,r){var o=r?x:w,i=-1,a=t.length,l=e;for(e===t&&(t=ur(t)),n&&(l=d(e,N(n)));++i<a;)for(var c=0,s=t[i],u=n?n(s):s;(c=o(l,u,c,r))>-1;)l!==e&&Wi.call(l,c,1),Wi.call(e,c,1);return e}function In(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Xr(o)?Wi.call(e,o,1):Yn(e,o)}}return e}function Mn(e,t){return e+Ji(sa()*(t-e+1))}function Rn(e,t){var n="";if(!e||t<1||t>ne)return n;do{t%2&&(n+=e),(t=Ji(t/2))&&(e+=e)}while(t);return n}function An(e,t){return Wa(ro(e,t,si),e+"")}function Tn(e){return yt(oi(e))}function qn(e,t){var n=oi(e);return co(n,$t(t,0,n.length))}function Dn(e,t,n,r){if(!zo(e))return e;for(var o=-1,i=(t=nr(t,e)).length,a=i-1,l=e;null!=l&&++o<i;){var c=so(t[o]),s=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=a){var u=l[c];(s=r?r(u,c,l):U)===U&&(s=zo(u)?u:Xr(t[o+1])?[]:{})}Ct(l,c,s),l=l[c]}return e}function Ln(e){return co(oi(e))}function zn(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=mi(o);++r<o;)i[r]=e[r+t];return i}function Bn(e,t){var n;return ja(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function Fn(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=ae){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!Vo(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return Hn(e,t,si,n)}function Hn(e,t,n,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;for(var a=(t=n(t))!=t,l=null===t,c=Vo(t),s=t===U;o<i;){var u=Ji((o+i)/2),f=n(e[u]),d=f!==U,p=null===f,h=f==f,v=Vo(f);if(a)var m=r||h;else m=s?h&&(r||d):l?h&&d&&(r||!p):c?h&&d&&!p&&(r||!v):!p&&!v&&(r?f<=t:f<t);m?o=u+1:i=u}return aa(i,ie)}function Wn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],l=t?t(a):a;if(!n||!Mo(l,c)){var c=l;i[o++]=0===a?0:a}}return i}function Vn(e){return"number"==typeof e?e:Vo(e)?re:+e}function Un(e){if("string"==typeof e)return e;if(Nl(e))return d(e,Un)+"";if(Vo(e))return Oa?Oa.call(e):"";var t=e+"";return"0"==t&&1/e==-te?"-0":t}function Gn(e,t,n){var r=-1,o=u,i=e.length,a=!0,l=[],c=l;if(n)a=!1,o=f;else if(i>=200){var s=t?null:Ta(e);if(s)return B(s);a=!1,o=I,c=new mt}else c=t?[]:l;e:for(;++r<i;){var d=e[r],p=t?t(d):d;if(d=n||0!==d?d:0,a&&p==p){for(var h=c.length;h--;)if(c[h]===p)continue e;t&&c.push(p),l.push(d)}else o(c,p,n)||(c!==l&&c.push(p),l.push(d))}return l}function Yn(e,t){return null==(e=oo(e,t=nr(t,e)))||delete e[so(bo(t))]}function Kn(e,t,n,r){return Dn(e,t,n(Bt(e,t)),r)}function Xn(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?zn(e,r?0:i,r?i+1:o):zn(e,r?i+1:0,r?o:i)}function Qn(e,t){var n=e;return n instanceof Qe&&(n=n.value()),h(t,(function(e,t){return t.func.apply(t.thisArg,p([e],t.args))}),n)}function Zn(e,t,n){var r=e.length;if(r<2)return r?Gn(e[0]):[];for(var o=-1,i=mi(r);++o<r;)for(var a=e[o],l=-1;++l<r;)l!=o&&(i[o]=Mt(i[o]||a,e[l],t,n));return Gn(qt(i,1),t,n)}function Jn(e,t,n){for(var r=-1,o=e.length,i=t.length,a={};++r<o;)n(a,e[r],r<i?t[r]:U);return a}function er(e){return Ao(e)?e:[]}function tr(e){return"function"==typeof e?e:si}function nr(e,t){return Nl(e)?e:Zr(e,t)?[e]:Va(Zo(e))}function rr(e,t,n){var r=e.length;return n=n===U?r:n,!t&&n>=r?e:zn(e,t,n)}function or(e,t){if(t)return e.slice();var n=e.length,r=zi?zi(n):new e.constructor(n);return e.copy(r),r}function ir(e){var t=new e.constructor(e.byteLength);return new Li(t).set(new Li(e)),t}function ar(e,t){return new e.constructor(t?ir(e.buffer):e.buffer,e.byteOffset,e.length)}function lr(e,t){if(e!==t){var n=e!==U,r=null===e,o=e==e,i=Vo(e),a=t!==U,l=null===t,c=t==t,s=Vo(t);if(!l&&!s&&!i&&e>t||i&&a&&c&&!l&&!s||r&&a&&c||!n&&c||!o)return 1;if(!r&&!i&&!s&&e<t||s&&n&&o&&!r&&!i||l&&n&&o||!a&&o||!c)return-1}return 0}function cr(e,t,n,r){for(var o=-1,i=e.length,a=n.length,l=-1,c=t.length,s=ia(i-a,0),u=mi(c+s),f=!r;++l<c;)u[l]=t[l];for(;++o<a;)(f||o<i)&&(u[n[o]]=e[o]);for(;s--;)u[l++]=e[o++];return u}function sr(e,t,n,r){for(var o=-1,i=e.length,a=-1,l=n.length,c=-1,s=t.length,u=ia(i-l,0),f=mi(u+s),d=!r;++o<u;)f[o]=e[o];for(var p=o;++c<s;)f[p+c]=t[c];for(;++a<l;)(d||o<i)&&(f[p+n[a]]=e[o++]);return f}function ur(e,t){var n=-1,r=e.length;for(t||(t=mi(r));++n<r;)t[n]=e[n];return t}function fr(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var l=t[i],c=r?r(n[l],e[l],l,n,e):U;c===U&&(c=e[l]),o?_t(n,l,c):Ct(n,l,c)}return n}function dr(e,t){return function(n,r){var o=Nl(n)?i:Et,a=t?t():{};return o(n,e,Hr(r,2),a)}}function pr(e){return An((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:U,a=o>2?n[2]:U;for(i=e.length>3&&"function"==typeof i?(o--,i):U,a&&Qr(n[0],n[1],a)&&(i=o<3?U:i,o=1),t=xi(t);++r<o;){var l=n[r];l&&e(t,l,r,i)}return t}))}function hr(e,t){return function(n,r){if(null==n)return n;if(!Ro(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=xi(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function vr(e){return function(t,n,r){for(var o=-1,i=xi(t),a=r(t),l=a.length;l--;){var c=a[e?l:++o];if(!1===n(i[c],c,i))break}return t}}function mr(e){return function(t){var n=T(t=Zo(t))?H(t):U,r=n?n[0]:t.charAt(0),o=n?rr(n,1).join(""):t.slice(1);return r[e]()+o}}function gr(e){return function(t){return h(li(ai(t).replace(Wt,"")),e,"")}}function br(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=_a(e.prototype),r=e.apply(n,t);return zo(r)?r:n}}function yr(e,t,n){var r=br(e);return function i(){for(var a=arguments.length,l=mi(a),c=a,s=Fr(i);c--;)l[c]=arguments[c];var u=a<3&&l[0]!==s&&l[a-1]!==s?[]:z(l,s);return(a-=u.length)<n?Nr(e,t,Sr,i.placeholder,U,l,u,U,U,n-a):o(this&&this!==an&&this instanceof i?r:e,this,l)}}function wr(e){return function(t,n,r){var o=xi(t);if(!Ro(t)){var i=Hr(n,3);t=ti(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:U}}function xr(e){return Dr((function(t){var n=t.length,r=n,o=E.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new ki(G);if(o&&!a&&"wrapper"==Br(i))var a=new E([],!0)}for(r=a?r:n;++r<n;){var l=Br(i=t[r]),c="wrapper"==l?qa(i):U;a=c&&Jr(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?a[Br(c[0])].apply(a,c[3]):1==i.length&&Jr(i)?a[l]():a.thru(i)}return function(){var e=arguments,r=e[0];if(a&&1==e.length&&Nl(r))return a.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Sr(e,t,n,r,o,i,a,l,c,s){var u=t&J,f=1&t,d=2&t,p=24&t,h=512&t,v=d?U:br(e);return function m(){for(var g=arguments.length,b=mi(g),y=g;y--;)b[y]=arguments[y];if(p)var w=Fr(m),x=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(b,w);if(r&&(b=cr(b,r,o,p)),i&&(b=sr(b,i,a,p)),g-=x,p&&g<s)return Nr(e,t,Sr,m.placeholder,n,b,z(b,w),l,c,s-g);var S=f?n:this,C=d?S[e]:e;return g=b.length,l?b=function(e,t){for(var n=e.length,r=aa(t.length,n),o=ur(e);r--;){var i=t[r];e[r]=Xr(i,n)?o[i]:U}return e}(b,l):h&&g>1&&b.reverse(),u&&c<g&&(b.length=c),this&&this!==an&&this instanceof m&&(C=v||br(C)),C.apply(S,b)}}function Cr(e,t){return function(n,r){return function(e,t,n,r){return Dt(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function kr(e,t){return function(n,r){var o;if(n===U&&r===U)return t;if(n!==U&&(o=n),r!==U){if(o===U)return r;"string"==typeof n||"string"==typeof r?(n=Un(n),r=Un(r)):(n=Vn(n),r=Vn(r)),o=e(n,r)}return o}}function Er(e){return Dr((function(t){return t=d(t,N(Hr())),An((function(n){var r=this;return e(t,(function(e){return o(e,r,n)}))}))}))}function Or(e,t){var n=(t=t===U?" ":Un(t)).length;if(n<2)return n?Rn(t,e):t;var r=Rn(t,Zi(e/F(t)));return T(t)?rr(H(r),0,e).join(""):r.slice(0,e)}function _r(e,t,n,r){var i=1&t,a=br(e);return function t(){for(var l=-1,c=arguments.length,s=-1,u=r.length,f=mi(u+c),d=this&&this!==an&&this instanceof t?a:e;++s<u;)f[s]=r[s];for(;c--;)f[s++]=arguments[++l];return o(d,i?n:this,f)}}function jr(e){return function(t,n,r){return r&&"number"!=typeof r&&Qr(t,n,r)&&(n=r=U),t=Go(t),n===U?(n=t,t=0):n=Go(n),function(e,t,n,r){for(var o=-1,i=ia(Zi((t-e)/(n||1)),0),a=mi(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,n,r=r===U?t<n?1:-1:Go(r),e)}}function $r(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Xo(t),n=Xo(n)),e(t,n)}}function Nr(e,t,n,r,o,i,a,l,c,s){var u=8&t;t|=u?Q:Z,4&(t&=~(u?Z:Q))||(t&=-4);var f=[e,t,o,u?i:U,u?a:U,u?U:i,u?U:a,l,c,s],d=n.apply(U,f);return Jr(e)&&Fa(d,f),d.placeholder=r,ao(d,e,t)}function Pr(e){var t=wi[e];return function(e,n){if(e=Xo(e),(n=null==n?0:aa(Yo(n),292))&&na(e)){var r=(Zo(e)+"e").split("e");return+((r=(Zo(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}function Ir(e){return function(t){var n=za(t);return n==ve?D(t):n==we?function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}(t):function(e,t){return d(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Mr(e,t,n,r,o,i,a,l){var c=2&t;if(!c&&"function"!=typeof e)throw new ki(G);var s=r?r.length:0;if(s||(t&=-97,r=o=U),a=a===U?a:ia(Yo(a),0),l=l===U?l:Yo(l),s-=o?o.length:0,t&Z){var u=r,f=o;r=o=U}var d=c?U:qa(e),p=[e,t,n,r,o,u,f,i,a,l];if(d&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==J&&8==n||r==J&&n==ee&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?cr(c,l,t[4]):l,e[4]=c?z(e[3],K):t[4]}l=t[5],l&&(c=e[5],e[5]=c?sr(c,l,t[6]):l,e[6]=c?z(e[5],K):t[6]),l=t[7],l&&(e[7]=l),r&J&&(e[8]=null==e[8]?t[8]:aa(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(p,d),e=p[0],t=p[1],n=p[2],r=p[3],o=p[4],!(l=p[9]=p[9]===U?c?0:e.length:ia(p[9]-s,0))&&24&t&&(t&=-25),t&&1!=t)h=8==t||t==X?yr(e,t,l):t!=Q&&33!=t||o.length?Sr.apply(U,p):_r(e,t,n,r);else var h=function(e,t,n){var r=1&t,o=br(e);return function t(){return(this&&this!==an&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return ao((d?Ia:Fa)(h,p),e,t)}function Rr(e,t,n,r){return e===U||Mo(e,_i[n])&&!Ni.call(r,n)?t:e}function Ar(e,t,n,r,o,i){return zo(e)&&zo(t)&&(i.set(t,e),_n(e,t,U,Ar,i),i.delete(t)),e}function Tr(e){return Ho(e)?U:e}function qr(e,t,n,r,o,i){var a=1&n,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var s=i.get(e),u=i.get(t);if(s&&u)return s==t&&u==e;var f=-1,d=!0,p=2&n?new mt:U;for(i.set(e,t),i.set(t,e);++f<l;){var h=e[f],v=t[f];if(r)var g=a?r(v,h,f,t,e,i):r(h,v,f,e,t,i);if(g!==U){if(g)continue;d=!1;break}if(p){if(!m(t,(function(e,t){if(!I(p,t)&&(h===e||o(h,e,n,r,i)))return p.push(t)}))){d=!1;break}}else if(h!==v&&!o(h,v,n,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function Dr(e){return Wa(ro(e,U,mo),e+"")}function Lr(e){return Ft(e,ti,Da)}function zr(e){return Ft(e,ni,La)}function Br(e){for(var t=e.name+"",n=ba[t],r=Ni.call(ba,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function Fr(e){return(Ni.call(n,"placeholder")?n:e).placeholder}function Hr(){var e=n.iteratee||ui;return e=e===ui?un:e,arguments.length?e(arguments[0],arguments[1]):e}function Wr(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Vr(e){for(var t=ti(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,to(o)]}return t}function Ur(e,t){var n=function(e,t){return null==e?U:e[t]}(e,t);return cn(n)?n:U}function Gr(e,t,n){for(var r=-1,o=(t=nr(t,e)).length,i=!1;++r<o;){var a=so(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Lo(o)&&Xr(a,o)&&(Nl(e)||$l(e))}function Yr(e){return"function"!=typeof e.constructor||eo(e)?{}:_a(Bi(e))}function Kr(e){return Nl(e)||$l(e)||!!(Vi&&e&&e[Vi])}function Xr(e,t){var n=typeof e;return!!(t=null==t?ne:t)&&("number"==n||"symbol"!=n&&ut.test(e))&&e>-1&&e%1==0&&e<t}function Qr(e,t,n){if(!zo(n))return!1;var r=typeof t;return!!("number"==r?Ro(n)&&Xr(t,n.length):"string"==r&&t in n)&&Mo(n[t],e)}function Zr(e,t){if(Nl(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Vo(e))||Ue.test(e)||!Ve.test(e)||null!=t&&e in xi(t)}function Jr(e){var t=Br(e),r=n[t];if("function"!=typeof r||!(t in Qe.prototype))return!1;if(e===r)return!0;var o=qa(r);return!!o&&e===o[0]}function eo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||_i)}function to(e){return e==e&&!zo(e)}function no(e,t){return function(n){return null!=n&&n[e]===t&&(t!==U||e in xi(n))}}function ro(e,t,n){return t=ia(t===U?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=ia(r.length-t,0),l=mi(a);++i<a;)l[i]=r[t+i];i=-1;for(var c=mi(t+1);++i<t;)c[i]=r[i];return c[t]=n(l),o(e,this,c)}}function oo(e,t){return t.length<2?e:Bt(e,zn(t,0,-1))}function io(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function ao(e,t,n){var r=t+"";return Wa(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Ze,"{\n/* [wrapped with "+t+"] */\n")}(r,fo(function(e){var t=e.match(Je);return t?t[1].split(et):[]}(r),n)))}function lo(e){var t=0,n=0;return function(){var r=la(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(U,arguments)}}function co(e,t){var n=-1,r=e.length,o=r-1;for(t=t===U?r:t;++n<t;){var i=Mn(n,o),a=e[i];e[i]=e[n],e[n]=a}return e.length=t,e}function so(e){if("string"==typeof e||Vo(e))return e;var t=e+"";return"0"==t&&1/e==-te?"-0":t}function uo(e){if(null!=e){try{return $i.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function fo(e,t){return a(le,(function(n){var r="_."+n[0];t&n[1]&&!u(e,r)&&e.push(r)})),e.sort()}function po(e){if(e instanceof Qe)return e.clone();var t=new E(e.__wrapped__,e.__chain__);return t.__actions__=ur(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function ho(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Yo(n);return o<0&&(o=ia(r+o,0)),y(e,Hr(t,3),o)}function vo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==U&&(o=Yo(n),o=n<0?ia(r+o,0):aa(o,r-1)),y(e,Hr(t,3),o,!0)}function mo(e){return null!=e&&e.length?qt(e,1):[]}function go(e){return e&&e.length?e[0]:U}function bo(e){var t=null==e?0:e.length;return t?e[t-1]:U}function yo(e,t){return e&&e.length&&t&&t.length?Pn(e,t):e}function wo(e){return null==e?e:ua.call(e)}function xo(e){if(!e||!e.length)return[];var t=0;return e=s(e,(function(e){if(Ao(e))return t=ia(e.length,t),!0})),j(t,(function(t){return d(e,k(t))}))}function So(e,t){if(!e||!e.length)return[];var n=xo(e);return null==t?n:d(n,(function(e){return o(t,U,e)}))}function Co(e){var t=n(e);return t.__chain__=!0,t}function ko(e,t){return t(e)}function Eo(e,t){return(Nl(e)?a:ja)(e,Hr(t,3))}function Oo(e,t){return(Nl(e)?l:$a)(e,Hr(t,3))}function _o(e,t){return(Nl(e)?d:kn)(e,Hr(t,3))}function jo(e,t,n){return t=n?U:t,t=e&&null==t?e.length:t,Mr(e,J,U,U,U,U,t)}function $o(e,t){var n;if("function"!=typeof t)throw new ki(G);return e=Yo(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=U),n}}function No(e,t,n){function r(t){var n=c,r=s;return c=s=U,h=t,f=e.apply(r,n)}function o(e){var n=e-p;return p===U||n>=t||n<0||m&&e-h>=u}function i(){var e=bl();return o(e)?a(e):(d=Ha(i,function(e){var n=t-(e-p);return m?aa(n,u-(e-h)):n}(e)),U)}function a(e){return d=U,g&&c?r(e):(c=s=U,f)}function l(){var e=bl(),n=o(e);if(c=arguments,s=this,p=e,n){if(d===U)return function(e){return h=e,d=Ha(i,t),v?r(e):f}(p);if(m)return Aa(d),d=Ha(i,t),r(p)}return d===U&&(d=Ha(i,t)),f}var c,s,u,f,d,p,h=0,v=!1,m=!1,g=!0;if("function"!=typeof e)throw new ki(G);return t=Xo(t)||0,zo(n)&&(v=!!n.leading,u=(m="maxWait"in n)?ia(Xo(n.maxWait)||0,t):u,g="trailing"in n?!!n.trailing:g),l.cancel=function(){d!==U&&Aa(d),h=0,c=p=s=d=U},l.flush=function(){return d===U?f:a(bl())},l}function Po(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ki(G);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Po.Cache||vt),n}function Io(e){if("function"!=typeof e)throw new ki(G);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Mo(e,t){return e===t||e!=e&&t!=t}function Ro(e){return null!=e&&Lo(e.length)&&!qo(e)}function Ao(e){return Bo(e)&&Ro(e)}function To(e){if(!Bo(e))return!1;var t=Ht(e);return t==de||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ho(e)}function qo(e){if(!zo(e))return!1;var t=Ht(e);return t==pe||t==he||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Do(e){return"number"==typeof e&&e==Yo(e)}function Lo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=ne}function zo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Bo(e){return null!=e&&"object"==typeof e}function Fo(e){return"number"==typeof e||Bo(e)&&Ht(e)==me}function Ho(e){if(!Bo(e)||Ht(e)!=ge)return!1;var t=Bi(e);if(null===t)return!0;var n=Ni.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&$i.call(n)==Ri}function Wo(e){return"string"==typeof e||!Nl(e)&&Bo(e)&&Ht(e)==xe}function Vo(e){return"symbol"==typeof e||Bo(e)&&Ht(e)==Se}function Uo(e){if(!e)return[];if(Ro(e))return Wo(e)?H(e):ur(e);if(Ui&&e[Ui])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ui]());var t=za(e);return(t==ve?D:t==we?B:oi)(e)}function Go(e){return e?(e=Xo(e))===te||e===-te?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function Yo(e){var t=Go(e),n=t%1;return t==t?n?t-n:t:0}function Ko(e){return e?$t(Yo(e),0,oe):0}function Xo(e){if("number"==typeof e)return e;if(Vo(e))return re;if(zo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=zo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=$(e);var n=lt.test(e);return n||st.test(e)?nn(e.slice(2),n?2:8):at.test(e)?re:+e}function Qo(e){return fr(e,ni(e))}function Zo(e){return null==e?"":Un(e)}function Jo(e,t,n){var r=null==e?U:Bt(e,t);return r===U?n:r}function ei(e,t){return null!=e&&Gr(e,t,Yt)}function ti(e){return Ro(e)?bt(e):fn(e)}function ni(e){return Ro(e)?bt(e,!0):bn(e)}function ri(e,t){if(null==e)return{};var n=d(zr(e),(function(e){return[e]}));return t=Hr(t),Nn(e,n,(function(e,n){return t(e,n[0])}))}function oi(e){return null==e?[]:P(e,ti(e))}function ii(e){return sc(Zo(e).toLowerCase())}function ai(e){return(e=Zo(e))&&e.replace(ft,yn).replace(Vt,"")}function li(e,t,n){return e=Zo(e),(t=n?U:t)===U?q(e)?V(e):g(e):e.match(t)||[]}function ci(e){return function(){return e}}function si(e){return e}function ui(e){return un("function"==typeof e?e:Nt(e,1))}function fi(e,t,n){var r=ti(t),o=zt(t,r);null!=n||zo(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=zt(t,ti(t)));var i=!(zo(n)&&"chain"in n&&!n.chain),l=qo(e);return a(o,(function(n){var r=t[n];e[n]=r,l&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=ur(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,p([this.value()],arguments))})})),e}function di(){}function pi(e){return Zr(e)?k(so(e)):function(e){return function(t){return Bt(t,e)}}(e)}function hi(){return[]}function vi(){return!1}var mi=(t=null==t?an:Sn.defaults(an.Object(),t,Sn.pick(an,Xt))).Array,gi=t.Date,bi=t.Error,yi=t.Function,wi=t.Math,xi=t.Object,Si=t.RegExp,Ci=t.String,ki=t.TypeError,Ei=mi.prototype,Oi=yi.prototype,_i=xi.prototype,ji=t["__core-js_shared__"],$i=Oi.toString,Ni=_i.hasOwnProperty,Pi=0,Ii=function(){var e=/[^.]+$/.exec(ji&&ji.keys&&ji.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Mi=_i.toString,Ri=$i.call(xi),Ai=an._,Ti=Si("^"+$i.call(Ni).replace(Ye,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qi=sn?t.Buffer:U,Di=t.Symbol,Li=t.Uint8Array,zi=qi?qi.allocUnsafe:U,Bi=L(xi.getPrototypeOf,xi),Fi=xi.create,Hi=_i.propertyIsEnumerable,Wi=Ei.splice,Vi=Di?Di.isConcatSpreadable:U,Ui=Di?Di.iterator:U,Gi=Di?Di.toStringTag:U,Yi=function(){try{var e=Ur(xi,"defineProperty");return e({},"",{}),e}catch(e){}}(),Ki=t.clearTimeout!==an.clearTimeout&&t.clearTimeout,Xi=gi&&gi.now!==an.Date.now&&gi.now,Qi=t.setTimeout!==an.setTimeout&&t.setTimeout,Zi=wi.ceil,Ji=wi.floor,ea=xi.getOwnPropertySymbols,ta=qi?qi.isBuffer:U,na=t.isFinite,ra=Ei.join,oa=L(xi.keys,xi),ia=wi.max,aa=wi.min,la=gi.now,ca=t.parseInt,sa=wi.random,ua=Ei.reverse,fa=Ur(t,"DataView"),da=Ur(t,"Map"),pa=Ur(t,"Promise"),ha=Ur(t,"Set"),va=Ur(t,"WeakMap"),ma=Ur(xi,"create"),ga=va&&new va,ba={},ya=uo(fa),wa=uo(da),xa=uo(pa),Sa=uo(ha),Ca=uo(va),ka=Di?Di.prototype:U,Ea=ka?ka.valueOf:U,Oa=ka?ka.toString:U,_a=function(){function e(){}return function(t){if(!zo(t))return{};if(Fi)return Fi(t);e.prototype=t;var n=new e;return e.prototype=U,n}}();n.templateSettings={escape:Fe,evaluate:He,interpolate:We,variable:"",imports:{_:n}},n.prototype=r.prototype,n.prototype.constructor=n,E.prototype=_a(r.prototype),E.prototype.constructor=E,Qe.prototype=_a(r.prototype),Qe.prototype.constructor=Qe,tt.prototype.clear=function(){this.__data__=ma?ma(null):{},this.size=0},tt.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},tt.prototype.get=function(e){var t=this.__data__;if(ma){var n=t[e];return n===Y?U:n}return Ni.call(t,e)?t[e]:U},tt.prototype.has=function(e){var t=this.__data__;return ma?t[e]!==U:Ni.call(t,e)},tt.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ma&&t===U?Y:t,this},ht.prototype.clear=function(){this.__data__=[],this.size=0},ht.prototype.delete=function(e){var t=this.__data__,n=kt(t,e);return!(n<0||(n==t.length-1?t.pop():Wi.call(t,n,1),--this.size,0))},ht.prototype.get=function(e){var t=this.__data__,n=kt(t,e);return n<0?U:t[n][1]},ht.prototype.has=function(e){return kt(this.__data__,e)>-1},ht.prototype.set=function(e,t){var n=this.__data__,r=kt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},vt.prototype.clear=function(){this.size=0,this.__data__={hash:new tt,map:new(da||ht),string:new tt}},vt.prototype.delete=function(e){var t=Wr(this,e).delete(e);return this.size-=t?1:0,t},vt.prototype.get=function(e){return Wr(this,e).get(e)},vt.prototype.has=function(e){return Wr(this,e).has(e)},vt.prototype.set=function(e,t){var n=Wr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},mt.prototype.add=mt.prototype.push=function(e){return this.__data__.set(e,Y),this},mt.prototype.has=function(e){return this.__data__.has(e)},gt.prototype.clear=function(){this.__data__=new ht,this.size=0},gt.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},gt.prototype.get=function(e){return this.__data__.get(e)},gt.prototype.has=function(e){return this.__data__.has(e)},gt.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ht){var r=n.__data__;if(!da||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new vt(r)}return n.set(e,t),this.size=n.size,this};var ja=hr(Dt),$a=hr(Lt,!0),Na=vr(),Pa=vr(!0),Ia=ga?function(e,t){return ga.set(e,t),e}:si,Ma=Yi?function(e,t){return Yi(e,"toString",{configurable:!0,enumerable:!1,value:ci(t),writable:!0})}:si,Ra=An,Aa=Ki||function(e){return an.clearTimeout(e)},Ta=ha&&1/B(new ha([,-0]))[1]==te?function(e){return new ha(e)}:di,qa=ga?function(e){return ga.get(e)}:di,Da=ea?function(e){return null==e?[]:(e=xi(e),s(ea(e),(function(t){return Hi.call(e,t)})))}:hi,La=ea?function(e){for(var t=[];e;)p(t,Da(e)),e=Bi(e);return t}:hi,za=Ht;(fa&&za(new fa(new ArrayBuffer(1)))!=Ee||da&&za(new da)!=ve||pa&&za(pa.resolve())!=be||ha&&za(new ha)!=we||va&&za(new va)!=Ce)&&(za=function(e){var t=Ht(e),n=t==ge?e.constructor:U,r=n?uo(n):"";if(r)switch(r){case ya:return Ee;case wa:return ve;case xa:return be;case Sa:return we;case Ca:return Ce}return t});var Ba=ji?qo:vi,Fa=lo(Ia),Ha=Qi||function(e,t){return an.setTimeout(e,t)},Wa=lo(Ma),Va=function(e){var t=Po(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ge,(function(e,n,r,o){t.push(r?o.replace(rt,"$1"):n||e)})),t})),Ua=An((function(e,t){return Ao(e)?Mt(e,qt(t,1,Ao,!0)):[]})),Ga=An((function(e,t){var n=bo(t);return Ao(n)&&(n=U),Ao(e)?Mt(e,qt(t,1,Ao,!0),Hr(n,2)):[]})),Ya=An((function(e,t){var n=bo(t);return Ao(n)&&(n=U),Ao(e)?Mt(e,qt(t,1,Ao,!0),U,n):[]})),Ka=An((function(e){var t=d(e,er);return t.length&&t[0]===e[0]?Kt(t):[]})),Xa=An((function(e){var t=bo(e),n=d(e,er);return t===bo(n)?t=U:n.pop(),n.length&&n[0]===e[0]?Kt(n,Hr(t,2)):[]})),Qa=An((function(e){var t=bo(e),n=d(e,er);return(t="function"==typeof t?t:U)&&n.pop(),n.length&&n[0]===e[0]?Kt(n,U,t):[]})),Za=An(yo),Ja=Dr((function(e,t){var n=null==e?0:e.length,r=jt(e,t);return In(e,d(t,(function(e){return Xr(e,n)?+e:e})).sort(lr)),r})),el=An((function(e){return Gn(qt(e,1,Ao,!0))})),tl=An((function(e){var t=bo(e);return Ao(t)&&(t=U),Gn(qt(e,1,Ao,!0),Hr(t,2))})),nl=An((function(e){var t=bo(e);return t="function"==typeof t?t:U,Gn(qt(e,1,Ao,!0),U,t)})),rl=An((function(e,t){return Ao(e)?Mt(e,t):[]})),ol=An((function(e){return Zn(s(e,Ao))})),il=An((function(e){var t=bo(e);return Ao(t)&&(t=U),Zn(s(e,Ao),Hr(t,2))})),al=An((function(e){var t=bo(e);return t="function"==typeof t?t:U,Zn(s(e,Ao),U,t)})),ll=An(xo),cl=An((function(e){var t=e.length,n=t>1?e[t-1]:U;return n="function"==typeof n?(e.pop(),n):U,So(e,n)})),sl=Dr((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return jt(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Qe&&Xr(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ko,args:[o],thisArg:U}),new E(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(U),e}))):this.thru(o)})),ul=dr((function(e,t,n){Ni.call(e,n)?++e[n]:_t(e,n,1)})),fl=wr(ho),dl=wr(vo),pl=dr((function(e,t,n){Ni.call(e,n)?e[n].push(t):_t(e,n,[t])})),hl=An((function(e,t,n){var r=-1,i="function"==typeof t,a=Ro(e)?mi(e.length):[];return ja(e,(function(e){a[++r]=i?o(t,e,n):en(e,t,n)})),a})),vl=dr((function(e,t,n){_t(e,n,t)})),ml=dr((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),gl=An((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Qr(e,t[0],t[1])?t=[]:n>2&&Qr(t[0],t[1],t[2])&&(t=[t[0]]),$n(e,qt(t,1),[])})),bl=Xi||function(){return an.Date.now()},yl=An((function(e,t,n){var r=1;if(n.length){var o=z(n,Fr(yl));r|=Q}return Mr(e,r,t,n,o)})),wl=An((function(e,t,n){var r=3;if(n.length){var o=z(n,Fr(wl));r|=Q}return Mr(t,r,e,n,o)})),xl=An((function(e,t){return It(e,1,t)})),Sl=An((function(e,t,n){return It(e,Xo(t)||0,n)}));Po.Cache=vt;var Cl=Ra((function(e,t){var n=(t=1==t.length&&Nl(t[0])?d(t[0],N(Hr())):d(qt(t,1),N(Hr()))).length;return An((function(r){for(var i=-1,a=aa(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return o(e,this,r)}))})),kl=An((function(e,t){return Mr(e,Q,U,t,z(t,Fr(kl)))})),El=An((function(e,t){return Mr(e,Z,U,t,z(t,Fr(El)))})),Ol=Dr((function(e,t){return Mr(e,ee,U,U,U,t)})),_l=$r(Ut),jl=$r((function(e,t){return e>=t})),$l=rn(function(){return arguments}())?rn:function(e){return Bo(e)&&Ni.call(e,"callee")&&!Hi.call(e,"callee")},Nl=mi.isArray,Pl=dn?N(dn):function(e){return Bo(e)&&Ht(e)==ke},Il=ta||vi,Ml=pn?N(pn):function(e){return Bo(e)&&Ht(e)==fe},Rl=hn?N(hn):function(e){return Bo(e)&&za(e)==ve},Al=vn?N(vn):function(e){return Bo(e)&&Ht(e)==ye},Tl=mn?N(mn):function(e){return Bo(e)&&za(e)==we},ql=gn?N(gn):function(e){return Bo(e)&&Lo(e.length)&&!!Zt[Ht(e)]},Dl=$r(Cn),Ll=$r((function(e,t){return e<=t})),zl=pr((function(e,t){if(eo(t)||Ro(t))return fr(t,ti(t),e),U;for(var n in t)Ni.call(t,n)&&Ct(e,n,t[n])})),Bl=pr((function(e,t){fr(t,ni(t),e)})),Fl=pr((function(e,t,n,r){fr(t,ni(t),e,r)})),Hl=pr((function(e,t,n,r){fr(t,ti(t),e,r)})),Wl=Dr(jt),Vl=An((function(e,t){e=xi(e);var n=-1,r=t.length,o=r>2?t[2]:U;for(o&&Qr(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=ni(i),l=-1,c=a.length;++l<c;){var s=a[l],u=e[s];(u===U||Mo(u,_i[s])&&!Ni.call(e,s))&&(e[s]=i[s])}return e})),Ul=An((function(e){return e.push(U,Ar),o(Ql,U,e)})),Gl=Cr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Mi.call(t)),e[t]=n}),ci(si)),Yl=Cr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Mi.call(t)),Ni.call(e,t)?e[t].push(n):e[t]=[n]}),Hr),Kl=An(en),Xl=pr((function(e,t,n){_n(e,t,n)})),Ql=pr((function(e,t,n,r){_n(e,t,n,r)})),Zl=Dr((function(e,t){var n={};if(null==e)return n;var r=!1;t=d(t,(function(t){return t=nr(t,e),r||(r=t.length>1),t})),fr(e,zr(e),n),r&&(n=Nt(n,7,Tr));for(var o=t.length;o--;)Yn(n,t[o]);return n})),Jl=Dr((function(e,t){return null==e?{}:function(e,t){return Nn(e,t,(function(t,n){return ei(e,n)}))}(e,t)})),ec=Ir(ti),tc=Ir(ni),nc=gr((function(e,t,n){return t=t.toLowerCase(),e+(n?ii(t):t)})),rc=gr((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),oc=gr((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),ic=mr("toLowerCase"),ac=gr((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),lc=gr((function(e,t,n){return e+(n?" ":"")+sc(t)})),cc=gr((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),sc=mr("toUpperCase"),uc=An((function(e,t){try{return o(e,U,t)}catch(e){return To(e)?e:new bi(e)}})),fc=Dr((function(e,t){return a(t,(function(t){t=so(t),_t(e,t,yl(e[t],e))})),e})),dc=xr(),pc=xr(!0),hc=An((function(e,t){return function(n){return en(n,e,t)}})),vc=An((function(e,t){return function(n){return en(e,n,t)}})),mc=Er(d),gc=Er(c),bc=Er(m),yc=jr(),wc=jr(!0),xc=kr((function(e,t){return e+t}),0),Sc=Pr("ceil"),Cc=kr((function(e,t){return e/t}),1),kc=Pr("floor"),Ec=kr((function(e,t){return e*t}),1),Oc=Pr("round"),_c=kr((function(e,t){return e-t}),0);return n.after=function(e,t){if("function"!=typeof t)throw new ki(G);return e=Yo(e),function(){if(--e<1)return t.apply(this,arguments)}},n.ary=jo,n.assign=zl,n.assignIn=Bl,n.assignInWith=Fl,n.assignWith=Hl,n.at=Wl,n.before=$o,n.bind=yl,n.bindAll=fc,n.bindKey=wl,n.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Nl(e)?e:[e]},n.chain=Co,n.chunk=function(e,t,n){t=(n?Qr(e,t,n):t===U)?1:ia(Yo(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=mi(Zi(r/t));o<r;)a[i++]=zn(e,o,o+=t);return a},n.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},n.concat=function(){var e=arguments.length;if(!e)return[];for(var t=mi(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return p(Nl(n)?ur(n):[n],qt(t,1))},n.cond=function(e){var t=null==e?0:e.length,n=Hr();return e=t?d(e,(function(e){if("function"!=typeof e[1])throw new ki(G);return[n(e[0]),e[1]]})):[],An((function(n){for(var r=-1;++r<t;){var i=e[r];if(o(i[0],this,n))return o(i[1],this,n)}}))},n.conforms=function(e){return function(e){var t=ti(e);return function(n){return Pt(n,e,t)}}(Nt(e,1))},n.constant=ci,n.countBy=ul,n.create=function(e,t){var n=_a(e);return null==t?n:Ot(n,t)},n.curry=function e(t,n,r){var o=Mr(t,8,U,U,U,U,U,n=r?U:n);return o.placeholder=e.placeholder,o},n.curryRight=function e(t,n,r){var o=Mr(t,X,U,U,U,U,U,n=r?U:n);return o.placeholder=e.placeholder,o},n.debounce=No,n.defaults=Vl,n.defaultsDeep=Ul,n.defer=xl,n.delay=Sl,n.difference=Ua,n.differenceBy=Ga,n.differenceWith=Ya,n.drop=function(e,t,n){var r=null==e?0:e.length;return r?zn(e,(t=n||t===U?1:Yo(t))<0?0:t,r):[]},n.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?zn(e,0,(t=r-(t=n||t===U?1:Yo(t)))<0?0:t):[]},n.dropRightWhile=function(e,t){return e&&e.length?Xn(e,Hr(t,3),!0,!0):[]},n.dropWhile=function(e,t){return e&&e.length?Xn(e,Hr(t,3),!0):[]},n.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&Qr(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=Yo(n))<0&&(n=-n>o?0:o+n),(r=r===U||r>o?o:Yo(r))<0&&(r+=o),r=n>r?0:Ko(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},n.filter=function(e,t){return(Nl(e)?s:Tt)(e,Hr(t,3))},n.flatMap=function(e,t){return qt(_o(e,t),1)},n.flatMapDeep=function(e,t){return qt(_o(e,t),te)},n.flatMapDepth=function(e,t,n){return n=n===U?1:Yo(n),qt(_o(e,t),n)},n.flatten=mo,n.flattenDeep=function(e){return null!=e&&e.length?qt(e,te):[]},n.flattenDepth=function(e,t){return null!=e&&e.length?qt(e,t=t===U?1:Yo(t)):[]},n.flip=function(e){return Mr(e,512)},n.flow=dc,n.flowRight=pc,n.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},n.functions=function(e){return null==e?[]:zt(e,ti(e))},n.functionsIn=function(e){return null==e?[]:zt(e,ni(e))},n.groupBy=pl,n.initial=function(e){return null!=e&&e.length?zn(e,0,-1):[]},n.intersection=Ka,n.intersectionBy=Xa,n.intersectionWith=Qa,n.invert=Gl,n.invertBy=Yl,n.invokeMap=hl,n.iteratee=ui,n.keyBy=vl,n.keys=ti,n.keysIn=ni,n.map=_o,n.mapKeys=function(e,t){var n={};return t=Hr(t,3),Dt(e,(function(e,r,o){_t(n,t(e,r,o),e)})),n},n.mapValues=function(e,t){var n={};return t=Hr(t,3),Dt(e,(function(e,r,o){_t(n,r,t(e,r,o))})),n},n.matches=function(e){return En(Nt(e,1))},n.matchesProperty=function(e,t){return On(e,Nt(t,1))},n.memoize=Po,n.merge=Xl,n.mergeWith=Ql,n.method=hc,n.methodOf=vc,n.mixin=fi,n.negate=Io,n.nthArg=function(e){return e=Yo(e),An((function(t){return jn(t,e)}))},n.omit=Zl,n.omitBy=function(e,t){return ri(e,Io(Hr(t)))},n.once=function(e){return $o(2,e)},n.orderBy=function(e,t,n,r){return null==e?[]:(Nl(t)||(t=null==t?[]:[t]),Nl(n=r?U:n)||(n=null==n?[]:[n]),$n(e,t,n))},n.over=mc,n.overArgs=Cl,n.overEvery=gc,n.overSome=bc,n.partial=kl,n.partialRight=El,n.partition=ml,n.pick=Jl,n.pickBy=ri,n.property=pi,n.propertyOf=function(e){return function(t){return null==e?U:Bt(e,t)}},n.pull=Za,n.pullAll=yo,n.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Pn(e,t,Hr(n,2)):e},n.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Pn(e,t,U,n):e},n.pullAt=Ja,n.range=yc,n.rangeRight=wc,n.rearg=Ol,n.reject=function(e,t){return(Nl(e)?s:Tt)(e,Io(Hr(t,3)))},n.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=Hr(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return In(e,o),n},n.rest=function(e,t){if("function"!=typeof e)throw new ki(G);return An(e,t=t===U?t:Yo(t))},n.reverse=wo,n.sampleSize=function(e,t,n){return t=(n?Qr(e,t,n):t===U)?1:Yo(t),(Nl(e)?wt:qn)(e,t)},n.set=function(e,t,n){return null==e?e:Dn(e,t,n)},n.setWith=function(e,t,n,r){return r="function"==typeof r?r:U,null==e?e:Dn(e,t,n,r)},n.shuffle=function(e){return(Nl(e)?xt:Ln)(e)},n.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Qr(e,t,n)?(t=0,n=r):(t=null==t?0:Yo(t),n=n===U?r:Yo(n)),zn(e,t,n)):[]},n.sortBy=gl,n.sortedUniq=function(e){return e&&e.length?Wn(e):[]},n.sortedUniqBy=function(e,t){return e&&e.length?Wn(e,Hr(t,2)):[]},n.split=function(e,t,n){return n&&"number"!=typeof n&&Qr(e,t,n)&&(t=n=U),(n=n===U?oe:n>>>0)?(e=Zo(e))&&("string"==typeof t||null!=t&&!Al(t))&&(!(t=Un(t))&&T(e))?rr(H(e),0,n):e.split(t,n):[]},n.spread=function(e,t){if("function"!=typeof e)throw new ki(G);return t=null==t?0:ia(Yo(t),0),An((function(n){var r=n[t],i=rr(n,0,t);return r&&p(i,r),o(e,this,i)}))},n.tail=function(e){var t=null==e?0:e.length;return t?zn(e,1,t):[]},n.take=function(e,t,n){return e&&e.length?zn(e,0,(t=n||t===U?1:Yo(t))<0?0:t):[]},n.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?zn(e,(t=r-(t=n||t===U?1:Yo(t)))<0?0:t,r):[]},n.takeRightWhile=function(e,t){return e&&e.length?Xn(e,Hr(t,3),!1,!0):[]},n.takeWhile=function(e,t){return e&&e.length?Xn(e,Hr(t,3)):[]},n.tap=function(e,t){return t(e),e},n.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ki(G);return zo(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),No(e,t,{leading:r,maxWait:t,trailing:o})},n.thru=ko,n.toArray=Uo,n.toPairs=ec,n.toPairsIn=tc,n.toPath=function(e){return Nl(e)?d(e,so):Vo(e)?[e]:ur(Va(Zo(e)))},n.toPlainObject=Qo,n.transform=function(e,t,n){var r=Nl(e),o=r||Il(e)||ql(e);if(t=Hr(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:zo(e)&&qo(i)?_a(Bi(e)):{}}return(o?a:Dt)(e,(function(e,r,o){return t(n,e,r,o)})),n},n.unary=function(e){return jo(e,1)},n.union=el,n.unionBy=tl,n.unionWith=nl,n.uniq=function(e){return e&&e.length?Gn(e):[]},n.uniqBy=function(e,t){return e&&e.length?Gn(e,Hr(t,2)):[]},n.uniqWith=function(e,t){return t="function"==typeof t?t:U,e&&e.length?Gn(e,U,t):[]},n.unset=function(e,t){return null==e||Yn(e,t)},n.unzip=xo,n.unzipWith=So,n.update=function(e,t,n){return null==e?e:Kn(e,t,tr(n))},n.updateWith=function(e,t,n,r){return r="function"==typeof r?r:U,null==e?e:Kn(e,t,tr(n),r)},n.values=oi,n.valuesIn=function(e){return null==e?[]:P(e,ni(e))},n.without=rl,n.words=li,n.wrap=function(e,t){return kl(tr(t),e)},n.xor=ol,n.xorBy=il,n.xorWith=al,n.zip=ll,n.zipObject=function(e,t){return Jn(e||[],t||[],Ct)},n.zipObjectDeep=function(e,t){return Jn(e||[],t||[],Dn)},n.zipWith=cl,n.entries=ec,n.entriesIn=tc,n.extend=Bl,n.extendWith=Fl,fi(n,n),n.add=xc,n.attempt=uc,n.camelCase=nc,n.capitalize=ii,n.ceil=Sc,n.clamp=function(e,t,n){return n===U&&(n=t,t=U),n!==U&&(n=(n=Xo(n))==n?n:0),t!==U&&(t=(t=Xo(t))==t?t:0),$t(Xo(e),t,n)},n.clone=function(e){return Nt(e,4)},n.cloneDeep=function(e){return Nt(e,5)},n.cloneDeepWith=function(e,t){return Nt(e,5,t="function"==typeof t?t:U)},n.cloneWith=function(e,t){return Nt(e,4,t="function"==typeof t?t:U)},n.conformsTo=function(e,t){return null==t||Pt(e,t,ti(t))},n.deburr=ai,n.defaultTo=function(e,t){return null==e||e!=e?t:e},n.divide=Cc,n.endsWith=function(e,t,n){e=Zo(e),t=Un(t);var r=e.length,o=n=n===U?r:$t(Yo(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},n.eq=Mo,n.escape=function(e){return(e=Zo(e))&&Be.test(e)?e.replace(Le,wn):e},n.escapeRegExp=function(e){return(e=Zo(e))&&Ke.test(e)?e.replace(Ye,"\\$&"):e},n.every=function(e,t,n){var r=Nl(e)?c:Rt;return n&&Qr(e,t,n)&&(t=U),r(e,Hr(t,3))},n.find=fl,n.findIndex=ho,n.findKey=function(e,t){return b(e,Hr(t,3),Dt)},n.findLast=dl,n.findLastIndex=vo,n.findLastKey=function(e,t){return b(e,Hr(t,3),Lt)},n.floor=kc,n.forEach=Eo,n.forEachRight=Oo,n.forIn=function(e,t){return null==e?e:Na(e,Hr(t,3),ni)},n.forInRight=function(e,t){return null==e?e:Pa(e,Hr(t,3),ni)},n.forOwn=function(e,t){return e&&Dt(e,Hr(t,3))},n.forOwnRight=function(e,t){return e&&Lt(e,Hr(t,3))},n.get=Jo,n.gt=_l,n.gte=jl,n.has=function(e,t){return null!=e&&Gr(e,t,Gt)},n.hasIn=ei,n.head=go,n.identity=si,n.includes=function(e,t,n,r){e=Ro(e)?e:oi(e),n=n&&!r?Yo(n):0;var o=e.length;return n<0&&(n=ia(o+n,0)),Wo(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&w(e,t,n)>-1},n.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Yo(n);return o<0&&(o=ia(r+o,0)),w(e,t,o)},n.inRange=function(e,t,n){return t=Go(t),n===U?(n=t,t=0):n=Go(n),function(e,t,n){return e>=aa(t,n)&&e<ia(t,n)}(e=Xo(e),t,n)},n.invoke=Kl,n.isArguments=$l,n.isArray=Nl,n.isArrayBuffer=Pl,n.isArrayLike=Ro,n.isArrayLikeObject=Ao,n.isBoolean=function(e){return!0===e||!1===e||Bo(e)&&Ht(e)==ue},n.isBuffer=Il,n.isDate=Ml,n.isElement=function(e){return Bo(e)&&1===e.nodeType&&!Ho(e)},n.isEmpty=function(e){if(null==e)return!0;if(Ro(e)&&(Nl(e)||"string"==typeof e||"function"==typeof e.splice||Il(e)||ql(e)||$l(e)))return!e.length;var t=za(e);if(t==ve||t==we)return!e.size;if(eo(e))return!fn(e).length;for(var n in e)if(Ni.call(e,n))return!1;return!0},n.isEqual=function(e,t){return on(e,t)},n.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:U)?n(e,t):U;return r===U?on(e,t,U,n):!!r},n.isError=To,n.isFinite=function(e){return"number"==typeof e&&na(e)},n.isFunction=qo,n.isInteger=Do,n.isLength=Lo,n.isMap=Rl,n.isMatch=function(e,t){return e===t||ln(e,t,Vr(t))},n.isMatchWith=function(e,t,n){return n="function"==typeof n?n:U,ln(e,t,Vr(t),n)},n.isNaN=function(e){return Fo(e)&&e!=+e},n.isNative=function(e){if(Ba(e))throw new bi("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return cn(e)},n.isNil=function(e){return null==e},n.isNull=function(e){return null===e},n.isNumber=Fo,n.isObject=zo,n.isObjectLike=Bo,n.isPlainObject=Ho,n.isRegExp=Al,n.isSafeInteger=function(e){return Do(e)&&e>=-ne&&e<=ne},n.isSet=Tl,n.isString=Wo,n.isSymbol=Vo,n.isTypedArray=ql,n.isUndefined=function(e){return e===U},n.isWeakMap=function(e){return Bo(e)&&za(e)==Ce},n.isWeakSet=function(e){return Bo(e)&&"[object WeakSet]"==Ht(e)},n.join=function(e,t){return null==e?"":ra.call(e,t)},n.kebabCase=rc,n.last=bo,n.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==U&&(o=(o=Yo(n))<0?ia(r+o,0):aa(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):y(e,S,o,!0)},n.lowerCase=oc,n.lowerFirst=ic,n.lt=Dl,n.lte=Ll,n.max=function(e){return e&&e.length?At(e,si,Ut):U},n.maxBy=function(e,t){return e&&e.length?At(e,Hr(t,2),Ut):U},n.mean=function(e){return C(e,si)},n.meanBy=function(e,t){return C(e,Hr(t,2))},n.min=function(e){return e&&e.length?At(e,si,Cn):U},n.minBy=function(e,t){return e&&e.length?At(e,Hr(t,2),Cn):U},n.stubArray=hi,n.stubFalse=vi,n.stubObject=function(){return{}},n.stubString=function(){return""},n.stubTrue=function(){return!0},n.multiply=Ec,n.nth=function(e,t){return e&&e.length?jn(e,Yo(t)):U},n.noConflict=function(){return an._===this&&(an._=Ai),this},n.noop=di,n.now=bl,n.pad=function(e,t,n){e=Zo(e);var r=(t=Yo(t))?F(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Or(Ji(o),n)+e+Or(Zi(o),n)},n.padEnd=function(e,t,n){e=Zo(e);var r=(t=Yo(t))?F(e):0;return t&&r<t?e+Or(t-r,n):e},n.padStart=function(e,t,n){e=Zo(e);var r=(t=Yo(t))?F(e):0;return t&&r<t?Or(t-r,n)+e:e},n.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),ca(Zo(e).replace(Xe,""),t||0)},n.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Qr(e,t,n)&&(t=n=U),n===U&&("boolean"==typeof t?(n=t,t=U):"boolean"==typeof e&&(n=e,e=U)),e===U&&t===U?(e=0,t=1):(e=Go(e),t===U?(t=e,e=0):t=Go(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=sa();return aa(e+o*(t-e+tn("1e-"+((o+"").length-1))),t)}return Mn(e,t)},n.reduce=function(e,t,n){var r=Nl(e)?h:O,o=arguments.length<3;return r(e,Hr(t,4),n,o,ja)},n.reduceRight=function(e,t,n){var r=Nl(e)?v:O,o=arguments.length<3;return r(e,Hr(t,4),n,o,$a)},n.repeat=function(e,t,n){return t=(n?Qr(e,t,n):t===U)?1:Yo(t),Rn(Zo(e),t)},n.replace=function(){var e=arguments,t=Zo(e[0]);return e.length<3?t:t.replace(e[1],e[2])},n.result=function(e,t,n){var r=-1,o=(t=nr(t,e)).length;for(o||(o=1,e=U);++r<o;){var i=null==e?U:e[so(t[r])];i===U&&(r=o,i=n),e=qo(i)?i.call(e):i}return e},n.round=Oc,n.runInContext=e,n.sample=function(e){return(Nl(e)?yt:Tn)(e)},n.size=function(e){if(null==e)return 0;if(Ro(e))return Wo(e)?F(e):e.length;var t=za(e);return t==ve||t==we?e.size:fn(e).length},n.snakeCase=ac,n.some=function(e,t,n){var r=Nl(e)?m:Bn;return n&&Qr(e,t,n)&&(t=U),r(e,Hr(t,3))},n.sortedIndex=function(e,t){return Fn(e,t)},n.sortedIndexBy=function(e,t,n){return Hn(e,t,Hr(n,2))},n.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Fn(e,t);if(r<n&&Mo(e[r],t))return r}return-1},n.sortedLastIndex=function(e,t){return Fn(e,t,!0)},n.sortedLastIndexBy=function(e,t,n){return Hn(e,t,Hr(n,2),!0)},n.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=Fn(e,t,!0)-1;if(Mo(e[n],t))return n}return-1},n.startCase=lc,n.startsWith=function(e,t,n){return e=Zo(e),n=null==n?0:$t(Yo(n),0,e.length),t=Un(t),e.slice(n,n+t.length)==t},n.subtract=_c,n.sum=function(e){return e&&e.length?_(e,si):0},n.sumBy=function(e,t){return e&&e.length?_(e,Hr(t,2)):0},n.template=function(e,t,r){var o=n.templateSettings;r&&Qr(e,t,r)&&(t=U),e=Zo(e),t=Fl({},t,o,Rr);var i,a,l=Fl({},t.imports,o.imports,Rr),c=ti(l),s=P(l,c),u=0,f=t.interpolate||dt,d="__p += '",p=Si((t.escape||dt).source+"|"+f.source+"|"+(f===We?ot:dt).source+"|"+(t.evaluate||dt).source+"|$","g"),h="//# sourceURL="+(Ni.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Qt+"]")+"\n";e.replace(p,(function(t,n,r,o,l,c){return r||(r=o),d+=e.slice(u,c).replace(pt,A),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),l&&(a=!0,d+="';\n"+l+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=c+t.length,t})),d+="';\n";var v=Ni.call(t,"variable")&&t.variable;if(v){if(nt.test(v))throw new bi("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(Ae,""):d).replace(Te,"$1").replace(qe,"$1;"),d="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=uc((function(){return yi(c,h+"return "+d).apply(U,s)}));if(m.source=d,To(m))throw m;return m},n.times=function(e,t){if((e=Yo(e))<1||e>ne)return[];var n=oe,r=aa(e,oe);t=Hr(t),e-=oe;for(var o=j(r,t);++n<e;)t(n);return o},n.toFinite=Go,n.toInteger=Yo,n.toLength=Ko,n.toLower=function(e){return Zo(e).toLowerCase()},n.toNumber=Xo,n.toSafeInteger=function(e){return e?$t(Yo(e),-ne,ne):0===e?e:0},n.toString=Zo,n.toUpper=function(e){return Zo(e).toUpperCase()},n.trim=function(e,t,n){if((e=Zo(e))&&(n||t===U))return $(e);if(!e||!(t=Un(t)))return e;var r=H(e),o=H(t);return rr(r,M(r,o),R(r,o)+1).join("")},n.trimEnd=function(e,t,n){if((e=Zo(e))&&(n||t===U))return e.slice(0,W(e)+1);if(!e||!(t=Un(t)))return e;var r=H(e);return rr(r,0,R(r,H(t))+1).join("")},n.trimStart=function(e,t,n){if((e=Zo(e))&&(n||t===U))return e.replace(Xe,"");if(!e||!(t=Un(t)))return e;var r=H(e);return rr(r,M(r,H(t))).join("")},n.truncate=function(e,t){var n=30,r="...";if(zo(t)){var o="separator"in t?t.separator:o;n="length"in t?Yo(t.length):n,r="omission"in t?Un(t.omission):r}var i=(e=Zo(e)).length;if(T(e)){var a=H(e);i=a.length}if(n>=i)return e;var l=n-F(r);if(l<1)return r;var c=a?rr(a,0,l).join(""):e.slice(0,l);if(o===U)return c+r;if(a&&(l+=c.length-l),Al(o)){if(e.slice(l).search(o)){var s,u=c;for(o.global||(o=Si(o.source,Zo(it.exec(o))+"g")),o.lastIndex=0;s=o.exec(u);)var f=s.index;c=c.slice(0,f===U?l:f)}}else if(e.indexOf(Un(o),l)!=l){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+r},n.unescape=function(e){return(e=Zo(e))&&ze.test(e)?e.replace(De,xn):e},n.uniqueId=function(e){var t=++Pi;return Zo(e)+t},n.upperCase=cc,n.upperFirst=sc,n.each=Eo,n.eachRight=Oo,n.first=go,fi(n,function(){var e={};return Dt(n,(function(t,r){Ni.call(n.prototype,r)||(e[r]=t)})),e}(),{chain:!1}),n.VERSION="4.17.21",a(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){n[e].placeholder=n})),a(["drop","take"],(function(e,t){Qe.prototype[e]=function(n){n=n===U?1:ia(Yo(n),0);var r=this.__filtered__&&!t?new Qe(this):this.clone();return r.__filtered__?r.__takeCount__=aa(n,r.__takeCount__):r.__views__.push({size:aa(n,oe),type:e+(r.__dir__<0?"Right":"")}),r},Qe.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),a(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Qe.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Hr(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),a(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Qe.prototype[e]=function(){return this[n](1).value()[0]}})),a(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Qe.prototype[e]=function(){return this.__filtered__?new Qe(this):this[n](1)}})),Qe.prototype.compact=function(){return this.filter(si)},Qe.prototype.find=function(e){return this.filter(e).head()},Qe.prototype.findLast=function(e){return this.reverse().find(e)},Qe.prototype.invokeMap=An((function(e,t){return"function"==typeof e?new Qe(this):this.map((function(n){return en(n,e,t)}))})),Qe.prototype.reject=function(e){return this.filter(Io(Hr(e)))},Qe.prototype.slice=function(e,t){e=Yo(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Qe(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==U&&(n=(t=Yo(t))<0?n.dropRight(-t):n.take(t-e)),n)},Qe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Qe.prototype.toArray=function(){return this.take(oe)},Dt(Qe.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=n[o?"take"+("last"==t?"Right":""):t],a=o||/^find/.test(t);i&&(n.prototype[t]=function(){var t=this.__wrapped__,l=o?[1]:arguments,c=t instanceof Qe,s=l[0],u=c||Nl(t),f=function(e){var t=i.apply(n,p([e],l));return o&&d?t[0]:t};u&&r&&"function"==typeof s&&1!=s.length&&(c=u=!1);var d=this.__chain__,h=!!this.__actions__.length,v=a&&!d,m=c&&!h;if(!a&&u){t=m?t:new Qe(this);var g=e.apply(t,l);return g.__actions__.push({func:ko,args:[f],thisArg:U}),new E(g,d)}return v&&m?e.apply(this,l):(g=this.thru(f),v?o?g.value()[0]:g.value():g)})})),a(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ei[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);n.prototype[e]=function(){var e=arguments;if(o&&!this.__chain__){var n=this.value();return t.apply(Nl(n)?n:[],e)}return this[r]((function(n){return t.apply(Nl(n)?n:[],e)}))}})),Dt(Qe.prototype,(function(e,t){var r=n[t];if(r){var o=r.name+"";Ni.call(ba,o)||(ba[o]=[]),ba[o].push({name:t,func:r})}})),ba[Sr(U,2).name]=[{name:"wrapper",func:U}],Qe.prototype.clone=function(){var e=new Qe(this.__wrapped__);return e.__actions__=ur(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ur(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ur(this.__views__),e},Qe.prototype.reverse=function(){if(this.__filtered__){var e=new Qe(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Qe.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Nl(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=aa(t,e+a);break;case"takeRight":e=ia(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,l=i.end,c=l-a,s=r?l:a-1,u=this.__iteratees__,f=u.length,d=0,p=aa(c,this.__takeCount__);if(!n||!r&&o==c&&p==c)return Qn(e,this.__actions__);var h=[];e:for(;c--&&d<p;){for(var v=-1,m=e[s+=t];++v<f;){var g=u[v],b=g.iteratee,y=g.type,w=b(m);if(2==y)m=w;else if(!w){if(1==y)continue e;break e}}h[d++]=m}return h},n.prototype.at=sl,n.prototype.chain=function(){return Co(this)},n.prototype.commit=function(){return new E(this.value(),this.__chain__)},n.prototype.next=function(){this.__values__===U&&(this.__values__=Uo(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?U:this.__values__[this.__index__++]}},n.prototype.plant=function(e){for(var t,n=this;n instanceof r;){var o=po(n);o.__index__=0,o.__values__=U,t?i.__wrapped__=o:t=o;var i=o;n=n.__wrapped__}return i.__wrapped__=e,t},n.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Qe){var t=e;return this.__actions__.length&&(t=new Qe(this)),(t=t.reverse()).__actions__.push({func:ko,args:[wo],thisArg:U}),new E(t,this.__chain__)}return this.thru(wo)},n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=function(){return Qn(this.__wrapped__,this.__actions__)},n.prototype.first=n.prototype.head,Ui&&(n.prototype[Ui]=function(){return this}),n}();an._=Sn,void 0===(r=function(){return Sn}.call(t,n,t,e))||(e.exports=r)}.call(this)},3345:function(e){e.exports=function(){return[]}},9935:function(e){e.exports=function(){return!1}},5606:function(e){var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var l,c=[],s=!1,u=-1;function f(){s&&l&&(s=!1,l.length?c=l.concat(c):u=-1,c.length&&d())}function d(){if(!s){var e=a(f);s=!0;for(var t=c.length;t;){for(l=c,c=[];++u<t;)l&&l[u].run();u=-1,t=c.length}l=null,s=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||s||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},2694:function(e,t,n){"use strict";var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5556:function(e,t,n){e.exports=n(2694)()},6925:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1574:function(e,t,n){var r,o=n(8287).hp;
26 /*!
27 * Quill Editor v1.3.7
28 * https://quilljs.com/
29 * Copyright (c) 2014, Jason Chen
30 * Copyright (c) 2013, salesforce.com
31 */"undefined"!=typeof self&&self,r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),o=n(18),i=n(19),a=n(45),l=n(46),c=n(47),s=n(48),u=n(49),f=n(12),d=n(32),p=n(33),h=n(31),v=n(1),m={Scope:v.Scope,create:v.create,find:v.find,query:v.query,register:v.register,Container:r.default,Format:o.default,Leaf:i.default,Embed:s.default,Scroll:a.default,Block:c.default,Inline:l.default,Text:u.default,Attributor:{Attribute:f.default,Class:d.default,Style:p.default,Store:h.default}};t.default=m},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return o(t,e),t}(Error);t.ParchmentError=i;var a,l={},c={},s={},u={};function f(e,t){var n;if(void 0===t&&(t=a.ANY),"string"==typeof e)n=u[e]||l[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=u.text;else if("number"==typeof e)e&a.LEVEL&a.BLOCK?n=u.block:e&a.LEVEL&a.INLINE&&(n=u.inline);else if(e instanceof HTMLElement){var r=(e.getAttribute("class")||"").split(/\s+/);for(var o in r)if(n=c[r[o]])break;n=n||s[e.tagName]}return null==n?null:t&a.LEVEL&n.scope&&t&a.TYPE&n.scope?n:null}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(a=t.Scope||(t.Scope={})),t.create=function(e,t){var n=f(e);if(null==n)throw new i("Unable to create "+e+" blot");var r=n,o=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:r.create(t);return new r(o,t)},t.find=function e(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[t.DATA_KEY]?n[t.DATA_KEY].blot:r?e(n.parentNode,r):null},t.query=f,t.register=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t.length>1)return t.map((function(t){return e(t)}));var r=t[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new i("Invalid definition");if("abstract"===r.blotName)throw new i("Cannot register abstract class");return u[r.blotName||r.attrName]=r,"string"==typeof r.keyName?l[r.keyName]=r:(null!=r.className&&(c[r.className]=r),null!=r.tagName&&(Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(e){return e.toUpperCase()})):r.tagName=r.tagName.toUpperCase(),(Array.isArray(r.tagName)?r.tagName:[r.tagName]).forEach((function(e){null!=s[e]&&null!=r.className||(s[e]=r)})))),r}},function(e,t,n){var r=n(51),o=n(11),i=n(3),a=n(20),l=String.fromCharCode(0),c=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};c.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},c.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},c.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},c.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=i(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(o(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},c.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},c.prototype.filter=function(e){return this.ops.filter(e)},c.prototype.forEach=function(e){this.ops.forEach(e)},c.prototype.map=function(e){return this.ops.map(e)},c.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){(e(r)?t:n).push(r)})),[t,n]},c.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},c.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e}),0)},c.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},c.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],r=a.iterator(this.ops),o=0;o<t&&r.hasNext();){var i;o<e?i=r.next(e-o):(i=r.next(t-o),n.push(i)),o+=a.length(i)}return new c(n)},c.prototype.compose=function(e){var t=a.iterator(this.ops),n=a.iterator(e.ops),r=[],i=n.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){for(var l=i.retain;"insert"===t.peekType()&&t.peekLength()<=l;)l-=t.peekLength(),r.push(t.next());i.retain-l>0&&n.next(i.retain-l)}for(var s=new c(r);t.hasNext()||n.hasNext();)if("insert"===n.peekType())s.push(n.next());else if("delete"===t.peekType())s.push(t.next());else{var u=Math.min(t.peekLength(),n.peekLength()),f=t.next(u),d=n.next(u);if("number"==typeof d.retain){var p={};"number"==typeof f.retain?p.retain=u:p.insert=f.insert;var h=a.attributes.compose(f.attributes,d.attributes,"number"==typeof f.retain);if(h&&(p.attributes=h),s.push(p),!n.hasNext()&&o(s.ops[s.ops.length-1],p)){var v=new c(t.rest());return s.concat(v).chop()}}else"number"==typeof d.delete&&"number"==typeof f.retain&&s.push(d)}return s.chop()},c.prototype.concat=function(e){var t=new c(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},c.prototype.diff=function(e,t){if(this.ops===e.ops)return new c;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:l;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),i=new c,s=r(n[0],n[1],t),u=a.iterator(this.ops),f=a.iterator(e.ops);return s.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case r.INSERT:n=Math.min(f.peekLength(),t),i.push(f.next(n));break;case r.DELETE:n=Math.min(t,u.peekLength()),u.next(n),i.delete(n);break;case r.EQUAL:n=Math.min(u.peekLength(),f.peekLength(),t);var l=u.next(n),c=f.next(n);o(l.insert,c.insert)?i.retain(n,a.attributes.diff(l.attributes,c.attributes)):i.push(c).delete(n)}t-=n}})),i.chop()},c.prototype.eachLine=function(e,t){t=t||"\n";for(var n=a.iterator(this.ops),r=new c,o=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),l=a.length(i)-n.peekLength(),s="string"==typeof i.insert?i.insert.indexOf(t,l)-l:-1;if(s<0)r.push(n.next());else if(s>0)r.push(n.next(s));else{if(!1===e(r,n.next(1).attributes||{},o))return;o+=1,r=new c}}r.length()>0&&e(r,{},o)},c.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=a.iterator(this.ops),r=a.iterator(e.ops),o=new c;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{var i=Math.min(n.peekLength(),r.peekLength()),l=n.next(i),s=r.next(i);if(l.delete)continue;s.delete?o.push(s):o.retain(i,a.attributes.transform(l.attributes,s.attributes,t))}else o.retain(a.length(n.next()));return o.chop()},c.prototype.transformPosition=function(e,t){t=!!t;for(var n=a.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r<e||!t)&&(e+=o),r+=o):e-=Math.min(o,e-r)}return e},e.exports=c},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},l=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,o=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(t in e);return void 0===t||n.call(e,t)},c=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(i)return i(e,t).value}return e[t]};e.exports=function e(){var t,n,r,o,i,u,f=arguments[0],d=1,p=arguments.length,h=!1;for("boolean"==typeof f&&(h=f,f=arguments[1]||{},d=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});d<p;++d)if(null!=(t=arguments[d]))for(n in t)r=s(f,n),f!==(o=s(t,n))&&(h&&o&&(l(o)||(i=a(o)))?(i?(i=!1,u=r&&a(r)?r:[]):u=r&&l(r)?r:{},c(f,{name:n,newValue:e(h,u,o)})):void 0!==o&&c(f,{name:n,newValue:o}));return f}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=f(n(3)),a=f(n(2)),l=f(n(0)),c=f(n(16)),s=f(n(6)),u=f(n(7));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=function(e){function t(){return d(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),r(t,[{key:"attach",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new l.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new a.default).insert(this.value(),(0,i.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=l.default.query(e,l.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,r){this.format(n,r)}},{key:"insertAt",value:function(e,n,r){if("string"==typeof n&&n.endsWith("\n")){var i=l.default.create(m.blotName);this.parent.insertBefore(i,0===e?this:this.next),i.insertAt(0,n.slice(0,-1))}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r)}}]),t}(l.default.Embed);v.scope=l.default.Scope.BLOCK_BLOT;var m=function(e){function t(e){d(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return h(t,e),r(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(l.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),g(t))}),new a.default).insert("\n",g(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,r,i){n<=0||(l.default.query(r,l.default.Scope.BLOCK)?e+n===this.length()&&this.format(r,i):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),r,i),this.cache={})}},{key:"insertAt",value:function(e,n,r){if(null!=r)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);if(0!==n.length){var i=n.split("\n"),a=i.shift();a.length>0&&(e<this.length()-1||null==this.children.tail?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var l=this;i.reduce((function(e,t){return(l=l.split(e,!0)).insertAt(0,t),t.length}),e+a.length)}}},{key:"insertBefore",value:function(e,n){var r=this.children.head;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),r instanceof c.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var i=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},i}}]),t}(l.default.Block);function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,i.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:g(e.parent,t))}m.blotName="block",m.tagName="P",m.defaultChild="break",m.allowedChildren=[s.default,l.default.Embed,u.default],t.bubbleFormats=g,t.BlockEmbed=v,t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n(50);var a=m(n(2)),l=m(n(14)),c=m(n(8)),s=m(n(9)),u=m(n(0)),f=n(15),d=m(f),p=m(n(3)),h=m(n(10)),v=m(n(34));function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=(0,h.default)("quill"),y=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=w(t,r),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new c.default,this.scroll=u.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new d.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(c.default.events.EDITOR_CHANGE,(function(e){e===c.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(c.default.events.SCROLL_UPDATE,(function(e,t){var r=n.selection.lastRange,o=r&&0===r.length?r.index:void 0;x.call(n,(function(){return n.editor.update(null,t,o)}),e)}));var i=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+o+"<p><br></p></div>");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||u.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&b.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var o=e.attrName||e.blotName;"string"==typeof o?this.register("formats/"+o,e,t):Object.keys(e).forEach((function(r){n.register(r,e[r],t)}))}else null==this.imports[e]||r||b.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?u.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),i(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,i=S(e,t,n),a=o(i,4);return e=a[0],t=a[1],n=a[3],x.call(this,(function(){return r.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;return x.call(this,(function(){var r=n.getSelection(!0),o=new a.default;if(null==r)return o;if(u.default.query(e,u.default.Scope.BLOCK))o=n.editor.formatLine(r.index,r.length,g({},e,t));else{if(0===r.length)return n.selection.format(e,t),o;o=n.editor.formatText(r.index,r.length,g({},e,t))}return n.setSelection(r,c.default.sources.SILENT),o}),r)}},{key:"formatLine",value:function(e,t,n,r,i){var a,l=this,c=S(e,t,n,r,i),s=o(c,4);return e=s[0],t=s[1],a=s[2],i=s[3],x.call(this,(function(){return l.editor.formatLine(e,t,a)}),i,e,0)}},{key:"formatText",value:function(e,t,n,r,i){var a,l=this,c=S(e,t,n,r,i),s=o(c,4);return e=s[0],t=s[1],a=s[2],i=s[3],x.call(this,(function(){return l.editor.formatText(e,t,a)}),i,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=S(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=S(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return x.call(this,(function(){return o.editor.insertEmbed(t,n,r)}),i,t)}},{key:"insertText",value:function(e,t,n,r,i){var a,l=this,c=S(e,0,n,r,i),s=o(c,4);return e=s[0],a=s[2],i=s[3],x.call(this,(function(){return l.editor.insertText(e,t,a)}),i,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,i=S(e,t,n),a=o(i,4);return e=a[0],t=a[1],n=a[3],x.call(this,(function(){return r.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.sources.API;return x.call(this,(function(){e=new a.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),o=t.editor.applyDelta(e),i=o.ops[o.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),o.delete(1)),r.compose(o)}),n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var i=S(t,n,r),a=o(i,4);t=a[0],n=a[1],r=a[3],this.selection.setRange(new f.Range(t,n),r),r!==c.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.sources.API,n=(new a.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.sources.API;return x.call(this,(function(){return e=new a.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function w(e,t){if((t=(0,p.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==y.DEFAULTS.theme){if(t.theme=y.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=v.default;var n=(0,p.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=y.import("modules/"+t);return null==n?b.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,p.default)(!0,{},y.DEFAULTS,{modules:r},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function x(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===c.default.sources.USER)return new a.default;var o=null==n?null:this.getSelection(),i=this.editor.delta,l=e();if(null!=o&&(!0===n&&(n=o.index),null==r?o=C(o,l,t):0!==r&&(o=C(o,n,r,t)),this.setSelection(o,c.default.sources.SILENT)),l.length()>0){var s,u,f=[c.default.events.TEXT_CHANGE,l,i,t];(s=this.emitter).emit.apply(s,[c.default.events.EDITOR_CHANGE].concat(f)),t!==c.default.sources.SILENT&&(u=this.emitter).emit.apply(u,f)}return l}function S(e,t,n,o,i){var a={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(i=o,o=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(i=o,o=n,n=t,t=0),"object"===(void 0===n?"undefined":r(n))?(a=n,i=o):"string"==typeof n&&(null!=o?a[n]=o:i=n),[e,t,a,i=i||c.default.sources.API]}function C(e,t,n,r){if(null==e)return null;var i=void 0,l=void 0;if(t instanceof a.default){var s=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,r!==c.default.sources.USER)})),u=o(s,2);i=u[0],l=u[1]}else{var d=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&r===c.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),p=o(d,2);i=p[0],l=p[1]}return new f.Range(i,l-i)}y.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},y.events=c.default.events,y.sources=c.default.sources,y.version="1.3.7",y.imports={delta:a.default,parchment:u.default,"core/module":s.default,"core/theme":v.default},t.expandConfig=w,t.overload=S,t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=l(n(7)),a=l(n(0));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"formatAt",value:function(e,n,r,i){if(t.compare(this.statics.blotName,r)<0&&a.default.query(r,a.default.Scope.BLOT)){var l=this.isolate(e,n);i&&l.wrap(r,i)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,i)}},{key:"optimize",value:function(e){if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),o=t.order.indexOf(n);return r>=0||o>=0?r-o:e===n?0:e<n?-1:1}}]),t}(a.default.Inline);c.allowedChildren=[c,a.default.Embed,i.default],c.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default.Text);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=a(n(54));function a(e){return e&&e.__esModule?e:{default:e}}var l=(0,a(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var c=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",l.error),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"emit",value:function(){l.log.apply(l,arguments),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(this.listeners[e.type]||[]).forEach((function(t){var r=t.node,o=t.handler;(e.target===r||r.contains(e.target))&&o.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(i.default);c.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},c.sources={API:"api",SILENT:"silent",USER:"user"},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n};r.DEFAULTS={},t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],o="warn";function i(e){if(r.indexOf(e)<=r.indexOf(o)){for(var t,n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];(t=console)[e].apply(t,i)}}function a(e){return r.reduce((function(t,n){return t[n]=i.bind(console,n,e),t}),{})}i.level=a.level=function(e){o=e},t.default=a},function(e,t,n){var r=Array.prototype.slice,o=n(52),i=n(53),a=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var s,u;if(l(e)||l(t))return!1;if(e.prototype!==t.prototype)return!1;if(i(e))return!!i(t)&&(e=r.call(e),t=r.call(t),a(e,t,n));if(c(e)){if(!c(t))return!1;if(e.length!==t.length)return!1;for(s=0;s<e.length;s++)if(e[s]!==t[s])return!1;return!0}try{var f=o(e),d=o(t)}catch(e){return!1}if(f.length!=d.length)return!1;for(f.sort(),d.sort(),s=f.length-1;s>=0;s--)if(f[s]!=d[s])return!1;for(s=f.length-1;s>=0;s--)if(u=f[s],!a(e[u],t[u],n))return!1;return typeof e==typeof t}(e,t,n))};function l(e){return null==e}function c(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var o=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|o:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=f(n(2)),l=f(n(0)),c=f(n(4)),s=f(n(6)),u=f(n(7));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=function(e){function t(){return d(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),t}(s.default);v.blotName="code",v.tagName="CODE";var m=function(e){function t(){return d(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),o(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new a.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var o=this.descendant(u.default,this.length()-1),a=r(o,1)[0];null!=a&&a.deleteAt(a.length()-1,1),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,r,o){if(0!==n&&null!=l.default.query(r,l.default.Scope.BLOCK)&&(r!==this.statics.blotName||o!==this.statics.formats(this.domNode))){var i=this.newlineIndex(e);if(!(i<0||i>=e+n)){var a=this.newlineIndex(e,!0)+1,c=i-a+1,s=this.isolate(a,c),u=s.next;s.format(r,o),u instanceof t&&u.formatAt(0,e-a+n-c,r,o)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var o=this.descendant(u.default,e),i=r(o,2),a=i[0],l=i[1];a.insertAt(l,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var t=this.domNode.textContent.slice(e).indexOf("\n");return t>-1?e+t:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(l.default.create("text","\n")),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=l.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof l.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(c.default);m.blotName="code-block",m.tagName="PRE",m.TAB=" ",t.Code=v,t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=g(n(2)),l=g(n(20)),c=g(n(0)),s=g(n(13)),u=g(n(24)),f=n(4),d=g(f),p=g(n(16)),h=g(n(21)),v=g(n(11)),m=g(n(3));function g(e){return e&&e.__esModule?e:{default:e}}var b=/^[ -~]*$/,y=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()}return i(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,h.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,h.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var r=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(r,t.attributes)}return e.push(t)}),new a.default)}(e)).reduce((function(e,a){var s=a.retain||a.delete||a.insert.length||1,u=a.attributes||{};if(null!=a.insert){if("string"==typeof a.insert){var p=a.insert;p.endsWith("\n")&&n&&(n=!1,p=p.slice(0,-1)),e>=i&&!p.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,p);var h=t.scroll.line(e),v=o(h,2),g=v[0],b=v[1],y=(0,m.default)({},(0,f.bubbleFormats)(g));if(g instanceof d.default){var w=g.descendant(c.default.Leaf,b),x=o(w,1)[0];y=(0,m.default)(y,(0,f.bubbleFormats)(x))}u=l.default.attributes.diff(y,u)||{}}else if("object"===r(a.insert)){var S=Object.keys(a.insert)[0];if(null==S)return e;t.scroll.insertAt(e,S,a.insert[S])}i+=s}return Object.keys(u).forEach((function(n){t.scroll.formatAt(e,s,n,u[n])})),e+s}),0),e.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new a.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var i=n.scroll.lines(e,Math.max(t,1)),a=t;i.forEach((function(t){var i=t.length();if(t instanceof s.default){var l=e-t.offset(n.scroll),c=t.newlineIndex(l+a)-l+1;t.formatAt(l,c,o,r[o])}else t.format(o,r[o]);a-=i}))}})),this.scroll.optimize(),this.update((new a.default).retain(e).retain(t,(0,h.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(o){n.scroll.formatAt(e,t,o,r[o])})),this.update((new a.default).retain(e).retain(t,(0,h.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new a.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach((function(e){var t=o(e,1)[0];t instanceof d.default?n.push(t):t instanceof c.default.Leaf&&r.push(t)})):(n=this.scroll.lines(e,t),r=this.scroll.descendants(c.default.Leaf,e,t));var i=[n,r].map((function(e){if(0===e.length)return{};for(var t=(0,f.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=w((0,f.bubbleFormats)(n),t)}return t}));return m.default.apply(m.default,i)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new a.default).retain(e).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach((function(o){n.scroll.formatAt(e,t.length,o,r[o])})),this.update((new a.default).retain(e).insert(t,(0,h.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===d.default.blotName&&!(e.children.length>1)&&e.children.head instanceof p.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),i=o(r,2),l=i[0],c=i[1],u=0,f=new a.default;null!=l&&(u=l instanceof s.default?l.newlineIndex(c)-c+1:l.length()-c,f=l.delta().slice(c,c+u-1).insert("\n"));var d=this.getContents(e,t+u).diff((new a.default).insert(n).concat(f)),p=(new a.default).retain(e).concat(d);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(b)&&c.default.find(t[0].target)){var o=c.default.find(t[0].target),i=(0,f.bubbleFormats)(o),l=o.offset(this.scroll),s=t[0].oldValue.replace(u.default.CONTENTS,""),d=(new a.default).insert(s),p=(new a.default).insert(o.value());e=(new a.default).retain(l).concat(d.diff(p,n)).reduce((function(e,t){return t.insert?e.insert(t.insert,i):e.push(t)}),new a.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,v.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function w(e,t){return Object.keys(t).reduce((function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n}),{})}t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(0)),a=s(n(21)),l=s(n(11)),c=s(n(8));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var d=(0,s(n(10)).default)("quill:selection"),p=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;f(this,e),this.index=t,this.length=n},h=function(){function e(t,n){var r=this;f(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,c.default.sources.USER),1)})),this.emitter.on(c.default.events.EDITOR_CHANGE,(function(e,t){e===c.default.events.TEXT_CHANGE&&t.length()>0&&r.update(c.default.sources.SILENT)})),this.emitter.on(c.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(c.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}}))}})),this.emitter.on(c.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,o=n.startNode,i=n.startOffset,a=n.endNode,l=n.endOffset;r.setNativeRange(o,i,a,l)}})),this.update(c.default.sources.SILENT)}return o(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(c.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!i.default.query(e,i.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=i.default.find(n.start.node,!1);if(null==r)return;if(r instanceof i.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var o=void 0,i=this.scroll.leaf(e),a=r(i,2),l=a[0],c=a[1];if(null==l)return null;var s=l.position(c,!0),u=r(s,2);o=u[0],c=u[1];var f=document.createRange();if(t>0){f.setStart(o,c);var d=this.scroll.leaf(e+t),p=r(d,2);if(l=p[0],c=p[1],null==l)return null;var h=l.position(c,!0),v=r(h,2);return o=v[0],c=v[1],f.setEnd(o,c),f.getBoundingClientRect()}var m="left",g=void 0;return o instanceof Text?(c<o.data.length?(f.setStart(o,c),f.setEnd(o,c+1)):(f.setStart(o,c-1),f.setEnd(o,c),m="right"),g=f.getBoundingClientRect()):(g=l.domNode.getBoundingClientRect(),c>0&&(m="right")),{bottom:g.top+g.height,height:g.height,left:g[m],right:g[m],top:g.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return d.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var o=n.map((function(e){var n=r(e,2),o=n[0],a=n[1],l=i.default.find(o,!0),c=l.offset(t.scroll);return 0===a?c:l instanceof i.default.Container?c+l.length():c+l.index(o,a)})),a=Math.min(Math.max.apply(Math,u(o)),this.scroll.length()-1),l=Math.min.apply(Math,[a].concat(u(o)));return new p(l,a-l)}},{key:"normalizeNative",value:function(e){if(!v(this.root,e.startContainer)||!e.collapsed&&!v(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],o=[],i=this.scroll.length();return n.forEach((function(e,n){e=Math.min(i-1,e);var a,l=t.scroll.leaf(e),c=r(l,2),s=c[0],u=c[1],f=s.position(u,0!==n),d=r(f,2);a=d[0],u=d[1],o.push(a,u)})),o.length<2&&(o=o.concat(o)),o}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var o=this.scroll.length()-1,i=this.scroll.line(Math.min(t.index,o)),a=r(i,1)[0],l=a;if(t.length>0){var c=this.scroll.line(Math.min(t.index+t.length,o));l=r(c,1)[0]}if(null!=a&&null!=l){var s=e.getBoundingClientRect();n.top<s.top?e.scrollTop-=s.top-n.top:n.bottom>s.bottom&&(e.scrollTop+=n.bottom-s.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(d.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||o||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var l=document.createRange();l.setStart(e,t),l.setEnd(n,r),i.removeAllRanges(),i.addRange(l)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;if("string"==typeof t&&(n=t,t=!1),d.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,u(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.default.sources.USER,t=this.lastRange,n=this.getRange(),o=r(n,2),i=o[0],s=o[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,l.default)(t,this.lastRange)){var u;!this.composing&&null!=s&&s.native.collapsed&&s.start.node!==this.cursor.textNode&&this.cursor.restore();var f,d=[c.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(t),e];(u=this.emitter).emit.apply(u,[c.default.events.EDITOR_CHANGE].concat(d)),e!==c.default.sources.SILENT&&(f=this.emitter).emit.apply(f,d)}}}]),e}();function v(e,t){try{t.parentNode}catch(e){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=p,t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0),l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"insertInto",value:function(e,n){0===e.children.length?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default.Embed);l.blotName="break",l.tagName="BR",t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),a=n(30),l=n(1),c=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return o(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=s(t);e.insertBefore(n,e.children.head||void 0)}catch(e){if(e instanceof l.ParchmentError)return;throw e}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var r=this.children.find(n),o=r[0],i=r[1];return null==e.blotName&&e(o)||null!=e.blotName&&o instanceof e?[o,i]:o instanceof t?o.descendant(e,i):[null,-1]},t.prototype.descendants=function(e,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var o=[],i=r;return this.children.forEachAt(n,r,(function(n,r,a){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&o.push(n),n instanceof t&&(o=o.concat(n.descendants(e,r,i))),i-=a})),o},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,r){this.children.forEachAt(e,t,(function(e,t,o){e.formatAt(t,o,n,r)}))},t.prototype.insertAt=function(e,t,n){var r=this.children.find(e),o=r[0],i=r[1];if(o)o.insertAt(i,t,n);else{var a=null==n?l.create("text",t):l.create(t,n);this.appendChild(a)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new l.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=l.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var r=this.children.find(e,n),o=r[0],i=r[1],a=[[this,e]];return o instanceof t?a.concat(o.path(i,n)):(null!=o&&a.push([o,i]),a)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,r,o){e=e.split(r,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,r=[],o=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(r.push.apply(r,e.addedNodes),o.push.apply(o,e.removedNodes))})),o.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=l.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}})),r.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=l.find(e.nextSibling));var r=s(e);r.next==t&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,t||void 0))}))},t}(a.default);function s(e){var t=l.find(e);if(null==t)try{t=l.create(e)}catch(n){t=l.create(l.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),a=n(31),l=n(17),c=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new a.default(n.domNode),n}return o(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=c.query(e);n instanceof i.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var r=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(r),r},t.prototype.update=function(t,n){var r=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===r.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,r){var o=e.prototype.wrap.call(this,n,r);return o instanceof t&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},t}(l.default);t.default=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(30),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=l},function(e,t,n){var r=n(11),o=n(3),i={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var r=o(!0,{},t);for(var i in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[i]&&void 0===t[i]&&(r[i]=e[i]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,o){return r(e[o],t[o])||(n[o]=void 0===t[o]?null:t[o]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=i.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var o={};return t.attributes&&(o.attributes=t.attributes),"number"==typeof t.retain?o.retain=e:"string"==typeof t.insert?o.insert=t.insert.substr(n,e):o.insert=t.insert,o}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=i},function(e,t){var n=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,n,r;try{t=Map}catch(e){t=function(){}}try{n=Set}catch(e){n=function(){}}try{r=Promise}catch(e){r=function(){}}function i(a,c,s,u,f){"object"==typeof c&&(s=c.depth,u=c.prototype,f=c.includeNonEnumerable,c=c.circular);var d=[],p=[],h=void 0!==o;return void 0===c&&(c=!0),void 0===s&&(s=1/0),function a(s,v){if(null===s)return null;if(0===v)return s;var m,g;if("object"!=typeof s)return s;if(e(s,t))m=new t;else if(e(s,n))m=new n;else if(e(s,r))m=new r((function(e,t){s.then((function(t){e(a(t,v-1))}),(function(e){t(a(e,v-1))}))}));else if(i.__isArray(s))m=[];else if(i.__isRegExp(s))m=new RegExp(s.source,l(s)),s.lastIndex&&(m.lastIndex=s.lastIndex);else if(i.__isDate(s))m=new Date(s.getTime());else{if(h&&o.isBuffer(s))return m=o.allocUnsafe?o.allocUnsafe(s.length):new o(s.length),s.copy(m),m;e(s,Error)?m=Object.create(s):void 0===u?(g=Object.getPrototypeOf(s),m=Object.create(g)):(m=Object.create(u),g=u)}if(c){var b=d.indexOf(s);if(-1!=b)return p[b];d.push(s),p.push(m)}for(var y in e(s,t)&&s.forEach((function(e,t){var n=a(t,v-1),r=a(e,v-1);m.set(n,r)})),e(s,n)&&s.forEach((function(e){var t=a(e,v-1);m.add(t)})),s){var w;g&&(w=Object.getOwnPropertyDescriptor(g,y)),w&&null==w.set||(m[y]=a(s[y],v-1))}if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(s);for(y=0;y<x.length;y++){var S=x[y];(!(k=Object.getOwnPropertyDescriptor(s,S))||k.enumerable||f)&&(m[S]=a(s[S],v-1),k.enumerable||Object.defineProperty(m,S,{enumerable:!1}))}}if(f){var C=Object.getOwnPropertyNames(s);for(y=0;y<C.length;y++){var k,E=C[y];(k=Object.getOwnPropertyDescriptor(s,E))&&k.enumerable||(m[E]=a(s[E],v-1),Object.defineProperty(m,E,{enumerable:!1}))}}return m}(a,s)}function a(e){return Object.prototype.toString.call(e)}function l(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return i.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},i.__objToStr=a,i.__isDate=function(e){return"object"==typeof e&&"[object Date]"===a(e)},i.__isArray=function(e){return"object"==typeof e&&"[object Array]"===a(e)},i.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===a(e)},i.__getRegExpFlags=l,i}();"object"==typeof e&&e.exports&&(e.exports=n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=p(n(0)),l=p(n(8)),c=n(4),s=p(c),u=p(n(16)),f=p(n(13)),d=p(n(25));function p(e){return e&&e.__esModule?e:{default:e}}function h(e){return e instanceof s.default||e instanceof c.BlockEmbed}var v=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),r.domNode.addEventListener("DOMNodeInserted",(function(){})),r.optimize(),r.enable(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var o=this.line(e),a=r(o,2),l=a[0],s=a[1],d=this.line(e+n),p=r(d,1)[0];if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=p&&l!==p&&s>0){if(l instanceof c.BlockEmbed||p instanceof c.BlockEmbed)return void this.optimize();if(l instanceof f.default){var h=l.newlineIndex(l.length(),!0);if(h>-1&&(l=l.split(h+1))===p)return void this.optimize()}else if(p instanceof f.default){var v=p.newlineIndex(0);v>-1&&p.split(v+1)}var m=p.children.head instanceof u.default?null:p.children.head;l.moveChildren(p,m),l.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,o){(null==this.whitelist||this.whitelist[r])&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,o),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==a.default.query(n,a.default.Scope.BLOCK)){var o=a.default.create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var l=a.default.create(n,r);this.appendChild(l)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===a.default.Scope.INLINE_BLOT){var r=a.default.create(this.statics.defaultChild);r.appendChild(e),e=r}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(h,e)}},{key:"lines",value:function(){return function e(t,n,r){var o=[],i=r;return t.children.forEachAt(n,r,(function(t,n,r){h(t)?o.push(t):t instanceof a.default.Container&&(o=o.concat(e(t,n,i))),i-=r})),o}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=l.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,n,e),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,n,e)}}}]),t}(a.default.Scroll);v.blotName="scroll",v.className="ql-editor",v.tagName="DIV",v.defaultChild="block",v.allowedChildren=[s.default,c.BlockEmbed,d.default],t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=v(n(21)),l=v(n(11)),c=v(n(3)),s=v(n(2)),u=v(n(20)),f=v(n(0)),d=v(n(5)),p=v(n(10)),h=v(n(9));function v(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=(0,p.default)("quill:keyboard"),b=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",y=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&r.options.bindings[t]&&r.addBinding(r.options.bindings[t])})),r.addBinding({key:t.keys.ENTER,shiftKey:null},k),r.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},x),r.addBinding({key:t.keys.DELETE},{collapsed:!0},S)):(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},x),r.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},S)),r.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},C),r.addBinding({key:t.keys.DELETE},{collapsed:!1},C),r.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},x),r.listen(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"match",value:function(e,t){return t=_(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),i(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=_(e);if(null==r||null==r.key)return g.warn("Attempted to add invalid keyboard binding",r);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),r=(0,c.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,a=(e.bindings[i]||[]).filter((function(e){return t.match(n,e)}));if(0!==a.length){var c=e.quill.getSelection();if(null!=c&&e.quill.hasFocus()){var s=e.quill.getLine(c.index),u=o(s,2),d=u[0],p=u[1],h=e.quill.getLeaf(c.index),v=o(h,2),m=v[0],g=v[1],b=0===c.length?[m,g]:e.quill.getLeaf(c.index+c.length),y=o(b,2),w=y[0],x=y[1],S=m instanceof f.default.Text?m.value().slice(0,g):"",C=w instanceof f.default.Text?w.value().slice(x):"",k={collapsed:0===c.length,empty:0===c.length&&d.length()<=1,format:e.quill.getFormat(c),offset:p,prefix:S,suffix:C};a.some((function(t){if(null!=t.collapsed&&t.collapsed!==k.collapsed)return!1;if(null!=t.empty&&t.empty!==k.empty)return!1;if(null!=t.offset&&t.offset!==k.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==k.format[e]})))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=k.format[e]:!1===t.format[e]?null==k.format[e]:(0,l.default)(t.format[e],k.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(k.prefix)||null!=t.suffix&&!t.suffix.test(k.suffix)||!0===t.handler.call(e,c,k))}))&&n.preventDefault()}}}}))}}]),t}(h.default);function w(e,t){var n,r=e===y.keys.LEFT?"prefix":"suffix";return m(n={key:e,shiftKey:t,altKey:null},r,/^$/),m(n,"handler",(function(n){var r=n.index;e===y.keys.RIGHT&&(r+=n.length+1);var i=this.quill.getLeaf(r);return!(o(i,1)[0]instanceof f.default.Embed&&(e===y.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,d.default.sources.USER):this.quill.setSelection(n.index-1,d.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,d.default.sources.USER):this.quill.setSelection(n.index+n.length+1,d.default.sources.USER),1))})),n}function x(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=o(n,1)[0],i={};if(0===t.offset){var a=this.quill.getLine(e.index-1),l=o(a,1)[0];if(null!=l&&l.length()>1){var c=r.formats(),s=this.quill.getFormat(e.index-1,1);i=u.default.attributes.diff(c,s)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-f,f,d.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index-f,f,i,d.default.sources.USER),this.quill.focus()}}function S(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},i=0,a=this.quill.getLine(e.index),l=o(a,1)[0];if(t.offset>=l.length()-1){var c=this.quill.getLine(e.index+1),s=o(c,1)[0];if(s){var f=l.formats(),p=this.quill.getFormat(e.index,1);r=u.default.attributes.diff(f,p)||{},i=s.length()}}this.quill.deleteText(e.index,n,d.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+i-1,n,r,d.default.sources.USER)}}function C(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),o=t[t.length-1].formats();n=u.default.attributes.diff(o,r)||{}}this.quill.deleteText(e,d.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,d.default.sources.USER),this.quill.setSelection(e.index,d.default.sources.SILENT),this.quill.focus()}function k(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce((function(e,n){return f.default.query(n,f.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",r,d.default.sources.USER),this.quill.setSelection(e.index+1,d.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],d.default.sources.USER))}))}function E(e){return{key:y.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=f.default.query("code-block"),r=t.index,i=t.length,a=this.quill.scroll.descendant(n,r),l=o(a,2),c=l[0],s=l[1];if(null!=c){var u=this.quill.getIndex(c),p=c.newlineIndex(s,!0)+1,h=c.newlineIndex(u+s+i),v=c.domNode.textContent.slice(p,h).split("\n");s=0,v.forEach((function(t,o){e?(c.insertAt(p+s,n.TAB),s+=n.TAB.length,0===o?r+=n.TAB.length:i+=n.TAB.length):t.startsWith(n.TAB)&&(c.deleteAt(p+s,n.TAB.length),s-=n.TAB.length,0===o?r-=n.TAB.length:i-=n.TAB.length),s+=t.length+1})),this.quill.update(d.default.sources.USER),this.quill.setSelection(r,i,d.default.sources.SILENT)}}}}function O(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],d.default.sources.USER)}}}function _(e){if("string"==typeof e||"number"==typeof e)return _({key:e});if("object"===(void 0===e?"undefined":r(e))&&(e=(0,a.default)(e,!1)),"string"==typeof e.key)if(null!=y.keys[e.key.toUpperCase()])e.key=y.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[b]=e.shortKey,delete e.shortKey),e}y.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},y.DEFAULTS={bindings:{bold:O("bold"),italic:O("italic"),underline:O("underline"),indent:{key:y.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",d.default.sources.USER)}},outdent:{key:y.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",d.default.sources.USER)}},"outdent backspace":{key:y.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",d.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,d.default.sources.USER)}},"indent code-block":E(!0),"outdent code-block":E(!1),"remove tab":{key:y.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,d.default.sources.USER)}},tab:{key:y.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new s.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,d.default.sources.SILENT)}},"list empty enter":{key:y.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,d.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,d.default.sources.USER)}},"checklist enter":{key:y.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],i=n[1],a=(0,c.default)({},r.formats(),{list:"checked"}),l=(new s.default).retain(e.index).insert("\n",a).retain(r.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(l,d.default.sources.USER),this.quill.setSelection(e.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:y.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=o(n,2),i=r[0],a=r[1],l=(new s.default).retain(e.index).insert("\n",t.format).retain(i.length()-a-1).retain(1,{header:null});this.quill.updateContents(l,d.default.sources.USER),this.quill.setSelection(e.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),i=o(r,2),a=i[0],l=i[1];if(l>n)return!0;var c=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":c="unchecked";break;case"[x]":c="checked";break;case"-":case"*":c="bullet";break;default:c="ordered"}this.quill.insertText(e.index," ",d.default.sources.USER),this.quill.history.cutoff();var u=(new s.default).retain(e.index-l).delete(n+1).retain(a.length()-2-l).retain(1,{list:c});this.quill.updateContents(u,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,d.default.sources.SILENT)}},"code exit":{key:y.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],i=n[1],a=(new s.default).retain(e.index+r.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,d.default.sources.USER)}},"embed left":w(y.keys.LEFT,!1),"embed left shift":w(y.keys.LEFT,!0),"embed right":w(y.keys.RIGHT,!1),"embed right shift":w(y.keys.RIGHT,!0)}},t.default=y,t.SHORTKEY=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=c(n(0)),l=c(n(7));function c(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.selection=n,r.textNode=document.createTextNode(t.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"value",value:function(){}}]),i(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var r=this,i=0;null!=r&&r.statics.scope!==a.default.Scope.BLOCK_BLOT;)i+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=t.CONTENTS.length,r.optimize(),r.formatAt(i,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),o=void 0,i=void 0,c=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var s=[e,n.start.offset,n.end.offset];o=s[0],i=s[1],c=s[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var u=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof l.default?(o=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=t.CONTENTS):(this.textNode.data=u,this.parent.insertBefore(a.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var f=[i,c].map((function(e){return Math.max(0,Math.min(o.data.length,e-1))})),d=r(f,2);return i=d[0],c=d[1],{startNode:o,startOffset:i,endNode:o,endOffset:c}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var r=this.restore();r&&(t.range=r)}}},{key:"value",value:function(){return""}}]),t}(a.default.Embed);s.blotName="cursor",s.className="ql-cursor",s.tagName="span",s.CONTENTS="\ufeff",t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(0)),o=n(4),i=a(o);function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r.default.Container);l.allowedChildren=[i.default,o.BlockEmbed,l],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0),l=(r=a)&&r.__esModule?r:{default:r},c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"value",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join("")):n}}]),t}(l.default.Attributor.Style),s=new l.default.Attributor.Class("color","ql-color",{scope:l.default.Scope.INLINE}),u=new c("color","color",{scope:l.default.Scope.INLINE});t.ColorAttributor=c,t.ColorClass=s,t.ColorStyle=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(6),l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return c(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);function c(e,t){var n=document.createElement("a");n.href=e;var r=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(r)>-1}l.blotName="link",l.tagName="A",l.SANITIZED_URL="about:blank",l.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=l,t.sanitize=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=l(n(23)),a=l(n(107));function l(e){return e&&e.__esModule?e:{default:e}}var c=0;function s(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var u=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:n.togglePicker();break;case i.default.keys.ESCAPE:n.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return o(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),s(this.label,"aria-expanded"),s(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case i.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=a.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+c,c+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var r=e.buildItem(n);t.appendChild(r),!0===n.selected&&e.selectItem(r)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":r(Event))){var o=document.createEvent("Event");o.initEvent("change",!0,!0),this.select.dispatchEvent(o)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=g(n(0)),o=g(n(5)),i=n(4),a=g(i),l=g(n(16)),c=g(n(25)),s=g(n(24)),u=g(n(35)),f=g(n(6)),d=g(n(22)),p=g(n(7)),h=g(n(55)),v=g(n(42)),m=g(n(23));function g(e){return e&&e.__esModule?e:{default:e}}o.default.register({"blots/block":a.default,"blots/block/embed":i.BlockEmbed,"blots/break":l.default,"blots/container":c.default,"blots/cursor":s.default,"blots/embed":u.default,"blots/inline":f.default,"blots/scroll":d.default,"blots/text":p.default,"modules/clipboard":h.default,"modules/history":v.default,"modules/keyboard":m.default}),r.default.register(a.default,l.default,s.default,f.default,d.default,p.default),t.default=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,o){var i=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&o)i.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);i.wrap(a),a.format(n,o)}},e.prototype.insertAt=function(e,t,n){var o=null==n?r.create("text",t):r.create(t,n),i=this.split(e);this.parent.insertBefore(o,i)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n(32),i=n(33),a=n(1),l=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=o.default.keys(this.domNode),l=i.default.keys(this.domNode);t.concat(n).concat(l).forEach((function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){i(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(i(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[i(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[i(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[i(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n,this.modules={}}return r(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();o.DEFAULTS={modules:{}},o.themes={default:o},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=l(n(0)),a=l(n(7));function l(e){return e&&e.__esModule?e:{default:e}}var c="\ufeff",s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),n.leftGuard=document.createTextNode(c),n.rightGuard=document.createTextNode(c),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,r=e.data.split(c).join("");if(e===this.leftGuard)if(this.prev instanceof a.default){var o=this.prev.length();this.prev.insertAt(o,r),t={startNode:this.prev.domNode,startOffset:o+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(i.default.create(n),this),t={startNode:n,startOffset:r.length};else e===this.rightGuard&&(this.next instanceof a.default?(this.next.insertAt(0,r),t={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(i.default.create(n),this.next),t={startNode:n,startOffset:r.length}));return e.data=c,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var r=n.restore(e.target);r&&(t.range=r)}}))}}]),t}(i.default.Embed);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a={scope:i.default.Scope.BLOCK,whitelist:["right","center","justify"]},l=new i.default.Attributor.Attribute("align","align",a),c=new i.default.Attributor.Class("align","ql-align",a),s=new i.default.Attributor.Style("align","text-align",a);t.AlignAttribute=l,t.AlignClass=c,t.AlignStyle=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a=n(26),l=new i.default.Attributor.Class("background","ql-bg",{scope:i.default.Scope.INLINE}),c=new a.ColorAttributor("background","background-color",{scope:i.default.Scope.INLINE});t.BackgroundClass=l,t.BackgroundStyle=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a={scope:i.default.Scope.BLOCK,whitelist:["rtl"]},l=new i.default.Attributor.Attribute("direction","dir",a),c=new i.default.Attributor.Class("direction","ql-direction",a),s=new i.default.Attributor.Style("direction","direction",a);t.DirectionAttribute=l,t.DirectionClass=c,t.DirectionStyle=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0),l=(r=a)&&r.__esModule?r:{default:r},c={scope:l.default.Scope.INLINE,whitelist:["serif","monospace"]},s=new l.default.Attributor.Class("font","ql-font",c),u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"value",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(l.default.Attributor.Style),f=new u("font","font-family",c);t.FontStyle=f,t.FontClass=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a=new i.default.Attributor.Class("size","ql-size",{scope:i.default.Scope.INLINE,whitelist:["small","large","huge"]}),l=new i.default.Attributor.Style("size","font-size",{scope:i.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=a,t.SizeStyle=l},function(e,t,n){"use strict";e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=a(n(0)),i=a(n(5));function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(i.default.events.EDITOR_CHANGE,(function(e,t,n,o){e!==i.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&o!==i.default.sources.USER?r.transform(t):r.record(t,n))})),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],i.default.sources.USER),this.ignoreChange=!1;var r=c(n[e]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),e=o.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(a(n(9)).default);function c(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),n=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=o.default.query(e,o.default.Scope.BLOCK)})))}(e)&&(n-=1),n}l.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=l,t.getLastChangeIndex=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=h(n(3)),a=h(n(2)),l=h(n(8)),c=h(n(23)),s=h(n(34)),u=h(n(59)),f=h(n(60)),d=h(n(28)),p=h(n(61));function h(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var b=[!1,"center","right","justify"],y=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],w=[!1,"serif","monospace"],x=["1","2","3",!1],S=["small",!1,"large","huge"],C=function(e){function t(e,n){v(this,t);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return e.emitter.listenDOM("click",document.body,(function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach((function(e){e.container.contains(n.target)||e.close()}))})),r}return g(t,e),r(t,[{key:"addModule",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice(3),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{var r=e.value||"";null!=r&&t[n][r]&&(e.innerHTML=t[n][r])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&E(e,b),new f.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&E(e,y,"background"===n?"#ffffff":"#000000"),new u.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?E(e,w):e.classList.contains("ql-header")?E(e,x):e.classList.contains("ql-size")&&E(e,S)),new d.default(e)})),this.quill.on(l.default.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(e){e.update()}))}))}}]),t}(s.default);C.DEFAULTS=(0,i.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var r=e.quill.getSelection(!0);e.quill.updateContents((new a.default).retain(r.index).delete(r.length).insert({image:n.target.result}),l.default.sources.USER),e.quill.setSelection(r.index+1,l.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var k=function(e){function t(e,n){v(this,t);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return g(t,e),r(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){c.default.match(t,"enter")?(e.save(),t.preventDefault()):c.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e,t,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var r=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,l.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,l.default.sources.USER)),this.quill.root.scrollTop=r;break;case"video":n=(t=(e=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e;case"formula":if(!n)break;var o=this.quill.getSelection(!0);if(null!=o){var i=o.index+o.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),n,l.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",l.default.sources.USER),this.quill.setSelection(i+2,l.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(p.default);function E(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)}))}t.BaseTooltip=k,t.default=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,r=this.iterator();n=r();){var o=n.length();if(e<o||t&&e===o&&(null==n.next||0!==n.next.length()))return[n,e];e-=o}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var r,o=this.find(e),i=o[0],a=e-o[1],l=this.iterator(i);(r=l())&&a<e+t;){var c=r.length();e>a?n(r,e-a,Math.min(t,a+c-e)):n(r,0,Math.min(c,e+t-a)),a+=c}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,r=this.iterator();n=r();)t=e(t,n);return t},e}();t.default=r},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),a=n(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},c=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,l),n.attach(),n}return o(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,o){this.update(),e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var o=[].slice.call(this.observer.takeRecords());o.length>0;)t.push(o.pop());for(var l=function(e,t){void 0===t&&(t=!0),null!=e&&e!==r&&null!=e.domNode.parentNode&&(null==e.domNode[a.DATA_KEY].mutations&&(e.domNode[a.DATA_KEY].mutations=[]),t&&l(e.parent))},c=function(e){null!=e.domNode[a.DATA_KEY]&&null!=e.domNode[a.DATA_KEY].mutations&&(e instanceof i.default&&e.children.forEach(c),e.optimize(n))},s=t,u=0;s.length>0;u+=1){if(u>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(s.forEach((function(e){var t=a.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(l(a.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=a.find(e,!1);l(t,!1),t instanceof i.default&&t.children.forEach((function(e){l(e,!1)}))}))):"attributes"===e.type&&l(t.prev)),l(t))})),this.children.forEach(c),o=(s=[].slice.call(this.observer.takeRecords())).slice();o.length>0;)t.push(o.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=a.find(e.target,!0);return null==t?null:null==t.domNode[a.DATA_KEY].mutations?(t.domNode[a.DATA_KEY].mutations=[e],t):(t.domNode[a.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==r&&null!=e.domNode[a.DATA_KEY]&&e.update(e.domNode[a.DATA_KEY].mutations||[],n)})),null!=this.domNode[a.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),o.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,r,o){null!=this.formats()[r]||a.query(r,a.Scope.ATTRIBUTE)?this.isolate(t,n).format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var o=this.next;o instanceof t&&o.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(r,o.formats())&&(o.moveChildren(this),o.remove())},t.blotName="inline",t.scope=a.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(n){var r=a.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,o){null!=a.query(r,a.Scope.BLOCK)?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=a.query(n,a.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var o=this.split(t),i=a.create(n,r);o.parent.insertBefore(i,o)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,o){0===t&&n===this.length()?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),a=n(1),l=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return o(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=a.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=l},function(e,t,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:o.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;i<r;i++)if(t=n[i],e.call(o,t,i,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1,r=1,o=0;function i(e,t,u){if(e==t)return e?[[o,e]]:[];(u<0||e.length<u)&&(u=null);var d=l(e,t),p=e.substring(0,d);d=c(e=e.substring(d),t=t.substring(d));var h=e.substring(e.length-d),v=function(e,t){var s;if(!e)return[[r,t]];if(!t)return[[n,e]];var u=e.length>t.length?e:t,f=e.length>t.length?t:e,d=u.indexOf(f);if(-1!=d)return s=[[r,u.substring(0,d)],[o,f],[r,u.substring(d+f.length)]],e.length>t.length&&(s[0][0]=s[2][0]=n),s;if(1==f.length)return[[n,e],[r,t]];var p=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function o(e,t,n){for(var r,o,i,a,s=e.substring(n,n+Math.floor(e.length/4)),u=-1,f="";-1!=(u=t.indexOf(s,u+1));){var d=l(e.substring(n),t.substring(u)),p=c(e.substring(0,n),t.substring(0,u));f.length<p+d&&(f=t.substring(u-p,u)+t.substring(u,u+d),r=e.substring(0,n-p),o=e.substring(n+d),i=t.substring(0,u-p),a=t.substring(u+d))}return 2*f.length>=e.length?[r,o,i,a,f]:null}var i,a,s,u,f,d=o(n,r,Math.ceil(n.length/4)),p=o(n,r,Math.ceil(n.length/2));if(!d&&!p)return null;i=p?d&&d[4].length>p[4].length?d:p:d,e.length>t.length?(a=i[0],s=i[1],u=i[2],f=i[3]):(u=i[0],f=i[1],a=i[2],s=i[3]);var h=i[4];return[a,s,u,f,h]}(e,t);if(p){var h=p[0],v=p[1],m=p[2],g=p[3],b=p[4],y=i(h,m),w=i(v,g);return y.concat([[o,b]],w)}return function(e,t){for(var o=e.length,i=t.length,l=Math.ceil((o+i)/2),c=l,s=2*l,u=new Array(s),f=new Array(s),d=0;d<s;d++)u[d]=-1,f[d]=-1;u[c+1]=0,f[c+1]=0;for(var p=o-i,h=p%2!=0,v=0,m=0,g=0,b=0,y=0;y<l;y++){for(var w=-y+v;w<=y-m;w+=2){for(var x=c+w,S=(_=w==-y||w!=y&&u[x-1]<u[x+1]?u[x+1]:u[x-1]+1)-w;_<o&&S<i&&e.charAt(_)==t.charAt(S);)_++,S++;if(u[x]=_,_>o)m+=2;else if(S>i)v+=2;else if(h&&(E=c+p-w)>=0&&E<s&&-1!=f[E]&&_>=(k=o-f[E]))return a(e,t,_,S)}for(var C=-y+g;C<=y-b;C+=2){for(var k,E=c+C,O=(k=C==-y||C!=y&&f[E-1]<f[E+1]?f[E+1]:f[E-1]+1)-C;k<o&&O<i&&e.charAt(o-k-1)==t.charAt(i-O-1);)k++,O++;if(f[E]=k,k>o)b+=2;else if(O>i)g+=2;else if(!h){var _;if((x=c+p-C)>=0&&x<s&&-1!=u[x])if(S=c+(_=u[x])-x,_>=(k=o-k))return a(e,t,_,S)}}}return[[n,e],[r,t]]}(e,t)}(e=e.substring(0,e.length-d),t=t.substring(0,t.length-d));return p&&v.unshift([o,p]),h&&v.push([o,h]),s(v),null!=u&&(v=function(e,t){var r=function(e,t){if(0===t)return[o,e];for(var r=0,i=0;i<e.length;i++){var a=e[i];if(a[0]===n||a[0]===o){var l=r+a[1].length;if(t===l)return[i+1,e];if(t<l){e=e.slice();var c=t-r,s=[a[0],a[1].slice(0,c)],u=[a[0],a[1].slice(c)];return e.splice(i,1,s,u),[i+1,e]}r=l}}throw new Error("cursor_pos is out of bounds!")}(e,t),i=r[1],a=r[0],l=i[a],c=i[a+1];if(null==l)return e;if(l[0]!==o)return e;if(null!=c&&l[1]+c[1]===c[1]+l[1])return i.splice(a,2,c,l),f(i,a,2);if(null!=c&&0===c[1].indexOf(l[1])){i.splice(a,2,[c[0],l[1]],[0,l[1]]);var s=c[1].slice(l[1].length);return s.length>0&&i.splice(a+2,0,[c[0],s]),f(i,a,3)}return e}(v,u)),v=function(e){for(var t=!1,i=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},a=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},l=2;l<e.length;l+=1)e[l-2][0]===o&&a(e[l-2][1])&&e[l-1][0]===n&&i(e[l-1][1])&&e[l][0]===r&&i(e[l][1])&&(t=!0,e[l-1][1]=e[l-2][1].slice(-1)+e[l-1][1],e[l][1]=e[l-2][1].slice(-1)+e[l][1],e[l-2][1]=e[l-2][1].slice(0,-1));if(!t)return e;var c=[];for(l=0;l<e.length;l+=1)e[l][1].length>0&&c.push(e[l]);return c}(v)}function a(e,t,n,r){var o=e.substring(0,n),a=t.substring(0,r),l=e.substring(n),c=t.substring(r),s=i(o,a),u=i(l,c);return s.concat(u)}function l(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(i,o)==t.substring(i,o)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function c(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(e.length-o,e.length-i)==t.substring(t.length-o,t.length-i)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function s(e){e.push([o,""]);for(var t,i=0,a=0,u=0,f="",d="";i<e.length;)switch(e[i][0]){case r:u++,d+=e[i][1],i++;break;case n:a++,f+=e[i][1],i++;break;case o:a+u>1?(0!==a&&0!==u&&(0!==(t=l(d,f))&&(i-a-u>0&&e[i-a-u-1][0]==o?e[i-a-u-1][1]+=d.substring(0,t):(e.splice(0,0,[o,d.substring(0,t)]),i++),d=d.substring(t),f=f.substring(t)),0!==(t=c(d,f))&&(e[i][1]=d.substring(d.length-t)+e[i][1],d=d.substring(0,d.length-t),f=f.substring(0,f.length-t))),0===a?e.splice(i-u,a+u,[r,d]):0===u?e.splice(i-a,a+u,[n,f]):e.splice(i-a-u,a+u,[n,f],[r,d]),i=i-a-u+(a?1:0)+(u?1:0)+1):0!==i&&e[i-1][0]==o?(e[i-1][1]+=e[i][1],e.splice(i,1)):i++,u=0,a=0,f="",d=""}""===e[e.length-1][1]&&e.pop();var p=!1;for(i=1;i<e.length-1;)e[i-1][0]==o&&e[i+1][0]==o&&(e[i][1].substring(e[i][1].length-e[i-1][1].length)==e[i-1][1]?(e[i][1]=e[i-1][1]+e[i][1].substring(0,e[i][1].length-e[i-1][1].length),e[i+1][1]=e[i-1][1]+e[i+1][1],e.splice(i-1,1),p=!0):e[i][1].substring(0,e[i+1][1].length)==e[i+1][1]&&(e[i-1][1]+=e[i+1][1],e[i][1]=e[i][1].substring(e[i+1][1].length)+e[i+1][1],e.splice(i+1,1),p=!0)),i++;p&&s(e)}var u=i;function f(e,t,n){for(var r=t+n-1;r>=0&&r>=t-1;r--)if(r+1<e.length){var o=e[r],i=e[r+1];o[0]===i[1]&&e.splice(r,2,[o[0],o[1]+i[1]])}return e}u.INSERT=r,u.DELETE=n,u.EQUAL=o,e.exports=u},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?r:o).supported=r,t.unsupported=o},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function o(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(r=!1)),a.prototype.eventNames=function(){var e,t,o=[];if(0===this._eventsCount)return o;for(t in e=this._events)n.call(e,t)&&o.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},a.prototype.listeners=function(e,t){var n=r?r+e:e,o=this._events[n];if(t)return!!o;if(!o)return[];if(o.fn)return[o.fn];for(var i=0,a=o.length,l=new Array(a);i<a;i++)l[i]=o[i].fn;return l},a.prototype.emit=function(e,t,n,o,i,a){var l=r?r+e:e;if(!this._events[l])return!1;var c,s,u=this._events[l],f=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),f){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,o),!0;case 5:return u.fn.call(u.context,t,n,o,i),!0;case 6:return u.fn.call(u.context,t,n,o,i,a),!0}for(s=1,c=new Array(f-1);s<f;s++)c[s-1]=arguments[s];u.fn.apply(u.context,c)}else{var d,p=u.length;for(s=0;s<p;s++)switch(u[s].once&&this.removeListener(e,u[s].fn,void 0,!0),f){case 1:u[s].fn.call(u[s].context);break;case 2:u[s].fn.call(u[s].context,t);break;case 3:u[s].fn.call(u[s].context,t,n);break;case 4:u[s].fn.call(u[s].context,t,n,o);break;default:if(!c)for(d=1,c=new Array(f-1);d<f;d++)c[d-1]=arguments[d];u[s].fn.apply(u[s].context,c)}}return!0},a.prototype.on=function(e,t,n){var o=new i(t,n||this),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.once=function(e,t,n){var o=new i(t,n||this,!0),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return 0==--this._eventsCount?this._events=new o:delete this._events[a],this;var l=this._events[a];if(l.fn)l.fn!==t||i&&!l.once||n&&l.context!==n||(0==--this._eventsCount?this._events=new o:delete this._events[a]);else{for(var c=0,s=[],u=l.length;c<u;c++)(l[c].fn!==t||i&&!l[c].once||n&&l[c].context!==n)&&s.push(l[c]);s.length?this._events[a]=1===s.length?s[0]:s:0==--this._eventsCount?this._events=new o:delete this._events[a]}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new o:delete this._events[t])):(this._events=new o,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=r,a.EventEmitter=a,void 0!==e&&(e.exports=a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=y(n(3)),l=y(n(2)),c=y(n(0)),s=y(n(5)),u=y(n(10)),f=y(n(9)),d=n(36),p=n(37),h=y(n(13)),v=n(26),m=n(38),g=n(39),b=n(40);function y(e){return e&&e.__esModule?e:{default:e}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=(0,u.default)("quill:clipboard"),S="__ql-matcher",C=[[Node.TEXT_NODE,q],[Node.TEXT_NODE,A],["br",function(e,t){return $(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,A],[Node.ELEMENT_NODE,R],[Node.ELEMENT_NODE,T],[Node.ELEMENT_NODE,M],[Node.ELEMENT_NODE,function(e,t){var n={},r=e.style||{};return r.fontStyle&&"italic"===j(e).fontStyle&&(n.italic=!0),r.fontWeight&&(j(e).fontWeight.startsWith("bold")||parseInt(j(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=_(t,n)),parseFloat(r.textIndent||0)>0&&(t=(new l.default).insert("\t").concat(t)),t}],["li",function(e,t){var n=c.default.query(e);if(null==n||"list-item"!==n.blotName||!$(t,"\n"))return t;for(var r=-1,o=e.parentNode;!o.classList.contains("ql-clipboard");)"list"===(c.default.query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?t:t.compose((new l.default).retain(t.length()-1).retain(1,{indent:r}))}],["b",I.bind(I,"bold")],["i",I.bind(I,"italic")],["style",function(){return new l.default}]],k=[d.AlignAttribute,m.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),E=[d.AlignStyle,p.BackgroundStyle,v.ColorStyle,m.DirectionStyle,g.FontStyle,b.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),O=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],C.concat(r.options.matchers).forEach((function(e){var t=o(e,2),i=t[0],a=t[1];(n.matchVisual||a!==T)&&r.addMatcher(i,a)})),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new l.default).insert(n,w({},h.default.blotName,t[h.default.blotName]))}var r=this.prepareMatching(),i=o(r,2),a=i[0],c=i[1],s=P(this.container,a,c);return $(s,"\n")&&null==s.ops[s.ops.length-1].attributes&&(s=s.compose((new l.default).retain(s.length()-1).delete(1))),x.log("convert",this.container.innerHTML,s),this.container.innerHTML="",s}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,s.default.sources.SILENT);else{var r=this.convert(t);this.quill.updateContents((new l.default).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),s.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new l.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(s.default.sources.SILENT),setTimeout((function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,s.default.sources.USER),t.quill.setSelection(r.length()-n.length,s.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=o,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(r){var i=o(r,2),a=i[0],l=i[1];switch(a){case Node.TEXT_NODE:n.push(l);break;case Node.ELEMENT_NODE:t.push(l);break;default:[].forEach.call(e.container.querySelectorAll(a),(function(e){e[S]=e[S]||[],e[S].push(l)}))}})),[t,n]}}]),t}(f.default);function _(e,t,n){return"object"===(void 0===t?"undefined":r(t))?Object.keys(t).reduce((function(e,n){return _(e,n,t[n])}),e):e.reduce((function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,a.default)({},w({},t,n),r.attributes))}),new l.default)}function j(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function $(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length<t.length;--r){var o=e.ops[r];if("string"!=typeof o.insert)break;n=o.insert+n}return n.slice(-1*t.length)===t}function N(e){if(0===e.childNodes.length)return!1;var t=j(e);return["block","list-item"].indexOf(t.display)>-1}function P(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new l.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(r,o){var i=P(o,t,n);return o.nodeType===e.ELEMENT_NODE&&(i=t.reduce((function(e,t){return t(o,e)}),i),i=(o[S]||[]).reduce((function(e,t){return t(o,e)}),i)),r.concat(i)}),new l.default):new l.default}function I(e,t,n){return _(n,e,!0)}function M(e,t){var n=c.default.Attributor.Attribute.keys(e),r=c.default.Attributor.Class.keys(e),o=c.default.Attributor.Style.keys(e),i={};return n.concat(r).concat(o).forEach((function(t){var n=c.default.query(t,c.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(e),i[n.attrName])||(null==(n=k[t])||n.attrName!==t&&n.keyName!==t||(i[n.attrName]=n.value(e)||void 0),null==(n=E[t])||n.attrName!==t&&n.keyName!==t||(n=E[t],i[n.attrName]=n.value(e)||void 0))})),Object.keys(i).length>0&&(t=_(t,i)),t}function R(e,t){var n=c.default.query(e);if(null==n)return t;if(n.prototype instanceof c.default.Embed){var r={},o=n.value(e);null!=o&&(r[n.blotName]=o,t=(new l.default).insert(r,n.formats(e)))}else"function"==typeof n.formats&&(t=_(t,n.blotName,n.formats(e)));return t}function A(e,t){return $(t,"\n")||(N(e)||t.length()>0&&e.nextSibling&&N(e.nextSibling))&&t.insert("\n"),t}function T(e,t){if(N(e)&&null!=e.nextElementSibling&&!$(t,"\n\n")){var n=e.offsetHeight+parseFloat(j(e).marginTop)+parseFloat(j(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function q(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!j(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&N(e.parentNode)||null!=e.previousSibling&&N(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&N(e.parentNode)||null!=e.nextSibling&&N(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}O.DEFAULTS={matchers:[],matchVisual:!0},t.default=O,t.matchAttributor=M,t.matchBlot=R,t.matchNewline=A,t.matchSpacing=T,t.matchText=q},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(6),l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);l.blotName="bold",l.tagName=["STRONG","B"],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=u(n(2)),a=u(n(0)),l=u(n(5)),c=u(n(10)),s=u(n(9));function u(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=(0,c.default)("quill:toolbar"),p=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o,i=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(i.options.container)){var a=document.createElement("div");v(a,i.options.container),e.container.parentNode.insertBefore(a,e.container),i.container=a}else"string"==typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container;return i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach((function(e){i.addHandler(e,i.options.handlers[e])})),[].forEach.call(i.container.querySelectorAll("button, select"),(function(e){i.attach(e)})),i.quill.on(l.default.events.EDITOR_CHANGE,(function(e,t){e===l.default.events.SELECTION_CHANGE&&i.update(t)})),i.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){var e=i.quill.selection.getRange(),t=r(e,1)[0];i.update(t)})),i):(o=d.error("Container required for toolbar",i.options),f(i,o))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice(3),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void d.warn("ignoring attaching to disabled format",n,e);if(null==a.default.query(n))return void d.warn("ignoring attaching to nonexistent format",n,e)}var o="SELECT"===e.tagName?"change":"click";e.addEventListener(o,(function(o){var c=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var s=e.options[e.selectedIndex];c=!s.hasAttribute("selected")&&(s.value||!1)}else c=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),o.preventDefault();t.quill.focus();var u=t.quill.selection.getRange(),f=r(u,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,c);else if(a.default.query(n).prototype instanceof a.default.Embed){if(!(c=prompt("Enter "+n)))return;t.quill.updateContents((new i.default).retain(f.index).delete(f.length).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,c)),l.default.sources.USER)}else t.quill.format(n,c,l.default.sources.USER);t.update(f)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var o=r(n,2),i=o[0],a=o[1];if("SELECT"===a.tagName){var l=void 0;if(null==e)l=null;else if(null==t[i])l=a.querySelector("option[selected]");else if(!Array.isArray(t[i])){var c=t[i];"string"==typeof c&&(c=c.replace(/\"/g,'\\"')),l=a.querySelector('option[value="'+c+'"]')}null==l?(a.value="",a.selectedIndex=-1):l.selected=!0}else if(null==e)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var s=t[i]===a.getAttribute("value")||null!=t[i]&&t[i].toString()===a.getAttribute("value")||null==t[i]&&!a.getAttribute("value");a.classList.toggle("ql-active",s)}else a.classList.toggle("ql-active",null!=t[i])}))}}]),t}(s.default);function h(e,t,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+t),null!=n&&(r.value=n),e.appendChild(r)}function v(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"==typeof e)h(n,e);else{var t=Object.keys(e)[0],r=e[t];Array.isArray(r)?function(e,t,n){var r=document.createElement("select");r.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),r.appendChild(t)})),e.appendChild(r)}(n,t,r):h(n,t,r)}})),e.appendChild(n)}))}p.DEFAULTS={},p.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=a.default.query(t,a.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,l.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",l.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,l.default.sources.USER),this.quill.format("direction",e,l.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0);if("+1"===e||"-1"===e){var o="+1"===e?1:-1;"rtl"===n.direction&&(o*=-1),this.quill.format("indent",r+o,l.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,l.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,l.default.sources.USER):this.quill.format("list","unchecked",l.default.sources.USER):this.quill.format("list",e,l.default.sources.USER)}}},t.default=p,t.addControls=v},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(28),l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"buildItem",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var r=this.label.querySelector(".ql-color-label"),o=e&&e.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=o:r.style.fill=o)}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(28),l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"})),this.hide()}return r(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),i=0;if(o.right>r.right&&(i=r.right-o.right,this.root.style.left=t+i+"px"),o.left<r.left&&(i=r.left-o.left,this.root.style.left=t+i+"px"),o.bottom>r.bottom){var a=o.bottom-o.top,l=e.bottom-e.top+a;this.root.style.top=n-l+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=p(n(3)),l=p(n(8)),c=n(43),s=p(c),u=p(n(27)),f=n(15),d=p(n(41));function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],b=function(e){function t(e,n){h(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-snow"),r}return m(t,e),i(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),d.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),d.default),this.tooltip=new y(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)}))}}]),t}(s.default);b.DEFAULTS=(0,a.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var y=function(e){function t(e,n){h(this,t);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return m(t,e),i(t,[{key:"listen",value:function(){var e=this;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,l.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(l.default.events.SELECTION_CHANGE,(function(t,n,o){if(null!=t){if(0===t.length&&o===l.default.sources.USER){var i=e.quill.scroll.descendant(u.default,t.index),a=r(i,2),c=a[0],s=a[1];if(null!=c){e.linkRange=new f.Range(t.index-s,c.length());var d=u.default.formats(c.domNode);return e.preview.textContent=d,e.preview.setAttribute("href",d),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(c.BaseTooltip);y.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=A(n(29)),o=n(36),i=n(38),a=n(64),l=A(n(65)),c=A(n(66)),s=n(67),u=A(s),f=n(37),d=n(26),p=n(39),h=n(40),v=A(n(56)),m=A(n(68)),g=A(n(27)),b=A(n(69)),y=A(n(70)),w=A(n(71)),x=A(n(72)),S=A(n(73)),C=n(13),k=A(C),E=A(n(74)),O=A(n(75)),_=A(n(57)),j=A(n(41)),$=A(n(28)),N=A(n(59)),P=A(n(60)),I=A(n(61)),M=A(n(108)),R=A(n(62));function A(e){return e&&e.__esModule?e:{default:e}}r.default.register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":f.BackgroundClass,"attributors/class/color":d.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":f.BackgroundStyle,"attributors/style/color":d.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":h.SizeStyle},!0),r.default.register({"formats/align":o.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":a.IndentClass,"formats/background":f.BackgroundStyle,"formats/color":d.ColorStyle,"formats/font":p.FontClass,"formats/size":h.SizeClass,"formats/blockquote":l.default,"formats/code-block":k.default,"formats/header":c.default,"formats/list":u.default,"formats/bold":v.default,"formats/code":C.Code,"formats/italic":m.default,"formats/link":g.default,"formats/script":b.default,"formats/strike":y.default,"formats/underline":w.default,"formats/image":x.default,"formats/video":S.default,"formats/list/item":s.ListItem,"modules/formula":E.default,"modules/syntax":O.default,"modules/toolbar":_.default,"themes/bubble":M.default,"themes/snow":R.default,"ui/icons":j.default,"ui/picker":$.default,"ui/icon-picker":P.default,"ui/color-picker":N.default,"ui/tooltip":I.default},!0),t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0),l=(r=a)&&r.__esModule?r:{default:r},c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var r=this.value(e)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(e),!0):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(l.default.Attributor.Class),s=new c("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(4),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="blockquote",i.tagName="blockquote",t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(4),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(((r=i)&&r.__esModule?r:{default:r}).default);a.blotName="header",a.tagName=["H1","H2","H3","H4","H5","H6"],t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=c(n(0)),a=c(n(4)),l=c(n(25));function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,[{key:"format",value:function(e,n){e!==p.blotName||n?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(i.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:o(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(a.default);d.blotName="list-item",d.tagName="LI";var p=function(e){function t(e){s(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=function(t){if(t.target.parentNode===e){var r=n.statics.formats(e),o=i.default.find(t.target);"checked"===r?o.format("list","unchecked"):"unchecked"===r&&o.format("list","checked")}};return e.addEventListener("touchstart",r),e.addEventListener("mousedown",r),n}return f(t,e),r(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",r=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"checked"!==e&&"unchecked"!==e||r.setAttribute("data-checked","checked"===e),r}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(e,n){if(e instanceof d)o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),i=this.split(r);i.parent.insertBefore(e,i)}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=i.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(l.default);p.blotName="list",p.scope=i.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[d],t.ListItem=d,t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(56),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="italic",i.tagName=["EM","I"],t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(6),l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default);l.blotName="script",l.tagName=["SUB","SUP"],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(6),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="strike",i.tagName="S",t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(6),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="underline",i.tagName="U",t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(0),l=(r=a)&&r.__esModule?r:{default:r},c=n(27),s=["alt","height","width"],u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){s.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return s.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,c.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(l.default.Embed);u.blotName="image",u.tagName="IMG",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(4),l=n(27),c=(r=l)&&r.__esModule?r:{default:r},s=["height","width"],u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){s.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return s.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return c.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.BlockEmbed);u.blotName="video",u.className="ql-video",u.tagName="IFRAME",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=c(n(35)),a=c(n(5)),l=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,null,[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(i.default);d.blotName="formula",d.className="ql-formula",d.tagName="SPAN";var p=function(e){function t(){s(this,t);var e=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return f(t,e),r(t,null,[{key:"register",value:function(){a.default.register(d,!0)}}]),t}(l.default);t.FormulaBlot=d,t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=c(n(0)),a=c(n(5)),l=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(c(n(13)).default);d.className="ql-syntax";var p=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),h=function(e){function t(e,n){s(this,t);var r=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var o=null;return r.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(o),o=setTimeout((function(){r.highlight(),o=null}),r.options.interval)})),r.highlight(),r}return f(t,e),r(t,null,[{key:"register",value:function(){a.default.register(p,!0),a.default.register(d,!0)}}]),r(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(a.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(d).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(a.default.sources.SILENT),null!=t&&this.quill.setSelection(t,a.default.sources.SILENT)}}}]),t}(l.default);h.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=d,t.CodeToken=p,t.default=h},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var r=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=f(n(3)),a=f(n(8)),l=n(43),c=f(l),s=n(15),u=f(n(41));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],m=function(e){function t(e,n){d(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=v);var r=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-bubble"),r}return h(t,e),o(t,[{key:"extendToolbar",value:function(e){this.tooltip=new g(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),u.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),u.default)}}]),t}(c.default);m.DEFAULTS=(0,i.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var g=function(e){function t(e,n){d(this,t);var r=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t,n,o){if(e===a.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&o===a.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var i=r.quill.getLines(t.index,t.length);if(1===i.length)r.position(r.quill.getBounds(t));else{var l=i[i.length-1],c=r.quill.getIndex(l),u=Math.min(l.length()-1,t.index+t.length-c),f=r.quill.getBounds(new s.Range(c,u));r.position(f)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return h(t,e),o(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),o=this.root.querySelector(".ql-tooltip-arrow");if(o.style.marginLeft="",0===n)return n;o.style.marginLeft=-1*n-o.offsetWidth/2+"px"}}]),t}(l.BaseTooltip);g.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=g,t.default=m},function(e,t,n){e.exports=n(63)}]).default},e.exports=r()},7787:function(e,t){"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");
32 /**
33 * @license React
34 * react-is.production.min.js
35 *
36 * Copyright (c) Facebook, Inc. and its affiliates.
37 *
38 * This source code is licensed under the MIT license found in the
39 * LICENSE file in the root directory of this source tree.
40 */function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case l:case a:case d:case p:return e;default:switch(e=e&&e.$$typeof){case u:case s:case f:case v:case h:case c:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=f,t.isFragment=function(e){return g(e)===i},t.isMemo=function(e){return g(e)===h}},6351:function(e,t,n){"use strict";e.exports=n(7787)},2551:function(e,t,n){"use strict";
41 /**
42 * @license React
43 * react-dom.production.min.js
44 *
45 * Copyright (c) Facebook, Inc. and its affiliates.
46 *
47 * This source code is licensed under the MIT license found in the
48 * LICENSE file in the root directory of this source tree.
49 */var r=n(6540),o=n(9982);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,l={};function c(e,t){s(e,t),s(e+"Capture",t)}function s(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function v(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function y(e,t,n,r){var o=m.hasOwnProperty(t)?m[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!f.call(h,e)||!f.call(p,e)&&(d.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,b);m[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,b);m[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,b);m[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),S=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),_=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),I=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var M=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var R=Symbol.iterator;function A(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=R&&e[R]||e["@@iterator"])?e:null}var T,q=Object.assign;function D(e){if(void 0===T)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);T=t&&t[1]||""}return"\n"+T+e}var L=!1;function z(e,t){if(!e||L)return"";L=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var c="\n"+o[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=a&&0<=l);break}}}finally{L=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?D(e):""}function B(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function F(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case C:return"Fragment";case S:return"Portal";case E:return"Profiler";case k:return"StrictMode";case $:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case _:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case j:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case P:return null!==(t=e.displayName||null)?t:F(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return F(e(t))}catch(e){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return F(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function U(e){e._valueTracker||(e._valueTracker=function(e){var t=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function Z(e,t){Q(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return q({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function ie(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ce(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var se,ue,fe=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((se=se||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=se.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function ve(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ve(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ge=q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,Ce=null,ke=null;function Ee(e){if(e=wo(e)){if("function"!=typeof Se)throw Error(i(280));var t=e.stateNode;t&&(t=So(t),Se(e.stateNode,e.type,t))}}function Oe(e){Ce?ke?ke.push(e):ke=[e]:Ce=e}function _e(){if(Ce){var e=Ce,t=ke;if(ke=Ce=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function je(e,t){return e(t)}function $e(){}var Ne=!1;function Pe(e,t,n){if(Ne)return e(t,n);Ne=!0;try{return je(e,t,n)}finally{Ne=!1,(null!==Ce||null!==ke)&&($e(),_e())}}function Ie(e,t){var n=e.stateNode;if(null===n)return null;var r=So(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Me=!1;if(u)try{var Re={};Object.defineProperty(Re,"passive",{get:function(){Me=!0}}),window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch(ue){Me=!1}function Ae(e,t,n,r,o,i,a,l,c){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var Te=!1,qe=null,De=!1,Le=null,ze={onError:function(e){Te=!0,qe=e}};function Be(e,t,n,r,o,i,a,l,c){Te=!1,qe=null,Ae.apply(ze,arguments)}function Fe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function We(e){if(Fe(e)!==e)throw Error(i(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Fe(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return We(o),e;if(a===r)return We(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var l=!1,c=o.child;c;){if(c===n){l=!0,n=o,r=a;break}if(c===r){l=!0,r=o,n=a;break}c=c.sibling}if(!l){for(c=a.child;c;){if(c===n){l=!0,n=a,r=o;break}if(c===r){l=!0,r=a,n=o;break}c=c.sibling}if(!l)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ue(e):null}function Ue(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ue(e);if(null!==t)return t;e=e.sibling}return null}var Ge=o.unstable_scheduleCallback,Ye=o.unstable_cancelCallback,Ke=o.unstable_shouldYield,Xe=o.unstable_requestPaint,Qe=o.unstable_now,Ze=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/ct|0)|0},lt=Math.log,ct=Math.LN2;var st=64,ut=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=ft(l):0!==(i&=a)&&(r=ft(i))}else 0!==(a=n&~o)?r=ft(a):0!==i&&(r=ft(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function vt(){var e=st;return!(4194240&(st<<=1))&&(st=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var yt=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var xt,St,Ct,kt,Et,Ot=!1,_t=[],jt=null,$t=null,Nt=null,Pt=new Map,It=new Map,Mt=[],Rt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function At(e,t){switch(e){case"focusin":case"focusout":jt=null;break;case"dragenter":case"dragleave":$t=null;break;case"mouseover":case"mouseout":Nt=null;break;case"pointerover":case"pointerout":Pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function Tt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=wo(t))&&St(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function qt(e){var t=yo(e.target);if(null!==t){var n=Fe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void Et(e.priority,(function(){Ct(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Dt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Lt(e,t,n){Dt(e)&&n.delete(t)}function zt(){Ot=!1,null!==jt&&Dt(jt)&&(jt=null),null!==$t&&Dt($t)&&($t=null),null!==Nt&&Dt(Nt)&&(Nt=null),Pt.forEach(Lt),It.forEach(Lt)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ot||(Ot=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,zt)))}function Ft(e){function t(t){return Bt(t,e)}if(0<_t.length){Bt(_t[0],e);for(var n=1;n<_t.length;n++){var r=_t[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==jt&&Bt(jt,e),null!==$t&&Bt($t,e),null!==Nt&&Bt(Nt,e),Pt.forEach(t),It.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)qt(n),null===n.blockedOn&&Mt.shift()}var Ht=w.ReactCurrentBatchConfig,Wt=!0;function Vt(e,t,n,r){var o=yt,i=Ht.transition;Ht.transition=null;try{yt=1,Gt(e,t,n,r)}finally{yt=o,Ht.transition=i}}function Ut(e,t,n,r){var o=yt,i=Ht.transition;Ht.transition=null;try{yt=4,Gt(e,t,n,r)}finally{yt=o,Ht.transition=i}}function Gt(e,t,n,r){if(Wt){var o=Kt(e,t,n,r);if(null===o)Wr(e,t,r,Yt,n),At(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return jt=Tt(jt,e,t,n,r,o),!0;case"dragenter":return $t=Tt($t,e,t,n,r,o),!0;case"mouseover":return Nt=Tt(Nt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Pt.set(i,Tt(Pt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,It.set(i,Tt(It.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(At(e,r),4&t&&-1<Rt.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&xt(i),null===(i=Kt(e,t,n,r))&&Wr(e,t,r,Yt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var Yt=null;function Kt(e,t,n,r){if(Yt=null,null!==(e=yo(e=xe(r))))if(null===(t=Fe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Zt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Zt,r=n.length,o="value"in Qt?Qt.value:Qt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return q(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,cn,sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(sn),fn=q({},sn,{view:0,detail:0}),dn=on(fn),pn=q({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(an=e.screenX-cn.screenX,ln=e.screenY-cn.screenY):ln=an=0,cn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),hn=on(pn),vn=on(q({},pn,{dataTransfer:0})),mn=on(q({},fn,{relatedTarget:0})),gn=on(q({},sn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=q({},sn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(bn),wn=on(q({},sn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function En(){return kn}var On=q({},fn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),_n=on(On),jn=on(q({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),$n=on(q({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),Nn=on(q({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=q({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),In=on(Pn),Mn=[9,13,27,32],Rn=u&&"CompositionEvent"in window,An=null;u&&"documentMode"in document&&(An=document.documentMode);var Tn=u&&"TextEvent"in window&&!An,qn=u&&(!Rn||An&&8<An&&11>=An),Dn=String.fromCharCode(32),Ln=!1;function zn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Fn=!1;var Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function Vn(e,t,n,r){Oe(r),0<(t=Ur(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Un=null,Gn=null;function Yn(e){Dr(e,0)}function Kn(e){if(G(xo(e)))return e}function Xn(e,t){if("change"===e)return t}var Qn=!1;if(u){var Zn;if(u){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Zn=Jn}else Zn=!1;Qn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){Un&&(Un.detachEvent("onpropertychange",nr),Gn=Un=null)}function nr(e){if("value"===e.propertyName&&Kn(Gn)){var t=[];Vn(t,Gn,e,xe(e)),Pe(Yn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Gn=n,(Un=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(Gn)}function ir(e,t){if("click"===e)return Kn(t)}function ar(e,t){if("input"===e||"change"===e)return Kn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function cr(e,t){if(lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!f.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ur(n,i);var a=ur(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var vr=u&&"documentMode"in document&&11>=document.documentMode,mr=null,gr=null,br=null,yr=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==mr||mr!==Y(r)||("selectionStart"in(r=mr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&cr(br,r)||(br=r,0<(r=Ur(gr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},Cr={},kr={};function Er(e){if(Cr[e])return Cr[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return Cr[e]=n[t];return e}u&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var Or=Er("animationend"),_r=Er("animationiteration"),jr=Er("animationstart"),$r=Er("transitionend"),Nr=new Map,Pr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ir(e,t){Nr.set(e,t),c(t,[e])}for(var Mr=0;Mr<Pr.length;Mr++){var Rr=Pr[Mr];Ir(Rr.toLowerCase(),"on"+(Rr[0].toUpperCase()+Rr.slice(1)))}Ir(Or,"onAnimationEnd"),Ir(_r,"onAnimationIteration"),Ir(jr,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir($r,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ar="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Tr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ar));function qr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,l,c,s){if(Be.apply(this,arguments),Te){if(!Te)throw Error(i(198));var u=qe;Te=!1,qe=null,De||(De=!0,Le=u)}}(r,t,void 0,e),e.currentTarget=null}function Dr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],c=l.instance,s=l.currentTarget;if(l=l.listener,c!==i&&o.isPropagationStopped())break e;qr(o,l,s),i=c}else for(a=0;a<r.length;a++){if(c=(l=r[a]).instance,s=l.currentTarget,l=l.listener,c!==i&&o.isPropagationStopped())break e;qr(o,l,s),i=c}}}if(De)throw e=Le,De=!1,Le=null,e}function Lr(e,t){var n=t[mo];void 0===n&&(n=t[mo]=new Set);var r=e+"__bubble";n.has(r)||(Hr(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),Hr(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Fr(e){if(!e[Br]){e[Br]=!0,a.forEach((function(t){"selectionchange"!==t&&(Tr.has(t)||zr(t,!1,e),zr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,zr("selectionchange",!1,t))}}function Hr(e,t,n,r){switch(Xt(t)){case 1:var o=Vt;break;case 4:o=Ut;break;default:o=Gt}n=o.bind(null,t,n,e),o=void 0,!Me||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var c=a.tag;if((3===c||4===c)&&((c=a.stateNode.containerInfo)===o||8===c.nodeType&&c.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=yo(l)))return;if(5===(c=a.tag)||6===c){r=i=a;continue e}l=l.parentNode}}r=r.return}Pe((function(){var r=i,o=xe(n),a=[];e:{var l=Nr.get(e);if(void 0!==l){var c=un,s=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":c=_n;break;case"focusin":s="focus",c=mn;break;case"focusout":s="blur",c=mn;break;case"beforeblur":case"afterblur":c=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=$n;break;case Or:case _r:case jr:c=gn;break;case $r:c=Nn;break;case"scroll":c=dn;break;case"wheel":c=In;break;case"copy":case"cut":case"paste":c=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=jn}var u=!!(4&t),f=!u&&"scroll"===e,d=u?null!==l?l+"Capture":null:l;u=[];for(var p,h=r;null!==h;){var v=(p=h).stateNode;if(5===p.tag&&null!==v&&(p=v,null!==d&&(null!=(v=Ie(h,d))&&u.push(Vr(h,v,p)))),f)break;h=h.return}0<u.length&&(l=new c(l,s,null,n,o),a.push({event:l,listeners:u}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===we||!(s=n.relatedTarget||n.fromElement)||!yo(s)&&!s[vo])&&(c||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,c?(c=r,null!==(s=(s=n.relatedTarget||n.toElement)?yo(s):null)&&(s!==(f=Fe(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(c=null,s=r),c!==s)){if(u=hn,v="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=jn,v="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==c?l:xo(c),p=null==s?l:xo(s),(l=new u(v,h+"leave",c,n,o)).target=f,l.relatedTarget=p,v=null,yo(o)===r&&((u=new u(d,h+"enter",s,n,o)).target=p,u.relatedTarget=f,v=u),f=v,c&&s)e:{for(d=s,h=0,p=u=c;p;p=Gr(p))h++;for(p=0,v=d;v;v=Gr(v))p++;for(;0<h-p;)u=Gr(u),h--;for(;0<p-h;)d=Gr(d),p--;for(;h--;){if(u===d||null!==d&&u===d.alternate)break e;u=Gr(u),d=Gr(d)}u=null}else u=null;null!==c&&Yr(a,l,c,u,!1),null!==s&&null!==f&&Yr(a,f,s,u,!0)}if("select"===(c=(l=r?xo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===c&&"file"===l.type)var m=Xn;else if(Wn(l))if(Qn)m=ar;else{m=or;var g=rr}else(c=l.nodeName)&&"input"===c.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(m=ir);switch(m&&(m=m(e,r))?Vn(a,m,n,o):(g&&g(e,l,r),"focusout"===e&&(g=l._wrapperState)&&g.controlled&&"number"===l.type&&ee(l,"number",l.value)),g=r?xo(r):window,e){case"focusin":(Wn(g)||"true"===g.contentEditable)&&(mr=g,gr=r,br=null);break;case"focusout":br=gr=mr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,wr(a,n,o);break;case"selectionchange":if(vr)break;case"keydown":case"keyup":wr(a,n,o)}var b;if(Rn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Fn?zn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(qn&&"ko"!==n.locale&&(Fn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Fn&&(b=en()):(Zt="value"in(Qt=o)?Qt.value:Qt.textContent,Fn=!0)),0<(g=Ur(r,y)).length&&(y=new wn(y,e,null,n,o),a.push({event:y,listeners:g}),b?y.data=b:null!==(b=Bn(n))&&(y.data=b))),(b=Tn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(Ln=!0,Dn);case"textInput":return(e=t.data)===Dn&&Ln?null:e;default:return null}}(e,n):function(e,t){if(Fn)return"compositionend"===e||!Rn&&zn(e,t)?(e=en(),Jt=Zt=Qt=null,Fn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return qn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Ur(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b))}Dr(a,t)}))}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ur(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Ie(e,n))&&r.unshift(Vr(e,i,o)),null!=(i=Ie(e,t))&&r.push(Vr(e,i,o))),e=e.return}return r}function Gr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,c=l.alternate,s=l.stateNode;if(null!==c&&c===r)break;5===l.tag&&null!==s&&(l=s,o?null!=(c=Ie(n,i))&&a.unshift(Vr(n,c,l)):o||null!=(c=Ie(n,i))&&a.push(Vr(n,c,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Kr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Qr(e){return("string"==typeof e?e:""+e).replace(Kr,"\n").replace(Xr,"")}function Zr(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(i(425))}function Jr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout((function(){throw e}))}function co(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Ft(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Ft(t)}function so(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,vo="__reactContainer$"+fo,mo="__reactEvents$"+fo,go="__reactListeners$"+fo,bo="__reactHandles$"+fo;function yo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[vo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[po])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[po]||e[vo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function So(e){return e[ho]||null}var Co=[],ko=-1;function Eo(e){return{current:e}}function Oo(e){0>ko||(e.current=Co[ko],Co[ko]=null,ko--)}function _o(e,t){ko++,Co[ko]=e.current,e.current=t}var jo={},$o=Eo(jo),No=Eo(!1),Po=jo;function Io(e,t){var n=e.type.contextTypes;if(!n)return jo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Mo(e){return null!=(e=e.childContextTypes)}function Ro(){Oo(No),Oo($o)}function Ao(e,t,n){if($o.current!==jo)throw Error(i(168));_o($o,t),_o(No,n)}function To(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,H(e)||"Unknown",o));return q({},n,r)}function qo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||jo,Po=$o.current,_o($o,e),_o(No,No.current),!0}function Do(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=To(e,t,Po),r.__reactInternalMemoizedMergedChildContext=e,Oo(No),Oo($o),_o($o,e)):Oo(No),_o(No,n)}var Lo=null,zo=!1,Bo=!1;function Fo(e){null===Lo?Lo=[e]:Lo.push(e)}function Ho(){if(!Bo&&null!==Lo){Bo=!0;var e=0,t=yt;try{var n=Lo;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Lo=null,zo=!1}catch(t){throw null!==Lo&&(Lo=Lo.slice(e+1)),Ge(Je,Ho),t}finally{yt=t,Bo=!1}}return null}var Wo=[],Vo=0,Uo=null,Go=0,Yo=[],Ko=0,Xo=null,Qo=1,Zo="";function Jo(e,t){Wo[Vo++]=Go,Wo[Vo++]=Uo,Uo=e,Go=t}function ei(e,t,n){Yo[Ko++]=Qo,Yo[Ko++]=Zo,Yo[Ko++]=Xo,Xo=e;var r=Qo;e=Zo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Qo=1<<32-at(t)+o|n<<o|r,Zo=i+e}else Qo=1<<i|n<<o|r,Zo=e}function ti(e){null!==e.return&&(Jo(e,1),ei(e,1,0))}function ni(e){for(;e===Uo;)Uo=Wo[--Vo],Wo[Vo]=null,Go=Wo[--Vo],Wo[Vo]=null;for(;e===Xo;)Xo=Yo[--Ko],Yo[Ko]=null,Zo=Yo[--Ko],Yo[Ko]=null,Qo=Yo[--Ko],Yo[Ko]=null}var ri=null,oi=null,ii=!1,ai=null;function li(e,t){var n=Ps(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ci(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=so(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xo?{id:Qo,overflow:Zo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ps(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function si(e){return!(!(1&e.mode)||128&e.flags)}function ui(e){if(ii){var t=oi;if(t){var n=t;if(!ci(e,t)){if(si(e))throw Error(i(418));t=so(n.nextSibling);var r=ri;t&&ci(e,t)?li(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(si(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function fi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function di(e){if(e!==ri)return!1;if(!ii)return fi(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(si(e))throw pi(),Error(i(418));for(;t;)li(e,t),t=so(t.nextSibling)}if(fi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=so(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?so(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=so(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function vi(e){null===ai?ai=[e]:ai.push(e)}var mi=w.ReactCurrentBatchConfig;function gi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function bi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yi(e){return(0,e._init)(e._payload)}function wi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ms(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function c(e,t,n,r){return null===t||6!==t.tag?((t=qs(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var i=n.type;return i===C?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===I&&yi(i)===t.type)?((r=o(t,n.props)).ref=gi(e,t,n),r.return=e,r):((r=Rs(n.type,n.key,n.props,null,e.mode,r)).ref=gi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ds(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=As(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=qs(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Rs(t.type,t.key,t.props,null,e.mode,n)).ref=gi(e,null,t),n.return=e,n;case S:return(t=Ds(t,e.mode,n)).return=e,t;case I:return d(e,(0,t._init)(t._payload),n)}if(te(t)||A(t))return(t=As(t,e.mode,n,null)).return=e,t;bi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:c(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===o?s(e,t,n,r):null;case S:return n.key===o?u(e,t,n,r):null;case I:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||A(n))return null!==o?null:f(e,t,n,r,null);bi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return c(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case x:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case S:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case I:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||A(r))return f(t,e=e.get(n)||null,r,o,null);bi(t,r)}return null}function v(o,i,l,c){for(var s=null,u=null,f=i,v=i=0,m=null;null!==f&&v<l.length;v++){f.index>v?(m=f,f=null):m=f.sibling;var g=p(o,f,l[v],c);if(null===g){null===f&&(f=m);break}e&&f&&null===g.alternate&&t(o,f),i=a(g,i,v),null===u?s=g:u.sibling=g,u=g,f=m}if(v===l.length)return n(o,f),ii&&Jo(o,v),s;if(null===f){for(;v<l.length;v++)null!==(f=d(o,l[v],c))&&(i=a(f,i,v),null===u?s=f:u.sibling=f,u=f);return ii&&Jo(o,v),s}for(f=r(o,f);v<l.length;v++)null!==(m=h(f,o,v,l[v],c))&&(e&&null!==m.alternate&&f.delete(null===m.key?v:m.key),i=a(m,i,v),null===u?s=m:u.sibling=m,u=m);return e&&f.forEach((function(e){return t(o,e)})),ii&&Jo(o,v),s}function m(o,l,c,s){var u=A(c);if("function"!=typeof u)throw Error(i(150));if(null==(c=u.call(c)))throw Error(i(151));for(var f=u=null,v=l,m=l=0,g=null,b=c.next();null!==v&&!b.done;m++,b=c.next()){v.index>m?(g=v,v=null):g=v.sibling;var y=p(o,v,b.value,s);if(null===y){null===v&&(v=g);break}e&&v&&null===y.alternate&&t(o,v),l=a(y,l,m),null===f?u=y:f.sibling=y,f=y,v=g}if(b.done)return n(o,v),ii&&Jo(o,m),u;if(null===v){for(;!b.done;m++,b=c.next())null!==(b=d(o,b.value,s))&&(l=a(b,l,m),null===f?u=b:f.sibling=b,f=b);return ii&&Jo(o,m),u}for(v=r(o,v);!b.done;m++,b=c.next())null!==(b=h(v,o,m,b.value,s))&&(e&&null!==b.alternate&&v.delete(null===b.key?m:b.key),l=a(b,l,m),null===f?u=b:f.sibling=b,f=b);return e&&v.forEach((function(e){return t(o,e)})),ii&&Jo(o,m),u}return function e(r,i,a,c){if("object"==typeof a&&null!==a&&a.type===C&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var s=a.key,u=i;null!==u;){if(u.key===s){if((s=a.type)===C){if(7===u.tag){n(r,u.sibling),(i=o(u,a.props.children)).return=r,r=i;break e}}else if(u.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===I&&yi(s)===u.type){n(r,u.sibling),(i=o(u,a.props)).ref=gi(r,u,a),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===C?((i=As(a.props.children,r.mode,c,a.key)).return=r,r=i):((c=Rs(a.type,a.key,a.props,null,r.mode,c)).ref=gi(r,i,a),c.return=r,r=c)}return l(r);case S:e:{for(u=a.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Ds(a,r.mode,c)).return=r,r=i}return l(r);case I:return e(r,i,(u=a._init)(a._payload),c)}if(te(a))return v(r,i,a,c);if(A(a))return m(r,i,a,c);bi(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=qs(a,r.mode,c)).return=r,r=i),l(r)):n(r,i)}}var xi=wi(!0),Si=wi(!1),Ci=Eo(null),ki=null,Ei=null,Oi=null;function _i(){Oi=Ei=ki=null}function ji(e){var t=Ci.current;Oo(Ci),e._currentValue=t}function $i(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ni(e,t){ki=e,Oi=Ei=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(yl=!0),e.firstContext=null)}function Pi(e){var t=e._currentValue;if(Oi!==e)if(e={context:e,memoizedValue:t,next:null},null===Ei){if(null===ki)throw Error(i(308));Ei=e,ki.dependencies={lanes:0,firstContext:e}}else Ei=Ei.next=e;return t}var Ii=null;function Mi(e){null===Ii?Ii=[e]:Ii.push(e)}function Ri(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Mi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ai(e,r)}function Ai(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ti=!1;function qi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Di(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Li(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&jc){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ai(e,n)}return null===(o=r.interleaved)?(t.next=t,Mi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ai(e,n)}function Bi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Fi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Hi(e,t,n,r){var o=e.updateQueue;Ti=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var c=l,s=c.next;c.next=null,null===a?i=s:a.next=s,a=c;var u=e.alternate;null!==u&&((l=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===l?u.firstBaseUpdate=s:l.next=s,u.lastBaseUpdate=c))}if(null!==i){var f=o.baseState;for(a=0,u=s=c=null,l=i;;){var d=l.lane,p=l.eventTime;if((r&d)===d){null!==u&&(u=u.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,v=l;switch(d=t,p=n,v.tag){case 1:if("function"==typeof(h=v.payload)){f=h.call(p,f,d);break e}f=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(d="function"==typeof(h=v.payload)?h.call(p,f,d):h))break e;f=q({},f,d);break e;case 2:Ti=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(d=o.effects)?o.effects=[l]:d.push(l))}else p={eventTime:p,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(s=u=p,c=f):u=u.next=p,a|=d;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(d=l).next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}if(null===u&&(c=f),o.baseState=c,o.firstBaseUpdate=s,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Tc|=a,e.lanes=a,e.memoizedState=f}}function Wi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var Vi={},Ui=Eo(Vi),Gi=Eo(Vi),Yi=Eo(Vi);function Ki(e){if(e===Vi)throw Error(i(174));return e}function Xi(e,t){switch(_o(Yi,t),_o(Gi,e),_o(Ui,Vi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ce(null,"");break;default:t=ce(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Oo(Ui),_o(Ui,t)}function Qi(){Oo(Ui),Oo(Gi),Oo(Yi)}function Zi(e){Ki(Yi.current);var t=Ki(Ui.current),n=ce(t,e.type);t!==n&&(_o(Gi,e),_o(Ui,n))}function Ji(e){Gi.current===e&&(Oo(Ui),Oo(Gi))}var ea=Eo(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=w.ReactCurrentDispatcher,ia=w.ReactCurrentBatchConfig,aa=0,la=null,ca=null,sa=null,ua=!1,fa=!1,da=0,pa=0;function ha(){throw Error(i(321))}function va(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function ma(e,t,n,r,o,a){if(aa=a,la=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Ja:el,e=n(r,o),fa){a=0;do{if(fa=!1,da=0,25<=a)throw Error(i(301));a+=1,sa=ca=null,t.updateQueue=null,oa.current=tl,e=n(r,o)}while(fa)}if(oa.current=Za,t=null!==ca&&null!==ca.next,aa=0,sa=ca=la=null,ua=!1,t)throw Error(i(300));return e}function ga(){var e=0!==da;return da=0,e}function ba(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===sa?la.memoizedState=sa=e:sa=sa.next=e,sa}function ya(){if(null===ca){var e=la.alternate;e=null!==e?e.memoizedState:null}else e=ca.next;var t=null===sa?la.memoizedState:sa.next;if(null!==t)sa=t,ca=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ca=e).memoizedState,baseState:ca.baseState,baseQueue:ca.baseQueue,queue:ca.queue,next:null},null===sa?la.memoizedState=sa=e:sa=sa.next=e}return sa}function wa(e,t){return"function"==typeof t?t(e):t}function xa(e){var t=ya(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ca,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var l=o.next;o.next=a.next,a.next=l}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var c=l=null,s=null,u=a;do{var f=u.lane;if((aa&f)===f)null!==s&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===s?(c=s=d,l=r):s=s.next=d,la.lanes|=f,Tc|=f}u=u.next}while(null!==u&&u!==a);null===s?l=r:s.next=c,lr(r,t.memoizedState)||(yl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,la.lanes|=a,Tc|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Sa(e){var t=ya(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{a=e(a,l.action),l=l.next}while(l!==o);lr(a,t.memoizedState)||(yl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ca(){}function ka(e,t){var n=la,r=ya(),o=t(),a=!lr(r.memoizedState,o);if(a&&(r.memoizedState=o,yl=!0),r=r.queue,Ta(_a.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==sa&&1&sa.memoizedState.tag){if(n.flags|=2048,Pa(9,Oa.bind(null,n,r,o,t),void 0,null),null===$c)throw Error(i(349));30&aa||Ea(n,t,o)}return o}function Ea(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Oa(e,t,n,r){t.value=n,t.getSnapshot=r,ja(t)&&$a(e)}function _a(e,t,n){return n((function(){ja(t)&&$a(e)}))}function ja(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function $a(e){var t=Ai(e,1);null!==t&&ns(t,e,1,-1)}function Na(e){var t=ba();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ya.bind(null,la,e),[t.memoizedState,e]}function Pa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ia(){return ya().memoizedState}function Ma(e,t,n,r){var o=ba();la.flags|=e,o.memoizedState=Pa(1|t,n,void 0,void 0===r?null:r)}function Ra(e,t,n,r){var o=ya();r=void 0===r?null:r;var i=void 0;if(null!==ca){var a=ca.memoizedState;if(i=a.destroy,null!==r&&va(r,a.deps))return void(o.memoizedState=Pa(t,n,i,r))}la.flags|=e,o.memoizedState=Pa(1|t,n,i,r)}function Aa(e,t){return Ma(8390656,8,e,t)}function Ta(e,t){return Ra(2048,8,e,t)}function qa(e,t){return Ra(4,2,e,t)}function Da(e,t){return Ra(4,4,e,t)}function La(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function za(e,t,n){return n=null!=n?n.concat([e]):null,Ra(4,4,La.bind(null,t,e),n)}function Ba(){}function Fa(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&va(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ha(e,t){var n=ya();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&va(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Wa(e,t,n){return 21&aa?(lr(n,t)||(n=vt(),la.lanes|=n,Tc|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,yl=!0),e.memoizedState=n)}function Va(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{yt=n,ia.transition=r}}function Ua(){return ya().memoizedState}function Ga(e,t,n){var r=ts(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ka(e))Xa(t,n);else if(null!==(n=Ri(e,t,n,r))){ns(n,e,r,es()),Qa(n,t,r)}}function Ya(e,t,n){var r=ts(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ka(e))Xa(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,a)){var c=t.interleaved;return null===c?(o.next=o,Mi(t)):(o.next=c.next,c.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Ri(e,t,o,r))&&(ns(n,e,r,o=es()),Qa(n,t,r))}}function Ka(e){var t=e.alternate;return e===la||null!==t&&t===la}function Xa(e,t){fa=ua=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var Za={readContext:Pi,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Ja={readContext:Pi,useCallback:function(e,t){return ba().memoizedState=[e,void 0===t?null:t],e},useContext:Pi,useEffect:Aa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ma(4194308,4,La.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ma(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ma(4,2,e,t)},useMemo:function(e,t){var n=ba();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ba();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ga.bind(null,la,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ba().memoizedState=e},useState:Na,useDebugValue:Ba,useDeferredValue:function(e){return ba().memoizedState=e},useTransition:function(){var e=Na(!1),t=e[0];return e=Va.bind(null,e[1]),ba().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=la,o=ba();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===$c)throw Error(i(349));30&aa||Ea(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Aa(_a.bind(null,r,a,e),[e]),r.flags|=2048,Pa(9,Oa.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ba(),t=$c.identifierPrefix;if(ii){var n=Zo;t=":"+t+"R"+(n=(Qo&~(1<<32-at(Qo)-1)).toString(32)+n),0<(n=da++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},el={readContext:Pi,useCallback:Fa,useContext:Pi,useEffect:Ta,useImperativeHandle:za,useInsertionEffect:qa,useLayoutEffect:Da,useMemo:Ha,useReducer:xa,useRef:Ia,useState:function(){return xa(wa)},useDebugValue:Ba,useDeferredValue:function(e){return Wa(ya(),ca.memoizedState,e)},useTransition:function(){return[xa(wa)[0],ya().memoizedState]},useMutableSource:Ca,useSyncExternalStore:ka,useId:Ua,unstable_isNewReconciler:!1},tl={readContext:Pi,useCallback:Fa,useContext:Pi,useEffect:Ta,useImperativeHandle:za,useInsertionEffect:qa,useLayoutEffect:Da,useMemo:Ha,useReducer:Sa,useRef:Ia,useState:function(){return Sa(wa)},useDebugValue:Ba,useDeferredValue:function(e){var t=ya();return null===ca?t.memoizedState=e:Wa(t,ca.memoizedState,e)},useTransition:function(){return[Sa(wa)[0],ya().memoizedState]},useMutableSource:Ca,useSyncExternalStore:ka,useId:Ua,unstable_isNewReconciler:!1};function nl(e,t){if(e&&e.defaultProps){for(var n in t=q({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rl(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:q({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ol={isMounted:function(e){return!!(e=e._reactInternals)&&Fe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=es(),o=ts(e),i=Li(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=zi(e,i,o))&&(ns(t,e,o,r),Bi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=es(),o=ts(e),i=Li(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=zi(e,i,o))&&(ns(t,e,o,r),Bi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=es(),r=ts(e),o=Li(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=zi(e,o,r))&&(ns(t,e,r,n),Bi(t,e,r))}};function il(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!cr(n,r)||!cr(o,i))}function al(e,t,n){var r=!1,o=jo,i=t.contextType;return"object"==typeof i&&null!==i?i=Pi(i):(o=Mo(t)?Po:$o.current,i=(r=null!=(r=t.contextTypes))?Io(e,o):jo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ol,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ll(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ol.enqueueReplaceState(t,t.state,null)}function cl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},qi(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Pi(i):(i=Mo(t)?Po:$o.current,o.context=Io(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(rl(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ol.enqueueReplaceState(o,o.state,null),Hi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function sl(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function ul(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var dl="function"==typeof WeakMap?WeakMap:Map;function pl(e,t,n){(n=Li(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Wc||(Wc=!0,Vc=r),fl(0,t)},n}function hl(e,t,n){(n=Li(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){fl(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){fl(0,t),"function"!=typeof r&&(null===Uc?Uc=new Set([this]):Uc.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function vl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new dl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Es.bind(null,e,t,n),t.then(e,e))}function ml(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gl(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Li(-1,1)).tag=2,zi(n,t,1))),n.lanes|=1),e)}var bl=w.ReactCurrentOwner,yl=!1;function wl(e,t,n,r){t.child=null===e?Si(t,null,n,r):xi(t,e.child,n,r)}function xl(e,t,n,r,o){n=n.render;var i=t.ref;return Ni(t,o),r=ma(e,t,n,r,i,o),n=ga(),null===e||yl?(ii&&n&&ti(t),t.flags|=1,wl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wl(e,t,o))}function Sl(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Is(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Rs(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Cl(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:cr)(a,r)&&e.ref===t.ref)return Wl(e,t,o)}return t.flags|=1,(e=Ms(i,r)).ref=t.ref,e.return=t,t.child=e}function Cl(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(cr(i,r)&&e.ref===t.ref){if(yl=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Wl(e,t,o);131072&e.flags&&(yl=!0)}}return Ol(e,t,n,r,o)}function kl(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_o(Mc,Ic),Ic|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,_o(Mc,Ic),Ic|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_o(Mc,Ic),Ic|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,_o(Mc,Ic),Ic|=r;return wl(e,t,o,n),t.child}function El(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ol(e,t,n,r,o){var i=Mo(n)?Po:$o.current;return i=Io(t,i),Ni(t,o),n=ma(e,t,n,r,i,o),r=ga(),null===e||yl?(ii&&r&&ti(t),t.flags|=1,wl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wl(e,t,o))}function _l(e,t,n,r,o){if(Mo(n)){var i=!0;qo(t)}else i=!1;if(Ni(t,o),null===t.stateNode)Hl(e,t),al(t,n,r),cl(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var c=a.context,s=n.contextType;"object"==typeof s&&null!==s?s=Pi(s):s=Io(t,s=Mo(n)?Po:$o.current);var u=n.getDerivedStateFromProps,f="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||c!==s)&&ll(t,a,r,s),Ti=!1;var d=t.memoizedState;a.state=d,Hi(t,r,a,o),c=t.memoizedState,l!==r||d!==c||No.current||Ti?("function"==typeof u&&(rl(t,n,u,r),c=t.memoizedState),(l=Ti||il(t,n,l,r,d,c,s))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=s,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Di(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:nl(t.type,l),a.props=s,f=t.pendingProps,d=a.context,"object"==typeof(c=n.contextType)&&null!==c?c=Pi(c):c=Io(t,c=Mo(n)?Po:$o.current);var p=n.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==f||d!==c)&&ll(t,a,r,c),Ti=!1,d=t.memoizedState,a.state=d,Hi(t,r,a,o);var h=t.memoizedState;l!==f||d!==h||No.current||Ti?("function"==typeof p&&(rl(t,n,p,r),h=t.memoizedState),(s=Ti||il(t,n,s,r,d,h,c)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,c)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=c,r=s):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return jl(e,t,n,r,i,o)}function jl(e,t,n,r,o,i){El(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Do(t,n,!1),Wl(e,t,i);r=t.stateNode,bl.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=xi(t,e.child,null,i),t.child=xi(t,null,l,i)):wl(e,t,l,i),t.memoizedState=r.state,o&&Do(t,n,!0),t.child}function $l(e){var t=e.stateNode;t.pendingContext?Ao(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ao(0,t.context,!1),Xi(e,t.containerInfo)}function Nl(e,t,n,r,o){return hi(),vi(o),t.flags|=256,wl(e,t,n,r),t.child}var Pl,Il,Ml,Rl,Al={dehydrated:null,treeContext:null,retryLane:0};function Tl(e){return{baseLanes:e,cachePool:null,transitions:null}}function ql(e,t,n){var r,o=t.pendingProps,a=ea.current,l=!1,c=!!(128&t.flags);if((r=c)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),_o(ea,1&a),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(c=o.children,e=o.fallback,l?(o=t.mode,l=t.child,c={mode:"hidden",children:c},1&o||null===l?l=Ts(c,o,0,null):(l.childLanes=0,l.pendingProps=c),e=As(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Tl(n),t.memoizedState=Al,e):Dl(t,c));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,l){if(n)return 256&t.flags?(t.flags&=-257,Ll(e,t,l,r=ul(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Ts({mode:"visible",children:r.children},o,0,null),(a=As(a,o,l,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&xi(t,e.child,null,l),t.child.memoizedState=Tl(l),t.memoizedState=Al,a);if(!(1&t.mode))return Ll(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var c=r.dgst;return r=c,Ll(e,t,l,r=ul(a=Error(i(419)),r,void 0))}if(c=!!(l&e.childLanes),yl||c){if(null!==(r=$c)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|l)?0:o)&&o!==a.retryLane&&(a.retryLane=o,Ai(e,o),ns(r,e,o,-1))}return vs(),Ll(e,t,l,r=ul(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=_s.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=so(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Yo[Ko++]=Qo,Yo[Ko++]=Zo,Yo[Ko++]=Xo,Qo=e.id,Zo=e.overflow,Xo=t),t=Dl(t,r.children),t.flags|=4096,t)}(e,t,c,o,r,a,n);if(l){l=o.fallback,c=t.mode,r=(a=e.child).sibling;var s={mode:"hidden",children:o.children};return 1&c||t.child===a?(o=Ms(a,s)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null),null!==r?l=Ms(r,l):(l=As(l,c,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,c=null===(c=e.child.memoizedState)?Tl(n):{baseLanes:c.baseLanes|n,cachePool:null,transitions:c.transitions},l.memoizedState=c,l.childLanes=e.childLanes&~n,t.memoizedState=Al,o}return e=(l=e.child).sibling,o=Ms(l,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Dl(e,t){return(t=Ts({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ll(e,t,n,r){return null!==r&&vi(r),xi(t,e.child,null,n),(e=Dl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),$i(e.return,t,n)}function Bl(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Fl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(wl(e,t,r.children,n),2&(r=ea.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zl(e,n,t);else if(19===e.tag)zl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(_o(ea,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Bl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Bl(t,!0,n,null,i);break;case"together":Bl(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Hl(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Tc|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Ms(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ms(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Vl(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ul(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Gl(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ul(t),null;case 1:case 17:return Mo(t.type)&&Ro(),Ul(t),null;case 3:return r=t.stateNode,Qi(),Oo(No),Oo($o),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(di(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ai&&(as(ai),ai=null))),Il(e,t),Ul(t),null;case 5:Ji(t);var o=Ki(Yi.current);if(n=t.type,null!==e&&null!=t.stateNode)Ml(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Ul(t),null}if(e=Ki(Ui.current),di(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[ho]=a,e=!!(1&t.mode),n){case"dialog":Lr("cancel",r),Lr("close",r);break;case"iframe":case"object":case"embed":Lr("load",r);break;case"video":case"audio":for(o=0;o<Ar.length;o++)Lr(Ar[o],r);break;case"source":Lr("error",r);break;case"img":case"image":case"link":Lr("error",r),Lr("load",r);break;case"details":Lr("toggle",r);break;case"input":X(r,a),Lr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Lr("invalid",r);break;case"textarea":oe(r,a),Lr("invalid",r)}for(var c in be(n,a),o=null,a)if(a.hasOwnProperty(c)){var s=a[c];"children"===c?"string"==typeof s?r.textContent!==s&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,s,e),o=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,s,e),o=["children",""+s]):l.hasOwnProperty(c)&&null!=s&&"onScroll"===c&&Lr("scroll",r)}switch(n){case"input":U(r),J(r,a,!0);break;case"textarea":U(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{c=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[po]=t,e[ho]=r,Pl(e,t,!1,!1),t.stateNode=e;e:{switch(c=ye(n,r),n){case"dialog":Lr("cancel",e),Lr("close",e),o=r;break;case"iframe":case"object":case"embed":Lr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ar.length;o++)Lr(Ar[o],e);o=r;break;case"source":Lr("error",e),o=r;break;case"img":case"image":case"link":Lr("error",e),Lr("load",e),o=r;break;case"details":Lr("toggle",e),o=r;break;case"input":X(e,r),o=K(e,r),Lr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=q({},r,{value:void 0}),Lr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Lr("invalid",e)}for(a in be(n,o),s=o)if(s.hasOwnProperty(a)){var u=s[a];"style"===a?me(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&fe(e,u):"children"===a?"string"==typeof u?("textarea"!==n||""!==u)&&de(e,u):"number"==typeof u&&de(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(l.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Lr("scroll",e):null!=u&&y(e,a,u,c))}switch(n){case"input":U(e),J(e,r,!1);break;case"textarea":U(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ul(t),null;case 6:if(e&&null!=t.stateNode)Rl(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=Ki(Yi.current),Ki(Ui.current),di(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Zr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,!!(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return Ul(t),null;case 13:if(Oo(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&1&t.mode&&!(128&t.flags))pi(),hi(),t.flags|=98560,a=!1;else if(a=di(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else hi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ul(t),a=!1}else null!==ai&&(as(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ea.current?0===Rc&&(Rc=3):vs())),null!==t.updateQueue&&(t.flags|=4),Ul(t),null);case 4:return Qi(),Il(e,t),null===e&&Fr(t.stateNode.containerInfo),Ul(t),null;case 10:return ji(t.type._context),Ul(t),null;case 19:if(Oo(ea),null===(a=t.memoizedState))return Ul(t),null;if(r=!!(128&t.flags),null===(c=a.rendering))if(r)Vl(a,!1);else{if(0!==Rc||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(c=ta(e))){for(t.flags|=128,Vl(a,!1),null!==(r=c.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(c=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=c.childLanes,a.lanes=c.lanes,a.child=c.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,a.type=c.type,e=c.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return _o(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>Fc&&(t.flags|=128,r=!0,Vl(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(c))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Vl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!c.alternate&&!ii)return Ul(t),null}else 2*Qe()-a.renderingStartTime>Fc&&1073741824!==n&&(t.flags|=128,r=!0,Vl(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=a.last)?n.sibling=c:t.child=c,a.last=c)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=ea.current,_o(ea,r?1&n|2:1&n),t):(Ul(t),null);case 22:case 23:return fs(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Ic)&&(Ul(t),6&t.subtreeFlags&&(t.flags|=8192)):Ul(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Yl(e,t){switch(ni(t),t.tag){case 1:return Mo(t.type)&&Ro(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qi(),Oo(No),Oo($o),ra(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ji(t),null;case 13:if(Oo(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Oo(ea),null;case 4:return Qi(),null;case 10:return ji(t.type._context),null;case 22:case 23:return fs(),null;default:return null}}Pl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Il=function(){},Ml=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ki(Ui.current);var i,a=null;switch(n){case"input":o=K(e,o),r=K(e,r),a=[];break;case"select":o=q({},o,{value:void 0}),r=q({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(u in be(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var c=o[u];for(i in c)c.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(l.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var s=r[u];if(c=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&s!==c&&(null!=s||null!=c))if("style"===u)if(c){for(i in c)!c.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&c[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(u,n)),n=s;else"dangerouslySetInnerHTML"===u?(s=s?s.__html:void 0,c=c?c.__html:void 0,null!=s&&c!==s&&(a=a||[]).push(u,s)):"children"===u?"string"!=typeof s&&"number"!=typeof s||(a=a||[]).push(u,""+s):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(l.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&Lr("scroll",e),a||c===s||(a=[])):(a=a||[]).push(u,s))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Rl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Kl=!1,Xl=!1,Ql="function"==typeof WeakSet?WeakSet:Set,Zl=null;function Jl(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){ks(e,t,n)}else n.current=null}function ec(e,t,n){try{n()}catch(n){ks(e,t,n)}}var tc=!1;function nc(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&ec(t,n,i)}o=o.next}while(o!==r)}}function rc(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function oc(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function ic(e){var t=e.alternate;null!==t&&(e.alternate=null,ic(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[mo],delete t[go],delete t[bo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ac(e){return 5===e.tag||3===e.tag||4===e.tag}function lc(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ac(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(cc(e,t,n),e=e.sibling;null!==e;)cc(e,t,n),e=e.sibling}function sc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(sc(e,t,n),e=e.sibling;null!==e;)sc(e,t,n),e=e.sibling}var uc=null,fc=!1;function dc(e,t,n){for(n=n.child;null!==n;)pc(e,t,n),n=n.sibling}function pc(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Xl||Jl(n,t);case 6:var r=uc,o=fc;uc=null,dc(e,t,n),fc=o,null!==(uc=r)&&(fc?(e=uc,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):uc.removeChild(n.stateNode));break;case 18:null!==uc&&(fc?(e=uc,n=n.stateNode,8===e.nodeType?co(e.parentNode,n):1===e.nodeType&&co(e,n),Ft(e)):co(uc,n.stateNode));break;case 4:r=uc,o=fc,uc=n.stateNode.containerInfo,fc=!0,dc(e,t,n),uc=r,fc=o;break;case 0:case 11:case 14:case 15:if(!Xl&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&ec(n,t,a),o=o.next}while(o!==r)}dc(e,t,n);break;case 1:if(!Xl&&(Jl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){ks(n,t,e)}dc(e,t,n);break;case 21:dc(e,t,n);break;case 22:1&n.mode?(Xl=(r=Xl)||null!==n.memoizedState,dc(e,t,n),Xl=r):dc(e,t,n);break;default:dc(e,t,n)}}function hc(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ql),t.forEach((function(t){var r=js.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function vc(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,l=t,c=l;e:for(;null!==c;){switch(c.tag){case 5:uc=c.stateNode,fc=!1;break e;case 3:case 4:uc=c.stateNode.containerInfo,fc=!0;break e}c=c.return}if(null===uc)throw Error(i(160));pc(a,l,o),uc=null,fc=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){ks(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)mc(t,e),t=t.sibling}function mc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vc(t,e),gc(e),4&r){try{nc(3,e,e.return),rc(3,e)}catch(t){ks(e,e.return,t)}try{nc(5,e,e.return)}catch(t){ks(e,e.return,t)}}break;case 1:vc(t,e),gc(e),512&r&&null!==n&&Jl(n,n.return);break;case 5:if(vc(t,e),gc(e),512&r&&null!==n&&Jl(n,n.return),32&e.flags){var o=e.stateNode;try{de(o,"")}catch(t){ks(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,l=null!==n?n.memoizedProps:a,c=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===c&&"radio"===a.type&&null!=a.name&&Q(o,a),ye(c,l);var u=ye(c,a);for(l=0;l<s.length;l+=2){var f=s[l],d=s[l+1];"style"===f?me(o,d):"dangerouslySetInnerHTML"===f?fe(o,d):"children"===f?de(o,d):y(o,f,d,u)}switch(c){case"input":Z(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(t){ks(e,e.return,t)}}break;case 6:if(vc(t,e),gc(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){ks(e,e.return,t)}}break;case 3:if(vc(t,e),gc(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ft(t.containerInfo)}catch(t){ks(e,e.return,t)}break;case 4:default:vc(t,e),gc(e);break;case 13:vc(t,e),gc(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Bc=Qe())),4&r&&hc(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Xl=(u=Xl)||f,vc(t,e),Xl=u):vc(t,e),gc(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!f&&1&e.mode)for(Zl=e,f=e.child;null!==f;){for(d=Zl=f;null!==Zl;){switch(h=(p=Zl).child,p.tag){case 0:case 11:case 14:case 15:nc(4,p,p.return);break;case 1:Jl(p,p.return);var v=p.stateNode;if("function"==typeof v.componentWillUnmount){r=p,n=p.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(e){ks(r,n,e)}}break;case 5:Jl(p,p.return);break;case 22:if(null!==p.memoizedState){xc(d);continue}}null!==h?(h.return=p,Zl=h):xc(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{o=d.stateNode,u?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(c=d.stateNode,l=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,c.style.display=ve("display",l))}catch(t){ks(e,e.return,t)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){ks(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:vc(t,e),gc(e),4&r&&hc(e);case 21:}}function gc(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ac(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(de(o,""),r.flags&=-33),sc(e,lc(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;cc(e,lc(e),a);break;default:throw Error(i(161))}}catch(t){ks(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bc(e,t,n){Zl=e,yc(e,t,n)}function yc(e,t,n){for(var r=!!(1&e.mode);null!==Zl;){var o=Zl,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Kl;if(!a){var l=o.alternate,c=null!==l&&null!==l.memoizedState||Xl;l=Kl;var s=Xl;if(Kl=a,(Xl=c)&&!s)for(Zl=o;null!==Zl;)c=(a=Zl).child,22===a.tag&&null!==a.memoizedState?Sc(o):null!==c?(c.return=a,Zl=c):Sc(o);for(;null!==i;)Zl=i,yc(i,t,n),i=i.sibling;Zl=o,Kl=l,Xl=s}wc(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Zl=i):wc(e)}}function wc(e){for(;null!==Zl;){var t=Zl;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Xl||rc(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xl)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:nl(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Wi(t,a,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Wi(t,l,n)}break;case 5:var c=t.stateNode;if(null===n&&4&t.flags){n=c;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var f=u.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Ft(d)}}}break;default:throw Error(i(163))}Xl||512&t.flags&&oc(t)}catch(e){ks(t,t.return,e)}}if(t===e){Zl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zl=n;break}Zl=t.return}}function xc(e){for(;null!==Zl;){var t=Zl;if(t===e){Zl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zl=n;break}Zl=t.return}}function Sc(e){for(;null!==Zl;){var t=Zl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rc(4,t)}catch(e){ks(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){ks(t,o,e)}}var i=t.return;try{oc(t)}catch(e){ks(t,i,e)}break;case 5:var a=t.return;try{oc(t)}catch(e){ks(t,a,e)}}}catch(e){ks(t,t.return,e)}if(t===e){Zl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Zl=l;break}Zl=t.return}}var Cc,kc=Math.ceil,Ec=w.ReactCurrentDispatcher,Oc=w.ReactCurrentOwner,_c=w.ReactCurrentBatchConfig,jc=0,$c=null,Nc=null,Pc=0,Ic=0,Mc=Eo(0),Rc=0,Ac=null,Tc=0,qc=0,Dc=0,Lc=null,zc=null,Bc=0,Fc=1/0,Hc=null,Wc=!1,Vc=null,Uc=null,Gc=!1,Yc=null,Kc=0,Xc=0,Qc=null,Zc=-1,Jc=0;function es(){return 6&jc?Qe():-1!==Zc?Zc:Zc=Qe()}function ts(e){return 1&e.mode?2&jc&&0!==Pc?Pc&-Pc:null!==mi.transition?(0===Jc&&(Jc=vt()),Jc):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Xt(e.type):1}function ns(e,t,n,r){if(50<Xc)throw Xc=0,Qc=null,Error(i(185));gt(e,n,r),2&jc&&e===$c||(e===$c&&(!(2&jc)&&(qc|=n),4===Rc&&ls(e,Pc)),rs(e,r),1===n&&0===jc&&!(1&t.mode)&&(Fc=Qe()+500,zo&&Ho()))}function rs(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),l=1<<a,c=o[a];-1===c?l&n&&!(l&r)||(o[a]=pt(l,t)):c<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=dt(e,e===$c?Pc:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){zo=!0,Fo(e)}(cs.bind(null,e)):Fo(cs.bind(null,e)),ao((function(){!(6&jc)&&Ho()})),n=null;else{switch(wt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=$s(n,os.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function os(e,t){if(Zc=-1,Jc=0,6&jc)throw Error(i(327));var n=e.callbackNode;if(Ss()&&e.callbackNode!==n)return null;var r=dt(e,e===$c?Pc:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=ms(e,r);else{t=r;var o=jc;jc|=2;var a=hs();for($c===e&&Pc===t||(Hc=null,Fc=Qe()+500,ds(e,t));;)try{bs();break}catch(t){ps(e,t)}_i(),Ec.current=a,jc=o,null!==Nc?t=0:($c=null,Pc=0,t=Rc)}if(0!==t){if(2===t&&(0!==(o=ht(e))&&(r=o,t=is(e,o))),1===t)throw n=Ac,ds(e,0),ls(e,r),rs(e,Qe()),n;if(6===t)ls(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!lr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=ms(e,r),2===t&&(a=ht(e),0!==a&&(r=a,t=is(e,a))),1!==t)))throw n=Ac,ds(e,0),ls(e,r),rs(e,Qe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:xs(e,zc,Hc);break;case 3:if(ls(e,r),(130023424&r)===r&&10<(t=Bc+500-Qe())){if(0!==dt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){es(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(xs.bind(null,e,zc,Hc),t);break}xs(e,zc,Hc);break;case 4:if(ls(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-at(r);a=1<<l,(l=t[l])>o&&(o=l),r&=~a}if(r=o,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*kc(r/1960))-r)){e.timeoutHandle=ro(xs.bind(null,e,zc,Hc),r);break}xs(e,zc,Hc);break;default:throw Error(i(329))}}}return rs(e,Qe()),e.callbackNode===n?os.bind(null,e):null}function is(e,t){var n=Lc;return e.current.memoizedState.isDehydrated&&(ds(e,t).flags|=256),2!==(e=ms(e,t))&&(t=zc,zc=n,null!==t&&as(t)),e}function as(e){null===zc?zc=e:zc.push.apply(zc,e)}function ls(e,t){for(t&=~Dc,t&=~qc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function cs(e){if(6&jc)throw Error(i(327));Ss();var t=dt(e,0);if(!(1&t))return rs(e,Qe()),null;var n=ms(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=is(e,r))}if(1===n)throw n=Ac,ds(e,0),ls(e,t),rs(e,Qe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xs(e,zc,Hc),rs(e,Qe()),null}function ss(e,t){var n=jc;jc|=1;try{return e(t)}finally{0===(jc=n)&&(Fc=Qe()+500,zo&&Ho())}}function us(e){null!==Yc&&0===Yc.tag&&!(6&jc)&&Ss();var t=jc;jc|=1;var n=_c.transition,r=yt;try{if(_c.transition=null,yt=1,e)return e()}finally{yt=r,_c.transition=n,!(6&(jc=t))&&Ho()}}function fs(){Ic=Mc.current,Oo(Mc)}function ds(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Nc)for(n=Nc.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ro();break;case 3:Qi(),Oo(No),Oo($o),ra();break;case 5:Ji(r);break;case 4:Qi();break;case 13:case 19:Oo(ea);break;case 10:ji(r.type._context);break;case 22:case 23:fs()}n=n.return}if($c=e,Nc=e=Ms(e.current,null),Pc=Ic=t,Rc=0,Ac=null,Dc=qc=Tc=0,zc=Lc=null,null!==Ii){for(t=0;t<Ii.length;t++)if(null!==(r=(n=Ii[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ii=null}return e}function ps(e,t){for(;;){var n=Nc;try{if(_i(),oa.current=Za,ua){for(var r=la.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ua=!1}if(aa=0,sa=ca=la=null,fa=!1,da=0,Oc.current=null,null===n||null===n.return){Rc=1,Ac=t,Nc=null;break}e:{var a=e,l=n.return,c=n,s=t;if(t=Pc,c.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s,f=c,d=f.tag;if(!(1&f.mode||0!==d&&11!==d&&15!==d)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=ml(l);if(null!==h){h.flags&=-257,gl(h,l,c,0,t),1&h.mode&&vl(a,u,t),s=u;var v=(t=h).updateQueue;if(null===v){var m=new Set;m.add(s),t.updateQueue=m}else v.add(s);break e}if(!(1&t)){vl(a,u,t),vs();break e}s=Error(i(426))}else if(ii&&1&c.mode){var g=ml(l);if(null!==g){!(65536&g.flags)&&(g.flags|=256),gl(g,l,c,0,t),vi(sl(s,c));break e}}a=s=sl(s,c),4!==Rc&&(Rc=2),null===Lc?Lc=[a]:Lc.push(a),a=l;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Fi(a,pl(0,s,t));break e;case 1:c=s;var b=a.type,y=a.stateNode;if(!(128&a.flags||"function"!=typeof b.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==Uc&&Uc.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Fi(a,hl(a,c,t));break e}}a=a.return}while(null!==a)}ws(n)}catch(e){t=e,Nc===n&&null!==n&&(Nc=n=n.return);continue}break}}function hs(){var e=Ec.current;return Ec.current=Za,null===e?Za:e}function vs(){0!==Rc&&3!==Rc&&2!==Rc||(Rc=4),null===$c||!(268435455&Tc)&&!(268435455&qc)||ls($c,Pc)}function ms(e,t){var n=jc;jc|=2;var r=hs();for($c===e&&Pc===t||(Hc=null,ds(e,t));;)try{gs();break}catch(t){ps(e,t)}if(_i(),jc=n,Ec.current=r,null!==Nc)throw Error(i(261));return $c=null,Pc=0,Rc}function gs(){for(;null!==Nc;)ys(Nc)}function bs(){for(;null!==Nc&&!Ke();)ys(Nc)}function ys(e){var t=Cc(e.alternate,e,Ic);e.memoizedProps=e.pendingProps,null===t?ws(e):Nc=t,Oc.current=null}function ws(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Yl(n,t)))return n.flags&=32767,void(Nc=n);if(null===e)return Rc=6,void(Nc=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Gl(n,t,Ic)))return void(Nc=n);if(null!==(t=t.sibling))return void(Nc=t);Nc=t=e}while(null!==t);0===Rc&&(Rc=5)}function xs(e,t,n){var r=yt,o=_c.transition;try{_c.transition=null,yt=1,function(e,t,n,r){do{Ss()}while(null!==Yc);if(6&jc)throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===$c&&(Nc=$c=null,Pc=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Gc||(Gc=!0,$s(tt,(function(){return Ss(),null}))),a=!!(15990&n.flags),!!(15990&n.subtreeFlags)||a){a=_c.transition,_c.transition=null;var l=yt;yt=1;var c=jc;jc|=4,Oc.current=null,function(e,t){if(eo=Wt,pr(e=dr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var l=0,c=-1,s=-1,u=0,f=0,d=e,p=null;t:for(;;){for(var h;d!==n||0!==o&&3!==d.nodeType||(c=l+o),d!==a||0!==r&&3!==d.nodeType||(s=l+r),3===d.nodeType&&(l+=d.nodeValue.length),null!==(h=d.firstChild);)p=d,d=h;for(;;){if(d===e)break t;if(p===n&&++u===o&&(c=l),p===a&&++f===r&&(s=l),null!==(h=d.nextSibling))break;p=(d=p).parentNode}d=h}n=-1===c||-1===s?null:{start:c,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Wt=!1,Zl=t;null!==Zl;)if(e=(t=Zl).child,1028&t.subtreeFlags&&null!==e)e.return=t,Zl=e;else for(;null!==Zl;){t=Zl;try{var v=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==v){var m=v.memoizedProps,g=v.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?m:nl(t.type,m),g);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(e){ks(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zl=e;break}Zl=t.return}v=tc,tc=!1}(e,n),mc(n,e),hr(to),Wt=!!eo,to=eo=null,e.current=n,bc(n,e,o),Xe(),jc=c,yt=l,_c.transition=a}else e.current=n;if(Gc&&(Gc=!1,Yc=e,Kc=o),a=e.pendingLanes,0===a&&(Uc=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),rs(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Wc)throw Wc=!1,e=Vc,Vc=null,e;!!(1&Kc)&&0!==e.tag&&Ss(),a=e.pendingLanes,1&a?e===Qc?Xc++:(Xc=0,Qc=e):Xc=0,Ho()}(e,t,n,r)}finally{_c.transition=o,yt=r}return null}function Ss(){if(null!==Yc){var e=wt(Kc),t=_c.transition,n=yt;try{if(_c.transition=null,yt=16>e?16:e,null===Yc)var r=!1;else{if(e=Yc,Yc=null,Kc=0,6&jc)throw Error(i(331));var o=jc;for(jc|=4,Zl=e.current;null!==Zl;){var a=Zl,l=a.child;if(16&Zl.flags){var c=a.deletions;if(null!==c){for(var s=0;s<c.length;s++){var u=c[s];for(Zl=u;null!==Zl;){var f=Zl;switch(f.tag){case 0:case 11:case 15:nc(8,f,a)}var d=f.child;if(null!==d)d.return=f,Zl=d;else for(;null!==Zl;){var p=(f=Zl).sibling,h=f.return;if(ic(f),f===u){Zl=null;break}if(null!==p){p.return=h,Zl=p;break}Zl=h}}}var v=a.alternate;if(null!==v){var m=v.child;if(null!==m){v.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}Zl=a}}if(2064&a.subtreeFlags&&null!==l)l.return=a,Zl=l;else e:for(;null!==Zl;){if(2048&(a=Zl).flags)switch(a.tag){case 0:case 11:case 15:nc(9,a,a.return)}var b=a.sibling;if(null!==b){b.return=a.return,Zl=b;break e}Zl=a.return}}var y=e.current;for(Zl=y;null!==Zl;){var w=(l=Zl).child;if(2064&l.subtreeFlags&&null!==w)w.return=l,Zl=w;else e:for(l=y;null!==Zl;){if(2048&(c=Zl).flags)try{switch(c.tag){case 0:case 11:case 15:rc(9,c)}}catch(e){ks(c,c.return,e)}if(c===l){Zl=null;break e}var x=c.sibling;if(null!==x){x.return=c.return,Zl=x;break e}Zl=c.return}}if(jc=o,Ho(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{yt=n,_c.transition=t}}return!1}function Cs(e,t,n){e=zi(e,t=pl(0,t=sl(n,t),1),1),t=es(),null!==e&&(gt(e,1,t),rs(e,t))}function ks(e,t,n){if(3===e.tag)Cs(e,e,n);else for(;null!==t;){if(3===t.tag){Cs(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Uc||!Uc.has(r))){t=zi(t,e=hl(t,e=sl(n,e),1),1),e=es(),null!==t&&(gt(t,1,e),rs(t,e));break}}t=t.return}}function Es(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=es(),e.pingedLanes|=e.suspendedLanes&n,$c===e&&(Pc&n)===n&&(4===Rc||3===Rc&&(130023424&Pc)===Pc&&500>Qe()-Bc?ds(e,0):Dc|=n),rs(e,t)}function Os(e,t){0===t&&(1&e.mode?(t=ut,!(130023424&(ut<<=1))&&(ut=4194304)):t=1);var n=es();null!==(e=Ai(e,t))&&(gt(e,t,n),rs(e,n))}function _s(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Os(e,n)}function js(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Os(e,n)}function $s(e,t){return Ge(e,t)}function Ns(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ps(e,t,n,r){return new Ns(e,t,n,r)}function Is(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ms(e,t){var n=e.alternate;return null===n?((n=Ps(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Rs(e,t,n,r,o,a){var l=2;if(r=e,"function"==typeof e)Is(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case C:return As(n.children,o,a,t);case k:l=8,o|=8;break;case E:return(e=Ps(12,n,t,2|o)).elementType=E,e.lanes=a,e;case $:return(e=Ps(13,n,t,o)).elementType=$,e.lanes=a,e;case N:return(e=Ps(19,n,t,o)).elementType=N,e.lanes=a,e;case M:return Ts(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:l=10;break e;case _:l=9;break e;case j:l=11;break e;case P:l=14;break e;case I:l=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Ps(l,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function As(e,t,n,r){return(e=Ps(7,e,r,t)).lanes=n,e}function Ts(e,t,n,r){return(e=Ps(22,e,r,t)).elementType=M,e.lanes=n,e.stateNode={isHidden:!1},e}function qs(e,t,n){return(e=Ps(6,e,null,t)).lanes=n,e}function Ds(e,t,n){return(t=Ps(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ls(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function zs(e,t,n,r,o,i,a,l,c){return e=new Ls(e,t,n,l,c),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Ps(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},qi(i),e}function Bs(e){if(!e)return jo;e:{if(Fe(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Mo(n))return To(e,n,t)}return t}function Fs(e,t,n,r,o,i,a,l,c){return(e=zs(n,r,!0,e,0,i,0,l,c)).context=Bs(null),n=e.current,(i=Li(r=es(),o=ts(n))).callback=null!=t?t:null,zi(n,i,o),e.current.lanes=o,gt(e,o,r),rs(e,r),e}function Hs(e,t,n,r){var o=t.current,i=es(),a=ts(o);return n=Bs(n),null===t.context?t.context=n:t.pendingContext=n,(t=Li(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=zi(o,t,a))&&(ns(e,o,a,i),Bi(e,o,a)),a}function Ws(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vs(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Us(e,t){Vs(e,t),(e=e.alternate)&&Vs(e,t)}Cc=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||No.current)yl=!0;else{if(!(e.lanes&n||128&t.flags))return yl=!1,function(e,t,n){switch(t.tag){case 3:$l(t),hi();break;case 5:Zi(t);break;case 1:Mo(t.type)&&qo(t);break;case 4:Xi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;_o(Ci,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(_o(ea,1&ea.current),t.flags|=128,null):n&t.child.childLanes?ql(e,t,n):(_o(ea,1&ea.current),null!==(e=Wl(e,t,n))?e.sibling:null);_o(ea,1&ea.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Fl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),_o(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,kl(e,t,n)}return Wl(e,t,n)}(e,t,n);yl=!!(131072&e.flags)}else yl=!1,ii&&1048576&t.flags&&ei(t,Go,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hl(e,t),e=t.pendingProps;var o=Io(t,$o.current);Ni(t,n),o=ma(null,t,r,e,o,n);var a=ga();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mo(r)?(a=!0,qo(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,qi(t),o.updater=ol,t.stateNode=o,o._reactInternals=t,cl(t,r,e,n),t=jl(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),wl(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hl(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Is(e)?1:0;if(null!=e){if((e=e.$$typeof)===j)return 11;if(e===P)return 14}return 2}(r),e=nl(r,e),o){case 0:t=Ol(null,t,r,e,n);break e;case 1:t=_l(null,t,r,e,n);break e;case 11:t=xl(null,t,r,e,n);break e;case 14:t=Sl(null,t,r,nl(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ol(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 1:return r=t.type,o=t.pendingProps,_l(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 3:e:{if($l(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Di(e,t),Hi(t,r,null,n);var l=t.memoizedState;if(r=l.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Nl(e,t,r,n,o=sl(Error(i(423)),t));break e}if(r!==o){t=Nl(e,t,r,n,o=sl(Error(i(424)),t));break e}for(oi=so(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=Si(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=Wl(e,t,n);break e}wl(e,t,r,n)}t=t.child}return t;case 5:return Zi(t),null===e&&ui(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,l=o.children,no(r,o)?l=null:null!==a&&no(r,a)&&(t.flags|=32),El(e,t),wl(e,t,l,n),t.child;case 6:return null===e&&ui(t),null;case 13:return ql(e,t,n);case 4:return Xi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=xi(t,null,r,n):wl(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,xl(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 7:return wl(e,t,t.pendingProps,n),t.child;case 8:case 12:return wl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,l=o.value,_o(Ci,r._currentValue),r._currentValue=l,null!==a)if(lr(a.value,l)){if(a.children===o.children&&!No.current){t=Wl(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var c=a.dependencies;if(null!==c){l=a.child;for(var s=c.firstContext;null!==s;){if(s.context===r){if(1===a.tag){(s=Li(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var f=(u=u.shared).pending;null===f?s.next=s:(s.next=f.next,f.next=s),u.pending=s}}a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),$i(a.return,n,t),c.lanes|=n;break}s=s.next}}else if(10===a.tag)l=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(l=a.return))throw Error(i(341));l.lanes|=n,null!==(c=l.alternate)&&(c.lanes|=n),$i(l,n,t),l=a.sibling}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===t){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}wl(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ni(t,n),r=r(o=Pi(o)),t.flags|=1,wl(e,t,r,n),t.child;case 14:return o=nl(r=t.type,t.pendingProps),Sl(e,t,r,o=nl(r.type,o),n);case 15:return Cl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nl(r,o),Hl(e,t),t.tag=1,Mo(r)?(e=!0,qo(t)):e=!1,Ni(t,n),al(t,r,o),cl(t,r,o,n),jl(null,t,r,!0,e,n);case 19:return Fl(e,t,n);case 22:return kl(e,t,n)}throw Error(i(156,t.tag))};var Gs="function"==typeof reportError?reportError:function(e){console.error(e)};function Ys(e){this._internalRoot=e}function Ks(e){this._internalRoot=e}function Xs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zs(){}function Js(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=Ws(a);l.call(e)}}Hs(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Ws(a);i.call(e)}}var a=Fs(t,r,e,0,null,!1,0,"",Zs);return e._reactRootContainer=a,e[vo]=a.current,Fr(8===e.nodeType?e.parentNode:e),us(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Ws(c);l.call(e)}}var c=zs(e,0,!1,null,0,!1,0,"",Zs);return e._reactRootContainer=c,e[vo]=c.current,Fr(8===e.nodeType?e.parentNode:e),us((function(){Hs(t,c,n,r)})),c}(n,t,e,o,r);return Ws(a)}Ks.prototype.render=Ys.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Hs(e,t,null,null)},Ks.prototype.unmount=Ys.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;us((function(){Hs(null,e,null,null)})),t[vo]=null}},Ks.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&qt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(bt(t,1|n),rs(t,Qe()),!(6&jc)&&(Fc=Qe()+500,Ho()))}break;case 13:us((function(){var t=Ai(e,1);if(null!==t){var n=es();ns(t,e,1,n)}})),Us(e,1)}},St=function(e){if(13===e.tag){var t=Ai(e,134217728);if(null!==t)ns(t,e,134217728,es());Us(e,134217728)}},Ct=function(e){if(13===e.tag){var t=ts(e),n=Ai(e,t);if(null!==n)ns(n,e,t,es());Us(e,t)}},kt=function(){return yt},Et=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},Se=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=So(r);if(!o)throw Error(i(90));G(r),Z(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},je=ss,$e=us;var eu={usingClientEntryPoint:!1,Events:[wo,xo,So,Oe,_e,ss]},tu={findFiberByHostInstance:yo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ve(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{ot=ru.inject(nu),it=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xs(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Xs(e))throw Error(i(299));var n=!1,r="",o=Gs;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=zs(e,1,!1,null,0,n,0,r,o),e[vo]=t.current,Fr(8===e.nodeType?e.parentNode:e),new Ys(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=Ve(t))?null:e.stateNode},t.flushSync=function(e){return us(e)},t.hydrate=function(e,t,n){if(!Qs(t))throw Error(i(200));return Js(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xs(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",l=Gs;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Fs(t,null,e,1,null!=n?n:null,o,0,a,l),e[vo]=t.current,Fr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ks(t)},t.render=function(e,t,n){if(!Qs(t))throw Error(i(200));return Js(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qs(e))throw Error(i(40));return!!e._reactRootContainer&&(us((function(){Js(null,null,e,!1,(function(){e._reactRootContainer=null,e[vo]=null}))})),!0)},t.unstable_batchedUpdates=ss,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qs(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Js(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},5338:function(e,t,n){"use strict";var r=n(961);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},961:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},5708:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,o++)r[o]=i[a];return r},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},c=l(n(6540)),s=l(n(961)),u=l(n(2404)),f=l(n(1574)),d=function(e){function t(t){var n=e.call(this,t)||this;n.dirtyProps=["modules","formats","bounds","theme","children"],n.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],n.state={generation:0},n.selection=null,n.onEditorChange=function(e,t,r,o){var i,a,l,c;"text-change"===e?null===(a=(i=n).onEditorChangeText)||void 0===a||a.call(i,n.editor.root.innerHTML,t,o,n.unprivilegedEditor):"selection-change"===e&&(null===(c=(l=n).onEditorChangeSelection)||void 0===c||c.call(l,t,o,n.unprivilegedEditor))};var r=n.isControlled()?t.value:t.defaultValue;return n.value=null!=r?r:"",n}return o(t,e),t.prototype.validateProps=function(e){var t;if(c.default.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(c.default.Children.count(e.children)&&"textarea"===(null===(t=c.default.Children.only(e.children))||void 0===t?void 0:t.type))throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.");if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},t.prototype.shouldComponentUpdate=function(e,t){var n,r=this;if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){var o=this.getEditorContents(),i=null!=(n=e.value)?n:"";this.isEqualValue(i,o)||this.setEditorContents(this.editor,i)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),a(this.cleanProps,this.dirtyProps).some((function(t){return!u.default(e[t],r.props[t])}))},t.prototype.shouldComponentRegenerate=function(e){var t=this;return this.dirtyProps.some((function(n){return!u.default(e[n],t.props[n])}))},t.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(e,t){var n=this;if(this.editor&&this.shouldComponentRegenerate(e)){var r=this.editor.getContents(),o=this.editor.getSelection();this.regenerationSnapshot={delta:r,selection:o},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){var i=this.regenerationSnapshot,a=(r=i.delta,i.selection);delete this.regenerationSnapshot,this.instantiateEditor();var l=this.editor;l.setContents(r),p((function(){return n.setEditorSelection(l,a)}))}},t.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},t.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},t.prototype.isControlled=function(){return"value"in this.props},t.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},t.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},t.prototype.createEditor=function(e,t){var n=new f.default(e,t);return null!=t.tabIndex&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n},t.prototype.hookEditor=function(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)},t.prototype.unhookEditor=function(e){e.off("editor-change",this.onEditorChange)},t.prototype.getEditorContents=function(){return this.value},t.prototype.getEditorSelection=function(){return this.selection},t.prototype.isDelta=function(e){return e&&e.ops},t.prototype.isEqualValue=function(e,t){return this.isDelta(e)&&this.isDelta(t)?u.default(e.ops,t.ops):u.default(e,t)},t.prototype.setEditorContents=function(e,t){var n=this;this.value=t;var r=this.getEditorSelection();"string"==typeof t?e.setContents(e.clipboard.convert(t)):e.setContents(t),p((function(){return n.setEditorSelection(e,r)}))},t.prototype.setEditorSelection=function(e,t){if(this.selection=t,t){var n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}},t.prototype.setEditorTabIndex=function(e,t){var n,r;(null===(r=null===(n=e)||void 0===n?void 0:n.scroll)||void 0===r?void 0:r.domNode)&&(e.scroll.domNode.tabIndex=t)},t.prototype.setEditorReadOnly=function(e,t){t?e.disable():e.enable()},t.prototype.makeUnprivilegedEditor=function(e){var t=e;return{getHTML:function(){return t.root.innerHTML},getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}},t.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var e=s.default.findDOMNode(this.editingArea);if(!e)throw new Error("Cannot find element for editing area");if(3===e.nodeType)throw new Error("Editing area cannot be a text node");return e},t.prototype.renderEditingArea=function(){var e=this,t=this.props,n=t.children,r=t.preserveWhitespace,o={key:this.state.generation,ref:function(t){e.editingArea=t}};return c.default.Children.count(n)?c.default.cloneElement(c.default.Children.only(n),o):r?c.default.createElement("pre",i({},o)):c.default.createElement("div",i({},o))},t.prototype.render=function(){var e;return c.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(e=this.props.className,null!=e?e:""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},t.prototype.onEditorChangeText=function(e,t,n,r){var o,i;if(this.editor){var a=this.isDelta(this.value)?r.getContents():r.getHTML();a!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=a,null===(i=(o=this.props).onChange)||void 0===i||i.call(o,e,t,n,r))}},t.prototype.onEditorChangeSelection=function(e,t,n){var r,o,i,a,l,c;if(this.editor){var s=this.getEditorSelection(),f=!s&&e,d=s&&!e;u.default(e,s)||(this.selection=e,null===(o=(r=this.props).onChangeSelection)||void 0===o||o.call(r,e,t,n),f?null===(a=(i=this.props).onFocus)||void 0===a||a.call(i,e,t,n):d&&(null===(c=(l=this.props).onBlur)||void 0===c||c.call(l,s,t,n)))}},t.prototype.focus=function(){this.editor&&this.editor.focus()},t.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},t.displayName="React Quill",t.Quill=f.default,t.defaultProps={theme:"snow",modules:{},readOnly:!1},t}(c.default.Component);function p(e){Promise.resolve().then(e)}e.exports=d},1020:function(e,t,n){"use strict";
50 /**
51 * @license React
52 * react-jsx-runtime.production.min.js
53 *
54 * Copyright (c) Facebook, Inc. and its affiliates.
55 *
56 * This source code is licensed under the MIT license found in the
57 * LICENSE file in the root directory of this source tree.
58 */var r=n(6540),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,i={},s=null,u=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!c.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:s,ref:u,props:i,_owner:l.current}}t.Fragment=i,t.jsx=s,t.jsxs=s},5287:function(e,t){"use strict";
59 /**
60 * @license React
61 * react.production.min.js
62 *
63 * Copyright (c) Facebook, Inc. and its affiliates.
64 *
65 * This source code is licensed under the MIT license found in the
66 * LICENSE file in the root directory of this source tree.
67 */var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=g.prototype;var w=y.prototype=new b;w.constructor=y,v(w,g.prototype),w.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var o,i={},a=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,o)&&!k.hasOwnProperty(o)&&(i[o]=t[o]);var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){for(var s=Array(c),u=0;u<c;u++)s[u]=arguments[u+2];i.children=s}if(e&&e.defaultProps)for(o in c=e.defaultProps)void 0===i[o]&&(i[o]=c[o]);return{$$typeof:n,type:e,key:a,ref:l,props:i,_owner:C.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var _=/\/+/g;function j(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function $(e,t,o,i,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var c=!1;if(null===e)c=!0;else switch(l){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case n:case r:c=!0}}if(c)return a=a(c=e),e=""===i?"."+j(c,0):i,x(a)?(o="",null!=e&&(o=e.replace(_,"$&/")+"/"),$(a,t,o,"",(function(e){return e}))):null!=a&&(O(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(_,"$&/")+"/")+e)),t.push(a)),1;if(c=0,i=""===i?".":i+":",x(e))for(var s=0;s<e.length;s++){var u=i+j(l=e[s],s);c+=$(l,t,o,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),s=0;!(l=e.next()).done;)c+=$(l=l.value,t,o,u=i+j(l,s++),a);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return c}function N(e,t,n){if(null==e)return e;var r=[],o=0;return $(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function P(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},M={transition:null},R={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:M,ReactCurrentOwner:C};function A(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:N,forEach:function(e,t,n){N(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return N(e,(function(){t++})),t},toArray:function(e){return N(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=o,t.Profiler=a,t.PureComponent=y,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.act=A,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=v({},e.props),i=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=C.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(s in t)S.call(t,s)&&!k.hasOwnProperty(s)&&(o[s]=void 0===t[s]&&void 0!==c?c[s]:t[s])}var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){c=Array(s);for(var u=0;u<s;u++)c[u]=arguments[u+2];o.children=c}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:c,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},t.unstable_act=A,t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return I.current.useTransition()},t.version="18.3.1"},6540:function(e,t,n){"use strict";e.exports=n(5287)},4848:function(e,t,n){"use strict";e.exports=n(1020)},7463:function(e,t){"use strict";
68 /**
69 * @license React
70 * scheduler.production.min.js
71 *
72 * Copyright (c) Facebook, Inc. and its affiliates.
73 *
74 * This source code is licensed under the MIT license found in the
75 * LICENSE file in the root directory of this source tree.
76 */function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var l=2*(r+1)-1,c=e[l],s=l+1,u=e[s];if(0>i(c,n))s<o&&0>i(u,c)?(e[r]=u,e[s]=n,r=s):(e[r]=c,e[l]=n,r=l);else{if(!(s<o&&0>i(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}var s=[],u=[],f=1,d=null,p=3,h=!1,v=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(s,t)}t=r(u)}}function x(e){if(m=!1,w(e),!v)if(null!==r(s))v=!0,M(S);else{var t=r(u);null!==t&&R(x,t.startTime-e)}}function S(e,n){v=!1,m&&(m=!1,b(O),O=-1),h=!0;var i=p;try{for(w(n),d=r(s);null!==d&&(!(d.expirationTime>n)||e&&!$());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var l=a(d.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?d.callback=l:d===r(s)&&o(s),w(n)}else o(s);d=r(s)}if(null!==d)var c=!0;else{var f=r(u);null!==f&&R(x,f.startTime-n),c=!1}return c}finally{d=null,p=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var C,k=!1,E=null,O=-1,_=5,j=-1;function $(){return!(t.unstable_now()-j<_)}function N(){if(null!==E){var e=t.unstable_now();j=e;var n=!0;try{n=E(!0,e)}finally{n?C():(k=!1,E=null)}}else k=!1}if("function"==typeof y)C=function(){y(N)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,I=P.port2;P.port1.onmessage=N,C=function(){I.postMessage(null)}}else C=function(){g(N,0)};function M(e){E=e,k||(k=!0,C())}function R(e,n){O=g((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){v||h||(v=!0,M(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(s)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:f++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(s)&&e===r(u)&&(m?(b(O),O=-1):m=!0,R(x,i-a))):(e.sortIndex=l,n(s,e),v||h||(v=!0,M(S))),e},t.unstable_shouldYield=$,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},9982:function(e,t,n){"use strict";e.exports=n(7463)},5072:function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function l(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],c=t.base?i[0]+t.base:i[0],s=n[c]||0,u="".concat(c," ").concat(s);n[c]=s+1;var f=l(u),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(d)):a.push({identifier:u,updater:m(d,t),references:1}),r.push(u)}return r}function s(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var u,f=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function d(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function p(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,v=0;function m(e,t){var n,r,o;if(t.singleton){var i=v++;n=h||(h=s(t)),r=d.bind(null,n,i,!1),o=d.bind(null,n,i,!0)}else n=s(t),r=p.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=l(n[r]);a[o].references--}for(var i=c(e,t),s=0;s<n.length;s++){var u=l(n[s]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=i}}}},6426:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},6942:function(e,t){var n;
77 /*!
78 Copyright (c) 2018 Jed Watson.
79 Licensed under the MIT License (MIT), see
80 http://jedwatson.github.io/classnames
81 */!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var l=2&r&&n;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((function(e){a[e]=function(){return n[e]}}));return a.default=function(){return n},o.d(i,a),i},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},o.nc=void 0,function(){"use strict";var e=o(5338),t=o(6540),n=o.t(t,2),r=o(4848),i=(0,t.createContext)(),a=function(e){var n=e.reducer,o=e.initialState,a=e.children;return(0,r.jsx)(i.Provider,{value:(0,t.useReducer)(n,o),children:a})},l=function(){return(0,t.useContext)(i)},c="UPDATE_GENERAL",s="UPDATE_STATE_ITEM",u="UPDATE_SECTIONS",f="UPDATE_DATA_ITEM",d="UPDATE_DATA_OPTIONS",p="UPDATE_DATA_BLOCK_ID_ACTION",h=o(2543),v=o.n(h);function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
82 g=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),l=new I(r||[]);return o(a,"_invoke",{value:j(e,n,l)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",b={};function y(){}function w(){}function x(){}var S={};s(S,a,(function(){return this}));var C=Object.getPrototypeOf,k=C&&C(C(M([])));k&&k!==n&&r.call(k,a)&&(S=k);var E=x.prototype=y.prototype=Object.create(S);function O(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(o,i,a,l){var c=f(e[o],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==m(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,n,r){var o=d;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=$(l,r);if(c){if(c===b)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var s=f(t,n,r);if("normal"===s.type){if(o=r.done?v:p,s.arg===b)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function $(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,$(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,b;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function M(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(m(t)+" is not iterable")}return w.prototype=x,o(E,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:w,configurable:!0}),w.displayName=s(x,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,s(e,c,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},O(_.prototype),s(_.prototype,l,(function(){return this})),t.AsyncIterator=_,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new _(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(E),s(E,c,"Generator"),s(E,a,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=M,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:M(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),b}},t}function b(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function y(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){b(i,r,o,a,l,"next",e)}function l(e){b(i,r,o,a,l,"throw",e)}a(void 0)}))}}function w(e){var t=function(e,t){if("object"!=m(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==m(t)?t:t+""}function x(e,t,n){return(t=w(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var k,E=o(961),O=C({},o.t(E,2)),_=O.version,j=O.render,$=O.unmountComponentAtNode;try{Number((_||"").split(".")[0])>=18&&(k=O.createRoot)}catch(e){}function N(e){var t=O.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===m(t)&&(t.usingClientEntryPoint=e)}var P="__rc_react_root__";function I(e,t){k?function(e,t){N(!0);var n=t[P]||k(t);N(!1),n.render(e),t[P]=n}(e,t):function(e,t){j(e,t)}(e,t)}function M(e){return R.apply(this,arguments)}function R(){return R=y(g().mark((function e(t){return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[P])||void 0===e||e.unmount(),delete t[P]})));case 1:case"end":return e.stop()}}),e)}))),R.apply(this,arguments)}function A(e){$(e)}function T(e){return q.apply(this,arguments)}function q(){return q=y(g().mark((function e(t){return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===k){e.next=2;break}return e.abrupt("return",M(t));case 2:A(t);case 3:case"end":return e.stop()}}),e)}))),q.apply(this,arguments)}const D=t.createContext({});const L="ant",z="anticon",B=["outlined","borderless","filled"],F=t.createContext({getPrefixCls:(e,t)=>t||(e?`${L}-${e}`:L),iconPrefixCls:z}),{Consumer:H}=F;function W(e){if(Array.isArray(e))return e}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function U(e,t){if(e){if("string"==typeof e)return V(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V(e,t):void 0}}function G(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Y(e,t){return W(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||U(e,t)||G()}function K(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function X(e){return function(e){if(Array.isArray(e))return V(e)}(e)||K(e)||U(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Q=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};function Z(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function J(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var ee="data-rc-order",te="data-rc-priority",ne="rc-util-key",re=new Map;function oe(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):ne}function ie(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function ae(e){return Array.from((re.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function le(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Z())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),l="prependQueue"===a,c=document.createElement("style");c.setAttribute(ee,a),l&&i&&c.setAttribute(te,"".concat(i)),null!=n&&n.nonce&&(c.nonce=null==n?void 0:n.nonce),c.innerHTML=e;var s=ie(t),u=s.firstChild;if(r){if(l){var f=(t.styles||ae(s)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(ee)))return!1;var t=Number(e.getAttribute(te)||0);return i>=t}));if(f.length)return s.insertBefore(c,f[f.length-1].nextSibling),c}s.insertBefore(c,u)}else s.appendChild(c);return c}function ce(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ie(t);return(t.styles||ae(n)).find((function(n){return n.getAttribute(oe(t))===e}))}function se(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ce(e,t);n&&ie(t).removeChild(n)}function ue(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=ie(n),o=ae(r),i=C(C({},n),{},{styles:o});!function(e,t){var n=re.get(e);if(!n||!J(document,n)){var r=le("",t),o=r.parentNode;re.set(e,o),e.removeChild(r)}}(r,i);var a=ce(t,i);if(a){var l,c,s;if(null!==(l=i.csp)&&void 0!==l&&l.nonce&&a.nonce!==(null===(c=i.csp)||void 0===c?void 0:c.nonce))a.nonce=null===(s=i.csp)||void 0===s?void 0:s.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=le(e,i);return u.setAttribute(oe(i),t),u}function fe(e,n,r){var o=t.useRef({});return"value"in o.current&&!r(o.current.condition,n)||(o.current.value=e(),o.current.condition=n),o.current.value}var de={},pe=[];function he(e,t){}function ve(e,t){}function me(e,t,n){t||de[n]||(e(!1,n),de[n]=!0)}function ge(e,t){me(he,e,t)}function be(e,t){me(ve,e,t)}ge.preMessage=function(e){pe.push(e)},ge.resetWarned=function(){de={}},ge.noteOnce=be;var ye=ge;var we=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(ye(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);var l=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var c=0;c<t.length;c++)if(!e(t[c],o[c],l))return!1;return!0}if(t&&o&&"object"===m(t)&&"object"===m(o)){var s=Object.keys(t);return s.length===Object.keys(o).length&&s.every((function(n){return e(t[n],o[n],l)}))}return!1}(e,t)};function xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Se(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,w(r.key),r)}}function Ce(e,t,n){return t&&Se(e.prototype,t),n&&Se(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var ke="%";function Ee(e){return e.join(ke)}var Oe=function(){function e(t){xe(this,e),x(this,"instanceId",void 0),x(this,"cache",new Map),this.instanceId=t}return Ce(e,[{key:"get",value:function(e){return this.opGet(Ee(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(Ee(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),_e=Oe,je="data-token-hash",$e="data-css-hash",Ne="__cssinjs_instance__";function Pe(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat($e,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[Ne]=t[Ne]||e,t[Ne]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat($e,"]"))).forEach((function(t){var n,o=t.getAttribute($e);r[o]?t[Ne]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new _e(e)}var Ie=t.createContext({hashPriority:"low",cache:Pe(),defaultCache:!0}),Me=Ie,Re="CALC_UNIT";new RegExp(Re,"g");var Ae=function(){function e(){xe(this,e),x(this,"cache",void 0),x(this,"keys",void 0),x(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Ce(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=Y(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=Y(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,o){if(o===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();x(Ae,"MAX_CACHE_SIZE",20),x(Ae,"MAX_CACHE_OFFSET",5);var Te=0,qe=function(){function e(t){xe(this,e),x(this,"derivatives",void 0),x(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Te,0===t.length&&t.length,Te+=1}return Ce(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),De=new Ae;function Le(e){var t=Array.isArray(e)?e:[e];return De.has(t)||De.set(t,new qe(t)),De.get(t)}var ze=new WeakMap,Be={};var Fe=new WeakMap;function He(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Fe.get(e)||"";return n||(Object.keys(e).forEach((function(r){var o=e[r];n+=r,o instanceof qe?n+=o.id:o&&"object"===m(o)?n+=He(o,t):n+=o})),t&&(n=Q(n)),Fe.set(e,n)),n}function We(e,t){return Q("".concat(t,"_").concat(He(e,!0)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var Ve=Z();function Ue(e){return"number"==typeof e?"".concat(e,"px"):e}function Ge(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=C(C({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},x(x({},je,t),$e,n)),o=Object.keys(r).map((function(e){var t=r[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(o,">").concat(e,"</style>")}var Ye=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Ke=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=Y(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},Xe=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,a=Y(e,2),l=a[0],c=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[l])o[l]=c;else if(!("string"!=typeof c&&"number"!=typeof c||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[l])){var s,u=Ye(l,null==n?void 0:n.prefix);r[u]="number"!=typeof c||null!=n&&null!==(s=n.unitless)&&void 0!==s&&s[l]?String(c):"".concat(c,"px"),o[l]="var(".concat(u,")")}})),[o,Ke(r,t,{scope:null==n?void 0:n.scope})]},Qe=Z()?t.useLayoutEffect:t.useEffect,Ze=function(e,n){var r=t.useRef(!0);Qe((function(){return e(r.current)}),n),Qe((function(){return r.current=!1,function(){r.current=!0}}),[])},Je=function(e,t){Ze((function(t){if(!t)return e()}),t)},et=Ze,tt=C({},n).useInsertionEffect,nt=tt?function(e,t,n){return tt((function(){return e(),t()}),n)}:function(e,n,r){t.useMemo(e,r),et((function(){return n(!0)}),r)},rt=void 0!==C({},n).useInsertionEffect?function(e){var n=[],r=!1;return t.useEffect((function(){return r=!1,function(){r=!0,n.length&&n.forEach((function(e){return e()}))}}),e),function(e){r||n.push(e)}}:function(){return function(e){e()}};var ot=function(){return!1};function it(e,n,r,o,i){var a=t.useContext(Me).cache,l=Ee([e].concat(X(n))),c=rt([l]),s=(ot(),function(e){a.opUpdate(l,(function(t){var n=Y(t||[void 0,void 0],2),o=n[0];var i=[void 0===o?0:o,n[1]||r()];return e?e(i):i}))});t.useMemo((function(){s()}),[l]);var u=a.opGet(l)[1];return nt((function(){null==i||i(u)}),(function(e){return s((function(t){var n=Y(t,2),r=n[0],o=n[1];return e&&0===r&&(null==i||i(u)),[r+1,o]})),function(){a.opUpdate(l,(function(t){var n=Y(t||[],2),r=n[0],i=void 0===r?0:r,s=n[1];return 0===i-1?(c((function(){!e&&a.opGet(l)||null==o||o(s,!1)})),null):[i-1,s]}))}}),[l]),u}var at={},lt="css",ct=new Map;var st=0;function ut(e,t){ct.set(e,(ct.get(e)||0)-1);var n=Array.from(ct.keys()),r=n.filter((function(e){return(ct.get(e)||0)<=0}));n.length-r.length>st&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(je,'="').concat(e,'"]')).forEach((function(e){var n;e[Ne]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),ct.delete(e)}))}var ft=function(e,t,n,r){var o=C(C({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o},dt="token";function pt(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,t.useContext)(Me),i=o.cache.instanceId,a=o.container,l=r.salt,c=void 0===l?"":l,s=r.override,u=void 0===s?at:s,f=r.formatToken,d=r.getComputedToken,p=r.cssVar,h=function(e,t){for(var n=ze,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(Be)||n.set(Be,e()),n.get(Be)}((function(){return Object.assign.apply(Object,[{}].concat(X(n)))}),n),v=He(h),m=He(u),g=p?He(p):"",b=it(dt,[c,e.id,v,m,g],(function(){var t,n=d?d(h,u,e):ft(h,u,e,f),r=C({},n),o="";if(p){var i=Y(Xe(n,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),2);n=i[0],o=i[1]}var a=We(n,c);n._tokenKey=a,r._tokenKey=We(r,c);var l=null!==(t=null==p?void 0:p.key)&&void 0!==t?t:a;n._themeKey=l,function(e){ct.set(e,(ct.get(e)||0)+1)}(l);var s="".concat(lt,"-").concat(Q(a));return n._hashId=s,[n,s,r,o,(null==p?void 0:p.key)||""]}),(function(e){ut(e[0]._themeKey,i)}),(function(e){var t=Y(e,4),n=t[0],r=t[3];if(p&&r){var o=ue(r,Q("css-variables-".concat(n._themeKey)),{mark:$e,prepend:"queue",attachTo:a,priority:-999});o[Ne]=i,o.setAttribute(je,n._themeKey)}}));return b}function ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ht.apply(null,arguments)}var vt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},mt="comm",gt="rule",bt="decl",yt="@import",wt="@keyframes",xt="@layer",St=Math.abs,Ct=String.fromCharCode;Object.assign;function kt(e){return e.trim()}function Et(e,t,n){return e.replace(t,n)}function Ot(e,t,n){return e.indexOf(t,n)}function _t(e,t){return 0|e.charCodeAt(t)}function jt(e,t,n){return e.slice(t,n)}function $t(e){return e.length}function Nt(e,t){return t.push(e),e}function Pt(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function It(e,t,n,r){switch(e.type){case xt:if(e.children.length)break;case yt:case bt:return e.return=e.return||e.value;case mt:return"";case wt:return e.return=e.value+"{"+Pt(e.children,r)+"}";case gt:if(!$t(e.value=e.props.join(",")))return""}return $t(n=Pt(e.children,r))?e.return=e.value+"{"+n+"}":""}var Mt=1,Rt=1,At=0,Tt=0,qt=0,Dt="";function Lt(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Mt,column:Rt,length:a,return:"",siblings:l}}function zt(){return qt=Tt>0?_t(Dt,--Tt):0,Rt--,10===qt&&(Rt=1,Mt--),qt}function Bt(){return qt=Tt<At?_t(Dt,Tt++):0,Rt++,10===qt&&(Rt=1,Mt++),qt}function Ft(){return _t(Dt,Tt)}function Ht(){return Tt}function Wt(e,t){return jt(Dt,e,t)}function Vt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ut(e){return Mt=Rt=1,At=$t(Dt=e),Tt=0,[]}function Gt(e){return Dt="",e}function Yt(e){return kt(Wt(Tt-1,Qt(91===e?e+2:40===e?e+1:e)))}function Kt(e){for(;(qt=Ft())&&qt<33;)Bt();return Vt(e)>2||Vt(qt)>3?"":" "}function Xt(e,t){for(;--t&&Bt()&&!(qt<48||qt>102||qt>57&&qt<65||qt>70&&qt<97););return Wt(e,Ht()+(t<6&&32==Ft()&&32==Bt()))}function Qt(e){for(;Bt();)switch(qt){case e:return Tt;case 34:case 39:34!==e&&39!==e&&Qt(qt);break;case 40:41===e&&Qt(e);break;case 92:Bt()}return Tt}function Zt(e,t){for(;Bt()&&e+qt!==57&&(e+qt!==84||47!==Ft()););return"/*"+Wt(t,Tt-1)+"*"+Ct(47===e?e:Bt())}function Jt(e){for(;!Vt(Ft());)Bt();return Wt(e,Tt)}function en(e){return Gt(tn("",null,null,null,[""],e=Ut(e),0,[0],e))}function tn(e,t,n,r,o,i,a,l,c){for(var s=0,u=0,f=a,d=0,p=0,h=0,v=1,m=1,g=1,b=0,y="",w=o,x=i,S=r,C=y;m;)switch(h=b,b=Bt()){case 40:if(108!=h&&58==_t(C,f-1)){-1!=Ot(C+=Et(Yt(b),"&","&\f"),"&\f",St(s?l[s-1]:0))&&(g=-1);break}case 34:case 39:case 91:C+=Yt(b);break;case 9:case 10:case 13:case 32:C+=Kt(h);break;case 92:C+=Xt(Ht()-1,7);continue;case 47:switch(Ft()){case 42:case 47:Nt(rn(Zt(Bt(),Ht()),t,n,c),c);break;default:C+="/"}break;case 123*v:l[s++]=$t(C)*g;case 125*v:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==g&&(C=Et(C,/\f/g,"")),p>0&&$t(C)-f&&Nt(p>32?on(C+";",r,n,f-1,c):on(Et(C," ","")+";",r,n,f-2,c),c);break;case 59:C+=";";default:if(Nt(S=nn(C,t,n,s,u,o,l,y,w=[],x=[],f,i),i),123===b)if(0===u)tn(C,t,S,S,w,i,f,l,x);else switch(99===d&&110===_t(C,3)?100:d){case 100:case 108:case 109:case 115:tn(e,S,S,r&&Nt(nn(e,S,S,0,0,o,l,y,o,w=[],f,x),x),o,x,f,l,r?w:x);break;default:tn(C,S,S,S,[""],x,0,l,x)}}s=u=p=0,v=g=1,y=C="",f=a;break;case 58:f=1+$t(C),p=h;default:if(v<1)if(123==b)--v;else if(125==b&&0==v++&&125==zt())continue;switch(C+=Ct(b),b*v){case 38:g=u>0?1:(C+="\f",-1);break;case 44:l[s++]=($t(C)-1)*g,g=1;break;case 64:45===Ft()&&(C+=Yt(Bt())),d=Ft(),u=f=$t(y=C+=Jt(Ht())),b++;break;case 45:45===h&&2==$t(C)&&(v=0)}}return i}function nn(e,t,n,r,o,i,a,l,c,s,u,f){for(var d=o-1,p=0===o?i:[""],h=function(e){return e.length}(p),v=0,m=0,g=0;v<r;++v)for(var b=0,y=jt(e,d+1,d=St(m=a[v])),w=e;b<h;++b)(w=kt(m>0?p[b]+" "+y:Et(y,/&\f/g,p[b])))&&(c[g++]=w);return Lt(e,t,n,0===o?gt:l,c,s,u,f)}function rn(e,t,n,r){return Lt(e,t,n,mt,Ct(qt),jt(e,2,-2),0,r)}function on(e,t,n,r,o){return Lt(e,t,n,bt,jt(e,0,r),jt(e,r+1,-1),r,o)}var an,ln="data-ant-cssinjs-cache-path",cn="_FILE_STYLE__";var sn=!0;function un(e){return function(){if(!an&&(an={},Z())){var e=document.createElement("div");e.className=ln,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=Y(e.split(":"),2),n=t[0],r=t[1];an[n]=r}));var n,r=document.querySelector("style[".concat(ln,"]"));r&&(sn=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!an[e]}var fn="_multi_value_";function dn(e){return Pt(en(e),It).replace(/\{%%%\:[^;];}/g,";")}var pn=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,c=n.layer,s=(n.path,n.hashPriority),u=n.transformers,f=void 0===u?[]:u,d=(n.linters,""),p={};function h(t){var r=t.getName(l);if(!p[r]){var o=Y(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];p[r]="@keyframes ".concat(t.getName(l)).concat(o)}}var v=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return v.forEach((function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)d+="".concat(r,"\n");else if(r._keyframe)h(r);else{var c=f.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(c).forEach((function(t){var r=c[t];if("object"!==m(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===m(e)&&e&&("_skip_check_"in e||fn in e)}(r)){var u;function S(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;vt[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(h(t),r=t.getName(l)),d+="".concat(n,":").concat(r,";")}var f=null!==(u=null==r?void 0:r.value)&&void 0!==u?u:r;"object"===m(r)&&null!=r&&r[fn]&&Array.isArray(f)?f.forEach((function(e){S(t,e)})):S(t,f)}else{var v=!1,g=t.trim(),b=!1;(o||i)&&l?g.startsWith("@")?v=!0:g=function(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(X(n.slice(1))).join(" ")})).join(",")}(t,l,s):!o||l||"&"!==g&&""!==g||(g="",b=!0);var y=Y(e(r,n,{root:b,injectHash:v,parentSelectors:[].concat(X(a),[g])}),2),w=y[0],x=y[1];p=C(C({},p),x),d+="".concat(g).concat(w)}}))}})),o?c&&(d="@layer ".concat(c.name," {").concat(d,"}"),c.dependencies&&(p["@layer ".concat(c.name)]=c.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(c.name,";")})).join("\n"))):d="{".concat(d,"}"),[d,p]};function hn(e,t){return Q("".concat(e.join("%")).concat(t))}function vn(){return null}var mn="style";function gn(e,n){var r=e.token,o=e.path,i=e.hashId,a=e.layer,l=e.nonce,c=e.clientOnly,s=e.order,u=void 0===s?0:s,f=t.useContext(Me),d=f.autoClear,p=(f.mock,f.defaultCache),h=f.hashPriority,v=f.container,m=f.ssrInline,g=f.transformers,b=f.linters,y=f.cache,w=f.layer,S=r._tokenKey,k=[S];w&&k.push("layer"),k.push.apply(k,X(o));var E=Ve;var O=it(mn,k,(function(){var e=k.join("|");if(un(e)){var t=function(e){var t=an[e],n=null;if(t&&Z())if(sn)n=cn;else{var r=document.querySelector("style[".concat($e,'="').concat(an[e],'"]'));r?n=r.innerHTML:delete an[e]}return[n,t]}(e),r=Y(t,2),l=r[0],s=r[1];if(l)return[l,S,s,{},c,u]}var f=n(),d=Y(pn(f,{hashId:i,hashPriority:h,layer:w?a:void 0,path:o.join("-"),transformers:g,linters:b}),2),p=d[0],v=d[1],m=dn(p),y=hn(k,m);return[m,S,y,v,c,u]}),(function(e,t){var n=Y(e,3)[2];(t||d)&&Ve&&se(n,{mark:$e})}),(function(e){var t=Y(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(E&&n!==cn){var i={mark:$e,prepend:!w&&"queue",attachTo:v,priority:u},a="function"==typeof l?l():l;a&&(i.csp={nonce:a});var c=[],s=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?c.push(e):s.push(e)})),c.forEach((function(e){ue(dn(o[e]),"_layer-".concat(e),C(C({},i),{},{prepend:!0}))}));var f=ue(n,r,i);f[Ne]=y.instanceId,f.setAttribute(je,S),s.forEach((function(e){ue(dn(o[e]),"_effect-".concat(e),i)}))}})),_=Y(O,3),j=_[0],$=_[1],N=_[2];return function(e){var n;return n=m&&!E&&p?t.createElement("style",ht({},x(x({},je,$),$e,N),{dangerouslySetInnerHTML:{__html:j}})):t.createElement(vn,null),t.createElement(t.Fragment,null,n,e)}}var bn="cssVar",yn=function(e,n){var r=e.key,o=e.prefix,i=e.unitless,a=e.ignore,l=e.token,c=e.scope,s=void 0===c?"":c,u=(0,t.useContext)(Me),f=u.cache.instanceId,d=u.container,p=l._tokenKey,h=[].concat(X(e.path),[r,s,p]),v=it(bn,h,(function(){var e=n(),t=Y(Xe(e,r,{prefix:o,unitless:i,ignore:a,scope:s}),2),l=t[0],c=t[1];return[l,c,hn(h,c),r]}),(function(e){var t=Y(e,3)[2];Ve&&se(t,{mark:$e})}),(function(e){var t=Y(e,3),n=t[1],o=t[2];if(n){var i=ue(n,o,{mark:$e,prepend:"queue",attachTo:d,priority:-999});i[Ne]=f,i.setAttribute(je,r)}}));return v};x(x(x({},mn,(function(e,t,n){var r=Y(e,6),o=r[0],i=r[1],a=r[2],l=r[3],c=r[4],s=r[5],u=(n||{}).plain;if(c)return null;var f=o,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(s)};return f=Ge(o,i,a,d,u),l&&Object.keys(l).forEach((function(e){if(!t[e]){t[e]=!0;var n=Ge(dn(l[e]),i,"_effect-".concat(e),d,u);e.startsWith("@layer")?f=n+f:f+=n}})),[s,a,f]})),dt,(function(e,t,n){var r=Y(e,5),o=r[2],i=r[3],a=r[4],l=(n||{}).plain;if(!i)return null;var c=o._tokenKey;return[-999,c,Ge(i,a,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]})),bn,(function(e,t,n){var r=Y(e,4),o=r[1],i=r[2],a=r[3],l=(n||{}).plain;if(!o)return null;return[-999,i,Ge(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]}));var wn=function(){function e(t,n){xe(this,e),x(this,"name",void 0),x(this,"style",void 0),x(this,"_keyframe",!0),this.name=t,this.style=n}return Ce(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}(),xn=wn;function Sn(e){return e.notSplit=!0,e}Sn(["borderTop","borderBottom"]),Sn(["borderTop"]),Sn(["borderBottom"]),Sn(["borderLeft","borderRight"]),Sn(["borderLeft"]),Sn(["borderRight"]);var Cn=(0,t.createContext)({});function kn(e){return W(e)||K(e)||U(e)||G()}function En(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function On(e,t,n,r){if(!t.length)return n;var o,i=kn(t),a=i[0],l=i.slice(1);return o=e||"number"!=typeof a?Array.isArray(e)?X(e):C({},e):[],r&&void 0===n&&1===l.length?delete o[a][l[0]]:o[a]=On(o[a],l,n,r),o}function _n(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!En(e,t.slice(0,-1))?e:On(e,t,n,r)}function jn(e){return Array.isArray(e)?[]:{}}var $n="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function Nn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=jn(t[0]);return t.forEach((function(e){!function t(n,o){var i,a=new Set(o),l=En(e,n),c=Array.isArray(l);if(c||"object"===m(i=l)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(l)){a.add(l);var s=En(r,n);c?r=_n(r,n,[]):s&&"object"===m(s)||(r=_n(r,n,jn(l))),$n(l).forEach((function(e){t([].concat(X(n),[e]),a)}))}}else r=_n(r,n,l)}([])})),r}function Pn(){}const In=t.createContext({}),Mn=()=>{const e=()=>{};return e.deprecated=Pn,e};var Rn=(0,t.createContext)(void 0),An={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},Tn=C(C({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});var qn={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};var Dn={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},Tn),timePickerLocale:Object.assign({},qn)};const Ln="${label} is not a valid ${type}";var zn={locale:"en",Pagination:An,DatePicker:Dn,TimePicker:qn,Calendar:Dn,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Ln,method:Ln,array:Ln,object:Ln,number:Ln,date:Ln,boolean:Ln,integer:Ln,float:Ln,regexp:Ln,email:Ln,url:Ln,hex:Ln},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let Bn=Object.assign({},zn.Modal),Fn=[];const Hn=()=>Fn.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),zn.Modal);function Wn(){return Bn}var Vn=(0,t.createContext)(void 0);var Un=e=>{const{locale:n={},children:r,_ANT_MARK__:o}=e;t.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return Fn.push(t),Bn=Hn(),()=>{Fn=Fn.filter((e=>e!==t)),Bn=Hn()}}Bn=Object.assign({},zn.Modal)}(null==n?void 0:n.Modal);return e}),[n]);const i=t.useMemo((()=>Object.assign(Object.assign({},n),{exist:!0})),[n]);return t.createElement(Vn.Provider,{value:i},r)};function Gn(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function Yn(e){return Math.min(1,Math.max(0,e))}function Kn(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Xn(e){return e<=1?"".concat(100*Number(e),"%"):e}function Qn(e){return 1===e.length?"0"+e:String(e)}function Zn(e,t,n){e=Gn(e,255),t=Gn(t,255),n=Gn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else{var c=r-o;switch(a=l>.5?c/(2-r-o):c/(r+o),r){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4}i/=6}return{h:i,s:a,l:l}}function Jn(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function er(e,t,n){e=Gn(e,255),t=Gn(t,255),n=Gn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,c=0===r?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:c,v:a}}function tr(e,t,n,r){var o=[Qn(Math.round(e).toString(16)),Qn(Math.round(t).toString(16)),Qn(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function nr(e){return Math.round(255*parseFloat(e)).toString(16)}function rr(e){return or(e)/255}function or(e){return parseInt(e,16)}var ir={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function ar(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,l=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(ir[e])e=ir[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=ur.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=ur.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=ur.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=ur.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=ur.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=ur.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=ur.hex8.exec(e),n)return{r:or(n[1]),g:or(n[2]),b:or(n[3]),a:rr(n[4]),format:t?"name":"hex8"};if(n=ur.hex6.exec(e),n)return{r:or(n[1]),g:or(n[2]),b:or(n[3]),format:t?"name":"hex"};if(n=ur.hex4.exec(e),n)return{r:or(n[1]+n[1]),g:or(n[2]+n[2]),b:or(n[3]+n[3]),a:rr(n[4]+n[4]),format:t?"name":"hex8"};if(n=ur.hex3.exec(e),n)return{r:or(n[1]+n[1]),g:or(n[2]+n[2]),b:or(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(fr(e.r)&&fr(e.g)&&fr(e.b)?(t=function(e,t,n){return{r:255*Gn(e,255),g:255*Gn(t,255),b:255*Gn(n,255)}}(e.r,e.g,e.b),a=!0,l="%"===String(e.r).substr(-1)?"prgb":"rgb"):fr(e.h)&&fr(e.s)&&fr(e.v)?(r=Xn(e.s),o=Xn(e.v),t=function(e,t,n){e=6*Gn(e,360),t=Gn(t,100),n=Gn(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),c=r%6;return{r:255*[n,a,i,i,l,n][c],g:255*[l,n,n,a,i,i][c],b:255*[i,i,l,n,n,a][c]}}(e.h,r,o),a=!0,l="hsv"):fr(e.h)&&fr(e.s)&&fr(e.l)&&(r=Xn(e.s),i=Xn(e.l),t=function(e,t,n){var r,o,i;if(e=Gn(e,360),t=Gn(t,100),n=Gn(n,100),0===t)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=Jn(l,a,e+1/3),o=Jn(l,a,e),i=Jn(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,i),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Kn(n),{ok:a,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var lr="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),cr="[\\s|\\(]+(".concat(lr,")[,|\\s]+(").concat(lr,")[,|\\s]+(").concat(lr,")\\s*\\)?"),sr="[\\s|\\(]+(".concat(lr,")[,|\\s]+(").concat(lr,")[,|\\s]+(").concat(lr,")[,|\\s]+(").concat(lr,")\\s*\\)?"),ur={CSS_UNIT:new RegExp(lr),rgb:new RegExp("rgb"+cr),rgba:new RegExp("rgba"+sr),hsl:new RegExp("hsl"+cr),hsla:new RegExp("hsla"+sr),hsv:new RegExp("hsv"+cr),hsva:new RegExp("hsva"+sr),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function fr(e){return Boolean(ur.CSS_UNIT.exec(String(e)))}var dr=2,pr=.16,hr=.05,vr=.05,mr=.15,gr=5,br=4,yr=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function wr(e){var t=er(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function xr(e){var t=e.r,n=e.g,r=e.b;return"#".concat(tr(t,n,r,!1))}function Sr(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-dr*t:Math.round(e.h)+dr*t:n?Math.round(e.h)+dr*t:Math.round(e.h)-dr*t)<0?r+=360:r>=360&&(r-=360),r}function Cr(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-pr*t:t===br?e.s+pr:e.s+hr*t)>1&&(r=1),n&&t===gr&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function kr(e,t,n){var r;return(r=n?e.v+vr*t:e.v-mr*t)>1&&(r=1),Number(r.toFixed(2))}function Er(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=ar(e),o=gr;o>0;o-=1){var i=wr(r),a=xr(ar({h:Sr(i,o,!0),s:Cr(i,o,!0),v:kr(i,o,!0)}));n.push(a)}n.push(xr(r));for(var l=1;l<=br;l+=1){var c=wr(r),s=xr(ar({h:Sr(c,l),s:Cr(c,l),v:kr(c,l)}));n.push(s)}return"dark"===t.theme?yr.map((function(e){var r=e.index,o=e.opacity,i=xr(function(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}(ar(t.backgroundColor||"#141414"),ar(n[r]),100*o));return i})):n}var Or={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},_r=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];_r.primary=_r[5];var jr=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];jr.primary=jr[5];var $r=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];$r.primary=$r[5];var Nr=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Nr.primary=Nr[5];var Pr=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Pr.primary=Pr[5];var Ir=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Ir.primary=Ir[5];var Mr=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Mr.primary=Mr[5];var Rr=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Rr.primary=Rr[5];var Ar=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ar.primary=Ar[5];var Tr=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Tr.primary=Tr[5];var qr=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];qr.primary=qr[5];var Dr=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Dr.primary=Dr[5];var Lr=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Lr.primary=Lr[5];var zr={red:_r,volcano:jr,orange:$r,gold:Nr,yellow:Pr,lime:Ir,green:Mr,cyan:Rr,blue:Ar,geekblue:Tr,purple:qr,magenta:Dr,grey:Lr},Br=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];Br.primary=Br[5];var Fr=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];Fr.primary=Fr[5];var Hr=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];Hr.primary=Hr[5];var Wr=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];Wr.primary=Wr[5];var Vr=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];Vr.primary=Vr[5];var Ur=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];Ur.primary=Ur[5];var Gr=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];Gr.primary=Gr[5];var Yr=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];Yr.primary=Yr[5];var Kr=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];Kr.primary=Kr[5];var Xr=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];Xr.primary=Xr[5];var Qr=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];Qr.primary=Qr[5];var Zr=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];Zr.primary=Zr[5];var Jr=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];Jr.primary=Jr[5];const eo={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"};var to=Object.assign(Object.assign({},eo),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),no=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=ar(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=Kn(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=er(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=er(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=Zn(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=Zn(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),tr(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i=[Qn(Math.round(e).toString(16)),Qn(Math.round(t).toString(16)),Qn(Math.round(n).toString(16)),Qn(nr(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*Gn(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*Gn(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+tr(this.r,this.g,this.b,!1),t=0,n=Object.entries(ir);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Yn(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Yn(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Yn(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Yn(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();var ro=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};var oo=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};function io(e){return(e+8)/e}var ao=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(Math.E,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:io(e)})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),o=n[1],i=n[0],a=n[2],l=r[1],c=r[0],s=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:s,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(s*a),fontHeightSM:Math.round(c*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const lo=(e,t)=>new no(e).setAlpha(t).toRgbString(),co=(e,t)=>new no(e).darken(t).toHexString(),so=e=>{const t=Er(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},uo=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:lo(r,.88),colorTextSecondary:lo(r,.65),colorTextTertiary:lo(r,.45),colorTextQuaternary:lo(r,.25),colorFill:lo(r,.15),colorFillSecondary:lo(r,.06),colorFillTertiary:lo(r,.04),colorFillQuaternary:lo(r,.02),colorBgLayout:co(n,4),colorBgContainer:co(n,0),colorBgElevated:co(n,0),colorBgSpotlight:lo(r,.85),colorBgBlur:"transparent",colorBorder:co(n,15),colorBorderSecondary:co(n,6)}};const fo=Le((function(e){Or.pink=Or.magenta,zr.pink=zr.magenta;const t=Object.keys(eo).map((t=>{const n=e[t]===Or[t]?zr[t]:Er(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:s,colorTextBase:u}=e,f=n(c),d=n(o),p=n(i),h=n(a),v=n(l),m=r(s,u),g=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},m),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],colorBgMask:new no("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:so,generateNeutralColorPalettes:uo})),ao(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),oo(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},ro(r))}(e))})),po={token:to,override:{override:to},hashed:!0},ho=t.createContext(po),vo=`-ant-${Date.now()}-${Math.random()}`;function mo(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new no(e),i=Er(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new no(t.primaryColor),i=Er(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new no(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(a,(e=>e.darken(2)))}t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info");const i=Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`));return`\n :root {\n ${i.join("\n")}\n }\n `.trim()}(e,t);Z()&&ue(n,`${vo}-dynamic-theme`)}const go=t.createContext(!1),bo=e=>{let{children:n,disabled:r}=e;const o=t.useContext(go);return t.createElement(go.Provider,{value:null!=r?r:o},n)};var yo=go;const wo=t.createContext(void 0),xo=e=>{let{children:n,size:r}=e;const o=t.useContext(wo);return t.createElement(wo.Provider,{value:r||o},n)};var So=wo;var Co=function(){return{componentDisabled:(0,t.useContext)(yo),componentSize:(0,t.useContext)(So)}};const ko=Object.assign({},n),{useId:Eo}=ko;var Oo=void 0===Eo?()=>"":Eo;var _o=o(6942),jo=o.n(_o);function $o(e){return e instanceof HTMLElement||e instanceof SVGElement}function No(e){var n,r=function(e){return e&&"object"===m(e)&&$o(e.nativeElement)?e.nativeElement:$o(e)?e:null}(e);return r||(e instanceof t.Component?null===(n=E.findDOMNode)||void 0===n?void 0:n.call(E,e):null)}var Po=o(6351),Io=function(e,t){"function"==typeof e?e(t):"object"===m(e)&&e&&"current"in e&&(e.current=t)},Mo=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){Io(t,e)}))}},Ro=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return fe((function(){return Mo.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},Ao=function(e){var t,n,r=(0,Po.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===Po.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===Po.ForwardRef)};function To(e){return(0,t.isValidElement)(e)&&!(0,Po.isFragment)(e)}Number(t.version.split(".")[0]);function qo(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Do=["children"],Lo=t.createContext({});function zo(e){var n=e.children,r=qo(e,Do);return t.createElement(Lo.Provider,{value:r},n)}function Bo(e,t){return Bo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Bo(e,t)}function Fo(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bo(e,t)}function Ho(e){return Ho=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ho(e)}function Wo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Wo=function(){return!!e})()}function Vo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uo(e,t){if(t&&("object"==m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Vo(e)}function Go(e){var t=Wo();return function(){var n,r=Ho(e);if(t){var o=Ho(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Uo(this,n)}}var Yo=function(e){Fo(n,e);var t=Go(n);function n(){return xe(this,n),t.apply(this,arguments)}return Ce(n,[{key:"render",value:function(){return this.props.children}}]),n}(t.Component),Ko=Yo;function Xo(e){var n=t.useRef();n.current=e;var r=t.useCallback((function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(r))}),[]);return r}function Qo(e){var n=t.useRef(!1),r=Y(t.useState(e),2),o=r[0],i=r[1];return t.useEffect((function(){return n.current=!1,function(){n.current=!0}}),[]),[o,function(e,t){t&&n.current||i(e)}]}function Zo(e){return void 0!==e}function Jo(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=Y(Qo((function(){return Zo(o)?o:Zo(r)?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),c=l[0],s=l[1],u=void 0!==o?o:c,f=a?a(u):u,d=Xo(i),p=Y(Qo([u]),2),h=p[0],v=p[1];return Je((function(){var e=h[0];c!==e&&d(c,e)}),[h]),Je((function(){Zo(o)||s(o)}),[o]),[f,Xo((function(e,t){s(e,t),v([u],t)}))]}var ei="none",ti="appear",ni="enter",ri="leave",oi="none",ii="prepare",ai="start",li="active",ci="end",si="prepared";function ui(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var fi=function(e,t){var n={animationend:ui("Animation","AnimationEnd"),transitionend:ui("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(Z(),"undefined"!=typeof window?window:{}),di={};if(Z()){var pi=document.createElement("div");di=pi.style}var hi={};function vi(e){if(hi[e])return hi[e];var t=fi[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in di)return hi[e]=t[i],hi[e]}return""}var mi=vi("animationend"),gi=vi("transitionend"),bi=!(!mi||!gi),yi=mi||"animationend",wi=gi||"transitionend";function xi(e,t){if(!e)return null;if("object"===m(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}var Si=function(e){var n=(0,t.useRef)();function r(t){t&&(t.removeEventListener(wi,e),t.removeEventListener(yi,e))}return t.useEffect((function(){return function(){r(n.current)}}),[]),[function(t){n.current&&n.current!==t&&r(n.current),t&&t!==n.current&&(t.addEventListener(wi,e),t.addEventListener(yi,e),n.current=t)},r]},Ci=Z()?t.useLayoutEffect:t.useEffect,ki=function(e){return+setTimeout(e,16)},Ei=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(ki=function(e){return window.requestAnimationFrame(e)},Ei=function(e){return window.cancelAnimationFrame(e)});var Oi=0,_i=new Map;function ji(e){_i.delete(e)}var $i=function(e){var t=Oi+=1;return function n(r){if(0===r)ji(t),e();else{var o=ki((function(){n(r-1)}));_i.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};$i.cancel=function(e){var t=_i.get(e);return ji(e),Ei(t)};var Ni=$i,Pi=[ii,ai,li,ci],Ii=[ii,si],Mi=!1,Ri=!0;function Ai(e){return e===li||e===ci}var Ti=function(e,n,r){var o=Y(Qo(oi),2),i=o[0],a=o[1],l=function(){var e=t.useRef(null);function n(){Ni.cancel(e.current)}return t.useEffect((function(){return function(){n()}}),[]),[function t(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;n();var i=Ni((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):t(r,o-1)}));e.current=i},n]}(),c=Y(l,2),s=c[0],u=c[1];var f=n?Ii:Pi;return Ci((function(){if(i!==oi&&i!==ci){var e=f.indexOf(i),t=f[e+1],n=r(i);n===Mi?a(t,!0):t&&s((function(e){function r(){e.isCanceled()||a(t,!0)}!0===n?r():Promise.resolve(n).then(r)}))}}),[e,i]),t.useEffect((function(){return function(){u()}}),[]),[function(){a(ii,!0)},i]};function qi(e,n,r,o){var i=o.motionEnter,a=void 0===i||i,l=o.motionAppear,c=void 0===l||l,s=o.motionLeave,u=void 0===s||s,f=o.motionDeadline,d=o.motionLeaveImmediately,p=o.onAppearPrepare,h=o.onEnterPrepare,v=o.onLeavePrepare,m=o.onAppearStart,g=o.onEnterStart,b=o.onLeaveStart,y=o.onAppearActive,w=o.onEnterActive,S=o.onLeaveActive,k=o.onAppearEnd,E=o.onEnterEnd,O=o.onLeaveEnd,_=o.onVisibleChanged,j=Y(Qo(),2),$=j[0],N=j[1],P=function(e){var n=Y(t.useReducer((function(e){return e+1}),0),2)[1],r=t.useRef(e);return[Xo((function(){return r.current})),Xo((function(e){r.current="function"==typeof e?e(r.current):e,n()}))]}(ei),I=Y(P,2),M=I[0],R=I[1],A=Y(Qo(null),2),T=A[0],q=A[1],D=M(),L=(0,t.useRef)(!1),z=(0,t.useRef)(null);function B(){return r()}var F=(0,t.useRef)(!1);function H(){R(ei),q(null,!0)}var W=Xo((function(e){var t=M();if(t!==ei){var n=B();if(!e||e.deadline||e.target===n){var r,o=F.current;t===ti&&o?r=null==k?void 0:k(n,e):t===ni&&o?r=null==E?void 0:E(n,e):t===ri&&o&&(r=null==O?void 0:O(n,e)),o&&!1!==r&&H()}}})),V=Y(Si(W),1)[0],U=function(e){switch(e){case ti:return x(x(x({},ii,p),ai,m),li,y);case ni:return x(x(x({},ii,h),ai,g),li,w);case ri:return x(x(x({},ii,v),ai,b),li,S);default:return{}}},G=t.useMemo((function(){return U(D)}),[D]),K=Y(Ti(D,!e,(function(e){if(e===ii){var t=G[ii];return t?t(B()):Mi}var n;Q in G&&q((null===(n=G[Q])||void 0===n?void 0:n.call(G,B(),null))||null);return Q===li&&D!==ei&&(V(B()),f>0&&(clearTimeout(z.current),z.current=setTimeout((function(){W({deadline:!0})}),f))),Q===si&&H(),Ri})),2),X=K[0],Q=K[1],Z=Ai(Q);F.current=Z,Ci((function(){N(n);var t,r=L.current;L.current=!0,!r&&n&&c&&(t=ti),r&&n&&a&&(t=ni),(r&&!n&&u||!r&&d&&!n&&u)&&(t=ri);var o=U(t);t&&(e||o[ii])?(R(t),X()):R(ei)}),[n]),(0,t.useEffect)((function(){(D===ti&&!c||D===ni&&!a||D===ri&&!u)&&R(ei)}),[c,a,u]),(0,t.useEffect)((function(){return function(){L.current=!1,clearTimeout(z.current)}}),[]);var J=t.useRef(!1);(0,t.useEffect)((function(){$&&(J.current=!0),void 0!==$&&D===ei&&((J.current||$)&&(null==_||_($)),J.current=!0)}),[$,D]);var ee=T;return G[ii]&&Q===ai&&(ee=C({transition:"none"},ee)),[D,Q,ee,null!=$?$:n]}var Di=function(e){var n=e;"object"===m(e)&&(n=e.transitionSupport);var r=t.forwardRef((function(e,r){var o=e.visible,i=void 0===o||o,a=e.removeOnLeave,l=void 0===a||a,c=e.forceRender,s=e.children,u=e.motionName,f=e.leavedClassName,d=e.eventProps,p=function(e,t){return!(!e.motionName||!n||!1===t)}(e,t.useContext(Lo).motion),h=(0,t.useRef)(),v=(0,t.useRef)();var m=Y(qi(p,i,(function(){try{return h.current instanceof HTMLElement?h.current:No(v.current)}catch(e){return null}}),e),4),g=m[0],b=m[1],y=m[2],w=m[3],S=t.useRef(w);w&&(S.current=!0);var k,E=t.useCallback((function(e){h.current=e,Io(r,e)}),[r]),O=C(C({},d),{},{visible:i});if(s)if(g===ei)k=w?s(C({},O),E):!l&&S.current&&f?s(C(C({},O),{},{className:f}),E):c||!l&&!f?s(C(C({},O),{},{style:{display:"none"}}),E):null;else{var _;b===ii?_="prepare":Ai(b)?_="active":b===ai&&(_="start");var j=xi(u,"".concat(g,"-").concat(_));k=s(C(C({},O),{},{className:jo()(xi(u,g),x(x({},j,j&&_),u,"string"==typeof u)),style:y}),E)}else k=null;t.isValidElement(k)&&Ao(k)&&(k.ref||(k=t.cloneElement(k,{ref:E})));return t.createElement(Ko,{ref:v},k)}));return r.displayName="CSSMotion",r}(bi),Li="add",zi="keep",Bi="remove",Fi="removed";function Hi(e){var t;return C(C({},t=e&&"object"===m(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Wi(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Hi)}var Vi=["component","children","onVisibleChanged","onAllRemoved"],Ui=["status"],Gi=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var Yi=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Di,n=function(n){Fo(o,n);var r=Go(o);function o(){var e;xe(this,o);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return x(Vo(e=r.call.apply(r,[this].concat(n))),"state",{keyEntities:[]}),x(Vo(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:C(C({},e),{},{status:Fi})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==Fi})).length})),e}return Ce(o,[{key:"render",value:function(){var n=this,r=this.state.keyEntities,o=this.props,i=o.component,a=o.children,l=o.onVisibleChanged,c=o.onAllRemoved,s=qo(o,Vi),u=i||t.Fragment,f={};return Gi.forEach((function(e){f[e]=s[e],delete s[e]})),delete s.keys,t.createElement(u,s,r.map((function(r,o){var i=r.status,s=qo(r,Ui),u=i===Li||i===zi;return t.createElement(e,ht({},f,{key:s.key,visible:u,eventProps:s,onVisibleChanged:function(e){(null==l||l(e,{key:s.key}),e)||0===n.removeKey(s.key)&&c&&c()}}),(function(e,t){return a(C(C({},e),{},{index:o}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=Wi(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=Wi(e),a=Wi(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var l=a[i];if(l.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return C(C({},e),{},{status:Li})}))),r=i),n.push(C(C({},l),{},{status:zi})),r+=1,t=!0;break}}t||n.push(C(C({},e),{},{status:Bi}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return C(C({},e),{},{status:Li})}))));var l={};n.forEach((function(e){var t=e.key;l[t]=(l[t]||0)+1}));var c=Object.keys(l).filter((function(e){return l[e]>1}));return c.forEach((function(e){n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==Bi})),n.forEach((function(t){t.key===e&&(t.status=zi)}))})),n}(r,o);return{keyEntities:i.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==Fi||e.status!==Bi}))}}}]),o}(t.Component);return x(n,"defaultProps",{component:"div"}),n}(bi),Ki=Di,Xi="5.20.2";function Qi(e){return e>=0&&e<=255}var Zi=function(e,t){const{r:n,g:r,b:o,a:i}=new no(e).toRgb();if(i<1)return e;const{r:a,g:l,b:c}=new no(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),i=Math.round((r-l*(1-e))/e),s=Math.round((o-c*(1-e))/e);if(Qi(t)&&Qi(i)&&Qi(s))return new no({r:t,g:i,b:s,a:Math.round(100*e)/100}).toRgbString()}return new no({r:n,g:r,b:o,a:1}).toRgbString()},Ji=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function ea(e){const{override:t}=e,n=Ji(e,["override"]),r=Object.assign({},t);Object.keys(to).forEach((e=>{delete r[e]}));const o=Object.assign(Object.assign({},n),r),i=1200,a=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Zi(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Zi(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Zi(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Zi(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new no("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new no("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new no("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var ta=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const na={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},ra={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},oa={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},ia=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=ta(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=ea(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=ta(n,["theme"]);let i=o;r&&(i=ia(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function aa(){const{token:e,hashed:n,theme:r,override:o,cssVar:i}=t.useContext(ho),a=`${Xi}-${n||""}`,l=r||fo,[c,s,u]=pt(l,[to,e],{salt:a,override:o,getComputedToken:ia,formatToken:ea,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:na,ignore:ra,preserve:oa}});return[l,u,n?s:"",c,i]}function la(e){const{children:n}=e,[,r]=aa(),{motion:o}=r,i=t.useRef(!1);return i.current=i.current||!1===o,i.current?t.createElement(zo,{motion:o},n):n}var ca=()=>null;const sa={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},ua=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},fa=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),da=e=>({outline:`${Ue(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),pa=e=>({"&:focus-visible":Object.assign({},da(e))});var ha=(e,t)=>{const[n,r]=aa();return gn({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}]))},va=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ma=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let ga,ba,ya,wa;function xa(){return ga||L}function Sa(){return ba||z}const Ca=()=>({getPrefixCls:(e,t)=>t||(e?`${xa()}-${e}`:xa()),getIconPrefixCls:Sa,getRootPrefixCls:()=>ga||xa(),getTheme:()=>ya,holderRender:wa}),ka=e=>{const{children:n,csp:r,autoInsertSpaceInButton:o,alert:i,anchor:a,form:l,locale:c,componentSize:s,direction:u,space:f,virtual:d,dropdownMatchSelectWidth:p,popupMatchSelectWidth:h,popupOverflow:v,legacyLocale:m,parentContext:g,iconPrefixCls:b,theme:y,componentDisabled:w,segmented:x,statistic:S,spin:C,calendar:k,carousel:E,cascader:O,collapse:_,typography:j,checkbox:$,descriptions:N,divider:P,drawer:I,skeleton:M,steps:R,image:A,layout:T,list:q,mentions:D,modal:L,progress:B,result:H,slider:W,breadcrumb:V,menu:U,pagination:G,input:Y,textArea:K,empty:X,badge:Q,radio:Z,rate:J,switch:ee,transfer:te,avatar:ne,message:re,tag:oe,table:ie,card:ae,tabs:le,timeline:ce,timePicker:se,upload:ue,notification:de,tree:pe,colorPicker:he,datePicker:ve,rangePicker:me,flex:ge,wave:be,dropdown:ye,warning:xe,tour:Se,floatButtonGroup:Ce,variant:ke,inputNumber:Ee,treeSelect:Oe}=e,_e=t.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||g.getPrefixCls("");return t?`${o}-${t}`:o}),[g.getPrefixCls,e.prefixCls]),je=b||g.iconPrefixCls||z,$e=r||g.csp;ha(je,$e);const Ne=function(e,t,n){var r;Mn("ConfigProvider");const o=e||{},i=!1!==o.inherit&&t?t:Object.assign(Object.assign({},po),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:po.hashed,cssVar:null==t?void 0:t.cssVar}),a=Oo();return fe((()=>{var r,l;if(!e)return t;const c=Object.assign({},i.components);Object.keys(e.components||{}).forEach((t=>{c[t]=Object.assign(Object.assign({},c[t]),e.components[t])}));const s=`css-var-${a.replace(/:/g,"")}`,u=(null!==(r=o.cssVar)&&void 0!==r?r:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof i.cssVar?i.cssVar:{}),"object"==typeof o.cssVar?o.cssVar:{}),{key:"object"==typeof o.cssVar&&(null===(l=o.cssVar)||void 0===l?void 0:l.key)||s});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:c,cssVar:u})}),[o,i],((e,t)=>e.some(((e,n)=>{const r=t[n];return!we(e,r,!0)}))))}(y,g.theme,{prefixCls:_e("")});const Pe={csp:$e,autoInsertSpaceInButton:o,alert:i,anchor:a,locale:c||m,direction:u,space:f,virtual:d,popupMatchSelectWidth:null!=h?h:p,popupOverflow:v,getPrefixCls:_e,iconPrefixCls:je,theme:Ne,segmented:x,statistic:S,spin:C,calendar:k,carousel:E,cascader:O,collapse:_,typography:j,checkbox:$,descriptions:N,divider:P,drawer:I,skeleton:M,steps:R,image:A,input:Y,textArea:K,layout:T,list:q,mentions:D,modal:L,progress:B,result:H,slider:W,breadcrumb:V,menu:U,pagination:G,empty:X,badge:Q,radio:Z,rate:J,switch:ee,transfer:te,avatar:ne,message:re,tag:oe,table:ie,card:ae,tabs:le,timeline:ce,timePicker:se,upload:ue,notification:de,tree:pe,colorPicker:he,datePicker:ve,rangePicker:me,flex:ge,wave:be,dropdown:ye,warning:xe,tour:Se,floatButtonGroup:Ce,variant:ke,inputNumber:Ee,treeSelect:Oe};const Ie=Object.assign({},g);Object.keys(Pe).forEach((e=>{void 0!==Pe[e]&&(Ie[e]=Pe[e])})),ma.forEach((t=>{const n=e[t];n&&(Ie[t]=n)})),void 0!==o&&(Ie.button=Object.assign({autoInsertSpace:o},Ie.button));const Me=fe((()=>Ie),Ie,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),Re=t.useMemo((()=>({prefixCls:je,csp:$e})),[je,$e]);let Ae=t.createElement(t.Fragment,null,t.createElement(ca,{dropdownMatchSelectWidth:p}),n);const Te=t.useMemo((()=>{var e,t,n,r;return Nn((null===(e=zn.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Me.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=Me.form)||void 0===r?void 0:r.validateMessages)||{},(null==l?void 0:l.validateMessages)||{})}),[Me,null==l?void 0:l.validateMessages]);Object.keys(Te).length>0&&(Ae=t.createElement(Rn.Provider,{value:Te},Ae)),c&&(Ae=t.createElement(Un,{locale:c,_ANT_MARK__:"internalMark"},Ae)),(je||$e)&&(Ae=t.createElement(Cn.Provider,{value:Re},Ae)),s&&(Ae=t.createElement(xo,{size:s},Ae)),Ae=t.createElement(la,null,Ae);const qe=t.useMemo((()=>{const e=Ne||{},{algorithm:t,token:n,components:r,cssVar:o}=e,i=va(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?Le(t):fo,l={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=a:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=Le(r.algorithm)),delete r.algorithm),l[t]=r}));const c=Object.assign(Object.assign({},to),n);return Object.assign(Object.assign({},i),{theme:a,token:c,components:l,override:Object.assign({override:c},l),cssVar:o})}),[Ne]);return y&&(Ae=t.createElement(ho.Provider,{value:qe},Ae)),Me.warning&&(Ae=t.createElement(In.Provider,{value:Me.warning},Ae)),void 0!==w&&(Ae=t.createElement(bo,{disabled:w},Ae)),t.createElement(F.Provider,{value:Me},Ae)},Ea=e=>{const n=t.useContext(F),r=t.useContext(Vn);return t.createElement(ka,Object.assign({parentContext:n,legacyLocale:r},e))};Ea.ConfigContext=F,Ea.SizeContext=So,Ea.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(ga=t),void 0!==n&&(ba=n),"holderRender"in e&&(wa=o),r&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?ya=r:mo(xa(),r))},Ea.useConfig=Co,Object.defineProperty(Ea,"SizeContext",{get:()=>So});var Oa=Ea,_a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function ja(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function $a(e){return function(e){return ja(e)instanceof ShadowRoot}(e)?ja(e):null}function Na(e){return"object"===m(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===m(e.icon)||"function"==typeof e.icon)}function Pa(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];if("class"===n)t.className=r,delete t.class;else delete t[n],t[function(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}(n)]=r;return t}),{})}function Ia(e,n,r){return r?t.createElement(e.tag,C(C({key:n},Pa(e.attrs)),r),(e.children||[]).map((function(t,r){return Ia(t,"".concat(n,"-").concat(e.tag,"-").concat(r))}))):t.createElement(e.tag,C({key:n},Pa(e.attrs)),(e.children||[]).map((function(t,r){return Ia(t,"".concat(n,"-").concat(e.tag,"-").concat(r))})))}function Ma(e){return Er(e)[0]}function Ra(e){return e?Array.isArray(e)?e:[e]:[]}var Aa=["icon","className","onClick","style","primaryColor","secondaryColor"],Ta={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var qa=function(e){var n,r,o,i,a,l=e.icon,c=e.className,s=e.onClick,u=e.style,f=e.primaryColor,d=e.secondaryColor,p=qo(e,Aa),h=t.useRef(),v=Ta;if(f&&(v={primaryColor:f,secondaryColor:d||Ma(f)}),n=h,r=(0,t.useContext)(Cn),o=r.csp,i=r.prefixCls,a="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",i&&(a=a.replace(/anticon/g,i)),(0,t.useEffect)((function(){var e=$a(n.current);ue(a,"@ant-design-icons",{prepend:!0,csp:o,attachTo:e})}),[]),function(e,t){ye(e,"[@ant-design/icons] ".concat(t))}(Na(l),"icon should be icon definiton, but got ".concat(l)),!Na(l))return null;var m=l;return m&&"function"==typeof m.icon&&(m=C(C({},m),{},{icon:m.icon(v.primaryColor,v.secondaryColor)})),Ia(m.icon,"svg-".concat(m.name),C(C({className:c,onClick:s,style:u,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},p),{},{ref:h}))};qa.displayName="IconReact",qa.getTwoToneColors=function(){return C({},Ta)},qa.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Ta.primaryColor=t,Ta.secondaryColor=n||Ma(t),Ta.calculated=!!n};var Da=qa;function La(e){var t=Y(Ra(e),2),n=t[0],r=t[1];return Da.setTwoToneColors({primaryColor:n,secondaryColor:r})}var za=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];La(Ar.primary);var Ba=t.forwardRef((function(e,n){var r=e.className,o=e.icon,i=e.spin,a=e.rotate,l=e.tabIndex,c=e.onClick,s=e.twoToneColor,u=qo(e,za),f=t.useContext(Cn),d=f.prefixCls,p=void 0===d?"anticon":d,h=f.rootClassName,v=jo()(h,p,x(x({},"".concat(p,"-").concat(o.name),!!o.name),"".concat(p,"-spin"),!!i||"loading"===o.name),r),m=l;void 0===m&&c&&(m=-1);var g=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=Y(Ra(s),2),y=b[0],w=b[1];return t.createElement("span",ht({role:"img","aria-label":o.name},u,{ref:n,tabIndex:m,onClick:c,className:v}),t.createElement(Da,{icon:o,primaryColor:y,secondaryColor:w,style:g}))}));Ba.displayName="AntdIcon",Ba.getTwoToneColor=function(){var e=Da.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Ba.setTwoToneColor=La;var Fa=Ba,Ha=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:_a}))};var Wa=t.forwardRef(Ha),Va={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},Ua=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:Va}))};var Ga=t.forwardRef(Ua),Ya={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},Ka=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:Ya}))};var Xa=t.forwardRef(Ka),Qa={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},Za=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:Qa}))};var Ja=t.forwardRef(Za),el={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},tl=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:el}))};var nl=t.forwardRef(tl),rl={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},ol=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:rl}))};var il=t.forwardRef(ol),al={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=al.F1&&t<=al.F12)return!1;switch(t){case al.ALT:case al.CAPS_LOCK:case al.CONTEXT_MENU:case al.CTRL:case al.DOWN:case al.END:case al.ESC:case al.HOME:case al.INSERT:case al.LEFT:case al.MAC_FF_META:case al.META:case al.NUMLOCK:case al.NUM_CENTER:case al.PAGE_DOWN:case al.PAGE_UP:case al.PAUSE:case al.PRINT_SCREEN:case al.RIGHT:case al.SHIFT:case al.UP:case al.WIN_KEY:case al.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=al.ZERO&&e<=al.NINE)return!0;if(e>=al.NUM_ZERO&&e<=al.NUM_MULTIPLY)return!0;if(e>=al.A&&e<=al.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case al.SPACE:case al.QUESTION_MARK:case al.NUM_PLUS:case al.NUM_MINUS:case al.NUM_PERIOD:case al.NUM_DIVISION:case al.SEMICOLON:case al.DASH:case al.EQUALS:case al.COMMA:case al.PERIOD:case al.SLASH:case al.APOSTROPHE:case al.SINGLE_QUOTE:case al.OPEN_SQUARE_BRACKET:case al.BACKSLASH:case al.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ll=al,cl="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),sl="aria-",ul="data-";function fl(e,t){return 0===e.indexOf(t)}function dl(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:C({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||fl(n,sl))||t.data&&fl(n,ul)||t.attr&&cl.includes(n))&&(r[n]=e[n])})),r}var pl=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.style,i=e.className,a=e.duration,l=void 0===a?4.5:a,c=e.showProgress,s=e.pauseOnHover,u=void 0===s||s,f=e.eventKey,d=e.content,p=e.closable,h=e.closeIcon,v=void 0===h?"x":h,g=e.props,b=e.onClick,y=e.onNoticeClose,w=e.times,S=e.hovering,C=Y(t.useState(!1),2),k=C[0],E=C[1],O=Y(t.useState(0),2),_=O[0],j=O[1],$=Y(t.useState(0),2),N=$[0],P=$[1],I=S||k,M=l>0&&c,R=function(){y(f)};t.useEffect((function(){if(!I&&l>0){var e=Date.now()-N,t=setTimeout((function(){R()}),1e3*l-N);return function(){u&&clearTimeout(t),P(Date.now()-e)}}}),[l,I,w]),t.useEffect((function(){if(!I&&M&&(u||0===N)){var e,t=performance.now();return function n(){cancelAnimationFrame(e),e=requestAnimationFrame((function(e){var r=e+N-t,o=Math.min(r/(1e3*l),1);j(100*o),o<1&&n()}))}(),function(){u&&cancelAnimationFrame(e)}}}),[l,N,I,M,w]);var A=t.useMemo((function(){return"object"===m(p)&&null!==p?p:p?{closeIcon:v}:{}}),[p,v]),T=dl(A,!0),q=100-(!_||_<0?0:_>100?100:_),D="".concat(r,"-notice");return t.createElement("div",ht({},g,{ref:n,className:jo()(D,i,x({},"".concat(D,"-closable"),p)),style:o,onMouseEnter:function(e){var t;E(!0),null==g||null===(t=g.onMouseEnter)||void 0===t||t.call(g,e)},onMouseLeave:function(e){var t;E(!1),null==g||null===(t=g.onMouseLeave)||void 0===t||t.call(g,e)},onClick:b}),t.createElement("div",{className:"".concat(D,"-content")},d),p&&t.createElement("a",ht({tabIndex:0,className:"".concat(D,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==ll.ENTER||R()},"aria-label":"Close"},T,{onClick:function(e){e.preventDefault(),e.stopPropagation(),R()}}),A.closeIcon),M&&t.createElement("progress",{className:"".concat(D,"-progress"),max:"100",value:q},q+"%"))})),hl=pl,vl=t.createContext({}),ml=function(e){var n=e.children,r=e.classNames;return t.createElement(vl.Provider,{value:{classNames:r}},n)},gl=function(e){var t,n,r,o={offset:8,threshold:3,gap:16};e&&"object"===m(e)&&(o.offset=null!==(t=e.offset)&&void 0!==t?t:8,o.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,o.gap=null!==(r=e.gap)&&void 0!==r?r:16);return[!!e,o]},bl=["className","style","classNames","styles"];var yl=function(e){var n=e.configList,r=e.placement,o=e.prefixCls,i=e.className,a=e.style,l=e.motion,c=e.onAllNoticeRemoved,s=e.onNoticeClose,u=e.stack,f=(0,t.useContext)(vl).classNames,d=(0,t.useRef)({}),p=Y((0,t.useState)(null),2),h=p[0],v=p[1],m=Y((0,t.useState)([]),2),g=m[0],b=m[1],y=n.map((function(e){return{config:e,key:String(e.key)}})),w=Y(gl(u),2),S=w[0],k=w[1],E=k.offset,O=k.threshold,_=k.gap,j=S&&(g.length>0||y.length<=O),$="function"==typeof l?l(r):l;return(0,t.useEffect)((function(){S&&g.length>1&&b((function(e){return e.filter((function(e){return y.some((function(t){var n=t.key;return e===n}))}))}))}),[g,y,S]),(0,t.useEffect)((function(){var e,t;S&&d.current[null===(e=y[y.length-1])||void 0===e?void 0:e.key]&&v(d.current[null===(t=y[y.length-1])||void 0===t?void 0:t.key])}),[y,S]),t.createElement(Yi,ht({key:r,className:jo()(o,"".concat(o,"-").concat(r),null==f?void 0:f.list,i,x(x({},"".concat(o,"-stack"),!!S),"".concat(o,"-stack-expanded"),j)),style:a,keys:y,motionAppear:!0},$,{onAllRemoved:function(){c(r)}}),(function(e,n){var i=e.config,a=e.className,l=e.style,c=e.index,u=i,p=u.key,v=u.times,m=String(p),w=i,x=w.className,k=w.style,O=w.classNames,$=w.styles,N=qo(w,bl),P=y.findIndex((function(e){return e.key===m})),I={};if(S){var M=y.length-1-(P>-1?P:c-1),R="top"===r||"bottom"===r?"-50%":"0";if(M>0){var A,T,q;I.height=j?null===(A=d.current[m])||void 0===A?void 0:A.offsetHeight:null==h?void 0:h.offsetHeight;for(var D=0,L=0;L<M;L++){var z;D+=(null===(z=d.current[y[y.length-1-L].key])||void 0===z?void 0:z.offsetHeight)+_}var B=(j?D:M*E)*(r.startsWith("top")?1:-1),F=!j&&null!=h&&h.offsetWidth&&null!==(T=d.current[m])&&void 0!==T&&T.offsetWidth?((null==h?void 0:h.offsetWidth)-2*E*(M<3?M:3))/(null===(q=d.current[m])||void 0===q?void 0:q.offsetWidth):1;I.transform="translate3d(".concat(R,", ").concat(B,"px, 0) scaleX(").concat(F,")")}else I.transform="translate3d(".concat(R,", 0, 0)")}return t.createElement("div",{ref:n,className:jo()("".concat(o,"-notice-wrapper"),a,null==O?void 0:O.wrapper),style:C(C(C({},l),I),null==$?void 0:$.wrapper),onMouseEnter:function(){return b((function(e){return e.includes(m)?e:[].concat(X(e),[m])}))},onMouseLeave:function(){return b((function(e){return e.filter((function(e){return e!==m}))}))}},t.createElement(hl,ht({},N,{ref:function(e){P>-1?d.current[m]=e:delete d.current[m]},prefixCls:o,classNames:O,styles:$,className:jo()(x,null==f?void 0:f.notice),style:k,times:v,key:p,eventKey:p,onNoticeClose:s,hovering:S&&g.length>0})))}))},wl=t.forwardRef((function(e,n){var r=e.prefixCls,o=void 0===r?"rc-notification":r,i=e.container,a=e.motion,l=e.maxCount,c=e.className,s=e.style,u=e.onAllRemoved,f=e.stack,d=e.renderNotifications,p=Y(t.useState([]),2),h=p[0],v=p[1],m=function(e){var t,n=h.find((function(t){return t.key===e}));null==n||null===(t=n.onClose)||void 0===t||t.call(n),v((function(t){return t.filter((function(t){return t.key!==e}))}))};t.useImperativeHandle(n,(function(){return{open:function(e){v((function(t){var n,r=X(t),o=r.findIndex((function(t){return t.key===e.key})),i=C({},e);o>=0?(i.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,r[o]=i):(i.times=0,r.push(i));return l>0&&r.length>l&&(r=r.slice(-l)),r}))},close:function(e){m(e)},destroy:function(){v([])}}}));var g=Y(t.useState({}),2),b=g[0],y=g[1];t.useEffect((function(){var e={};h.forEach((function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))})),Object.keys(b).forEach((function(t){e[t]=e[t]||[]})),y(e)}),[h]);var w=function(e){y((function(t){var n=C({},t);return(n[e]||[]).length||delete n[e],n}))},x=t.useRef(!1);if(t.useEffect((function(){Object.keys(b).length>0?x.current=!0:x.current&&(null==u||u(),x.current=!1)}),[b]),!i)return null;var S=Object.keys(b);return(0,E.createPortal)(t.createElement(t.Fragment,null,S.map((function(e){var n=b[e],r=t.createElement(yl,{key:e,configList:n,placement:e,prefixCls:o,className:null==c?void 0:c(e),style:null==s?void 0:s(e),motion:a,onNoticeClose:m,onAllNoticeRemoved:w,stack:f});return d?d(r,{prefixCls:o,key:e}):r}))),i)}));var xl=wl,Sl=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Cl=function(){return document.body},kl=0;function El(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getContainer,r=void 0===n?Cl:n,o=e.motion,i=e.prefixCls,a=e.maxCount,l=e.className,c=e.style,s=e.onAllRemoved,u=e.stack,f=e.renderNotifications,d=qo(e,Sl),p=Y(t.useState(),2),h=p[0],v=p[1],m=t.useRef(),g=t.createElement(xl,{container:h,ref:m,prefixCls:i,motion:o,maxCount:a,className:l,style:c,onAllRemoved:s,stack:u,renderNotifications:f}),b=Y(t.useState([]),2),y=b[0],w=b[1],x=t.useMemo((function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){t&&Object.keys(t).forEach((function(n){var r=t[n];void 0!==r&&(e[n]=r)}))})),e}(d,e);null!==t.key&&void 0!==t.key||(t.key="rc-notification-".concat(kl),kl+=1),w((function(e){return[].concat(X(e),[{type:"open",config:t}])}))},close:function(e){w((function(t){return[].concat(X(t),[{type:"close",key:e}])}))},destroy:function(){w((function(e){return[].concat(X(e),[{type:"destroy"}])}))}}}),[]);return t.useEffect((function(){v(r())})),t.useEffect((function(){m.current&&y.length&&(y.forEach((function(e){switch(e.type){case"open":m.current.open(e.config);break;case"close":m.current.close(e.key);break;case"destroy":m.current.destroy()}})),w((function(e){return e.filter((function(e){return!y.includes(e)}))})))}),[y]),[x,g]}var Ol=e=>{const[,,,,t]=aa();return t?`${e}-css-var`:""};var _l=t.createContext(void 0);const jl=100,$l=1e3,Nl={Modal:jl,Drawer:jl,Popover:jl,Popconfirm:jl,Tooltip:jl,Tour:jl},Pl={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Il(e,n){const[,r]=aa(),o=t.useContext(_l),i=function(e){return e in Nl}(e);let a;if(void 0!==n)a=[n,n];else{let t=null!=o?o:0;t+=i?(o?0:r.zIndexPopupBase)+Nl[e]:Pl[e],a=[void 0===o?n:t,t]}return a}var Ml=Ce((function e(){xe(this,e)})),Rl="CALC_UNIT",Al=new RegExp(Rl,"g");function Tl(e){return"number"==typeof e?"".concat(e).concat(Rl):e}var ql=function(e){Fo(n,e);var t=Go(n);function n(e,r){var o;xe(this,n),x(Vo(o=t.call(this)),"result",""),x(Vo(o),"unitlessCssVar",void 0),x(Vo(o),"lowPriority",void 0);var i=m(e);return o.unitlessCssVar=r,e instanceof n?o.result="(".concat(e.result,")"):"number"===i?o.result=Tl(e):"string"===i&&(o.result=e),o}return Ce(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(Tl(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(Tl(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some((function(e){return t.result.includes(e)}))&&(r=!1),this.result=this.result.replace(Al,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(Ml),Dl=function(e){Fo(n,e);var t=Go(n);function n(e){var r;return xe(this,n),x(Vo(r=t.call(this)),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return Ce(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(Ml),Ll=function(e,t){var n="css"===e?ql:Dl;return function(e){return new n(e,t)}},zl=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Bl(e,t,n,r){var o=C({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach((function(e){var t,n=Y(e,2),r=n[0],i=n[1];(null!=o&&o[r]||null!=o&&o[i])&&(null!==(t=o[i])&&void 0!==t||(o[i]=null==o?void 0:o[r]))}));var i=C(C({},n),o);return Object.keys(i).forEach((function(e){i[e]===t[e]&&delete i[e]})),i}var Fl="undefined"!=typeof CSSINJS_STATISTIC,Hl=!0;function Wl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Fl)return Object.assign.apply(Object,[{}].concat(t));Hl=!1;var r={};return t.forEach((function(e){"object"===m(e)&&Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})}))})),Hl=!0,r}var Vl={};function Ul(){}var Gl=function(e){var t,n=e,r=Ul;return Fl&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){return Hl&&t.add(n),e[n]}}),r=function(e,n){var r;Vl[e]={global:Array.from(t),component:C(C({},null===(r=Vl[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}};function Yl(e,t,n){var r;return"function"==typeof n?n(Wl(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}}var Kl=function(){function e(){xe(this,e),x(this,"map",new Map),x(this,"objectIDMap",new WeakMap),x(this,"nextID",0),x(this,"lastAccessBeat",new Map),x(this,"accessBeat",0)}return Ce(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this,n=e.map((function(e){return e&&"object"===m(e)?"obj_".concat(t.getObjectID(e)):"".concat(m(e),"_").concat(e)}));return n.join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))})),this.accessBeat=0}}}]),e}(),Xl=new Kl;var Ql=function(e,n){return t.useMemo((function(){var t=Xl.get(n);if(t)return t;var r=e();return Xl.set(n,r),r}),n)},Zl=function(){return{}};const{genStyleHooks:Jl,genComponentStyleHook:ec,genSubStyleComponent:tc}=function(e){var n=e.useCSP,r=void 0===n?Zl:n,o=e.useToken,i=e.usePrefix,a=e.getResetStyles,l=e.getCommonStyle,c=e.getCompUnitless;function s(e,t,n){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=Array.isArray(e)?e:[e,e],u=Y(s,1)[0],f=s.join("-");return function(e){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,d=o(),p=d.theme,h=d.realToken,v=d.hashId,g=d.token,b=d.cssVar,y=i(),w=y.rootPrefixCls,x=y.iconPrefixCls,S=r(),k=b?"css":"js",E=Ql((function(){var e=new Set;return b&&Object.keys(c.unitless||{}).forEach((function(t){e.add(Ye(t,b.prefix)),e.add(Ye(t,zl(u,b.prefix)))})),Ll(k,e)}),[k,u,null==b?void 0:b.prefix]),O=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map((function(e){return Ue(e)})).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map((function(e){return Ue(e)})).join(","),")")}}}(k),_=O.max,j=O.min,$={theme:p,token:g,hashId:v,nonce:function(){return S.nonce},clientOnly:c.clientOnly,layer:{name:"antd"},order:c.order||-999};gn(C(C({},$),{},{clientOnly:!1,path:["Shared",w]}),(function(){return"function"==typeof a?a(g):[]}));var N=gn(C(C({},$),{},{path:[f,e,x]}),(function(){if(!1===c.injectStyle)return[];var r=Gl(g),o=r.token,i=r.flush,a=Yl(u,h,n),f=".".concat(e),d=Bl(u,h,a,{deprecatedTokens:c.deprecatedTokens});b&&"object"===m(a)&&Object.keys(a).forEach((function(e){a[e]="var(".concat(Ye(e,zl(u,b.prefix)),")")}));var p=Wl(o,{componentCls:f,prefixCls:e,iconCls:".".concat(x),antCls:".".concat(w),calc:E,max:_,min:j},b?a:d),y=t(p,{hashId:v,prefixCls:e,rootPrefixCls:w,iconPrefixCls:x});i(u,d);var S="function"==typeof l?l(p,e,s,c.resetFont):null;return[!1===c.resetStyle?null:S,y]}));return[N,v]}}return{genStyleHooks:function(e,n,r,i){var a=Array.isArray(e)?e[0]:e;function l(e){return"".concat(String(a)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var u=(null==i?void 0:i.unitless)||{},f=C(C({},"function"==typeof c?c(e):{}),{},x({},l("zIndexPopup"),!0));Object.keys(u).forEach((function(e){f[l(e)]=u[e]}));var d=C(C({},i),{},{unitless:f,prefixToken:l}),p=s(e,n,r,d),h=function(e,n,r){var i=r.unitless,a=r.injectStyle,l=void 0===a||a,c=r.prefixToken,s=r.ignore,u=function(t){var a=t.rootCls,l=t.cssVar,u=void 0===l?{}:l,f=o().realToken;return yn({path:[e],prefix:u.prefix,key:u.key,unitless:i,ignore:s,token:f,scope:a},(function(){var t=Yl(e,f,n),o=Bl(e,f,t,{deprecatedTokens:null==r?void 0:r.deprecatedTokens});return Object.keys(t).forEach((function(e){o[c(e)]=o[e],delete o[e]})),o})),null},f=function(n){var r=o().cssVar;return[function(o){return l&&r?t.createElement(t.Fragment,null,t.createElement(u,{rootCls:n,cssVar:r,component:e}),o):o},null==r?void 0:r.key]};return f}(a,r,d);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=Y(p(e,t),2)[1],r=Y(h(t),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(e,t,n){var r=s(e,t,n,C({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}));return function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null}},genComponentStyleHook:s}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:n}=(0,t.useContext)(F);return{rootPrefixCls:e(),iconPrefixCls:n}},useToken:()=>{const[e,t,n,r,o]=aa();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e,iconPrefixCls:n}=(0,t.useContext)(F);return ha(n,e),null!=e?e:{}},getResetStyles:e=>[{"&":fa(e)}],getCommonStyle:(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return!1!==r&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},getCompUnitless:()=>na});var nc=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new xn("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new xn("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new xn("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),c=new xn("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}}}}};const rc=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],oc={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},ic=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},ac=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)};var lc=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},ic(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},ac(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},rc.map((t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[oc[t]]:{value:0,_skip_check_:!0}}}}})(e,t))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}))};const cc=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:c,colorWarning:s,colorError:u,colorTextHeading:f,notificationBg:d,notificationPadding:p,notificationMarginEdge:h,notificationProgressBg:v,notificationProgressHeight:m,fontSize:g,lineHeight:b,width:y,notificationIconSize:w,colorText:x}=e,S=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:d,borderRadius:a,boxShadow:r,[S]:{padding:p,width:y,maxWidth:`calc(100vw - ${Ue(e.calc(h).mul(2).equal())})`,overflow:"hidden",lineHeight:b,wordWrap:"break-word"},[`${S}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${S}-description`]:{fontSize:g,color:x},[`${S}-closable ${S}-message`]:{paddingInlineEnd:e.paddingLG},[`${S}-with-icon ${S}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(w).equal(),fontSize:o},[`${S}-with-icon ${S}-description`]:{marginInlineStart:e.calc(e.marginSM).add(w).equal(),fontSize:g},[`${S}-icon`]:{position:"absolute",fontSize:w,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:s},[`&-error${t}`]:{color:u}},[`${S}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},pa(e)),[`${S}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${Ue(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:m,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:v},"&::-webkit-progress-value":{borderRadius:a,background:v}},[`${S}-btn`]:{float:"right",marginTop:e.marginSM}}},sc=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,l=new xn("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},ua(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},cc(e))}}]},uc=e=>({zIndexPopup:e.zIndexPopupBase+$l+50,width:384}),fc=e=>{const t=e.paddingMD,n=e.paddingLG;return Wl(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${Ue(e.paddingMD)} ${Ue(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})};var dc=Jl("Notification",(e=>{const t=fc(e);return[sc(t),nc(t),lc(t)]}),uc),pc=tc(["Notification","PurePanel"],(e=>{const t=`${e.componentCls}-notice`,n=fc(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},cc(n)),{width:n.width,maxWidth:`calc(100vw - ${Ue(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}}),uc),hc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function vc(e,n){return null===n||!1===n?null:n||t.createElement(Xa,{className:`${e}-close-icon`})}const mc={success:Wa,info:nl,error:Ga,warning:Ja},gc=e=>{const{prefixCls:n,icon:r,type:o,message:i,description:a,btn:l,role:c="alert"}=e;let s=null;return r?s=t.createElement("span",{className:`${n}-icon`},r):o&&(s=t.createElement(mc[o]||null,{className:jo()(`${n}-icon`,`${n}-icon-${o}`)})),t.createElement("div",{className:jo()({[`${n}-with-icon`]:s}),role:c},s,t.createElement("div",{className:`${n}-message`},i),t.createElement("div",{className:`${n}-description`},a),l&&t.createElement("div",{className:`${n}-btn`},l))};var bc=e=>{const{prefixCls:n,className:r,icon:o,type:i,message:a,description:l,btn:c,closable:s=!0,closeIcon:u,className:f}=e,d=hc(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:p}=t.useContext(F),h=n||p("notification"),v=`${h}-notice`,m=Ol(h),[g,b,y]=dc(h,m);return g(t.createElement("div",{className:jo()(`${v}-pure-panel`,b,r,y,m)},t.createElement(pc,{prefixCls:h}),t.createElement(hl,Object.assign({},d,{prefixCls:h,eventKey:"pure",duration:null,closable:s,className:jo()({notificationClassName:f}),closeIcon:vc(h,u),content:t.createElement(gc,{prefixCls:v,icon:o,type:i,message:a,description:l,btn:c})}))))};var yc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const wc="topRight",xc=e=>{let{children:n,prefixCls:r}=e;const o=Ol(r),[i,a,l]=dc(r,o);return i(t.createElement(ml,{classNames:{list:jo()(a,l,o)}},n))},Sc=(e,n)=>{let{prefixCls:r,key:o}=n;return t.createElement(xc,{prefixCls:r,key:o},e)},Cc=t.forwardRef(((e,n)=>{const{top:r,bottom:o,prefixCls:i,getContainer:a,maxCount:l,rtl:c,onAllRemoved:s,stack:u,duration:f,pauseOnHover:d=!0,showProgress:p}=e,{getPrefixCls:h,getPopupContainer:v,notification:m,direction:g}=(0,t.useContext)(F),[,b]=aa(),y=i||h("notification"),[w,x]=El({prefixCls:y,style:e=>function(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r}(e,null!=r?r:24,null!=o?o:24),className:()=>jo()({[`${y}-rtl`]:null!=c?c:"rtl"===g}),motion:()=>function(e){return{motionName:`${e}-fade`}}(y),closable:!0,closeIcon:vc(y),duration:null!=f?f:4.5,getContainer:()=>(null==a?void 0:a())||(null==v?void 0:v())||document.body,maxCount:l,pauseOnHover:d,showProgress:p,onAllRemoved:s,renderNotifications:Sc,stack:!1!==u&&{threshold:"object"==typeof u?null==u?void 0:u.threshold:void 0,offset:8,gap:b.margin}});return t.useImperativeHandle(n,(()=>Object.assign(Object.assign({},w),{prefixCls:y,notification:m}))),x}));function kc(e){const n=t.useRef(null),r=(Mn("Notification"),t.useMemo((()=>{const r=r=>{var o;if(!n.current)return;const{open:i,prefixCls:a,notification:l}=n.current,c=`${a}-notice`,{message:s,description:u,icon:f,type:d,btn:p,className:h,style:v,role:m="alert",closeIcon:g,closable:b}=r,y=yc(r,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),w=vc(c,void 0!==g?g:null==l?void 0:l.closeIcon);return i(Object.assign(Object.assign({placement:null!==(o=null==e?void 0:e.placement)&&void 0!==o?o:wc},y),{content:t.createElement(gc,{prefixCls:c,icon:f,type:d,message:s,description:u,btn:p,role:m}),className:jo()(d&&`${c}-${d}`,h,null==l?void 0:l.className),style:Object.assign(Object.assign({},null==l?void 0:l.style),v),closeIcon:w,closable:null!=b?b:!!w}))},o={open:r,destroy:e=>{var t,r;void 0!==e?null===(t=n.current)||void 0===t||t.close(e):null===(r=n.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach((e=>{o[e]=t=>r(Object.assign(Object.assign({},t),{type:e}))})),o}),[]));return[r,t.createElement(Cc,Object.assign({key:"notification-holder"},e,{ref:n}))]}let Ec=null,Oc=e=>e(),_c=[],jc={};function $c(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}=jc,l=(null==e?void 0:e())||document.body;return{getContainer:()=>l,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}}const Nc=t.forwardRef(((e,n)=>{const{notificationConfig:r,sync:o}=e,{getPrefixCls:i}=(0,t.useContext)(F),a=jc.prefixCls||i("notification"),l=(0,t.useContext)(D),[c,s]=kc(Object.assign(Object.assign(Object.assign({},r),{prefixCls:a}),l.notification));return t.useEffect(o,[]),t.useImperativeHandle(n,(()=>{const e=Object.assign({},c);return Object.keys(e).forEach((t=>{e[t]=function(){return o(),c[t].apply(c,arguments)}})),{instance:e,sync:o}})),s})),Pc=t.forwardRef(((e,n)=>{const[r,o]=t.useState($c),i=()=>{o($c)};t.useEffect(i,[]);const a=Ca(),l=a.getRootPrefixCls(),c=a.getIconPrefixCls(),s=a.getTheme(),u=t.createElement(Nc,{ref:n,sync:i,notificationConfig:r});return t.createElement(Oa,{prefixCls:l,iconPrefixCls:c,theme:s},a.holderRender?a.holderRender(u):u)}));function Ic(){if(!Ec){const e=document.createDocumentFragment(),n={fragment:e};return Ec=n,void Oc((()=>{I(t.createElement(Pc,{ref:e=>{const{instance:t,sync:r}=e||{};Promise.resolve().then((()=>{!n.instance&&t&&(n.instance=t,n.sync=r,Ic())}))}}),e)}))}Ec.instance&&(_c.forEach((e=>{switch(e.type){case"open":Oc((()=>{Ec.instance.open(Object.assign(Object.assign({},jc),e.config))}));break;case"destroy":Oc((()=>{null==Ec||Ec.instance.destroy(e.key)}))}})),_c=[])}function Mc(e){Ca();_c.push({type:"open",config:e}),Ic()}const Rc={open:Mc,destroy:e=>{_c.push({type:"destroy",key:e}),Ic()},config:function(e){jc=Object.assign(Object.assign({},jc),e),Oc((()=>{var e;null===(e=null==Ec?void 0:Ec.sync)||void 0===e||e.call(Ec)}))},useNotification:function(e){return kc(e)},_InternalPanelDoNotUseOrYouWillBeFired:bc},Ac=Rc;["success","info","warning","error"].forEach((e=>{Ac[e]=t=>Mc(Object.assign(Object.assign({},t),{type:e}))}));var Tc=Ac;function qc(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}var Dc=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};function Lc(e){return e&&t.isValidElement(e)&&e.type===t.Fragment}const zc=(e,n,r)=>t.isValidElement(e)?t.cloneElement(e,"function"==typeof r?r(e.props||{}):r):n;function Bc(e,t){return zc(e,e,t)}const Fc=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}};var Hc=ec("Wave",(e=>[Fc(e)]));const Wc=`${L}-wave-target`;function Vc(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function Uc(e){return Number.isNaN(e)?0:e}const Gc=e=>{const{className:n,target:r,component:o}=e,i=t.useRef(null),[a,l]=t.useState(null),[c,s]=t.useState([]),[u,f]=t.useState(0),[d,p]=t.useState(0),[h,v]=t.useState(0),[m,g]=t.useState(0),[b,y]=t.useState(!1),w={left:u,top:d,width:h,height:m,borderRadius:c.map((e=>`${e}px`)).join(" ")};function x(){const e=getComputedStyle(r);l(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Vc(t)?t:Vc(n)?n:Vc(r)?r:null}(r));const t="static"===e.position,{borderLeftWidth:n,borderTopWidth:o}=e;f(t?r.offsetLeft:Uc(-parseFloat(n))),p(t?r.offsetTop:Uc(-parseFloat(o))),v(r.offsetWidth),g(r.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:c,borderBottomRightRadius:u}=e;s([i,a,u,c].map((e=>Uc(parseFloat(e)))))}if(a&&(w["--wave-color"]=a),t.useEffect((()=>{if(r){const e=Ni((()=>{x(),y(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(x),t.observe(r)),()=>{Ni.cancel(e),null==t||t.disconnect()}}}),[]),!b)return null;const S=("Checkbox"===o||"Radio"===o)&&(null==r?void 0:r.classList.contains(Wc));return t.createElement(Ki,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=i.current)||void 0===n?void 0:n.parentElement;T(e).then((()=>{null==e||e.remove()}))}return!1}},((e,r)=>{let{className:o}=e;return t.createElement("div",{ref:Mo(i,r),className:jo()(n,o,{"wave-quick":S}),style:w})}))};var Yc=(e,n)=>{var r;const{component:o}=n;if("Checkbox"===o&&!(null===(r=e.querySelector("input"))||void 0===r?void 0:r.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild),I(t.createElement(Gc,Object.assign({},n,{target:e})),i)};var Kc=(e,n,r)=>{const{wave:o}=t.useContext(F),[,i,a]=aa(),l=Xo((t=>{const l=e.current;if((null==o?void 0:o.disabled)||!l)return;const c=l.querySelector(`.${Wc}`)||l,{showEffect:s}=o||{};(s||Yc)(c,{className:n,token:i,component:r,event:t,hashId:a})})),c=t.useRef();return e=>{Ni.cancel(c.current),c.current=Ni((()=>{l(e)}))}};var Xc=e=>{const{children:n,disabled:r,component:o}=e,{getPrefixCls:i}=(0,t.useContext)(F),a=(0,t.useRef)(null),l=i("wave"),[,c]=Hc(l),s=Kc(a,jo()(l,c),o);if(t.useEffect((()=>{const e=a.current;if(!e||1!==e.nodeType||r)return;const t=t=>{!Dc(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||s(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[r]),!t.isValidElement(n))return null!=n?n:null;return Bc(n,{ref:Ao(n)?Mo(n.ref,a):a})};var Qc=e=>{const n=t.useContext(So);return t.useMemo((()=>e?"string"==typeof e?null!=e?e:n:e instanceof Function?e(n):n:n),[e,n])};function Zc(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return t.Children.forEach(e,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(Zc(e)):(0,Po.isFragment)(e)&&e.props?r=r.concat(Zc(e.props.children,n)):r.push(e))})),r}const Jc=t.createContext(null),es=(e,n)=>{const r=t.useContext(Jc),o=t.useMemo((()=>{if(!r)return"";const{compactDirection:t,isFirstItem:o,isLastItem:i}=r,a="vertical"===t?"-vertical-":"-";return jo()(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===n})}),[e,n,r]);return{compactSize:null==r?void 0:r.compactSize,compactDirection:null==r?void 0:r.compactDirection,compactItemClassnames:o}},ts=e=>{let{children:n}=e;return t.createElement(Jc.Provider,{value:null},n)};var ns=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const rs=t.createContext(void 0);var os=e=>{const{getPrefixCls:n,direction:r}=t.useContext(F),{prefixCls:o,size:i,className:a}=e,l=ns(e,["prefixCls","size","className"]),c=n("btn-group",o),[,,s]=aa();let u="";switch(i){case"large":u="lg";break;case"small":u="sm"}const f=jo()(c,{[`${c}-${u}`]:u,[`${c}-rtl`]:"rtl"===r},a,s);return t.createElement(rs.Provider,{value:i},t.createElement("div",Object.assign({},l,{className:f})))};const is=/^[\u4e00-\u9fa5]{2}$/,as=is.test.bind(is);function ls(e){return"danger"===e?{danger:!0}:{type:e}}function cs(e){return"string"==typeof e}function ss(e){return"text"===e||"link"===e}function us(e,n){let r=!1;const o=[];return t.Children.forEach(e,(e=>{const t=typeof e,n="string"===t||"number"===t;if(r&&n){const t=o.length-1,n=o[t];o[t]=`${n}${e}`}else o.push(e);r=n})),t.Children.map(o,(e=>function(e,n){if(null==e)return;const r=n?" ":"";return"string"!=typeof e&&"number"!=typeof e&&cs(e.type)&&as(e.props.children)?Bc(e,{children:e.props.children.split("").join(r)}):cs(e)?as(e)?t.createElement("span",null,e.split("").join(r)):t.createElement("span",null,e):Lc(e)?t.createElement("span",null,e):e}(e,n)))}const fs=(0,t.forwardRef)(((e,n)=>{const{className:r,style:o,children:i,prefixCls:a}=e,l=jo()(`${a}-icon`,r);return t.createElement("span",{ref:n,className:l,style:o},i)}));var ds=fs;const ps=(0,t.forwardRef)(((e,n)=>{const{prefixCls:r,className:o,style:i,iconClassName:a}=e,l=jo()(`${r}-loading-icon`,o);return t.createElement(ds,{prefixCls:r,className:l,style:i,ref:n},t.createElement(il,{className:a}))})),hs=()=>({width:0,opacity:0,transform:"scale(0)"}),vs=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"});var ms=e=>{const{prefixCls:n,loading:r,existIcon:o,className:i,style:a}=e,l=!!r;return o?t.createElement(ps,{prefixCls:n,className:i,style:a}):t.createElement(Ki,{visible:l,motionName:`${n}-loading-icon-motion`,motionLeave:l,removeOnLeave:!0,onAppearStart:hs,onAppearActive:vs,onEnterStart:hs,onEnterActive:vs,onLeaveStart:vs,onLeaveActive:hs},((e,r)=>{let{className:o,style:l}=e;return t.createElement(ps,{prefixCls:n,className:i,style:Object.assign(Object.assign({},a),l),ref:r,iconClassName:o})}))};const gs=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var bs=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},gs(`${t}-primary`,o),gs(`${t}-danger`,i)]}};const ys=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return Wl(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},ws=e=>{var t,n,r,o,i,a;const l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,c=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,s=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:io(l),f=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:io(c),d=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:io(s);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:s,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:d,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-s*d)/2-e.lineWidth,0)}},xs=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Ue(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},pa(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},Ss=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Cs=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),ks=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Es=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Os=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Ss(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),_s=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Es(e))}),js=e=>Object.assign({},_s(e)),$s=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Ns=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},js(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Ss(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Os(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Ss(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Os(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),_s(e))}),Ps=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},js(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Ss(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Os(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},Ss(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Os(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),_s(e))}),Is=e=>Object.assign(Object.assign({},Ns(e)),{borderStyle:"dashed"}),Ms=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Ss(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),$s(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Ss(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),$s(e))}),Rs=e=>Object.assign(Object.assign(Object.assign({},Ss(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),$s(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},$s(e)),Ss(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),As=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Ns(e),[`${t}-primary`]:Ps(e),[`${t}-dashed`]:Is(e),[`${t}-link`]:Ms(e),[`${t}-text`]:Rs(e),[`${t}-ghost`]:Os(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Ts=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:l,iconCls:c,buttonPaddingVertical:s}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:o,lineHeight:i,height:r,padding:`${Ue(s)} ${Ue(l)}`,borderRadius:a,[`&${u}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:Cs(e)},{[`${n}${n}-round${t}`]:ks(e)}]},qs=e=>{const t=Wl(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return Ts(t,e.componentCls)},Ds=e=>{const t=Wl(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Ts(t,`${e.componentCls}-sm`)},Ls=e=>{const t=Wl(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Ts(t,`${e.componentCls}-lg`)},zs=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var Bs=Jl("Button",(e=>{const t=ys(e);return[xs(t),qs(t),Ds(t),Ls(t),zs(t),As(t),bs(t)]}),ws,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Fs(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function Hs(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Ws(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},Fs(e,r,t)),Hs(n,r,t))}}function Vs(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Us(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Vs(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const Gs=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${Ue(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${Ue(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}};var Ys=tc(["Button","compact"],(e=>{const t=ys(e);return[Ws(t),Us(t),Gs(t)]}),ws),Ks=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Xs=t.forwardRef(((e,n)=>{var r,o,i;const{loading:a=!1,prefixCls:l,type:c,danger:s=!1,shape:u="default",size:f,styles:d,disabled:p,className:h,rootClassName:v,children:m,icon:g,iconPosition:b="start",ghost:y=!1,block:w=!1,htmlType:x="button",classNames:S,style:C={},autoInsertSpace:k}=e,E=Ks(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),O=c||"default",{getPrefixCls:_,direction:j,button:$}=(0,t.useContext)(F),N=null===(r=null!=k?k:null==$?void 0:$.autoInsertSpace)||void 0===r||r,P=_("btn",l),[I,M,R]=Bs(P),A=(0,t.useContext)(yo),T=null!=p?p:A,q=(0,t.useContext)(rs),D=(0,t.useMemo)((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(a)),[a]),[L,z]=(0,t.useState)(D.loading),[B,H]=(0,t.useState)(!1),W=Mo(n,(0,t.createRef)()),V=1===t.Children.count(m)&&!g&&!ss(O);(0,t.useEffect)((()=>{let e=null;return D.delay>0?e=setTimeout((()=>{e=null,z(!0)}),D.delay):z(D.loading),function(){e&&(clearTimeout(e),e=null)}}),[D]),(0,t.useEffect)((()=>{if(!W||!W.current||!N)return;const e=W.current.textContent;V&&as(e)?B||H(!0):B&&H(!1)}),[W]);const U=t=>{const{onClick:n}=e;L||T?t.preventDefault():null==n||n(t)};const{compactSize:G,compactItemClassnames:Y}=es(P,j),K={large:"lg",small:"sm",middle:void 0},X=Qc((e=>{var t,n;return null!==(n=null!==(t=null!=f?f:G)&&void 0!==t?t:q)&&void 0!==n?n:e})),Q=X&&K[X]||"",Z=L?"loading":g,J=qc(E,["navigate"]),ee=jo()(P,M,R,{[`${P}-${u}`]:"default"!==u&&u,[`${P}-${O}`]:O,[`${P}-${Q}`]:Q,[`${P}-icon-only`]:!m&&0!==m&&!!Z,[`${P}-background-ghost`]:y&&!ss(O),[`${P}-loading`]:L,[`${P}-two-chinese-chars`]:B&&N&&!L,[`${P}-block`]:w,[`${P}-dangerous`]:s,[`${P}-rtl`]:"rtl"===j,[`${P}-icon-end`]:"end"===b},Y,h,v,null==$?void 0:$.className),te=Object.assign(Object.assign({},null==$?void 0:$.style),C),ne=jo()(null==S?void 0:S.icon,null===(o=null==$?void 0:$.classNames)||void 0===o?void 0:o.icon),re=Object.assign(Object.assign({},(null==d?void 0:d.icon)||{}),(null===(i=null==$?void 0:$.styles)||void 0===i?void 0:i.icon)||{}),oe=g&&!L?t.createElement(ds,{prefixCls:P,className:ne,style:re},g):t.createElement(ms,{existIcon:!!g,prefixCls:P,loading:L}),ie=m||0===m?us(m,V&&N):null;if(void 0!==J.href)return I(t.createElement("a",Object.assign({},J,{className:jo()(ee,{[`${P}-disabled`]:T}),href:T?void 0:J.href,style:te,onClick:U,ref:W,tabIndex:T?-1:0}),oe,ie));let ae=t.createElement("button",Object.assign({},E,{type:x,className:ee,style:te,onClick:U,disabled:T,ref:W}),oe,ie,!!Y&&t.createElement(Ys,{key:"compact",prefixCls:P}));return ss(O)||(ae=t.createElement(Xc,{component:"Button",disabled:L},ae)),I(ae)})),Qs=Xs;Qs.Group=os,Qs.__ANT_BUTTON=!0;var Zs=Qs,Js=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],eu=t.forwardRef((function(e,n){var r,o=e.prefixCls,i=void 0===o?"rc-switch":o,a=e.className,l=e.checked,c=e.defaultChecked,s=e.disabled,u=e.loadingIcon,f=e.checkedChildren,d=e.unCheckedChildren,p=e.onClick,h=e.onChange,v=e.onKeyDown,m=qo(e,Js),g=Y(Jo(!1,{value:l,defaultValue:c}),2),b=g[0],y=g[1];function w(e,t){var n=b;return s||(y(n=e),null==h||h(n,t)),n}var S=jo()(i,a,(x(r={},"".concat(i,"-checked"),b),x(r,"".concat(i,"-disabled"),s),r));return t.createElement("button",ht({},m,{type:"button",role:"switch","aria-checked":b,disabled:s,className:S,ref:n,onKeyDown:function(e){e.which===ll.LEFT?w(!1,e):e.which===ll.RIGHT&&w(!0,e),null==v||v(e)},onClick:function(e){var t=w(!b,e);null==p||p(t,e)}}),u,t.createElement("span",{className:"".concat(i,"-inner")},t.createElement("span",{className:"".concat(i,"-inner-checked")},f),t.createElement("span",{className:"".concat(i,"-inner-unchecked")},d)))}));eu.displayName="Switch";var tu=eu;const nu=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:l,calc:c}=e,s=`${t}-inner`,u=Ue(c(l).add(c(r).mul(2)).equal()),f=Ue(c(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:Ue(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${s}-checked, ${s}-unchecked`]:{minHeight:n},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${f})`,marginInlineEnd:`calc(100% - ${u} + ${f})`},[`${s}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:c(c(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${f})`,marginInlineEnd:`calc(-100% + ${u} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${Ue(c(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},ru=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},ou=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:i,calc:a}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(i).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${Ue(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},iu=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a,calc:l}=e,c=`${t}-inner`,s=Ue(l(a).add(l(r).mul(2)).equal()),u=Ue(l(i).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${s} - ${u})`,marginInlineEnd:`calc(100% - ${s} + ${u})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${s} + ${u})`,marginInlineEnd:`calc(-100% + ${s} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},au=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ua(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:Ue(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),pa(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}};var lu=Jl("Switch",(e=>{const t=Wl(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[au(t),iu(t),ou(t),ru(t),nu(t)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,l=i-4,c=a-4;return{trackHeight:i,trackHeightSM:a,trackMinWidth:2*l+8,trackMinWidthSM:2*c+4,trackPadding:2,handleBg:o,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new no("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}})),cu=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const su=t.forwardRef(((e,n)=>{const{prefixCls:r,size:o,disabled:i,loading:a,className:l,rootClassName:c,style:s,checked:u,value:f,defaultChecked:d,defaultValue:p,onChange:h}=e,v=cu(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[m,g]=Jo(!1,{value:null!=u?u:f,defaultValue:null!=d?d:p}),{getPrefixCls:b,direction:y,switch:w}=t.useContext(F),x=t.useContext(yo),S=(null!=i?i:x)||a,C=b("switch",r),k=t.createElement("div",{className:`${C}-handle`},a&&t.createElement(il,{className:`${C}-loading-icon`})),[E,O,_]=lu(C),j=Qc(o),$=jo()(null==w?void 0:w.className,{[`${C}-small`]:"small"===j,[`${C}-loading`]:a,[`${C}-rtl`]:"rtl"===y},l,c,O,_),N=Object.assign(Object.assign({},null==w?void 0:w.style),s);return E(t.createElement(Xc,{component:"Switch"},t.createElement(tu,Object.assign({},v,{checked:m,onChange:function(){g(arguments.length<=0?void 0:arguments[0]),null==h||h.apply(void 0,arguments)},prefixCls:C,className:$,style:N,disabled:S,ref:n,loadingIcon:k}))))})),uu=su;uu.__ANT_SWITCH=!0;var fu=uu;function du(e){var n=e.children,r=e.prefixCls,o=e.id,i=e.overlayInnerStyle,a=e.className,l=e.style;return t.createElement("div",{className:jo()("".concat(r,"-content"),a),style:l},t.createElement("div",{className:"".concat(r,"-inner"),id:o,role:"tooltip",style:i},"function"==typeof n?n():n))}var pu=t.createContext(null),hu=[];function vu(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),s=parseInt(l.height,10);try{var u=c?"width: ".concat(l.width,";"):"",f=s?"height: ".concat(l.height,";"):"";ue("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(f,"\n}"),t)}catch(e){console.error(e),r=c,o=s}}document.body.appendChild(n);var d=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),se(t),{width:d,height:p}}var mu="rc-util-locker-".concat(Date.now()),gu=0;function bu(e){var n=!!e,r=Y(t.useState((function(){return gu+=1,"".concat(mu,"_").concat(gu)})),1)[0];et((function(){if(n){var e=(o=document.body,"undefined"!=typeof document&&o&&o instanceof Element?vu(o):{width:0,height:0}).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;ue("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),r)}else se(r);var o;return function(){se(r)}}),[n,r])}var yu=!1;var wu=function(e){return!1!==e&&(Z()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},xu=t.forwardRef((function(e,n){var r=e.open,o=e.autoLock,i=e.getContainer,a=(e.debug,e.autoDestroy),l=void 0===a||a,c=e.children,s=Y(t.useState(r),2),u=s[0],f=s[1],d=u||r;t.useEffect((function(){(l||r)&&f(r)}),[r,l]);var p=Y(t.useState((function(){return wu(i)})),2),h=p[0],v=p[1];t.useEffect((function(){var e=wu(i);v(null!=e?e:null)}));var m=function(e){var n=Y(t.useState((function(){return Z()?document.createElement("div"):null})),1)[0],r=t.useRef(!1),o=t.useContext(pu),i=Y(t.useState(hu),2),a=i[0],l=i[1],c=o||(r.current?void 0:function(e){l((function(t){return[e].concat(X(t))}))});function s(){n.parentElement||document.body.appendChild(n),r.current=!0}function u(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),r.current=!1}return et((function(){return e?o?o(s):s():u(),u}),[e]),et((function(){a.length&&(a.forEach((function(e){return e()})),l(hu))}),[a]),[n,c]}(d&&!h),g=Y(m,2),b=g[0],y=g[1],w=null!=h?h:b;bu(o&&r&&Z()&&(w===b||w===document.body));var x=null;c&&Ao(c)&&n&&(x=c.ref);var S=Ro(x,n);if(!d||!Z()||void 0===h)return null;var C,k=!1===w||("boolean"==typeof C&&(yu=C),yu),O=c;return n&&(O=t.cloneElement(c,{ref:S})),t.createElement(pu.Provider,{value:y},k?O:(0,E.createPortal)(O,w))}));var Su=xu,Cu=t.createContext(null);var ku=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),Eu="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Ou=void 0!==o.g&&o.g.Math===Math?o.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),_u="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Ou):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var ju=["top","right","bottom","left","width","height","size","weight"],$u="undefined"!=typeof MutationObserver,Nu=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){_u(i)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){Eu&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),$u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Eu&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=ju.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Pu=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},Iu=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Ou},Mu=Lu(0,0,0,0);function Ru(e){return parseFloat(e)||0}function Au(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Ru(e["border-"+n+"-width"])}),0)}function Tu(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Mu;var r=Iu(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=Ru(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=Ru(r.width),c=Ru(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=Au(r,"left","right")+i),Math.round(c+a)!==n&&(c-=Au(r,"top","bottom")+a)),!function(e){return e===Iu(e).document.documentElement}(e)){var s=Math.round(l+i)-t,u=Math.round(c+a)-n;1!==Math.abs(s)&&(l-=s),1!==Math.abs(u)&&(c-=u)}return Lu(o.left,o.top,l,c)}var qu="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Iu(e).SVGGraphicsElement}:function(e){return e instanceof Iu(e).SVGElement&&"function"==typeof e.getBBox};function Du(e){return Eu?qu(e)?function(e){var t=e.getBBox();return Lu(0,0,t.width,t.height)}(e):Tu(e):Mu}function Lu(e,t,n,r){return{x:e,y:t,width:n,height:r}}var zu=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Lu(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Du(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),Bu=function(e,t){var n,r,o,i,a,l,c,s=(r=(n=t).x,o=n.y,i=n.width,a=n.height,l="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(l.prototype),Pu(c,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),c);Pu(this,{target:e,contentRect:s})},Fu=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new ku,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Iu(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new zu(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Iu(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new Bu(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Hu="undefined"!=typeof WeakMap?new WeakMap:new ku,Wu=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Nu.getInstance(),r=new Fu(t,n,this);Hu.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Wu.prototype[e]=function(){var t;return(t=Hu.get(this))[e].apply(t,arguments)}}));var Vu=void 0!==Ou.ResizeObserver?Ou.ResizeObserver:Wu,Uu=new Map;var Gu=new Vu((function(e){e.forEach((function(e){var t,n=e.target;null===(t=Uu.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var Yu=function(e){Fo(n,e);var t=Go(n);function n(){return xe(this,n),t.apply(this,arguments)}return Ce(n,[{key:"render",value:function(){return this.props.children}}]),n}(t.Component);function Ku(e,n){var r=e.children,o=e.disabled,i=t.useRef(null),a=t.useRef(null),l=t.useContext(Cu),c="function"==typeof r,s=c?r(i):r,u=t.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),f=!c&&t.isValidElement(s)&&Ao(s),d=f?s.ref:null,p=Ro(d,i),h=function(){var e;return No(i.current)||(i.current&&"object"===m(i.current)?No(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||No(a.current)};t.useImperativeHandle(n,(function(){return h()}));var v=t.useRef(e);v.current=e;var g=t.useCallback((function(e){var t=v.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,a=o.height,c=e.offsetWidth,s=e.offsetHeight,f=Math.floor(i),d=Math.floor(a);if(u.current.width!==f||u.current.height!==d||u.current.offsetWidth!==c||u.current.offsetHeight!==s){var p={width:f,height:d,offsetWidth:c,offsetHeight:s};u.current=p;var h=c===Math.round(i)?i:c,m=s===Math.round(a)?a:s,g=C(C({},p),{},{offsetWidth:h,offsetHeight:m});null==l||l(g,e,r),n&&Promise.resolve().then((function(){n(g,e)}))}}),[]);return t.useEffect((function(){var e,t,n=h();return n&&!o&&(e=n,t=g,Uu.has(e)||(Uu.set(e,new Set),Gu.observe(e)),Uu.get(e).add(t)),function(){return function(e,t){Uu.has(e)&&(Uu.get(e).delete(t),Uu.get(e).size||(Gu.unobserve(e),Uu.delete(e)))}(n,g)}}),[i.current,o]),t.createElement(Yu,{ref:a},f?t.cloneElement(s,{ref:p}):s)}var Xu=t.forwardRef(Ku);function Qu(e,n){var r=e.children;return("function"==typeof r?[r]:Zc(r)).map((function(r,o){var i=(null==r?void 0:r.key)||"".concat("rc-observer-key","-").concat(o);return t.createElement(Xu,ht({},e,{key:i,ref:0===o?n:void 0}),r)}))}var Zu=t.forwardRef(Qu);Zu.Collection=function(e){var n=e.children,r=e.onBatchResize,o=t.useRef(0),i=t.useRef([]),a=t.useContext(Cu),l=t.useCallback((function(e,t,n){o.current+=1;var l=o.current;i.current.push({size:e,element:t,data:n}),Promise.resolve().then((function(){l===o.current&&(null==r||r(i.current),i.current=[])})),null==a||a(e,t,n)}),[r,a]);return t.createElement(Cu.Provider,{value:l},n)};var Ju=Zu;var ef=0;var tf=C({},n).useId,nf=tf?function(e){var t=tf();return e||t}:function(e){var n=Y(t.useState("ssr-id"),2),r=n[0],o=n[1];return t.useEffect((function(){var e=ef;ef+=1,o("rc_unique_".concat(e))}),[]),e||r},rf=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))};function of(e){var n=e.prefixCls,r=e.align,o=e.arrow,i=e.arrowPos,a=o||{},l=a.className,c=a.content,s=i.x,u=void 0===s?0:s,f=i.y,d=void 0===f?0:f,p=t.useRef();if(!r||!r.points)return null;var h={position:"absolute"};if(!1!==r.autoArrow){var v=r.points[0],m=r.points[1],g=v[0],b=v[1],y=m[0],w=m[1];g!==y&&["t","b"].includes(g)?"t"===g?h.top=0:h.bottom=0:h.top=d,b!==w&&["l","r"].includes(b)?"l"===b?h.left=0:h.right=0:h.left=u}return t.createElement("div",{ref:p,className:jo()("".concat(n,"-arrow"),l),style:h},c)}function af(e){var n=e.prefixCls,r=e.open,o=e.zIndex,i=e.mask,a=e.motion;return i?t.createElement(Ki,ht({},a,{motionAppear:!0,visible:r,removeOnLeave:!0}),(function(e){var r=e.className;return t.createElement("div",{style:{zIndex:o},className:jo()("".concat(n,"-mask"),r)})})):null}var lf=t.memo((function(e){return e.children}),(function(e,t){return t.cache}));var cf=lf,sf=t.forwardRef((function(e,n){var r=e.popup,o=e.className,i=e.prefixCls,a=e.style,l=e.target,c=e.onVisibleChanged,s=e.open,u=e.keepDom,f=e.fresh,d=e.onClick,p=e.mask,h=e.arrow,v=e.arrowPos,m=e.align,g=e.motion,b=e.maskMotion,y=e.forceRender,w=e.getPopupContainer,x=e.autoDestroy,S=e.portal,k=e.zIndex,E=e.onMouseEnter,O=e.onMouseLeave,_=e.onPointerEnter,j=e.ready,$=e.offsetX,N=e.offsetY,P=e.offsetR,I=e.offsetB,M=e.onAlign,R=e.onPrepare,A=e.stretch,T=e.targetWidth,q=e.targetHeight,D="function"==typeof r?r():r,L=s||u,z=(null==w?void 0:w.length)>0,B=Y(t.useState(!w||!z),2),F=B[0],H=B[1];if(et((function(){!F&&z&&l&&H(!0)}),[F,z,l]),!F)return null;var W="auto",V={left:"-1000vw",top:"-1000vh",right:W,bottom:W};if(j||!s){var U,G=m.points,K=m.dynamicInset||(null===(U=m._experimental)||void 0===U?void 0:U.dynamicInset),X=K&&"r"===G[0][1],Q=K&&"b"===G[0][0];X?(V.right=P,V.left=W):(V.left=$,V.right=W),Q?(V.bottom=I,V.top=W):(V.top=N,V.bottom=W)}var Z={};return A&&(A.includes("height")&&q?Z.height=q:A.includes("minHeight")&&q&&(Z.minHeight=q),A.includes("width")&&T?Z.width=T:A.includes("minWidth")&&T&&(Z.minWidth=T)),s||(Z.pointerEvents="none"),t.createElement(S,{open:y||L,getContainer:w&&function(){return w(l)},autoDestroy:x},t.createElement(af,{prefixCls:i,open:s,zIndex:k,mask:p,motion:b}),t.createElement(Ju,{onResize:M,disabled:!s},(function(e){return t.createElement(Ki,ht({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(i,"-hidden")},g,{onAppearPrepare:R,onEnterPrepare:R,visible:s,onVisibleChanged:function(e){var t;null==g||null===(t=g.onVisibleChanged)||void 0===t||t.call(g,e),c(e)}}),(function(r,l){var c=r.className,u=r.style,p=jo()(i,c,o);return t.createElement("div",{ref:Mo(e,n,l),className:p,style:C(C(C(C({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},V),Z),u),{},{boxSizing:"border-box",zIndex:k},a),onMouseEnter:E,onMouseLeave:O,onPointerEnter:_,onClick:d},h&&t.createElement(of,{prefixCls:i,arrow:h,arrowPos:v,align:m}),t.createElement(cf,{cache:!s&&!f},D))}))})))}));var uf=sf,ff=t.forwardRef((function(e,n){var r=e.children,o=e.getTriggerDOMNode,i=Ao(r),a=t.useCallback((function(e){Io(n,o?o(e):e)}),[o]),l=Ro(a,r.ref);return i?t.cloneElement(r,{ref:l}):r}));var df=ff,pf=t.createContext(null);function hf(e){return e?Array.isArray(e)?e:[e]:[]}function vf(){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 mf(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function gf(e){return e.ownerDocument.defaultView}function bf(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=gf(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function yf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function wf(e){return yf(parseFloat(e),0)}function xf(e,t){var n=C({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=gf(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,f=e.clientHeight,d=e.offsetWidth,p=e.clientWidth,h=wf(i),v=wf(a),m=wf(l),g=wf(c),b=yf(Math.round(s.width/d*1e3)/1e3),y=yf(Math.round(s.height/u*1e3)/1e3),w=(d-p-m-g)*b,x=(u-f-h-v)*y,S=h*y,C=v*y,k=m*b,E=g*b,O=0,_=0;if("clip"===r){var j=wf(o);O=j*b,_=j*y}var $=s.x+k-O,N=s.y+S-_,P=$+s.width+2*O-k-E-w,I=N+s.height+2*_-S-C-x;n.left=Math.max(n.left,$),n.top=Math.max(n.top,N),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,I)}})),n}function Sf(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 Cf(e,t){var n=Y(t||[],2),r=n[0],o=n[1];return[Sf(e.width,r),Sf(e.height,o)]}function kf(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function Ef(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function Of(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 _f=["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"];var jf=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Su,n=t.forwardRef((function(n,r){var o=n.prefixCls,i=void 0===o?"rc-trigger-popup":o,a=n.children,l=n.action,c=void 0===l?"hover":l,s=n.showAction,u=n.hideAction,f=n.popupVisible,d=n.defaultPopupVisible,p=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,v=n.mouseEnterDelay,m=n.mouseLeaveDelay,g=void 0===m?.1:m,b=n.focusDelay,y=n.blurDelay,w=n.mask,x=n.maskClosable,S=void 0===x||x,k=n.getPopupContainer,E=n.forceRender,O=n.autoDestroy,_=n.destroyPopupOnHide,j=n.popup,$=n.popupClassName,N=n.popupStyle,P=n.popupPlacement,I=n.builtinPlacements,M=void 0===I?{}:I,R=n.popupAlign,A=n.zIndex,T=n.stretch,q=n.getPopupClassNameFromAlign,D=n.fresh,L=n.alignPoint,z=n.onPopupClick,B=n.onPopupAlign,F=n.arrow,H=n.popupMotion,W=n.maskMotion,V=n.popupTransitionName,U=n.popupAnimation,G=n.maskTransitionName,K=n.maskAnimation,Q=n.className,Z=n.getTriggerDOMNode,J=qo(n,_f),ee=O||_||!1,te=Y(t.useState(!1),2),ne=te[0],re=te[1];et((function(){re(rf())}),[]);var oe=t.useRef({}),ie=t.useContext(pf),ae=t.useMemo((function(){return{registerSubPopup:function(e,t){oe.current[e]=t,null==ie||ie.registerSubPopup(e,t)}}}),[ie]),le=nf(),ce=Y(t.useState(null),2),se=ce[0],ue=ce[1],fe=t.useRef(null),de=Xo((function(e){fe.current=e,$o(e)&&se!==e&&ue(e),null==ie||ie.registerSubPopup(le,e)})),pe=Y(t.useState(null),2),he=pe[0],ve=pe[1],me=t.useRef(null),ge=Xo((function(e){$o(e)&&he!==e&&(ve(e),me.current=e)})),be=t.Children.only(a),ye=(null==be?void 0:be.props)||{},we={},xe=Xo((function(e){var t,n,r=he;return(null==r?void 0:r.contains(e))||(null===(t=$a(r))||void 0===t?void 0:t.host)===e||e===r||(null==se?void 0:se.contains(e))||(null===(n=$a(se))||void 0===n?void 0:n.host)===e||e===se||Object.values(oe.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Se=mf(i,H,U,V),Ce=mf(i,W,K,G),ke=Y(t.useState(d||!1),2),Ee=ke[0],Oe=ke[1],_e=null!=f?f:Ee,je=Xo((function(e){void 0===f&&Oe(e)}));et((function(){Oe(f||!1)}),[f]);var $e=t.useRef(_e);$e.current=_e;var Ne=t.useRef([]);Ne.current=[];var Pe=Xo((function(e){var t;je(e),(null!==(t=Ne.current[Ne.current.length-1])&&void 0!==t?t:_e)!==e&&(Ne.current.push(e),null==p||p(e))})),Ie=t.useRef(),Me=function(){clearTimeout(Ie.current)},Re=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Me(),0===t?Pe(e):Ie.current=setTimeout((function(){Pe(e)}),1e3*t)};t.useEffect((function(){return Me}),[]);var Ae=Y(t.useState(!1),2),Te=Ae[0],qe=Ae[1];et((function(e){e&&!_e||qe(!0)}),[_e]);var De=Y(t.useState(null),2),Le=De[0],ze=De[1],Be=Y(t.useState([0,0]),2),Fe=Be[0],He=Be[1],We=function(e){He([e.clientX,e.clientY])},Ve=function(e,n,r,o,i,a,l){var c=Y(t.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),2),s=c[0],u=c[1],f=t.useRef(0),d=t.useMemo((function(){return n?bf(n):[]}),[n]),p=t.useRef({});e||(p.current={});var h=Xo((function(){if(n&&r&&e){var t,c,s,f=n,h=f.ownerDocument,v=gf(f).getComputedStyle(f),m=v.width,g=v.height,b=v.position,y=f.style.left,w=f.style.top,x=f.style.right,S=f.style.bottom,k=f.style.overflow,E=C(C({},i[o]),a),O=h.createElement("div");if(null===(t=f.parentElement)||void 0===t||t.appendChild(O),O.style.left="".concat(f.offsetLeft,"px"),O.style.top="".concat(f.offsetTop,"px"),O.style.position=b,O.style.height="".concat(f.offsetHeight,"px"),O.style.width="".concat(f.offsetWidth,"px"),f.style.left="0",f.style.top="0",f.style.right="auto",f.style.bottom="auto",f.style.overflow="hidden",Array.isArray(r))s={x:r[0],y:r[1],width:0,height:0};else{var _=r.getBoundingClientRect();s={x:_.x,y:_.y,width:_.width,height:_.height}}var j=f.getBoundingClientRect(),$=h.documentElement,N=$.clientWidth,P=$.clientHeight,I=$.scrollWidth,M=$.scrollHeight,R=$.scrollTop,A=$.scrollLeft,T=j.height,q=j.width,D=s.height,L=s.width,z={left:0,top:0,right:N,bottom:P},B={left:-A,top:-R,right:I-A,bottom:M-R},F=E.htmlRegion,H="visible",W="visibleFirst";"scroll"!==F&&F!==W&&(F=H);var V=F===W,U=xf(B,d),G=xf(z,d),K=F===H?G:U,X=V?G:K;f.style.left="auto",f.style.top="auto",f.style.right="0",f.style.bottom="0";var Q=f.getBoundingClientRect();f.style.left=y,f.style.top=w,f.style.right=x,f.style.bottom=S,f.style.overflow=k,null===(c=f.parentElement)||void 0===c||c.removeChild(O);var Z=yf(Math.round(q/parseFloat(m)*1e3)/1e3),J=yf(Math.round(T/parseFloat(g)*1e3)/1e3);if(0===Z||0===J||$o(r)&&!Dc(r))return;var ee=E.offset,te=E.targetOffset,ne=Y(Cf(j,ee),2),re=ne[0],oe=ne[1],ie=Y(Cf(s,te),2),ae=ie[0],le=ie[1];s.x-=ae,s.y-=le;var ce=Y(E.points||[],2),se=ce[0],ue=kf(ce[1]),fe=kf(se),de=Ef(s,ue),pe=Ef(j,fe),he=C({},E),ve=de.x-pe.x+re,me=de.y-pe.y+oe;function st(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:K,r=j.x+e,o=j.y+t,i=r+q,a=o+T,l=Math.max(r,n.left),c=Math.max(o,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-l)*(u-c))}var ge,be,ye,we,xe=st(ve,me),Se=st(ve,me,G),Ce=Ef(s,["t","l"]),ke=Ef(j,["t","l"]),Ee=Ef(s,["b","r"]),Oe=Ef(j,["b","r"]),_e=E.overflow||{},je=_e.adjustX,$e=_e.adjustY,Ne=_e.shiftX,Pe=_e.shiftY,Ie=function(e){return"boolean"==typeof e?e:e>=0};function ut(){ge=j.y+me,be=ge+T,ye=j.x+ve,we=ye+q}ut();var Me=Ie($e),Re=fe[0]===ue[0];if(Me&&"t"===fe[0]&&(be>X.bottom||p.current.bt)){var Ae=me;Re?Ae-=T-D:Ae=Ce.y-Oe.y-oe;var Te=st(ve,Ae),qe=st(ve,Ae,G);Te>xe||Te===xe&&(!V||qe>=Se)?(p.current.bt=!0,me=Ae,oe=-oe,he.points=[Of(fe,0),Of(ue,0)]):p.current.bt=!1}if(Me&&"b"===fe[0]&&(ge<X.top||p.current.tb)){var De=me;Re?De+=T-D:De=Ee.y-ke.y-oe;var Le=st(ve,De),ze=st(ve,De,G);Le>xe||Le===xe&&(!V||ze>=Se)?(p.current.tb=!0,me=De,oe=-oe,he.points=[Of(fe,0),Of(ue,0)]):p.current.tb=!1}var Be=Ie(je),Fe=fe[1]===ue[1];if(Be&&"l"===fe[1]&&(we>X.right||p.current.rl)){var He=ve;Fe?He-=q-L:He=Ce.x-Oe.x-re;var We=st(He,me),Ve=st(He,me,G);We>xe||We===xe&&(!V||Ve>=Se)?(p.current.rl=!0,ve=He,re=-re,he.points=[Of(fe,1),Of(ue,1)]):p.current.rl=!1}if(Be&&"r"===fe[1]&&(ye<X.left||p.current.lr)){var Ue=ve;Fe?Ue+=q-L:Ue=Ee.x-ke.x-re;var Ge=st(Ue,me),Ye=st(Ue,me,G);Ge>xe||Ge===xe&&(!V||Ye>=Se)?(p.current.lr=!0,ve=Ue,re=-re,he.points=[Of(fe,1),Of(ue,1)]):p.current.lr=!1}ut();var Ke=!0===Ne?0:Ne;"number"==typeof Ke&&(ye<G.left&&(ve-=ye-G.left-re,s.x+L<G.left+Ke&&(ve+=s.x-G.left+L-Ke)),we>G.right&&(ve-=we-G.right-re,s.x>G.right-Ke&&(ve+=s.x-G.right+Ke)));var Xe=!0===Pe?0:Pe;"number"==typeof Xe&&(ge<G.top&&(me-=ge-G.top-oe,s.y+D<G.top+Xe&&(me+=s.y-G.top+D-Xe)),be>G.bottom&&(me-=be-G.bottom-oe,s.y>G.bottom-Xe&&(me+=s.y-G.bottom+Xe)));var Qe=j.x+ve,Ze=Qe+q,Je=j.y+me,et=Je+T,tt=s.x,nt=tt+L,rt=s.y,ot=rt+D,it=(Math.max(Qe,tt)+Math.min(Ze,nt))/2-Qe,at=(Math.max(Je,rt)+Math.min(et,ot))/2-Je;null==l||l(n,he);var lt=Q.right-j.x-(ve+j.width),ct=Q.bottom-j.y-(me+j.height);1===Z&&(ve=Math.round(ve),lt=Math.round(lt)),1===J&&(me=Math.round(me),ct=Math.round(ct)),u({ready:!0,offsetX:ve/Z,offsetY:me/J,offsetR:lt/Z,offsetB:ct/J,arrowX:it/Z,arrowY:at/J,scaleX:Z,scaleY:J,align:he})}})),v=function(){u((function(e){return C(C({},e),{},{ready:!1})}))};return et(v,[o]),et((function(){e||v()}),[e]),[s.ready,s.offsetX,s.offsetY,s.offsetR,s.offsetB,s.arrowX,s.arrowY,s.scaleX,s.scaleY,s.align,function(){f.current+=1;var e=f.current;Promise.resolve().then((function(){f.current===e&&h()}))}]}(_e,se,L?Fe:he,P,M,R,B),Ue=Y(Ve,11),Ge=Ue[0],Ye=Ue[1],Ke=Ue[2],Xe=Ue[3],Qe=Ue[4],Ze=Ue[5],Je=Ue[6],tt=Ue[7],nt=Ue[8],rt=Ue[9],ot=Ue[10],it=function(e,n,r,o){return t.useMemo((function(){var t=hf(null!=r?r:n),i=hf(null!=o?o:n),a=new Set(t),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[e,n,r,o])}(ne,c,s,u),at=Y(it,2),lt=at[0],ct=at[1],st=lt.has("click"),ut=ct.has("click")||ct.has("contextMenu"),ft=Xo((function(){Te||ot()}));!function(e,t,n,r,o){et((function(){if(e&&t&&n){var i=n,a=bf(t),l=bf(i),c=gf(i),s=new Set([c].concat(X(a),X(l)));function u(){r(),o()}return s.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),c.addEventListener("resize",u,{passive:!0}),r(),function(){s.forEach((function(e){e.removeEventListener("scroll",u),c.removeEventListener("resize",u)}))}}}),[e,t,n])}(_e,he,se,ft,(function(){$e.current&&L&&ut&&Re(!1)})),et((function(){ft()}),[Fe,P]),et((function(){!_e||null!=M&&M[P]||ft()}),[JSON.stringify(R)]);var dt=t.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,c=i[a];if(vf(null===(l=e[c])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(M,i,rt,L);return jo()(e,null==q?void 0:q(rt))}),[rt,q,M,i,L]);t.useImperativeHandle(r,(function(){return{nativeElement:me.current,popupElement:fe.current,forceAlign:ft}}));var pt=Y(t.useState(0),2),ht=pt[0],vt=pt[1],mt=Y(t.useState(0),2),gt=mt[0],bt=mt[1],yt=function(){if(T&&he){var e=he.getBoundingClientRect();vt(e.width),bt(e.height)}};function wt(e,t,n,r){we[e]=function(o){var i;null==r||r(o),Re(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];null===(i=ye[e])||void 0===i||i.call.apply(i,[ye,o].concat(l))}}et((function(){Le&&(ot(),Le(),ze(null))}),[Le]),(st||ut)&&(we.onClick=function(e){var t;$e.current&&ut?Re(!1):!$e.current&&st&&(We(e),Re(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ye.onClick)||void 0===t||t.call.apply(t,[ye,e].concat(r))}),function(e,n,r,o,i,a,l,c){var s=t.useRef(e);s.current=e,t.useEffect((function(){if(n&&o&&(!i||a)){var e=function(e){var t;s.current&&!l((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)&&c(!1)},t=gf(o);t.addEventListener("mousedown",e,!0),t.addEventListener("contextmenu",e,!0);var u=$a(r);return u&&(u.addEventListener("mousedown",e,!0),u.addEventListener("contextmenu",e,!0)),function(){t.removeEventListener("mousedown",e,!0),t.removeEventListener("contextmenu",e,!0),u&&(u.removeEventListener("mousedown",e,!0),u.removeEventListener("contextmenu",e,!0))}}}),[n,r,o,i,a])}(_e,ut,he,se,w,S,xe,Re);var xt,St,Ct=lt.has("hover"),kt=ct.has("hover");Ct&&(wt("onMouseEnter",!0,v,(function(e){We(e)})),wt("onPointerEnter",!0,v,(function(e){We(e)})),xt=function(e){(_e||Te)&&null!=se&&se.contains(e.target)&&Re(!0,v)},L&&(we.onMouseMove=function(e){var t;null===(t=ye.onMouseMove)||void 0===t||t.call(ye,e)})),kt&&(wt("onMouseLeave",!1,g),wt("onPointerLeave",!1,g),St=function(){Re(!1,g)}),lt.has("focus")&&wt("onFocus",!0,b),ct.has("focus")&&wt("onBlur",!1,y),lt.has("contextMenu")&&(we.onContextMenu=function(e){var t;$e.current&&ct.has("contextMenu")?Re(!1):(We(e),Re(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ye.onContextMenu)||void 0===t||t.call.apply(t,[ye,e].concat(r))}),Q&&(we.className=jo()(ye.className,Q));var Et=C(C({},ye),we),Ot={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){J[e]&&(Ot[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=Et[e])||void 0===t||t.call.apply(t,[Et].concat(r)),J[e].apply(J,r)})}));var _t=t.cloneElement(be,C(C({},Et),Ot)),jt={x:Ze,y:Je},$t=F?C({},!0!==F?F:{}):null;return t.createElement(t.Fragment,null,t.createElement(Ju,{disabled:!_e,ref:ge,onResize:function(){yt(),ft()}},t.createElement(df,{getTriggerDOMNode:Z},_t)),t.createElement(pf.Provider,{value:ae},t.createElement(uf,{portal:e,ref:de,prefixCls:i,popup:j,className:jo()($,dt),style:N,target:he,onMouseEnter:xt,onMouseLeave:St,onPointerEnter:xt,zIndex:A,open:_e,keepDom:Te,fresh:D,onClick:z,mask:w,motion:Se,maskMotion:Ce,onVisibleChanged:function(e){qe(!1),ot(),null==h||h(e)},onPrepare:function(){return new Promise((function(e){yt(),ze((function(){return e}))}))},forceRender:E,autoDestroy:ee,getPopupContainer:k,align:rt,arrow:$t,arrowPos:jt,ready:Ge,offsetX:Ye,offsetY:Ke,offsetR:Xe,offsetB:Qe,onAlign:ft,stretch:T,targetWidth:ht/tt,targetHeight:gt/nt})))}));return n}(Su),$f={shiftX:64,adjustY:1},Nf={adjustX:1,shiftY:!0},Pf=[0,0],If={left:{points:["cr","cl"],overflow:Nf,offset:[-4,0],targetOffset:Pf},right:{points:["cl","cr"],overflow:Nf,offset:[4,0],targetOffset:Pf},top:{points:["bc","tc"],overflow:$f,offset:[0,-4],targetOffset:Pf},bottom:{points:["tc","bc"],overflow:$f,offset:[0,4],targetOffset:Pf},topLeft:{points:["bl","tl"],overflow:$f,offset:[0,-4],targetOffset:Pf},leftTop:{points:["tr","tl"],overflow:Nf,offset:[-4,0],targetOffset:Pf},topRight:{points:["br","tr"],overflow:$f,offset:[0,-4],targetOffset:Pf},rightTop:{points:["tl","tr"],overflow:Nf,offset:[4,0],targetOffset:Pf},bottomRight:{points:["tr","br"],overflow:$f,offset:[0,4],targetOffset:Pf},rightBottom:{points:["bl","br"],overflow:Nf,offset:[4,0],targetOffset:Pf},bottomLeft:{points:["tl","bl"],overflow:$f,offset:[0,4],targetOffset:Pf},leftBottom:{points:["br","bl"],overflow:Nf,offset:[-4,0],targetOffset:Pf}},Mf=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Rf=function(e,n){var r=e.overlayClassName,o=e.trigger,i=void 0===o?["hover"]:o,a=e.mouseEnterDelay,l=void 0===a?0:a,c=e.mouseLeaveDelay,s=void 0===c?.1:c,u=e.overlayStyle,f=e.prefixCls,d=void 0===f?"rc-tooltip":f,p=e.children,h=e.onVisibleChange,v=e.afterVisibleChange,m=e.transitionName,g=e.animation,b=e.motion,y=e.placement,w=void 0===y?"right":y,x=e.align,S=void 0===x?{}:x,k=e.destroyTooltipOnHide,E=void 0!==k&&k,O=e.defaultVisible,_=e.getTooltipContainer,j=e.overlayInnerStyle,$=(e.arrowContent,e.overlay),N=e.id,P=e.showArrow,I=void 0===P||P,M=qo(e,Mf),R=(0,t.useRef)(null);(0,t.useImperativeHandle)(n,(function(){return R.current}));var A=C({},M);"visible"in e&&(A.popupVisible=e.visible);return t.createElement(jf,ht({popupClassName:r,prefixCls:d,popup:function(){return t.createElement(du,{key:"content",prefixCls:d,id:N,overlayInnerStyle:j},$)},action:i,builtinPlacements:If,popupPlacement:w,ref:R,popupAlign:S,getPopupContainer:_,onPopupVisibleChange:h,afterPopupVisibleChange:v,popupTransitionName:m,popupAnimation:g,popupMotion:b,defaultPopupVisible:O,autoDestroy:E,mouseLeaveDelay:s,popupStyle:u,mouseEnterDelay:l,arrow:I},A),p)},Af=(0,t.forwardRef)(Rf),Tf="RC_FORM_INTERNAL_HOOKS",qf=function(){ye(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Df=t.createContext({getFieldValue:qf,getFieldsValue:qf,getFieldError:qf,getFieldWarning:qf,getFieldsError:qf,isFieldsTouched:qf,isFieldTouched:qf,isFieldValidating:qf,isFieldsValidating:qf,resetFields:qf,setFields:qf,setFieldValue:qf,setFieldsValue:qf,validateFields:qf,submit:qf,getInternalHooks:function(){return qf(),{dispatch:qf,initEntityValue:qf,registerField:qf,useSubscribe:qf,setInitialValues:qf,destroyForm:qf,setCallbacks:qf,registerWatch:qf,getFields:qf,setValidateMessages:qf,setPreserve:qf,getInitialValue:qf}}}),Lf=t.createContext(null);function zf(e){return null==e?[]:Array.isArray(e)?e:[e]}function Bf(){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 Ff=Bf();function Hf(e){var t="function"==typeof Map?new Map:void 0;return Hf=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(Wo())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Bo(o,n.prototype),o}(e,arguments,Ho(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Bo(n,e)},Hf(e)}var Wf=o(5606),Vf=/%[sdj%]/g;function Uf(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 Gf(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(Vf,(function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}break;default:return e}})):e}function Yf(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 Kf(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var l=r;r+=1,l<o?t(e[l],i):n([])}}([])}void 0!==Wf&&Wf.env;var Xf=function(e){Fo(n,e);var t=Go(n);function n(e,r){var o;return xe(this,n),x(Vo(o=t.call(this,"Async Validation Error")),"errors",void 0),x(Vo(o),"fields",void 0),o.errors=e,o.fields=r,o}return Ce(n)}(Hf(Error));function Qf(e,t,n,r,o){if(t.first){var i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,X(e[n]||[]))})),t}(e);Kf(a,n,(function(e){return r(e),e.length?i(new Xf(e,Uf(e))):t(o)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),c=l.length,s=0,u=[],f=new Promise((function(t,i){var f=function(e){if(u.push.apply(u,e),++s===c)return r(u),u.length?i(new Xf(u,Uf(u))):t(o)};l.length||(r(u),t(o)),l.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?Kf(r,n,f):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,X(e||[])),++o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,f)}))}));return f.catch((function(e){return e})),f}function Zf(e,t){return function(n){var r,o;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],(o=n)&&void 0!==o.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 Jf(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===m(r)&&"object"===m(e[n])?e[n]=C(C({},e[n]),r):e[n]=r}return e}var ed,td="enum",nd=function(e,t,n,r,o){e[td]=Array.isArray(e[td])?e[td]:[],-1===e[td].indexOf(t)&&r.push(Gf(o.messages[td],e.fullField,e[td].join(", ")))},rd=function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Gf(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(Gf(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}},od=function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,c=t,s=null,u="number"==typeof t,f="string"==typeof t,d=Array.isArray(t);if(u?s="number":f?s="string":d&&(s="array"),!s)return!1;d&&(c=t.length),f&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?c!==e.len&&r.push(Gf(o.messages[s].len,e.fullField,e.len)):a&&!l&&c<e.min?r.push(Gf(o.messages[s].min,e.fullField,e.min)):l&&!a&&c>e.max?r.push(Gf(o.messages[s].max,e.fullField,e.max)):a&&l&&(c<e.min||c>e.max)&&r.push(Gf(o.messages[s].range,e.fullField,e.min,e.max))},id=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!Yf(t,i||e.type)||r.push(Gf(o.messages.required,e.fullField))},ad=/^(([^<>()\[\]\\.,;:\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,}))$/,ld=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,cd={integer:function(e){return cd.number(e)&&parseInt(e,10)===e},float:function(e){return cd.number(e)&&!cd.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"===m(e)&&!cd.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(ad)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(ed)return ed;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}",o=["(?:".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}|:))")],i="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(i,"$")),s=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};s.v4=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},s.v6=function(e){return e&&e.exact?c:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=s.v4().source,f=s.v6().source,d="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").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 ed=new RegExp("(?:^".concat(d,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(ld)}},sd=function(e,t,n,r,o){if(e.required&&void 0===t)id(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?cd[i](t)||r.push(Gf(o.messages.types[i],e.fullField,e.type)):i&&m(t)!==e.type&&r.push(Gf(o.messages.types[i],e.fullField,e.type))}},ud=function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(Gf(o.messages.whitespace,e.fullField))},fd={required:id,whitespace:ud,type:sd,range:od,enum:nd,pattern:rd},dd=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Yf(t)&&!e.required)return n();fd.required(e,t,r,i,o)}n(i)},pd=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();fd.required(e,t,r,i,o,"array"),null!=t&&(fd.type(e,t,r,i,o),fd.range(e,t,r,i,o))}n(i)},hd=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Yf(t)&&!e.required)return n();fd.required(e,t,r,i,o),void 0!==t&&fd.type(e,t,r,i,o)}n(i)},vd=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Yf(t,"date")&&!e.required)return n();var a;if(fd.required(e,t,r,i,o),!Yf(t,"date"))a=t instanceof Date?t:new Date(t),fd.type(e,a,r,i,o),a&&fd.range(e,a.getTime(),r,i,o)}n(i)},md=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Yf(t)&&!e.required)return n();fd.required(e,t,r,i,o),void 0!==t&&fd.enum(e,t,r,i,o)}n(i)},gd=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Yf(t)&&!e.required)return n();fd.required(e,t,r,i,o),void 0!==t&&(fd.type(e,t,r,i,o),fd.range(e,t,r,i,o))}n(i)},bd=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Yf(t)&&!e.required)return n();fd.required(e,t,r,i,o),void 0!==t&&(fd.type(e,t,r,i,o),fd.range(e,t,r,i,o))}n(i)},yd=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Yf(t)&&!e.required)return n();fd.required(e,t,r,i,o),void 0!==t&&fd.type(e,t,r,i,o)}n(i)},wd=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Yf(t)&&!e.required)return n();fd.required(e,t,r,i,o),void 0!==t&&(fd.type(e,t,r,i,o),fd.range(e,t,r,i,o))}n(i)},xd=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Yf(t)&&!e.required)return n();fd.required(e,t,r,i,o),void 0!==t&&fd.type(e,t,r,i,o)}n(i)},Sd=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Yf(t,"string")&&!e.required)return n();fd.required(e,t,r,i,o),Yf(t,"string")||fd.pattern(e,t,r,i,o)}n(i)},Cd=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Yf(t)&&!e.required)return n();fd.required(e,t,r,i,o),Yf(t)||fd.type(e,t,r,i,o)}n(i)},kd=function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":m(t);fd.required(e,t,r,i,o,a),n(i)},Ed=function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Yf(t,"string")&&!e.required)return n();fd.required(e,t,r,i,o,"string"),Yf(t,"string")||(fd.type(e,t,r,i,o),fd.range(e,t,r,i,o),fd.pattern(e,t,r,i,o),!0===e.whitespace&&fd.whitespace(e,t,r,i,o))}n(i)},Od=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Yf(t,i)&&!e.required)return n();fd.required(e,t,r,a,o,i),Yf(t,i)||fd.type(e,t,r,a,o)}n(a)},_d={string:Ed,method:yd,number:wd,boolean:hd,regexp:Cd,integer:bd,float:gd,array:pd,object:xd,enum:md,pattern:Sd,date:vd,url:Od,hex:Od,email:Od,required:kd,any:dd},jd=function(){function e(t){xe(this,e),x(this,"rules",null),x(this,"_messages",Ff),this.define(t)}return Ce(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==m(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=Jf(Bf(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof o&&(i=o,o={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,r),Promise.resolve(r);if(o.messages){var a=this.messages();a===Ff&&(a=Bf()),Jf(a,o.messages),o.messages=a}else o.messages=this.messages();var l={};(o.keys||Object.keys(this.rules)).forEach((function(e){var o=n.rules[e],i=r[e];o.forEach((function(o){var a=o;"function"==typeof a.transform&&(r===t&&(r=C({},r)),null!=(i=r[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":m(i)))),(a="function"==typeof a?{validator:a}:C({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),l[e]=l[e]||[],l[e].push({rule:a,value:i,source:r,field:e}))}))}));var c={};return Qf(l,o,(function(t,n){var i,a=t.rule,l=!("object"!==a.type&&"array"!==a.type||"object"!==m(a.fields)&&"object"!==m(a.defaultField));function s(e,t){return C(C({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(X(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!o.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var f=u.map(Zf(a,r));if(o.first&&f.length)return c[a.field]=1,n(f);if(l){if(a.required&&!t.value)return void 0!==a.message?f=[].concat(a.message).map(Zf(a,r)):o.error&&(f=[o.error(a,Gf(o.messages.required,a.field))]),n(f);var d={};a.defaultField&&Object.keys(t.value).map((function(e){d[e]=a.defaultField})),d=C(C({},d),t.rule.fields);var p={};Object.keys(d).forEach((function(e){var t=d[e],n=Array.isArray(t)?t:[t];p[e]=n.map(s.bind(null,e))}));var h=new e(p);h.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),h.validate(t.value,t.rule.options||o,(function(e){var t=[];f&&f.length&&t.push.apply(t,X(f)),e&&e.length&&t.push.apply(t,X(e)),n(t.length?t:null)}))}else n(f)}if(l=l&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,o);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,o)}catch(e){var f,d;null===(f=(d=console).error)||void 0===f||f.call(d,e),o.suppressValidatorError||setTimeout((function(){throw e}),0),u(e.message)}!0===i?u():!1===i?u("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){for(var t,n,o=[],a={},l=0;l<e.length;l++)t=e[l],n=void 0,Array.isArray(t)?o=(n=o).concat.apply(n,X(t)):o.push(t);o.length?(a=Uf(o),i(o,a)):i(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&&!_d.hasOwnProperty(e.type))throw new Error(Gf("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]?_d.required:_d[this.getType(e)]||void 0}}]),e}();x(jd,"register",(function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");_d[e]=t})),x(jd,"warning",(function(){})),x(jd,"messages",Ff),x(jd,"validators",_d);var $d="'${name}' is not a valid ${type}",Nd={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:$d,method:$d,array:$d,object:$d,number:$d,date:$d,boolean:$d,integer:$d,float:$d,regexp:$d,email:$d,url:$d,hex:$d},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}"}},Pd=jd;function Id(e,t){return e.replace(/\\?\$\{\w+\}/g,(function(e){if(e.startsWith("\\"))return e.slice(1);var n=e.slice(2,-1);return t[n]}))}var Md="CODE_LOGIC_ERROR";function Rd(e,t,n,r,o){return Ad.apply(this,arguments)}function Ad(){return Ad=y(g().mark((function e(n,r,o,i,a){var l,c,s,u,f,d,p,h,v;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(l=C({},o)).ruleIndex,Pd.warning=function(){},l.validator&&(c=l.validator,l.validator=function(){try{return c.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(Md)}}),s=null,l&&"array"===l.type&&l.defaultField&&(s=l.defaultField,delete l.defaultField),u=new Pd(x({},n,[l])),f=Nn(Nd,i.validateMessages),u.messages(f),d=[],e.prev=10,e.next=13,Promise.resolve(u.validate(x({},n,r),C({},i)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(d=e.t0.errors.map((function(e,n){var r=e.message,o=r===Md?f.default:r;return t.isValidElement(o)?t.cloneElement(o,{key:"error_".concat(n)}):o})));case 18:if(d.length||!s){e.next=23;break}return e.next=21,Promise.all(r.map((function(e,t){return Rd("".concat(n,".").concat(t),e,s,i,a)})));case 21:return p=e.sent,e.abrupt("return",p.reduce((function(e,t){return[].concat(X(e),X(t))}),[]));case 23:return h=C(C({},o),{},{name:n,enum:(o.enum||[]).join(", ")},a),v=d.map((function(e){return"string"==typeof e?Id(e,h):e})),e.abrupt("return",v);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),Ad.apply(this,arguments)}function Td(e,t,n,r,o,i){var a,l=e.join("."),c=n.map((function(e,t){var n=e.validator,r=C(C({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=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(){ye(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));o=i&&"function"==typeof i.then&&"function"==typeof i.catch,ye(o,"`callback` is deprecated. Please return a promise instead."),o&&i.then((function(){r()})).catch((function(e){r(e||" ")}))}),r})).sort((function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n==!!o?r-i:n?1:-1}));if(!0===o)a=new Promise(function(){var e=y(g().mark((function e(n,o){var a,s,u;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<c.length)){e.next=12;break}return s=c[a],e.next=5,Rd(l,t,s,r,i);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:s}]),e.abrupt("return");case 9:a+=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 s=c.map((function(e){return Rd(l,t,e,r,i).then((function(t){return{errors:t,rule:e}}))}));a=(o?function(e){return Dd.apply(this,arguments)}(s):function(e){return qd.apply(this,arguments)}(s)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function qd(){return(qd=y(g().mark((function e(t){return g().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,X(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Dd(){return(Dd=y(g().mark((function e(t){var n;return g().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)}function Ld(e){return zf(e)}function zd(e,t){var n={};return t.forEach((function(t){var r=En(e,t);n=_n(n,t,r)})),n}function Bd(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return Fd(t,e,n)}))}function Fd(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 Hd(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===m(t.target)&&e in t.target?t.target[e]:t}function Wd(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(X(e.slice(0,n)),[o],X(e.slice(n,t)),X(e.slice(t+1,r))):i<0?[].concat(X(e.slice(0,t)),X(e.slice(t+1,n+1)),[o],X(e.slice(n+1,r))):e}var Vd=["name"],Ud=[];function Gd(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var Yd=function(e){Fo(r,e);var n=Go(r);function r(e){var o;(xe(this,r),x(Vo(o=n.call(this,e)),"state",{resetCount:0}),x(Vo(o),"cancelRegisterFunc",null),x(Vo(o),"mounted",!1),x(Vo(o),"touched",!1),x(Vo(o),"dirty",!1),x(Vo(o),"validatePromise",void 0),x(Vo(o),"prevValidating",void 0),x(Vo(o),"errors",Ud),x(Vo(o),"warnings",Ud),x(Vo(o),"cancelRegister",(function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,Ld(r)),o.cancelRegisterFunc=null})),x(Vo(o),"getNamePath",(function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(X(void 0===n?[]:n),X(t)):[]})),x(Vo(o),"getRules",(function(){var e=o.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(r):e}))})),x(Vo(o),"refresh",(function(){o.mounted&&o.setState((function(e){return{resetCount:e.resetCount+1}}))})),x(Vo(o),"metaCache",null),x(Vo(o),"triggerMetaEvent",(function(e){var t=o.props.onMetaChange;if(t){var n=C(C({},o.getMeta()),{},{destroy:e});we(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null})),x(Vo(o),"onStoreChange",(function(e,t,n){var r=o.props,i=r.shouldUpdate,a=r.dependencies,l=void 0===a?[]:a,c=r.onReset,s=n.store,u=o.getNamePath(),f=o.getValue(e),d=o.getValue(s),p=t&&Bd(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||we(f,d)||(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Ud,o.warnings=Ud,o.triggerMetaEvent()),n.type){case"reset":if(!t||p)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Ud,o.warnings=Ud,o.triggerMetaEvent(),null==c||c(),void o.refresh();break;case"remove":if(i&&Gd(i,e,s,f,d,n))return void o.reRender();break;case"setField":var h=n.data;if(p)return"touched"in h&&(o.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(o.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(o.errors=h.errors||Ud),"warnings"in h&&(o.warnings=h.warnings||Ud),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in h&&Bd(t,u,!0))return void o.reRender();if(i&&!u.length&&Gd(i,e,s,f,d,n))return void o.reRender();break;case"dependenciesUpdate":if(l.map(Ld).some((function(e){return Bd(n.relatedFields,e)})))return void o.reRender();break;default:if(p||(!l.length||u.length||i)&&Gd(i,e,s,f,d,n))return void o.reRender()}!0===i&&o.reRender()})),x(Vo(o),"validateRules",(function(e){var t=o.getNamePath(),n=o.getValue(),r=e||{},i=r.triggerName,a=r.validateOnly,l=void 0!==a&&a,c=Promise.resolve().then(y(g().mark((function r(){var a,l,s,u,f,d,p;return g().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(a=o.props,l=a.validateFirst,s=void 0!==l&&l,u=a.messageVariables,f=a.validateDebounce,d=o.getRules(),i&&(d=d.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||zf(t).includes(i)}))),!f||!i){r.next=10;break}return r.next=8,new Promise((function(e){setTimeout(e,f)}));case 8:if(o.validatePromise===c){r.next=10;break}return r.abrupt("return",[]);case 10:return(p=Td(t,n,d,e,s,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ud;if(o.validatePromise===c){var t;o.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,o=e.errors,i=void 0===o?Ud:o;t?r.push.apply(r,X(i)):n.push.apply(n,X(i))})),o.errors=n,o.warnings=r,o.triggerMetaEvent(),o.reRender()}})),r.abrupt("return",p);case 13:case"end":return r.stop()}}),r)}))));return l||(o.validatePromise=c,o.dirty=!0,o.errors=Ud,o.warnings=Ud,o.triggerMetaEvent(),o.reRender()),c})),x(Vo(o),"isFieldValidating",(function(){return!!o.validatePromise})),x(Vo(o),"isFieldTouched",(function(){return o.touched})),x(Vo(o),"isFieldDirty",(function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(Tf).getInitialValue)(o.getNamePath())})),x(Vo(o),"getErrors",(function(){return o.errors})),x(Vo(o),"getWarnings",(function(){return o.warnings})),x(Vo(o),"isListField",(function(){return o.props.isListField})),x(Vo(o),"isList",(function(){return o.props.isList})),x(Vo(o),"isPreserve",(function(){return o.props.preserve})),x(Vo(o),"getMeta",(function(){return o.prevValidating=o.isFieldValidating(),{touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:null===o.validatePromise}})),x(Vo(o),"getOnlyChild",(function(e){if("function"==typeof e){var n=o.getMeta();return C(C({},o.getOnlyChild(e(o.getControlled(),n,o.props.fieldContext))),{},{isFunction:!0})}var r=Zc(e);return 1===r.length&&t.isValidElement(r[0])?{child:r[0],isFunction:!1}:{child:r,isFunction:!1}})),x(Vo(o),"getValue",(function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return En(e||t(!0),n)})),x(Vo(o),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.name,r=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,l=t.normalize,c=t.valuePropName,s=t.getValueProps,u=t.fieldContext,f=void 0!==i?i:u.validateTrigger,d=o.getNamePath(),p=u.getInternalHooks,h=u.getFieldsValue,v=p(Tf).dispatch,m=o.getValue(),g=s||function(e){return x({},c,e)},b=e[r],y=void 0!==n?g(m):{};var w=C(C({},e),y);return w[r]=function(){var e;o.touched=!0,o.dirty=!0,o.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):Hd.apply(void 0,[c].concat(n)),l&&(e=l(e,m,h(!0))),v({type:"updateValue",namePath:d,value:e}),b&&b.apply(void 0,n)},zf(f||[]).forEach((function(e){var t=w[e];w[e]=function(){t&&t.apply(void 0,arguments);var n=o.props.rules;n&&n.length&&v({type:"validateField",namePath:d,triggerName:e})}})),w})),e.fieldContext)&&(0,(0,e.fieldContext.getInternalHooks)(Tf).initEntityValue)(Vo(o));return o}return Ce(r,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(Tf).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,n=this.state.resetCount,r=this.props.children,o=this.getOnlyChild(r),i=o.child;return o.isFunction?e=i:t.isValidElement(i)?e=t.cloneElement(i,this.getControlled(i.props)):(ye(!i,"`children` of Field is not validate ReactElement."),e=i),t.createElement(t.Fragment,{key:n},e)}}]),r}(t.Component);x(Yd,"contextType",Df),x(Yd,"defaultProps",{trigger:"onChange",valuePropName:"value"});var Kd=function(e){var n=e.name,r=qo(e,Vd),o=t.useContext(Df),i=t.useContext(Lf),a=void 0!==n?Ld(n):void 0,l="keep";return r.isListField||(l="_".concat((a||[]).join("_"))),t.createElement(Yd,ht({key:l,name:a,isListField:!!i},r,{fieldContext:o}))};var Xd=function(e){var n=e.name,r=e.initialValue,o=e.children,i=e.rules,a=e.validateTrigger,l=e.isListField,c=t.useContext(Df),s=t.useContext(Lf),u=t.useRef({keys:[],id:0}).current,f=t.useMemo((function(){var e=Ld(c.prefixName)||[];return[].concat(X(e),X(Ld(n)))}),[c.prefixName,n]),d=t.useMemo((function(){return C(C({},c),{},{prefixName:f})}),[c,f]),p=t.useMemo((function(){return{getKey:function(e){var t=f.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}}),[f]);return"function"!=typeof o?(ye(!1,"Form.List only accepts function as children."),null):t.createElement(Lf.Provider,{value:p},t.createElement(Df.Provider,{value:d},t.createElement(Kd,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:r,isList:!0,isListField:null!=l?l:!!s},(function(e,t){var n=e.value,r=void 0===n?[]:n,i=e.onChange,a=c.getFieldValue,l=function(){return a(f||[])||[]},s={add:function(e,t){var n=l();t>=0&&t<=n.length?(u.keys=[].concat(X(u.keys.slice(0,t)),[u.id],X(u.keys.slice(t))),i([].concat(X(n.slice(0,t)),[e],X(n.slice(t))))):(u.keys=[].concat(X(u.keys),[u.id]),i([].concat(X(n),[e]))),u.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=l();e<0||e>=n.length||t<0||t>=n.length||(u.keys=Wd(u.keys,e,t),i(Wd(n,e,t)))}}},d=r||[];return Array.isArray(d)||(d=[]),o(d.map((function(e,t){var n=u.keys[t];return void 0===n&&(u.keys[t]=u.id,n=u.keys[t],u.id+=1),{name:t,key:n,isListField:!0}})),s,t)}))))};var Qd="__@field_split__";function Zd(e){return e.map((function(e){return"".concat(m(e),":").concat(e)})).join(Qd)}var Jd=function(){function e(){xe(this,e),x(this,"kvs",new Map)}return Ce(e,[{key:"set",value:function(e,t){this.kvs.set(Zd(e),t)}},{key:"get",value:function(e){return this.kvs.get(Zd(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(Zd(e))}},{key:"map",value:function(e){return X(this.kvs.entries()).map((function(t){var n=Y(t,2),r=n[0],o=n[1],i=r.split(Qd);return e({key:i.map((function(e){var t=Y(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r})),value:o})}))}},{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}(),ep=Jd,tp=["name"],np=Ce((function e(t){var n=this;xe(this,e),x(this,"formHooked",!1),x(this,"forceRootUpdate",void 0),x(this,"subscribable",!0),x(this,"store",{}),x(this,"fieldEntities",[]),x(this,"initialValues",{}),x(this,"callbacks",{}),x(this,"validateMessages",null),x(this,"preserve",null),x(this,"lastValidatePromise",null),x(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}})),x(this,"getInternalHooks",(function(e){return e===Tf?(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}):(ye(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),x(this,"useSubscribe",(function(e){n.subscribable=e})),x(this,"prevWithoutPreserves",null),x(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=Nn(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=_n(o,n,En(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),x(this,"destroyForm",(function(e){if(e)n.updateStore({});else{var t=new ep;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t}})),x(this,"getInitialValue",(function(e){var t=En(n.initialValues,e);return e.length?Nn(t):t})),x(this,"setCallbacks",(function(e){n.callbacks=e})),x(this,"setValidateMessages",(function(e){n.validateMessages=e})),x(this,"setPreserve",(function(e){n.preserve=e})),x(this,"watchList",[]),x(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),x(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)}))}})),x(this,"timeoutId",null),x(this,"warningUnhooked",(function(){0})),x(this,"updateStore",(function(e){n.store=e})),x(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),x(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new ep;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),x(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=Ld(e);return t.get(n)||{INVALIDATE_NAME_PATH:Ld(e)}}))})),x(this,"getFieldsValue",(function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===m(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),l=[];return a.forEach((function(e){var t,n,a,c,s="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(c=e).isList)&&void 0!==a&&a.call(c))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&l.push(s)}else l.push(s)})),zd(n.store,l.map(Ld))})),x(this,"getFieldValue",(function(e){n.warningUnhooked();var t=Ld(e);return En(n.store,t)})),x(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:Ld(e[n]),errors:[],warnings:[]}}))})),x(this,"getFieldError",(function(e){n.warningUnhooked();var t=Ld(e);return n.getFieldsError([t])[0].errors})),x(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=Ld(e);return n.getFieldsError([t])[0].warnings})),x(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],l=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(Ld),l=!1):(o=null,l=i):(o=i.map(Ld),l=a);var c=n.getFieldEntities(!0),s=function(e){return e.isFieldTouched()};if(!o)return l?c.every((function(e){return s(e)||e.isList()})):c.some(s);var u=new ep;o.forEach((function(e){u.set(e,[])})),c.forEach((function(e){var t=e.getNamePath();o.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(X(t),[e])}))}))}));var f=function(e){return e.some(s)},d=u.map((function(e){return e.value}));return l?d.every(f):d.some(f)})),x(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),x(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(Ld);return t.some((function(e){var t=e.getNamePath();return Bd(r,t)&&e.isFieldValidating()}))})),x(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),x(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new ep,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}}));var o;e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,X(X(r).map((function(e){return e.entity}))))}))):o=r,o.forEach((function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))ye(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=t.get(o);if(i&&i.size>1)ye(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);r.isListField()||e.skipExist&&void 0!==a||n.updateStore(_n(n.store,o,X(i)[0].value))}}}}))})),x(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(Nn(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(Ld);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(_n(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),x(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,i=qo(e,tp),a=Ld(o);r.push(a),"value"in i&&n.updateStore(_n(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),x(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=C(C({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),x(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===En(n.store,r)&&n.updateStore(_n(n.store,r,t))}})),x(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),x(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,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!Fd(e.getNamePath(),t)}))){var l=n.store;n.updateStore(_n(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}})),x(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}})),x(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=C(C({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),x(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(X(r))}),r})),x(this,"updateValue",(function(e,t){var r=Ld(e),o=n.store;n.updateStore(_n(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(zd(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(X(i)))})),x(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=Nn(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),x(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),x(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new ep;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=Ld(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r})),x(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new ep;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=o.filter((function(t){var n=t.name;return Bd(e,n)}));a.length&&r(a,o)}})),x(this,"validateFields",(function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e;var i=!!r,a=i?r.map(Ld):[],l=[],c=String(Date.now()),s=new Set,u=o||{},f=u.recursive,d=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!d||e.isFieldDirty())){var t=e.getNamePath();if(s.add(t.join(c)),!i||Bd(a,t,f)){var r=e.validateRules(C({validateMessages:C(C({},Nd),n.validateMessages)},o));l.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,X(n)):r.push.apply(r,X(n))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))}}}));var p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(l);n.lastValidatePromise=p,p.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 h=p.then((function(){return n.lastValidatePromise===p?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!==p})}));h.catch((function(e){return e}));var v=a.filter((function(e){return s.has(e.join(c))}));return n.triggerOnFieldsChange(v),h})),x(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}));var rp=function(e){var n=t.useRef(),r=Y(t.useState({}),2)[1];if(!n.current)if(e)n.current=e;else{var o=new np((function(){r({})}));n.current=o.getForm()}return[n.current]},op=t.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),ip=op,ap=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],lp=function(e,n){var r=e.name,o=e.initialValues,i=e.fields,a=e.form,l=e.preserve,c=e.children,s=e.component,u=void 0===s?"form":s,f=e.validateMessages,d=e.validateTrigger,p=void 0===d?"onChange":d,h=e.onValuesChange,v=e.onFieldsChange,g=e.onFinish,b=e.onFinishFailed,y=e.clearOnDestroy,w=qo(e,ap),x=t.useRef(null),S=t.useContext(ip),k=Y(rp(a),1)[0],E=k.getInternalHooks(Tf),O=E.useSubscribe,_=E.setInitialValues,j=E.setCallbacks,$=E.setValidateMessages,N=E.setPreserve,P=E.destroyForm;t.useImperativeHandle(n,(function(){return C(C({},k),{},{nativeElement:x.current})})),t.useEffect((function(){return S.registerForm(r,k),function(){S.unregisterForm(r)}}),[S,k,r]),$(C(C({},S.validateMessages),f)),j({onValuesChange:h,onFieldsChange:function(e){if(S.triggerFormChange(r,e),v){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];v.apply(void 0,[e].concat(n))}},onFinish:function(e){S.triggerFormFinish(r,e),g&&g(e)},onFinishFailed:b}),N(l);var I,M=t.useRef(null);_(o,!M.current),M.current||(M.current=!0),t.useEffect((function(){return function(){return P(y)}}),[]);var R="function"==typeof c;R?I=c(k.getFieldsValue(!0),k):I=c;O(!R);var A=t.useRef();t.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==m(e)||"object"!==m(t))return!1;var n=Object.keys(e),r=Object.keys(t);return X(new Set([].concat(n,r))).every((function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o}))})(A.current||[],i||[])||k.setFields(i||[]),A.current=i}),[i,k]);var T=t.useMemo((function(){return C(C({},k),{},{validateTrigger:p})}),[k,p]),q=t.createElement(Lf.Provider,{value:null},t.createElement(Df.Provider,{value:T},I));return!1===u?q:t.createElement(u,ht({},w,{ref:x,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),k.submit()},onReset:function(e){var t;e.preventDefault(),k.resetFields(),null===(t=w.onReset)||void 0===t||t.call(w,e)}}),q)};function cp(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var sp=function(){};var up=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,l=function(e){return e&&!!e._init}(a)?{form:a}:a,c=l.form,s=Y((0,t.useState)(),2),u=s[0],f=s[1],d=(0,t.useMemo)((function(){return cp(u)}),[u]),p=(0,t.useRef)(d);p.current=d;var h=(0,t.useContext)(Df),v=c||h,m=v&&v._init,g=Ld(o),b=(0,t.useRef)(g);return b.current=g,sp(g),(0,t.useEffect)((function(){if(m){var e=v.getFieldsValue,t=(0,v.getInternalHooks)(Tf).registerWatch,n=function(e,t){var n=l.preserve?t:e;return"function"==typeof o?o(n):En(n,b.current)},r=t((function(e,t){var r=n(e,t),o=cp(r);p.current!==o&&(p.current=o,f(r))})),i=n(e(),e(!0));return u!==i&&f(i),r}}),[m]),u},fp=t.forwardRef(lp);fp.FormProvider=function(e){var n=e.validateMessages,r=e.onFormChange,o=e.onFormFinish,i=e.children,a=t.useContext(op),l=t.useRef({});return t.createElement(op.Provider,{value:C(C({},a),{},{validateMessages:C(C({},a.validateMessages),n),triggerFormChange:function(e,t){r&&r(e,{changedFields:t,forms:l.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:l.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(l.current=C(C({},l.current),{},x({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=C({},l.current);delete t[e],l.current=t,a.unregisterForm(e)}})},i)},fp.Field=Kd,fp.List=Xd,fp.useForm=rp,fp.useWatch=up;const dp=t.createContext({});const pp=e=>{let{children:n,status:r,override:o}=e;const i=(0,t.useContext)(dp),a=(0,t.useMemo)((()=>{const e=Object.assign({},i);return o&&delete e.isFormItemInput,r&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[r,o,i]);return t.createElement(dp.Provider,{value:a},n)},hp=(0,t.createContext)(void 0);var vp=e=>{const{space:n,form:r,children:o}=e;if(null==o)return null;let i=o;return r&&(i=t.createElement(pp,{override:!0,status:!0},i)),n&&(i=t.createElement(ts,null,i)),i};const mp=()=>({height:0,opacity:0}),gp=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},bp=e=>({height:e?e.offsetHeight:0}),yp=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,xp=(e,t,n)=>void 0!==n?n:`${e}-${t}`;var Sp=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:L}-motion-collapse`,onAppearStart:mp,onEnterStart:mp,onAppearActive:gp,onEnterActive:gp,onLeaveStart:bp,onLeaveActive:mp,onAppearEnd:yp,onEnterEnd:yp,onLeaveEnd:yp,motionDeadline:500}};function Cp(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),s=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-c,f=s,d=2*o-a,p=l,h=2*o-0,v=i,m=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),g=r*(Math.sqrt(2)-1);return{arrowShadowWidth:m,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${l} L ${c} ${s} A ${n} ${n} 0 0 1 ${u} ${f} L ${d} ${p} A ${r} ${r} 0 0 0 ${h} ${v} Z')`,arrowPolygon:`polygon(${g}px 100%, 50% ${g}px, ${2*o-g}px 100%, ${g}px 100%)`}}const kp=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Ue(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Ep=8;function Op(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Ep:r}}function _p(e,t){return e?t:{}}function jp(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},kp(e,t,o)),{"&:before":{background:t}})]},_p(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Ue(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),_p(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Ue(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),_p(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),_p(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}const $p={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Np={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},Pp=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Ip(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,c={};return Object.keys($p).forEach((e=>{const s=r&&Np[e]||$p[e],u=Object.assign(Object.assign({},s),{offset:[0,0],dynamicInset:!0});switch(c[e]=u,Pp.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=l+o}const f=Op({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-f.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":u.offset[0]=f.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":u.offset[1]=2*-f.arrowOffsetHorizontal+l;break;case"leftBottom":case"rightBottom":u.offset[1]=2*f.arrowOffsetHorizontal-l}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,f,t,n),a&&(u.htmlRegion="visibleFirst")})),c}const Mp=e=>({animationDuration:e,animationFillMode:"both"}),Rp=e=>({animationDuration:e,animationFillMode:"both"}),Ap=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${o}${e}-enter,\n ${o}${e}-appear\n `]:Object.assign(Object.assign({},Mp(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},Rp(r)),{animationPlayState:"paused"}),[`\n ${o}${e}-enter${e}-enter-active,\n ${o}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Tp=new xn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),qp=new xn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Dp=new xn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Lp=new xn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),zp=new xn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Bp=new xn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Fp={zoom:{inKeyframes:Tp,outKeyframes:qp},"zoom-big":{inKeyframes:Dp,outKeyframes:Lp},"zoom-big-fast":{inKeyframes:Dp,outKeyframes:Lp},"zoom-left":{inKeyframes:new xn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new xn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new xn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new xn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:zp,outKeyframes:Bp},"zoom-down":{inKeyframes:new xn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new xn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},Hp=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Fp[t];return[Ap(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Wp=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Vp(e,t){return Wp.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))}),{})}const Up=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:c,paddingSM:s,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ua(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:"1em",minHeight:l,padding:`${Ue(e.calc(s).div(2).equal())} ${Ue(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,Ep)}},[`${t}-content`]:{position:"relative"}}),Vp(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},jp(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Gp=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Op({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Cp(Wl(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})));var Yp=function(e){const t=Jl("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=Wl(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[Up(o),Hp(e,"zoom-big-fast")]}),Gp,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)};const Kp=Wp.map((e=>`${e}-inverse`)),Xp=["success","processing","error","default","warning"];function Qp(e){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?[].concat(X(Kp),X(Wp)).includes(e):Wp.includes(e)}function Zp(e,t){const n=Qp(t),r=jo()({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}var Jp=e=>{const{prefixCls:n,className:r,placement:o="top",title:i,color:a,overlayInnerStyle:l}=e,{getPrefixCls:c}=t.useContext(F),s=c("tooltip",n),[u,f,d]=Yp(s),p=Zp(s,a),h=p.arrowStyle,v=Object.assign(Object.assign({},l),p.overlayStyle),m=jo()(f,d,s,`${s}-pure`,`${s}-placement-${o}`,r,p.className);return u(t.createElement("div",{className:m,style:h},t.createElement("div",{className:`${s}-arrow`}),t.createElement(du,Object.assign({},e,{className:f,prefixCls:s,overlayInnerStyle:v}),i)))},eh=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const th=t.forwardRef(((e,n)=>{var r,o;const{prefixCls:i,openClassName:a,getTooltipContainer:l,overlayClassName:c,color:s,overlayInnerStyle:u,children:f,afterOpenChange:d,afterVisibleChange:p,destroyTooltipOnHide:h,arrow:v=!0,title:m,overlay:g,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:w=!0}=e,x=!!v,[,S]=aa(),{getPopupContainer:C,getPrefixCls:k,direction:E}=t.useContext(F),O=Mn("Tooltip"),_=t.useRef(null),j=()=>{var e;null===(e=_.current)||void 0===e||e.forceAlign()};t.useImperativeHandle(n,(()=>{var e;return{forceAlign:j,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),j()},nativeElement:null===(e=_.current)||void 0===e?void 0:e.nativeElement}}));const[$,N]=Jo(!1,{value:null!==(r=e.open)&&void 0!==r?r:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),P=!m&&!g&&0!==m,I=t.useMemo((()=>{var e,t;let n=y;return"object"==typeof v&&(n=null!==(t=null!==(e=v.pointAtCenter)&&void 0!==e?e:v.arrowPointAtCenter)&&void 0!==t?t:y),b||Ip({arrowPointAtCenter:n,autoAdjustOverflow:w,arrowWidth:x?S.sizePopupArrow:0,borderRadius:S.borderRadius,offset:S.marginXXS,visibleFirst:!0})}),[y,v,b,S]),M=t.useMemo((()=>0===m?m:g||m||""),[g,m]),R=t.createElement(vp,{space:!0},"function"==typeof M?M():M),{getPopupContainer:A,placement:T="top",mouseEnterDelay:q=.1,mouseLeaveDelay:D=.1,overlayStyle:L,rootClassName:z}=e,B=eh(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),H=k("tooltip",i),W=k(),V=e["data-popover-inject"];let U=$;"open"in e||"visible"in e||!P||(U=!1);const G=t.isValidElement(f)&&!Lc(f)?f:t.createElement("span",null,f),Y=G.props,K=Y.className&&"string"!=typeof Y.className?Y.className:jo()(Y.className,a||`${H}-open`),[X,Q,Z]=Yp(H,!V),J=Zp(H,s),ee=J.arrowStyle,te=Object.assign(Object.assign({},u),J.overlayStyle),ne=jo()(c,{[`${H}-rtl`]:"rtl"===E},J.className,z,Q,Z),[re,oe]=Il("Tooltip",B.zIndex),ie=t.createElement(Af,Object.assign({},B,{zIndex:re,showArrow:x,placement:T,mouseEnterDelay:q,mouseLeaveDelay:D,prefixCls:H,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},ee),L),getTooltipContainer:A||l||C,ref:_,builtinPlacements:I,overlay:R,visible:U,onVisibleChange:t=>{var n,r;N(!P&&t),P||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=d?d:p,overlayInnerStyle:te,arrowContent:t.createElement("span",{className:`${H}-arrow-content`}),motion:{motionName:xp(W,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),U?Bc(G,{className:K}):G);return X(t.createElement(_l.Provider,{value:oe},ie))})),nh=th;nh._InternalPanelDoNotUseOrYouWillBeFired=Jp;var rh=nh;var oh=(e,n)=>{const r=t.useContext(Vn),o=t.useMemo((()=>{var t;const o=n||zn[e],i=null!==(t=null==r?void 0:r[e])&&void 0!==t?t:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})}),[e,n,r]);return[o,t.useMemo((()=>{const e=null==r?void 0:r.locale;return(null==r?void 0:r.exist)&&!e?zn.locale:e}),[r])]};function ih(e){return!!(null==e?void 0:e.then)}var ah=e=>{const{type:n,children:r,prefixCls:o,buttonProps:i,close:a,autoFocus:l,emitEvent:c,isSilent:s,quitOnNullishReturnValue:u,actionFn:f}=e,d=t.useRef(!1),p=t.useRef(null),[h,v]=Qo(!1),m=function(){null==a||a.apply(void 0,arguments)};t.useEffect((()=>{let e=null;return l&&(e=setTimeout((()=>{var e;null===(e=p.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]);return t.createElement(Zs,Object.assign({},ls(n),{onClick:e=>{if(d.current)return;if(d.current=!0,!f)return void m();let t;if(c){if(t=f(e),u&&!ih(t))return d.current=!1,void m(e)}else if(f.length)t=f(a),d.current=!1;else if(t=f(),!ih(t))return void m();(e=>{ih(e)&&(v(!0),e.then((function(){v(!1,!0),m.apply(void 0,arguments),d.current=!1}),(e=>{if(v(!1,!0),d.current=!1,!(null==s?void 0:s()))return Promise.reject(e)})))})(t)},loading:h,prefixCls:o},i,{ref:p}),r)};const lh=t.createContext({}),{Provider:ch}=lh;var sh=()=>{const{autoFocusButton:e,cancelButtonProps:n,cancelTextLocale:r,isSilent:o,mergedOkCancel:i,rootPrefixCls:a,close:l,onCancel:c,onConfirm:s}=(0,t.useContext)(lh);return i?t.createElement(ah,{isSilent:o,actionFn:c,close:function(){null==l||l.apply(void 0,arguments),null==s||s(!1)},autoFocus:"cancel"===e,buttonProps:n,prefixCls:`${a}-btn`},r):null};var uh=()=>{const{autoFocusButton:e,close:n,isSilent:r,okButtonProps:o,rootPrefixCls:i,okTextLocale:a,okType:l,onConfirm:c,onOk:s}=(0,t.useContext)(lh);return t.createElement(ah,{isSilent:r,type:l||"primary",actionFn:s,close:function(){null==n||n.apply(void 0,arguments),null==c||c(!0)},autoFocus:"ok"===e,buttonProps:o,prefixCls:`${i}-btn`},a)},fh=t.createContext({});function dh(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function ph(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}var hh=t.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate})),vh={width:0,height:0,overflow:"hidden",outline:"none"},mh={outline:"none"},gh=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.className,i=e.style,a=e.title,l=e.ariaId,c=e.footer,s=e.closable,u=e.closeIcon,f=e.onClose,d=e.children,p=e.bodyStyle,h=e.bodyProps,v=e.modalRender,g=e.onMouseDown,b=e.onMouseUp,y=e.holderRef,w=e.visible,x=e.forceRender,S=e.width,k=e.height,E=e.classNames,O=e.styles,_=t.useContext(fh).panel,j=Ro(y,_),$=(0,t.useRef)(),N=(0,t.useRef)(),P=(0,t.useRef)();t.useImperativeHandle(n,(function(){return{focus:function(){var e;null===(e=P.current)||void 0===e||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===N.current?$.current.focus({preventScroll:!0}):e||t!==$.current||N.current.focus({preventScroll:!0})}}}));var I={};void 0!==S&&(I.width=S),void 0!==k&&(I.height=k);var M=c?t.createElement("div",{className:jo()("".concat(r,"-footer"),null==E?void 0:E.footer),style:C({},null==O?void 0:O.footer)},c):null,R=a?t.createElement("div",{className:jo()("".concat(r,"-header"),null==E?void 0:E.header),style:C({},null==O?void 0:O.header)},t.createElement("div",{className:"".concat(r,"-title"),id:l},a)):null,A=(0,t.useMemo)((function(){return"object"===m(s)&&null!==s?s:s?{closeIcon:null!=u?u:t.createElement("span",{className:"".concat(r,"-close-x")})}:{}}),[s,u,r]),T=dl(A,!0),q="object"===m(s)&&s.disabled,D=s?t.createElement("button",ht({type:"button",onClick:f,"aria-label":"Close"},T,{className:"".concat(r,"-close"),disabled:q}),A.closeIcon):null,L=t.createElement("div",{className:jo()("".concat(r,"-content"),null==E?void 0:E.content),style:null==O?void 0:O.content},D,R,t.createElement("div",ht({className:jo()("".concat(r,"-body"),null==E?void 0:E.body),style:C(C({},p),null==O?void 0:O.body)},h),d),M);return t.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?l:null,"aria-modal":"true",ref:j,style:C(C({},i),I),className:jo()(r,o),onMouseDown:g,onMouseUp:b},t.createElement("div",{tabIndex:0,ref:$,style:vh,"aria-hidden":"true"}),t.createElement("div",{ref:P,tabIndex:-1,style:mh},t.createElement(hh,{shouldUpdate:w||x},v?v(L):L)),t.createElement("div",{tabIndex:0,ref:N,style:vh,"aria-hidden":"true"}))}));var bh=gh,yh=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.title,i=e.style,a=e.className,l=e.visible,c=e.forceRender,s=e.destroyOnClose,u=e.motionName,f=e.ariaId,d=e.onVisibleChanged,p=e.mousePosition,h=(0,t.useRef)(),v=Y(t.useState(),2),m=v[0],g=v[1],b={};function y(){var e=function(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=ph(o),n.top+=ph(o,!0),n}(h.current);g(p&&(p.x||p.y)?"".concat(p.x-e.left,"px ").concat(p.y-e.top,"px"):"")}return m&&(b.transformOrigin=m),t.createElement(Ki,{visible:l,onVisibleChanged:d,onAppearPrepare:y,onEnterPrepare:y,forceRender:c,motionName:u,removeOnLeave:s,ref:h},(function(l,c){var s=l.className,u=l.style;return t.createElement(bh,ht({},e,{ref:n,title:o,ariaId:f,prefixCls:r,holderRef:c,style:C(C(C({},u),i),b),className:jo()(a,s)}))}))}));yh.displayName="Content";var wh=yh,xh=function(e){var n=e.prefixCls,r=e.style,o=e.visible,i=e.maskProps,a=e.motionName,l=e.className;return t.createElement(Ki,{key:"mask",visible:o,motionName:a,leavedClassName:"".concat(n,"-mask-hidden")},(function(e,o){var a=e.className,c=e.style;return t.createElement("div",ht({ref:o,style:C(C({},c),r),className:jo()("".concat(n,"-mask"),a,l)},i))}))},Sh=function(e){var n=e.prefixCls,r=void 0===n?"rc-dialog":n,o=e.zIndex,i=e.visible,a=void 0!==i&&i,l=e.keyboard,c=void 0===l||l,s=e.focusTriggerAfterClose,u=void 0===s||s,f=e.wrapStyle,d=e.wrapClassName,p=e.wrapProps,h=e.onClose,v=e.afterOpenChange,m=e.afterClose,g=e.transitionName,b=e.animation,y=e.closable,w=void 0===y||y,x=e.mask,S=void 0===x||x,k=e.maskTransitionName,E=e.maskAnimation,O=e.maskClosable,_=void 0===O||O,j=e.maskStyle,$=e.maskProps,N=e.rootClassName,P=e.classNames,I=e.styles;var M=(0,t.useRef)(),R=(0,t.useRef)(),A=(0,t.useRef)(),T=Y(t.useState(a),2),q=T[0],D=T[1],L=nf();function z(e){null==h||h(e)}var B=(0,t.useRef)(!1),F=(0,t.useRef)(),H=null;_&&(H=function(e){B.current?B.current=!1:R.current===e.target&&z(e)}),(0,t.useEffect)((function(){a&&(D(!0),J(R.current,document.activeElement)||(M.current=document.activeElement))}),[a]),(0,t.useEffect)((function(){return function(){clearTimeout(F.current)}}),[]);var W=C(C(C({zIndex:o},f),null==I?void 0:I.wrapper),{},{display:q?null:"none"});return t.createElement("div",ht({className:jo()("".concat(r,"-root"),N)},dl(e,{data:!0})),t.createElement(xh,{prefixCls:r,visible:S&&a,motionName:dh(r,k,E),style:C(C({zIndex:o},j),null==I?void 0:I.mask),maskProps:$,className:null==P?void 0:P.mask}),t.createElement("div",ht({tabIndex:-1,onKeyDown:function(e){if(c&&e.keyCode===ll.ESC)return e.stopPropagation(),void z(e);a&&e.keyCode===ll.TAB&&A.current.changeActive(!e.shiftKey)},className:jo()("".concat(r,"-wrap"),d,null==P?void 0:P.wrapper),ref:R,onClick:H,style:W},p),t.createElement(wh,ht({},e,{onMouseDown:function(){clearTimeout(F.current),B.current=!0},onMouseUp:function(){F.current=setTimeout((function(){B.current=!1}))},ref:A,closable:w,ariaId:L,prefixCls:r,visible:a&&q,onClose:z,onVisibleChanged:function(e){if(e)J(R.current,document.activeElement)||null===(t=A.current)||void 0===t||t.focus();else{if(D(!1),S&&M.current&&u){try{M.current.focus({preventScroll:!0})}catch(e){}M.current=null}q&&(null==m||m())}var t;null==v||v(e)},motionName:dh(r,g,b)}))))},Ch=function(e){var n=e.visible,r=e.getContainer,o=e.forceRender,i=e.destroyOnClose,a=void 0!==i&&i,l=e.afterClose,c=e.panelRef,s=Y(t.useState(n),2),u=s[0],f=s[1],d=t.useMemo((function(){return{panel:c}}),[c]);return t.useEffect((function(){n&&f(!0)}),[n]),o||!a||u?t.createElement(fh.Provider,{value:d},t.createElement(Su,{open:n||o||u,autoDestroy:!1,getContainer:r,autoLock:n||u},t.createElement(Sh,ht({},e,{destroyOnClose:a,afterClose:function(){null==l||l(),f(!1)}})))):null};Ch.displayName="Dialog";var kh=Ch;function Eh(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function Oh(e){const{closable:n,closeIcon:r}=e||{};return t.useMemo((()=>{if(!n&&(!1===n||!1===r||null===r))return!1;if(void 0===n&&void 0===r)return null;let e={closeIcon:"boolean"!=typeof r&&null!==r?r:void 0};return n&&"object"==typeof n&&(e=Object.assign(Object.assign({},e),n)),e}),[n,r])}function _h(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((t=>{t&&Object.keys(t).forEach((n=>{void 0!==t[n]&&(e[n]=t[n])}))})),e}const jh={};function $h(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:jh;const o=Oh(e),i=Oh(n),a=t.useMemo((()=>Object.assign({closeIcon:t.createElement(Xa,null)},r)),[r]),l=t.useMemo((()=>!1!==o&&(o?_h(a,i,o):!1!==i&&(i?_h(a,i):!!a.closable&&a))),[o,i,a]);return t.useMemo((()=>{if(!1===l)return[!1,null];const{closeIconRender:e}=a,{closeIcon:n}=l;let r=n;if(null!=r){e&&(r=e(n));const o=dl(l,!0);Object.keys(o).length&&(r=t.isValidElement(r)?t.cloneElement(r,o):t.createElement("span",Object.assign({},o),r))}return[!0,r]}),[l,a])}var Nh=e=>{const{prefixCls:n,className:r,style:o,size:i,shape:a}=e,l=jo()({[`${n}-lg`]:"large"===i,[`${n}-sm`]:"small"===i}),c=jo()({[`${n}-circle`]:"circle"===a,[`${n}-square`]:"square"===a,[`${n}-round`]:"round"===a}),s=t.useMemo((()=>"number"==typeof i?{width:i,height:i,lineHeight:`${i}px`}:{}),[i]);return t.createElement("span",{className:jo()(n,l,c,r),style:Object.assign(Object.assign({},s),o)})};const Ph=new xn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Ih=e=>({height:e,lineHeight:Ue(e)}),Mh=e=>Object.assign({width:e},Ih(e)),Rh=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Ph,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Ah=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Ih(e)),Th=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Mh(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Mh(o)),[`${t}${t}-sm`]:Object.assign({},Mh(i))}},qh=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},Ah(t,l)),[`${r}-lg`]:Object.assign({},Ah(o,l)),[`${r}-sm`]:Object.assign({},Ah(i,l))}},Dh=e=>Object.assign({width:e},Ih(e)),Lh=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},Dh(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Dh(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},zh=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Bh=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Ih(e)),Fh=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},Bh(r,l))},zh(e,r,n)),{[`${n}-lg`]:Object.assign({},Bh(o,l))}),zh(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Bh(i,l))}),zh(e,i,`${n}-sm`))},Hh=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:c,controlHeightLG:s,controlHeightSM:u,gradientFromColor:f,padding:d,marginSM:p,borderRadius:h,titleHeight:v,blockRadius:m,paragraphLiHeight:g,controlHeightXS:b,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:d,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},Mh(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Mh(s)),[`${n}-sm`]:Object.assign({},Mh(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:v,background:f,borderRadius:m,[`+ ${o}`]:{marginBlockStart:u}},[o]:{padding:0,"> li":{width:"100%",height:g,listStyle:"none",background:f,borderRadius:m,"+ li":{marginBlockStart:b}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Fh(e)),Th(e)),qh(e)),Lh(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${r},\n ${o} > li,\n ${n},\n ${i},\n ${a},\n ${l}\n `]:Object.assign({},Rh(e))}}};var Wh=Jl("Skeleton",(e=>{const{componentCls:t,calc:n}=e,r=Wl(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Hh(r)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var Vh=e=>{const{prefixCls:n,className:r,rootClassName:o,active:i,shape:a="circle",size:l="default"}=e,{getPrefixCls:c}=t.useContext(F),s=c("skeleton",n),[u,f,d]=Wh(s),p=qc(e,["prefixCls","className"]),h=jo()(s,`${s}-element`,{[`${s}-active`]:i},r,o,f,d);return u(t.createElement("div",{className:h},t.createElement(Nh,Object.assign({prefixCls:`${s}-avatar`,shape:a,size:l},p))))};var Uh=e=>{const{prefixCls:n,className:r,rootClassName:o,active:i,block:a=!1,size:l="default"}=e,{getPrefixCls:c}=t.useContext(F),s=c("skeleton",n),[u,f,d]=Wh(s),p=qc(e,["prefixCls"]),h=jo()(s,`${s}-element`,{[`${s}-active`]:i,[`${s}-block`]:a},r,o,f,d);return u(t.createElement("div",{className:h},t.createElement(Nh,Object.assign({prefixCls:`${s}-button`,size:l},p))))};var Gh=e=>{const{prefixCls:n,className:r,rootClassName:o,style:i,active:a}=e,{getPrefixCls:l}=t.useContext(F),c=l("skeleton",n),[s,u,f]=Wh(c),d=jo()(c,`${c}-element`,{[`${c}-active`]:a},r,o,u,f);return s(t.createElement("div",{className:d},t.createElement("div",{className:jo()(`${c}-image`,r),style:i},t.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${c}-image-svg`},t.createElement("title",null,"Image placeholder"),t.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${c}-image-path`})))))};var Yh=e=>{const{prefixCls:n,className:r,rootClassName:o,active:i,block:a,size:l="default"}=e,{getPrefixCls:c}=t.useContext(F),s=c("skeleton",n),[u,f,d]=Wh(s),p=qc(e,["prefixCls"]),h=jo()(s,`${s}-element`,{[`${s}-active`]:i,[`${s}-block`]:a},r,o,f,d);return u(t.createElement("div",{className:h},t.createElement(Nh,Object.assign({prefixCls:`${s}-input`,size:l},p))))},Kh={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},Xh=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:Kh}))};var Qh=t.forwardRef(Xh);var Zh=e=>{const{prefixCls:n,className:r,rootClassName:o,style:i,active:a,children:l}=e,{getPrefixCls:c}=t.useContext(F),s=c("skeleton",n),[u,f,d]=Wh(s),p=jo()(s,`${s}-element`,{[`${s}-active`]:a},f,r,o,d),h=null!=l?l:t.createElement(Qh,null);return u(t.createElement("div",{className:p},t.createElement("div",{className:jo()(`${s}-image`,r),style:i},h)))};const Jh=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0};var ev=e=>{const{prefixCls:n,className:r,style:o,rows:i}=e,a=X(Array(i)).map(((n,r)=>t.createElement("li",{key:r,style:{width:Jh(r,e)}})));return t.createElement("ul",{className:jo()(n,r),style:o},a)};var tv=e=>{let{prefixCls:n,className:r,width:o,style:i}=e;return t.createElement("h3",{className:jo()(n,r),style:Object.assign({width:o},i)})};function nv(e){return e&&"object"==typeof e?e:{}}const rv=e=>{const{prefixCls:n,loading:r,className:o,rootClassName:i,style:a,children:l,avatar:c=!1,title:s=!0,paragraph:u=!0,active:f,round:d}=e,{getPrefixCls:p,direction:h,skeleton:v}=t.useContext(F),m=p("skeleton",n),[g,b,y]=Wh(m);if(r||!("loading"in e)){const e=!!c,n=!!s,r=!!u;let l,p;if(e){const e=Object.assign(Object.assign({prefixCls:`${m}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(n,r)),nv(c));l=t.createElement("div",{className:`${m}-header`},t.createElement(Nh,Object.assign({},e)))}if(n||r){let o,i;if(n){const n=Object.assign(Object.assign({prefixCls:`${m}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,r)),nv(s));o=t.createElement(tv,Object.assign({},n))}if(r){const r=Object.assign(Object.assign({prefixCls:`${m}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,n)),nv(u));i=t.createElement(ev,Object.assign({},r))}p=t.createElement("div",{className:`${m}-content`},o,i)}const w=jo()(m,{[`${m}-with-avatar`]:e,[`${m}-active`]:f,[`${m}-rtl`]:"rtl"===h,[`${m}-round`]:d},null==v?void 0:v.className,o,i,b,y);return g(t.createElement("div",{className:w,style:Object.assign(Object.assign({},null==v?void 0:v.style),a)},l,p))}return null!=l?l:null};rv.Button=Uh,rv.Avatar=Vh,rv.Input=Yh,rv.Image=Gh,rv.Node=Zh;var ov=rv;function iv(){}const av=t.createContext({add:iv,remove:iv});var lv=()=>{const{cancelButtonProps:e,cancelTextLocale:n,onCancel:r}=(0,t.useContext)(lh);return t.createElement(Zs,Object.assign({onClick:r},e),n)};var cv=()=>{const{confirmLoading:e,okButtonProps:n,okType:r,okTextLocale:o,onOk:i}=(0,t.useContext)(lh);return t.createElement(Zs,Object.assign({},ls(r),{loading:e,onClick:i},n),o)};function sv(e,n){return t.createElement("span",{className:`${e}-close-x`},n||t.createElement(Xa,{className:`${e}-close-icon`}))}const uv=e=>{const{okText:n,okType:r="primary",cancelText:o,confirmLoading:i,onOk:a,onCancel:l,okButtonProps:c,cancelButtonProps:s,footer:u}=e,[f]=oh("Modal",Wn()),d={confirmLoading:i,okButtonProps:c,cancelButtonProps:s,okTextLocale:n||(null==f?void 0:f.okText),cancelTextLocale:o||(null==f?void 0:f.cancelText),okType:r,onOk:a,onCancel:l},p=t.useMemo((()=>d),X(Object.values(d)));let h;return"function"==typeof u||void 0===u?(h=t.createElement(t.Fragment,null,t.createElement(lv,null),t.createElement(cv,null)),"function"==typeof u&&(h=u(h,{OkBtn:cv,CancelBtn:lv})),h=t.createElement(ch,{value:p},h)):h=u,t.createElement(bo,{disabled:!1},h)},fv=new xn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),dv=new xn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),pv=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[Ap(r,fv,dv,e.motionDurationMid,t),{[`\n ${o}${r}-enter,\n ${o}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]};function hv(e){return{position:e,inset:0}}const vv=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},hv("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},hv("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:pv(e)}]},mv=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${Ue(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},ua(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Ue(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:Ue(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},pa(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Ue(e.borderRadiusLG)} ${Ue(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${Ue(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},gv=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},bv=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Wl(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},yv=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Ue(e.paddingMD)} ${Ue(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Ue(e.padding)} ${Ue(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Ue(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Ue(e.paddingXS)} ${Ue(e.padding)}`:0,footerBorderTop:e.wireframe?`${Ue(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Ue(e.borderRadiusLG)} ${Ue(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Ue(2*e.padding)} ${Ue(2*e.padding)} ${Ue(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM});var wv=Jl("Modal",(e=>{const t=bv(e);return[mv(t),gv(t),vv(t),Hp(t,"zoom")]}),yv,{unitless:{titleLineHeight:!0}}),xv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let Sv;const Cv=e=>{Sv={x:e.pageX,y:e.pageY},setTimeout((()=>{Sv=null}),100)};Z()&&window.document.documentElement&&document.documentElement.addEventListener("click",Cv,!0);var kv=e=>{var n;const{getPopupContainer:r,getPrefixCls:o,direction:i,modal:a}=t.useContext(F),l=t=>{const{onCancel:n}=e;null==n||n(t)};const{prefixCls:c,className:s,rootClassName:u,open:f,wrapClassName:d,centered:p,getContainer:h,focusTriggerAfterClose:v=!0,style:m,visible:g,width:b=520,footer:y,classNames:w,styles:x,children:S,loading:C}=e,k=xv(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),E=o("modal",c),O=o(),_=Ol(E),[j,$,N]=wv(E,_),P=jo()(d,{[`${E}-centered`]:!!p,[`${E}-wrap-rtl`]:"rtl"===i}),I=null===y||C?null:t.createElement(uv,Object.assign({},e,{onOk:t=>{const{onOk:n}=e;null==n||n(t)},onCancel:l})),[M,R]=$h(Eh(e),Eh(a),{closable:!0,closeIcon:t.createElement(Xa,{className:`${E}-close-icon`}),closeIconRender:e=>sv(E,e)}),A=function(e){const n=t.useContext(av),r=t.useRef();return Xo((t=>{if(t){const o=e?t.querySelector(e):t;n.add(o),r.current=o}else n.remove(r.current)}))}(`.${E}-content`),[T,q]=Il("Modal",k.zIndex);return j(t.createElement(vp,{form:!0,space:!0},t.createElement(_l.Provider,{value:q},t.createElement(kh,Object.assign({width:b},k,{zIndex:T,getContainer:void 0===h?r:h,prefixCls:E,rootClassName:jo()($,u,N,_),footer:I,visible:null!=f?f:g,mousePosition:null!==(n=k.mousePosition)&&void 0!==n?n:Sv,onClose:l,closable:M,closeIcon:R,focusTriggerAfterClose:v,transitionName:xp(O,"zoom",e.transitionName),maskTransitionName:xp(O,"fade",e.maskTransitionName),className:jo()($,s,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),m),classNames:Object.assign(Object.assign(Object.assign({},null==a?void 0:a.classNames),w),{wrapper:jo()(P,null==w?void 0:w.wrapper)}),styles:Object.assign(Object.assign({},null==a?void 0:a.styles),x),panelRef:A}),C?t.createElement(ov,{active:!0,title:!1,paragraph:{rows:4},className:`${E}-body-skeleton`}):S))))};const Ev=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:l,fontHeight:c,confirmBodyPadding:s}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`&${t} ${t}-body`]:{padding:s},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${Ue(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},\n ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}};var Ov=tc(["Modal","confirm"],(e=>{const t=bv(e);return[Ev(t)]}),yv,{order:-1e3}),_v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function jv(e){const{prefixCls:n,icon:r,okText:o,cancelText:i,confirmPrefixCls:a,type:l,okCancel:c,footer:s,locale:u}=e,f=_v(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let d=r;if(!r&&null!==r)switch(l){case"info":d=t.createElement(nl,null);break;case"success":d=t.createElement(Wa,null);break;case"error":d=t.createElement(Ga,null);break;default:d=t.createElement(Ja,null)}const p=null!=c?c:"confirm"===l,h=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[v]=oh("Modal"),m=u||v,g=o||(p?null==m?void 0:m.okText:null==m?void 0:m.justOkText),b=i||(null==m?void 0:m.cancelText),y=Object.assign({autoFocusButton:h,cancelTextLocale:b,okTextLocale:g,mergedOkCancel:p},f),w=t.useMemo((()=>y),X(Object.values(y))),x=t.createElement(t.Fragment,null,t.createElement(sh,null),t.createElement(uh,null)),S=void 0!==e.title&&null!==e.title,C=`${a}-body`;return t.createElement("div",{className:`${a}-body-wrapper`},t.createElement("div",{className:jo()(C,{[`${C}-has-title`]:S})},d,t.createElement("div",{className:`${a}-paragraph`},S&&t.createElement("span",{className:`${a}-title`},e.title),t.createElement("div",{className:`${a}-content`},e.content))),void 0===s||"function"==typeof s?t.createElement(ch,{value:w},t.createElement("div",{className:`${a}-btns`},"function"==typeof s?s(x,{OkBtn:uh,CancelBtn:sh}):x)):s,t.createElement(Ov,{prefixCls:n}))}const $v=e=>{const{close:n,zIndex:r,afterClose:o,open:i,keyboard:a,centered:l,getContainer:c,maskStyle:s,direction:u,prefixCls:f,wrapClassName:d,rootPrefixCls:p,bodyStyle:h,closable:v=!1,closeIcon:m,modalRender:g,focusTriggerAfterClose:b,onConfirm:y,styles:w}=e;const x=`${f}-confirm`,S=e.width||416,C=e.style||{},k=void 0===e.mask||e.mask,E=void 0!==e.maskClosable&&e.maskClosable,O=jo()(x,`${x}-${e.type}`,{[`${x}-rtl`]:"rtl"===u},e.className),[,_]=aa(),j=t.useMemo((()=>void 0!==r?r:_.zIndexPopupBase+$l),[r,_]);return t.createElement(kv,{prefixCls:f,className:O,wrapClassName:jo()({[`${x}-centered`]:!!e.centered},d),onCancel:()=>{null==n||n({triggerCancel:!0}),null==y||y(!1)},open:i,title:"",footer:null,transitionName:xp(p||"","zoom",e.transitionName),maskTransitionName:xp(p||"","fade",e.maskTransitionName),mask:k,maskClosable:E,style:C,styles:Object.assign({body:h,mask:s},w),width:S,zIndex:j,afterClose:o,keyboard:a,centered:l,getContainer:c,closable:v,closeIcon:m,modalRender:g,focusTriggerAfterClose:b},t.createElement(jv,Object.assign({},e,{confirmPrefixCls:x})))};var Nv=e=>{const{rootPrefixCls:n,iconPrefixCls:r,direction:o,theme:i}=e;return t.createElement(Oa,{prefixCls:n,iconPrefixCls:r,direction:o,theme:i},t.createElement($v,Object.assign({},e)))};var Pv=[];let Iv="";function Mv(){return Iv}const Rv=e=>{var n,r;const{prefixCls:o,getContainer:i,direction:a}=e,l=Wn(),c=(0,t.useContext)(F),s=Mv()||c.getPrefixCls(),u=o||`${s}-modal`;let f=i;return!1===f&&(f=void 0),t.createElement(Nv,Object.assign({},e,{rootPrefixCls:s,prefixCls:u,iconPrefixCls:c.iconPrefixCls,theme:c.theme,direction:null!=a?a:c.direction,locale:null!==(r=null===(n=c.locale)||void 0===n?void 0:n.Modal)&&void 0!==r?r:l,getContainer:f}))};function Av(e){const n=Ca();const r=document.createDocumentFragment();let o,i=Object.assign(Object.assign({},e),{close:c,open:!0});function a(){for(var t,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var a;o.some((e=>null==e?void 0:e.triggerCancel))&&(null===(t=e.onCancel)||void 0===t||(a=t).call.apply(a,[e,()=>{}].concat(X(o.slice(1)))));for(let e=0;e<Pv.length;e++){if(Pv[e]===c){Pv.splice(e,1);break}}T(r)}function l(e){clearTimeout(o),o=setTimeout((()=>{const o=n.getPrefixCls(void 0,Mv()),i=n.getIconPrefixCls(),a=n.getTheme(),l=t.createElement(Rv,Object.assign({},e));I(t.createElement(Oa,{prefixCls:o,iconPrefixCls:i,theme:a},n.holderRender?n.holderRender(l):l),r)}))}function c(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];i=Object.assign(Object.assign({},i),{open:!1,afterClose:()=>{"function"==typeof e.afterClose&&e.afterClose(),a.apply(this,n)}}),i.visible&&delete i.visible,l(i)}return l(i),Pv.push(c),{destroy:c,update:function(e){i="function"==typeof e?e(i):Object.assign(Object.assign({},i),e),l(i)}}}function Tv(e){return Object.assign(Object.assign({},e),{type:"warning"})}function qv(e){return Object.assign(Object.assign({},e),{type:"info"})}function Dv(e){return Object.assign(Object.assign({},e),{type:"success"})}function Lv(e){return Object.assign(Object.assign({},e),{type:"error"})}function zv(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function Bv(e){return n=>t.createElement(Oa,{theme:{token:{motion:!1,zIndexPopupBase:0}}},t.createElement(e,Object.assign({},n)))}var Fv=(e,n,r,o)=>Bv((i=>{const{prefixCls:a,style:l}=i,c=t.useRef(null),[s,u]=t.useState(0),[f,d]=t.useState(0),[p,h]=Jo(!1,{value:i.open}),{getPrefixCls:v}=t.useContext(F),m=v(n||"select",a);t.useEffect((()=>{if(h(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;u(t.offsetHeight+8),d(t.offsetWidth)})),t=setInterval((()=>{var n;const o=r?`.${r(m)}`:`.${m}-dropdown`,i=null===(n=c.current)||void 0===n?void 0:n.querySelector(o);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let g=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},l),{margin:0}),open:p,visible:p,getPopupContainer:()=>c.current});o&&(g=o(g));const b={paddingBottom:s,position:"relative",minWidth:f};return t.createElement("div",{ref:c,style:b},t.createElement(e,Object.assign({},g)))})),Hv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var Wv=Bv((e=>{const{prefixCls:n,className:r,closeIcon:o,closable:i,type:a,title:l,children:c,footer:s}=e,u=Hv(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:f}=t.useContext(F),d=f(),p=n||f("modal"),h=Ol(d),[v,m,g]=wv(p,h),b=`${p}-confirm`;let y={};return y=a?{closable:null!=i&&i,title:"",footer:"",children:t.createElement(jv,Object.assign({},e,{prefixCls:p,confirmPrefixCls:b,rootPrefixCls:d,content:c}))}:{closable:null==i||i,title:l,footer:null!==s&&t.createElement(uv,Object.assign({},e)),children:c},v(t.createElement(bh,Object.assign({prefixCls:p,className:jo()(m,`${p}-pure-panel`,a&&b,a&&`${b}-${a}`,r,g,h)},u,{closeIcon:sv(p,o),closable:i},y)))}));var Vv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Uv=(e,n)=>{var r,{afterClose:o,config:i}=e,a=Vv(e,["afterClose","config"]);const[l,c]=t.useState(!0),[s,u]=t.useState(i),{direction:f,getPrefixCls:d}=t.useContext(F),p=d("modal"),h=d(),v=function(){var e;c(!1);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o;n.some((e=>null==e?void 0:e.triggerCancel))&&(null===(e=s.onCancel)||void 0===e||(o=e).call.apply(o,[s,()=>{}].concat(X(n.slice(1)))))};t.useImperativeHandle(n,(()=>({destroy:v,update:e=>{u((t=>Object.assign(Object.assign({},t),e)))}})));const m=null!==(r=s.okCancel)&&void 0!==r?r:"confirm"===s.type,[g]=oh("Modal",zn.Modal);return t.createElement(Nv,Object.assign({prefixCls:p,rootPrefixCls:h},s,{close:v,open:l,afterClose:()=>{var e;o(),null===(e=s.afterClose)||void 0===e||e.call(s)},okText:s.okText||(m?null==g?void 0:g.okText:null==g?void 0:g.justOkText),direction:s.direction||f,cancelText:s.cancelText||(null==g?void 0:g.cancelText)},a))};var Gv=t.forwardRef(Uv);let Yv=0;const Kv=t.memo(t.forwardRef(((e,n)=>{const[r,o]=function(){const[e,n]=t.useState([]);return[e,t.useCallback((e=>(n((t=>[].concat(X(t),[e]))),()=>{n((t=>t.filter((t=>t!==e))))})),[])]}();return t.useImperativeHandle(n,(()=>({patchElement:o})),[]),t.createElement(t.Fragment,null,r)})));var Xv=function(){const e=t.useRef(null),[n,r]=t.useState([]);t.useEffect((()=>{if(n.length){X(n).forEach((e=>{e()})),r([])}}),[n]);const o=t.useCallback((n=>function(o){var i;Yv+=1;const a=t.createRef();let l;const c=new Promise((e=>{l=e}));let s,u=!1;const f=t.createElement(Gv,{key:`modal-${Yv}`,config:n(o),ref:a,afterClose:()=>{null==s||s()},isSilent:()=>u,onConfirm:e=>{l(e)}});s=null===(i=e.current)||void 0===i?void 0:i.patchElement(f),s&&Pv.push(s);const d={destroy:()=>{function e(){var e;null===(e=a.current)||void 0===e||e.destroy()}a.current?e():r((t=>[].concat(X(t),[e])))},update:e=>{function t(){var t;null===(t=a.current)||void 0===t||t.update(e)}a.current?t():r((e=>[].concat(X(e),[t])))},then:e=>(u=!0,c.then(e))};return d}),[]);return[t.useMemo((()=>({info:o(qv),success:o(Dv),error:o(Lv),warning:o(Tv),confirm:o(zv)})),[]),t.createElement(Kv,{key:"modal-holder",ref:e})]};function Qv(e){return Av(Tv(e))}const Zv=kv;Zv.useModal=Xv,Zv.info=function(e){return Av(qv(e))},Zv.success=function(e){return Av(Dv(e))},Zv.error=function(e){return Av(Lv(e))},Zv.warning=Qv,Zv.warn=Qv,Zv.confirm=function(e){return Av(zv(e))},Zv.destroyAll=function(){for(;Pv.length;){const e=Pv.pop();e&&e()}},Zv.config=function(e){let{rootPrefixCls:t}=e;Iv=t},Zv._InternalPanelDoNotUseOrYouWillBeFired=Wv;var Jv=Zv,em={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},tm=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:em}))};var nm=t.forwardRef(tm);function rm(e){return["small","middle","large"].includes(e)}const om=["wrap","nowrap","wrap-reverse"],im=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],am=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];var lm=function(e,t){return jo()(Object.assign(Object.assign(Object.assign({},((e,t)=>{const n=!0===t.wrap?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&om.includes(n)}})(e,t)),((e,t)=>{const n={};return am.forEach((r=>{n[`${e}-align-${r}`]=t.align===r})),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return im.forEach((r=>{n[`${e}-justify-${r}`]=t.justify===r})),n})(e,t)))};const cm=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},sm=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},um=e=>{const{componentCls:t}=e,n={};return om.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},fm=e=>{const{componentCls:t}=e,n={};return am.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},dm=e=>{const{componentCls:t}=e,n={};return im.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n};var pm=Jl("Flex",(e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=Wl(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[cm(o),sm(o),um(o),fm(o),dm(o)]}),(()=>({})),{resetStyle:!1}),hm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const vm=t.forwardRef(((e,n)=>{const{prefixCls:r,rootClassName:o,className:i,style:a,flex:l,gap:c,children:s,vertical:u=!1,component:f="div"}=e,d=hm(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:p,direction:h,getPrefixCls:v}=t.useContext(F),m=v("flex",r),[g,b,y]=pm(m),w=null!=u?u:null==p?void 0:p.vertical,x=jo()(i,o,null==p?void 0:p.className,m,b,y,lm(m,e),{[`${m}-rtl`]:"rtl"===h,[`${m}-gap-${c}`]:rm(c),[`${m}-vertical`]:w}),S=Object.assign(Object.assign({},null==p?void 0:p.style),a);return l&&(S.flex=l),c&&!rm(c)&&(S.gap=c),g(t.createElement(f,Object.assign({ref:n,className:x,style:S},qc(d,["justify","wrap","align"])),s))}));var mm=vm;const gm=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return Wl(e,{tagFontSize:o,tagLineHeight:Ue(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},bm=e=>({defaultBg:new no(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var ym=Jl("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,a=i(r).sub(n).equal(),l=i(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},ua(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${Ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(gm(e))),bm),wm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const xm=t.forwardRef(((e,n)=>{const{prefixCls:r,style:o,className:i,checked:a,onChange:l,onClick:c}=e,s=wm(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:f}=t.useContext(F),d=u("tag",r),[p,h,v]=ym(d),m=jo()(d,`${d}-checkable`,{[`${d}-checkable-checked`]:a},null==f?void 0:f.className,i,h,v);return p(t.createElement("span",Object.assign({},s,{ref:n,style:Object.assign(Object.assign({},o),null==f?void 0:f.style),className:m,onClick:e=>{null==l||l(!a),null==c||c(e)}})))}));var Sm=xm;var Cm=tc(["Tag","preset"],(e=>(e=>Vp(e,((t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(gm(e))),bm);const km=(e,t,n)=>{const r="string"!=typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Em=tc(["Tag","status"],(e=>{const t=gm(e);return[km(t,"success","Success"),km(t,"processing","Info"),km(t,"error","Error"),km(t,"warning","Warning")]}),bm),Om=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const _m=t.forwardRef(((e,n)=>{const{prefixCls:r,className:o,rootClassName:i,style:a,children:l,icon:c,color:s,onClose:u,bordered:f=!0,visible:d}=e,p=Om(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:h,direction:v,tag:m}=t.useContext(F),[g,b]=t.useState(!0),y=qc(p,["closeIcon","closable"]);t.useEffect((()=>{void 0!==d&&b(d)}),[d]);const w=Qp(s),x=function(e){return Xp.includes(e)}(s),S=w||x,C=Object.assign(Object.assign({backgroundColor:s&&!S?s:void 0},null==m?void 0:m.style),a),k=h("tag",r),[E,O,_]=ym(k),j=jo()(k,null==m?void 0:m.className,{[`${k}-${s}`]:S,[`${k}-has-color`]:s&&!S,[`${k}-hidden`]:!g,[`${k}-rtl`]:"rtl"===v,[`${k}-borderless`]:!f},o,i,O,_),$=e=>{e.stopPropagation(),null==u||u(e),e.defaultPrevented||b(!1)},[,N]=$h(Eh(e),Eh(m),{closable:!1,closeIconRender:e=>zc(e,t.createElement("span",{className:`${k}-close-icon`,onClick:$},e),(e=>({onClick:t=>{var n;null===(n=null==e?void 0:e.onClick)||void 0===n||n.call(e,t),$(t)},className:jo()(null==e?void 0:e.className,`${k}-close-icon`)})))}),P="function"==typeof p.onClick||l&&"a"===l.type,I=c||null,M=I?t.createElement(t.Fragment,null,I,l&&t.createElement("span",null,l)):l,R=t.createElement("span",Object.assign({},y,{ref:n,className:j,style:C}),M,N,w&&t.createElement(Cm,{key:"preset",prefixCls:k}),x&&t.createElement(Em,{key:"status",prefixCls:k}));return E(P?t.createElement(Xc,{component:"Tag"},R):R)})),jm=_m;jm.CheckableTag=Sm;var $m=jm,Nm=function(e){var t=e.field,n=t.label,o=t.isPro;return n&&(0,r.jsx)("div",{className:"rtsb-field__label_wrap",children:(0,r.jsxs)(mm,{wrap:!0,gap:"small",children:[(0,r.jsx)("h6",{className:"rtsb-field__label",dangerouslySetInnerHTML:{__html:n}}),o?(0,r.jsx)($m,{color:"red",children:"PRO"}):null]})})};function Pm(e){return Pm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pm(e)}function Im(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Im(Object(n),!0).forEach((function(t){Rm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Im(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rm(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Pm(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Pm(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Pm(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Am(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Tm(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tm(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var qm=function(e){var n,o,i,a,c=e.id,s=e.field,u=s.value,f=s.help,p=s.disabled,h=s.isPro,v=(0,t.useRef)(),m=Am(l(),2),g=(m[0],m[1]),b={};p?b.disabled=p||!1:h&&(b.disabled=h),(0,t.useEffect)((function(){var e=v.current.closest(".ant-modal-body");"active"===c&&("on"===u?e.classList.remove("is-disable"):e.classList.add("is-disable"))}),[u]);var y=null===(n=e.field)||void 0===n?void 0:n.fieldType,w=null===(o=e.field)||void 0===o?void 0:o.parentId,x=null===(i=e.field)||void 0===i?void 0:i.index,S=null===(a=e.field)||void 0===a?void 0:a.repeaterData;if(c)return(0,r.jsxs)("div",{className:"rtsb-field switch",ref:v,children:[(0,r.jsx)(Nm,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(fu,Mm(Mm({},b),{},{checkedChildren:"On",unCheckedChildren:h?(0,r.jsx)("span",{className:"dashicons dashicons-lock"}):"Off",checked:"on"===u,onChange:function(e){g({type:d,id:c,value:e?"on":"off",fieldType:y,parentId:w,repeaterData:S,index:x})}}))}),f&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:f}})]})]})};function Dm(e){return Wl(e,{inputAffixPadding:e.paddingXXS})}const Lm=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:s,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:d,colorPrimaryHover:p,colorPrimary:h,controlOutlineWidth:v,controlOutline:m,colorErrorOutline:g,colorWarningOutline:b,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-l*c)/2*10)/10-o,paddingInline:s-o,paddingInlineSM:u-o,paddingInlineLG:f-o,addonBg:d,activeBorderColor:h,hoverBorderColor:p,activeShadow:`0 0 0 ${v}px ${m}`,errorActiveShadow:`0 0 0 ${v}px ${g}`,warningActiveShadow:`0 0 0 ${v}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},zm=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Bm=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},zm(Wl(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Fm=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),Hm=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Fm(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Wm=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Fm(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Bm(e))}),Hm(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Hm(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Vm=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Um=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Vm(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Vm(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Bm(e))}})}),Gm=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Ym=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),Km=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Ym(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Xm=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ym(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Bm(e))}),Km(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Km(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Qm=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Zm=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Ue(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Ue(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},Qm(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Qm(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Jm=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),eg=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${Ue(t)} ${Ue(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},tg=e=>({padding:`${Ue(e.paddingBlockSM)} ${Ue(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),ng=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ue(e.paddingBlock)} ${Ue(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Jm(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},eg(e)),"&-sm":Object.assign({},tg(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),rg=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},eg(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},tg(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Ue(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Ue(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Ue(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Ue(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${Ue(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},og=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ua(e)),ng(e)),Wm(e)),Xm(e)),Gm(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},ig=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Ue(e.inputAffixPadding)}`}}}},ag=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,c=`${t}-affix-wrapper`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},ng(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),ig(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}})}},lg=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},ua(e)),rg(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},Um(e)),Zm(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},cg=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},sg=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`\n &-allow-clear > ${t},\n &-affix-wrapper${r}-has-feedback ${t}\n `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},ug=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};var fg=Jl("Input",(e=>{const t=Wl(e,Dm(e));return[og(t),sg(t),ag(t),lg(t),cg(t),ug(t),Ws(t)]}),Lm,{resetFont:!1});var dg=e=>{const{getPrefixCls:n,direction:r}=(0,t.useContext)(F),{prefixCls:o,className:i}=e,a=n("input-group",o),l=n("input"),[c,s]=fg(l),u=jo()(a,{[`${a}-lg`]:"large"===e.size,[`${a}-sm`]:"small"===e.size,[`${a}-compact`]:e.compact,[`${a}-rtl`]:"rtl"===r},s,i),f=(0,t.useContext)(dp),d=(0,t.useMemo)((()=>Object.assign(Object.assign({},f),{isFormItemInput:!1})),[f]);return c(t.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},t.createElement(dp.Provider,{value:d},e.children)))};function pg(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function hg(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=pg(t,e,r)):n(o=pg(t,e,""))}}function vg(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}var mg=t.forwardRef((function(e,n){var r,o,i=e.inputElement,a=e.children,l=e.prefixCls,c=e.prefix,s=e.suffix,u=e.addonBefore,f=e.addonAfter,d=e.className,p=e.style,h=e.disabled,v=e.readOnly,g=e.focused,b=e.triggerFocus,y=e.allowClear,w=e.value,S=e.handleReset,k=e.hidden,E=e.classes,O=e.classNames,_=e.dataAttrs,j=e.styles,$=e.components,N=e.onClear,P=null!=a?a:i,I=(null==$?void 0:$.affixWrapper)||"span",M=(null==$?void 0:$.groupWrapper)||"span",R=(null==$?void 0:$.wrapper)||"span",A=(null==$?void 0:$.groupAddon)||"span",T=(0,t.useRef)(null),q=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),D=(0,t.cloneElement)(P,{value:w,className:jo()(P.props.className,!q&&(null==O?void 0:O.variant))||null}),L=(0,t.useRef)(null);if(t.useImperativeHandle(n,(function(){return{nativeElement:L.current||T.current}})),q){var z=null;if(y){var B=!h&&!v&&w,F="".concat(l,"-clear-icon"),H="object"===m(y)&&null!=y&&y.clearIcon?y.clearIcon:"✖";z=t.createElement("span",{onClick:function(e){null==S||S(e),null==N||N()},onMouseDown:function(e){return e.preventDefault()},className:jo()(F,x(x({},"".concat(F,"-hidden"),!B),"".concat(F,"-has-suffix"),!!s)),role:"button",tabIndex:-1},H)}var W="".concat(l,"-affix-wrapper"),V=jo()(W,x(x(x(x(x({},"".concat(l,"-disabled"),h),"".concat(W,"-disabled"),h),"".concat(W,"-focused"),g),"".concat(W,"-readonly"),v),"".concat(W,"-input-with-clear-btn"),s&&y&&w),null==E?void 0:E.affixWrapper,null==O?void 0:O.affixWrapper,null==O?void 0:O.variant),U=(s||y)&&t.createElement("span",{className:jo()("".concat(l,"-suffix"),null==O?void 0:O.suffix),style:null==j?void 0:j.suffix},z,s);D=t.createElement(I,ht({className:V,style:null==j?void 0:j.affixWrapper,onClick:function(e){var t;null!==(t=T.current)&&void 0!==t&&t.contains(e.target)&&(null==b||b())}},null==_?void 0:_.affixWrapper,{ref:T}),c&&t.createElement("span",{className:jo()("".concat(l,"-prefix"),null==O?void 0:O.prefix),style:null==j?void 0:j.prefix},c),D,U)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var G="".concat(l,"-group"),Y="".concat(G,"-addon"),K="".concat(G,"-wrapper"),X=jo()("".concat(l,"-wrapper"),G,null==E?void 0:E.wrapper,null==O?void 0:O.wrapper),Q=jo()(K,x({},"".concat(K,"-disabled"),h),null==E?void 0:E.group,null==O?void 0:O.groupWrapper);D=t.createElement(M,{className:Q,ref:L},t.createElement(R,{className:X},u&&t.createElement(A,{className:Y},u),D,f&&t.createElement(A,{className:Y},f)))}return t.cloneElement(D,{className:jo()(null===(r=D.props)||void 0===r?void 0:r.className,d)||null,style:C(C({},null===(o=D.props)||void 0===o?void 0:o.style),p),hidden:k})})),gg=mg,bg=["show"];function yg(e,n){return t.useMemo((function(){var t={};n&&(t.show="object"===m(n)&&n.formatter?n.formatter:!!n);var r=t=C(C({},t),e),o=r.show,i=qo(r,bg);return C(C({},i),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})}),[e,n])}var wg=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],xg=(0,t.forwardRef)((function(e,n){var r=e.autoComplete,o=e.onChange,i=e.onFocus,a=e.onBlur,l=e.onPressEnter,c=e.onKeyDown,s=e.onKeyUp,u=e.prefixCls,f=void 0===u?"rc-input":u,d=e.disabled,p=e.htmlSize,h=e.className,v=e.maxLength,m=e.suffix,g=e.showCount,b=e.count,y=e.type,w=void 0===y?"text":y,S=e.classes,k=e.classNames,E=e.styles,O=e.onCompositionStart,_=e.onCompositionEnd,j=qo(e,wg),$=Y((0,t.useState)(!1),2),N=$[0],P=$[1],I=(0,t.useRef)(!1),M=(0,t.useRef)(!1),R=(0,t.useRef)(null),A=(0,t.useRef)(null),T=function(e){R.current&&vg(R.current,e)},q=Y(Jo(e.defaultValue,{value:e.value}),2),D=q[0],L=q[1],z=null==D?"":String(D),B=Y((0,t.useState)(null),2),F=B[0],H=B[1],W=yg(b,g),V=W.max||v,U=W.strategy(z),G=!!V&&U>V;(0,t.useImperativeHandle)(n,(function(){var e;return{focus:T,blur:function(){var e;null===(e=R.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=R.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=R.current)||void 0===e||e.select()},input:R.current,nativeElement:(null===(e=A.current)||void 0===e?void 0:e.nativeElement)||R.current}})),(0,t.useEffect)((function(){P((function(e){return(!e||!d)&&e}))}),[d]);var K=function(e,t,n){var r,i,a=t;if(!I.current&&W.exceedFormatter&&W.max&&W.strategy(t)>W.max)t!==(a=W.exceedFormatter(t,{max:W.max}))&&H([(null===(r=R.current)||void 0===r?void 0:r.selectionStart)||0,(null===(i=R.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;L(a),R.current&&hg(R.current,e,o,a)};(0,t.useEffect)((function(){var e;F&&(null===(e=R.current)||void 0===e||e.setSelectionRange.apply(e,X(F)))}),[F]);var Q,Z=function(e){K(e,e.target.value,{source:"change"})},J=function(e){I.current=!1,K(e,e.currentTarget.value,{source:"compositionEnd"}),null==_||_(e)},ee=function(e){l&&"Enter"===e.key&&!M.current&&(M.current=!0,l(e)),null==c||c(e)},te=function(e){"Enter"===e.key&&(M.current=!1),null==s||s(e)},ne=function(e){P(!0),null==i||i(e)},re=function(e){P(!1),null==a||a(e)},oe=G&&"".concat(f,"-out-of-range");return t.createElement(gg,ht({},j,{prefixCls:f,className:jo()(h,oe),handleReset:function(e){L(""),T(),R.current&&hg(R.current,e,o)},value:z,focused:N,triggerFocus:T,suffix:function(){var e=Number(V)>0;if(m||W.show){var n=W.showFormatter?W.showFormatter({value:z,count:U,maxLength:V}):"".concat(U).concat(e?" / ".concat(V):"");return t.createElement(t.Fragment,null,W.show&&t.createElement("span",{className:jo()("".concat(f,"-show-count-suffix"),x({},"".concat(f,"-show-count-has-suffix"),!!m),null==k?void 0:k.count),style:C({},null==E?void 0:E.count)},n),m)}return null}(),disabled:d,classes:S,classNames:k,styles:E}),(Q=qc(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),t.createElement("input",ht({autoComplete:r},Q,{onChange:Z,onFocus:ne,onBlur:re,onKeyDown:ee,onKeyUp:te,className:jo()(f,x({},"".concat(f,"-disabled"),d),null==k?void 0:k.input),style:null==E?void 0:E.input,ref:R,size:p,type:w,onCompositionStart:function(e){I.current=!0,null==O||O(e)},onCompositionEnd:J}))))})),Sg=xg;var Cg=e=>{let n;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?n=e:e&&(n={clearIcon:t.createElement(Ga,null)}),n};function kg(e,t,n){return jo()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const Eg=(e,t)=>t||e;var Og=function(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var o,i;const{variant:a,[e]:l}=(0,t.useContext)(F),c=(0,t.useContext)(hp),s=null==l?void 0:l.variant;let u;u=void 0!==n?n:!1===r?"borderless":null!==(i=null!==(o=null!=c?c:s)&&void 0!==o?o:a)&&void 0!==i?i:"outlined";return[u,B.includes(u)]};function _g(e,n){const r=(0,t.useRef)([]),o=()=>{r.current.push(setTimeout((()=>{var t,n,r,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))})))};return(0,t.useEffect)((()=>(n&&o(),()=>r.current.forEach((e=>{e&&clearTimeout(e)})))),[]),o}var jg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const $g=(0,t.forwardRef)(((e,n)=>{var r;const{prefixCls:o,bordered:i=!0,status:a,size:l,disabled:c,onBlur:s,onFocus:u,suffix:f,allowClear:d,addonAfter:p,addonBefore:h,className:v,style:m,styles:g,rootClassName:b,onChange:y,classNames:w,variant:x}=e,S=jg(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);const{getPrefixCls:C,direction:k,input:E}=t.useContext(F),O=C("input",o),_=(0,t.useRef)(null),j=Ol(O),[$,N,P]=fg(O,j),{compactSize:I,compactItemClassnames:M}=es(O,k),R=Qc((e=>{var t;return null!==(t=null!=l?l:I)&&void 0!==t?t:e})),A=t.useContext(yo),T=null!=c?c:A,{status:q,hasFeedback:D,feedbackIcon:L}=(0,t.useContext)(dp),z=Eg(q,a),B=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!D;(0,t.useRef)(B);const H=_g(_,!0),W=(D||f)&&t.createElement(t.Fragment,null,f,D&&L),V=Cg(null!=d?d:null==E?void 0:E.allowClear),[U,G]=Og("input",x,i);return $(t.createElement(Sg,Object.assign({ref:Mo(n,_),prefixCls:O,autoComplete:null==E?void 0:E.autoComplete},S,{disabled:T,onBlur:e=>{H(),null==s||s(e)},onFocus:e=>{H(),null==u||u(e)},style:Object.assign(Object.assign({},null==E?void 0:E.style),m),styles:Object.assign(Object.assign({},null==E?void 0:E.styles),g),suffix:W,allowClear:V,className:jo()(v,b,P,j,M,null==E?void 0:E.className),onChange:e=>{H(),null==y||y(e)},addonBefore:h&&t.createElement(vp,{form:!0,space:!0},h),addonAfter:p&&t.createElement(vp,{form:!0,space:!0},p),classNames:Object.assign(Object.assign(Object.assign({},w),null==E?void 0:E.classNames),{input:jo()({[`${O}-sm`]:"small"===R,[`${O}-lg`]:"large"===R,[`${O}-rtl`]:"rtl"===k},null==w?void 0:w.input,null===(r=null==E?void 0:E.classNames)||void 0===r?void 0:r.input,N),variant:jo()({[`${O}-${U}`]:G},kg(O,z)),affixWrapper:jo()({[`${O}-affix-wrapper-sm`]:"small"===R,[`${O}-affix-wrapper-lg`]:"large"===R,[`${O}-affix-wrapper-rtl`]:"rtl"===k},N),wrapper:jo()({[`${O}-group-rtl`]:"rtl"===k},N),groupWrapper:jo()({[`${O}-group-wrapper-sm`]:"small"===R,[`${O}-group-wrapper-lg`]:"large"===R,[`${O}-group-wrapper-rtl`]:"rtl"===k,[`${O}-group-wrapper-${U}`]:G},kg(`${O}-group-wrapper`,z,D),N)})})))}));var Ng=$g;const Pg=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}};var Ig=Jl(["Input","OTP"],(e=>{const t=Wl(e,Dm(e));return[Pg(t)]}),Lm),Mg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Rg=t.forwardRef(((e,n)=>{const{value:r,onChange:o,onActiveChange:i,index:a,mask:l}=e,c=Mg(e,["value","onChange","onActiveChange","index","mask"]),s=r&&"string"==typeof l?l:r,u=t.useRef(null);t.useImperativeHandle(n,(()=>u.current));const f=()=>{Ni((()=>{var e;const t=null===(e=u.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return t.createElement(Ng,Object.assign({},c,{ref:u,value:s,onInput:e=>{o(a,e.target.value)},onFocus:f,onKeyDown:e=>{let{key:t}=e;"ArrowLeft"===t?i(a-1):"ArrowRight"===t&&i(a+1),f()},onKeyUp:e=>{"Backspace"!==e.key||r||i(a-1),f()},onMouseDown:f,onMouseUp:f,type:!0===l?"password":"text"}))}));var Ag=Rg,Tg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function qg(e){return(e||"").split("")}const Dg=t.forwardRef(((e,n)=>{const{prefixCls:r,length:o=6,size:i,defaultValue:a,value:l,onChange:c,formatter:s,variant:u,disabled:f,status:d,autoFocus:p,mask:h}=e,v=Tg(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]);const{getPrefixCls:m,direction:g}=t.useContext(F),b=m("otp",r),y=dl(v,{aria:!0,data:!0,attr:!0}),w=Ol(b),[x,S,C]=Ig(b,w),k=Qc((e=>null!=i?i:e)),E=t.useContext(dp),O=Eg(E.status,d),_=t.useMemo((()=>Object.assign(Object.assign({},E),{status:O,hasFeedback:!1,feedbackIcon:null})),[E,O]),j=t.useRef(null),$=t.useRef({});t.useImperativeHandle(n,(()=>({focus:()=>{var e;null===(e=$.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<o;t+=1)null===(e=$.current[t])||void 0===e||e.blur()},nativeElement:j.current})));const N=e=>s?s(e):e,[P,I]=t.useState(qg(N(a||"")));t.useEffect((()=>{void 0!==l&&I(qg(l))}),[l]);const M=Xo((e=>{I(e),c&&e.length===o&&e.every((e=>e))&&e.some(((e,t)=>P[t]!==e))&&c(e.join(""))})),R=Xo(((e,t)=>{let n=X(P);for(let t=0;t<e;t+=1)n[t]||(n[t]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(qg(t)),n=n.slice(0,o);for(let e=n.length-1;e>=0&&!n[e];e-=1)n.pop();const r=N(n.map((e=>e||" ")).join(""));return n=qg(r).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),A=(e,t)=>{var n;const r=R(e,t),i=Math.min(e+t.length,o-1);i!==e&&(null===(n=$.current[i])||void 0===n||n.focus()),M(r)},T=e=>{var t;null===(t=$.current[e])||void 0===t||t.focus()},q={variant:u,disabled:f,status:O,mask:h};return x(t.createElement("div",Object.assign({},y,{ref:j,className:jo()(b,{[`${b}-sm`]:"small"===k,[`${b}-lg`]:"large"===k,[`${b}-rtl`]:"rtl"===g},C,S)}),t.createElement(dp.Provider,{value:_},Array.from({length:o}).map(((e,n)=>{const r=`otp-${n}`,o=P[n]||"";return t.createElement(Ag,Object.assign({ref:e=>{$.current[n]=e},key:r,index:n,size:k,htmlSize:1,className:`${b}-input`,onChange:A,value:o,onActiveChange:T,autoFocus:0===n&&p},q))})))))}));var Lg=Dg,zg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},Bg=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:zg}))};var Fg=t.forwardRef(Bg),Hg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Wg=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:Hg}))};var Vg=t.forwardRef(Wg),Ug=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Gg=e=>e?t.createElement(Vg,null):t.createElement(Fg,null),Yg={click:"onClick",hover:"onMouseOver"},Kg=t.forwardRef(((e,n)=>{const{disabled:r,action:o="click",visibilityToggle:i=!0,iconRender:a=Gg}=e,l="object"==typeof i&&void 0!==i.visible,[c,s]=(0,t.useState)((()=>!!l&&i.visible)),u=(0,t.useRef)(null);t.useEffect((()=>{l&&s(i.visible)}),[l,i]);const f=_g(u),d=()=>{r||(c&&f(),s((e=>{var t;const n=!e;return"object"==typeof i&&(null===(t=i.onVisibleChange)||void 0===t||t.call(i,n)),n})))},{className:p,prefixCls:h,inputPrefixCls:v,size:m}=e,g=Ug(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:b}=t.useContext(F),y=b("input",v),w=b("input-password",h),x=i&&(e=>{const n=Yg[o]||"",r=a(c),i={[n]:d,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return t.cloneElement(t.isValidElement(r)?r:t.createElement("span",null,r),i)})(w),S=jo()(w,p,{[`${w}-${m}`]:!!m}),C=Object.assign(Object.assign({},qc(g,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:S,prefixCls:y,suffix:x});return m&&(C.size=m),t.createElement(Ng,Object.assign({ref:Mo(n,u)},C))}));var Xg=Kg,Qg={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Zg=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:Qg}))};var Jg=t.forwardRef(Zg),eb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var tb,nb=t.forwardRef(((e,n)=>{const{prefixCls:r,inputPrefixCls:o,className:i,size:a,suffix:l,enterButton:c=!1,addonAfter:s,loading:u,disabled:f,onSearch:d,onChange:p,onCompositionStart:h,onCompositionEnd:v}=e,m=eb(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:g,direction:b}=t.useContext(F),y=t.useRef(!1),w=g("input-search",r),x=g("input",o),{compactSize:S}=es(w,b),C=Qc((e=>{var t;return null!==(t=null!=a?a:S)&&void 0!==t?t:e})),k=t.useRef(null),E=e=>{var t;document.activeElement===(null===(t=k.current)||void 0===t?void 0:t.input)&&e.preventDefault()},O=e=>{var t,n;d&&d(null===(n=null===(t=k.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},_="boolean"==typeof c?t.createElement(Jg,null):null,j=`${w}-button`;let $;const N=c||{},P=N.type&&!0===N.type.__ANT_BUTTON;$=P||"button"===N.type?Bc(N,Object.assign({onMouseDown:E,onClick:e=>{var t,n;null===(n=null===(t=null==N?void 0:N.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),O(e)},key:"enterButton"},P?{className:j,size:C}:{})):t.createElement(Zs,{className:j,type:c?"primary":void 0,size:C,disabled:f,key:"enterButton",onMouseDown:E,onClick:O,loading:u,icon:_},c),s&&($=[$,Bc(s,{key:"addonAfter"})]);const I=jo()(w,{[`${w}-rtl`]:"rtl"===b,[`${w}-${C}`]:!!C,[`${w}-with-button`]:!!c},i);return t.createElement(Ng,Object.assign({ref:Mo(k,n),onPressEnter:e=>{y.current||u||O(e)}},m,{size:C,onCompositionStart:e=>{y.current=!0,null==h||h(e)},onCompositionEnd:e=>{y.current=!1,null==v||v(e)},prefixCls:x,addonAfter:$,suffix:l,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&d&&d(e.target.value,e,{source:"clear"}),null==p||p(e)},className:I,disabled:f}))})),rb=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],ob={};function ib(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;tb||((tb=document.createElement("textarea")).setAttribute("tab-index","-1"),tb.setAttribute("aria-hidden","true"),document.body.appendChild(tb)),e.getAttribute("wrap")?tb.setAttribute("wrap",e.getAttribute("wrap")):tb.removeAttribute("wrap");var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&ob[n])return ob[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:rb.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(ob[n]=l),l}(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,c=o.sizingStyle;tb.setAttribute("style","".concat(c,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),tb.value=e.value||e.placeholder||"";var s,u=void 0,f=void 0,d=tb.scrollHeight;if("border-box"===l?d+=a:"content-box"===l&&(d-=i),null!==n||null!==r){tb.value=" ";var p=tb.scrollHeight-i;null!==n&&(u=p*n,"border-box"===l&&(u=u+i+a),d=Math.max(u,d)),null!==r&&(f=p*r,"border-box"===l&&(f=f+i+a),s=d>f?"":"hidden",d=Math.min(f,d))}var h={height:d,overflowY:s,resize:"none"};return u&&(h.minHeight=u),f&&(h.maxHeight=f),h}var ab=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],lb=t.forwardRef((function(e,n){var r=e,o=r.prefixCls,i=r.defaultValue,a=r.value,l=r.autoSize,c=r.onResize,s=r.className,u=r.style,f=r.disabled,d=r.onChange,p=(r.onInternalAutoSize,qo(r,ab)),h=Y(Jo(i,{value:a,postState:function(e){return null!=e?e:""}}),2),v=h[0],g=h[1],b=t.useRef();t.useImperativeHandle(n,(function(){return{textArea:b.current}}));var y=Y(t.useMemo((function(){return l&&"object"===m(l)?[l.minRows,l.maxRows]:[]}),[l]),2),w=y[0],S=y[1],k=!!l,E=Y(t.useState(2),2),O=E[0],_=E[1],j=Y(t.useState(),2),$=j[0],N=j[1],P=function(){_(0)};et((function(){k&&P()}),[a,w,S,k]),et((function(){if(0===O)_(1);else if(1===O){var e=ib(b.current,!1,w,S);_(2),N(e)}else!function(){try{if(document.activeElement===b.current){var e=b.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;b.current.setSelectionRange(t,n),b.current.scrollTop=r}}catch(e){}}()}),[O]);var I=t.useRef(),M=function(){Ni.cancel(I.current)};t.useEffect((function(){return M}),[]);var R=k?$:null,A=C(C({},u),R);return 0!==O&&1!==O||(A.overflowY="hidden",A.overflowX="hidden"),t.createElement(Ju,{onResize:function(e){2===O&&(null==c||c(e),l&&(M(),I.current=Ni((function(){P()}))))},disabled:!(l||c)},t.createElement("textarea",ht({},p,{ref:b,style:A,className:jo()(o,s,x({},"".concat(o,"-disabled"),f)),disabled:f,value:v,onChange:function(e){g(e.target.value),null==d||d(e)}})))})),cb=lb,sb=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],ub=t.forwardRef((function(e,n){var r,o=e.defaultValue,i=e.value,a=e.onFocus,l=e.onBlur,c=e.onChange,s=e.allowClear,u=e.maxLength,f=e.onCompositionStart,d=e.onCompositionEnd,p=e.suffix,h=e.prefixCls,v=void 0===h?"rc-textarea":h,m=e.showCount,g=e.count,b=e.className,y=e.style,w=e.disabled,S=e.hidden,k=e.classNames,E=e.styles,O=e.onResize,_=e.onClear,j=e.onPressEnter,$=e.readOnly,N=e.autoSize,P=e.onKeyDown,I=qo(e,sb),M=Y(Jo(o,{value:i,defaultValue:o}),2),R=M[0],A=M[1],T=null==R?"":String(R),q=Y(t.useState(!1),2),D=q[0],L=q[1],z=t.useRef(!1),B=Y(t.useState(null),2),F=B[0],H=B[1],W=(0,t.useRef)(null),V=(0,t.useRef)(null),U=function(){var e;return null===(e=V.current)||void 0===e?void 0:e.textArea},G=function(){U().focus()};(0,t.useImperativeHandle)(n,(function(){var e;return{resizableTextArea:V.current,focus:G,blur:function(){U().blur()},nativeElement:(null===(e=W.current)||void 0===e?void 0:e.nativeElement)||U()}})),(0,t.useEffect)((function(){L((function(e){return!w&&e}))}),[w]);var K=Y(t.useState(null),2),Q=K[0],Z=K[1];t.useEffect((function(){var e;Q&&(e=U()).setSelectionRange.apply(e,X(Q))}),[Q]);var J,ee=yg(g,m),te=null!==(r=ee.max)&&void 0!==r?r:u,ne=Number(te)>0,re=ee.strategy(T),oe=!!te&&re>te,ie=function(e,t){var n=t;!z.current&&ee.exceedFormatter&&ee.max&&ee.strategy(t)>ee.max&&t!==(n=ee.exceedFormatter(t,{max:ee.max}))&&Z([U().selectionStart||0,U().selectionEnd||0]),A(n),hg(e.currentTarget,e,c,n)},ae=p;ee.show&&(J=ee.showFormatter?ee.showFormatter({value:T,count:re,maxLength:te}):"".concat(re).concat(ne?" / ".concat(te):""),ae=t.createElement(t.Fragment,null,ae,t.createElement("span",{className:jo()("".concat(v,"-data-count"),null==k?void 0:k.count),style:null==E?void 0:E.count},J)));var le=!N&&!m&&!s;return t.createElement(gg,{ref:W,value:T,allowClear:s,handleReset:function(e){A(""),G(),hg(U(),e,c)},suffix:ae,prefixCls:v,classNames:C(C({},k),{},{affixWrapper:jo()(null==k?void 0:k.affixWrapper,x(x({},"".concat(v,"-show-count"),m),"".concat(v,"-textarea-allow-clear"),s))}),disabled:w,focused:D,className:jo()(b,oe&&"".concat(v,"-out-of-range")),style:C(C({},y),F&&!le?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof J?J:void 0}},hidden:S,readOnly:$,onClear:_},t.createElement(cb,ht({},I,{autoSize:N,maxLength:u,onKeyDown:function(e){"Enter"===e.key&&j&&j(e),null==P||P(e)},onChange:function(e){ie(e,e.target.value)},onFocus:function(e){L(!0),null==a||a(e)},onBlur:function(e){L(!1),null==l||l(e)},onCompositionStart:function(e){z.current=!0,null==f||f(e)},onCompositionEnd:function(e){z.current=!1,ie(e,e.currentTarget.value),null==d||d(e)},className:jo()(null==k?void 0:k.textarea),style:C(C({},null==E?void 0:E.textarea),{},{resize:null==y?void 0:y.resize}),disabled:w,prefixCls:v,onResize:function(e){var t;null==O||O(e),null!==(t=U())&&void 0!==t&&t.style.height&&H(!0)},ref:V,readOnly:$})))})),fb=ub,db=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const pb=(0,t.forwardRef)(((e,n)=>{var r,o;const{prefixCls:i,bordered:a=!0,size:l,disabled:c,status:s,allowClear:u,classNames:f,rootClassName:d,className:p,style:h,styles:v,variant:m}=e,g=db(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);const{getPrefixCls:b,direction:y,textArea:w}=t.useContext(F),x=Qc(l),S=t.useContext(yo),C=null!=c?c:S,{status:k,hasFeedback:E,feedbackIcon:O}=t.useContext(dp),_=Eg(k,s),j=t.useRef(null);t.useImperativeHandle(n,(()=>{var e;return{resizableTextArea:null===(e=j.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=j.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=j.current)||void 0===e?void 0:e.blur()}}}));const $=b("input",i),N=Ol($),[P,I,M]=fg($,N),[R,A]=Og("textArea",m,a),T=Cg(null!=u?u:null==w?void 0:w.allowClear);return P(t.createElement(fb,Object.assign({autoComplete:null==w?void 0:w.autoComplete},g,{style:Object.assign(Object.assign({},null==w?void 0:w.style),h),styles:Object.assign(Object.assign({},null==w?void 0:w.styles),v),disabled:C,allowClear:T,className:jo()(M,N,p,d,null==w?void 0:w.className),classNames:Object.assign(Object.assign(Object.assign({},f),null==w?void 0:w.classNames),{textarea:jo()({[`${$}-sm`]:"small"===x,[`${$}-lg`]:"large"===x},I,null==f?void 0:f.textarea,null===(r=null==w?void 0:w.classNames)||void 0===r?void 0:r.textarea),variant:jo()({[`${$}-${R}`]:A},kg($,_)),affixWrapper:jo()(`${$}-textarea-affix-wrapper`,{[`${$}-affix-wrapper-rtl`]:"rtl"===y,[`${$}-affix-wrapper-sm`]:"small"===x,[`${$}-affix-wrapper-lg`]:"large"===x,[`${$}-textarea-show-count`]:e.showCount||(null===(o=e.count)||void 0===o?void 0:o.show)},I)}),prefixCls:$,suffix:E&&t.createElement("span",{className:`${$}-textarea-suffix`},O),ref:j})))}));var hb=pb;const vb=Ng;vb.Group=dg,vb.Search=nb,vb.TextArea=hb,vb.Password=Xg,vb.OTP=Lg;var mb=vb;function gb(e){return gb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gb(e)}function bb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bb(Object(n),!0).forEach((function(t){wb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wb(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=gb(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=gb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==gb(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Sb(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sb(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Cb=function(e){var n,o,i,a,c=e.field,s=c.help,u=c.value,f=c.placeholder,p=c.disabled,h=c.isPro,v=e.id,m=null===(n=e.field)||void 0===n?void 0:n.fieldType,g=null===(o=e.field)||void 0===o?void 0:o.parentId,b=null===(i=e.field)||void 0===i?void 0:i.index,y=null===(a=e.field)||void 0===a?void 0:a.repeaterData,w=xb(l(),2),x=(w[0],w[1]);(0,t.useEffect)((function(){C(u)}),[]);var S={};p?S.disabled=p||!1:h&&(S.disabled=h);var C=function(e){x({type:d,id:v,value:e,fieldType:m,parentId:g,repeaterData:y,index:b})};return(0,r.jsxs)("div",{className:"rtsb-field text",children:[(0,r.jsx)(Nm,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(mb,yb(yb({},S),{},{className:"rtsb-form-field",placeholder:f,value:u,onChange:function(e){return C(e.target.value)}}))}),s&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:s}})]})]})};function kb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Eb(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Eb(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Eb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ob=mb.TextArea,_b=function(e){var t,n,o,i,a=e.field,c=a.help,s=a.value,u=a.placeholder,f=e.id,p=null===(t=e.field)||void 0===t?void 0:t.fieldType,h=null===(n=e.field)||void 0===n?void 0:n.parentId,v=null===(o=e.field)||void 0===o?void 0:o.index,m=null===(i=e.field)||void 0===i?void 0:i.repeaterData,g=kb(l(),2),b=(g[0],g[1]);return(0,r.jsxs)("div",{className:"rtsb-field textarea",children:[(0,r.jsx)(Nm,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(Ob,{rows:4,className:"rtsb-form-field",placeholder:u,value:s,onChange:function(e){b({type:d,id:f,value:e.target.value,fieldType:p,parentId:h,repeaterData:m,index:v})}})}),c&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:c}})]})]})},jb=function(e){var n=e.className,r=e.customizeIcon,o=e.customizeIconProps,i=e.children,a=e.onMouseDown,l=e.onClick,c="function"==typeof r?r(o):r;return t.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),null==a||a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},void 0!==c?c:t.createElement("span",{className:jo()(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},i))},$b=t.createContext(null);function Nb(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=t.useRef(null),r=t.useRef(null);return t.useEffect((function(){return function(){window.clearTimeout(r.current)}}),[]),[function(){return n.current},function(t){(t||null===n.current)&&(n.current=t),window.clearTimeout(r.current),r.current=window.setTimeout((function(){n.current=null}),e)}]}var Pb=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Ib=void 0;function Mb(e,n){var r=e.prefixCls,o=e.invalidate,i=e.item,a=e.renderItem,l=e.responsive,c=e.responsiveDisabled,s=e.registerSize,u=e.itemKey,f=e.className,d=e.style,p=e.children,h=e.display,v=e.order,m=e.component,g=void 0===m?"div":m,b=qo(e,Pb),y=l&&!h;function w(e){s(u,e)}t.useEffect((function(){return function(){w(null)}}),[]);var x,S=a&&i!==Ib?a(i):p;o||(x={opacity:y?0:1,height:y?0:Ib,overflowY:y?"hidden":Ib,order:l?v:Ib,pointerEvents:y?"none":Ib,position:y?"absolute":Ib});var k={};y&&(k["aria-hidden"]=!0);var E=t.createElement(g,ht({className:jo()(!o&&r,f),style:C(C({},x),d)},k,b,{ref:n}),S);return l&&(E=t.createElement(Ju,{onResize:function(e){w(e.offsetWidth)},disabled:c},E)),E}var Rb=t.forwardRef(Mb);Rb.displayName="Item";var Ab=Rb;function Tb(){var e=t.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)Ni(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,E.unstable_batchedUpdates)((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function qb(e,n){var r=Y(t.useState(n),2),o=r[0],i=r[1];return[o,Xo((function(t){e((function(){i(t)}))}))]}var Db=t.createContext(null),Lb=["component"],zb=["className"],Bb=["className"],Fb=function(e,n){var r=t.useContext(Db);if(!r){var o=e.component,i=void 0===o?"div":o,a=qo(e,Lb);return t.createElement(i,ht({},a,{ref:n}))}var l=r.className,c=qo(r,zb),s=e.className,u=qo(e,Bb);return t.createElement(Db.Provider,{value:null},t.createElement(Ab,ht({ref:n,className:jo()(l,s)},c,u)))},Hb=t.forwardRef(Fb);Hb.displayName="RawItem";var Wb=Hb,Vb=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Ub="responsive",Gb="invalidate";function Yb(e){return"+ ".concat(e.length," ...")}function Kb(e,n){var r=e.prefixCls,o=void 0===r?"rc-overflow":r,i=e.data,a=void 0===i?[]:i,l=e.renderItem,c=e.renderRawItem,s=e.itemKey,u=e.itemWidth,f=void 0===u?10:u,d=e.ssr,p=e.style,h=e.className,v=e.maxCount,m=e.renderRest,g=e.renderRawRest,b=e.suffix,y=e.component,w=void 0===y?"div":y,x=e.itemComponent,S=e.onVisibleChange,k=qo(e,Vb),E="full"===d,O=Tb(),_=Y(qb(O,null),2),j=_[0],$=_[1],N=j||0,P=Y(qb(O,new Map),2),I=P[0],M=P[1],R=Y(qb(O,0),2),A=R[0],T=R[1],q=Y(qb(O,0),2),D=q[0],L=q[1],z=Y(qb(O,0),2),B=z[0],F=z[1],H=Y((0,t.useState)(null),2),W=H[0],V=H[1],U=Y((0,t.useState)(null),2),G=U[0],K=U[1],X=t.useMemo((function(){return null===G&&E?Number.MAX_SAFE_INTEGER:G||0}),[G,j]),Q=Y((0,t.useState)(!1),2),Z=Q[0],J=Q[1],ee="".concat(o,"-item"),te=Math.max(A,D),ne=v===Ub,re=a.length&&ne,oe=v===Gb,ie=re||"number"==typeof v&&a.length>v,ae=(0,t.useMemo)((function(){var e=a;return re?e=null===j&&E?a:a.slice(0,Math.min(a.length,N/f)):"number"==typeof v&&(e=a.slice(0,v)),e}),[a,f,j,v,re]),le=(0,t.useMemo)((function(){return re?a.slice(X+1):a.slice(ae.length)}),[a,ae,re,X]),ce=(0,t.useCallback)((function(e,t){var n;return"function"==typeof s?s(e):null!==(n=s&&(null==e?void 0:e[s]))&&void 0!==n?n:t}),[s]),se=(0,t.useCallback)(l||function(e){return e},[l]);function ue(e,t,n){(G!==e||void 0!==t&&t!==W)&&(K(e),n||(J(e<a.length-1),null==S||S(e)),void 0!==t&&V(t))}function fe(e,t){M((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function de(e){return I.get(ce(ae[e],e))}et((function(){if(N&&"number"==typeof te&&ae){var e=B,t=ae.length,n=t-1;if(!t)return void ue(0,null);for(var r=0;r<t;r+=1){var o=de(r);if(E&&(o=o||0),void 0===o){ue(r-1,void 0,!0);break}if(e+=o,0===n&&e<=N||r===n-1&&e+de(n)<=N){ue(n,null);break}if(e+te>N){ue(r-1,e-o-B+D);break}}b&&de(0)+B>N&&V(null)}}),[N,I,D,B,ce,ae]);var pe=Z&&!!le.length,he={};null!==W&&re&&(he={position:"absolute",left:W,top:0});var ve,me={prefixCls:ee,responsive:re,component:x,invalidate:oe},ge=c?function(e,n){var r=ce(e,n);return t.createElement(Db.Provider,{key:r,value:C(C({},me),{},{order:n,item:e,itemKey:r,registerSize:fe,display:n<=X})},c(e,n))}:function(e,n){var r=ce(e,n);return t.createElement(Ab,ht({},me,{order:n,key:r,item:e,renderItem:se,itemKey:r,registerSize:fe,display:n<=X}))},be={order:pe?X:Number.MAX_SAFE_INTEGER,className:"".concat(ee,"-rest"),registerSize:function(e,t){L(t),T(D)},display:pe};if(g)g&&(ve=t.createElement(Db.Provider,{value:C(C({},me),be)},g(le)));else{var ye=m||Yb;ve=t.createElement(Ab,ht({},me,be),"function"==typeof ye?ye(le):ye)}var we=t.createElement(w,ht({className:jo()(!oe&&o,h),style:p,ref:n},k),ae.map(ge),ie?ve:null,b&&t.createElement(Ab,ht({},me,{responsive:ne,responsiveDisabled:!re,order:X,className:"".concat(ee,"-suffix"),registerSize:function(e,t){F(t)},display:!0,style:he}),b));return ne&&(we=t.createElement(Ju,{onResize:function(e,t){$(t.clientWidth)},disabled:!re},we)),we}var Xb=t.forwardRef(Kb);Xb.displayName="Overflow",Xb.Item=Wb,Xb.RESPONSIVE=Ub,Xb.INVALIDATE=Gb;var Qb=Xb,Zb=function(e,n){var r,o=e.prefixCls,i=e.id,a=e.inputElement,l=e.disabled,c=e.tabIndex,s=e.autoFocus,u=e.autoComplete,f=e.editable,d=e.activeDescendantId,p=e.value,h=e.maxLength,v=e.onKeyDown,m=e.onMouseDown,g=e.onChange,b=e.onPaste,y=e.onCompositionStart,w=e.onCompositionEnd,x=e.open,S=e.attrs,k=a||t.createElement("input",null),E=k,O=E.ref,_=E.props,j=_.onKeyDown,$=_.onChange,N=_.onMouseDown,P=_.onCompositionStart,I=_.onCompositionEnd,M=_.style;return k.props,k=t.cloneElement(k,C(C(C({type:"search"},_),{},{id:i,ref:Mo(n,O),disabled:l,tabIndex:c,autoComplete:u||"off",autoFocus:s,className:jo()("".concat(o,"-selection-search-input"),null===(r=k)||void 0===r||null===(r=r.props)||void 0===r?void 0:r.className),role:"combobox","aria-expanded":x||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":x?d:void 0},S),{},{value:f?p:"",maxLength:h,readOnly:!f,unselectable:f?null:"on",style:C(C({},M),{},{opacity:f?null:0}),onKeyDown:function(e){v(e),j&&j(e)},onMouseDown:function(e){m(e),N&&N(e)},onChange:function(e){g(e),$&&$(e)},onCompositionStart:function(e){y(e),P&&P(e)},onCompositionEnd:function(e){w(e),I&&I(e)},onPaste:b}))};var Jb=t.forwardRef(Zb);function ey(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var ty="undefined"!=typeof window&&window.document&&window.document.documentElement;function ny(e){return["string","number"].includes(m(e))}function ry(e){var t=void 0;return e&&(ny(e.title)?t=e.title.toString():ny(e.label)&&(t=e.label.toString())),t}function oy(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var iy=function(e){e.preventDefault(),e.stopPropagation()},ay=function(e){var n,r,o=e.id,i=e.prefixCls,a=e.values,l=e.open,c=e.searchValue,s=e.autoClearSearchValue,u=e.inputRef,f=e.placeholder,d=e.disabled,p=e.mode,h=e.showSearch,v=e.autoFocus,m=e.autoComplete,g=e.activeDescendantId,b=e.tabIndex,y=e.removeIcon,w=e.maxTagCount,S=e.maxTagTextLength,C=e.maxTagPlaceholder,k=void 0===C?function(e){return"+ ".concat(e.length," ...")}:C,E=e.tagRender,O=e.onToggleOpen,_=e.onRemove,j=e.onInputChange,$=e.onInputPaste,N=e.onInputKeyDown,P=e.onInputMouseDown,I=e.onInputCompositionStart,M=e.onInputCompositionEnd,R=t.useRef(null),A=Y((0,t.useState)(0),2),T=A[0],q=A[1],D=Y((0,t.useState)(!1),2),L=D[0],z=D[1],B="".concat(i,"-selection"),F=l||"multiple"===p&&!1===s||"tags"===p?c:"",H="tags"===p||"multiple"===p&&!1===s||h&&(l||L);n=function(){q(R.current.scrollWidth)},r=[F],ty?t.useLayoutEffect(n,r):t.useEffect(n,r);var W=function(e,n,r,o,i){return t.createElement("span",{title:ry(e),className:jo()("".concat(B,"-item"),x({},"".concat(B,"-item-disabled"),r))},t.createElement("span",{className:"".concat(B,"-item-content")},n),o&&t.createElement(jb,{className:"".concat(B,"-item-remove"),onMouseDown:iy,onClick:i,customizeIcon:y},"×"))},V=function(e,n,r,o,i,a){return t.createElement("span",{onMouseDown:function(e){iy(e),O(!l)}},E({label:n,value:e,disabled:r,closable:o,onClose:i,isMaxTag:!!a}))},U=t.createElement("div",{className:"".concat(B,"-search"),style:{width:T},onFocus:function(){z(!0)},onBlur:function(){z(!1)}},t.createElement(Jb,{ref:u,open:l,prefixCls:i,id:o,inputElement:null,disabled:d,autoFocus:v,autoComplete:m,editable:H,activeDescendantId:g,value:F,onKeyDown:N,onMouseDown:P,onChange:j,onPaste:$,onCompositionStart:I,onCompositionEnd:M,tabIndex:b,attrs:dl(e,!0)}),t.createElement("span",{ref:R,className:"".concat(B,"-search-mirror"),"aria-hidden":!0},F," ")),G=t.createElement(Qb,{prefixCls:"".concat(B,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!d&&!t,i=n;if("number"==typeof S&&("string"==typeof n||"number"==typeof n)){var a=String(i);a.length>S&&(i="".concat(a.slice(0,S),"..."))}var l=function(t){t&&t.stopPropagation(),_(e)};return"function"==typeof E?V(r,i,t,o,l):W(e,i,t,o,l)},renderRest:function(e){var t="function"==typeof k?k(e):k;return"function"==typeof E?V(void 0,t,!1,!1,void 0,!0):W({title:t},t,!1)},suffix:U,itemKey:oy,maxCount:w});return t.createElement(t.Fragment,null,G,!a.length&&!F&&t.createElement("span",{className:"".concat(B,"-placeholder")},f))},ly=function(e){var n=e.inputElement,r=e.prefixCls,o=e.id,i=e.inputRef,a=e.disabled,l=e.autoFocus,c=e.autoComplete,s=e.activeDescendantId,u=e.mode,f=e.open,d=e.values,p=e.placeholder,h=e.tabIndex,v=e.showSearch,m=e.searchValue,g=e.activeValue,b=e.maxLength,y=e.onInputKeyDown,w=e.onInputMouseDown,x=e.onInputChange,S=e.onInputPaste,C=e.onInputCompositionStart,k=e.onInputCompositionEnd,E=e.title,O=Y(t.useState(!1),2),_=O[0],j=O[1],$="combobox"===u,N=$||v,P=d[0],I=m||"";$&&g&&!_&&(I=g),t.useEffect((function(){$&&j(!1)}),[$,g]);var M=!("combobox"!==u&&!f&&!v)&&!!I,R=void 0===E?ry(P):E,A=t.useMemo((function(){return P?null:t.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:M?{visibility:"hidden"}:void 0},p)}),[P,M,p,r]);return t.createElement(t.Fragment,null,t.createElement("span",{className:"".concat(r,"-selection-search")},t.createElement(Jb,{ref:i,prefixCls:r,id:o,open:f,inputElement:n,disabled:a,autoFocus:l,autoComplete:c,editable:N,activeDescendantId:s,value:I,onKeyDown:y,onMouseDown:w,onChange:function(e){j(!0),x(e)},onPaste:S,onCompositionStart:C,onCompositionEnd:k,tabIndex:h,attrs:dl(e,!0),maxLength:$?b:void 0})),!$&&P?t.createElement("span",{className:"".concat(r,"-selection-item"),title:R,style:M?{visibility:"hidden"}:void 0},P.label):null,A)},cy=function(e,n){var r=(0,t.useRef)(null),o=(0,t.useRef)(!1),i=e.prefixCls,a=e.open,l=e.mode,c=e.showSearch,s=e.tokenWithEnter,u=e.disabled,f=e.autoClearSearchValue,d=e.onSearch,p=e.onSearchSubmit,h=e.onToggleOpen,v=e.onInputKeyDown,m=e.domRef;t.useImperativeHandle(n,(function(){return{focus:function(e){r.current.focus(e)},blur:function(){r.current.blur()}}}));var g=Y(Nb(0),2),b=g[0],y=g[1],w=(0,t.useRef)(null),x=function(e){!1!==d(e,!0,o.current)&&h(!0)},S={inputRef:r,onInputKeyDown:function(e){var t,n=e.which;n!==ll.UP&&n!==ll.DOWN||e.preventDefault(),v&&v(e),n!==ll.ENTER||"tags"!==l||o.current||a||null==p||p(e.target.value),t=n,[ll.ESC,ll.SHIFT,ll.BACKSPACE,ll.TAB,ll.WIN_KEY,ll.ALT,ll.META,ll.WIN_KEY_RIGHT,ll.CTRL,ll.SEMICOLON,ll.EQUALS,ll.CAPS_LOCK,ll.CONTEXT_MENU,ll.F1,ll.F2,ll.F3,ll.F4,ll.F5,ll.F6,ll.F7,ll.F8,ll.F9,ll.F10,ll.F11,ll.F12].includes(t)||h(!0)},onInputMouseDown:function(){y(!0)},onInputChange:function(e){var t=e.target.value;if(s&&w.current&&/[\r\n]/.test(w.current)){var n=w.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,w.current)}w.current=null,x(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");w.current=n||""},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==l&&x(e.target.value)}},C="multiple"===l||"tags"===l?t.createElement(ay,ht({},e,S)):t.createElement(ly,ht({},e,S));return t.createElement("div",{ref:m,className:"".concat(i,"-selector"),onClick:function(e){e.target!==r.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){r.current.focus()})):r.current.focus())},onMouseDown:function(e){var t=b();e.target===r.current||t||"combobox"===l&&u||e.preventDefault(),("combobox"===l||c&&t)&&a||(a&&!1!==f&&d("",!0,!1),h())}},C)};var sy=t.forwardRef(cy),uy=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],fy=function(e,n){var r=e.prefixCls,o=(e.disabled,e.visible),i=e.children,a=e.popupElement,l=e.animation,c=e.transitionName,s=e.dropdownStyle,u=e.dropdownClassName,f=e.direction,d=void 0===f?"ltr":f,p=e.placement,h=e.builtinPlacements,v=e.dropdownMatchSelectWidth,m=e.dropdownRender,g=e.dropdownAlign,b=e.getPopupContainer,y=e.empty,w=e.getTriggerDOMNode,S=e.onPopupVisibleChange,k=e.onPopupMouseEnter,E=qo(e,uy),O="".concat(r,"-dropdown"),_=a;m&&(_=m(a));var j=t.useMemo((function(){return h||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(v)}),[h,v]),$=l?"".concat(O,"-").concat(l):c,N="number"==typeof v,P=t.useMemo((function(){return N?null:!1===v?"minWidth":"width"}),[v,N]),I=s;N&&(I=C(C({},I),{},{width:v}));var M=t.useRef(null);return t.useImperativeHandle(n,(function(){return{getPopupElement:function(){var e;return null===(e=M.current)||void 0===e?void 0:e.popupElement}}})),t.createElement(jf,ht({},E,{showAction:S?["click"]:[],hideAction:S?["click"]:[],popupPlacement:p||("rtl"===d?"bottomRight":"bottomLeft"),builtinPlacements:j,prefixCls:O,popupTransitionName:$,popup:t.createElement("div",{onMouseEnter:k},_),ref:M,stretch:P,popupAlign:g,popupVisible:o,getPopupContainer:b,popupClassName:jo()(u,x({},"".concat(O,"-empty"),y)),popupStyle:I,getTriggerDOMNode:w,onPopupVisibleChange:S}),i)};var dy=t.forwardRef(fy);function py(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function hy(e){return void 0!==e&&!Number.isNaN(e)}function vy(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function my(e){var t=C({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return ye(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var gy=t.createContext(null);function by(e){var n=e.visible,r=e.values;if(!n)return null;return t.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(r.slice(0,50).map((function(e){var t=e.label,n=e.value;return["number","string"].includes(m(t))?t:n})).join(", ")),r.length>50?", ...":null)}var yy=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],wy=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],xy=function(e){return"tags"===e||"multiple"===e},Sy=t.forwardRef((function(e,n){var r,o=e.id,i=e.prefixCls,a=e.className,l=e.showSearch,c=e.tagRender,s=e.direction,u=e.omitDomProps,f=e.displayValues,d=e.onDisplayValuesChange,p=e.emptyOptions,h=e.notFoundContent,v=void 0===h?"Not Found":h,g=e.onClear,b=e.mode,y=e.disabled,w=e.loading,S=e.getInputElement,k=e.getRawInputElement,E=e.open,O=e.defaultOpen,_=e.onDropdownVisibleChange,j=e.activeValue,$=e.onActiveValueChange,N=e.activeDescendantId,P=e.searchValue,I=e.autoClearSearchValue,M=e.onSearch,R=e.onSearchSplit,A=e.tokenSeparators,T=e.allowClear,q=e.suffixIcon,D=e.clearIcon,L=e.OptionList,z=e.animation,B=e.transitionName,F=e.dropdownStyle,H=e.dropdownClassName,W=e.dropdownMatchSelectWidth,V=e.dropdownRender,U=e.dropdownAlign,G=e.placement,K=e.builtinPlacements,Q=e.getPopupContainer,Z=e.showAction,J=void 0===Z?[]:Z,ee=e.onFocus,te=e.onBlur,ne=e.onKeyUp,re=e.onKeyDown,oe=e.onMouseDown,ie=qo(e,yy),ae=xy(b),le=(void 0!==l?l:ae)||"combobox"===b,ce=C({},ie);wy.forEach((function(e){delete ce[e]})),null==u||u.forEach((function(e){delete ce[e]}));var se=Y(t.useState(!1),2),ue=se[0],fe=se[1];t.useEffect((function(){fe(rf())}),[]);var de=t.useRef(null),pe=t.useRef(null),he=t.useRef(null),ve=t.useRef(null),me=t.useRef(null),ge=t.useRef(!1),be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,n=Y(t.useState(!1),2),r=n[0],o=n[1],i=t.useRef(null),a=function(){window.clearTimeout(i.current)};return t.useEffect((function(){return a}),[]),[r,function(t,n){a(),i.current=window.setTimeout((function(){o(t),n&&n()}),e)},a]}(),ye=Y(be,3),we=ye[0],xe=ye[1],Se=ye[2];t.useImperativeHandle(n,(function(){var e,t;return{focus:null===(e=ve.current)||void 0===e?void 0:e.focus,blur:null===(t=ve.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=me.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:de.current||pe.current}}));var Ce=t.useMemo((function(){var e;if("combobox"!==b)return P;var t=null===(e=f[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[P,b,f]),ke="combobox"===b&&"function"==typeof S&&S()||null,Ee="function"==typeof k&&k(),Oe=Ro(pe,null==Ee||null===(r=Ee.props)||void 0===r?void 0:r.ref),_e=Y(t.useState(!1),2),je=_e[0],$e=_e[1];et((function(){$e(!0)}),[]);var Ne=Y(Jo(!1,{defaultValue:O,value:E}),2),Pe=Ne[0],Ie=Ne[1],Me=!!je&&Pe,Re=!v&&p;(y||Re&&Me&&"combobox"===b)&&(Me=!1);var Ae=!Re&&Me,Te=t.useCallback((function(e){var t=void 0!==e?e:!Me;y||(Ie(t),Me!==t&&(null==_||_(t)))}),[y,Me,Ie,_]),qe=t.useMemo((function(){return(A||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[A]),De=t.useContext(gy)||{},Le=De.maxCount,ze=De.rawValues,Be=function(e,t,n){if(!(ae&&hy(Le)&&(null==ze?void 0:ze.size)>=Le)){var r=!0,o=e;null==$||$(null);var i=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function e(t,n){var o=kn(n),i=o[0],a=o.slice(1);if(!i)return[t];var l=t.split(i);return r=r||l.length>1,l.reduce((function(t,n){return[].concat(X(t),X(e(n,a)))}),[]).filter(Boolean)}(e,t);return r?void 0!==n?o.slice(0,n):o:null}(e,A,hy(Le)?Le-ze.size:void 0),a=n?null:i;return"combobox"!==b&&a&&(o="",null==R||R(a),Te(!1),r=!1),M&&Ce!==o&&M(o,{source:t?"typing":"effect"}),r}};t.useEffect((function(){Me||ae||"combobox"===b||Be("",!1,!1)}),[Me]),t.useEffect((function(){Pe&&y&&Ie(!1),y&&!ge.current&&xe(!1)}),[y]);var Fe=Y(Nb(),2),He=Fe[0],We=Fe[1],Ve=t.useRef(!1),Ue=t.useRef(!1),Ge=[];t.useEffect((function(){return function(){Ge.forEach((function(e){return clearTimeout(e)})),Ge.splice(0,Ge.length)}}),[]);var Ye,Ke=Y(t.useState({}),2)[1];Ee&&(Ye=function(e){Te(e)}),function(e,n,r,o){var i=t.useRef(null);i.current={open:n,triggerOpen:r,customizedTrigger:o},t.useEffect((function(){function t(t){var n;if(null===(n=i.current)||void 0===n||!n.customizedTrigger){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),i.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[de.current,null===(e=he.current)||void 0===e?void 0:e.getPopupElement()]}),Ae,Te,!!Ee);var Xe,Qe=t.useMemo((function(){return C(C({},e),{},{notFoundContent:v,open:Me,triggerOpen:Ae,id:o,showSearch:le,multiple:ae,toggleOpen:Te})}),[e,v,Ae,Me,o,le,ae,Te]),Ze=!!q||w;Ze&&(Xe=t.createElement(jb,{className:jo()("".concat(i,"-arrow"),x({},"".concat(i,"-arrow-loading"),w)),customizeIcon:q,customizeIconProps:{loading:w,searchValue:Ce,open:Me,focused:we,showSearch:le}}));var Je,tt=function(e,n,r,o,i){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,s=t.useMemo((function(){return"object"===m(o)?o.clearIcon:i||void 0}),[o,i]);return{allowClear:t.useMemo((function(){return!(a||!o||!r.length&&!l||"combobox"===c&&""===l)}),[o,a,r.length,l,c]),clearIcon:t.createElement(jb,{className:"".concat(e,"-clear"),onMouseDown:n,customizeIcon:s},"×")}}(i,(function(){var e;null==g||g(),null===(e=ve.current)||void 0===e||e.focus(),d([],{type:"clear",values:f}),Be("",!1,!1)}),f,T,D,y,Ce,b),nt=tt.allowClear,rt=tt.clearIcon,ot=t.createElement(L,{ref:me}),it=jo()(i,a,x(x(x(x(x(x(x(x(x(x({},"".concat(i,"-focused"),we),"".concat(i,"-multiple"),ae),"".concat(i,"-single"),!ae),"".concat(i,"-allow-clear"),T),"".concat(i,"-show-arrow"),Ze),"".concat(i,"-disabled"),y),"".concat(i,"-loading"),w),"".concat(i,"-open"),Me),"".concat(i,"-customize-input"),ke),"".concat(i,"-show-search"),le)),at=t.createElement(dy,{ref:he,disabled:y,prefixCls:i,visible:Ae,popupElement:ot,animation:z,transitionName:B,dropdownStyle:F,dropdownClassName:H,direction:s,dropdownMatchSelectWidth:W,dropdownRender:V,dropdownAlign:U,placement:G,builtinPlacements:K,getPopupContainer:Q,empty:p,getTriggerDOMNode:function(e){return pe.current||e},onPopupVisibleChange:Ye,onPopupMouseEnter:function(){Ke({})}},Ee?t.cloneElement(Ee,{ref:Oe}):t.createElement(sy,ht({},e,{domRef:pe,prefixCls:i,inputElement:ke,ref:ve,id:o,showSearch:le,autoClearSearchValue:I,mode:b,activeDescendantId:N,tagRender:c,values:f,open:Me,onToggleOpen:Te,activeValue:j,searchValue:Ce,onSearch:Be,onSearchSubmit:function(e){e&&e.trim()&&M(e,{source:"submit"})},onRemove:function(e){var t=f.filter((function(t){return t!==e}));d(t,{type:"remove",values:[e]})},tokenWithEnter:qe})));return Je=Ee?at:t.createElement("div",ht({className:it},ce,{ref:de,onMouseDown:function(e){var t,n=e.target,r=null===(t=he.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=Ge.indexOf(o);-1!==t&&Ge.splice(t,1),Se(),ue||r.contains(document.activeElement)||null===(e=ve.current)||void 0===e||e.focus()}));Ge.push(o)}for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l<i;l++)a[l-1]=arguments[l];null==oe||oe.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=He(),r=e.key,o="Enter"===r;if(o&&("combobox"!==b&&e.preventDefault(),Me||Te(!0)),We(!!Ce),"Backspace"===r&&!n&&ae&&!Ce&&f.length){for(var i=X(f),a=null,l=i.length-1;l>=0;l-=1){var c=i[l];if(!c.disabled){i.splice(l,1),a=c;break}}a&&d(i,{type:"remove",values:[a]})}for(var s=arguments.length,u=new Array(s>1?s-1:0),p=1;p<s;p++)u[p-1]=arguments[p];!Me||o&&Ve.current||null===(t=me.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(u)),o&&(Ve.current=!0),null==re||re.apply(void 0,[e].concat(u))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o;Me&&(null===(o=me.current)||void 0===o||o.onKeyUp.apply(o,[e].concat(n))),"Enter"===e.key&&(Ve.current=!1),null==ne||ne.apply(void 0,[e].concat(n))},onFocus:function(){xe(!0),y||(ee&&!Ue.current&&ee.apply(void 0,arguments),J.includes("focus")&&Te(!0)),Ue.current=!0},onBlur:function(){ge.current=!0,xe(!1,(function(){Ue.current=!1,ge.current=!1,Te(!1)})),y||(Ce&&("tags"===b?M(Ce,{source:"submit"}):"multiple"===b&&M("",{source:"blur"})),te&&te.apply(void 0,arguments))}}),t.createElement(by,{visible:we&&!Me,values:f}),at,Xe,nt&&rt),t.createElement($b.Provider,{value:Qe},Je)}));var Cy=Sy,ky=function(){return null};ky.isSelectOptGroup=!0;var Ey=ky,Oy=function(){return null};Oy.isSelectOption=!0;var _y=Oy,jy=t.forwardRef((function(e,n){var r=e.height,o=e.offsetY,i=e.offsetX,a=e.children,l=e.prefixCls,c=e.onInnerResize,s=e.innerProps,u=e.rtl,f=e.extra,d={},p={display:"flex",flexDirection:"column"};return void 0!==o&&(d={height:r,position:"relative",overflow:"hidden"},p=C(C({},p),{},x(x(x(x(x({transform:"translateY(".concat(o,"px)")},u?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),t.createElement("div",{style:d},t.createElement(Ju,{onResize:function(e){e.offsetHeight&&c&&c()}},t.createElement("div",ht({style:p,className:jo()(x({},"".concat(l,"-holder-inner"),l)),ref:n},s),a,f)))}));jy.displayName="Filler";var $y=jy;function Ny(e){var n=e.children,r=e.setRef,o=t.useCallback((function(e){r(e)}),[]);return t.cloneElement(n,{ref:o})}function Py(e,n,r){var o=Y(t.useState(e),2),i=o[0],a=o[1],l=Y(t.useState(null),2),c=l[0],s=l[1];return t.useEffect((function(){var t=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(r=e,o=t):(r=t,o=e);var l={__EMPTY_ITEM__:!0};function c(e){return void 0!==e?n(e):l}for(var s=null,u=1!==Math.abs(i-a),f=0;f<o.length;f+=1){var d=c(r[f]);if(d!==c(o[f])){s=f,u=u||d!==c(o[f+1]);break}}return null===s?null:{index:s,multiple:u}}(i||[],e||[],n);void 0!==(null==t?void 0:t.index)&&(null==r||r(t.index),s(e[t.index])),a(e)}),[e]),[c]}var Iy="object"===("undefined"==typeof navigator?"undefined":m(navigator))&&/Firefox/i.test(navigator.userAgent),My=function(e,n,r,o){var i=(0,t.useRef)(!1),a=(0,t.useRef)(null);var l=(0,t.useRef)({top:e,bottom:n,left:r,right:o});return l.current.top=e,l.current.bottom=n,l.current.left=r,l.current.right=o,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e?t<0&&l.current.left||t>0&&l.current.right:t<0&&l.current.top||t>0&&l.current.bottom;return n&&r?(clearTimeout(a.current),i.current=!1):r&&!i.current||(clearTimeout(a.current),i.current=!0,a.current=setTimeout((function(){i.current=!1}),50)),!i.current&&r}};function Ry(e,n,r,o,i,a,l){var c=(0,t.useRef)(0),s=(0,t.useRef)(null),u=(0,t.useRef)(null),f=(0,t.useRef)(!1),d=My(n,r,o,i);var p=(0,t.useRef)(null),h=(0,t.useRef)(null);return[function(t){if(e){Ni.cancel(h.current),h.current=Ni((function(){p.current=null}),2);var n=t.deltaX,r=t.deltaY,o=t.shiftKey,i=n,v=r;("sx"===p.current||!p.current&&o&&r&&!n)&&(i=r,v=0,p.current="sx");var m=Math.abs(i),g=Math.abs(v);null===p.current&&(p.current=a&&m>g?"x":"y"),"y"===p.current?function(e,t){Ni.cancel(s.current),c.current+=t,u.current=t,d(!1,t)||(Iy||e.preventDefault(),s.current=Ni((function(){var e=f.current?10:1;l(c.current*e),c.current=0})))}(t,v):function(e,t){l(t,!0),Iy||e.preventDefault()}(t,i)}},function(t){e&&(f.current=t.detail===u.current)}]}var Ay=function(){function e(){xe(this,e),x(this,"maps",void 0),x(this,"id",0),this.maps=Object.create(null)}return Ce(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}(),Ty=Ay;var qy=14/15;var Dy=10;function Ly(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}var zy=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.rtl,i=e.scrollOffset,a=e.scrollRange,l=e.onStartMove,c=e.onStopMove,s=e.onScroll,u=e.horizontal,f=e.spinSize,d=e.containerSize,p=e.style,h=e.thumbStyle,v=Y(t.useState(!1),2),m=v[0],g=v[1],b=Y(t.useState(null),2),y=b[0],w=b[1],S=Y(t.useState(null),2),k=S[0],E=S[1],O=!o,_=t.useRef(),j=t.useRef(),$=Y(t.useState(!1),2),N=$[0],P=$[1],I=t.useRef(),M=function(){clearTimeout(I.current),P(!0),I.current=setTimeout((function(){P(!1)}),3e3)},R=a-d||0,A=d-f||0,T=t.useMemo((function(){return 0===i||0===R?0:i/R*A}),[i,R,A]),q=t.useRef({top:T,dragging:m,pageY:y,startTop:k});q.current={top:T,dragging:m,pageY:y,startTop:k};var D=function(e){g(!0),w(Ly(e,u)),E(q.current.top),l(),e.stopPropagation(),e.preventDefault()};t.useEffect((function(){var e=function(e){e.preventDefault()},t=_.current,n=j.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",D,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",D)}}),[]);var L=t.useRef();L.current=R;var z=t.useRef();z.current=A,t.useEffect((function(){if(m){var e,t=function(t){var n=q.current,r=n.dragging,o=n.pageY,i=n.startTop;Ni.cancel(e);var a=_.current.getBoundingClientRect(),l=d/(u?a.width:a.height);if(r){var c=(Ly(t,u)-o)*l,f=i;!O&&u?f-=c:f+=c;var p=L.current,h=z.current,v=h?f/h:0,m=Math.ceil(v*p);m=Math.max(m,0),m=Math.min(m,p),e=Ni((function(){s(m,u)}))}},n=function(){g(!1),c()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),Ni.cancel(e)}}}),[m]),t.useEffect((function(){return M(),function(){clearTimeout(I.current)}}),[i]),t.useImperativeHandle(n,(function(){return{delayHidden:M}}));var B="".concat(r,"-scrollbar"),F={position:"absolute",visibility:N?null:"hidden"},H={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(F.height=8,F.left=0,F.right=0,F.bottom=0,H.height="100%",H.width=f,O?H.left=T:H.right=T):(F.width=8,F.top=0,F.bottom=0,O?F.right=0:F.left=0,H.width="100%",H.height=f,H.top=T),t.createElement("div",{ref:_,className:jo()(B,x(x(x({},"".concat(B,"-horizontal"),u),"".concat(B,"-vertical"),!u),"".concat(B,"-visible"),N)),style:C(C({},F),p),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:M},t.createElement("div",{ref:j,className:jo()("".concat(B,"-thumb"),x({},"".concat(B,"-thumb-moving"),m)),style:C(C({},H),h),onMouseDown:D}))}));var By=zy,Fy=20;function Hy(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,Fy),Math.floor(t)}var Wy=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Vy=[],Uy={overflowY:"auto",overflowAnchor:"none"};function Gy(e,n){var r=e.prefixCls,o=void 0===r?"rc-virtual-list":r,i=e.className,a=e.height,l=e.itemHeight,c=e.fullHeight,s=void 0===c||c,u=e.style,f=e.data,d=e.children,p=e.itemKey,h=e.virtual,v=e.direction,g=e.scrollWidth,b=e.component,y=void 0===b?"div":b,w=e.onScroll,S=e.onVirtualScroll,k=e.onVisibleChange,O=e.innerProps,_=e.extraRender,j=e.styles,$=qo(e,Wy),N=t.useCallback((function(e){return"function"==typeof p?p(e):null==e?void 0:e[p]}),[p]),P=function(e,n,r){var o=Y(t.useState(0),2),i=o[0],a=o[1],l=(0,t.useRef)(new Map),c=(0,t.useRef)(new Ty),s=(0,t.useRef)();function u(){Ni.cancel(s.current)}function f(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];u();var t=function(){l.current.forEach((function(e,t){if(e&&e.offsetParent){var n=No(e),r=n.offsetHeight;c.current.get(t)!==r&&c.current.set(t,n.offsetHeight)}})),a((function(e){return e+1}))};e?t():s.current=Ni(t)}return(0,t.useEffect)((function(){return u}),[]),[function(t,o){var i=e(t),a=l.current.get(i);o?(l.current.set(i,o),f()):l.current.delete(i),!a!=!o&&(o?null==n||n(t):null==r||r(t))},f,c.current,i]}(N,null,null),I=Y(P,4),M=I[0],R=I[1],A=I[2],T=I[3],q=!(!1===h||!a||!l),D=t.useMemo((function(){return Object.values(A.maps).reduce((function(e,t){return e+t}),0)}),[A.id,A.maps]),L=q&&f&&(Math.max(l*f.length,D)>a||!!g),z="rtl"===v,B=jo()(o,x({},"".concat(o,"-rtl"),z),i),F=f||Vy,H=(0,t.useRef)(),W=(0,t.useRef)(),V=(0,t.useRef)(),U=Y((0,t.useState)(0),2),G=U[0],K=U[1],X=Y((0,t.useState)(0),2),Q=X[0],Z=X[1],J=Y((0,t.useState)(!1),2),ee=J[0],te=J[1],ne=function(){te(!0)},re=function(){te(!1)},oe={getKey:N};function ie(e){K((function(t){var n=function(e){var t=e;Number.isNaN(Se.current)||(t=Math.min(t,Se.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return H.current.scrollTop=n,n}))}var ae=(0,t.useRef)({start:0,end:F.length}),le=(0,t.useRef)(),ce=Y(Py(F,N),1)[0];le.current=ce;var se=t.useMemo((function(){if(!q)return{scrollHeight:void 0,start:0,end:F.length-1,offset:void 0};var e;if(!L)return{scrollHeight:(null===(e=W.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:F.length-1,offset:void 0};for(var t,n,r,o=0,i=F.length,c=0;c<i;c+=1){var s=F[c],u=N(s),f=A.get(u),d=o+(void 0===f?l:f);d>=G&&void 0===t&&(t=c,n=o),d>G+a&&void 0===r&&(r=c),o=d}return void 0===t&&(t=0,n=0,r=Math.ceil(a/l)),void 0===r&&(r=F.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,F.length-1),offset:n}}),[L,q,G,F,T,a]),ue=se.scrollHeight,fe=se.start,de=se.end,pe=se.offset;ae.current.start=fe,ae.current.end=de;var he=Y(t.useState({width:0,height:a}),2),ve=he[0],me=he[1],ge=(0,t.useRef)(),be=(0,t.useRef)(),ye=t.useMemo((function(){return Hy(ve.width,g)}),[ve.width,g]),we=t.useMemo((function(){return Hy(ve.height,ue)}),[ve.height,ue]),xe=ue-a,Se=(0,t.useRef)(xe);Se.current=xe;var Ce=G<=0,ke=G>=xe,Ee=Q<=0,Oe=Q>=g,_e=My(Ce,ke,Ee,Oe),je=function(){return{x:z?-Q:Q,y:G}},$e=(0,t.useRef)(je()),Ne=Xo((function(e){if(S){var t=C(C({},je()),e);$e.current.x===t.x&&$e.current.y===t.y||(S(t),$e.current=t)}}));function Pe(e,t){var n=e;t?((0,E.flushSync)((function(){Z(n)})),Ne()):ie(n)}var Ie=function(e){var t=e,n=g?g-ve.width:0;return t=Math.max(t,0),t=Math.min(t,n)},Me=Xo((function(e,t){t?((0,E.flushSync)((function(){Z((function(t){return Ie(t+(z?-e:e))}))})),Ne()):ie((function(t){return t+e}))})),Re=Y(Ry(q,Ce,ke,Ee,Oe,!!g,Me),2),Ae=Re[0],Te=Re[1];!function(e,n,r){var o,i=(0,t.useRef)(!1),a=(0,t.useRef)(0),l=(0,t.useRef)(0),c=(0,t.useRef)(null),s=(0,t.useRef)(null),u=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageX),n=Math.ceil(e.touches[0].pageY),o=a.current-t,c=l.current-n,u=Math.abs(o)>Math.abs(c);u?a.current=t:l.current=n,r(u,u?o:c)&&e.preventDefault(),clearInterval(s.current),s.current=setInterval((function(){u?o*=qy:c*=qy;var e=Math.floor(u?o:c);(!r(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(s.current)}),16)}},f=function(){i.current=!1,o()},d=function(e){o(),1!==e.touches.length||i.current||(i.current=!0,a.current=Math.ceil(e.touches[0].pageX),l.current=Math.ceil(e.touches[0].pageY),c.current=e.target,c.current.addEventListener("touchmove",u,{passive:!1}),c.current.addEventListener("touchend",f,{passive:!0}))};o=function(){c.current&&(c.current.removeEventListener("touchmove",u),c.current.removeEventListener("touchend",f))},et((function(){return e&&n.current.addEventListener("touchstart",d,{passive:!0}),function(){var e;null===(e=n.current)||void 0===e||e.removeEventListener("touchstart",d),o(),clearInterval(s.current)}}),[e])}(q,H,(function(e,t,n){return!_e(e,t,n)&&(Ae({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0)})),et((function(){function e(e){q&&e.preventDefault()}var t=H.current;return t.addEventListener("wheel",Ae,{passive:!1}),t.addEventListener("DOMMouseScroll",Te,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",Ae),t.removeEventListener("DOMMouseScroll",Te),t.removeEventListener("MozMousePixelScroll",e)}}),[q]),et((function(){if(g){var e=Ie(Q);Z(e),Ne({x:e})}}),[ve.width,g]);var qe=function(){var e,t;null===(e=ge.current)||void 0===e||e.delayHidden(),null===(t=be.current)||void 0===t||t.delayHidden()},De=function(e,n,r,o,i,a,l,c){var s=t.useRef(),u=Y(t.useState(null),2),f=u[0],d=u[1];return et((function(){if(f&&f.times<Dy){if(!e.current)return void d((function(e){return C({},e)}));a();var t=f.targetAlign,c=f.originAlign,s=f.index,u=f.offset,p=e.current.clientHeight,h=!1,v=t,m=null;if(p){for(var g=t||c,b=0,y=0,w=0,x=Math.min(n.length-1,s),S=0;S<=x;S+=1){var k=i(n[S]);y=b;var E=r.get(k);b=w=y+(void 0===E?o:E)}for(var O="top"===g?u:p-u,_=x;_>=0;_-=1){var j=i(n[_]),$=r.get(j);if(void 0===$){h=!0;break}if((O-=$)<=0)break}switch(g){case"top":m=y-u;break;case"bottom":m=w-p+u;break;default:var N=e.current.scrollTop;y<N?v="top":w>N+p&&(v="bottom")}null!==m&&l(m),m!==f.lastTop&&(h=!0)}h&&d(C(C({},f),{},{times:f.times+1,targetAlign:v,lastTop:m}))}}),[f,e.current]),function(e){if(null!=e){if(Ni.cancel(s.current),"number"==typeof e)l(e);else if(e&&"object"===m(e)){var t,r=e.align;t="index"in e?e.index:n.findIndex((function(t){return i(t)===e.key}));var o=e.offset;d({times:0,index:t,offset:void 0===o?0:o,originAlign:r})}}else c()}}(H,F,A,l,N,(function(){return R(!0)}),ie,qe);t.useImperativeHandle(n,(function(){return{nativeElement:V.current,getScrollInfo:je,scrollTo:function(e){var t;(t=e)&&"object"===m(t)&&("left"in t||"top"in t)?(void 0!==e.left&&Z(Ie(e.left)),De(e.top)):De(e)}}})),et((function(){if(k){var e=F.slice(fe,de+1);k(e,F)}}),[fe,de,F]);var Le=function(e,n,r,o){var i=Y(t.useMemo((function(){return[new Map,[]]}),[e,r.id,o]),2),a=i[0],l=i[1];return function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,c=a.get(t),s=a.get(i);if(void 0===c||void 0===s)for(var u=e.length,f=l.length;f<u;f+=1){var d,p=e[f],h=n(p);a.set(h,f);var v=null!==(d=r.get(h))&&void 0!==d?d:o;if(l[f]=(l[f-1]||0)+v,h===t&&(c=f),h===i&&(s=f),void 0!==c&&void 0!==s)break}return{top:l[c-1]||0,bottom:l[s]}}}(F,N,A,l),ze=null==_?void 0:_({start:fe,end:de,virtual:L,offsetX:Q,offsetY:pe,rtl:z,getSize:Le}),Be=function(e,n,r,o,i,a,l,c){var s=c.getKey;return e.slice(n,r+1).map((function(e,r){var c=l(e,n+r,{style:{width:o},offsetX:i}),u=s(e);return t.createElement(Ny,{key:u,setRef:function(t){return a(e,t)}},c)}))}(F,fe,de,g,Q,M,d,oe),Fe=null;a&&(Fe=C(x({},s?"height":"maxHeight",a),Uy),q&&(Fe.overflowY="hidden",g&&(Fe.overflowX="hidden"),ee&&(Fe.pointerEvents="none")));var He={};return z&&(He.dir="rtl"),t.createElement("div",ht({ref:V,style:C(C({},u),{},{position:"relative"}),className:B},He,$),t.createElement(Ju,{onResize:function(e){me({width:e.offsetWidth,height:e.offsetHeight})}},t.createElement(y,{className:"".concat(o,"-holder"),style:Fe,ref:H,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==G&&ie(t),null==w||w(e),Ne()},onMouseEnter:qe},t.createElement($y,{prefixCls:o,height:ue,offsetX:Q,offsetY:pe,scrollWidth:g,onInnerResize:R,ref:W,innerProps:O,rtl:z,extra:ze},Be))),L&&ue>a&&t.createElement(By,{ref:ge,prefixCls:o,scrollOffset:G,scrollRange:ue,rtl:z,onScroll:Pe,onStartMove:ne,onStopMove:re,spinSize:we,containerSize:ve.height,style:null==j?void 0:j.verticalScrollBar,thumbStyle:null==j?void 0:j.verticalScrollBarThumb}),L&&g>ve.width&&t.createElement(By,{ref:be,prefixCls:o,scrollOffset:Q,scrollRange:g,rtl:z,onScroll:Pe,onStartMove:ne,onStopMove:re,spinSize:ye,containerSize:ve.width,horizontal:!0,style:null==j?void 0:j.horizontalScrollBar,thumbStyle:null==j?void 0:j.horizontalScrollBarThumb}))}var Yy=t.forwardRef(Gy);Yy.displayName="List";var Ky=Yy;var Xy=["disabled","title","children","style","className"];function Qy(e){return"string"==typeof e||"number"==typeof e}var Zy=function(e,n){var r=t.useContext($b),o=r.prefixCls,i=r.id,a=r.open,l=r.multiple,c=r.mode,s=r.searchValue,u=r.toggleOpen,f=r.notFoundContent,d=r.onPopupScroll,p=t.useContext(gy),h=p.maxCount,v=p.flattenOptions,m=p.onActiveValue,g=p.defaultActiveFirstOption,b=p.onSelect,y=p.menuItemSelectedIcon,w=p.rawValues,S=p.fieldNames,C=p.virtual,k=p.direction,E=p.listHeight,O=p.listItemHeight,_=p.optionRender,j="".concat(o,"-item"),$=fe((function(){return v}),[a,v],(function(e,t){return t[0]&&e[1]!==t[1]})),N=t.useRef(null),P=t.useMemo((function(){return l&&hy(h)&&(null==w?void 0:w.size)>=h}),[l,h,null==w?void 0:w.size]),I=function(e){e.preventDefault()},M=function(e){var t;null===(t=N.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},R=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=$.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,i=$[o]||{},a=i.group,l=i.data;if(!(a||null!=l&&l.disabled||P))return o}return-1},A=Y(t.useState((function(){return R(0)})),2),T=A[0],q=A[1],D=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];q(e);var n={source:t?"keyboard":"mouse"},r=$[e];r?m(r.value,e,n):m(null,-1,n)};(0,t.useEffect)((function(){D(!1!==g?R(0):-1)}),[$.length,s]);var L=t.useCallback((function(e){return w.has(e)&&"combobox"!==c}),[c,X(w).toString(),w.size]);(0,t.useEffect)((function(){var e,t=setTimeout((function(){if(!l&&a&&1===w.size){var e=Array.from(w)[0],t=$.findIndex((function(t){return t.data.value===e}));-1!==t&&(D(t),M(t))}}));a&&(null===(e=N.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[a,s]);var z=function(e){void 0!==e&&b(e,{selected:!w.has(e)}),l||u(!1)};if(t.useImperativeHandle(n,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case ll.N:case ll.P:case ll.UP:case ll.DOWN:var r=0;if(t===ll.UP?r=-1:t===ll.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===ll.N?r=1:t===ll.P&&(r=-1)),0!==r){var o=R(T+r,r);M(o),D(o,!0)}break;case ll.ENTER:var i,l=$[T];!l||null!=l&&null!==(i=l.data)&&void 0!==i&&i.disabled||P?z(void 0):z(l.value),a&&e.preventDefault();break;case ll.ESC:u(!1),a&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){M(e)}}})),0===$.length)return t.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(j,"-empty"),onMouseDown:I},f);var B=Object.keys(S).map((function(e){return S[e]})),F=function(e){return e.label};function H(e,t){return{role:e.group?"presentation":"option",id:"".concat(i,"_list_").concat(t)}}var W=function(e){var n=$[e];if(!n)return null;var r=n.data||{},o=r.value,i=n.group,a=dl(r,!0),l=F(n);return n?t.createElement("div",ht({"aria-label":"string"!=typeof l||i?null:l},a,{key:e},H(n,e),{"aria-selected":L(o)}),o):null},V={role:"listbox",id:"".concat(i,"_list")};return t.createElement(t.Fragment,null,C&&t.createElement("div",ht({},V,{style:{height:0,width:0,overflow:"hidden"}}),W(T-1),W(T),W(T+1)),t.createElement(Ky,{itemKey:"key",ref:N,data:$,height:E,itemHeight:O,fullHeight:!1,onMouseDown:I,onScroll:d,virtual:C,direction:k,innerProps:C?null:V},(function(e,n){var r=e.group,o=e.groupOption,i=e.data,a=e.label,l=e.value,c=i.key;if(r){var s,u=null!==(s=i.title)&&void 0!==s?s:Qy(a)?a.toString():void 0;return t.createElement("div",{className:jo()(j,"".concat(j,"-group"),i.className),title:u},void 0!==a?a:c)}var f=i.disabled,d=i.title,p=(i.children,i.style),h=i.className,v=qc(qo(i,Xy),B),m=L(l),g=f||!m&&P,b="".concat(j,"-option"),w=jo()(j,b,h,x(x(x(x({},"".concat(b,"-grouped"),o),"".concat(b,"-active"),T===n&&!g),"".concat(b,"-disabled"),g),"".concat(b,"-selected"),m)),S=F(e),k=!y||"function"==typeof y||m,E="number"==typeof S?S:S||l,O=Qy(E)?E.toString():void 0;return void 0!==d&&(O=d),t.createElement("div",ht({},dl(v),C?{}:H(e,n),{"aria-selected":m,className:w,title:O,onMouseMove:function(){T===n||g||D(n)},onClick:function(){g||z(l)},style:p}),t.createElement("div",{className:"".concat(b,"-content")},"function"==typeof _?_(e,{index:n}):E),t.isValidElement(y)||m,k&&t.createElement(jb,{className:"".concat(j,"-option-state"),customizeIcon:y,customizeIconProps:{value:l,disabled:g,isSelected:m}},m?"✓":null))})))};var Jy=t.forwardRef(Zy);function ew(e,t){return ey(e).join("").toUpperCase().includes(t)}var tw=0,nw=Z();function rw(e){var n=Y(t.useState(),2),r=n[0],o=n[1];return t.useEffect((function(){var e;o("rc_select_".concat((nw?(e=tw,tw+=1):e="TEST_OR_SSR",e)))}),[]),e||r}var ow=["children","value"],iw=["children"];function aw(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Zc(e).map((function(e,r){if(!t.isValidElement(e)||!e.type)return null;var o=e,i=o.type.isSelectOptGroup,a=o.key,l=o.props,c=l.children,s=qo(l,iw);return n||!i?function(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value;return C({key:n,value:void 0!==i?i:n,children:o},qo(r,ow))}(e):C(C({key:"__RC_SELECT_GRP__".concat(null===a?r:a,"__"),label:a},s),{},{options:aw(c)})})).filter((function(e){return e}))}var lw=function(e,n,r,o,i){return t.useMemo((function(){var t=e;!e&&(t=aw(n));var a=new Map,l=new Map,c=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=0;s<t.length;s+=1){var u=t[s];!u[r.options]||n?(a.set(u[r.value],u),c(l,u,r.label),c(l,u,o),c(l,u,i)):e(u[r.options],!0)}}(t),{options:t,valueOptions:a,labelOptions:l}}),[e,n,r,o,i])};function cw(e){var n=t.useRef();n.current=e;var r=t.useCallback((function(){return n.current.apply(n,arguments)}),[]);return r}var sw=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],uw=["inputValue"];var fw=t.forwardRef((function(e,n){var r=e.id,o=e.mode,i=e.prefixCls,a=void 0===i?"rc-select":i,l=e.backfill,c=e.fieldNames,s=e.inputValue,u=e.searchValue,f=e.onSearch,d=e.autoClearSearchValue,p=void 0===d||d,h=e.onSelect,v=e.onDeselect,g=e.dropdownMatchSelectWidth,b=void 0===g||g,y=e.filterOption,w=e.filterSort,S=e.optionFilterProp,k=e.optionLabelProp,E=e.options,O=e.optionRender,_=e.children,j=e.defaultActiveFirstOption,$=e.menuItemSelectedIcon,N=e.virtual,P=e.direction,I=e.listHeight,M=void 0===I?200:I,R=e.listItemHeight,A=void 0===R?20:R,T=e.labelRender,q=e.value,D=e.defaultValue,L=e.labelInValue,z=e.onChange,B=e.maxCount,F=qo(e,sw),H=rw(r),W=xy(o),V=!(E||!_),U=t.useMemo((function(){return(void 0!==y||"combobox"!==o)&&y}),[y,o]),G=t.useMemo((function(){return vy(c,V)}),[JSON.stringify(c),V]),K=Y(Jo("",{value:void 0!==u?u:s,postState:function(e){return e||""}}),2),Q=K[0],Z=K[1],J=lw(E,_,G,S,k),ee=J.valueOptions,te=J.labelOptions,ne=J.options,re=t.useCallback((function(e){return ey(e).map((function(e){var t,n,r,o,i,a;(function(e){return!e||"object"!==m(e)})(e)?t=e:(r=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:r);var l,c=ee.get(t);c&&(void 0===n&&(n=null==c?void 0:c[k||G.label]),void 0===r&&(r=null!==(l=null==c?void 0:c.key)&&void 0!==l?l:t),o=null==c?void 0:c.disabled,i=null==c?void 0:c.title);return{label:n,value:t,key:r,disabled:o,title:i}}))}),[G,k,ee]),oe=Y(Jo(D,{value:q}),2),ie=oe[0],ae=oe[1],le=t.useMemo((function(){var e,t=re(W&&null===ie?[]:ie);return"combobox"===o&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[ie,re,o,W]),ce=function(e,n){var r=t.useRef({values:new Map,options:new Map});return[t.useMemo((function(){var t=r.current,o=t.values,i=t.options,a=e.map((function(e){var t;return void 0===e.label?C(C({},e),{},{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e})),l=new Map,c=new Map;return a.forEach((function(e){l.set(e.value,e),c.set(e.value,n.get(e.value)||i.get(e.value))})),r.current.values=l,r.current.options=c,a}),[e,n]),t.useCallback((function(e){return n.get(e)||r.current.options.get(e)}),[n])]}(le,ee),se=Y(ce,2),ue=se[0],fe=se[1],de=t.useMemo((function(){if(!o&&1===ue.length){var e=ue[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return ue.map((function(e){var t;return C(C({},e),{},{label:null!==(t="function"==typeof T?T(e):e.label)&&void 0!==t?t:e.value})}))}),[o,ue,T]),pe=t.useMemo((function(){return new Set(ue.map((function(e){return e.value})))}),[ue]);t.useEffect((function(){if("combobox"===o){var e,t=null===(e=ue[0])||void 0===e?void 0:e.value;Z(function(e){return null!=e}(t)?String(t):"")}}),[ue]);var he=cw((function(e,t){var n=null!=t?t:e;return x(x({},G.value,e),G.label,n)})),ve=t.useMemo((function(){if("tags"!==o)return ne;var e=X(ne);return X(ue).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return ee.has(e)})(n)||e.push(he(n,t.label))})),e}),[he,ne,ee,ue,o]),me=function(e,n,r,o,i){return t.useMemo((function(){if(!r||!1===o)return e;var t=n.options,a=n.label,l=n.value,c=[],s="function"==typeof o,u=r.toUpperCase(),f=s?o:function(e,n){return i?ew(n[i],u):n[t]?ew(n["children"!==a?a:"label"],u):ew(n[l],u)},d=s?function(e){return my(e)}:function(e){return e};return e.forEach((function(e){if(e[t])if(f(r,d(e)))c.push(e);else{var n=e[t].filter((function(e){return f(r,d(e))}));n.length&&c.push(C(C({},e),{},x({},t,n)))}else f(r,d(e))&&c.push(e)})),c}),[e,o,i,r,n])}(ve,G,Q,U,S),ge=t.useMemo((function(){return"tags"!==o||!Q||me.some((function(e){return e[S||"value"]===Q}))||me.some((function(e){return e[G.value]===Q}))?me:[he(Q)].concat(X(me))}),[he,S,o,me,Q,G]),be=t.useMemo((function(){return w?X(ge).sort((function(e,t){return w(e,t,{searchValue:Q})})):ge}),[ge,w,Q]),ye=t.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=vy(n,!1),a=i.label,l=i.value,c=i.options,s=i.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach((function(t){if(n||!(c in t)){var i=t[l];o.push({key:py(t,o.length),groupOption:n,data:t,label:t[a],value:i})}else{var u=t[s];void 0===u&&r&&(u=t.label),o.push({key:py(t,o.length),group:!0,data:t,label:u}),e(t[c],!0)}}))}(e,!1),o}(be,{fieldNames:G,childrenAsData:V})}),[be,G,V]),we=function(e){var t=re(e);if(ae(t),z&&(t.length!==ue.length||t.some((function(e,t){var n;return(null===(n=ue[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=L?t:t.map((function(e){return e.value})),r=t.map((function(e){return my(fe(e.value))}));z(W?n:n[0],W?r:r[0])}},xe=Y(t.useState(null),2),Se=xe[0],Ce=xe[1],ke=Y(t.useState(0),2),Ee=ke[0],Oe=ke[1],_e=void 0!==j?j:"combobox"!==o,je=t.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,r=void 0===n?"keyboard":n;Oe(t),l&&"combobox"===o&&null!==e&&"keyboard"===r&&Ce(String(e))}),[l,o]),$e=function(e,t,n){var r=function(){var t,n=fe(e);return[L?{label:null==n?void 0:n[G.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,my(n)]};if(t&&h){var o=Y(r(),2),i=o[0],a=o[1];h(i,a)}else if(!t&&v&&"clear"!==n){var l=Y(r(),2),c=l[0],s=l[1];v(c,s)}},Ne=cw((function(e,t){var n,r=!W||t.selected;n=r?W?[].concat(X(ue),[e]):[e]:ue.filter((function(t){return t.value!==e})),we(n),$e(e,r),"combobox"===o?Ce(""):xy&&!p||(Z(""),Ce(""))})),Pe=t.useMemo((function(){var e=!1!==N&&!1!==b;return C(C({},J),{},{flattenOptions:ye,onActiveValue:je,defaultActiveFirstOption:_e,onSelect:Ne,menuItemSelectedIcon:$,rawValues:pe,fieldNames:G,virtual:e,direction:P,listHeight:M,listItemHeight:A,childrenAsData:V,maxCount:B,optionRender:O})}),[B,J,ye,je,_e,Ne,$,pe,G,N,b,P,M,A,V,O]);return t.createElement(gy.Provider,{value:Pe},t.createElement(Cy,ht({},F,{id:H,prefixCls:a,ref:n,omitDomProps:uw,mode:o,displayValues:de,onDisplayValuesChange:function(e,t){we(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){$e(e.value,!1,n)}))},direction:P,searchValue:Q,onSearch:function(e,t){if(Z(e),Ce(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===o&&we(e),null==f||f(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat(X(pe),[n])));we(r),$e(n,!0),Z("")}}},autoClearSearchValue:p,onSearchSplit:function(e){var t=e;"tags"!==o&&(t=e.map((function(e){var t=te.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(X(pe),X(t))));we(n),n.forEach((function(e){$e(e,!0)}))},dropdownMatchSelectWidth:b,OptionList:Jy,emptyOptions:!ye.length,activeValue:Se,activeDescendantId:"".concat(H,"_list_").concat(Ee)})))}));var dw=fw;dw.Option=_y,dw.OptGroup=Ey;var pw=dw;var hw=()=>{const[,e]=aa(),n=new no(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return t.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},t.createElement("title",null,"empty image"),t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("g",{transform:"translate(24 31.67)"},t.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),t.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),t.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),t.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),t.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),t.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),t.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},t.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),t.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};var vw=()=>{const[,e]=aa(),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:i}=e,{borderColor:a,shadowColor:l,contentColor:c}=(0,t.useMemo)((()=>({borderColor:new no(n).onBackground(i).toHexShortString(),shadowColor:new no(r).onBackground(i).toHexShortString(),contentColor:new no(o).onBackground(i).toHexShortString()})),[n,r,o,i]);return t.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},t.createElement("title",null,"Simple Empty"),t.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},t.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),t.createElement("g",{fillRule:"nonzero",stroke:a},t.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),t.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:c}))))};const mw=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var gw=Jl("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Wl(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[mw(o)]})),bw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const yw=t.createElement(hw,null),ww=t.createElement(vw,null),xw=e=>{var{className:n,rootClassName:r,prefixCls:o,image:i=yw,description:a,children:l,imageStyle:c,style:s}=e,u=bw(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:f,direction:d,empty:p}=t.useContext(F),h=f("empty",o),[v,m,g]=gw(h),[b]=oh("Empty"),y=void 0!==a?a:null==b?void 0:b.description,w="string"==typeof y?y:"empty";let x=null;return x="string"==typeof i?t.createElement("img",{alt:w,src:i}):i,v(t.createElement("div",Object.assign({className:jo()(m,g,h,null==p?void 0:p.className,{[`${h}-normal`]:i===ww,[`${h}-rtl`]:"rtl"===d},n,r),style:Object.assign(Object.assign({},null==p?void 0:p.style),s)},u),t.createElement("div",{className:`${h}-image`,style:c},x),y&&t.createElement("div",{className:`${h}-description`},y),l&&t.createElement("div",{className:`${h}-footer`},l)))};xw.PRESENTED_IMAGE_DEFAULT=yw,xw.PRESENTED_IMAGE_SIMPLE=ww;var Sw=xw;var Cw=e=>{const{componentName:n}=e,{getPrefixCls:r}=(0,t.useContext)(F),o=r("empty");switch(n){case"Table":case"List":return t.createElement(Sw,{image:Sw.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return t.createElement(Sw,{image:Sw.PRESENTED_IMAGE_SIMPLE,className:`${o}-small`});case"Table.filter":return null;default:return t.createElement(Sw,null)}};var kw=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)};const Ew=new xn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Ow=new xn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),_w=new xn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),jw=new xn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),$w=new xn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Nw=new xn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Pw=new xn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Iw=new xn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Mw={"slide-up":{inKeyframes:Ew,outKeyframes:Ow},"slide-down":{inKeyframes:_w,outKeyframes:jw},"slide-left":{inKeyframes:$w,outKeyframes:Nw},"slide-right":{inKeyframes:Pw,outKeyframes:Iw}},Rw=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Mw[t];return[Ap(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Aw=new xn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Tw=new xn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),qw=new xn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Dw=new xn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Lw=new xn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),zw=new xn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Bw={"move-up":{inKeyframes:new xn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new xn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:Aw,outKeyframes:Tw},"move-left":{inKeyframes:qw,outKeyframes:Dw},"move-right":{inKeyframes:Lw,outKeyframes:zw}},Fw=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Bw[t];return[Ap(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Hw=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}};var Ww=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},ua(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${o}${l}bottomLeft,\n ${i}${l}bottomLeft\n `]:{animationName:Ew},[`\n ${o}${l}topLeft,\n ${i}${l}topLeft,\n ${o}${l}topRight,\n ${i}${l}topRight\n `]:{animationName:_w},[`${a}${l}bottomLeft`]:{animationName:Ow},[`\n ${a}${l}topLeft,\n ${a}${l}topRight\n `]:{animationName:jw},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},Hw(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},sa),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Hw(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},Rw(e,"slide-up"),Rw(e,"slide-down"),Fw(e,"move-up"),Fw(e,"move-down")]};const Vw=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:i,containerPadding:e.max(e.calc(i).sub(o).equal(),0),itemHeight:Ue(t),itemLineHeight:Ue(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},Uw=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:c,colorIconHover:s,INTERNAL_FIXED_ITEM_MARGIN:u}=e,f=`${t}-selection-overflow`;return{[f]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:s}})}}}},Gw=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()})(e),l=t?`${n}-${t}`:"",c=Vw(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},Uw(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Ue(r)} 0`,lineHeight:Ue(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:Ue(c.itemLineHeight)},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:Ue(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Yw(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[Gw(e,t),o]}var Kw=e=>{const{componentCls:t}=e,n=Wl(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Wl(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Yw(e),Yw(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Yw(r,"lg")]};function Xw(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},ua(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:Ue(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${Ue(r)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:Ue(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Ue(r)}`,"&:after":{display:"none"}}}}}}}function Qw(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Xw(e),Xw(Wl(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${Ue(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Xw(Wl(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const Zw=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Ue(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Ue(o)} ${t.activeShadowColor}`,outline:0}}}},Jw=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Zw(e,t))}),ex=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Zw(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),Jw(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),Jw(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Ue(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),tx=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Ue(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},nx=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},tx(e,t))}),rx=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},tx(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),nx(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),nx(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${Ue(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),ox=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Ue(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-selection-item`]:{color:e.colorWarning}}}});var ix=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},ex(e)),rx(e)),ox(e))});const ax=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},lx=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},cx=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},ua(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},ax(e)),lx(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},sa),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},sa),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},sx=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},cx(e),Qw(e),Kw(e),Ww(e),{[`${t}-rtl`]:{direction:"rtl"}},Ws(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};var ux=Jl("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=Wl(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[sx(r),ix(r)]}),(e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:s,colorText:u,fontWeightStrong:f,controlItemBgActive:d,controlItemBgHover:p,colorBgContainer:h,colorFillSecondary:v,colorBgContainerDisabled:m,colorTextDisabled:g}=e,b=2*l,y=2*r,w=Math.min(o-b,o-y),x=Math.min(i-b,i-y),S=Math.min(a-b,a-y);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:s+50,optionSelectedColor:u,optionSelectedFontWeight:f,optionSelectedBg:d,optionActiveBg:p,optionPadding:`${(o-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:h,clearBg:h,singleItemHeightLG:a,multipleItemBg:v,multipleItemBorderColor:"transparent",multipleItemHeight:w,multipleItemHeightSM:x,multipleItemHeightLG:S,multipleSelectorBgDisabled:m,multipleItemColorDisabled:g,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize)}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),fx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},dx=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:fx}))};var px=t.forwardRef(dx),hx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},vx=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:hx}))};var mx=t.forwardRef(vx);function gx(e){let{suffixIcon:n,clearIcon:r,menuItemSelectedIcon:o,removeIcon:i,loading:a,multiple:l,hasFeedback:c,prefixCls:s,showSuffixIcon:u,feedbackIcon:f,showArrow:d,componentName:p}=e;const h=null!=r?r:t.createElement(Ga,null),v=e=>null!==n||c||d?t.createElement(t.Fragment,null,!1!==u&&e,c&&f):null;let m=null;if(void 0!==n)m=v(n);else if(a)m=v(t.createElement(il,{spin:!0}));else{const e=`${s}-suffix`;m=n=>{let{open:r,showSearch:o}=n;return v(r&&o?t.createElement(Jg,{className:e}):t.createElement(mx,{className:e}))}}let g=null;g=void 0!==o?o:l?t.createElement(px,null):null;let b=null;return b=void 0!==i?i:t.createElement(Xa,null),{clearIcon:h,suffixIcon:m,itemIcon:g,removeIcon:b}}var bx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const yx="SECRET_COMBOBOX_MODE_DO_NOT_USE",wx=(e,n)=>{var r;const{prefixCls:o,bordered:i,className:a,rootClassName:l,getPopupContainer:c,popupClassName:s,dropdownClassName:u,listHeight:f=256,placement:d,listItemHeight:p,size:h,disabled:v,notFoundContent:m,status:g,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:w,direction:x,style:S,allowClear:C,variant:k,dropdownStyle:E,transitionName:O,tagRender:_,maxCount:j}=e,$=bx(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:N,getPrefixCls:P,renderEmpty:I,direction:M,virtual:R,popupMatchSelectWidth:A,popupOverflow:T,select:q}=t.useContext(F),[,D]=aa(),L=null!=p?p:null==D?void 0:D.controlHeight,z=P("select",o),B=P(),H=null!=x?x:M,{compactSize:W,compactItemClassnames:V}=es(z,H),[U,G]=Og("select",k,i),Y=Ol(z),[K,X,Q]=ux(z,Y),Z=t.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===yx?"combobox":t}),[e.mode]),J="multiple"===Z||"tags"===Z,ee=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),te=null!==(r=null!=w?w:y)&&void 0!==r?r:A,{status:ne,hasFeedback:re,isFormItemInput:oe,feedbackIcon:ie}=t.useContext(dp),ae=Eg(ne,g);let le;le=void 0!==m?m:"combobox"===Z?null:(null==I?void 0:I("Select"))||t.createElement(Cw,{componentName:"Select"});const{suffixIcon:ce,itemIcon:se,removeIcon:ue,clearIcon:fe}=gx(Object.assign(Object.assign({},$),{multiple:J,hasFeedback:re,feedbackIcon:ie,showSuffixIcon:ee,prefixCls:z,componentName:"Select"})),de=!0===C?{clearIcon:fe}:C,pe=qc($,["suffixIcon","itemIcon"]),he=jo()(s||u,{[`${z}-dropdown-${H}`]:"rtl"===H},l,Q,Y,X),ve=Qc((e=>{var t;return null!==(t=null!=h?h:W)&&void 0!==t?t:e})),me=t.useContext(yo),ge=null!=v?v:me,be=jo()({[`${z}-lg`]:"large"===ve,[`${z}-sm`]:"small"===ve,[`${z}-rtl`]:"rtl"===H,[`${z}-${U}`]:G,[`${z}-in-form-item`]:oe},kg(z,ae,re),V,null==q?void 0:q.className,a,l,Q,Y,X),ye=t.useMemo((()=>void 0!==d?d:"rtl"===H?"bottomRight":"bottomLeft"),[d,H]);const[we]=Il("SelectLike",null==E?void 0:E.zIndex);return K(t.createElement(pw,Object.assign({ref:n,virtual:R,showSearch:null==q?void 0:q.showSearch},pe,{style:Object.assign(Object.assign({},null==q?void 0:q.style),S),dropdownMatchSelectWidth:te,transitionName:xp(B,"slide-up",O),builtinPlacements:kw(b,T),listHeight:f,listItemHeight:L,mode:Z,prefixCls:z,placement:ye,direction:H,suffixIcon:ce,menuItemSelectedIcon:se,removeIcon:ue,allowClear:de,notFoundContent:le,className:be,getPopupContainer:c||N,dropdownClassName:he,disabled:ge,dropdownStyle:Object.assign(Object.assign({},E),{zIndex:we}),maxCount:J?j:void 0,tagRender:J?_:void 0})))};const xx=t.forwardRef(wx),Sx=Fv(xx);xx.SECRET_COMBOBOX_MODE_DO_NOT_USE=yx,xx.Option=_y,xx.OptGroup=Ey,xx._InternalPanelDoNotUseOrYouWillBeFired=Sx;var Cx=xx;function kx(e){return kx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kx(e)}function Ex(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ox(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ex(Object(n),!0).forEach((function(t){_x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ex(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _x(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=kx(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=kx(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==kx(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return $x(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$x(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Nx=Cx.Option,Px=function(e){var t,n,o,i,a=e.id,c=e.field,s=c.value,u=c.help,f=c.options,p=c.empty,h=c.searchable,v=c.multiple,m=c.disabled,g=c.isPro,b=null===(t=e.field)||void 0===t?void 0:t.fieldType,y=null===(n=e.field)||void 0===n?void 0:n.parentId,w=null===(o=e.field)||void 0===o?void 0:o.index,x=null===(i=e.field)||void 0===i?void 0:i.repeaterData,S={};m?S.disabled=m||!1:g&&(S.disabled=g);var C=jx(l(),2),k=(C[0],C[1]);return(0,r.jsxs)("div",{className:"rtsb-field select",children:[(0,r.jsx)(Nm,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsxs)(Cx,Ox(Ox({},S),{},{className:"rtsb-form-field".concat(S.disabled?"-disabled":null),showSearch:!!h,value:s,mode:v?"multiple":null,onChange:function(e){k({type:d,id:a,value:e,fieldType:b,parentId:y,repeaterData:x,index:w})},filterOption:function(e,t){return null==t?void 0:t.title.toLowerCase().includes(e.toLowerCase())},children:[p&&(0,r.jsx)(Nx,{value:"",children:p}),Object.keys(f).map((function(e){var t=e.toString(),n=f[e].toString();return(0,r.jsx)(Nx,{value:t,title:n,children:(0,r.jsx)("span",{dangerouslySetInnerHTML:{__html:n}})},e)}))]}))}),u&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:u}})]})]})},Ix={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Mx=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:Ix}))};var Rx=t.forwardRef(Mx);function Ax(){return"function"==typeof BigInt}function Tx(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function qx(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",o=r.split("."),i=o[0]||"0",a=o[1]||"0";"0"===i&&"0"===a&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(l).concat(r)}}function Dx(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Lx(e){var t=String(e);if(Dx(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(".")&&Bx(t)?t.length-t.indexOf(".")-1:0}function zx(e){var t=String(e);if(Dx(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Ax()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Ax()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(Lx(t))}return qx(t).fullStr}function Bx(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))}var Fx=function(){function e(t){if(xe(this,e),x(this,"origin",""),x(this,"negative",void 0),x(this,"integer",void 0),x(this,"decimal",void 0),x(this,"decimalLen",void 0),x(this,"empty",void 0),x(this,"nan",void 0),Tx(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var n=t;if(Dx(n)&&(n=Number(n)),Bx(n="string"==typeof n?n:zx(n))){var r=qx(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}}return Ce(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 o=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),i=n(this.alignDecimal(o),t.alignDecimal(o)).toString(),a=r(o),l=qx(i),c=l.negativeStr,s=l.trimStr,u="".concat(c).concat(s.padStart(a+1,"0"));return new e("".concat(u.slice(0,-a),".").concat(u.slice(-a)))}},{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.isInvalidate()?"":qx("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),Hx=function(){function e(t){xe(this,e),x(this,"origin",""),x(this,"number",void 0),x(this,"empty",void 0),Tx(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return Ce(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 o=Math.max(Lx(this.number),Lx(n));return new e(r.toFixed(o))}},{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 o=Math.max(Lx(this.number),Lx(n));return new e(r.toFixed(o))}},{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.isInvalidate()?"":zx(this.number):this.origin}}]),e}();function Wx(e){return Ax()?new Fx(e):new Hx(e)}function Vx(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=qx(e),i=o.negativeStr,a=o.integerStr,l=o.decimalStr,c="".concat(t).concat(l),s="".concat(i).concat(a);if(n>=0){var u=Number(l[n]);return u>=5&&!r?Vx(Wx(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,r):0===n?s:"".concat(s).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return".0"===c?s:"".concat(s).concat(c)}var Ux=Wx;var Gx=function(){var e=Y((0,t.useState)(!1),2),n=e[0],r=e[1];return et((function(){r(rf())}),[]),n};function Yx(e){var n=e.prefixCls,r=e.upNode,o=e.downNode,i=e.upDisabled,a=e.downDisabled,l=e.onStep,c=t.useRef(),s=t.useRef([]),u=t.useRef();u.current=l;var f=function(){clearTimeout(c.current)},d=function(e,t){e.preventDefault(),f(),u.current(t),c.current=setTimeout((function e(){u.current(t),c.current=setTimeout(e,200)}),600)};if(t.useEffect((function(){return function(){f(),s.current.forEach((function(e){return Ni.cancel(e)}))}}),[]),Gx())return null;var p="".concat(n,"-handler"),h=jo()(p,"".concat(p,"-up"),x({},"".concat(p,"-up-disabled"),i)),v=jo()(p,"".concat(p,"-down"),x({},"".concat(p,"-down-disabled"),a)),m=function(){return s.current.push(Ni(f))},g={unselectable:"on",role:"button",onMouseUp:m,onMouseLeave:m};return t.createElement("div",{className:"".concat(p,"-wrap")},t.createElement("span",ht({},g,{onMouseDown:function(e){d(e,!0)},"aria-label":"Increase Value","aria-disabled":i,className:h}),r||t.createElement("span",{unselectable:"on",className:"".concat(n,"-handler-up-inner")})),t.createElement("span",ht({},g,{onMouseDown:function(e){d(e,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:v}),o||t.createElement("span",{unselectable:"on",className:"".concat(n,"-handler-down-inner")})))}function Kx(e){var t="number"==typeof e?zx(e):qx(e).fullStr;return t.includes(".")?qx(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var Xx=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],Qx=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Zx=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},Jx=function(e){var t=Ux(e);return t.isInvalidate()?null:t},eS=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.className,i=e.style,a=e.min,l=e.max,c=e.step,s=void 0===c?1:c,u=e.defaultValue,f=e.value,d=e.disabled,p=e.readOnly,h=e.upHandler,v=e.downHandler,g=e.keyboard,b=e.changeOnWheel,y=void 0!==b&&b,w=e.controls,S=void 0===w||w,C=(e.classNames,e.stringMode),k=e.parser,E=e.formatter,O=e.precision,_=e.decimalSeparator,j=e.onChange,$=e.onInput,N=e.onPressEnter,P=e.onStep,I=e.changeOnBlur,M=void 0===I||I,R=e.domRef,A=qo(e,Xx),T="".concat(r,"-input"),q=t.useRef(null),D=Y(t.useState(!1),2),L=D[0],z=D[1],B=t.useRef(!1),F=t.useRef(!1),H=t.useRef(!1),W=Y(t.useState((function(){return Ux(null!=f?f:u)})),2),V=W[0],U=W[1];var G=t.useCallback((function(e,t){if(!t)return O>=0?O:Math.max(Lx(e),Lx(s))}),[O,s]),K=t.useCallback((function(e){var t=String(e);if(k)return k(t);var n=t;return _&&(n=n.replace(_,".")),n.replace(/[^\w.-]+/g,"")}),[k,_]),X=t.useRef(""),Q=t.useCallback((function(e,t){if(E)return E(e,{userTyping:t,input:String(X.current)});var n="number"==typeof e?zx(e):e;if(!t){var r=G(n,t);if(Bx(n)&&(_||r>=0))n=Vx(n,_||".",r)}return n}),[E,G,_]),Z=Y(t.useState((function(){var e=null!=u?u:f;return V.isInvalidate()&&["string","number"].includes(m(e))?Number.isNaN(e)?"":e:Q(V.toString(),!1)})),2),J=Z[0],ee=Z[1];function te(e,t){ee(Q(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}X.current=J;var ne,re,oe=t.useMemo((function(){return Jx(l)}),[l,O]),ie=t.useMemo((function(){return Jx(a)}),[a,O]),ae=t.useMemo((function(){return!(!oe||!V||V.isInvalidate())&&oe.lessEquals(V)}),[oe,V]),le=t.useMemo((function(){return!(!ie||!V||V.isInvalidate())&&V.lessEquals(ie)}),[ie,V]),ce=function(e,n){var r=(0,t.useRef)(null);return[function(){try{var t=e.selectionStart,n=e.selectionEnd,o=e.value,i=o.substring(0,t),a=o.substring(n);r.current={start:t,end:n,value:o,beforeTxt:i,afterTxt:a}}catch(e){}},function(){if(e&&r.current&&n)try{var t=e.value,o=r.current,i=o.beforeTxt,a=o.afterTxt,l=o.start,c=t.length;if(t.startsWith(i))c=i.length;else if(t.endsWith(a))c=t.length-r.current.afterTxt.length;else{var s=i[l-1],u=t.indexOf(s,l-1);-1!==u&&(c=u+1)}e.setSelectionRange(c,c)}catch(e){ye(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(e.message))}}]}(q.current,L),se=Y(ce,2),ue=se[0],fe=se[1],de=function(e){return oe&&!e.lessEquals(oe)?oe:ie&&!ie.lessEquals(e)?ie:null},pe=function(e){return!de(e)},he=function(e,t){var n,r=e,o=pe(r)||r.isEmpty();if(r.isEmpty()||t||(r=de(r)||r,o=!0),!p&&!d&&o){var i=r.toString(),a=G(i,t);return a>=0&&(r=Ux(Vx(i,".",a)),pe(r)||(r=Ux(Vx(i,".",a,!0)))),r.equals(V)||(n=r,void 0===f&&U(n),null==j||j(r.isEmpty()?null:Zx(C,r)),void 0===f&&te(r,t)),r}return V},ve=(ne=(0,t.useRef)(0),re=function(){Ni.cancel(ne.current)},(0,t.useEffect)((function(){return re}),[]),function(e){re(),ne.current=Ni((function(){e()}))}),me=function e(t){if(ue(),X.current=t,ee(t),!F.current){var n=K(t),r=Ux(n);r.isNaN()||he(r,!0)}null==$||$(t),ve((function(){var n=t;k||(n=t.replace(/。/g,".")),n!==t&&e(n)}))},ge=function(e){var t;if(!(e&&ae||!e&&le)){B.current=!1;var n=Ux(H.current?Kx(s):s);e||(n=n.negate());var r=(V||Ux(0)).add(n.toString()),o=he(r,!1);null==P||P(Zx(C,o),{offset:H.current?Kx(s):s,type:e?"up":"down"}),null===(t=q.current)||void 0===t||t.focus()}},be=function(e){var t,n=Ux(K(J));t=n.isNaN()?he(V,e):he(n,e),void 0!==f?te(V,!1):t.isNaN()||te(t,!1)};t.useEffect((function(){if(y&&L){var e=function(e){ge(e.deltaY<0),e.preventDefault()},t=q.current;if(t)return t.addEventListener("wheel",e,{passive:!1}),function(){return t.removeEventListener("wheel",e)}}}));return Je((function(){V.isInvalidate()||te(V,!1)}),[O,E]),Je((function(){var e=Ux(f);U(e);var t=Ux(K(J));e.equals(t)&&B.current&&!E||te(e,B.current)}),[f]),Je((function(){E&&fe()}),[J]),t.createElement("div",{ref:R,className:jo()(r,o,x(x(x(x(x({},"".concat(r,"-focused"),L),"".concat(r,"-disabled"),d),"".concat(r,"-readonly"),p),"".concat(r,"-not-a-number"),V.isNaN()),"".concat(r,"-out-of-range"),!V.isInvalidate()&&!pe(V))),style:i,onFocus:function(){z(!0)},onBlur:function(){M&&be(!1),z(!1),B.current=!1},onKeyDown:function(e){var t=e.key,n=e.shiftKey;B.current=!0,H.current=n,"Enter"===t&&(F.current||(B.current=!1),be(!1),null==N||N(e)),!1!==g&&!F.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(ge("Up"===t||"ArrowUp"===t),e.preventDefault())},onKeyUp:function(){B.current=!1,H.current=!1},onCompositionStart:function(){F.current=!0},onCompositionEnd:function(){F.current=!1,me(q.current.value)},onBeforeInput:function(){B.current=!0}},S&&t.createElement(Yx,{prefixCls:r,upNode:h,downNode:v,upDisabled:ae,downDisabled:le,onStep:ge}),t.createElement("div",{className:"".concat(T,"-wrap")},t.createElement("input",ht({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":l,"aria-valuenow":V.isInvalidate()?null:V.toString(),step:s},A,{ref:Mo(q,n),className:T,value:J,onChange:function(e){me(e.target.value)},disabled:d,readOnly:p}))))})),tS=t.forwardRef((function(e,n){var r=e.disabled,o=e.style,i=e.prefixCls,a=void 0===i?"rc-input-number":i,l=e.value,c=e.prefix,s=e.suffix,u=e.addonBefore,f=e.addonAfter,d=e.className,p=e.classNames,h=qo(e,Qx),v=t.useRef(null),m=t.useRef(null),g=t.useRef(null);return t.useImperativeHandle(n,(function(){return e=g.current,t={nativeElement:v.current.nativeElement||m.current},"undefined"!=typeof Proxy&&e?new Proxy(e,{get:function(e,n){if(t[n])return t[n];var r=e[n];return"function"==typeof r?r.bind(e):r}}):e;var e,t})),t.createElement(gg,{className:d,triggerFocus:function(e){g.current&&vg(g.current,e)},prefixCls:a,value:l,disabled:r,style:o,prefix:c,suffix:s,addonAfter:f,addonBefore:u,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:v},t.createElement(eS,ht({prefixCls:a,disabled:r,ref:g,domRef:m,className:null==p?void 0:p.input},h)))}));var nS=tS;const rS=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const i="lg"===t?o:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${n}-handler-up`]:{borderStartEndRadius:i},[`${n}-handler-down`]:{borderEndEndRadius:i}}}},oS=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:i,inputFontSizeLG:a,controlHeightLG:l,controlHeightSM:c,colorError:s,paddingInlineSM:u,paddingBlockSM:f,paddingBlockLG:d,paddingInlineLG:p,colorTextDescription:h,motionDurationMid:v,handleHoverColor:m,handleOpacity:g,paddingInline:b,paddingBlock:y,handleBg:w,handleActiveBg:x,colorTextDisabled:S,borderRadiusSM:C,borderRadiusLG:k,controlWidth:E,handleBorderColor:O,filledHandleBg:_,lineHeightLG:j,calc:$}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ua(e)),ng(e)),{display:"inline-block",width:E,margin:0,padding:0,borderRadius:o}),Wm(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${Ue(n)} ${r} ${O}`}}})),Xm(e,{[`${t}-handler-wrap`]:{background:_,[`${t}-handler-down`]:{borderBlockStart:`${Ue(n)} ${r} ${O}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:w}}})),Gm(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:j,borderRadius:k,[`input${t}-input`]:{height:$(l).sub($(n).mul(2)).equal(),padding:`${Ue(d)} ${Ue(p)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:C,[`input${t}-input`]:{height:$(c).sub($(n).mul(2)).equal(),padding:`${Ue(f)} ${Ue(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:s}}},"&-group":Object.assign(Object.assign(Object.assign({},ua(e)),rg(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:k,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:C}}},Um(e)),Zm(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},ua(e)),{width:"100%",padding:`${Ue(y)} ${Ue(b)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${v} linear`,appearance:"textfield",fontSize:"inherit"}),Jm(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:0,opacity:g,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${v}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Ue(n)} ${r} ${O}`,transition:`all ${v} linear`,"&:active":{background:x},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:m}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{color:h,transition:`all ${v} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},rS(e,"lg")),rS(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:S}})}]},iS=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:l,paddingInlineLG:c,paddingInlineSM:s,paddingBlockLG:u,paddingBlockSM:f,motionDurationMid:d}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${Ue(n)} 0`}},ng(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:c,[`input${t}-input`]:{padding:`${Ue(u)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:s,[`input${t}-input`]:{padding:`${Ue(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:o,transition:`margin ${d}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}};var aS=Jl("InputNumber",(e=>{const t=Wl(e,Dm(e));return[oS(t),iS(t),Ws(t)]}),(e=>{var t;const n=null!==(t=e.handleVisible)&&void 0!==t?t:"auto";return Object.assign(Object.assign({},Lm(e)),{controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new no(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===n?1:0})}),{unitless:{handleOpacity:!0}}),lS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const cS=t.forwardRef(((e,n)=>{const{getPrefixCls:r,direction:o}=t.useContext(F),i=t.useRef(null);t.useImperativeHandle(n,(()=>i.current));const{className:a,rootClassName:l,size:c,disabled:s,prefixCls:u,addonBefore:f,addonAfter:d,prefix:p,suffix:h,bordered:v,readOnly:m,status:g,controls:b,variant:y}=e,w=lS(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),x=r("input-number",u),S=Ol(x),[C,k,E]=aS(x,S),{compactSize:O,compactItemClassnames:_}=es(x,o);let j=t.createElement(Rx,{className:`${x}-handler-up-inner`}),$=t.createElement(mx,{className:`${x}-handler-down-inner`});const N="boolean"==typeof b?b:void 0;"object"==typeof b&&(j=void 0===b.upIcon?j:t.createElement("span",{className:`${x}-handler-up-inner`},b.upIcon),$=void 0===b.downIcon?$:t.createElement("span",{className:`${x}-handler-down-inner`},b.downIcon));const{hasFeedback:P,status:I,isFormItemInput:M,feedbackIcon:R}=t.useContext(dp),A=Eg(I,g),T=Qc((e=>{var t;return null!==(t=null!=c?c:O)&&void 0!==t?t:e})),q=t.useContext(yo),D=null!=s?s:q,[L,z]=Og("inputNumber",y,v),B=P&&t.createElement(t.Fragment,null,R),H=jo()({[`${x}-lg`]:"large"===T,[`${x}-sm`]:"small"===T,[`${x}-rtl`]:"rtl"===o,[`${x}-in-form-item`]:M},k),W=`${x}-group`;return C(t.createElement(nS,Object.assign({ref:i,disabled:D,className:jo()(E,S,a,l,_),upHandler:j,downHandler:$,prefixCls:x,readOnly:m,controls:N,prefix:p,suffix:B||h,addonBefore:f&&t.createElement(vp,{form:!0,space:!0},f),addonAfter:d&&t.createElement(vp,{form:!0,space:!0},d),classNames:{input:H,variant:jo()({[`${x}-${L}`]:z},kg(x,A,P)),affixWrapper:jo()({[`${x}-affix-wrapper-sm`]:"small"===T,[`${x}-affix-wrapper-lg`]:"large"===T,[`${x}-affix-wrapper-rtl`]:"rtl"===o,[`${x}-affix-wrapper-without-controls`]:!1===b},k),wrapper:jo()({[`${W}-rtl`]:"rtl"===o},k),groupWrapper:jo()({[`${x}-group-wrapper-sm`]:"small"===T,[`${x}-group-wrapper-lg`]:"large"===T,[`${x}-group-wrapper-rtl`]:"rtl"===o,[`${x}-group-wrapper-${L}`]:z},kg(`${x}-group-wrapper`,A,P),k)}},w)))})),sS=cS;sS._InternalPanelDoNotUseOrYouWillBeFired=e=>t.createElement(Oa,{theme:{components:{InputNumber:{handleVisible:!0}}}},t.createElement(cS,Object.assign({},e)));var uS=sS;function fS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return dS(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dS(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var pS=function(e){var t,n,o,i,a=e.field,c=a.help,s=a.value,u=a.placeholder,f=a.size,p=a.min,h=a.max,v=a.integer,m=e.id,g=fS(l(),2),b=(g[0],g[1]),y=null===(t=e.field)||void 0===t?void 0:t.fieldType,w=null===(n=e.field)||void 0===n?void 0:n.parentId,x=null===(o=e.field)||void 0===o?void 0:o.index,S=null===(i=e.field)||void 0===i?void 0:i.repeaterData,C=s;return!0===v&&(C=parseInt(s,10)),(0,r.jsxs)("div",{className:"rtsb-field text",children:[(0,r.jsx)(Nm,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(uS,{className:"rtsb-form-field",size:f,min:p,max:h,defaultValue:"null"!==C?C:"",placeholder:u,value:"null"!==C?C:"",onChange:function(e){b({type:d,id:m,value:e,fieldType:y,parentId:w,repeaterData:S,index:x})}})}),c&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:c}})]})]})},hS=function(e){var t=e.field.html;return(0,r.jsxs)("div",{className:"rtsb-field raw",children:[(0,r.jsx)(Nm,{field:e.field}),(0,r.jsx)("div",{className:"rtsb-field__content",children:t&&(0,r.jsx)("div",{className:"rtsb-field__html",dangerouslySetInnerHTML:{__html:t}})})]})},vS=function(e){var t,n=e.field,o=n.label,i=n.subtitle,a=(null===(t=e.field)||void 0===t?void 0:t.customClass)||"";return(0,r.jsxs)("div",{className:"rtsb-field-title ".concat(a),children:[(0,r.jsx)("h3",{className:"title-label",dangerouslySetInnerHTML:{__html:o}}),i&&(0,r.jsx)("div",{className:"rtsb-field__subtitle",dangerouslySetInnerHTML:{__html:i}})]})};const mS=e=>e?"function"==typeof e?e():e:null,gS=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:s,titleMarginBottom:u,colorBgElevated:f,popoverBg:d,titleBorderBottom:p,innerContentPadding:h,titlePadding:v}=e;return[{[t]:Object.assign(Object.assign({},ua(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:s,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:d,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:l,fontWeight:o,borderBottom:p,padding:v},[`${t}-inner-content`]:{color:n,padding:h}})},jp(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},bS=e=>{const{componentCls:t}=e;return{[t]:Wp.map((n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}}))}};var yS=Jl("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,r=Wl(e,{popoverBg:t,popoverColor:n});return[gS(r),bS(r),Hp(r,"zoom-big")]}),(e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:c,lineType:s,colorSplit:u,paddingSM:f}=e,d=n-r,p=d/2,h=d/2-t,v=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},Cp(e)),Op({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:c,titlePadding:i?`${p}px ${v}px ${h}px`:0,titleBorderBottom:i?`${t}px ${s} ${u}`:"none",innerContentPadding:i?`${f}px ${v}px`:0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]}),wS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const xS=e=>{let{title:n,content:r,prefixCls:o}=e;return n||r?t.createElement(t.Fragment,null,n&&t.createElement("div",{className:`${o}-title`},n),r&&t.createElement("div",{className:`${o}-inner-content`},r)):null},SS=e=>{const{hashId:n,prefixCls:r,className:o,style:i,placement:a="top",title:l,content:c,children:s}=e,u=mS(l),f=mS(c),d=jo()(n,r,`${r}-pure`,`${r}-placement-${a}`,o);return t.createElement("div",{className:d,style:i},t.createElement("div",{className:`${r}-arrow`}),t.createElement(du,Object.assign({},e,{className:n,prefixCls:r}),s||t.createElement(xS,{prefixCls:r,title:u,content:f})))};var CS=e=>{const{prefixCls:n,className:r}=e,o=wS(e,["prefixCls","className"]),{getPrefixCls:i}=t.useContext(F),a=i("popover",n),[l,c,s]=yS(a);return l(t.createElement(SS,Object.assign({},o,{prefixCls:a,hashId:c,className:jo()(r,s)})))},kS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ES=t.forwardRef(((e,n)=>{var r,o;const{prefixCls:i,title:a,content:l,overlayClassName:c,placement:s="top",trigger:u="hover",children:f,mouseEnterDelay:d=.1,mouseLeaveDelay:p=.1,onOpenChange:h,overlayStyle:v={}}=e,m=kS(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:g}=t.useContext(F),b=g("popover",i),[y,w,x]=yS(b),S=g(),C=jo()(c,w,x),[k,E]=Jo(!1,{value:null!==(r=e.open)&&void 0!==r?r:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),O=(e,t)=>{E(e,!0),null==h||h(e,t)},_=mS(a),j=mS(l);return y(t.createElement(rh,Object.assign({placement:s,trigger:u,mouseEnterDelay:d,mouseLeaveDelay:p,overlayStyle:v},m,{prefixCls:b,overlayClassName:C,ref:n,open:k,onOpenChange:e=>{O(e)},overlay:_||j?t.createElement(xS,{prefixCls:b,title:_,content:j}):null,transitionName:xp(S,"zoom-big",m.transitionName),"data-popover-inject":!0}),Bc(f,{onKeyDown:e=>{var n,r;t.isValidElement(f)&&(null===(r=null==f?void 0:(n=f.props).onKeyDown)||void 0===r||r.call(n,e)),(e=>{e.keyCode===ll.ESC&&O(!1,e)})(e)}})))})),OS=ES;OS._InternalPanelDoNotUseOrYouWillBeFired=CS;var _S=OS;const jS=Math.round;function $S(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map((e=>parseFloat(e)));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const NS=(e,t,n)=>0===n?e:e/100;function PS(e,t){const n=t||255;return e>n?n:e<0?0:e}class IS{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(x(this,"isValid",!0),x(this,"r",0),x(this,"g",0),x(this,"b",0),x(this,"a",1),x(this,"_h",void 0),x(this,"_s",void 0),x(this,"_l",void 0),x(this,"_v",void 0),x(this,"_max",void 0),x(this,"_min",void 0),x(this,"_brightness",void 0),e)if("string"==typeof e){const n=e.trim();function r(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):r("rgb")?this.fromRgbString(n):r("hsl")?this.fromHslString(n):(r("hsv")||r("hsb"))&&this.fromHsvString(n)}else if(e instanceof IS)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=PS(e.r),this.g=PS(e.g),this.b=PS(e.b),this.a="number"==typeof e.a?PS(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:jS(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:jS(o("r")),g:jS(o("g")),b:jS(o("b")),a:jS(100*o("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>jS((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=jS(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=jS(100*this.getSaturation()),n=jS(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=PS(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=jS(255*n);this.r=e,this.g=e,this.b=e}let o=0,i=0,a=0;const l=e/60,c=(1-Math.abs(2*n-1))*t,s=c*(1-Math.abs(l%2-1));l>=0&&l<1?(o=c,i=s):l>=1&&l<2?(o=s,i=c):l>=2&&l<3?(i=c,a=s):l>=3&&l<4?(i=s,a=c):l>=4&&l<5?(o=s,a=c):l>=5&&l<6&&(o=c,a=s);const u=n-c/2;this.r=jS(255*(o+u)),this.g=jS(255*(i+u)),this.b=jS(255*(a+u))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const o=jS(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;const i=e/60,a=Math.floor(i),l=i-a,c=jS(n*(1-t)*255),s=jS(n*(1-t*l)*255),u=jS(n*(1-t*(1-l))*255);switch(a){case 0:this.g=u,this.b=c;break;case 1:this.r=s,this.b=c;break;case 2:this.r=c,this.b=u;break;case 3:this.r=c,this.g=s;break;case 4:this.r=u,this.g=c;break;default:this.g=c,this.b=s}}fromHsvString(e){const t=$S(e,NS);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=$S(e,NS);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=$S(e,((e,t)=>t.includes("%")?jS(e/100*255):e));this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var MS=["b"],RS=["v"],AS=function(e){return Math.round(Number(e||0))},TS=function(e){Fo(n,e);var t=Go(n);function n(e){return xe(this,n),t.call(this,function(e){if(e instanceof IS)return e;if(e&&"object"===m(e)&&"h"in e&&"b"in e){var t=e,n=t.b;return C(C({},qo(t,MS)),{},{v:n})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return Ce(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=AS(100*e.s),n=AS(100*e.b),r=AS(e.h),o=e.a,i="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(o.toFixed(0===o?0:2),")");return 1===o?i:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v;return C(C({},qo(e,RS)),{},{b:t,a:this.a})}}]),n}(IS),qS=function(e){return e instanceof TS?e:new TS(e)},DS=qS("#1677ff"),LS=function(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.color,i=e.type,a=r.current.getBoundingClientRect(),l=a.width,c=a.height,s=n.current.getBoundingClientRect(),u=s.width/2,f=s.height/2,d=(t.x+u)/l,p=1-(t.y+f)/c,h=o.toHsb(),v=d,m=(t.x+u)/l*360;if(i)switch(i){case"hue":return qS(C(C({},h),{},{h:m<=0?0:m}));case"alpha":return qS(C(C({},h),{},{a:v<=0?0:v}))}return qS({h:h.h,s:d<=0?0:d,b:p>=1?1:p,a:h.a})},zS=function(e,t){var n=e.toHsb();switch(t){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:100*e.a,y:50};default:return{x:100*n.s,y:100*(1-n.b)}}},BS=function(e){var n=e.color,r=e.prefixCls,o=e.className,i=e.style,a=e.onClick,l="".concat(r,"-color-block");return t.createElement("div",{className:jo()(l,o),style:i,onClick:a},t.createElement("div",{className:"".concat(l,"-inner"),style:{background:n}}))};var FS=function(e){var n=e.targetRef,r=e.containerRef,o=e.direction,i=e.onDragChange,a=e.onDragChangeComplete,l=e.calculate,c=e.color,s=e.disabledDrag,u=Y((0,t.useState)({x:0,y:0}),2),f=u[0],d=u[1],p=(0,t.useRef)(null),h=(0,t.useRef)(null);(0,t.useEffect)((function(){d(l())}),[c]),(0,t.useEffect)((function(){return function(){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",h.current),p.current=null,h.current=null}}),[]);var v=function(e){var t=function(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}(e),a=t.pageX,l=t.pageY,c=r.current.getBoundingClientRect(),s=c.x,u=c.y,d=c.width,p=c.height,h=n.current.getBoundingClientRect(),v=h.width,m=h.height,g=v/2,b=m/2,y=Math.max(0,Math.min(a-s,d))-g,w=Math.max(0,Math.min(l-u,p))-b,x={x:y,y:"x"===o?f.y:w};if(0===v&&0===m||v!==m)return!1;null==i||i(x)},m=function(e){e.preventDefault(),v(e)},g=function(e){e.preventDefault(),document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",h.current),p.current=null,h.current=null,null==a||a()};return[f,function(e){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",h.current),s||(v(e),document.addEventListener("mousemove",m),document.addEventListener("mouseup",g),document.addEventListener("touchmove",m),document.addEventListener("touchend",g),p.current=m,h.current=g)}]},HS=function(e){var n=e.size,r=void 0===n?"default":n,o=e.color,i=e.prefixCls;return t.createElement("div",{className:jo()("".concat(i,"-handler"),x({},"".concat(i,"-handler-sm"),"small"===r)),style:{backgroundColor:o}})},WS=function(e){var n=e.children,r=e.style,o=e.prefixCls;return t.createElement("div",{className:"".concat(o,"-palette"),style:C({position:"relative"},r)},n)},VS=(0,t.forwardRef)((function(e,n){var r=e.children,o=e.x,i=e.y;return t.createElement("div",{ref:n,style:{position:"absolute",left:"".concat(o,"%"),top:"".concat(i,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},r)})),US=function(e){var n=e.color,r=e.onChange,o=e.prefixCls,i=e.onChangeComplete,a=e.disabled,l=(0,t.useRef)(),c=(0,t.useRef)(),s=(0,t.useRef)(n),u=Xo((function(e){var t=LS({offset:e,targetRef:c,containerRef:l,color:n});s.current=t,r(t)})),f=Y(FS({color:n,containerRef:l,targetRef:c,calculate:function(){return zS(n)},onDragChange:u,onDragChangeComplete:function(){return null==i?void 0:i(s.current)},disabledDrag:a}),2),d=f[0],p=f[1];return t.createElement("div",{ref:l,className:"".concat(o,"-select"),onMouseDown:p,onTouchStart:p},t.createElement(WS,{prefixCls:o},t.createElement(VS,{x:d.x,y:d.y,ref:c},t.createElement(HS,{color:n.toRgbString(),prefixCls:o})),t.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},GS=function(e,n){var r=Y(Jo(e,{value:n}),2),o=r[0],i=r[1];return[(0,t.useMemo)((function(){return qS(o)}),[o]),i]},YS=function(e){var n=e.colors,r=e.children,o=e.direction,i=void 0===o?"to right":o,a=e.type,l=e.prefixCls,c=(0,t.useMemo)((function(){return n.map((function(e,t){var r=qS(e);return"alpha"===a&&t===n.length-1&&(r=new TS(r.setA(1))),r.toRgbString()})).join(",")}),[n,a]);return t.createElement("div",{className:"".concat(l,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(c,")")}},r)},KS=function(e){var n=e.prefixCls,r=e.colors,o=e.disabled,i=e.onChange,a=e.onChangeComplete,l=e.color,c=e.type,s=(0,t.useRef)(),u=(0,t.useRef)(),f=(0,t.useRef)(l),d=function(e){return"hue"===c?e.getHue():100*e.a},p=Xo((function(e){var t=LS({offset:e,targetRef:u,containerRef:s,color:l,type:c});f.current=t,i(d(t))})),h=Y(FS({color:l,targetRef:u,containerRef:s,calculate:function(){return zS(l,c)},onDragChange:p,onDragChangeComplete:function(){a(d(f.current))},direction:"x",disabledDrag:o}),2),v=h[0],m=h[1],g=t.useMemo((function(){if("hue"===c){var e=l.toHsb();return e.s=1,e.b=1,e.a=1,new TS(e)}return l}),[l,c]),b=t.useMemo((function(){return r.map((function(e){return"".concat(e.color," ").concat(e.percent,"%")}))}),[r]);return t.createElement("div",{ref:s,className:jo()("".concat(n,"-slider"),"".concat(n,"-slider-").concat(c)),onMouseDown:m,onTouchStart:m},t.createElement(WS,{prefixCls:n},t.createElement(VS,{x:v.x,y:v.y,ref:u},t.createElement(HS,{size:"small",color:g.toHexString(),prefixCls:n})),t.createElement(YS,{colors:b,type:c,prefixCls:n})))};var XS=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],QS=(0,t.forwardRef)((function(e,n){var r=e.value,o=e.defaultValue,i=e.prefixCls,a=void 0===i?"rc-color-picker":i,l=e.onChange,c=e.onChangeComplete,s=e.className,u=e.style,f=e.panelRender,d=e.disabledAlpha,p=void 0!==d&&d,h=e.disabled,v=void 0!==h&&h,m=function(e){return t.useMemo((function(){return[(e||{}).slider||KS]}),[e])}(e.components),g=Y(m,1)[0],b=Y(GS(o||DS,r),2),y=b[0],w=b[1],S=(0,t.useMemo)((function(){return y.setA(1).toRgbString()}),[y]),C=function(e,t){r||w(e),null==l||l(e,t)},k=function(e){return new TS(y.setHue(e))},E=function(e){return new TS(y.setA(e/100))},O=jo()("".concat(a,"-panel"),s,x({},"".concat(a,"-panel-disabled"),v)),_={prefixCls:a,disabled:v,color:y},j=t.createElement(t.Fragment,null,t.createElement(US,ht({onChange:C},_,{onChangeComplete:c})),t.createElement("div",{className:"".concat(a,"-slider-container")},t.createElement("div",{className:jo()("".concat(a,"-slider-group"),x({},"".concat(a,"-slider-group-disabled-alpha"),p))},t.createElement(g,ht({},_,{type:"hue",colors:XS,min:0,max:359,value:y.getHue(),onChange:function(e){C(k(e),{type:"hue",value:e})},onChangeComplete:function(e){c&&c(k(e))}})),!p&&t.createElement(g,ht({},_,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:S}],min:0,max:100,value:100*y.a,onChange:function(e){C(E(e),{type:"alpha",value:e})},onChangeComplete:function(e){c&&c(E(e))}}))),t.createElement(BS,{color:y.toRgbString(),prefixCls:a})));return t.createElement("div",{className:O,style:u,ref:n},"function"==typeof f?f(j):j)}));var ZS=QS;const JS=(e,t)=>(null==e?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"";let eC=function(){return Ce((function e(t){var n;if(xe(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(n=t.colors)||void 0===n?void 0:n.map((t=>({color:new e(t.color),percent:t.percent}))),void(this.cleared=t.cleared);const r=Array.isArray(t);r&&t.length?(this.colors=t.map((t=>{let{color:n,percent:r}=t;return{color:new e(n),percent:r}})),this.metaColor=new TS(this.colors[0].color.metaColor)):this.metaColor=new TS(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}),[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return((e,t)=>e?JS(e,t):"")(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;if(e){return`linear-gradient(90deg, ${e.map((e=>`${e.color.toRgbString()} ${e.percent}%`)).join(", ")})`}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every(((t,n)=>{const r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)})):this.toHexString()===e.toHexString())}}])}();const tC=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},ua(e)),{borderBlockStart:`${Ue(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Ue(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Ue(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${Ue(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Ue(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${Ue(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${Ue(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var nC=Jl("Divider",(e=>{const t=Wl(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[tC(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})),{unitless:{orientationMargin:!0}}),rC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var oC=e=>{const{getPrefixCls:n,direction:r,divider:o}=t.useContext(F),{prefixCls:i,type:a="horizontal",orientation:l="center",orientationMargin:c,className:s,rootClassName:u,children:f,dashed:d,variant:p="solid",plain:h,style:v}=e,m=rC(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),g=n("divider",i),[b,y,w]=nC(g),x=!!f,S="left"===l&&null!=c,C="right"===l&&null!=c,k=jo()(g,null==o?void 0:o.className,y,w,`${g}-${a}`,{[`${g}-with-text`]:x,[`${g}-with-text-${l}`]:x,[`${g}-dashed`]:!!d,[`${g}-${p}`]:"solid"!==p,[`${g}-plain`]:!!h,[`${g}-rtl`]:"rtl"===r,[`${g}-no-default-orientation-margin-left`]:S,[`${g}-no-default-orientation-margin-right`]:C},s,u),E=t.useMemo((()=>"number"==typeof c?c:/^\d+$/.test(c)?Number(c):c),[c]),O=Object.assign(Object.assign({},S&&{marginLeft:E}),C&&{marginRight:E});return b(t.createElement("div",Object.assign({className:k,style:Object.assign(Object.assign({},null==o?void 0:o.style),v)},m,{role:"separator"}),f&&"vertical"!==a&&t.createElement("span",{className:`${g}-inner-text`,style:O},f)))},iC=function(e){return e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null},aC=function(e){return void 0!==e?"".concat(e,"px"):void 0};function lC(e){var n=e.prefixCls,r=e.containerRef,o=e.value,i=e.getValueIndex,a=e.motionName,l=e.onMotionStart,c=e.onMotionEnd,s=e.direction,u=t.useRef(null),f=Y(t.useState(o),2),d=f[0],p=f[1],h=function(e){var t,o=i(e),a=null===(t=r.current)||void 0===t?void 0:t.querySelectorAll(".".concat(n,"-item"))[o];return(null==a?void 0:a.offsetParent)&&a},v=Y(t.useState(null),2),m=v[0],g=v[1],b=Y(t.useState(null),2),y=b[0],w=b[1];et((function(){if(d!==o){var e=h(d),t=h(o),n=iC(e),r=iC(t);p(o),g(n),w(r),e&&t?l():c()}}),[o]);var x=t.useMemo((function(){return aC("rtl"===s?-(null==m?void 0:m.right):null==m?void 0:m.left)}),[s,m]),S=t.useMemo((function(){return aC("rtl"===s?-(null==y?void 0:y.right):null==y?void 0:y.left)}),[s,y]);return m&&y?t.createElement(Ki,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:function(){return{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},onAppearActive:function(){return{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},onVisibleChanged:function(){g(null),w(null),c()}},(function(e,r){var o=e.className,i=C(C({},e.style),{},{"--thumb-start-left":x,"--thumb-start-width":aC(null==m?void 0:m.width),"--thumb-active-left":S,"--thumb-active-width":aC(null==y?void 0:y.width)}),a={ref:Mo(u,r),style:i,className:jo()("".concat(n,"-thumb"),o)};return t.createElement("div",a)})):null}var cC=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"];function sC(e){return e.map((function(e){if("object"===m(e)&&null!==e){var t=function(e){return void 0!==e.title?e.title:"object"!==m(e.label)?null===(t=e.label)||void 0===t?void 0:t.toString():void 0;var t}(e);return C(C({},e),{},{title:t})}return{label:null==e?void 0:e.toString(),title:null==e?void 0:e.toString(),value:e}}))}var uC=function(e){var n=e.prefixCls,r=e.className,o=e.disabled,i=e.checked,a=e.label,l=e.title,c=e.value,s=e.onChange;return t.createElement("label",{className:jo()(r,x({},"".concat(n,"-item-disabled"),o))},t.createElement("input",{className:"".concat(n,"-item-input"),type:"radio",disabled:o,checked:i,onChange:function(e){o||s(e,c)}}),t.createElement("div",{className:"".concat(n,"-item-label"),title:l},a))},fC=t.forwardRef((function(e,n){var r,o,i=e.prefixCls,a=void 0===i?"rc-segmented":i,l=e.direction,c=e.options,s=void 0===c?[]:c,u=e.disabled,f=e.defaultValue,d=e.value,p=e.onChange,h=e.className,v=void 0===h?"":h,m=e.motionName,g=void 0===m?"thumb-motion":m,b=qo(e,cC),y=t.useRef(null),w=t.useMemo((function(){return Mo(y,n)}),[y,n]),S=t.useMemo((function(){return sC(s)}),[s]),C=Y(Jo(null===(r=S[0])||void 0===r?void 0:r.value,{value:d,defaultValue:f}),2),k=C[0],E=C[1],O=Y(t.useState(!1),2),_=O[0],j=O[1],$=function(e,t){u||(E(t),null==p||p(t))},N=qc(b,["children"]);return t.createElement("div",ht({},N,{className:jo()(a,(o={},x(o,"".concat(a,"-rtl"),"rtl"===l),x(o,"".concat(a,"-disabled"),u),o),v),ref:w}),t.createElement("div",{className:"".concat(a,"-group")},t.createElement(lC,{prefixCls:a,value:k,containerRef:y,motionName:"".concat(a,"-").concat(g),direction:l,getValueIndex:function(e){return S.findIndex((function(t){return t.value===e}))},onMotionStart:function(){j(!0)},onMotionEnd:function(){j(!1)}}),S.map((function(e){return t.createElement(uC,ht({},e,{key:e.value,prefixCls:a,className:jo()(e.className,"".concat(a,"-item"),x({},"".concat(a,"-item-selected"),e.value===k&&!_)),checked:e.value===k,onChange:$,disabled:!!u||!!e.disabled}))}))))}));var dC=fC;function pC(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function hC(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const vC=Object.assign({overflow:"hidden"},sa),mC=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ua(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},hC(e)),{color:e.itemSelectedColor}),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:Ue(n),padding:`0 ${Ue(e.segmentedPaddingHorizontal)}`},vC),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},hC(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${Ue(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:Ue(r),padding:`0 ${Ue(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:o,lineHeight:Ue(o),padding:`0 ${Ue(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),pC(`&-disabled ${t}-item`,e)),pC(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}};var gC=Jl("Segmented",(e=>{const{lineWidth:t,calc:n}=e,r=Wl(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return[mC(r)]}),(e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:i,lineWidthBold:a,colorBgLayout:l}=e;return{trackPadding:a,trackBg:l,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:i,itemSelectedColor:n}})),bC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const yC=t.forwardRef(((e,n)=>{const{prefixCls:r,className:o,rootClassName:i,block:a,options:l=[],size:c="middle",style:s}=e,u=bC(e,["prefixCls","className","rootClassName","block","options","size","style"]),{getPrefixCls:f,direction:d,segmented:p}=t.useContext(F),h=f("segmented",r),[v,m,g]=gC(h),b=Qc(c),y=t.useMemo((()=>l.map((e=>{if(function(e){return"object"==typeof e&&!!(null==e?void 0:e.icon)}(e)){const{icon:n,label:r}=e,o=bC(e,["icon","label"]);return Object.assign(Object.assign({},o),{label:t.createElement(t.Fragment,null,t.createElement("span",{className:`${h}-item-icon`},n),r&&t.createElement("span",null,r))})}return e}))),[l,h]),w=jo()(o,i,null==p?void 0:p.className,{[`${h}-block`]:a,[`${h}-sm`]:"small"===b,[`${h}-lg`]:"large"===b},m,g),x=Object.assign(Object.assign({},null==p?void 0:p.style),s);return v(t.createElement(dC,Object.assign({},u,{className:w,style:x,options:y,ref:n,prefixCls:h,direction:d})))}));var wC=yC;const xC=t.createContext({}),SC=t.createContext({}),CC=e=>e instanceof eC?e:new eC(e),kC=e=>Math.round(Number(e||0)),EC=e=>kC(100*e.toHsb().a),OC=(e,t)=>{const n=e.toHsb();return n.a=t||1,CC(n)},_C=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat(X(e),[{percent:100,color:e[e.length-1].color}]);for(let e=0;e<n.length-1;e+=1){const r=n[e].percent,o=n[e+1].percent,i=n[e].color,a=n[e+1].color;if(r<=t&&t<=o){const e=o-r;if(0===e)return i;const n=(t-r)/e*100,l=new TS(i),c=new TS(a);return l.mix(c,n).toRgbString()}}return""};var jC,$C=e=>{let{prefixCls:n,value:r,onChange:o}=e;return t.createElement("div",{className:`${n}-clear`,onClick:()=>{if(o&&r&&!r.cleared){const e=r.toHsb();e.a=0;const t=CC(e);t.cleared=!0,o(t)}}})};!function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"}(jC||(jC={}));var NC=e=>{let{prefixCls:n,min:r=0,max:o=100,value:i,onChange:a,className:l,formatter:c}=e;const s=`${n}-steppers`,[u,f]=(0,t.useState)(i);return(0,t.useEffect)((()=>{Number.isNaN(i)||f(i)}),[i]),t.createElement(uS,{className:jo()(s,l),min:r,max:o,value:u,formatter:c,size:"small",onChange:e=>{i||f(e||0),null==a||a(e)}})};var PC=e=>{let{prefixCls:n,value:r,onChange:o}=e;const i=`${n}-alpha-input`,[a,l]=(0,t.useState)(CC(r||"#000"));(0,t.useEffect)((()=>{r&&l(r)}),[r]);return t.createElement(NC,{value:EC(a),prefixCls:n,formatter:e=>`${e}%`,className:i,onChange:e=>{const t=a.toHsb();t.a=(e||0)/100;const n=CC(t);r||l(n),null==o||o(n)}})};const IC=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i;var MC=e=>{let{prefixCls:n,value:r,onChange:o}=e;const i=`${n}-hex-input`,[a,l]=(0,t.useState)((()=>r?JS(r.toHexString()):void 0));(0,t.useEffect)((()=>{r&&l(JS(r.toHexString()))}),[r]);return t.createElement(mb,{className:i,value:a,prefix:"#",onChange:e=>{const t=e.target.value;var n;l(JS(t)),n=JS(t,!0),IC.test(`#${n}`)&&(null==o||o(CC(t)))},size:"small"})};var RC=e=>{let{prefixCls:n,value:r,onChange:o}=e;const i=`${n}-hsb-input`,[a,l]=(0,t.useState)(CC(r||"#000"));(0,t.useEffect)((()=>{r&&l(r)}),[r]);const c=(e,t)=>{const n=a.toHsb();n[t]="h"===t?e:(e||0)/100;const i=CC(n);r||l(i),null==o||o(i)};return t.createElement("div",{className:i},t.createElement(NC,{max:360,min:0,value:Number(a.toHsb().h),prefixCls:n,className:i,formatter:e=>kC(e||0).toString(),onChange:e=>c(Number(e),"h")}),t.createElement(NC,{max:100,min:0,value:100*Number(a.toHsb().s),prefixCls:n,className:i,formatter:e=>`${kC(e||0)}%`,onChange:e=>c(Number(e),"s")}),t.createElement(NC,{max:100,min:0,value:100*Number(a.toHsb().b),prefixCls:n,className:i,formatter:e=>`${kC(e||0)}%`,onChange:e=>c(Number(e),"b")}))};var AC=e=>{let{prefixCls:n,value:r,onChange:o}=e;const i=`${n}-rgb-input`,[a,l]=(0,t.useState)(CC(r||"#000"));(0,t.useEffect)((()=>{r&&l(r)}),[r]);const c=(e,t)=>{const n=a.toRgb();n[t]=e||0;const i=CC(n);r||l(i),null==o||o(i)};return t.createElement("div",{className:i},t.createElement(NC,{max:255,min:0,value:Number(a.toRgb().r),prefixCls:n,className:i,onChange:e=>c(Number(e),"r")}),t.createElement(NC,{max:255,min:0,value:Number(a.toRgb().g),prefixCls:n,className:i,onChange:e=>c(Number(e),"g")}),t.createElement(NC,{max:255,min:0,value:Number(a.toRgb().b),prefixCls:n,className:i,onChange:e=>c(Number(e),"b")}))};const TC=[jC.hex,jC.hsb,jC.rgb].map((e=>({value:e,label:e.toLocaleUpperCase()})));var qC=e=>{const{prefixCls:n,format:r,value:o,disabledAlpha:i,onFormatChange:a,onChange:l}=e,[c,s]=Jo(jC.hex,{value:r,onChange:a}),u=`${n}-input`,f=(0,t.useMemo)((()=>{const e={value:o,prefixCls:n,onChange:l};switch(c){case jC.hsb:return t.createElement(RC,Object.assign({},e));case jC.rgb:return t.createElement(AC,Object.assign({},e));default:return t.createElement(MC,Object.assign({},e))}}),[c,n,o,l]);return t.createElement("div",{className:`${u}-container`},t.createElement(Cx,{value:c,variant:"borderless",getPopupContainer:e=>e,popupMatchSelectWidth:68,placement:"bottomRight",onChange:e=>{s(e)},className:`${n}-format-select`,size:"small",options:TC}),t.createElement("div",{className:u},f),!i&&t.createElement(PC,{prefixCls:n,value:o,onChange:l}))};function DC(e,t,n){return(e-t)/(n-t)}function LC(e,t,n,r){var o=DC(t,n,r),i={};switch(e){case"rtl":i.right="".concat(100*o,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(100*o,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(100*o,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(100*o,"%"),i.transform="translateX(-50%)"}return i}function zC(e,t){return Array.isArray(e)?e[t]:e}var BC=t.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),FC=t.createContext({}),HC=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],WC=t.forwardRef((function(e,n){var r,o=e.prefixCls,i=e.value,a=e.valueIndex,l=e.onStartMove,c=e.onDelete,s=e.style,u=e.render,f=e.dragging,d=e.draggingDelete,p=e.onOffsetChange,h=e.onChangeComplete,v=e.onFocus,m=e.onMouseEnter,g=qo(e,HC),b=t.useContext(BC),y=b.min,w=b.max,S=b.direction,k=b.disabled,E=b.keyboard,O=b.range,_=b.tabIndex,j=b.ariaLabelForHandle,$=b.ariaLabelledByForHandle,N=b.ariaValueTextFormatterForHandle,P=b.styles,I=b.classNames,M="".concat(o,"-handle"),R=function(e){k||l(e,a)},A=LC(S,i,y,w),T={};null!==a&&(T={tabIndex:k?null:zC(_,a),role:"slider","aria-valuemin":y,"aria-valuemax":w,"aria-valuenow":i,"aria-disabled":k,"aria-label":zC(j,a),"aria-labelledby":zC($,a),"aria-valuetext":null===(r=zC(N,a))||void 0===r?void 0:r(i),"aria-orientation":"ltr"===S||"rtl"===S?"horizontal":"vertical",onMouseDown:R,onTouchStart:R,onFocus:function(e){null==v||v(e,a)},onMouseEnter:function(e){m(e,a)},onKeyDown:function(e){if(!k&&E){var t=null;switch(e.which||e.keyCode){case ll.LEFT:t="ltr"===S||"btt"===S?-1:1;break;case ll.RIGHT:t="ltr"===S||"btt"===S?1:-1;break;case ll.UP:t="ttb"!==S?1:-1;break;case ll.DOWN:t="ttb"!==S?-1:1;break;case ll.HOME:t="min";break;case ll.END:t="max";break;case ll.PAGE_UP:t=2;break;case ll.PAGE_DOWN:t=-2;break;case ll.BACKSPACE:case ll.DELETE:c(a)}null!==t&&(e.preventDefault(),p(t,a))}},onKeyUp:function(e){switch(e.which||e.keyCode){case ll.LEFT:case ll.RIGHT:case ll.UP:case ll.DOWN:case ll.HOME:case ll.END:case ll.PAGE_UP:case ll.PAGE_DOWN:null==h||h()}}});var q=t.createElement("div",ht({ref:n,className:jo()(M,x(x(x({},"".concat(M,"-").concat(a+1),null!==a&&O),"".concat(M,"-dragging"),f),"".concat(M,"-dragging-delete"),d),I.handle),style:C(C(C({},A),s),P.handle)},T,g));return u&&(q=u(q,{index:a,prefixCls:o,value:i,dragging:f,draggingDelete:d})),q}));var VC=WC,UC=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],GC=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.style,i=e.onStartMove,a=e.onOffsetChange,l=e.values,c=e.handleRender,s=e.activeHandleRender,u=e.draggingIndex,f=e.draggingDelete,d=e.onFocus,p=qo(e,UC),h=t.useRef({}),v=Y(t.useState(!1),2),m=v[0],g=v[1],b=Y(t.useState(-1),2),y=b[0],w=b[1],x=function(e){w(e),g(!0)};t.useImperativeHandle(n,(function(){return{focus:function(e){var t;null===(t=h.current[e])||void 0===t||t.focus()},hideHelp:function(){(0,E.flushSync)((function(){g(!1)}))}}}));var S=C({prefixCls:r,onStartMove:i,onOffsetChange:a,render:c,onFocus:function(e,t){x(t),null==d||d(e)},onMouseEnter:function(e,t){x(t)}},p);return t.createElement(t.Fragment,null,l.map((function(e,n){var r=u===n;return t.createElement(VC,ht({ref:function(e){e?h.current[n]=e:delete h.current[n]},dragging:r,draggingDelete:r&&f,style:zC(o,n),key:n,value:e,valueIndex:n},S))})),s&&m&&t.createElement(VC,ht({key:"a11y"},S,{value:l[y],valueIndex:null,dragging:-1!==u,draggingDelete:f,render:s,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}));var YC=GC,KC=function(e){var n=e.prefixCls,r=e.style,o=e.children,i=e.value,a=e.onClick,l=t.useContext(BC),c=l.min,s=l.max,u=l.direction,f=l.includedStart,d=l.includedEnd,p=l.included,h="".concat(n,"-text"),v=LC(u,i,c,s);return t.createElement("span",{className:jo()(h,x({},"".concat(h,"-active"),p&&f<=i&&i<=d)),style:C(C({},v),r),onMouseDown:function(e){e.stopPropagation()},onClick:function(){a(i)}},o)},XC=function(e){var n=e.prefixCls,r=e.marks,o=e.onClick,i="".concat(n,"-mark");return r.length?t.createElement("div",{className:i},r.map((function(e){var n=e.value,r=e.style,a=e.label;return t.createElement(KC,{key:n,prefixCls:i,style:r,value:n,onClick:o},a)}))):null},QC=function(e){var n=e.prefixCls,r=e.value,o=e.style,i=e.activeStyle,a=t.useContext(BC),l=a.min,c=a.max,s=a.direction,u=a.included,f=a.includedStart,d=a.includedEnd,p="".concat(n,"-dot"),h=u&&f<=r&&r<=d,v=C(C({},LC(s,r,l,c)),"function"==typeof o?o(r):o);return h&&(v=C(C({},v),"function"==typeof i?i(r):i)),t.createElement("span",{className:jo()(p,x({},"".concat(p,"-active"),h)),style:v})},ZC=function(e){var n=e.prefixCls,r=e.marks,o=e.dots,i=e.style,a=e.activeStyle,l=t.useContext(BC),c=l.min,s=l.max,u=l.step,f=t.useMemo((function(){var e=new Set;if(r.forEach((function(t){e.add(t.value)})),o&&null!==u)for(var t=c;t<=s;)e.add(t),t+=u;return Array.from(e)}),[c,s,u,o,r]);return t.createElement("div",{className:"".concat(n,"-step")},f.map((function(e){return t.createElement(QC,{prefixCls:n,key:e,value:e,style:i,activeStyle:a})})))},JC=function(e){var n=e.prefixCls,r=e.style,o=e.start,i=e.end,a=e.index,l=e.onStartMove,c=e.replaceCls,s=t.useContext(BC),u=s.direction,f=s.min,d=s.max,p=s.disabled,h=s.range,v=s.classNames,m="".concat(n,"-track"),g=DC(o,f,d),b=DC(i,f,d),y=function(e){!p&&l&&l(e,-1)},w={};switch(u){case"rtl":w.right="".concat(100*g,"%"),w.width="".concat(100*b-100*g,"%");break;case"btt":w.bottom="".concat(100*g,"%"),w.height="".concat(100*b-100*g,"%");break;case"ttb":w.top="".concat(100*g,"%"),w.height="".concat(100*b-100*g,"%");break;default:w.left="".concat(100*g,"%"),w.width="".concat(100*b-100*g,"%")}var S=c||jo()(m,x(x({},"".concat(m,"-").concat(a+1),null!==a&&h),"".concat(n,"-track-draggable"),l),v.track);return t.createElement("div",{className:S,style:C(C({},w),r),onMouseDown:y,onTouchStart:y})},ek=function(e){var n=e.prefixCls,r=e.style,o=e.values,i=e.startPoint,a=e.onStartMove,l=t.useContext(BC),c=l.included,s=l.range,u=l.min,f=l.styles,d=l.classNames,p=t.useMemo((function(){if(!s){if(0===o.length)return[];var e=null!=i?i:u,t=o[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}for(var n=[],r=0;r<o.length-1;r+=1)n.push({start:o[r],end:o[r+1]});return n}),[o,s,i,u]);if(!c)return null;var h=d.tracks||f.tracks?t.createElement(JC,{index:null,prefixCls:n,start:p[0].start,end:p[p.length-1].end,replaceCls:jo()(d.tracks,"".concat(n,"-tracks")),style:f.tracks}):null;return t.createElement(t.Fragment,null,h,p.map((function(e,o){var i=e.start,l=e.end;return t.createElement(JC,{index:o,prefixCls:n,style:C(C({},zC(r,o)),f.track),start:i,end:l,key:o,onStartMove:a})})))};function tk(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}var nk=function(e,n,r,o,i,a,l,c,s,u,f){var d=Y(t.useState(null),2),p=d[0],h=d[1],v=Y(t.useState(-1),2),m=v[0],g=v[1],b=Y(t.useState(!1),2),y=b[0],w=b[1],x=Y(t.useState(r),2),S=x[0],C=x[1],k=Y(t.useState(r),2),E=k[0],O=k[1],_=t.useRef(null),j=t.useRef(null),$=t.useContext(FC),N=$.onDragStart,P=$.onDragChange;t.useLayoutEffect((function(){-1===m&&C(r)}),[r,m]),t.useEffect((function(){return function(){document.removeEventListener("mousemove",_.current),document.removeEventListener("mouseup",j.current),document.removeEventListener("touchmove",_.current),document.removeEventListener("touchend",j.current)}}),[]);var I=function(e,t,n){void 0!==t&&h(t),C(e);var r=e;n&&(r=e.filter((function(e,t){return t!==m}))),l(r),P&&P({rawValues:e,deleteIndex:n?m:-1,draggingIndex:m,draggingValue:t})},M=Xo((function(e,t,n){if(-1===e){var r=E[0],l=E[E.length-1],c=o-r,u=i-l,f=t*(i-o);f=Math.max(f,c),f=Math.min(f,u);var d=a(r+f);f=d-r;var p=E.map((function(e){return e+f}));I(p)}else{var h=(i-o)*t,v=X(S);v[e]=E[e];var m=s(v,h,e,"dist");I(m.values,m.value,n)}})),R=t.useMemo((function(){var e=X(r).sort((function(e,t){return e-t})),t=X(S).sort((function(e,t){return e-t})),n={};t.forEach((function(e){n[e]=(n[e]||0)+1})),e.forEach((function(e){n[e]=(n[e]||0)-1}));var o=u?1:0,i=Object.values(n).reduce((function(e,t){return e+Math.abs(t)}),0);return i<=o?S:r}),[r,S,u]);return[m,p,y,R,function(t,o,i){t.stopPropagation();var a=i||r,l=a[o];g(o),h(l),O(a),C(a),w(!1);var s=tk(t),d=s.pageX,p=s.pageY,v=!1;N&&N({rawValues:a,draggingIndex:o,draggingValue:l});var m=function(t){t.preventDefault();var r,i,a=tk(t),l=a.pageX,c=a.pageY,s=l-d,h=c-p,m=e.current.getBoundingClientRect(),g=m.width,b=m.height;switch(n){case"btt":r=-h/b,i=s;break;case"ttb":r=h/b,i=s;break;case"rtl":r=-s/g,i=h;break;default:r=s/g,i=h}v=!!u&&(Math.abs(i)>130&&f<S.length),w(v),M(o,r,v)},b=function e(t){t.preventDefault(),document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",m),document.removeEventListener("touchend",e),document.removeEventListener("touchmove",m),_.current=null,j.current=null,c(v),g(-1),w(!1)};document.addEventListener("mouseup",b),document.addEventListener("mousemove",m),document.addEventListener("touchend",b),document.addEventListener("touchmove",m),_.current=m,j.current=b}]};var rk=t.forwardRef((function(e,n){var r=e.prefixCls,o=void 0===r?"rc-slider":r,i=e.className,a=e.style,l=e.classNames,c=e.styles,s=e.disabled,u=void 0!==s&&s,f=e.keyboard,d=void 0===f||f,p=e.autoFocus,h=e.onFocus,v=e.onBlur,g=e.min,b=void 0===g?0:g,y=e.max,w=void 0===y?100:y,S=e.step,k=void 0===S?1:S,E=e.value,O=e.defaultValue,_=e.range,j=e.count,$=e.onChange,N=e.onBeforeChange,P=e.onAfterChange,I=e.onChangeComplete,M=e.allowCross,R=void 0===M||M,A=e.pushable,T=void 0!==A&&A,q=e.reverse,D=e.vertical,L=e.included,z=void 0===L||L,B=e.startPoint,F=e.trackStyle,H=e.handleStyle,W=e.railStyle,V=e.dotStyle,U=e.activeDotStyle,G=e.marks,K=e.dots,Q=e.handleRender,Z=e.activeHandleRender,J=e.track,ee=e.tabIndex,te=void 0===ee?0:ee,ne=e.ariaLabelForHandle,re=e.ariaLabelledByForHandle,oe=e.ariaValueTextFormatterForHandle,ie=t.useRef(null),ae=t.useRef(null),le=t.useMemo((function(){return D?q?"ttb":"btt":q?"rtl":"ltr"}),[q,D]),ce=function(e){return(0,t.useMemo)((function(){if(!0===e||!e)return[!!e,!1,!1,0];var t=e.editable,n=e.draggableTrack;return[!0,t,!t&&n,e.minCount||0,e.maxCount]}),[e])}(_),se=Y(ce,5),ue=se[0],fe=se[1],de=se[2],pe=se[3],he=se[4],ve=t.useMemo((function(){return isFinite(b)?b:0}),[b]),me=t.useMemo((function(){return isFinite(w)?w:100}),[w]),ge=t.useMemo((function(){return null!==k&&k<=0?1:k}),[k]),be=t.useMemo((function(){return"boolean"==typeof T?!!T&&ge:T>=0&&T}),[T,ge]),xe=t.useMemo((function(){return Object.keys(G||{}).map((function(e){var n=G[e],r={value:Number(e)};return n&&"object"===m(n)&&!t.isValidElement(n)&&("label"in n||"style"in n)?(r.style=n.style,r.label=n.label):r.label=n,r})).filter((function(e){var t=e.label;return t||"number"==typeof t})).sort((function(e,t){return e.value-t.value}))}),[G]),Se=function(e,n,r,o,i,a){var l=t.useCallback((function(t){return Math.max(e,Math.min(n,t))}),[e,n]),c=t.useCallback((function(t){if(null!==r){var o=e+Math.round((l(t)-e)/r)*r,i=function(e){return(String(e).split(".")[1]||"").length},a=Math.max(i(r),i(n),i(e)),c=Number(o.toFixed(a));return e<=c&&c<=n?c:null}return null}),[r,e,n,l]),s=t.useCallback((function(t){var i=l(t),a=o.map((function(e){return e.value}));null!==r&&a.push(c(t)),a.push(e,n);var s=a[0],u=n-e;return a.forEach((function(e){var t=Math.abs(i-e);t<=u&&(s=e,u=t)})),s}),[e,n,o,r,l,c]),u=function t(i,a,l){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit";if("number"==typeof a){var u,f=i[l],d=f+a,p=[];o.forEach((function(e){p.push(e.value)})),p.push(e,n),p.push(c(f));var h=a>0?1:-1;"unit"===s?p.push(c(f+h*r)):p.push(c(d)),p=p.filter((function(e){return null!==e})).filter((function(e){return a<0?e<=f:e>=f})),"unit"===s&&(p=p.filter((function(e){return e!==f})));var v="unit"===s?f:d;u=p[0];var m=Math.abs(u-v);if(p.forEach((function(e){var t=Math.abs(e-v);t<m&&(u=e,m=t)})),void 0===u)return a<0?e:n;if("dist"===s)return u;if(Math.abs(a)>1){var g=X(i);return g[l]=u,t(g,a-h,l,s)}return u}return"min"===a?e:"max"===a?n:void 0},f=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",o=e[n],i=u(e,t,n,r);return{value:i,changed:i!==o}},d=function(e){return null===a&&0===e||"number"==typeof a&&e<a};return[s,function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",o=e.map(s),l=o[n],c=u(o,t,n,r);if(o[n]=c,!1===i){var p=a||0;n>0&&o[n-1]!==l&&(o[n]=Math.max(o[n],o[n-1]+p)),n<o.length-1&&o[n+1]!==l&&(o[n]=Math.min(o[n],o[n+1]-p))}else if("number"==typeof a||null===a){for(var h=n+1;h<o.length;h+=1)for(var v=!0;d(o[h]-o[h-1])&&v;){var m=f(o,1,h);o[h]=m.value,v=m.changed}for(var g=n;g>0;g-=1)for(var b=!0;d(o[g]-o[g-1])&&b;){var y=f(o,-1,g-1);o[g-1]=y.value,b=y.changed}for(var w=o.length-1;w>0;w-=1)for(var x=!0;d(o[w]-o[w-1])&&x;){var S=f(o,-1,w-1);o[w-1]=S.value,x=S.changed}for(var C=0;C<o.length-1;C+=1)for(var k=!0;d(o[C+1]-o[C])&&k;){var E=f(o,1,C+1);o[C+1]=E.value,k=E.changed}}return{value:o[n],values:o}}]}(ve,me,ge,xe,R,be),Ce=Y(Se,2),ke=Ce[0],Ee=Ce[1],Oe=Y(Jo(O,{value:E}),2),_e=Oe[0],je=Oe[1],$e=t.useMemo((function(){var e=null==_e?[]:Array.isArray(_e)?_e:[_e],t=Y(e,1)[0],n=null===_e?[]:[void 0===t?ve:t];if(ue){if(n=X(e),j||void 0===_e){var r=j>=0?j+1:2;for(n=n.slice(0,r);n.length<r;){var o;n.push(null!==(o=n[n.length-1])&&void 0!==o?o:ve)}}n.sort((function(e,t){return e-t}))}return n.forEach((function(e,t){n[t]=ke(e)})),n}),[_e,ue,ve,j,ke]),Ne=function(e){return ue?e:e[0]},Pe=Xo((function(e){var t=X(e).sort((function(e,t){return e-t}));$&&!we(t,$e,!0)&&$(Ne(t)),je(t)})),Ie=Xo((function(e){e&&ie.current.hideHelp();var t=Ne($e);null==P||P(t),ye(!P,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),null==I||I(t)})),Me=Y(nk(ae,le,$e,ve,me,ke,Pe,Ie,Ee,fe,pe),5),Re=Me[0],Ae=Me[1],Te=Me[2],qe=Me[3],De=Me[4],Le=function(e,t){if(!u){var n=X($e),r=0,o=0,i=me-ve;$e.forEach((function(t,n){var a=Math.abs(e-t);a<=i&&(i=a,r=n),t<e&&(o=n)}));var a=r;fe&&0!==i&&(!he||$e.length<he)?(n.splice(o+1,0,e),a=o+1):n[r]=e,ue&&!$e.length&&void 0===j&&n.push(e);var l,c,s=Ne(n);if(null==N||N(s),Pe(n),t)null===(l=document.activeElement)||void 0===l||null===(c=l.blur)||void 0===c||c.call(l),ie.current.focus(a),De(t,a,n);else null==P||P(s),ye(!P,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),null==I||I(s)}},ze=Y(t.useState(null),2),Be=ze[0],Fe=ze[1];t.useEffect((function(){if(null!==Be){var e=$e.indexOf(Be);e>=0&&ie.current.focus(e)}Fe(null)}),[Be]);var He=t.useMemo((function(){return(!de||null!==ge)&&de}),[de,ge]),We=Xo((function(e,t){De(e,t),null==N||N(Ne($e))})),Ve=-1!==Re;t.useEffect((function(){if(!Ve){var e=$e.lastIndexOf(Ae);ie.current.focus(e)}}),[Ve]);var Ue=t.useMemo((function(){return X(qe).sort((function(e,t){return e-t}))}),[qe]),Ge=Y(t.useMemo((function(){return ue?[Ue[0],Ue[Ue.length-1]]:[ve,Ue[0]]}),[Ue,ue,ve]),2),Ye=Ge[0],Ke=Ge[1];t.useImperativeHandle(n,(function(){return{focus:function(){ie.current.focus(0)},blur:function(){var e,t=document.activeElement;null!==(e=ae.current)&&void 0!==e&&e.contains(t)&&(null==t||t.blur())}}})),t.useEffect((function(){p&&ie.current.focus(0)}),[]);var Xe=t.useMemo((function(){return{min:ve,max:me,direction:le,disabled:u,keyboard:d,step:ge,included:z,includedStart:Ye,includedEnd:Ke,range:ue,tabIndex:te,ariaLabelForHandle:ne,ariaLabelledByForHandle:re,ariaValueTextFormatterForHandle:oe,styles:c||{},classNames:l||{}}}),[ve,me,le,u,d,ge,z,Ye,Ke,ue,te,ne,re,oe,c,l]);return t.createElement(BC.Provider,{value:Xe},t.createElement("div",{ref:ae,className:jo()(o,i,x(x(x(x({},"".concat(o,"-disabled"),u),"".concat(o,"-vertical"),D),"".concat(o,"-horizontal"),!D),"".concat(o,"-with-marks"),xe.length)),style:a,onMouseDown:function(e){e.preventDefault();var t,n=ae.current.getBoundingClientRect(),r=n.width,o=n.height,i=n.left,a=n.top,l=n.bottom,c=n.right,s=e.clientX,u=e.clientY;switch(le){case"btt":t=(l-u)/o;break;case"ttb":t=(u-a)/o;break;case"rtl":t=(c-s)/r;break;default:t=(s-i)/r}Le(ke(ve+t*(me-ve)),e)}},t.createElement("div",{className:jo()("".concat(o,"-rail"),null==l?void 0:l.rail),style:C(C({},W),null==c?void 0:c.rail)}),!1!==J&&t.createElement(ek,{prefixCls:o,style:F,values:$e,startPoint:B,onStartMove:He?We:void 0}),t.createElement(ZC,{prefixCls:o,marks:xe,dots:K,style:V,activeStyle:U}),t.createElement(YC,{ref:ie,prefixCls:o,style:H,values:qe,draggingIndex:Re,draggingDelete:Te,onStartMove:We,onOffsetChange:function(e,t){if(!u){var n=Ee($e,e,t);null==N||N(Ne($e)),Pe(n.values),Fe(n.value)}},onFocus:h,onBlur:v,handleRender:Q,activeHandleRender:Z,onChangeComplete:Ie,onDelete:fe?function(e){if(!(u||!fe||$e.length<=pe)){var t=X($e);t.splice(e,1),null==N||N(Ne(t)),Pe(t);var n=Math.max(0,e-1);ie.current.hideHelp(),ie.current.focus(n)}}:void 0}),t.createElement(XC,{prefixCls:o,marks:xe,onClick:Le})))}));var ok=rk;var ik=t.forwardRef(((e,n)=>{const{open:r,draggingDelete:o}=e,i=(0,t.useRef)(null),a=r&&!o,l=(0,t.useRef)(null);function c(){Ni.cancel(l.current),l.current=null}return t.useEffect((()=>(a?l.current=Ni((()=>{var e;null===(e=i.current)||void 0===e||e.forceAlign(),l.current=null})):c(),c)),[a,e.title]),t.createElement(rh,Object.assign({ref:Mo(i,n)},e,{open:a}))}));const ak=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:l,handleColorDisabled:c,calc:s,handleSize:u,handleSizeHover:f,handleActiveColor:d,handleActiveOutlineColor:p,handleLineWidth:h,handleLineWidthHover:v,motionDurationMid:m}=e;return{[t]:Object.assign(Object.assign({},ua(e)),{position:"relative",height:r,margin:`${Ue(a)} ${Ue(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${Ue(i)} ${Ue(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${m}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${m}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${Ue(h)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:s(h).mul(-1).equal(),insetBlockStart:s(h).mul(-1).equal(),width:s(u).add(s(h).mul(2)).equal(),height:s(u).add(s(h).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${Ue(h)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`\n inset-inline-start ${m},\n inset-block-start ${m},\n width ${m},\n height ${m},\n box-shadow ${m},\n outline ${m}\n `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:s(f).sub(u).div(2).add(v).mul(-1).equal(),insetBlockStart:s(f).sub(u).div(2).add(v).mul(-1).equal(),width:s(f).add(s(v).mul(2)).equal(),height:s(f).add(s(v).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${Ue(v)} ${d}`,outline:`6px solid ${p}`,width:f,height:f,insetInlineStart:e.calc(u).sub(f).div(2).equal(),insetBlockStart:e.calc(u).sub(f).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${Ue(h)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`\n ${t}-dot\n `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${Ue(h)} ${c}`,insetInlineStart:0,insetBlockStart:0},[`\n ${t}-mark-text,\n ${t}-dot\n `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},lk=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i,marginFull:a,calc:l}=e,c=t?"paddingBlock":"paddingInline",s=t?"width":"height",u=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",d=t?"top":"insetInlineStart",p=l(r).mul(3).sub(o).div(2).equal(),h=l(o).sub(r).div(2).equal(),v=t?{borderWidth:`${Ue(h)} 0`,transform:`translateY(${Ue(l(h).mul(-1).equal())})`}:{borderWidth:`0 ${Ue(h)}`,transform:`translateX(${Ue(e.calc(h).mul(-1).equal())})`};return{[c]:r,[u]:l(r).mul(3).equal(),[`${n}-rail`]:{[s]:"100%",[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:Object.assign({},v),[`${n}-handle`]:{[f]:p},[`${n}-mark`]:{insetInlineStart:0,top:0,[d]:l(r).mul(3).add(t?0:a).equal(),[s]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[d]:r,[s]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[f]:l(r).sub(i).div(2).equal()}}},ck=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},lk(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},sk=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},lk(e,!1)),{height:"100%"})}};var uk=Jl("Slider",(e=>{const t=Wl(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[ak(t),ck(t),sk(t)]}),(e=>{const t=e.controlHeightLG/4,n=e.controlHeightSM/2,r=e.lineWidth+1,o=e.lineWidth+1.5,i=e.colorPrimary,a=new no(i).setAlpha(.2).toRgbString();return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:n,dotSize:8,handleLineWidth:r,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:i,handleActiveOutlineColor:a,handleColorDisabled:new no(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}}));var fk=(0,t.createContext)({});function dk(){const[e,n]=t.useState(!1),r=t.useRef(),o=()=>{Ni.cancel(r.current)};return t.useEffect((()=>o),[]),[e,e=>{o(),e?n(e):r.current=Ni((()=>{n(e)}))}]}var pk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const hk=t.forwardRef(((e,n)=>{const{prefixCls:r,range:o,className:i,rootClassName:a,style:l,disabled:c,tooltipPrefixCls:s,tipFormatter:u,tooltipVisible:f,getTooltipPopupContainer:d,tooltipPlacement:p,tooltip:h={},onChangeComplete:v}=e,m=pk(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete"]),{vertical:g}=e,{direction:b,slider:y,getPrefixCls:w,getPopupContainer:x}=t.useContext(F),S=t.useContext(yo),C=null!=c?c:S,{handleRender:k,direction:E}=t.useContext(fk),O="rtl"===(E||b),[_,j]=dk(),[$,N]=dk(),P=Object.assign({},h),{open:I,placement:M,getPopupContainer:R,prefixCls:A,formatter:T}=P,q=null!=I?I:f,D=(_||$)&&!1!==q,L=function(e,t){return e||null===e?e:t||null===t?t:e=>"number"==typeof e?e.toString():""}(T,u),[z,B]=dk(),H=(e,t)=>e||(t?O?"left":"right":"top"),W=w("slider",r),[V,U,G]=uk(W),Y=jo()(i,null==y?void 0:y.className,a,{[`${W}-rtl`]:O,[`${W}-lock`]:z},U,G);O&&!m.vertical&&(m.reverse=!m.reverse),t.useEffect((()=>{const e=()=>{Ni((()=>{N(!1)}),1)};return document.addEventListener("mouseup",e),()=>{document.removeEventListener("mouseup",e)}}),[]);const K=o&&!q,X=k||((e,n)=>{const{index:r}=n,o=e.props;function i(e,t,n){var r,i,a,l;n&&(null===(i=(r=m)[e])||void 0===i||i.call(r,t)),null===(l=(a=o)[e])||void 0===l||l.call(a,t)}const a=Object.assign(Object.assign({},o),{onMouseEnter:e=>{j(!0),i("onMouseEnter",e)},onMouseLeave:e=>{j(!1),i("onMouseLeave",e)},onMouseDown:e=>{N(!0),B(!0),i("onMouseDown",e)},onFocus:e=>{var t;N(!0),null===(t=m.onFocus)||void 0===t||t.call(m,e),i("onFocus",e,!0)},onBlur:e=>{var t;N(!1),null===(t=m.onBlur)||void 0===t||t.call(m,e),i("onBlur",e,!0)}}),l=t.cloneElement(e,a),c=(!!q||D)&&null!==L;return K?l:t.createElement(ik,Object.assign({},P,{prefixCls:w("tooltip",null!=A?A:s),title:L?L(n.value):"",open:c,placement:H(null!=M?M:p,g),key:r,overlayClassName:`${W}-tooltip`,getPopupContainer:R||d||x}),l)}),Q=K?(e,n)=>{const r=t.cloneElement(e,{style:Object.assign(Object.assign({},e.props.style),{visibility:"hidden"})});return t.createElement(ik,Object.assign({},P,{prefixCls:w("tooltip",null!=A?A:s),title:L?L(n.value):"",open:null!==L&&D,placement:H(null!=M?M:p,g),key:"tooltip",overlayClassName:`${W}-tooltip`,getPopupContainer:R||d||x,draggingDelete:n.draggingDelete}),r)}:void 0,Z=Object.assign(Object.assign({},null==y?void 0:y.style),l);return V(t.createElement(ok,Object.assign({},m,{step:m.step,range:o,className:Y,style:Z,disabled:C,ref:n,prefixCls:W,handleRender:X,activeHandleRender:Q,onChangeComplete:e=>{null==v||v(e),B(!1)}})))}));var vk=hk,mk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const gk=e=>{const{prefixCls:n,colors:r,type:o,color:i,range:a=!1,className:l,activeIndex:c,onActive:s,onDragStart:u,onDragChange:f,onKeyDelete:d}=e,p=mk(e,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),h=Object.assign(Object.assign({},p),{track:!1}),v=t.useMemo((()=>`linear-gradient(90deg, ${r.map((e=>`${e.color} ${e.percent}%`)).join(", ")})`),[r]),m=t.useMemo((()=>i&&o?"alpha"===o?i.toRgbString():`hsl(${i.toHsb().h}, 100%, 50%)`:null),[i,o]),g=Xo(u),b=Xo(f),y=t.useMemo((()=>({onDragStart:g,onDragChange:b})),[]),w=Xo(((e,i)=>{const{onFocus:a,style:l,className:u,onKeyDown:f}=e.props,p=Object.assign({},l);return"gradient"===o&&(p.background=_C(r,i.value)),t.cloneElement(e,{onFocus:e=>{null==s||s(i.index),null==a||a(e)},style:p,className:jo()(u,{[`${n}-slider-handle-active`]:c===i.index}),onKeyDown:e=>{"Delete"!==e.key&&"Backspace"!==e.key||!d||d(i.index),null==f||f(e)}})})),x=t.useMemo((()=>({direction:"ltr",handleRender:w})),[]);return t.createElement(fk.Provider,{value:x},t.createElement(FC.Provider,{value:y},t.createElement(vk,Object.assign({},h,{className:jo()(l,`${n}-slider`),tooltip:{open:!1},range:{editable:a,minCount:2},styles:{rail:{background:v},handle:m?{background:m}:{}},classNames:{rail:`${n}-slider-rail`,handle:`${n}-slider-handle`}}))))};var bk=e=>{const{value:n,onChange:r,onChangeComplete:o}=e;return t.createElement(gk,Object.assign({},e,{value:[n],onChange:e=>r(e[0]),onChangeComplete:e=>o(e[0])}))};function yk(e){return X(e).sort(((e,t)=>e.percent-t.percent))}const wk=e=>{const{prefixCls:n,mode:r,onChange:o,onChangeComplete:i,onActive:a,activeIndex:l,onGradientDragging:c,colors:s}=e,u="gradient"===r,f=t.useMemo((()=>s.map((e=>({percent:e.percent,color:e.color.toRgbString()})))),[s]),d=t.useMemo((()=>f.map((e=>e.percent))),[f]),p=t.useRef(f);return u?t.createElement(gk,{min:0,max:100,prefixCls:n,className:`${n}-gradient-slider`,colors:f,color:null,value:d,range:!0,onChangeComplete:e=>{i(new eC(f)),l>=e.length&&a(e.length-1),c(!1)},disabled:!1,type:"gradient",activeIndex:l,onActive:a,onDragStart:e=>{let{rawValues:t,draggingIndex:n,draggingValue:r}=e;if(t.length>f.length){const e=_C(f,r),t=X(f);t.splice(n,0,{percent:r,color:e}),p.current=t}else p.current=f;c(!0),o(new eC(yk(p.current)),!0)},onDragChange:e=>{let{deleteIndex:t,draggingIndex:n,draggingValue:r}=e,i=X(p.current);-1!==t?i.splice(t,1):(i[n]=Object.assign(Object.assign({},i[n]),{percent:r}),i=yk(i)),o(new eC(i),!0)},onKeyDelete:e=>{const t=X(f);t.splice(e,1);const n=new eC(t);o(n),i(n)}}):null};var xk=t.memo(wk),Sk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ck={slider:bk};var kk=()=>{const e=(0,t.useContext)(xC),{mode:n,onModeChange:r,modeOptions:o,prefixCls:i,allowClear:a,value:l,disabledAlpha:c,onChange:s,onClear:u,onChangeComplete:f,activeIndex:d,gradientDragging:p}=e,h=Sk(e,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),v=t.useMemo((()=>l.cleared?[{percent:0,color:new eC("")},{percent:100,color:new eC("")}]:l.getColors()),[l]),m=!l.isGradient(),[g,b]=t.useState(l);et((()=>{var e;m||b(null===(e=v[d])||void 0===e?void 0:e.color)}),[p,d]);const y=t.useMemo((()=>{var e;return m?l:p?g:null===(e=v[d])||void 0===e?void 0:e.color}),[l,d,m,g,p]),w=e=>{if("single"===n)return e;const t=X(v);return t[d]=Object.assign(Object.assign({},t[d]),{color:e}),new eC(t)},x=(e,t,n)=>{let r=CC(e);if(l.cleared){const e=r.toRgb();if(e.r||e.g||e.b||!n)r=OC(r);else{const{type:e,value:t=0}=n;r=new eC({h:"hue"===e?t:0,s:1,b:1,a:"alpha"===e?t/100:1})}}s(w(r),t)};let S=null;const C=o.length>1;return(a||C)&&(S=t.createElement("div",{className:`${i}-operation`},C&&t.createElement(wC,{size:"small",options:o,value:n,onChange:r}),t.createElement($C,Object.assign({prefixCls:i,value:l,onChange:e=>{s(e),null==u||u()}},h)))),t.createElement(t.Fragment,null,S,t.createElement(xk,Object.assign({},e,{colors:v})),t.createElement(ZS,{prefixCls:i,value:null==y?void 0:y.toHsb(),disabledAlpha:c,onChange:(e,t)=>{x(e,!0,t)},onChangeComplete:e=>{var t;t=CC(e),f(w(t))},components:Ck}),t.createElement(qC,Object.assign({value:y,onChange:x,prefixCls:i,disabledAlpha:c},h)))},Ek={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Ok=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:Ek}))};var _k=t.forwardRef(Ok),jk=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.forceRender,i=e.className,a=e.style,l=e.children,c=e.isActive,s=e.role,u=Y(t.useState(c||o),2),f=u[0],d=u[1];return t.useEffect((function(){(o||c)&&d(!0)}),[o,c]),f?t.createElement("div",{ref:n,className:jo()("".concat(r,"-content"),x(x({},"".concat(r,"-content-active"),c),"".concat(r,"-content-inactive"),!c),i),style:a,role:s},t.createElement("div",{className:"".concat(r,"-content-box")},l)):null}));jk.displayName="PanelContent";var $k=jk,Nk=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],Pk=t.forwardRef((function(e,n){var r=e.showArrow,o=void 0===r||r,i=e.headerClass,a=e.isActive,l=e.onItemClick,c=e.forceRender,s=e.className,u=e.prefixCls,f=e.collapsible,d=e.accordion,p=e.panelKey,h=e.extra,v=e.header,m=e.expandIcon,g=e.openMotion,b=e.destroyInactivePanel,y=e.children,w=qo(e,Nk),S="disabled"===f,C="header"===f,k="icon"===f,E=null!=h&&"boolean"!=typeof h,O=function(){null==l||l(p)},_="function"==typeof m?m(e):t.createElement("i",{className:"arrow"});_&&(_=t.createElement("div",{className:"".concat(u,"-expand-icon"),onClick:["header","icon"].includes(f)?O:void 0},_));var j=jo()(x(x(x({},"".concat(u,"-item"),!0),"".concat(u,"-item-active"),a),"".concat(u,"-item-disabled"),S),s),$={className:jo()(i,x(x(x({},"".concat(u,"-header"),!0),"".concat(u,"-header-collapsible-only"),C),"".concat(u,"-icon-collapsible-only"),k)),"aria-expanded":a,"aria-disabled":S,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==ll.ENTER&&e.which!==ll.ENTER||O()}};return C||k||($.onClick=O,$.role=d?"tab":"button",$.tabIndex=S?-1:0),t.createElement("div",ht({},w,{ref:n,className:j}),t.createElement("div",$,o&&_,t.createElement("span",{className:"".concat(u,"-header-text"),onClick:"header"===f?O:void 0},v),E&&t.createElement("div",{className:"".concat(u,"-extra")},h)),t.createElement(Ki,ht({visible:a,leavedClassName:"".concat(u,"-content-hidden")},g,{forceRender:c,removeOnLeave:b}),(function(e,n){var r=e.className,o=e.style;return t.createElement($k,{ref:n,prefixCls:u,className:r,style:o,isActive:a,forceRender:c,role:d?"tabpanel":void 0},y)})))})),Ik=Pk,Mk=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];var Rk=function(e,n,r){return Array.isArray(e)?function(e,n){var r=n.prefixCls,o=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,l=n.onItemClick,c=n.activeKey,s=n.openMotion,u=n.expandIcon;return e.map((function(e,n){var f=e.children,d=e.label,p=e.key,h=e.collapsible,v=e.onItemClick,m=e.destroyInactivePanel,g=qo(e,Mk),b=String(null!=p?p:n),y=null!=h?h:i,w=null!=m?m:a,x=!1;return x=o?c[0]===b:c.indexOf(b)>-1,t.createElement(Ik,ht({},g,{prefixCls:r,key:b,panelKey:b,isActive:x,accordion:o,openMotion:s,expandIcon:u,header:d,collapsible:y,onItemClick:function(e){"disabled"!==y&&(l(e),null==v||v(e))},destroyInactivePanel:w}),f)}))}(e,r):Zc(n).map((function(e,n){return function(e,n,r){if(!e)return null;var o=r.prefixCls,i=r.accordion,a=r.collapsible,l=r.destroyInactivePanel,c=r.onItemClick,s=r.activeKey,u=r.openMotion,f=r.expandIcon,d=e.key||String(n),p=e.props,h=p.header,v=p.headerClass,m=p.destroyInactivePanel,g=p.collapsible,b=p.onItemClick,y=!1;y=i?s[0]===d:s.indexOf(d)>-1;var w=null!=g?g:a,x={key:d,panelKey:d,header:h,headerClass:v,isActive:y,prefixCls:o,destroyInactivePanel:null!=m?m:l,openMotion:u,accordion:i,children:e.props.children,onItemClick:function(e){"disabled"!==w&&(c(e),null==b||b(e))},expandIcon:f,collapsible:w};return"string"==typeof e.type?e:(Object.keys(x).forEach((function(e){void 0===x[e]&&delete x[e]})),t.cloneElement(e,x))}(e,n,r)}))};function Ak(e){var t=e;if(!Array.isArray(t)){var n=m(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var Tk=t.forwardRef((function(e,n){var r=e.prefixCls,o=void 0===r?"rc-collapse":r,i=e.destroyInactivePanel,a=void 0!==i&&i,l=e.style,c=e.accordion,s=e.className,u=e.children,f=e.collapsible,d=e.openMotion,p=e.expandIcon,h=e.activeKey,v=e.defaultActiveKey,m=e.onChange,g=e.items,b=jo()(o,s),y=Y(Jo([],{value:h,onChange:function(e){return null==m?void 0:m(e)},defaultValue:v,postState:Ak}),2),w=y[0],x=y[1];ye(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var S=Rk(g,u,{prefixCls:o,accordion:c,openMotion:d,expandIcon:p,collapsible:f,destroyInactivePanel:a,onItemClick:function(e){return x((function(){return c?w[0]===e?[]:[e]:w.indexOf(e)>-1?w.filter((function(t){return t!==e})):[].concat(X(w),[e])}))},activeKey:w});return t.createElement("div",ht({ref:n,className:b,style:l,role:c?"tablist":void 0},dl(e,{aria:!0,data:!0})),S)})),qk=Object.assign(Tk,{Panel:Ik}),Dk=qk;qk.Panel;var Lk=t.forwardRef(((e,n)=>{const{getPrefixCls:r}=t.useContext(F),{prefixCls:o,className:i,showArrow:a=!0}=e,l=r("collapse",o),c=jo()({[`${l}-no-arrow`]:!a},i);return t.createElement(Dk.Panel,Object.assign({ref:n},e,{prefixCls:l,className:c}))}));var zk=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}});const Bk=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:s,lineType:u,colorBorder:f,colorText:d,colorTextHeading:p,colorTextDisabled:h,fontSizeLG:v,lineHeight:m,lineHeightLG:g,marginSM:b,paddingSM:y,paddingLG:w,paddingXS:x,motionDurationSlow:S,fontSizeIcon:C,contentPadding:k,fontHeight:E,fontHeightLG:O}=e,_=`${Ue(s)} ${u} ${f}`;return{[t]:Object.assign(Object.assign({},ua(e)),{backgroundColor:o,border:_,borderRadius:c,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:_,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${Ue(c)} ${Ue(c)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:p,lineHeight:m,cursor:"pointer",transition:`all ${S}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:E,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{fontSize:C,transition:`transform ${S}`,svg:{transition:`transform ${S}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:d,backgroundColor:n,borderTop:_,[`& > ${t}-content-box`]:{padding:k},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(x).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:v,lineHeight:g,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:O,marginInlineStart:e.calc(w).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${Ue(c)} ${Ue(c)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},Fk=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Hk=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},Wk=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}};var Vk=Jl("Collapse",(e=>{const t=Wl(e,{collapseHeaderPaddingSM:`${Ue(e.paddingXS)} ${Ue(e.paddingSM)}`,collapseHeaderPaddingLG:`${Ue(e.padding)} ${Ue(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[Bk(t),Hk(t),Wk(t),Fk(t),zk(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})));const Uk=t.forwardRef(((e,n)=>{const{getPrefixCls:r,direction:o,collapse:i}=t.useContext(F),{prefixCls:a,className:l,rootClassName:c,style:s,bordered:u=!0,ghost:f,size:d,expandIconPosition:p="start",children:h,expandIcon:v}=e,m=Qc((e=>{var t;return null!==(t=null!=d?d:e)&&void 0!==t?t:"middle"})),g=r("collapse",a),b=r(),[y,w,x]=Vk(g);const S=t.useMemo((()=>"left"===p?"start":"right"===p?"end":p),[p]),C=null!=v?v:null==i?void 0:i.expandIcon,k=t.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n="function"==typeof C?C(e):t.createElement(_k,{rotate:e.isActive?90:void 0,"aria-label":e.isActive?"expanded":"collapsed"});return Bc(n,(()=>{var e;return{className:jo()(null===(e=null==n?void 0:n.props)||void 0===e?void 0:e.className,`${g}-arrow`)}}))}),[C,g]),E=jo()(`${g}-icon-position-${S}`,{[`${g}-borderless`]:!u,[`${g}-rtl`]:"rtl"===o,[`${g}-ghost`]:!!f,[`${g}-${m}`]:"middle"!==m},null==i?void 0:i.className,l,c,w,x),O=Object.assign(Object.assign({},Sp(b)),{motionAppear:!1,leavedClassName:`${g}-content-hidden`}),_=t.useMemo((()=>h?Zc(h).map(((e,t)=>{var n,r;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(r=e.key)&&void 0!==r?r:String(t),{disabled:o,collapsible:i}=e.props;return Bc(e,Object.assign(Object.assign({},qc(e.props,["disabled"])),{key:n,collapsible:null!=i?i:o?"disabled":void 0}))}return e})):null),[h]);return y(t.createElement(Dk,Object.assign({ref:n,openMotion:O},qc(e,["rootClassName"]),{expandIcon:k,prefixCls:g,className:E,style:Object.assign(Object.assign({},null==i?void 0:i.style),s)}),_))}));var Gk=Object.assign(Uk,{Panel:Lk});const Yk=e=>e.map((e=>(e.colors=e.colors.map(CC),e))),Kk=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new TS(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:.299*n+.587*r+.114*o>192},Xk=e=>{let{label:t}=e;return`panel-${t}`};var Qk=e=>{let{prefixCls:n,presets:r,value:o,onChange:i}=e;const[a]=oh("ColorPicker"),[,l]=aa(),[c]=Jo(Yk(r),{value:Yk(r),postState:Yk}),s=`${n}-presets`,u=(0,t.useMemo)((()=>c.reduce(((e,t)=>{const{defaultOpen:n=!0}=t;return n&&e.push(Xk(t)),e}),[])),[c]),f=c.map((e=>{var r;return{key:Xk(e),label:t.createElement("div",{className:`${s}-label`},null==e?void 0:e.label),children:t.createElement("div",{className:`${s}-items`},Array.isArray(null==e?void 0:e.colors)&&(null===(r=e.colors)||void 0===r?void 0:r.length)>0?e.colors.map(((e,r)=>t.createElement(BS,{key:`preset-${r}-${e.toHexString()}`,color:CC(e).toRgbString(),prefixCls:n,className:jo()(`${s}-color`,{[`${s}-color-checked`]:e.toHexString()===(null==o?void 0:o.toHexString()),[`${s}-color-bright`]:Kk(e,l.colorBgElevated)}),onClick:()=>{return t=e,void(null==i||i(t));var t}}))):t.createElement("span",{className:`${s}-empty`},a.presetEmpty))}}));return t.createElement("div",{className:s},t.createElement(Gk,{defaultActiveKey:u,ghost:!0,items:f}))};var Zk=()=>{const{prefixCls:e,value:n,presets:r,onChange:o}=(0,t.useContext)(SC);return Array.isArray(r)?t.createElement(Qk,{value:n,presets:r,prefixCls:e,onChange:o}):null};var Jk=e=>{const{prefixCls:n,presets:r,panelRender:o,value:i,onChange:a,onClear:l,allowClear:c,disabledAlpha:s,mode:u,onModeChange:f,modeOptions:d,onChangeComplete:p,activeIndex:h,onActive:v,format:m,onFormatChange:g,gradientDragging:b,onGradientDragging:y}=e,w=`${n}-inner`,x=t.useMemo((()=>({prefixCls:n,value:i,onChange:a,onClear:l,allowClear:c,disabledAlpha:s,mode:u,onModeChange:f,modeOptions:d,onChangeComplete:p,activeIndex:h,onActive:v,format:m,onFormatChange:g,gradientDragging:b,onGradientDragging:y})),[n,i,a,l,c,s,u,f,d,p,h,v,m,g,b,y]),S=t.useMemo((()=>({prefixCls:n,value:i,presets:r,onChange:a})),[n,i,r,a]),C=t.createElement("div",{className:`${w}-content`},t.createElement(kk,null),Array.isArray(r)&&t.createElement(oC,null),t.createElement(Zk,null));return t.createElement(xC.Provider,{value:x},t.createElement(SC.Provider,{value:S},t.createElement("div",{className:w},"function"==typeof o?o(C,{components:{Picker:kk,Presets:Zk}}):C)))},eE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const tE=(0,t.forwardRef)(((e,n)=>{const{color:r,prefixCls:o,open:i,disabled:a,format:l,className:c,showText:s,activeIndex:u}=e,f=eE(e,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),d=`${o}-trigger`,p=`${d}-text`,h=`${p}-cell`,[v]=oh("ColorPicker"),m=t.useMemo((()=>{if(!s)return"";if("function"==typeof s)return s(r);if(r.cleared)return v.transparent;if(r.isGradient())return r.getColors().map(((e,n)=>{const r=-1!==u&&u!==n;return t.createElement("span",{key:n,className:jo()(h,r&&`${h}-inactive`)},e.color.toRgbString()," ",e.percent,"%")}));const e=r.toHexString().toUpperCase(),n=EC(r);switch(l){case"rgb":return r.toRgbString();case"hsb":return r.toHsbString();default:return n<100?`${e.slice(0,7)},${n}%`:e}}),[r,l,s,u]),g=(0,t.useMemo)((()=>r.cleared?t.createElement($C,{prefixCls:o}):t.createElement(BS,{prefixCls:o,color:r.toCssString()})),[r,o]);return t.createElement("div",Object.assign({ref:n,className:jo()(d,c,{[`${d}-active`]:i,[`${d}-disabled`]:a})},dl(f)),g,s&&t.createElement("div",{className:p},m))}));var nE=tE;const rE=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`});var oE=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:o,lineWidth:i,colorFillSecondary:a}=e;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:o,flex:"none"},rE("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${Ue(i)} ${a}`,borderRadius:"inherit"}})}};var iE=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:i,marginXXS:a,paddingXXS:l,controlHeightSM:c,marginXS:s,fontSizeIcon:u,paddingXS:f,colorTextPlaceholder:d,colorPickerInputNumberHandleWidth:p,lineWidth:h}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:o,[`${n}-input-number-input`]:{paddingInlineStart:l,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:p}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${Ue(i)}`,marginInlineStart:a},[`${t}-format-select${n}-select`]:{marginInlineEnd:s,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(u).add(a).equal(),fontSize:r,lineHeight:Ue(c)},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:o},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:a,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:a,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${Ue(f)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:Ue(e.calc(c).sub(e.calc(h).mul(2)).equal())},[`${n}-input-prefix`]:{color:d}}}}}};var aE=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:i,colorBgElevated:a,colorFillSecondary:l,lineWidthBold:c,colorPickerHandlerSize:s}=e;return{userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:i},[`${t}-handler`]:{width:s,height:s,border:`${Ue(c)} solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${l}`}}};var lE=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:i,fontSizeSM:a,colorText:l,lineHeightSM:c,lineWidth:s,borderRadius:u,colorFill:f,colorWhite:d,marginXXS:p,paddingXS:h,fontHeightSM:v}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:v,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:p},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${Ue(h)} 0`},"&-label":{fontSize:a,color:l,lineHeight:c},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(p).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:e.calc(i).add(e.calc(s).mul(4)).equal(),height:e.calc(i).add(e.calc(s).mul(4)).equal(),position:"absolute",top:e.calc(s).mul(-2).equal(),insetInlineStart:e.calc(s).mul(-2).equal(),borderRadius:u,border:`${Ue(s)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:f},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(i).div(13).mul(5).equal(),height:e.calc(i).div(13).mul(8).equal(),border:`${Ue(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:d,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:a,color:r}}}};var cE=e=>{const{componentCls:t,colorPickerInsetShadow:n,colorBgElevated:r,colorFillSecondary:o,lineWidthBold:i,colorPickerHandlerSizeSM:a,colorPickerSliderHeight:l,marginSM:c,marginXS:s}=e,u=e.calc(a).sub(e.calc(i).mul(2).equal()).equal(),f=e.calc(a).add(e.calc(i).mul(2).equal()).equal(),d={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[rE(Ue(l),e.colorFillSecondary),{margin:0,padding:0,height:l,borderRadius:e.calc(l).div(2).equal(),"&-rail":{height:l,borderRadius:e.calc(l).div(2).equal(),boxShadow:n},[`& ${t}-slider-handle`]:{width:u,height:u,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:f,height:f,borderRadius:"100%"},"&:after":{width:a,height:a,border:`${Ue(i)} solid ${r}`,boxShadow:`${n}, 0 0 0 1px ${o}`,outline:"none",insetInlineStart:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":d}}],[`${t}-slider-container`]:{display:"flex",gap:c,marginBottom:c,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:s,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":d}}}};const sE=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${Ue(e.controlOutlineWidth)} ${n}`,outline:0}),uE=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},fE=(e,t,n)=>{const{componentCls:r,borderRadiusSM:o,lineWidth:i,colorSplit:a,colorBorder:l,red6:c}=e;return{[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:o,border:`${Ue(i)} solid ${a}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:c},"&:hover":{borderColor:l}})}},dE=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:o,colorWarningHover:i,colorErrorOutline:a,colorWarningOutline:l}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},sE(e,n,a))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},sE(e,r,l))}}},pE=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:o,controlHeightXS:i,borderRadius:a,borderRadiusSM:l,borderRadiusXS:c,borderRadiusLG:s,fontSizeLG:u}=e;return{[`&${t}-lg`]:{minWidth:n,minHeight:n,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:a},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:l,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:c},[`${t}-trigger-text`]:{lineHeight:Ue(i)}}}},hE=e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:o,motionDurationMid:i,colorBgElevated:a,colorTextDisabled:l,colorText:c,colorBgContainerDisabled:s,borderRadius:u,marginXS:f,marginSM:d,controlHeight:p,controlHeightSM:h,colorBgTextActive:v,colorPickerPresetColorSize:m,colorPickerPreviewSize:g,lineWidth:b,colorBorder:y,paddingXXS:w,fontSize:x,colorPrimaryHover:S,controlOutline:C}=e;return[{[n]:Object.assign({[`${n}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${Ue(d)} 0 ${Ue(f)}`}},[`${n}-panel`]:Object.assign({},aE(e))},cE(e)),oE(e,g)),iE(e)),lE(e)),fE(e,m,{marginInlineStart:"auto"})),{[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:f}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:p,minHeight:p,borderRadius:u,border:`${Ue(b)} solid ${y}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${i}`,background:a,padding:e.calc(w).sub(b).equal(),[`${n}-trigger-text`]:{marginInlineStart:f,marginInlineEnd:e.calc(f).sub(e.calc(w).sub(b)).equal(),fontSize:x,color:c,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:l}}},"&:hover":{borderColor:S},[`&${n}-trigger-active`]:Object.assign({},sE(e,o,C)),"&-disabled":{color:l,background:s,cursor:"not-allowed","&:hover":{borderColor:v},[`${n}-trigger-text`]:{color:l}}},fE(e,h)),oE(e,h)),dE(e)),pE(e))},uE(e))},Ws(e,{focusElCls:`${n}-trigger-active`})]};var vE=Jl("ColorPicker",(e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=Wl(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:8,colorPickerPreviewSize:e.calc(8).mul(2).add(n).equal()});return[hE(r)]})),mE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const gE=e=>{const{mode:n,value:r,defaultValue:o,format:i,defaultFormat:a,allowClear:l=!1,presets:c,children:s,trigger:u="click",open:f,disabled:d,placement:p="bottomLeft",arrow:h=!0,panelRender:v,showText:m,style:g,className:b,size:y,rootClassName:w,prefixCls:x,styles:S,disabledAlpha:C=!1,onFormatChange:k,onChange:E,onClear:O,onOpenChange:_,onChangeComplete:j,getPopupContainer:$,autoAdjustOverflow:N=!0,destroyTooltipOnHide:P}=e,I=mE(e,["mode","value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide"]),{getPrefixCls:M,direction:R,colorPicker:A}=(0,t.useContext)(F),T=(0,t.useContext)(yo),q=null!=d?d:T,[D,L]=Jo(!1,{value:f,postState:e=>!q&&e,onChange:_}),[z,B]=Jo(i,{value:i,defaultValue:a,onChange:k}),H=M("color-picker",x),[W,V,U,G,Y]=function(e,n,r){const[o]=oh("ColorPicker"),[i,a]=Jo(e,{value:n}),[l,c]=t.useState("single"),[s,u]=t.useMemo((()=>{const e=(Array.isArray(r)?r:[r]).filter((e=>e));e.length||e.push("single");const t=new Set(e),n=[],i=(e,r)=>{t.has(e)&&n.push({label:r,value:e})};return i("single",o.singleColor),i("gradient",o.gradientColor),[n,t]}),[r]),[f,d]=t.useState(null),p=Xo((e=>{d(e),a(e)})),h=t.useMemo((()=>{const e=CC(i||"");return e.equals(f)?f:e}),[i,f]),v=t.useMemo((()=>{var e;return u.has(l)?l:null===(e=s[0])||void 0===e?void 0:e.value}),[u,l,s]);return t.useEffect((()=>{c(h.isGradient()?"gradient":"single")}),[h]),[h,p,v,c,s]}(o,r,n),K=(0,t.useMemo)((()=>EC(W)<100),[W]),[X,Q]=t.useState(null),Z=e=>{if(j){let t=CC(e);C&&K&&(t=OC(e)),j(t)}},J=(e,t)=>{let n=CC(e);C&&K&&(n=OC(n)),V(n),Q(null),E&&E(n,n.toCssString()),t||Z(n)},[ee,te]=t.useState(0),[ne,re]=t.useState(!1),{status:oe}=t.useContext(dp),{compactSize:ie,compactItemClassnames:ae}=es(H,R),le=Qc((e=>{var t;return null!==(t=null!=y?y:ie)&&void 0!==t?t:e})),ce=Ol(H),[se,ue,fe]=vE(H,ce),de={[`${H}-rtl`]:R},pe=jo()(w,fe,ce,de),he=jo()(kg(H,oe),{[`${H}-sm`]:"small"===le,[`${H}-lg`]:"large"===le},ae,null==A?void 0:A.className,pe,b,ue),ve=jo()(H,pe);const me={open:D,trigger:u,placement:p,arrow:h,rootClassName:w,getPopupContainer:$,autoAdjustOverflow:N,destroyTooltipOnHide:P},ge=Object.assign(Object.assign({},null==A?void 0:A.style),g);return se(t.createElement(_S,Object.assign({style:null==S?void 0:S.popup,overlayInnerStyle:null==S?void 0:S.popupOverlayInner,onOpenChange:e=>{e&&q||L(e)},content:t.createElement(vp,{form:!0},t.createElement(Jk,{mode:U,onModeChange:e=>{if(G(e),"single"===e&&W.isGradient())te(0),J(new eC(W.getColors()[0].color)),Q(W);else if("gradient"===e&&!W.isGradient()){const e=K?OC(W):W;J(new eC(X||[{percent:0,color:e},{percent:100,color:e}]))}},modeOptions:Y,prefixCls:H,value:W,allowClear:l,disabled:q,disabledAlpha:C,presets:c,panelRender:v,format:z,onFormatChange:B,onChange:J,onChangeComplete:Z,onClear:O,activeIndex:ee,onActive:te,gradientDragging:ne,onGradientDragging:re})),overlayClassName:ve},me),s||t.createElement(nE,Object.assign({activeIndex:D?ee:-1,open:D,className:he,style:ge,prefixCls:H,disabled:q,showText:m,format:z},I,{color:W}))))};const bE=Fv(gE,"color-picker",(e=>e),(e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1})));gE._InternalPanelDoNotUseOrYouWillBeFired=bE;var yE=gE;function wE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return xE(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xE(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var SE=function(e){var n,o,i,a,c=e.field.items,s=e.field.items,u=s.help,f=(s.value,s.default_val),p=(e.id,wE(l(),2)),h=(p[0],p[1]),v=wE((0,t.useState)("yes"),2),m=v[0],g=v[1],b=(0,t.useRef)(),y=null===(n=e.field)||void 0===n?void 0:n.fieldType,w=null===(o=e.field)||void 0===o?void 0:o.parentId,x=null===(i=e.field)||void 0===i?void 0:i.index,S=null===(a=e.field)||void 0===a?void 0:a.repeaterData;return(0,r.jsxs)("div",{className:"rtsb-field text",children:[(0,r.jsx)(Nm,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",ref:b,children:Object.keys(c).map((function(e,t){var n=c[e].id;return(0,r.jsx)(yE,{format:"hex",value:c[e].value,defaultValue:c[e].default_val,allowClear:!0,onChange:function(e){"yes"===m&&0==e.metaColor.roundA&&(e.metaColor.roundA=1),g("no"),h({type:d,id:n,value:e.metaColor.roundA?e.toRgbString():"",fieldType:y,parentId:w,repeaterData:S,index:x})},onClear:function(){h({type:d,id:n,value:null!=f?f:"",fieldType:y,parentId:w,repeaterData:S,index:x}),g("no")}},t)}))}),u&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:u}})]})]})};function CE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){x(e,t,n[t])}))}return e}var kE=o(311),EE=o.n(kE),OE=o(5556),_E=o.n(OE),jE=function(){function e(){xe(this,e),x(this,"refs",{})}return Ce(e,[{key:"add",value:function(e,t){this.refs[e]||(this.refs[e]=[]),this.refs[e].push(t)}},{key:"remove",value:function(e,t){var n=this.getIndex(e,t);-1!==n&&this.refs[e].splice(n,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var e=this;return this.refs[this.active.collection].find((function(t){return t.node.sortableInfo.index==e.active.index}))}},{key:"getIndex",value:function(e,t){return this.refs[e].indexOf(t)}},{key:"getOrderedRefs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[e].sort($E)}}]),e}();function $E(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function NE(e,t){return Object.keys(e).reduce((function(n,r){return-1===t.indexOf(r)&&(n[r]=e[r]),n}),{})}var PE={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},IE=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];return"ms"===t?"ms":t&&t.length?t[0].toUpperCase()+t.substr(1):""}();function ME(e,t){Object.keys(t).forEach((function(n){e.style[n]=t[n]}))}function RE(e,t){e.style["".concat(IE,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function AE(e,t){e.style["".concat(IE,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function TE(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function qE(e,t,n){return Math.max(e,Math.min(n,t))}function DE(e){return"px"===e.substr(-2)?parseFloat(e):0}function LE(e,t){var n=t.displayName||t.name;return n?"".concat(e,"(").concat(n,")"):e}function zE(e,t){var n=e.getBoundingClientRect();return{top:n.top+t.top,left:n.left+t.left}}function BE(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function FE(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var r={left:n.left+e.offsetLeft,top:n.top+e.offsetTop};return e.parentNode===t?r:FE(e.parentNode,t,r)}}function HE(e){var t=e.lockOffset,n=e.width,r=e.height,o=t,i=t,a="px";if("string"==typeof t){var l=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);EE()(null!==l,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),o=parseFloat(t),i=parseFloat(t),a=l[1]}return EE()(isFinite(o)&&isFinite(i),"lockOffset value should be a finite. Given %s",t),"%"===a&&(o=o*n/100,i=i*r/100),{x:o,y:i}}function WE(e){return e instanceof HTMLElement?function(e){var t=window.getComputedStyle(e),n=/(auto|scroll)/;return["overflow","overflowX","overflowY"].find((function(e){return n.test(t[e])}))}(e)?e:WE(e.parentNode):null}var VE=27,UE=32,GE=37,YE=38,KE=39,XE=40,QE={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function ZE(e){return null!=e.sortableHandle}var JE=function(){function e(t,n){xe(this,e),this.container=t,this.onScrollCallback=n}return Ce(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var t=this,n=e.translate,r=e.minTranslate,o=e.maxTranslate,i=e.width,a=e.height,l={x:0,y:0},c={x:1,y:1},s=10,u=10,f=this.container,d=f.scrollTop,p=f.scrollLeft,h=f.scrollHeight,v=f.scrollWidth,m=0===d,g=h-d-f.clientHeight==0,b=0===p,y=v-p-f.clientWidth==0;n.y>=o.y-a/2&&!g?(l.y=1,c.y=u*Math.abs((o.y-a/2-n.y)/a)):n.x>=o.x-i/2&&!y?(l.x=1,c.x=s*Math.abs((o.x-i/2-n.x)/i)):n.y<=r.y+a/2&&!m?(l.y=-1,c.y=u*Math.abs((n.y-a/2-r.y)/a)):n.x<=r.x+i/2&&!b&&(l.x=-1,c.x=s*Math.abs((n.x-i/2-r.x)/i)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===l.x&&0===l.y||(this.interval=setInterval((function(){t.isAutoScrolling=!0;var e={left:c.x*l.x,top:c.y*l.y};t.container.scrollTop+=e.top,t.container.scrollLeft+=e.left,t.onScrollCallback(e)}),5))}}]),e}();var eO={axis:_E().oneOf(["x","y","xy"]),contentWindow:_E().any,disableAutoscroll:_E().bool,distance:_E().number,getContainer:_E().func,getHelperDimensions:_E().func,helperClass:_E().string,helperContainer:_E().oneOfType([_E().func,"undefined"==typeof HTMLElement?_E().any:_E().instanceOf(HTMLElement)]),hideSortableGhost:_E().bool,keyboardSortingTransitionDuration:_E().number,lockAxis:_E().string,lockOffset:_E().oneOfType([_E().number,_E().string,_E().arrayOf(_E().oneOfType([_E().number,_E().string]))]),lockToContainerEdges:_E().bool,onSortEnd:_E().func,onSortMove:_E().func,onSortOver:_E().func,onSortStart:_E().func,pressDelay:_E().number,pressThreshold:_E().number,keyCodes:_E().shape({lift:_E().arrayOf(_E().number),drop:_E().arrayOf(_E().number),cancel:_E().arrayOf(_E().number),up:_E().arrayOf(_E().number),down:_E().arrayOf(_E().number)}),shouldCancelStart:_E().func,transitionDuration:_E().number,updateBeforeSortStart:_E().func,useDragHandle:_E().bool,useWindowAsScrollContainer:_E().bool},tO={lift:[UE],drop:[UE],cancel:[VE],up:[YE,GE],down:[XE,KE]},nO={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:tO,shouldCancelStart:function(e){return-1!==[QE.Input,QE.Textarea,QE.Select,QE.Option,QE.Button].indexOf(e.target.tagName)||!!TE(e.target,(function(e){return"true"===e.contentEditable}))},transitionDuration:300,useWindowAsScrollContainer:!1},rO=Object.keys(eO);var oO=(0,t.createContext)({manager:{}});var iO={index:_E().number.isRequired,collection:_E().oneOfType([_E().number,_E().string]),disabled:_E().bool},aO=Object.keys(iO);var lO=o(4480),cO=o.n(lO);function sO(e){return sO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sO(e)}function uO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uO(Object(n),!0).forEach((function(t){dO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dO(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=sO(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=sO(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sO(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pO(e){return function(e){if(Array.isArray(e))return mO(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||vO(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||vO(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vO(e,t){if(e){if("string"==typeof e)return mO(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mO(e,t):void 0}}function mO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var gO=function(e){var n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return r=n=function(n){function r(){var e,n;xe(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return x(Vo(Vo(n=Uo(this,(e=Ho(r)).call.apply(e,[this].concat(i))))),"wrappedInstance",(0,t.createRef)()),n}return Fo(r,n),Ce(r,[{key:"componentDidMount",value:function(){(0,E.findDOMNode)(this).sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return EE()(o.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.wrappedInstance.current}},{key:"render",value:function(){var n=o.withRef?this.wrappedInstance:null;return(0,t.createElement)(e,ht({ref:n},this.props))}}]),r}(t.Component),x(n,"displayName",LE("sortableHandle",e)),r}((function(){return(0,r.jsx)("span",{className:"handler",children:"::"})})),bO=function(e){var n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return r=n=function(n){function r(){var e,n;xe(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return x(Vo(Vo(n=Uo(this,(e=Ho(r)).call.apply(e,[this].concat(i))))),"wrappedInstance",(0,t.createRef)()),n}return Fo(r,n),Ce(r,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,t=e.collection,n=e.disabled,r=e.index,o=(0,E.findDOMNode)(this);o.sortableInfo={collection:t,disabled:n,index:r,manager:this.context.manager},this.node=o,this.ref={node:o},this.context.manager.add(t,this.ref)}},{key:"unregister",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return EE()(o.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.wrappedInstance.current}},{key:"render",value:function(){var n=o.withRef?this.wrappedInstance:null;return(0,t.createElement)(e,ht({ref:n},NE(this.props,aO)))}}]),r}(t.Component),x(n,"displayName",LE("sortableElement",e)),x(n,"contextType",oO),x(n,"propTypes",iO),x(n,"defaultProps",{collection:0}),r}((function(e){e.storedData;var t=e.label,n=e.id,o=e.field,i=hO(l(),2),a=(i[0],i[1]);return(0,r.jsxs)("li",{className:"rtsb-sortable-item",children:[(0,r.jsx)(gO,{}),(0,r.jsxs)("label",{htmlFor:"sortable-item-".concat(n),children:[(0,r.jsx)("input",{checked:cO().isArray(o.value)&&o.value.includes(n),id:"sortable-item-".concat(n),type:"checkbox",onChange:function(e){var t=pO(o.value);e.target.checked?t.push(n):t=t.filter((function(e){return e!==n})),a({type:d,id:o.id,value:t})},value:n}),t]})]})})),yO=function(e){var n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return r=n=function(n){function r(e){var n;xe(this,r),x(Vo(Vo(n=Uo(this,Ho(r).call(this,e)))),"state",{}),x(Vo(Vo(n)),"handleStart",(function(e){var t=n.props,r=t.distance,o=t.shouldCancelStart;if(2!==e.button&&!o(e)){n.touched=!0,n.position=BE(e);var i=TE(e.target,(function(e){return null!=e.sortableInfo}));if(i&&i.sortableInfo&&n.nodeIsChild(i)&&!n.state.sorting){var a=n.props.useDragHandle,l=i.sortableInfo,c=l.index,s=l.collection;if(l.disabled)return;if(a&&!TE(e.target,ZE))return;n.manager.active={collection:s,index:c},function(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}(e)||e.target.tagName!==QE.Anchor||e.preventDefault(),r||(0===n.props.pressDelay?n.handlePress(e):n.pressTimer=setTimeout((function(){return n.handlePress(e)}),n.props.pressDelay))}}})),x(Vo(Vo(n)),"nodeIsChild",(function(e){return e.sortableInfo.manager===n.manager})),x(Vo(Vo(n)),"handleMove",(function(e){var t=n.props,r=t.distance,o=t.pressThreshold;if(!n.state.sorting&&n.touched&&!n._awaitingUpdateBeforeSortStart){var i=BE(e),a={x:n.position.x-i.x,y:n.position.y-i.y},l=Math.abs(a.x)+Math.abs(a.y);n.delta=a,r||o&&!(l>=o)?r&&l>=r&&n.manager.isActive()&&n.handlePress(e):(clearTimeout(n.cancelTimer),n.cancelTimer=setTimeout(n.cancel,0))}})),x(Vo(Vo(n)),"handleEnd",(function(){n.touched=!1,n.cancel()})),x(Vo(Vo(n)),"cancel",(function(){var e=n.props.distance;n.state.sorting||(e||clearTimeout(n.pressTimer),n.manager.active=null)})),x(Vo(Vo(n)),"handlePress",(function(e){try{var t=n.manager.getActive(),r=function(){if(t){var r=function(){var t=d.sortableInfo.index,r=function(e){var t=window.getComputedStyle(e);return{bottom:DE(t.marginBottom),left:DE(t.marginLeft),right:DE(t.marginRight),top:DE(t.marginTop)}}(d),o=function(e){var t=window.getComputedStyle(e);return"grid"===t.display?{x:DE(t.gridColumnGap),y:DE(t.gridRowGap)}:{x:0,y:0}}(n.container),s=n.scrollContainer.getBoundingClientRect(),v=a({index:t,node:d,collection:p});if(n.node=d,n.margin=r,n.gridGap=o,n.width=v.width,n.height=v.height,n.marginOffset={x:n.margin.left+n.margin.right+n.gridGap.x,y:Math.max(n.margin.top,n.margin.bottom,n.gridGap.y)},n.boundingClientRect=d.getBoundingClientRect(),n.containerBoundingRect=s,n.index=t,n.newIndex=t,n.axis={x:i.indexOf("x")>=0,y:i.indexOf("y")>=0},n.offsetEdge=FE(d,n.container),n.initialOffset=BE(h?CE({},e,{pageX:n.boundingClientRect.left,pageY:n.boundingClientRect.top}):e),n.initialScroll={left:n.scrollContainer.scrollLeft,top:n.scrollContainer.scrollTop},n.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},n.helper=n.helperContainer.appendChild(function(e){var t="input, textarea, select, canvas, [contenteditable]",n=e.querySelectorAll(t),r=e.cloneNode(!0);return X(r.querySelectorAll(t)).forEach((function(e,t){"file"!==e.type&&(e.value=n[t].value),"radio"===e.type&&e.name&&(e.name="__sortableClone__".concat(e.name)),e.tagName===QE.Canvas&&n[t].width>0&&n[t].height>0&&e.getContext("2d").drawImage(n[t],0,0)})),r}(d)),ME(n.helper,{boxSizing:"border-box",height:"".concat(n.height,"px"),left:"".concat(n.boundingClientRect.left-r.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(n.boundingClientRect.top-r.top,"px"),width:"".concat(n.width,"px")}),h&&n.helper.focus(),c&&(n.sortableGhost=d,ME(d,{opacity:0,visibility:"hidden"})),n.minTranslate={},n.maxTranslate={},h){var m=f?{top:0,left:0,width:n.contentWindow.innerWidth,height:n.contentWindow.innerHeight}:n.containerBoundingRect,g=m.top,b=m.left,y=m.width,w=g+m.height,x=b+y;n.axis.x&&(n.minTranslate.x=b-n.boundingClientRect.left,n.maxTranslate.x=x-(n.boundingClientRect.left+n.width)),n.axis.y&&(n.minTranslate.y=g-n.boundingClientRect.top,n.maxTranslate.y=w-(n.boundingClientRect.top+n.height))}else n.axis.x&&(n.minTranslate.x=(f?0:s.left)-n.boundingClientRect.left-n.width/2,n.maxTranslate.x=(f?n.contentWindow.innerWidth:s.left+s.width)-n.boundingClientRect.left-n.width/2),n.axis.y&&(n.minTranslate.y=(f?0:s.top)-n.boundingClientRect.top-n.height/2,n.maxTranslate.y=(f?n.contentWindow.innerHeight:s.top+s.height)-n.boundingClientRect.top-n.height/2);l&&l.split(" ").forEach((function(e){return n.helper.classList.add(e)})),n.listenerNode=e.touches?e.target:n.contentWindow,h?(n.listenerNode.addEventListener("wheel",n.handleKeyEnd,!0),n.listenerNode.addEventListener("mousedown",n.handleKeyEnd,!0),n.listenerNode.addEventListener("keydown",n.handleKeyDown)):(PE.move.forEach((function(e){return n.listenerNode.addEventListener(e,n.handleSortMove,!1)})),PE.end.forEach((function(e){return n.listenerNode.addEventListener(e,n.handleSortEnd,!1)}))),n.setState({sorting:!0,sortingIndex:t}),u&&u({node:d,index:t,collection:p,isKeySorting:h,nodes:n.manager.getOrderedRefs(),helper:n.helper},e),h&&n.keyMove(0)},o=n.props,i=o.axis,a=o.getHelperDimensions,l=o.helperClass,c=o.hideSortableGhost,s=o.updateBeforeSortStart,u=o.onSortStart,f=o.useWindowAsScrollContainer,d=t.node,p=t.collection,h=n.manager.isKeySorting,v=function(){if("function"==typeof s){n._awaitingUpdateBeforeSortStart=!0;var t=function(e,t){try{var n=e()}catch(e){return t(!0,e)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,value)}((function(){var t=d.sortableInfo.index;return Promise.resolve(s({collection:p,index:t,node:d,isKeySorting:h},e)).then((function(){}))}),(function(e,t){if(n._awaitingUpdateBeforeSortStart=!1,e)throw t;return t}));if(t&&t.then)return t.then((function(){}))}}();return v&&v.then?v.then(r):r()}}();return Promise.resolve(r&&r.then?r.then((function(){})):void 0)}catch(e){return Promise.reject(e)}})),x(Vo(Vo(n)),"handleSortMove",(function(e){var t=n.props.onSortMove;"function"==typeof e.preventDefault&&e.cancelable&&e.preventDefault(),n.updateHelperPosition(e),n.animateNodes(),n.autoscroll(),t&&t(e)})),x(Vo(Vo(n)),"handleSortEnd",(function(e){var t=n.props,r=t.hideSortableGhost,o=t.onSortEnd,i=n.manager,a=i.active.collection,l=i.isKeySorting,c=n.manager.getOrderedRefs();n.listenerNode&&(l?(n.listenerNode.removeEventListener("wheel",n.handleKeyEnd,!0),n.listenerNode.removeEventListener("mousedown",n.handleKeyEnd,!0),n.listenerNode.removeEventListener("keydown",n.handleKeyDown)):(PE.move.forEach((function(e){return n.listenerNode.removeEventListener(e,n.handleSortMove)})),PE.end.forEach((function(e){return n.listenerNode.removeEventListener(e,n.handleSortEnd)})))),n.helper.parentNode.removeChild(n.helper),r&&n.sortableGhost&&ME(n.sortableGhost,{opacity:"",visibility:""});for(var s=0,u=c.length;s<u;s++){var f=c[s],d=f.node;f.edgeOffset=null,f.boundingClientRect=null,RE(d,null),AE(d,null),f.translate=null}n.autoScroller.clear(),n.manager.active=null,n.manager.isKeySorting=!1,n.setState({sorting:!1,sortingIndex:null}),"function"==typeof o&&o({collection:a,newIndex:n.newIndex,oldIndex:n.index,isKeySorting:l,nodes:c},e),n.touched=!1})),x(Vo(Vo(n)),"autoscroll",(function(){var e=n.props.disableAutoscroll,t=n.manager.isKeySorting;if(e)n.autoScroller.clear();else{if(t){var r=CE({},n.translate),o=0,i=0;return n.axis.x&&(r.x=Math.min(n.maxTranslate.x,Math.max(n.minTranslate.x,n.translate.x)),o=n.translate.x-r.x),n.axis.y&&(r.y=Math.min(n.maxTranslate.y,Math.max(n.minTranslate.y,n.translate.y)),i=n.translate.y-r.y),n.translate=r,RE(n.helper,n.translate),n.scrollContainer.scrollLeft+=o,void(n.scrollContainer.scrollTop+=i)}n.autoScroller.update({height:n.height,maxTranslate:n.maxTranslate,minTranslate:n.minTranslate,translate:n.translate,width:n.width})}})),x(Vo(Vo(n)),"onAutoScroll",(function(e){n.translate.x+=e.left,n.translate.y+=e.top,n.animateNodes()})),x(Vo(Vo(n)),"handleKeyDown",(function(e){var t=e.keyCode,r=n.props,o=r.shouldCancelStart,i=r.keyCodes,a=CE({},tO,void 0===i?{}:i);n.manager.active&&!n.manager.isKeySorting||!(n.manager.active||a.lift.includes(t)&&!o(e)&&n.isValidSortingTarget(e))||(e.stopPropagation(),e.preventDefault(),a.lift.includes(t)&&!n.manager.active?n.keyLift(e):a.drop.includes(t)&&n.manager.active?n.keyDrop(e):a.cancel.includes(t)?(n.newIndex=n.manager.active.index,n.keyDrop(e)):a.up.includes(t)?n.keyMove(-1):a.down.includes(t)&&n.keyMove(1))})),x(Vo(Vo(n)),"keyLift",(function(e){var t=e.target,r=TE(t,(function(e){return null!=e.sortableInfo})).sortableInfo,o=r.index,i=r.collection;n.initialFocusedNode=t,n.manager.isKeySorting=!0,n.manager.active={index:o,collection:i},n.handlePress(e)})),x(Vo(Vo(n)),"keyMove",(function(e){var t=n.manager.getOrderedRefs(),r=t[t.length-1].node.sortableInfo.index,o=n.newIndex+e,i=n.newIndex;if(!(o<0||o>r)){n.prevIndex=i,n.newIndex=o;var a=function(e,t,n){return e<n&&e>t?e-1:e>n&&e<t?e+1:e}(n.newIndex,n.prevIndex,n.index),l=t.find((function(e){return e.node.sortableInfo.index===a})),c=l.node,s=n.containerScrollDelta,u=l.boundingClientRect||zE(c,s),f=l.translate||{x:0,y:0},d=u.top+f.y-s.top,p=u.left+f.x-s.left,h=i<o,v=h&&n.axis.x?c.offsetWidth-n.width:0,m=h&&n.axis.y?c.offsetHeight-n.height:0;n.handleSortMove({pageX:p+v,pageY:d+m,ignoreTransition:0===e})}})),x(Vo(Vo(n)),"keyDrop",(function(e){n.handleSortEnd(e),n.initialFocusedNode&&n.initialFocusedNode.focus()})),x(Vo(Vo(n)),"handleKeyEnd",(function(e){n.manager.active&&n.keyDrop(e)})),x(Vo(Vo(n)),"isValidSortingTarget",(function(e){var t=n.props.useDragHandle,r=e.target,o=TE(r,(function(e){return null!=e.sortableInfo}));return o&&o.sortableInfo&&!o.sortableInfo.disabled&&(t?ZE(r):r.sortableInfo)}));var o=new jE;return function(e){EE()(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}(e),n.manager=o,n.wrappedInstance=(0,t.createRef)(),n.sortableContextValue={manager:o},n.events={end:n.handleEnd,move:n.handleMove,start:n.handleStart},n}return Fo(r,n),Ce(r,[{key:"componentDidMount",value:function(){var e=this,t=this.props.useWindowAsScrollContainer,n=this.getContainer();Promise.resolve(n).then((function(n){e.container=n,e.document=e.container.ownerDocument||document;var r=e.props.contentWindow||e.document.defaultView||window;e.contentWindow="function"==typeof r?r():r,e.scrollContainer=t?e.document.scrollingElement||e.document.documentElement:WE(e.container)||e.container,e.autoScroller=new JE(e.scrollContainer,e.onAutoScroll),Object.keys(e.events).forEach((function(t){return PE[t].forEach((function(n){return e.container.addEventListener(n,e.events[t],!1)}))})),e.container.addEventListener("keydown",e.handleKeyDown)}))}},{key:"componentWillUnmount",value:function(){var e=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach((function(t){return PE[t].forEach((function(n){return e.container.removeEventListener(n,e.events[t])}))})),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(e){var t=this.props,n=t.lockAxis,r=t.lockOffset,o=t.lockToContainerEdges,i=t.transitionDuration,a=t.keyboardSortingTransitionDuration,l=void 0===a?i:a,c=this.manager.isKeySorting,s=e.ignoreTransition,u=BE(e),f={x:u.x-this.initialOffset.x,y:u.y-this.initialOffset.y};if(f.y-=window.pageYOffset-this.initialWindowScroll.top,f.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=f,o){var d=function(e){var t=e.height,n=e.width,r=e.lockOffset,o=Array.isArray(r)?r:[r,r];EE()(2===o.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var i=Y(o,2),a=i[0],l=i[1];return[HE({height:t,lockOffset:a,width:n}),HE({height:t,lockOffset:l,width:n})]}({height:this.height,lockOffset:r,width:this.width}),p=Y(d,2),h=p[0],v=p[1],m={x:this.width/2-h.x,y:this.height/2-h.y},g={x:this.width/2-v.x,y:this.height/2-v.y};f.x=qE(this.minTranslate.x+m.x,this.maxTranslate.x-g.x,f.x),f.y=qE(this.minTranslate.y+m.y,this.maxTranslate.y-g.y,f.y)}"x"===n?f.y=0:"y"===n&&(f.x=0),c&&l&&!s&&AE(this.helper,l),RE(this.helper,f)}},{key:"animateNodes",value:function(){var e=this.props,t=e.transitionDuration,n=e.hideSortableGhost,r=e.onSortOver,o=this.containerScrollDelta,i=this.windowScrollDelta,a=this.manager.getOrderedRefs(),l=this.offsetEdge.left+this.translate.x+o.left,c=this.offsetEdge.top+this.translate.y+o.top,s=this.manager.isKeySorting,u=this.newIndex;this.newIndex=null;for(var f=0,d=a.length;f<d;f++){var p=a[f].node,h=p.sortableInfo.index,v=p.offsetWidth,m=p.offsetHeight,g={height:this.height>m?m/2:this.height/2,width:this.width>v?v/2:this.width/2},b=s&&h>this.index&&h<=u,y=s&&h<this.index&&h>=u,w={x:0,y:0},x=a[f].edgeOffset;x||(x=FE(p,this.container),a[f].edgeOffset=x,s&&(a[f].boundingClientRect=zE(p,o)));var S=f<a.length-1&&a[f+1],C=f>0&&a[f-1];S&&!S.edgeOffset&&(S.edgeOffset=FE(S.node,this.container),s&&(S.boundingClientRect=zE(S.node,o))),h!==this.index?(t&&AE(p,t),this.axis.x?this.axis.y?y||h<this.index&&(l+i.left-g.width<=x.left&&c+i.top<=x.top+g.height||c+i.top+g.height<=x.top)?(w.x=this.width+this.marginOffset.x,x.left+w.x>this.containerBoundingRect.width-g.width&&S&&(w.x=S.edgeOffset.left-x.left,w.y=S.edgeOffset.top-x.top),null===this.newIndex&&(this.newIndex=h)):(b||h>this.index&&(l+i.left+g.width>=x.left&&c+i.top+g.height>=x.top||c+i.top+g.height>=x.top+m))&&(w.x=-(this.width+this.marginOffset.x),x.left+w.x<this.containerBoundingRect.left+g.width&&C&&(w.x=C.edgeOffset.left-x.left,w.y=C.edgeOffset.top-x.top),this.newIndex=h):b||h>this.index&&l+i.left+g.width>=x.left?(w.x=-(this.width+this.marginOffset.x),this.newIndex=h):(y||h<this.index&&l+i.left<=x.left+g.width)&&(w.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=h)):this.axis.y&&(b||h>this.index&&c+i.top+g.height>=x.top?(w.y=-(this.height+this.marginOffset.y),this.newIndex=h):(y||h<this.index&&c+i.top<=x.top+g.height)&&(w.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=h))),RE(p,w),a[f].translate=w):n&&(this.sortableGhost=p,ME(p,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),s&&(this.newIndex=u);var k=s?this.prevIndex:u;r&&this.newIndex!==k&&r({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:k,isKeySorting:s,nodes:a,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return EE()(o.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.wrappedInstance.current}},{key:"getContainer",value:function(){var e=this.props.getContainer;return"function"!=typeof e?(0,E.findDOMNode)(this):e(o.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var n=o.withRef?this.wrappedInstance:null;return(0,t.createElement)(oO.Provider,{value:this.sortableContextValue},(0,t.createElement)(e,ht({ref:n},NE(this.props,rO))))}},{key:"helperContainer",get:function(){var e=this.props.helperContainer;return"function"==typeof e?e():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){return this.props.useWindowAsScrollContainer?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),r}(t.Component),x(n,"displayName",LE("sortableList",e)),x(n,"defaultProps",nO),x(n,"propTypes",eO),r}((function(e){var t=e.items,n=e.field;return(0,r.jsx)("ul",{className:"rtsb-sortable-wrap",children:Object.keys(t).map((function(e,o){return(0,r.jsx)(bO,{field:n,index:o,id:e,label:t[e]},"item-".concat(e))}))})})),wO=function(e){var n=e.field,o=n.options,i=n.value,a=n.id,c=hO((0,t.useState)(o),2),s=c[0],u=c[1],f=hO(l(),2),p=(f[0],f[1]);(0,t.useEffect)((function(){var e=fO({},o),t={};return i.length&&i.map((function(n){t[n]=e[n],delete e[n]})),t=fO(fO({},t),e),u(t),function(){}}),[]);return(0,r.jsxs)("div",{className:"rtsb-field sortable",children:[(0,r.jsx)(Nm,{field:e.field}),(0,r.jsx)("div",{className:"rtsb-field__content",children:(0,r.jsx)(yO,{lockAxis:"y",helperClass:"draggable-item",field:e.field,items:s,onSortEnd:function(e){var t=e.oldIndex,n=e.newIndex;if(t!==n){var r=function(e,t,n){return function(e,t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const r=n<0?e.length+n:n,[o]=e.splice(t,1);e.splice(r,0,o)}}(e=[...e],t,n),e}(Object.keys(s),t,n),o={};r.map((function(e){o[e]=s[e]}));var l=Object.keys(o).filter((function(e){return i.includes(e)}));p({type:d,id:a,value:l}),u(o)}}})})]})};function xO(e){return xO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xO(e)}function SO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function CO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SO(Object(n),!0).forEach((function(t){kO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kO(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=xO(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=xO(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xO(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return OO(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?OO(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var _O=function(e){var n,o,i,a,c=e.field,s=c.help,u=c.value,f=c.default_val,p=c.disabled,h=c.isPro,v=e.id,m=EO(l(),2),g=(m[0],m[1]),b=EO((0,t.useState)("yes"),2),y=b[0],w=b[1],x=(0,t.useRef)(),S=null===(n=e.field)||void 0===n?void 0:n.fieldType,C=null===(o=e.field)||void 0===o?void 0:o.parentId,k=null===(i=e.field)||void 0===i?void 0:i.index,E=null===(a=e.field)||void 0===a?void 0:a.repeaterData,O=u?"Code: ".concat(u):"No color selected",_={};return p?_.disabled=p||!1:h&&(_.disabled=h),(0,r.jsxs)("div",{className:"rtsb-field text",children:[(0,r.jsx)(Nm,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsxs)("div",{className:"rtsb-field-control",ref:x,children:[(0,r.jsx)(yE,CO(CO({},_),{},{allowClear:!0,format:"hex",defaultValue:u||f||"#0066ff",onChangeComplete:function(e){"yes"===y&&0==e.metaColor.roundA&&(e.metaColor.roundA=1),w("no"),g({type:d,id:v,value:e.toHexString(),fieldType:S,parentId:C,repeaterData:E,index:k})},onClear:function(){g({type:d,id:v,value:null!=f?f:"",fieldType:S,parentId:C,repeaterData:E,index:k}),setTimeout((function(){if(f){var e=x.current.querySelector(".ant-color-picker-clear");e.classList.add("rtrb-color-picker-reset"),e.style.backgroundColor=f}}),200),w("no")}})),(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:O}})]}),s&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:s}})]})]})},jO=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],$O=(0,t.forwardRef)((function(e,n){var r=e.prefixCls,o=void 0===r?"rc-checkbox":r,i=e.className,a=e.style,l=e.checked,c=e.disabled,s=e.defaultChecked,u=void 0!==s&&s,f=e.type,d=void 0===f?"checkbox":f,p=e.title,h=e.onChange,v=qo(e,jO),m=(0,t.useRef)(null),g=(0,t.useRef)(null),b=Y(Jo(u,{value:l}),2),y=b[0],w=b[1];(0,t.useImperativeHandle)(n,(function(){return{focus:function(e){var t;null===(t=m.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=m.current)||void 0===e||e.blur()},input:m.current,nativeElement:g.current}}));var S=jo()(o,i,x(x({},"".concat(o,"-checked"),y),"".concat(o,"-disabled"),c));return t.createElement("span",{className:S,title:p,style:a,ref:g},t.createElement("input",ht({},v,{className:"".concat(o,"-input"),ref:m,onChange:function(t){c||("checked"in e||w(t.target.checked),null==h||h({target:C(C({},e),{},{type:d,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:c,checked:!!y,type:d})),t.createElement("span",{className:"".concat(o,"-inner")}))})),NO=$O;var PO=t.createContext(null);const IO=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},ua(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},ua(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},ua(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},da(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${Ue(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function MO(e,t){const n=Wl(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[IO(n)]}var RO=Jl("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[MO(n,e)]})),AO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const TO=(e,n)=>{var r;const{prefixCls:o,className:i,rootClassName:a,children:l,indeterminate:c=!1,style:s,onMouseEnter:u,onMouseLeave:f,skipGroup:d=!1,disabled:p}=e,h=AO(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:v,direction:m,checkbox:g}=t.useContext(F),b=t.useContext(PO),{isFormItemInput:y}=t.useContext(dp),w=t.useContext(yo),x=null!==(r=(null==b?void 0:b.disabled)||p)&&void 0!==r?r:w,S=t.useRef(h.value);t.useEffect((()=>{null==b||b.registerValue(h.value)}),[]),t.useEffect((()=>{if(!d)return h.value!==S.current&&(null==b||b.cancelValue(S.current),null==b||b.registerValue(h.value),S.current=h.value),()=>null==b?void 0:b.cancelValue(h.value)}),[h.value]);const C=v("checkbox",o),k=Ol(C),[E,O,_]=RO(C,k),j=Object.assign({},h);b&&!d&&(j.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),b.toggleOption&&b.toggleOption({label:l,value:h.value})},j.name=b.name,j.checked=b.value.includes(h.value));const $=jo()(`${C}-wrapper`,{[`${C}-rtl`]:"rtl"===m,[`${C}-wrapper-checked`]:j.checked,[`${C}-wrapper-disabled`]:x,[`${C}-wrapper-in-form-item`]:y},null==g?void 0:g.className,i,a,_,k,O),N=jo()({[`${C}-indeterminate`]:c},Wc,O),P=c?"mixed":void 0;return E(t.createElement(Xc,{component:"Checkbox",disabled:x},t.createElement("label",{className:$,style:Object.assign(Object.assign({},null==g?void 0:g.style),s),onMouseEnter:u,onMouseLeave:f},t.createElement(NO,Object.assign({"aria-checked":P},j,{prefixCls:C,className:N,disabled:x,ref:n})),void 0!==l&&t.createElement("span",null,l))))};var qO=t.forwardRef(TO),DO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const LO=t.forwardRef(((e,n)=>{const{defaultValue:r,children:o,options:i=[],prefixCls:a,className:l,rootClassName:c,style:s,onChange:u}=e,f=DO(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:p}=t.useContext(F),[h,v]=t.useState(f.value||r||[]),[m,g]=t.useState([]);t.useEffect((()=>{"value"in f&&v(f.value||[])}),[f.value]);const b=t.useMemo((()=>i.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[i]),y=d("checkbox",a),w=`${y}-group`,x=Ol(y),[S,C,k]=RO(y,x),E=qc(f,["value","disabled"]),O=i.length?b.map((e=>t.createElement(qO,{prefixCls:y,key:e.value.toString(),disabled:"disabled"in e?e.disabled:f.disabled,value:e.value,checked:h.includes(e.value),onChange:e.onChange,className:`${w}-item`,style:e.style,title:e.title,id:e.id,required:e.required},e.label))):o,_={toggleOption:e=>{const t=h.indexOf(e.value),n=X(h);-1===t?n.push(e.value):n.splice(t,1),"value"in f||v(n),null==u||u(n.filter((e=>m.includes(e))).sort(((e,t)=>b.findIndex((t=>t.value===e))-b.findIndex((e=>e.value===t)))))},value:h,disabled:f.disabled,name:f.name,registerValue:e=>{g((t=>[].concat(X(t),[e])))},cancelValue:e=>{g((t=>t.filter((t=>t!==e))))}},j=jo()(w,{[`${w}-rtl`]:"rtl"===p},l,c,k,x,C);return S(t.createElement("div",Object.assign({className:j,style:s},E,{ref:n}),t.createElement(PO.Provider,{value:_},O)))}));var zO=LO;const BO=qO;function FO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return HO(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?HO(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function HO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}BO.Group=zO,BO.__ANT_CHECKBOX=!0;var WO=BO.Group,VO=function(e){var t,n,o,i,a=e.id,c=e.field,s=c.value,u=c.help,f=c.options,p=(c.empty,c.searchable,c.orientation),h=FO(l(),2),v=(h[0],h[1]),m=null===(t=e.field)||void 0===t?void 0:t.fieldType,g=null===(n=e.field)||void 0===n?void 0:n.parentId,b=null===(o=e.field)||void 0===o?void 0:o.index,y=null===(i=e.field)||void 0===i?void 0:i.repeaterData;return(0,r.jsxs)("div",{className:"rtsb-field checkbox-group-wrap field-".concat(a),children:[(0,r.jsx)(Nm,{field:c}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(WO,{className:"rtsb-checkbox-group ".concat(p||"vertical"),options:f,value:s,onChange:function(e){v({type:d,id:a,value:e,fieldType:m,parentId:g,repeaterData:y,index:b})}})}),u&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:u}})]})]})},UO=o(4353),GO=o.n(UO),YO=o(6986),KO=o.n(YO),XO=o(1840),QO=o.n(XO),ZO=o(8134),JO=o.n(ZO),e_=o(8623),t_=o.n(e_),n_=o(7375),r_=o.n(n_),o_=o(445),i_=o.n(o_);GO().extend(i_()),GO().extend(r_()),GO().extend(KO()),GO().extend(QO()),GO().extend(JO()),GO().extend(t_()),GO().extend((function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=(e||"").replace("Wo","wo");return r.bind(this)(t)}}));var a_={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},l_=function(e){return a_[e]||e.split("_")[0]},c_=function(){be(!1,"Not match any format. Please help to fire a issue about this.")},s_={getNow:function(){return GO()()},getFixedDate:function(e){return GO()(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},getMillisecond:function(e){return e.millisecond()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},setMillisecond:function(e,t){return e.millisecond(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return GO()().locale(l_(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(l_(e)).weekday(0)},getWeek:function(e,t){return t.locale(l_(e)).week()},getShortWeekDays:function(e){return GO()().locale(l_(e)).localeData().weekdaysMin()},getShortMonths:function(e){return GO()().locale(l_(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(l_(e)).format(n)},parse:function(e,t,n){for(var r=l_(e),o=0;o<n.length;o+=1){var i=n[o],a=t;if(i.includes("wo")||i.includes("Wo")){for(var l=a.split("-")[0],c=a.split("-")[1],s=GO()(l,"YYYY").startOf("year").locale(r),u=0;u<=52;u+=1){var f=s.add(u,"week");if(f.format("Wo")===c)return f}return c_(),null}var d=GO()(a,i,!0).locale(r);if(d.isValid())return d}return t&&c_(),null}}},u_=s_,f_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},d_=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:f_}))};var p_=t.forwardRef(d_),h_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},v_=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:h_}))};var m_=t.forwardRef(v_),g_={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},b_=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:g_}))};var y_=t.forwardRef(b_);new Map;function w_(e,t){return void 0!==e?e:t?"bottomRight":"bottomLeft"}function x_(e,t){var n=w_(e,t),r=(null==n?void 0:n.toLowerCase().endsWith("right"))?"insetInlineEnd":"insetInlineStart";return t&&(r=["insetInlineStart","insetInlineEnd"].find((function(e){return e!==r}))),r}var S_=t.createContext(null),C_={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};var k_=function(e){var n=e.popupElement,r=e.popupStyle,o=e.popupClassName,i=e.popupAlign,a=e.transitionName,l=e.getPopupContainer,c=e.children,s=e.range,u=e.placement,f=e.builtinPlacements,d=void 0===f?C_:f,p=e.direction,h=e.visible,v=e.onClose,m=t.useContext(S_).prefixCls,g="".concat(m,"-dropdown"),b=w_(u,"rtl"===p);return t.createElement(jf,{showAction:[],hideAction:["click"],popupPlacement:b,builtinPlacements:d,prefixCls:g,popupTransitionName:a,popup:n,popupAlign:i,popupVisible:h,popupClassName:jo()(o,x(x({},"".concat(g,"-range"),s),"".concat(g,"-rtl"),"rtl"===p)),popupStyle:r,stretch:"minWidth",getPopupContainer:l,onPopupVisibleChange:function(e){e||v()}},c)};function E_(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function O_(e){return null==e?[]:Array.isArray(e)?e:[e]}function __(e,t,n){var r=X(e);return r[t]=n,r}function j_(e,t){var n={};return(t||Object.keys(e)).forEach((function(t){void 0!==e[t]&&(n[t]=e[t])})),n}function $_(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function N_(e,t,n){var r=void 0!==n?n:t[t.length-1],o=t.find((function(t){return e[t]}));return r!==o?e[o]:void 0}function P_(e){return j_(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function I_(e,n,r,o){var i=t.useMemo((function(){return e||function(e,t){var o=e;return n&&"date"===t.type?n(o,t.today):r&&"month"===t.type?r(o,t.locale):t.originNode}}),[e,r,n]),a=t.useCallback((function(e,t){return i(e,C(C({},t),{},{range:o}))}),[i,o]);return a}function M_(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=Y(t.useState([!1,!1]),2),i=o[0],a=o[1],l=t.useMemo((function(){return i.map((function(t,o){if(t)return!0;var i=e[o];return!!i&&(!r[o]&&!i||!(!i||!n(i,{activeIndex:o})))}))}),[e,i,n,r]);return[l,function(e,t){a((function(n){return __(n,t,e)}))}]}function R_(e,t,n,r,o){var i="",a=[];return e&&a.push(o?"hh":"HH"),t&&a.push("mm"),n&&a.push("ss"),i=a.join(":"),r&&(i+=".SSS"),o&&(i+=" A"),i}function A_(e,n){var r=n.showHour,o=n.showMinute,i=n.showSecond,a=n.showMillisecond,l=n.use12Hours;return t.useMemo((function(){return function(e,t,n,r,o,i){var a=e.fieldDateTimeFormat,l=e.fieldDateFormat,c=e.fieldTimeFormat,s=e.fieldMonthFormat,u=e.fieldYearFormat,f=e.fieldWeekFormat,d=e.fieldQuarterFormat,p=e.yearFormat,h=e.cellYearFormat,v=e.cellQuarterFormat,m=e.dayFormat,g=e.cellDateFormat,b=R_(t,n,r,o,i);return C(C({},e),{},{fieldDateTimeFormat:a||"YYYY-MM-DD ".concat(b),fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:c||b,fieldMonthFormat:s||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:d||"YYYY-[Q]Q",yearFormat:p||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:v||"[Q]Q",cellDateFormat:g||m||"D"})}(e,r,o,i,a,l)}),[e,r,o,i,a,l])}function T_(e,t,n){return null!=n?n:t.some((function(t){return e.includes(t)}))}var q_=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function D_(e){return e&&"string"==typeof e}function L_(e,t,n,r){return[e,t,n,r].some((function(e){return void 0!==e}))}function z_(e,t,n,r,o){var i=t,a=n,l=r;if(e||i||a||l||o){if(e){var c,s,u,f=[i,a,l].some((function(e){return!1===e})),d=[i,a,l].some((function(e){return!0===e})),p=!!f||!d;i=null!==(c=i)&&void 0!==c?c:p,a=null!==(s=a)&&void 0!==s?s:p,l=null!==(u=l)&&void 0!==u?u:p}}else i=!0,a=!0,l=!0;return[i,a,l,o]}function B_(e){var t=e.showTime,n=function(e){var t=j_(e,q_),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o="object"===m(o)?o.format:o),"time"===r&&(t.format=o),[t,o]}(e),r=Y(n,2),o=r[0],i=r[1],a=t&&"object"===m(t)?t:{},l=C(C({defaultOpenValue:a.defaultOpenValue||a.defaultValue},o),a),c=l.showMillisecond,s=l.showHour,u=l.showMinute,f=l.showSecond,d=Y(z_(L_(s,u,f,c),s,u,f,c),3);return s=d[0],u=d[1],f=d[2],[l,C(C({},l),{},{showHour:s,showMinute:u,showSecond:f,showMillisecond:c}),l.format,i]}function F_(e,t,n,r,o){if("datetime"===e||"time"===e){for(var i=r,a=$_(e,o,null),l=[t,n],c=0;c<l.length;c+=1){var s=O_(l[c])[0];if(D_(s)){a=s;break}}var u=i.showHour,f=i.showMinute,d=i.showSecond,p=i.showMillisecond,h=T_(a,["a","A","LT","LLL","LTS"],i.use12Hours),v=L_(u,f,d,p);v||(u=T_(a,["H","h","k","LT","LLL"]),f=T_(a,["m","LT","LLL"]),d=T_(a,["s","LTS"]),p=T_(a,["SSS"]));var m=Y(z_(v,u,f,d,p),3);u=m[0],f=m[1],d=m[2];var g=t||R_(u,f,d,p,h);return C(C({},i),{},{format:g,showHour:u,showMinute:f,showSecond:d,showMillisecond:p,use12Hours:h})}return null}function H_(e,n,r){return!1===n?null:(n&&"object"===m(n)?n:{}).clearIcon||r||t.createElement("span",{className:"".concat(e,"-clear-btn")})}var W_=7;function V_(e,t,n){return!e&&!t||e===t||!(!e||!t)&&n()}function U_(e,t,n){return V_(t,n,(function(){return Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10)}))}function G_(e,t,n){return V_(t,n,(function(){return e.getYear(t)===e.getYear(n)}))}function Y_(e,t){return Math.floor(e.getMonth(t)/3)+1}function K_(e,t,n){return V_(t,n,(function(){return G_(e,t,n)&&e.getMonth(t)===e.getMonth(n)}))}function X_(e,t,n){return V_(t,n,(function(){return G_(e,t,n)&&K_(e,t,n)&&e.getDate(t)===e.getDate(n)}))}function Q_(e,t,n){return V_(t,n,(function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}))}function Z_(e,t,n){return V_(t,n,(function(){return X_(e,t,n)&&Q_(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)}))}function J_(e,t,n,r){return V_(n,r,(function(){var o=e.locale.getWeekFirstDate(t,n),i=e.locale.getWeekFirstDate(t,r);return G_(e,o,i)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)}))}function ej(e,t,n,r,o){switch(o){case"date":return X_(e,n,r);case"week":return J_(e,t.locale,n,r);case"month":return K_(e,n,r);case"quarter":return function(e,t,n){return V_(t,n,(function(){return G_(e,t,n)&&Y_(e,t)===Y_(e,n)}))}(e,n,r);case"year":return G_(e,n,r);case"decade":return U_(e,n,r);case"time":return Q_(e,n,r);default:return Z_(e,n,r)}}function tj(e,t,n,r){return!!(t&&n&&r)&&(e.isAfter(r,t)&&e.isAfter(n,r))}function nj(e,t,n,r,o){return!!ej(e,t,n,r,o)||e.isAfter(n,r)}function rj(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return e?"function"==typeof o?o(e):n.locale.format(r.locale,e,o):""}function oj(e,t,n){var r=t,o=["getHour","getMinute","getSecond","getMillisecond"];return["setHour","setMinute","setSecond","setMillisecond"].forEach((function(t,i){r=n?e[t](r,e[o[i]](n)):e[t](r,0)})),r}function ij(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.useMemo((function(){var t=e?O_(e):e;return n&&t&&(t[1]=t[1]||t[0]),t}),[e,n]);return r}function aj(e,n){var r=e.generateConfig,o=e.locale,i=e.picker,a=void 0===i?"date":i,l=e.prefixCls,c=void 0===l?"rc-picker":l,s=e.styles,u=void 0===s?{}:s,f=e.classNames,d=void 0===f?{}:f,p=e.order,h=void 0===p||p,v=e.components,g=void 0===v?{}:v,b=e.inputRender,y=e.allowClear,w=e.clearIcon,x=e.needConfirm,S=e.multiple,k=e.format,E=e.inputReadOnly,O=e.disabledDate,_=e.minDate,j=e.maxDate,$=e.showTime,N=e.value,P=e.defaultValue,I=e.pickerValue,M=e.defaultPickerValue,R=ij(N),A=ij(P),T=ij(I),q=ij(M),D="date"===a&&$?"datetime":a,L="time"===D||"datetime"===D,z=L||S,B=null!=x?x:L,F=Y(B_(e),4),H=F[0],W=F[1],V=F[2],U=F[3],G=A_(o,W),K=t.useMemo((function(){return F_(D,V,U,H,G)}),[D,V,U,H,G]);var X=t.useMemo((function(){return C(C({},e),{},{prefixCls:c,locale:G,picker:a,styles:u,classNames:d,order:h,components:C({input:b},g),clearIcon:H_(c,y,w),showTime:K,value:R,defaultValue:A,pickerValue:T,defaultPickerValue:q},null==n?void 0:n())}),[e]),Q=function(e,n,r){return t.useMemo((function(){var t=O_($_(e,n,r)),o=t[0],i="object"===m(o)&&"mask"===o.type?o.format:null;return[t.map((function(e){return"string"==typeof e||"function"==typeof e?e:e.format})),i]}),[e,n,r])}(D,G,k),Z=Y(Q,2),J=Z[0],ee=Z[1],te=function(e,t,n){return!("function"!=typeof e[0]&&!n)||t}(J,E,S),ne=function(e,t,n,r,o){var i=Xo((function(i,a){return!(!n||!n(i,a))||!(!r||!e.isAfter(r,i)||ej(e,t,r,i,a.type))||!(!o||!e.isAfter(i,o)||ej(e,t,o,i,a.type))}));return i}(r,o,O,_,j),re=function(e,t,n,r){var o=Xo((function(o,i){var a=C({type:t},i);if(delete a.activeIndex,!e.isValidate(o)||n&&n(o,a))return!0;if(("date"===t||"time"===t)&&r){var l,c=i&&1===i.activeIndex?"end":"start",s=(null===(l=r.disabledTime)||void 0===l?void 0:l.call(r,o,c,{from:a.from}))||{},u=s.disabledHours,f=s.disabledMinutes,d=s.disabledSeconds,p=s.disabledMilliseconds,h=r.disabledHours,v=r.disabledMinutes,m=r.disabledSeconds,g=u||h,b=f||v,y=d||m,w=e.getHour(o),x=e.getMinute(o),S=e.getSecond(o),k=e.getMillisecond(o);if(g&&g().includes(w))return!0;if(b&&b(w).includes(x))return!0;if(y&&y(w,x).includes(S))return!0;if(p&&p(w,x,S).includes(k))return!0}return!1}));return o}(r,a,ne,K);return[t.useMemo((function(){return C(C({},X),{},{needConfirm:B,inputReadOnly:te,disabledDate:ne})}),[X,B,te,ne]),D,z,J,ee,re]}function lj(e,n){var r=arguments.length>3?arguments[3]:void 0,o=function(e,n,r){var o=Y(Jo(n,{value:e}),2),i=o[0],a=o[1],l=t.useRef(e),c=t.useRef(),s=function(){Ni.cancel(c.current)},u=Xo((function(){a(l.current),r&&i!==l.current&&r(l.current)})),f=Xo((function(e,t){s(),l.current=e,e||t?u():c.current=Ni(u)}));return t.useEffect((function(){return s}),[]),[i,f]}(!(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).every((function(e){return e}))&&e,n||!1,r),i=Y(o,2),a=i[0],l=i[1];return[a,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.inherit&&!a||l(e,t.force)}]}function cj(e){var n=t.useRef();return t.useImperativeHandle(e,(function(){var e;return{nativeElement:null===(e=n.current)||void 0===e?void 0:e.nativeElement,focus:function(e){var t;null===(t=n.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=n.current)||void 0===e||e.blur()}}})),n}function sj(e,n){return t.useMemo((function(){return e||(n?(ye(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(n).map((function(e){var t=Y(e,2);return{label:t[0],value:t[1]}}))):[])}),[e,n])}function uj(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=t.useRef(n);o.current=n,Je((function(){if(!e){var t=Ni((function(){o.current(e)}),r);return function(){Ni.cancel(t)}}o.current(e)}),[e])}function fj(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=Y(t.useState(0),2),i=o[0],a=o[1],l=Y(t.useState(!1),2),c=l[0],s=l[1],u=t.useRef([]),f=t.useRef(null);return uj(c||r,(function(){c||(u.current=[])})),t.useEffect((function(){c&&u.current.push(i)}),[c,i]),[c,function(e){s(e)},function(e){return e&&(f.current=e),f.current},i,a,function(t){var r=u.current,o=new Set(r.filter((function(e){return t[e]||n[e]}))),i=0===r[r.length-1]?1:0;return o.size>=2||e[i]?null:i},u.current]}function dj(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,10*r);case"decade":return e.addYear(n,100*r);default:return n}}var pj=[];function hj(e,n,r,o,i,a,l,c){var s=arguments.length>8&&void 0!==arguments[8]?arguments[8]:pj,u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:pj,f=arguments.length>11?arguments[11]:void 0,d=arguments.length>12?arguments[12]:void 0,p=arguments.length>13?arguments[13]:void 0,h="time"===l,v=a||0,m=function(t){var n=e.getNow();return h&&(n=oj(e,n)),s[t]||r[t]||n},g=Y(arguments.length>9&&void 0!==arguments[9]?arguments[9]:pj,2),b=g[0],y=g[1],w=Y(Jo((function(){return m(0)}),{value:b}),2),x=w[0],S=w[1],C=Y(Jo((function(){return m(1)}),{value:y}),2),k=C[0],E=C[1],O=t.useMemo((function(){var t=[x,k][v];return h?t:oj(e,t,u[v])}),[h,x,k,v,e,u]),_=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"panel";(0,[S,E][v])(t);var i=[x,k];i[v]=t,!f||ej(e,n,x,i[0],l)&&ej(e,n,k,i[1],l)||f(i,{source:r,range:1===v?"end":"start",mode:o})},j=t.useRef(null);return et((function(){if(i&&!s[v]){var t=h?null:e.getNow();if(null!==j.current&&j.current!==v?t=[x,k][1^v]:r[v]?t=0===v?r[0]:function(t,r){if(c){var o={date:"month",week:"month",month:"year",quarter:"year"}[l];if(o&&!ej(e,n,t,r,o))return dj(e,l,r,-1);if("year"===l&&t&&Math.floor(e.getYear(t)/10)!==Math.floor(e.getYear(r)/10))return dj(e,l,r,-1)}return r}(r[0],r[1]):r[1^v]&&(t=r[1^v]),t){d&&e.isAfter(d,t)&&(t=d);var o=c?dj(e,l,t,1):t;p&&e.isAfter(o,p)&&(t=c?dj(e,l,p,-1):p),_(t,"reset")}}}),[i,v,r[v]]),t.useEffect((function(){j.current=i?v:null}),[i,v]),et((function(){i&&s&&s[v]&&_(s[v],"reset")}),[i,v]),[O,_]}function vj(e,n){var r=t.useRef(e),o=Y(t.useState({}),2)[1],i=function(e){return e&&void 0!==n?n:r.current};return[i,function(e){r.current=e,o({})},i(!0)]}var mj=[];function gj(e,t,n){return[function(r){return r.map((function(r){return rj(r,{generateConfig:e,locale:t,format:n[0]})}))},function(t,n){for(var r=Math.max(t.length,n.length),o=-1,i=0;i<r;i+=1){var a=t[i]||null,l=n[i]||null;if(a!==l&&!Z_(e,a,l)){o=i;break}}return[o<0,0!==o]}]}function bj(e,t){return X(e).sort((function(e,n){return t.isAfter(e,n)?1:-1}))}function yj(e,n,r,o,i,a,l,c,s){var u=Y(Jo(a,{value:l}),2),f=u[0],d=u[1],p=f||mj,h=function(e){var n=Y(vj(e),2),r=n[0],o=n[1],i=Xo((function(){o(e)}));return t.useEffect((function(){i()}),[e]),[r,o]}(p),v=Y(h,2),m=v[0],g=v[1],b=Y(gj(e,n,r),2),y=b[0],w=b[1],x=Xo((function(t){var n=X(t);if(o)for(var r=0;r<2;r+=1)n[r]=n[r]||null;else i&&(n=bj(n.filter((function(e){return e})),e));var a=Y(w(m(),n),2),l=a[0],s=a[1];if(!l&&(g(n),c)){var u=y(n);c(n,u,{range:s?"end":"start"})}}));return[p,d,m,x,function(){s&&s(m())}]}function wj(e,n,r,o,i,a,l,c,s,u){var f=e.generateConfig,d=e.locale,p=e.picker,h=e.onChange,v=e.allowEmpty,m=e.order,g=!a.some((function(e){return e}))&&m,b=Y(gj(f,d,l),2),y=b[0],w=b[1],x=Y(vj(n),2),S=x[0],C=x[1],k=Xo((function(){C(n)}));t.useEffect((function(){k()}),[n]);var E=Xo((function(e){var t=null===e,o=X(e||S());if(t)for(var l=Math.max(a.length,o.length),c=0;c<l;c+=1)a[c]||(o[c]=null);g&&o[0]&&o[1]&&(o=bj(o,f)),i(o);var s=Y(o,2),b=s[0],x=s[1],C=!b,k=!x,E=!v||(!C||v[0])&&(!k||v[1]),O=!m||C||k||ej(f,d,b,x,p)||f.isAfter(x,b),_=!(b&&u(b,{activeIndex:0})||x&&u(x,{from:b,activeIndex:1})),j=t||E&&O&&_;if(j){r(o);var $=Y(w(o,n),1)[0];h&&!$&&h(t&&o.every((function(e){return!e}))?null:o,y(o))}return j})),O=Xo((function(e,t){var n=__(S(),e,o()[e]);C(n),t&&E()})),_=!c&&!s;return uj(!_,(function(){_&&(E(),i(n),k())}),2),[O,E]}function xj(e,t,n,r,o){return("date"===t||"time"===t)&&(void 0!==n?n:void 0!==r?r:!o&&("date"===e||"time"===e))}function Sj(){return[]}function Cj(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2,a=[],l=n>=1?0|n:1,c=e;c<=t;c+=l){var s=o.includes(c);s&&r||a.push({label:E_(c,i),value:c,disabled:s})}return a}function kj(e){var n=arguments.length>2?arguments[2]:void 0,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})||{},o=r.use12Hours,i=r.hourStep,a=void 0===i?1:i,l=r.minuteStep,c=void 0===l?1:l,s=r.secondStep,u=void 0===s?1:s,f=r.millisecondStep,d=void 0===f?100:f,p=r.hideDisabledOptions,h=r.disabledTime,v=r.disabledHours,m=r.disabledMinutes,g=r.disabledSeconds,b=t.useMemo((function(){return n||e.getNow()}),[n,e]),y=t.useCallback((function(e){var t=(null==h?void 0:h(e))||{};return[t.disabledHours||v||Sj,t.disabledMinutes||m||Sj,t.disabledSeconds||g||Sj,t.disabledMilliseconds||Sj]}),[h,v,m,g]),w=Y(t.useMemo((function(){return y(b)}),[b,y]),4),x=w[0],S=w[1],k=w[2],E=w[3],O=t.useCallback((function(e,t,n,r){var i=Cj(0,23,a,p,e()),l=o?i.map((function(e){return C(C({},e),{},{label:E_(e.value%12||12,2)})})):i;return[l,function(e){return Cj(0,59,c,p,t(e))},function(e,t){return Cj(0,59,u,p,n(e,t))},function(e,t,n){return Cj(0,999,d,p,r(e,t,n),3)}]}),[p,a,o,d,c,u]),_=Y(t.useMemo((function(){return O(x,S,k,E)}),[O,x,S,k,E]),4),j=_[0],$=_[1],N=_[2],P=_[3];return[function(t,n){var r=function(){return j},o=$,i=N,a=P;if(n){var l=Y(y(n),4),c=l[0],s=l[1],u=l[2],f=l[3],d=Y(O(c,s,u,f),4),p=d[0];r=function(){return p},o=d[1],i=d[2],a=d[3]}var h=function(e,t,n,r,o,i){var a=e;function l(e,t,n){var r=i[e](a),o=n.find((function(e){return e.value===r}));if(!o||o.disabled){var l=n.filter((function(e){return!e.disabled})),c=X(l).reverse().find((function(e){return e.value<=r}))||l[0];c&&(r=c.value,a=i[t](a,r))}return r}var c=l("getHour","setHour",t()),s=l("getMinute","setMinute",n(c)),u=l("getSecond","setSecond",r(c,s));return l("getMillisecond","setMillisecond",o(c,s,u)),a}(t,r,o,i,a,e);return h},j,$,N,P]}function Ej(e){var n=e.mode,r=e.internalMode,o=e.renderExtraFooter,i=e.showNow,a=e.showTime,l=e.onSubmit,c=e.onNow,s=e.invalid,u=e.needConfirm,f=e.generateConfig,d=e.disabledDate,p=t.useContext(S_),h=p.prefixCls,v=p.locale,m=p.button,g=void 0===m?"button":m,b=f.getNow(),y=Y(kj(f,a,b),1)[0],w=null==o?void 0:o(n),x=d(b,{type:n}),S="".concat(h,"-now"),C="".concat(S,"-btn"),k=i&&t.createElement("li",{className:S},t.createElement("a",{className:jo()(C,x&&"".concat(C,"-disabled")),"aria-disabled":x,onClick:function(){if(!x){var e=y(b);c(e)}}},"date"===r?v.today:v.now)),E=u&&t.createElement("li",{className:"".concat(h,"-ok")},t.createElement(g,{disabled:s,onClick:l},v.ok)),O=(k||E)&&t.createElement("ul",{className:"".concat(h,"-ranges")},k,E);return w||O?t.createElement("div",{className:"".concat(h,"-footer")},w&&t.createElement("div",{className:"".concat(h,"-footer-extra")},w),O):null}function Oj(e,t,n){return function(r,o){var i=r.findIndex((function(r){return ej(e,t,r,o,n)}));if(-1===i)return[].concat(X(r),[o]);var a=X(r);return a.splice(i,1),a}}var _j=t.createContext(null);function jj(){return t.useContext(_j)}function $j(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,i=e.disabledDate,a=e.minDate,l=e.maxDate,c=e.cellRender,s=e.hoverValue,u=e.hoverRangeValue,f=e.onHover,d=e.values,p=e.pickerValue,h=e.onSelect,v=e.prevIcon,m=e.nextIcon,g=e.superPrevIcon,b=e.superNextIcon,y=r.getNow();return[{now:y,values:d,pickerValue:p,prefixCls:n,disabledDate:i,minDate:a,maxDate:l,cellRender:c,hoverValue:s,hoverRangeValue:u,onHover:f,locale:o,generateConfig:r,onSelect:h,panelType:t,prevIcon:v,nextIcon:m,superPrevIcon:g,superNextIcon:b},y]}var Nj=t.createContext({});function Pj(e){for(var n=e.rowNum,r=e.colNum,o=e.baseDate,i=e.getCellDate,a=e.prefixColumn,l=e.rowClassName,c=e.titleFormat,s=e.getCellText,u=e.getCellClassName,f=e.headerCells,d=e.cellSelection,p=void 0===d||d,h=e.disabledDate,v=jj(),m=v.prefixCls,g=v.panelType,b=v.now,y=v.disabledDate,w=v.cellRender,S=v.onHover,k=v.hoverValue,E=v.hoverRangeValue,O=v.generateConfig,_=v.values,j=v.locale,$=v.onSelect,N=h||y,P="".concat(m,"-cell"),I=t.useContext(Nj).onCellDblClick,M=function(e){return _.some((function(t){return t&&ej(O,j,e,t,g)}))},R=[],A=0;A<n;A+=1){for(var T=[],q=void 0,D=function(){var e=i(o,A*r+L),n=null==N?void 0:N(e,{type:g});0===L&&(q=e,a&&T.push(a(q)));var l=!1,f=!1,d=!1;if(p&&E){var h=Y(E,2),v=h[0],y=h[1];l=tj(O,v,y,e),f=ej(O,j,e,v,g),d=ej(O,j,e,y,g)}var _=c?rj(e,{locale:j,format:c,generateConfig:O}):void 0,R=t.createElement("div",{className:"".concat(P,"-inner")},s(e));T.push(t.createElement("td",{key:L,title:_,className:jo()(P,C(x(x(x(x(x(x({},"".concat(P,"-disabled"),n),"".concat(P,"-hover"),(k||[]).some((function(t){return ej(O,j,e,t,g)}))),"".concat(P,"-in-range"),l&&!f&&!d),"".concat(P,"-range-start"),f),"".concat(P,"-range-end"),d),"".concat(m,"-cell-selected"),!E&&"week"!==g&&M(e)),u(e))),onClick:function(){n||$(e)},onDoubleClick:function(){!n&&I&&I()},onMouseEnter:function(){n||null==S||S(e)},onMouseLeave:function(){n||null==S||S(null)}},w?w(e,{prefixCls:m,originNode:R,today:b,type:g,locale:j}):R))},L=0;L<r;L+=1)D();R.push(t.createElement("tr",{key:A,className:null==l?void 0:l(q)},T))}return t.createElement("div",{className:"".concat(m,"-body")},t.createElement("table",{className:"".concat(m,"-content")},f&&t.createElement("thead",null,t.createElement("tr",null,f)),t.createElement("tbody",null,R)))}var Ij={visibility:"hidden"};var Mj=function(e){var n=e.offset,r=e.superOffset,o=e.onChange,i=e.getStart,a=e.getEnd,l=e.children,c=jj(),s=c.prefixCls,u=c.prevIcon,f=void 0===u?"‹":u,d=c.nextIcon,p=void 0===d?"›":d,h=c.superPrevIcon,v=void 0===h?"«":h,m=c.superNextIcon,g=void 0===m?"»":m,b=c.minDate,y=c.maxDate,w=c.generateConfig,x=c.locale,S=c.pickerValue,C=c.panelType,k="".concat(s,"-header"),E=t.useContext(Nj),O=E.hidePrev,_=E.hideNext,j=E.hideHeader,$=t.useMemo((function(){if(!b||!n||!a)return!1;var e=a(n(-1,S));return!nj(w,x,e,b,C)}),[b,n,S,a,w,x,C]),N=t.useMemo((function(){if(!b||!r||!a)return!1;var e=a(r(-1,S));return!nj(w,x,e,b,C)}),[b,r,S,a,w,x,C]),P=t.useMemo((function(){if(!y||!n||!i)return!1;var e=i(n(1,S));return!nj(w,x,y,e,C)}),[y,n,S,i,w,x,C]),I=t.useMemo((function(){if(!y||!r||!i)return!1;var e=i(r(1,S));return!nj(w,x,y,e,C)}),[y,r,S,i,w,x,C]),M=function(e){n&&o(n(e,S))},R=function(e){r&&o(r(e,S))};if(j)return null;var A="".concat(k,"-prev-btn"),T="".concat(k,"-next-btn"),q="".concat(k,"-super-prev-btn"),D="".concat(k,"-super-next-btn");return t.createElement("div",{className:k},r&&t.createElement("button",{type:"button","aria-label":"super-prev-year",onClick:function(){return R(-1)},tabIndex:-1,className:jo()(q,N&&"".concat(q,"-disabled")),disabled:N,style:O?Ij:{}},v),n&&t.createElement("button",{type:"button","aria-label":"prev-year",onClick:function(){return M(-1)},tabIndex:-1,className:jo()(A,$&&"".concat(A,"-disabled")),disabled:$,style:O?Ij:{}},f),t.createElement("div",{className:"".concat(k,"-view")},l),n&&t.createElement("button",{type:"button","aria-label":"next-year",onClick:function(){return M(1)},tabIndex:-1,className:jo()(T,P&&"".concat(T,"-disabled")),disabled:P,style:_?Ij:{}},p),r&&t.createElement("button",{type:"button","aria-label":"super-next-year",onClick:function(){return R(1)},tabIndex:-1,className:jo()(D,I&&"".concat(D,"-disabled")),disabled:I,style:_?Ij:{}},g))};function Rj(e){var n=e.prefixCls,r=e.panelName,o=void 0===r?"date":r,i=e.locale,a=e.generateConfig,l=e.pickerValue,c=e.onPickerValueChange,s=e.onModeChange,u=e.mode,f=void 0===u?"date":u,d=e.disabledDate,p=e.onSelect,h=e.onHover,v=e.showWeek,m="".concat(n,"-").concat(o,"-panel"),g="".concat(n,"-cell"),b="week"===f,y=Y($j(e,f),2),w=y[0],S=y[1],C=a.locale.getWeekFirstDay(i.locale),k=a.setDate(l,1),E=function(e,t,n){var r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),i=t.getWeekDay(o),a=t.addDate(o,r-i);return t.getMonth(a)===t.getMonth(n)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}(i.locale,a,k),O=a.getMonth(l),_=(void 0===v?b:v)?function(e){var n=null==d?void 0:d(e,{type:"week"});return t.createElement("td",{key:"week",className:jo()(g,"".concat(g,"-week"),x({},"".concat(g,"-disabled"),n)),onClick:function(){n||p(e)},onMouseEnter:function(){n||null==h||h(e)},onMouseLeave:function(){n||null==h||h(null)}},t.createElement("div",{className:"".concat(g,"-inner")},a.locale.getWeek(i.locale,e)))}:null,j=[],$=i.shortWeekDays||(a.locale.getShortWeekDays?a.locale.getShortWeekDays(i.locale):[]);_&&j.push(t.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var N=0;N<W_;N+=1)j.push(t.createElement("th",{key:N},$[(N+C)%W_]));var P=i.shortMonths||(a.locale.getShortMonths?a.locale.getShortMonths(i.locale):[]),I=t.createElement("button",{type:"button","aria-label":"year panel",key:"year",onClick:function(){s("year",l)},tabIndex:-1,className:"".concat(n,"-year-btn")},rj(l,{locale:i,format:i.yearFormat,generateConfig:a})),M=t.createElement("button",{type:"button","aria-label":"month panel",key:"month",onClick:function(){s("month",l)},tabIndex:-1,className:"".concat(n,"-month-btn")},i.monthFormat?rj(l,{locale:i,format:i.monthFormat,generateConfig:a}):P[O]),R=i.monthBeforeYear?[M,I]:[I,M];return t.createElement(_j.Provider,{value:w},t.createElement("div",{className:jo()(m,v&&"".concat(m,"-show-week"))},t.createElement(Mj,{offset:function(e){return a.addMonth(l,e)},superOffset:function(e){return a.addYear(l,e)},onChange:c,getStart:function(e){return a.setDate(e,1)},getEnd:function(e){var t=a.setDate(e,1);return t=a.addMonth(t,1),a.addDate(t,-1)}},R),t.createElement(Pj,ht({titleFormat:i.fieldDateFormat},e,{colNum:W_,rowNum:6,baseDate:E,headerCells:j,getCellDate:function(e,t){return a.addDate(e,t)},getCellText:function(e){return rj(e,{locale:i,format:i.cellDateFormat,generateConfig:a})},getCellClassName:function(e){return x(x({},"".concat(n,"-cell-in-view"),K_(a,e,l)),"".concat(n,"-cell-today"),X_(a,e,S))},prefixColumn:_,cellSelection:!b}))))}var Aj=1/3;var Tj=300;function qj(e){var n=e.units,r=e.value,o=e.optionalValue,i=e.type,a=e.onChange,l=e.onHover,c=e.onDblClick,s=e.changeOnScroll,u=jj(),f=u.prefixCls,d=u.cellRender,p=u.now,h=u.locale,v="".concat(f,"-time-panel"),m="".concat(f,"-time-panel-cell"),g=t.useRef(null),b=t.useRef(),y=function(){clearTimeout(b.current)},w=function(e,n){var r=t.useRef(!1),o=t.useRef(null),i=t.useRef(null),a=function(){Ni.cancel(o.current),r.current=!1},l=t.useRef();return[Xo((function(){var t=e.current;if(i.current=null,l.current=0,t){var c=t.querySelector('[data-value="'.concat(n,'"]')),s=t.querySelector("li");c&&s&&function e(){a(),r.current=!0,l.current+=1;var n=t.scrollTop,u=s.offsetTop,f=c.offsetTop,d=f-u;if(0===f&&c!==s||!Dc(t))l.current<=5&&(o.current=Ni(e));else{var p=n+(d-n)*Aj,h=Math.abs(d-p);if(null!==i.current&&i.current<h)a();else{if(i.current=h,h<=1)return t.scrollTop=d,void a();t.scrollTop=p,o.current=Ni(e)}}}()}})),a,function(){return r.current}]}(g,null!=r?r:o),S=Y(w,3),C=S[0],k=S[1],E=S[2];et((function(){return C(),y(),function(){k(),y()}}),[r,o,n]);var O="".concat(v,"-column");return t.createElement("ul",{className:O,ref:g,"data-type":i,onScroll:function(e){y();var t=e.target;!E()&&s&&(b.current=setTimeout((function(){var e=g.current,r=e.querySelector("li").offsetTop,o=Array.from(e.querySelectorAll("li")).map((function(e){return e.offsetTop-r})).map((function(e,r){return n[r].disabled?Number.MAX_SAFE_INTEGER:Math.abs(e-t.scrollTop)})),i=Math.min.apply(Math,X(o)),l=o.findIndex((function(e){return e===i})),c=n[l];c&&!c.disabled&&a(c.value)}),Tj))}},n.map((function(e){var n=e.label,o=e.value,s=e.disabled,u=t.createElement("div",{className:"".concat(m,"-inner")},n);return t.createElement("li",{key:o,className:jo()(m,x(x({},"".concat(m,"-selected"),r===o),"".concat(m,"-disabled"),s)),onClick:function(){s||a(o)},onDoubleClick:function(){!s&&c&&c()},onMouseEnter:function(){l(o)},onMouseLeave:function(){l(null)},"data-value":o},d?d(o,{prefixCls:f,originNode:u,today:p,type:"time",subType:i,locale:h}):u)})))}function Dj(e){return e<12}function Lj(e){var n=e.showHour,r=e.showMinute,o=e.showSecond,i=e.showMillisecond,a=e.use12Hours,l=e.changeOnScroll,c=jj(),s=c.prefixCls,u=c.values,f=c.generateConfig,d=c.locale,p=c.onSelect,h=c.onHover,v=c.pickerValue,m=(null==u?void 0:u[0])||null,g=t.useContext(Nj).onCellDblClick,b=Y(kj(f,e,m),5),y=b[0],w=b[1],x=b[2],S=b[3],C=b[4],k=function(e){return[m&&f[e](m),v&&f[e](v)]},E=Y(k("getHour"),2),O=E[0],_=E[1],j=Y(k("getMinute"),2),$=j[0],N=j[1],P=Y(k("getSecond"),2),I=P[0],M=P[1],R=Y(k("getMillisecond"),2),A=R[0],T=R[1],q=null===O?null:Dj(O)?"am":"pm",D=t.useMemo((function(){return a?Dj(O)?w.filter((function(e){return Dj(e.value)})):w.filter((function(e){return!Dj(e.value)})):w}),[O,w,a]),L=function(e,t){var n,r=e.filter((function(e){return!e.disabled}));return null!=t?t:null==r||null===(n=r[0])||void 0===n?void 0:n.value},z=L(w,O),B=t.useMemo((function(){return x(z)}),[x,z]),F=L(B,$),H=t.useMemo((function(){return S(z,F)}),[S,z,F]),W=L(H,I),V=t.useMemo((function(){return C(z,F,W)}),[C,z,F,W]),U=L(V,A),G=t.useMemo((function(){if(!a)return[];var e=f.getNow(),t=f.setHour(e,6),n=f.setHour(e,18),r=function(e,t){var n=d.cellMeridiemFormat;return n?rj(e,{generateConfig:f,locale:d,format:n}):t};return[{label:r(t,"AM"),value:"am",disabled:w.every((function(e){return e.disabled||!Dj(e.value)}))},{label:r(n,"PM"),value:"pm",disabled:w.every((function(e){return e.disabled||Dj(e.value)}))}]}),[w,a,f,d]),K=function(e){var t=y(e);p(t)},X=t.useMemo((function(){var e=m||v||f.getNow(),t=function(e){return null!=e};return t(O)?(e=f.setHour(e,O),e=f.setMinute(e,$),e=f.setSecond(e,I),e=f.setMillisecond(e,A)):t(_)?(e=f.setHour(e,_),e=f.setMinute(e,N),e=f.setSecond(e,M),e=f.setMillisecond(e,T)):t(z)&&(e=f.setHour(e,z),e=f.setMinute(e,F),e=f.setSecond(e,W),e=f.setMillisecond(e,U)),e}),[m,v,O,$,I,A,z,F,W,U,_,N,M,T,f]),Q=function(e,t){return null===e?null:f[t](X,e)},Z=function(e){return Q(e,"setHour")},J=function(e){return Q(e,"setMinute")},ee=function(e){return Q(e,"setSecond")},te=function(e){return Q(e,"setMillisecond")},ne=function(e){return null===e?null:"am"!==e||Dj(O)?"pm"===e&&Dj(O)?f.setHour(X,O+12):X:f.setHour(X,O-12)},re={onDblClick:g,changeOnScroll:l};return t.createElement("div",{className:"".concat(s,"-content")},n&&t.createElement(qj,ht({units:D,value:O,optionalValue:_,type:"hour",onChange:function(e){K(Z(e))},onHover:function(e){h(Z(e))}},re)),r&&t.createElement(qj,ht({units:B,value:$,optionalValue:N,type:"minute",onChange:function(e){K(J(e))},onHover:function(e){h(J(e))}},re)),o&&t.createElement(qj,ht({units:H,value:I,optionalValue:M,type:"second",onChange:function(e){K(ee(e))},onHover:function(e){h(ee(e))}},re)),i&&t.createElement(qj,ht({units:V,value:A,optionalValue:T,type:"millisecond",onChange:function(e){K(te(e))},onHover:function(e){h(te(e))}},re)),a&&t.createElement(qj,ht({units:G,value:q,type:"meridiem",onChange:function(e){K(ne(e))},onHover:function(e){h(ne(e))}},re)))}function zj(e){var n=e.prefixCls,r=e.value,o=e.locale,i=e.generateConfig,a=e.showTime,l=(a||{}).format,c="".concat(n,"-time-panel"),s=Y($j(e,"time"),1)[0];return t.createElement(_j.Provider,{value:s},t.createElement("div",{className:jo()(c)},t.createElement(Mj,null,r?rj(r,{locale:o,format:l,generateConfig:i}):" "),t.createElement(Lj,a)))}var Bj={date:Rj,datetime:function(e){var n=e.prefixCls,r=e.generateConfig,o=e.showTime,i=e.onSelect,a=e.value,l=e.pickerValue,c=e.onHover,s="".concat(n,"-datetime-panel"),u=Y(kj(r,o),1)[0],f=function(e){return oj(r,e,a||l)};return t.createElement("div",{className:s},t.createElement(Rj,ht({},e,{onSelect:function(e){var t=f(e);i(u(t,t))},onHover:function(e){null==c||c(e?f(e):e)}})),t.createElement(zj,e))},week:function(e){var n=e.prefixCls,r=e.generateConfig,o=e.locale,i=e.value,a=e.hoverValue,l=e.hoverRangeValue,c=o.locale,s="".concat(n,"-week-panel-row");return t.createElement(Rj,ht({},e,{mode:"week",panelName:"week",rowClassName:function(e){var t={};if(l){var n=Y(l,2),o=n[0],u=n[1],f=J_(r,c,o,e),d=J_(r,c,u,e);t["".concat(s,"-range-start")]=f,t["".concat(s,"-range-end")]=d,t["".concat(s,"-range-hover")]=!f&&!d&&tj(r,o,u,e)}return a&&(t["".concat(s,"-hover")]=a.some((function(t){return J_(r,c,e,t)}))),jo()(s,x({},"".concat(s,"-selected"),!l&&J_(r,c,i,e)),t)}}))},month:function(e){var n=e.prefixCls,r=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.disabledDate,l=e.onPickerValueChange,c=e.onModeChange,s="".concat(n,"-month-panel"),u=Y($j(e,"month"),1)[0],f=o.setMonth(i,0),d=r.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(r.locale):[]),p=a?function(e,t){var n=o.setDate(e,1),r=o.setMonth(n,o.getMonth(n)+1),i=o.addDate(r,-1);return a(n,t)&&a(i,t)}:null,h=t.createElement("button",{type:"button",key:"year","aria-label":"year panel",onClick:function(){c("year")},tabIndex:-1,className:"".concat(n,"-year-btn")},rj(i,{locale:r,format:r.yearFormat,generateConfig:o}));return t.createElement(_j.Provider,{value:u},t.createElement("div",{className:s},t.createElement(Mj,{superOffset:function(e){return o.addYear(i,e)},onChange:l,getStart:function(e){return o.setMonth(e,0)},getEnd:function(e){return o.setMonth(e,11)}},h),t.createElement(Pj,ht({},e,{disabledDate:p,titleFormat:r.fieldMonthFormat,colNum:3,rowNum:4,baseDate:f,getCellDate:function(e,t){return o.addMonth(e,t)},getCellText:function(e){var t=o.getMonth(e);return r.monthFormat?rj(e,{locale:r,format:r.monthFormat,generateConfig:o}):d[t]},getCellClassName:function(){return x({},"".concat(n,"-cell-in-view"),!0)}}))))},quarter:function(e){var n=e.prefixCls,r=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.onPickerValueChange,l=e.onModeChange,c="".concat(n,"-quarter-panel"),s=Y($j(e,"quarter"),1)[0],u=o.setMonth(i,0),f=t.createElement("button",{type:"button",key:"year","aria-label":"year panel",onClick:function(){l("year")},tabIndex:-1,className:"".concat(n,"-year-btn")},rj(i,{locale:r,format:r.yearFormat,generateConfig:o}));return t.createElement(_j.Provider,{value:s},t.createElement("div",{className:c},t.createElement(Mj,{superOffset:function(e){return o.addYear(i,e)},onChange:a,getStart:function(e){return o.setMonth(e,0)},getEnd:function(e){return o.setMonth(e,11)}},f),t.createElement(Pj,ht({},e,{titleFormat:r.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:u,getCellDate:function(e,t){return o.addMonth(e,3*t)},getCellText:function(e){return rj(e,{locale:r,format:r.cellQuarterFormat,generateConfig:o})},getCellClassName:function(){return x({},"".concat(n,"-cell-in-view"),!0)}}))))},year:function(e){var n=e.prefixCls,r=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.disabledDate,l=e.onPickerValueChange,c=e.onModeChange,s="".concat(n,"-year-panel"),u=Y($j(e,"year"),1)[0],f=function(e){var t=10*Math.floor(o.getYear(i)/10);return o.setYear(e,t)},d=function(e){var t=f(e);return o.addYear(t,9)},p=f(i),h=d(i),v=o.addYear(p,-1),m=a?function(e,t){var n=o.setMonth(e,0),r=o.setDate(n,1),i=o.addYear(r,1),l=o.addDate(i,-1);return a(r,t)&&a(l,t)}:null,g=t.createElement("button",{type:"button",key:"decade","aria-label":"decade panel",onClick:function(){c("decade")},tabIndex:-1,className:"".concat(n,"-decade-btn")},rj(p,{locale:r,format:r.yearFormat,generateConfig:o}),"-",rj(h,{locale:r,format:r.yearFormat,generateConfig:o}));return t.createElement(_j.Provider,{value:u},t.createElement("div",{className:s},t.createElement(Mj,{superOffset:function(e){return o.addYear(i,10*e)},onChange:l,getStart:f,getEnd:d},g),t.createElement(Pj,ht({},e,{disabledDate:m,titleFormat:r.fieldYearFormat,colNum:3,rowNum:4,baseDate:v,getCellDate:function(e,t){return o.addYear(e,t)},getCellText:function(e){return rj(e,{locale:r,format:r.cellYearFormat,generateConfig:o})},getCellClassName:function(e){return x({},"".concat(n,"-cell-in-view"),G_(o,e,p)||G_(o,e,h)||tj(o,p,h,e))}}))))},decade:function(e){var n=e.prefixCls,r=e.locale,o=e.generateConfig,i=e.pickerValue,a=e.disabledDate,l=e.onPickerValueChange,c="".concat(n,"-decade-panel"),s=Y($j(e,"decade"),1)[0],u=function(e){var t=100*Math.floor(o.getYear(i)/100);return o.setYear(e,t)},f=function(e){var t=u(e);return o.addYear(t,99)},d=u(i),p=f(i),h=o.addYear(d,-10),v=a?function(e,t){var n=o.setDate(e,1),r=o.setMonth(n,0),i=o.setYear(r,10*Math.floor(o.getYear(r)/10)),l=o.addYear(i,10),c=o.addDate(l,-1);return a(i,t)&&a(c,t)}:null,m="".concat(rj(d,{locale:r,format:r.yearFormat,generateConfig:o}),"-").concat(rj(p,{locale:r,format:r.yearFormat,generateConfig:o}));return t.createElement(_j.Provider,{value:s},t.createElement("div",{className:c},t.createElement(Mj,{superOffset:function(e){return o.addYear(i,100*e)},onChange:l,getStart:u,getEnd:f},m),t.createElement(Pj,ht({},e,{disabledDate:v,colNum:3,rowNum:4,baseDate:h,getCellDate:function(e,t){return o.addYear(e,10*t)},getCellText:function(e){var t=r.cellYearFormat,n=rj(e,{locale:r,format:t,generateConfig:o}),i=rj(o.addYear(e,9),{locale:r,format:t,generateConfig:o});return"".concat(n,"-").concat(i)},getCellClassName:function(e){return x({},"".concat(n,"-cell-in-view"),U_(o,e,d)||U_(o,e,p)||tj(o,d,p,e))}}))))},time:zj};function Fj(e,n){var r,o=e.locale,i=e.generateConfig,a=e.direction,l=e.prefixCls,c=e.tabIndex,s=void 0===c?0:c,u=e.multiple,f=e.defaultValue,d=e.value,p=e.onChange,h=e.onSelect,v=e.defaultPickerValue,m=e.pickerValue,g=e.onPickerValueChange,b=e.mode,y=e.onPanelChange,w=e.picker,S=void 0===w?"date":w,k=e.showTime,E=e.hoverValue,O=e.hoverRangeValue,_=e.cellRender,j=e.dateRender,$=e.monthCellRender,N=e.components,P=void 0===N?{}:N,I=e.hideHeader,M=(null===(r=t.useContext(S_))||void 0===r?void 0:r.prefixCls)||l||"rc-picker",R=t.useRef();t.useImperativeHandle(n,(function(){return{nativeElement:R.current}}));var A=Y(B_(e),4),T=A[0],q=A[1],D=A[2],L=A[3],z=A_(o,q),B="date"===S&&k?"datetime":S,F=t.useMemo((function(){return F_(B,D,L,T,z)}),[B,D,L,T,z]),H=i.getNow(),W=Y(Jo(S,{value:b,postState:function(e){return e||"date"}}),2),V=W[0],U=W[1],G="date"===V&&F?"datetime":V,K=Oj(i,o,B),Q=Y(Jo(f,{value:d}),2),Z=Q[0],J=Q[1],ee=t.useMemo((function(){var e=O_(Z).filter((function(e){return e}));return u?e:e.slice(0,1)}),[Z,u]),te=Xo((function(e){J(e),p&&(null===e||ee.length!==e.length||ee.some((function(t,n){return!ej(i,o,t,e[n],B)})))&&(null==p||p(u?e:e[0]))})),ne=Xo((function(e){if(null==h||h(e),V===S){var t=u?K(ee,e):[e];te(t)}})),re=Y(Jo(v||ee[0]||H,{value:m}),2),oe=re[0],ie=re[1];t.useEffect((function(){ee[0]&&!m&&ie(ee[0])}),[ee[0]]);var ae=function(e,t){null==y||y(e||m,t||V)},le=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ie(e),null==g||g(e),t&&ae(e)},ce=function(e,t){U(e),t&&le(t),ae(t,e)},se=t.useMemo((function(){var e,t;if(Array.isArray(O)){var n=Y(O,2);e=n[0],t=n[1]}else e=O;return e||t?(e=e||t,t=t||e,i.isAfter(e,t)?[t,e]:[e,t]):null}),[O,i]),ue=I_(_,j,$),fe=P[G]||Bj[G]||Rj,de=t.useContext(Nj),pe=t.useMemo((function(){return C(C({},de),{},{hideHeader:I})}),[de,I]);var he="".concat(M,"-panel"),ve=j_(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return t.createElement(Nj.Provider,{value:pe},t.createElement("div",{ref:R,tabIndex:s,className:jo()(he,x({},"".concat(he,"-rtl"),"rtl"===a))},t.createElement(fe,ht({},ve,{showTime:F,prefixCls:M,locale:z,generateConfig:i,onModeChange:ce,pickerValue:oe,onPickerValueChange:function(e){le(e,!0)},value:ee[0],onSelect:function(e){if(ne(e),le(e),V!==S){var t=["decade","year"],n=[].concat(t,["month"]),r={quarter:[].concat(t,["quarter"]),week:[].concat(X(n),["week"]),date:[].concat(X(n),["date"])}[S]||n,o=r.indexOf(V),i=r[o+1];i&&ce(i,e)}},values:ee,cellRender:ue,hoverRangeValue:se,hoverValue:E}))))}var Hj=t.memo(t.forwardRef(Fj));function Wj(e){var n=e.picker,r=e.multiplePanel,o=e.pickerValue,i=e.onPickerValueChange,a=e.needConfirm,l=e.onSubmit,c=e.range,s=e.hoverValue,u=t.useContext(S_),f=u.prefixCls,d=u.generateConfig,p=t.useCallback((function(e,t){return dj(d,n,e,t)}),[d,n]),h=t.useMemo((function(){return p(o,1)}),[o,p]),v={onCellDblClick:function(){a&&l()}},m="time"===n,g=C(C({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:m});return c?g.hoverRangeValue=s:g.hoverValue=s,r?t.createElement("div",{className:"".concat(f,"-panels")},t.createElement(Nj.Provider,{value:C(C({},v),{},{hideNext:!0})},t.createElement(Hj,g)),t.createElement(Nj.Provider,{value:C(C({},v),{},{hidePrev:!0})},t.createElement(Hj,ht({},g,{pickerValue:h,onPickerValueChange:function(e){i(p(e,-1))}})))):t.createElement(Nj.Provider,{value:C({},v)},t.createElement(Hj,g))}function Vj(e){return"function"==typeof e?e():e}function Uj(e){var n=e.prefixCls,r=e.presets,o=e.onClick,i=e.onHover;return r.length?t.createElement("div",{className:"".concat(n,"-presets")},t.createElement("ul",null,r.map((function(e,n){var r=e.label,a=e.value;return t.createElement("li",{key:n,onClick:function(){o(Vj(a))},onMouseEnter:function(){i(Vj(a))},onMouseLeave:function(){i(null)}},r)})))):null}function Gj(e){var n=e.panelRender,r=e.internalMode,o=e.picker,i=e.showNow,a=e.range,l=e.multiple,c=e.activeOffset,s=void 0===c?0:c,u=e.placement,f=e.presets,d=e.onPresetHover,p=e.onPresetSubmit,h=e.onFocus,v=e.onBlur,m=e.onPanelMouseDown,g=e.direction,b=e.value,y=e.onSelect,w=e.isInvalid,S=e.defaultOpenValue,C=e.onOk,k=e.onSubmit,E=t.useContext(S_).prefixCls,O="".concat(E,"-panel"),_="rtl"===g,j=t.useRef(null),$=t.useRef(null),N=Y(t.useState(0),2),P=N[0],I=N[1],M=Y(t.useState(0),2),R=M[0],A=M[1];function T(e){return e.filter((function(e){return e}))}t.useEffect((function(){if(a){var e,t=(null===(e=j.current)||void 0===e?void 0:e.offsetWidth)||0;A(s<=P-t?0:s+t-P)}}),[P,s,a]);var q=t.useMemo((function(){return T(O_(b))}),[b]),D="time"===o&&!q.length,L=t.useMemo((function(){return D?T([S]):q}),[D,q,S]),z=D?S:q,B=t.useMemo((function(){return!L.length||L.some((function(e){return w(e)}))}),[L,w]),F=t.createElement("div",{className:"".concat(E,"-panel-layout")},t.createElement(Uj,{prefixCls:E,presets:f,onClick:p,onHover:d}),t.createElement("div",null,t.createElement(Wj,ht({},e,{value:z})),t.createElement(Ej,ht({},e,{showNow:!l&&i,invalid:B,onSubmit:function(){D&&y(S),C(),k()}}))));n&&(F=n(F));var H="".concat(O,"-container"),W="marginLeft",V="marginRight",U=t.createElement("div",{onMouseDown:m,tabIndex:-1,className:jo()(H,"".concat(E,"-").concat(r,"-panel-container")),style:x(x({},_?V:W,R),_?W:V,"auto"),onFocus:h,onBlur:v},F);if(a){var G=x_(w_(u,_),_);U=t.createElement("div",{onMouseDown:m,ref:$,className:jo()("".concat(E,"-range-wrapper"),"".concat(E,"-").concat(o,"-range-wrapper"))},t.createElement("div",{ref:j,className:"".concat(E,"-range-arrow"),style:x({},G,s)}),t.createElement(Ju,{onResize:function(e){e.offsetWidth&&I(e.offsetWidth)}},U))}return U}function Yj(e,n){var r=e.format,o=e.maskFormat,i=e.generateConfig,a=e.locale,l=e.preserveInvalidOnBlur,c=e.inputReadOnly,s=e.required,u=e["aria-required"],f=e.onSubmit,d=e.onFocus,p=e.onBlur,h=e.onInputChange,v=e.onInvalid,m=e.open,g=e.onOpenChange,b=e.onKeyDown,y=e.onChange,w=e.activeHelp,x=e.name,S=e.autoComplete,k=e.id,E=e.value,O=e.invalid,_=e.placeholder,j=e.disabled,$=e.activeIndex,N=e.allHelp,P=e.picker,I=function(e,t){var n=i.locale.parse(a.locale,e,[t]);return n&&i.isValidate(n)?n:null},M=r[0],R=t.useCallback((function(e){return rj(e,{locale:a,format:M,generateConfig:i})}),[a,i,M]),A=t.useMemo((function(){return E.map(R)}),[E,R]),T=t.useMemo((function(){var e="time"===P?8:10,t="function"==typeof M?M(i.getNow()).length:M.length;return Math.max(e,t)+2}),[M,P,i]),q=function(e){for(var t=0;t<r.length;t+=1){var n=r[t];if("string"==typeof n){var o=I(e,n);if(o)return o}}return!1};return[function(t){function r(e){return void 0!==t?e[t]:e}var i=C(C({},dl(e,{aria:!0,data:!0})),{},{format:o,validateFormat:function(e){return!!q(e)},preserveInvalidOnBlur:l,readOnly:c,required:s,"aria-required":u,name:x,autoComplete:S,size:T,id:r(k),value:r(A)||"",invalid:r(O),placeholder:r(_),active:$===t,helped:N||w&&$===t,disabled:r(j),onFocus:function(e){d(e,t)},onBlur:function(e){p(e,t)},onSubmit:f,onChange:function(e){h();var n=q(e);if(n)return v(!1,t),void y(n,t);v(!!e,t)},onHelp:function(){g(!0,{index:t})},onKeyDown:function(e){var n=!1;if(null==b||b(e,(function(){n=!0})),!e.defaultPrevented&&!n)switch(e.key){case"Escape":g(!1,{index:t});break;case"Enter":m||g(!0)}}},null==n?void 0:n({valueTexts:A}));return Object.keys(i).forEach((function(e){void 0===i[e]&&delete i[e]})),i},R]}var Kj=["onMouseEnter","onMouseLeave"];function Xj(e){return t.useMemo((function(){return j_(e,Kj)}),[e])}var Qj=["icon","type"],Zj=["onClear"];function Jj(e){var n=e.icon,r=e.type,o=qo(e,Qj),i=t.useContext(S_).prefixCls;return n?t.createElement("span",ht({className:"".concat(i,"-").concat(r)},o),n):null}function e$(e){var n=e.onClear,r=qo(e,Zj);return t.createElement(Jj,ht({},r,{type:"clear",role:"button",onMouseDown:function(e){e.preventDefault()},onClick:function(e){e.stopPropagation(),n()}}))}var t$=["YYYY","MM","DD","HH","mm","ss","SSS"],n$=function(){function e(t){xe(this,e),x(this,"format",void 0),x(this,"maskFormat",void 0),x(this,"cells",void 0),x(this,"maskCells",void 0),this.format=t;var n=t$.map((function(e){return"(".concat(e,")")})).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,(function(e){return"顧".repeat(e.length)}));var o=new RegExp("(".concat(t$.join("|"),")")),i=(t.split(o)||[]).filter((function(e){return e})),a=0;this.cells=i.map((function(e){var t=t$.includes(e),n=a,r=a+e.length;return a=r,{text:e,mask:t,start:n,end:r}})),this.maskCells=this.cells.filter((function(e){return e.mask}))}return Ce(e,[{key:"getSelection",value:function(e){var t=this.maskCells[e]||{};return[t.start||0,t.end||0]}},{key:"match",value:function(e){for(var t=0;t<this.maskFormat.length;t+=1){var n=this.maskFormat[t],r=e[t];if(!r||"顧"!==n&&n!==r)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(e){for(var t=Number.MAX_SAFE_INTEGER,n=0,r=0;r<this.maskCells.length;r+=1){var o=this.maskCells[r],i=o.start,a=o.end;if(e>=i&&e<=a)return r;var l=Math.min(Math.abs(e-i),Math.abs(e-a));l<t&&(t=l,n=r)}return n}}]),e}();var r$=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],o$=t.forwardRef((function(e,n){var r=e.active,o=e.showActiveCls,i=void 0===o||o,a=e.suffixIcon,l=e.format,c=e.validateFormat,s=e.onChange,u=(e.onInput,e.helped),f=e.onHelp,d=e.onSubmit,p=e.onKeyDown,h=e.preserveInvalidOnBlur,v=void 0!==h&&h,m=e.invalid,g=e.clearIcon,b=qo(e,r$),y=e.value,w=e.onFocus,S=e.onBlur,C=e.onMouseUp,k=t.useContext(S_),E=k.prefixCls,O=k.input,_=void 0===O?"input":O,j="".concat(E,"-input"),$=Y(t.useState(!1),2),N=$[0],P=$[1],I=Y(t.useState(y),2),M=I[0],R=I[1],A=Y(t.useState(""),2),T=A[0],q=A[1],D=Y(t.useState(null),2),L=D[0],z=D[1],B=Y(t.useState(null),2),F=B[0],H=B[1],W=M||"";t.useEffect((function(){R(y)}),[y]);var V=t.useRef(),U=t.useRef();t.useImperativeHandle(n,(function(){return{nativeElement:V.current,inputElement:U.current,focus:function(e){U.current.focus(e)},blur:function(){U.current.blur()}}}));var G=t.useMemo((function(){return new n$(l||"")}),[l]),K=Y(t.useMemo((function(){return u?[0,0]:G.getSelection(L)}),[G,L,u]),2),X=K[0],Q=K[1],Z=function(e){e&&e!==l&&e!==y&&f()},J=Xo((function(e){c(e)&&s(e),R(e),Z(e)})),ee=t.useRef(!1),te=function(e){S(e)};uj(r,(function(){r||v||R(y)}));var ne=function(e){"Enter"===e.key&&c(W)&&d(),null==p||p(e)},re=t.useRef();et((function(){if(N&&l&&!ee.current){if(G.match(W))return U.current.setSelectionRange(X,Q),re.current=Ni((function(){U.current.setSelectionRange(X,Q)})),function(){Ni.cancel(re.current)};J(l)}}),[G,l,N,W,L,X,Q,F,J]);var oe=l?{onFocus:function(e){P(!0),z(0),q(""),w(e)},onBlur:function(e){P(!1),te(e)},onKeyDown:function(e){ne(e);var t=e.key,n=null,r=null,o=Q-X,i=l.slice(X,Q),a=function(e){z((function(t){var n=t+e;return n=Math.max(n,0),n=Math.min(n,G.size()-1)}))},c=function(e){var t=function(e){return{YYYY:[0,9999,(new Date).getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]}[e]}(i),n=Y(t,3),r=n[0],o=n[1],a=n[2],l=W.slice(X,Q),c=Number(l);if(isNaN(c))return String(a||(e>0?r:o));var s=o-r+1;return String(r+(s+(c+e)-r)%s)};switch(t){case"Backspace":case"Delete":n="",r=i;break;case"ArrowLeft":n="",a(-1);break;case"ArrowRight":n="",a(1);break;case"ArrowUp":n="",r=c(1);break;case"ArrowDown":n="",r=c(-1);break;default:isNaN(Number(t))||(r=n=T+t)}if(null!==n&&(q(n),n.length>=o&&(a(1),q(""))),null!==r){var s=W.slice(0,X)+E_(r,o)+W.slice(Q);J(s.slice(0,l.length))}H({})},onMouseDown:function(){ee.current=!0},onMouseUp:function(e){var t=e.target.selectionStart,n=G.getMaskCellIndex(t);z(n),H({}),null==C||C(e),ee.current=!1},onPaste:function(e){var t=e.clipboardData.getData("text");c(t)&&J(t)}}:{};return t.createElement("div",{ref:V,className:jo()(j,x(x({},"".concat(j,"-active"),r&&i),"".concat(j,"-placeholder"),u))},t.createElement(_,ht({ref:U,"aria-invalid":m,autoComplete:"off"},b,{onKeyDown:ne,onBlur:te},oe,{value:W,onChange:function(e){if(!l){var t=e.target.value;Z(t),R(t),s(t)}}})),t.createElement(Jj,{type:"suffix",icon:a}),g)}));var i$=o$,a$=["id","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","placement","onMouseDown","required","aria-required","autoFocus"],l$=["index"];function c$(e,n){var r=e.id,o=e.clearIcon,i=e.suffixIcon,a=e.separator,l=void 0===a?"~":a,c=e.activeIndex,s=(e.activeHelp,e.allHelp,e.focused),u=(e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig,e.placeholder),f=e.className,d=e.style,p=e.onClick,h=e.onClear,v=e.value,g=(e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),b=e.invalid,y=(e.inputReadOnly,e.direction),w=(e.onOpenChange,e.onActiveOffset),S=e.placement,k=e.onMouseDown,E=(e.required,e["aria-required"],e.autoFocus),O=qo(e,a$),_="rtl"===y,j=t.useContext(S_).prefixCls,$=t.useMemo((function(){if("string"==typeof r)return[r];var e=r||{};return[e.start,e.end]}),[r]),N=t.useRef(),P=t.useRef(),I=t.useRef(),M=function(e){var t;return null===(t=[P,I][e])||void 0===t?void 0:t.current};t.useImperativeHandle(n,(function(){return{nativeElement:N.current,focus:function(e){if("object"===m(e)){var t,n=e||{},r=n.index,o=void 0===r?0:r,i=qo(n,l$);null===(t=M(o))||void 0===t||t.focus(i)}else{var a;null===(a=M(null!=e?e:0))||void 0===a||a.focus()}},blur:function(){var e,t;null===(e=M(0))||void 0===e||e.blur(),null===(t=M(1))||void 0===t||t.blur()}}}));var R=Xj(O),A=t.useMemo((function(){return Array.isArray(u)?u:[u,u]}),[u]),T=Y(Yj(C(C({},e),{},{id:$,placeholder:A})),1)[0],q=w_(S,_),D=x_(q,_),L=null==q?void 0:q.toLowerCase().endsWith("right"),z=Y(t.useState({position:"absolute",width:0}),2),B=z[0],F=z[1],H=Xo((function(){var e=M(c);if(e){var t=e.nativeElement,n=t.offsetWidth,r=t.offsetLeft,o=t.offsetParent,i=(null==o?void 0:o.offsetWidth)||0,a=L?i-n-r:r;F((function(e){return C(C({},e),{},x({width:n},D,a))})),w(a)}}));t.useEffect((function(){H()}),[c]);var W=o&&(v[0]&&!g[0]||v[1]&&!g[1]),V=E&&!g[0],U=E&&!V&&!g[1];return t.createElement(Ju,{onResize:H},t.createElement("div",ht({},R,{className:jo()(j,"".concat(j,"-range"),x(x(x(x({},"".concat(j,"-focused"),s),"".concat(j,"-disabled"),g.every((function(e){return e}))),"".concat(j,"-invalid"),b.some((function(e){return e}))),"".concat(j,"-rtl"),_),f),style:d,ref:N,onClick:p,onMouseDown:function(e){var t=e.target;t!==P.current.inputElement&&t!==I.current.inputElement&&e.preventDefault(),null==k||k(e)}}),t.createElement(i$,ht({ref:P},T(0),{autoFocus:V,"date-range":"start"})),t.createElement("div",{className:"".concat(j,"-range-separator")},l),t.createElement(i$,ht({ref:I},T(1),{autoFocus:U,"date-range":"end"})),t.createElement("div",{className:"".concat(j,"-active-bar"),style:B}),t.createElement(Jj,{type:"suffix",icon:i}),W&&t.createElement(e$,{icon:o,onClear:h})))}var s$=t.forwardRef(c$);function u$(e,t){var n=null!=e?e:t;return Array.isArray(n)?n:[n,n]}function f$(e){return 1===e?"end":"start"}function d$(e,n){var r=aj(e,(function(){var t=e.disabled,n=e.allowEmpty;return{disabled:u$(t,!1),allowEmpty:u$(n,!1)}})),o=Y(r,6),i=o[0],a=o[1],l=o[2],c=o[3],s=o[4],u=o[5],f=i.prefixCls,d=i.styles,p=i.classNames,h=i.placement,v=i.defaultValue,m=i.value,g=i.needConfirm,b=i.onKeyDown,y=i.disabled,w=i.allowEmpty,x=i.disabledDate,S=i.minDate,k=i.maxDate,E=i.defaultOpen,O=i.open,_=i.onOpenChange,j=i.locale,$=i.generateConfig,N=i.picker,P=i.showNow,I=i.showToday,M=i.showTime,R=i.mode,A=i.onPanelChange,T=i.onCalendarChange,q=i.onOk,D=i.defaultPickerValue,L=i.pickerValue,z=i.onPickerValueChange,B=i.inputReadOnly,F=i.suffixIcon,H=i.onFocus,W=i.onBlur,V=i.presets,U=i.ranges,G=i.components,K=i.cellRender,Q=i.dateRender,Z=i.monthCellRender,J=i.onClick,ee=cj(n),te=Y(lj(O,E,y,_),2),ne=te[0],re=te[1],oe=function(e,t){!y.some((function(e){return!e}))&&e||re(e,t)},ie=Y(yj($,j,c,!0,!1,v,m,T,q),5),ae=ie[0],le=ie[1],ce=ie[2],se=ie[3],ue=ie[4],fe=ce(),de=Y(fj(y,w,ne),7),pe=de[0],he=de[1],ve=de[2],me=de[3],ge=de[4],be=de[5],ye=de[6],we=function(e,t){he(!0),null==H||H(e,{range:f$(null!=t?t:me)})},xe=function(e,t){he(!1),null==W||W(e,{range:f$(null!=t?t:me)})},Se=t.useMemo((function(){if(!M)return null;var e=M.disabledTime,t=e?function(t){var n=f$(me),r=N_(fe,ye,me);return e(t,n,{from:r})}:void 0;return C(C({},M),{},{disabledTime:t})}),[M,me,fe,ye]),Ce=Y(Jo([N,N],{value:R}),2),ke=Ce[0],Ee=Ce[1],Oe=ke[me]||N,_e="date"===Oe&&Se?"datetime":Oe,je=_e===N&&"time"!==_e,$e=xj(N,Oe,P,I,!0),Ne=Y(wj(i,ae,le,ce,se,y,c,pe,ne,u),2),Pe=Ne[0],Ie=Ne[1],Me=function(e,t,n,r,o,i){var a=n[n.length-1];return function(l,c){var s=Y(e,2),u=s[0],f=s[1],d=C(C({},c),{},{from:N_(e,n)});return!(1!==a||!t[0]||!u||ej(r,o,u,l,d.type)||!r.isAfter(u,l))||!(0!==a||!t[1]||!f||ej(r,o,f,l,d.type)||!r.isAfter(l,f))||(null==i?void 0:i(l,d))}}(fe,y,ye,$,j,x),Re=Y(M_(fe,u,w),2),Ae=Re[0],Te=Re[1],qe=Y(hj($,j,fe,ke,ne,me,a,je,D,L,null==Se?void 0:Se.defaultOpenValue,z,S,k),2),De=qe[0],Le=qe[1],ze=Xo((function(e,t,n){var r=__(ke,me,t);if(r[0]===ke[0]&&r[1]===ke[1]||Ee(r),A&&!1!==n){var o=X(fe);e&&(o[me]=e),A(o,r)}})),Be=function(e,t){return __(fe,t,e)},Fe=function(e,t){var n=fe;e&&(n=Be(e,me));var r=be(n);se(n),Pe(me,null===r),null===r?oe(!1,{force:!0}):t||ee.current.focus({index:r})},He=Y(t.useState(null),2),We=He[0],Ve=He[1],Ue=Y(t.useState(null),2),Ge=Ue[0],Ye=Ue[1],Ke=t.useMemo((function(){return Ge||fe}),[fe,Ge]);t.useEffect((function(){ne||Ye(null)}),[ne]);var Xe=Y(t.useState(0),2),Qe=Xe[0],Ze=Xe[1],Je=sj(V,U),tt=I_(K,Q,Z,f$(me)),nt=fe[me]||null,rt=Xo((function(e){return u(e,{activeIndex:me})})),ot=t.useMemo((function(){var e=dl(i,!1);return qc(i,[].concat(X(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]))}),[i]),it=t.createElement(Gj,ht({},ot,{showNow:$e,showTime:Se,range:!0,multiplePanel:je,activeOffset:Qe,placement:h,disabledDate:Me,onFocus:function(e){oe(!0),we(e)},onBlur:xe,onPanelMouseDown:function(){ve("panel")},picker:N,mode:Oe,internalMode:_e,onPanelChange:ze,format:s,value:nt,isInvalid:rt,onChange:null,onSelect:function(e){var t=__(fe,me,e);se(t),g||l||a!==_e||Fe(e)},pickerValue:De,defaultOpenValue:O_(null==M?void 0:M.defaultOpenValue)[me],onPickerValueChange:Le,hoverValue:Ke,onHover:function(e){Ye(e?Be(e,me):null),Ve("cell")},needConfirm:g,onSubmit:Fe,onOk:ue,presets:Je,onPresetHover:function(e){Ye(e),Ve("preset")},onPresetSubmit:function(e){Ie(e)&&oe(!1,{force:!0})},onNow:function(e){Fe(e)},cellRender:tt})),at=t.useMemo((function(){return{prefixCls:f,locale:j,generateConfig:$,button:G.button,input:G.input}}),[f,j,$,G.button,G.input]);return et((function(){ne&&void 0!==me&&ze(null,N,!1)}),[ne,me,N]),et((function(){var e=ve();ne||"input"!==e||(oe(!1),Fe(null,!0)),ne||!l||g||"panel"!==e||(oe(!0),Fe())}),[ne]),t.createElement(S_.Provider,{value:at},t.createElement(k_,ht({},P_(i),{popupElement:it,popupStyle:d.popup,popupClassName:p.popup,visible:ne,onClose:function(){oe(!1)},range:!0}),t.createElement(s$,ht({},i,{ref:ee,suffixIcon:F,activeIndex:pe||ne?me:null,activeHelp:!!Ge,allHelp:!!Ge&&"preset"===We,focused:pe,onFocus:function(e,t){ve("input"),oe(!0,{inherit:!0}),me!==t&&ne&&!g&&l&&Fe(null,!0),ge(t),we(e,t)},onBlur:function(e,t){if(oe(!1),!g&&"input"===ve()){var n=be(fe);Pe(me,null===n)}xe(e,t)},onKeyDown:function(e,t){"Tab"===e.key&&Fe(null,!0),null==b||b(e,t)},onSubmit:Fe,value:Ke,maskFormat:s,onChange:function(e,t){var n=Be(e,t);se(n)},onInputChange:function(){ve("input")},format:c,inputReadOnly:B,disabled:y,open:ne,onOpenChange:oe,onClick:function(e){var t,n=e.target.getRootNode();if(!ee.current.nativeElement.contains(null!==(t=n.activeElement)&&void 0!==t?t:document.activeElement)){var r=y.findIndex((function(e){return!e}));r>=0&&ee.current.focus({index:r})}oe(!0),null==J||J(e)},onClear:function(){Ie(null),oe(!1,{force:!0})},invalid:Ae,onInvalid:Te,onActiveOffset:Ze}))))}var p$=t.forwardRef(d$);function h$(e){var n=e.prefixCls,r=e.value,o=e.onRemove,i=e.removeIcon,a=void 0===i?"×":i,l=e.formatDate,c=e.disabled,s=e.maxTagCount,u=e.placeholder,f="".concat(n,"-selector"),d="".concat(n,"-selection"),p="".concat(d,"-overflow");function h(e,n){return t.createElement("span",{className:jo()("".concat(d,"-item")),title:"string"==typeof e?e:null},t.createElement("span",{className:"".concat(d,"-item-content")},e),!c&&n&&t.createElement("span",{onMouseDown:function(e){e.preventDefault()},onClick:n,className:"".concat(d,"-item-remove")},a))}return t.createElement("div",{className:f},t.createElement(Qb,{prefixCls:p,data:r,renderItem:function(e){return h(l(e),(function(t){t&&t.stopPropagation(),o(e)}))},renderRest:function(e){return h("+ ".concat(e.length," ..."))},itemKey:function(e){return l(e)},maxCount:s}),!r.length&&t.createElement("span",{className:"".concat(n,"-selection-placeholder")},u))}var v$=["id","open","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","removeIcon"];function m$(e,n){e.id;var r=e.open,o=e.clearIcon,i=e.suffixIcon,a=(e.activeHelp,e.allHelp,e.focused),l=(e.onFocus,e.onBlur,e.onKeyDown,e.locale),c=e.generateConfig,s=e.placeholder,u=e.className,f=e.style,d=e.onClick,p=e.onClear,h=e.internalPicker,v=e.value,m=e.onChange,g=e.onSubmit,b=(e.onInputChange,e.multiple),y=e.maxTagCount,w=(e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),S=e.invalid,k=(e.inputReadOnly,e.direction),E=(e.onOpenChange,e.onMouseDown),O=(e.required,e["aria-required"],e.autoFocus),_=e.removeIcon,j=qo(e,v$),$="rtl"===k,N=t.useContext(S_).prefixCls,P=t.useRef(),I=t.useRef();t.useImperativeHandle(n,(function(){return{nativeElement:P.current,focus:function(e){var t;null===(t=I.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=I.current)||void 0===e||e.blur()}}}));var M=Xj(j),R=Yj(C(C({},e),{},{onChange:function(e){m([e])}}),(function(e){return{value:e.valueTexts[0]||"",active:a}})),A=Y(R,2),T=A[0],q=A[1],D=!(!o||!v.length||w),L=b?t.createElement(t.Fragment,null,t.createElement(h$,{prefixCls:N,value:v,onRemove:function(e){var t=v.filter((function(t){return t&&!ej(c,l,t,e,h)}));m(t),r||g()},formatDate:q,maxTagCount:y,disabled:w,removeIcon:_,placeholder:s}),t.createElement("input",{className:"".concat(N,"-multiple-input"),value:v.map(q).join(","),ref:I,readOnly:!0,autoFocus:O}),t.createElement(Jj,{type:"suffix",icon:i}),D&&t.createElement(e$,{icon:o,onClear:p})):t.createElement(i$,ht({ref:I},T(),{autoFocus:O,suffixIcon:i,clearIcon:D&&t.createElement(e$,{icon:o,onClear:p}),showActiveCls:!1}));return t.createElement("div",ht({},M,{className:jo()(N,x(x(x(x(x({},"".concat(N,"-multiple"),b),"".concat(N,"-focused"),a),"".concat(N,"-disabled"),w),"".concat(N,"-invalid"),S),"".concat(N,"-rtl"),$),u),style:f,ref:P,onClick:d,onMouseDown:function(e){var t;e.target!==(null===(t=I.current)||void 0===t?void 0:t.inputElement)&&e.preventDefault(),null==E||E(e)}}),L)}var g$=t.forwardRef(m$);function b$(e,n){var r=Y(aj(e),6),o=r[0],i=r[1],a=r[2],l=r[3],c=r[4],s=r[5],u=o,f=u.prefixCls,d=u.styles,p=u.classNames,h=u.order,v=u.defaultValue,m=u.value,g=u.needConfirm,b=u.onChange,y=u.onKeyDown,w=u.disabled,x=u.disabledDate,S=u.minDate,k=u.maxDate,E=u.defaultOpen,O=u.open,_=u.onOpenChange,j=u.locale,$=u.generateConfig,N=u.picker,P=u.showNow,I=u.showToday,M=u.showTime,R=u.mode,A=u.onPanelChange,T=u.onCalendarChange,q=u.onOk,D=u.multiple,L=u.defaultPickerValue,z=u.pickerValue,B=u.onPickerValueChange,F=u.inputReadOnly,H=u.suffixIcon,W=u.removeIcon,V=u.onFocus,U=u.onBlur,G=u.presets,K=u.components,Q=u.cellRender,Z=u.dateRender,J=u.monthCellRender,ee=u.onClick,te=cj(n);function ne(e){return null===e?null:D?e:e[0]}var re=Oj($,j,i),oe=Y(lj(O,E,[w],_),2),ie=oe[0],ae=oe[1],le=Y(yj($,j,l,!1,h,v,m,(function(e,t,n){if(T){var r=C({},n);delete r.range,T(ne(e),ne(t),r)}}),(function(e){null==q||q(ne(e))})),5),ce=le[0],se=le[1],ue=le[2],fe=le[3],de=le[4],pe=ue(),he=Y(fj([w]),4),ve=he[0],me=he[1],ge=he[2],be=he[3],ye=function(e){me(!0),null==V||V(e,{})},we=function(e){me(!1),null==U||U(e,{})},xe=Y(Jo(N,{value:R}),2),Se=xe[0],Ce=xe[1],ke="date"===Se&&M?"datetime":Se,Ee=xj(N,Se,P,I),Oe=b&&function(e,t){b(ne(e),ne(t))},_e=Y(wj(C(C({},o),{},{onChange:Oe}),ce,se,ue,fe,[],l,ve,ie,s),2)[1],je=Y(M_(pe,s),2),$e=je[0],Ne=je[1],Pe=t.useMemo((function(){return $e.some((function(e){return e}))}),[$e]),Ie=Y(hj($,j,pe,[Se],ie,be,i,!1,L,z,O_(null==M?void 0:M.defaultOpenValue),(function(e,t){if(B){var n=C(C({},t),{},{mode:t.mode[0]});delete n.range,B(e[0],n)}}),S,k),2),Me=Ie[0],Re=Ie[1],Ae=Xo((function(e,t,n){if(Ce(t),A&&!1!==n){var r=e||pe[pe.length-1];A(r,t)}})),Te=function(){_e(ue()),ae(!1,{force:!0})},qe=Y(t.useState(null),2),De=qe[0],Le=qe[1],ze=Y(t.useState(null),2),Be=ze[0],Fe=ze[1],He=t.useMemo((function(){var e=[Be].concat(X(pe)).filter((function(e){return e}));return D?e:e.slice(0,1)}),[pe,Be,D]),We=t.useMemo((function(){return!D&&Be?[Be]:pe.filter((function(e){return e}))}),[pe,Be,D]);t.useEffect((function(){ie||Fe(null)}),[ie]);var Ve=sj(G),Ue=function(e){var t=D?re(ue(),e):[e];_e(t)&&!D&&ae(!1,{force:!0})},Ge=I_(Q,Z,J),Ye=t.useMemo((function(){var e=dl(o,!1);return C(C({},qc(o,[].concat(X(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange"]))),{},{multiple:o.multiple})}),[o]),Ke=t.createElement(Gj,ht({},Ye,{showNow:Ee,showTime:M,disabledDate:x,onFocus:function(e){ae(!0),ye(e)},onBlur:we,picker:N,mode:Se,internalMode:ke,onPanelChange:Ae,format:c,value:pe,isInvalid:s,onChange:null,onSelect:function(e){ge("panel");var t=D?re(ue(),e):[e];fe(t),g||a||i!==ke||Te()},pickerValue:Me,defaultOpenValue:null==M?void 0:M.defaultOpenValue,onPickerValueChange:Re,hoverValue:He,onHover:function(e){Fe(e),Le("cell")},needConfirm:g,onSubmit:Te,onOk:de,presets:Ve,onPresetHover:function(e){Fe(e),Le("preset")},onPresetSubmit:Ue,onNow:function(e){Ue(e)},cellRender:Ge})),Xe=t.useMemo((function(){return{prefixCls:f,locale:j,generateConfig:$,button:K.button,input:K.input}}),[f,j,$,K.button,K.input]);return et((function(){ie&&void 0!==be&&Ae(null,N,!1)}),[ie,be,N]),et((function(){var e=ge();ie||"input"!==e||(ae(!1),Te()),ie||!a||g||"panel"!==e||(ae(!0),Te())}),[ie]),t.createElement(S_.Provider,{value:Xe},t.createElement(k_,ht({},P_(o),{popupElement:Ke,popupStyle:d.popup,popupClassName:p.popup,visible:ie,onClose:function(){ae(!1)}}),t.createElement(g$,ht({},o,{ref:te,suffixIcon:H,removeIcon:W,activeHelp:!!Be,allHelp:!!Be&&"preset"===De,focused:ve,onFocus:function(e){ge("input"),ae(!0,{inherit:!0}),ye(e)},onBlur:function(e){ae(!1),we(e)},onKeyDown:function(e,t){"Tab"===e.key&&Te(),null==y||y(e,t)},onSubmit:Te,value:We,maskFormat:c,onChange:function(e){fe(e)},onInputChange:function(){ge("input")},internalPicker:i,format:l,inputReadOnly:F,disabled:w,open:ie,onOpenChange:ae,onClick:function(e){w||te.current.nativeElement.contains(document.activeElement)||te.current.focus(),ae(!0),null==ee||ee(e)},onClear:function(){_e(null),ae(!1,{force:!0})},invalid:Pe,onInvalid:function(e){Ne(e,0)}}))))}var y$=t.forwardRef(b$);const w$=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",i=Vw(e);return[{[`${n}-multiple${o}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:r,[`${n}-selection-item`]:{height:i.itemHeight,lineHeight:Ue(i.itemLineHeight)}}}]};var x$=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=Wl(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),i=Wl(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[w$(o,"small"),w$(e),w$(i,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},Uw(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]};const S$=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:i,cellHoverBg:a,lineWidth:l,lineType:c,colorPrimary:s,cellActiveWithRangeBg:u,colorTextLightSolid:f,colorTextDisabled:d,cellBgDisabled:p,colorFillSecondary:h}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""'},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:Ue(r),borderRadius:o,transition:`background ${i}`},[`&:hover:not(${t}-in-view),\n &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end)`]:{[n]:{background:a}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${Ue(l)} ${c} ${s}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,background:s},[`&${t}-disabled ${n}`]:{background:h}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:d,pointerEvents:"none",[n]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:d}}},C$=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:i,cellWidth:a,paddingSM:l,paddingXS:c,paddingXXS:s,colorBgContainer:u,lineWidth:f,lineType:d,borderRadiusLG:p,colorPrimary:h,colorTextHeading:v,colorSplit:m,pickerControlIconBorderWidth:g,colorIcon:b,textHeight:y,motionDurationMid:w,colorIconHover:x,fontWeightStrong:S,cellHeight:C,pickerCellPaddingVertical:k,colorTextDisabled:E,colorText:O,fontSize:_,motionDurationSlow:j,withoutTimeCellHeight:$,pickerQuarterPanelContentHeight:N,borderRadiusSM:P,colorTextLightSolid:I,cellHoverBg:M,timeColumnHeight:R,timeColumnWidth:A,timeCellHeight:T,controlItemBgActive:q,marginXXS:D,pickerDatePanelPaddingHorizontal:L,pickerControlIconMargin:z}=e,B=e.calc(a).mul(7).add(e.calc(L).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:p,outline:"none","&-focused":{borderColor:h},"&-rtl":{[`${t}-prev-icon,\n ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,\n ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:B},"&-header":{display:"flex",padding:`0 ${Ue(c)}`,color:v,borderBottom:`${Ue(f)} ${d} ${m}`,"> *":{flex:"none"},button:{padding:0,color:b,lineHeight:Ue(y),background:"transparent",border:0,cursor:"pointer",transition:`color ${w}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center"},"> button":{minWidth:"1.6em",fontSize:_,"&:hover":{color:x},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:S,lineHeight:Ue(y),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:h}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:`${Ue(g)} 0`,borderInlineWidth:`${Ue(g)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:z,insetInlineStart:z,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:`${Ue(g)} 0`,borderInlineWidth:`${Ue(g)} 0`,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:C,fontWeight:"normal"},th:{height:e.calc(C).add(e.calc(k).mul(2)).equal(),color:O,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Ue(k)} 0`,color:E,cursor:"pointer","&-in-view":{color:O}},S$(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc($).mul(4).equal()},[r]:{padding:`0 ${Ue(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:N}},"&-decade-panel":{[r]:{padding:`0 ${Ue(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${Ue(c)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${Ue(c)} ${Ue(L)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r},\n &-selected ${r},\n ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${w}`},"&:first-child:before":{borderStartStartRadius:P,borderEndStartRadius:P},"&:last-child:before":{borderStartEndRadius:P,borderEndEndRadius:P}},"&:hover td":{"&:before":{background:M}},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new no(I).setAlpha(.5).toHexString()},[r]:{color:I}}},"&-range-hover td:before":{background:q}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${Ue(c)} ${Ue(l)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${Ue(f)} ${d} ${m}`},[`${t}-date-panel,\n ${t}-time-panel`]:{transition:`opacity ${j}`},"&-active":{[`${t}-date-panel,\n ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:R},"&-column":{flex:"1 0 auto",width:A,margin:`${Ue(s)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${w}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:e.calc("100%").sub(T).equal(),content:'""'},"&:not(:first-child)":{borderInlineStart:`${Ue(f)} ${d} ${m}`},"&-active":{background:new no(q).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:D,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(A).sub(e.calc(D).mul(2)).equal(),height:T,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(A).sub(T).div(2).equal(),color:O,lineHeight:Ue(T),borderRadius:P,cursor:"pointer",transition:`background ${w}`,"&:hover":{background:M}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:q}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:E,background:"transparent",cursor:"not-allowed"}}}}}}}}};var k$=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:i,colorPrimary:a,cellActiveWithRangeBg:l,colorPrimaryBorder:c,lineType:s,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${Ue(r)} ${s} ${u}`,"&-extra":{padding:`0 ${Ue(o)}`,lineHeight:Ue(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${Ue(r)} ${s} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:Ue(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:Ue(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${i}-tag-blue`]:{color:a,background:l,borderColor:c,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}};var E$=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},Wm(e)),Xm(e)),Gm(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Ue(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${Ue(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Ue(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}};const O$=(e,t,n,r)=>{const o=e.calc(n).add(2).equal(),i=e.max(e.calc(t).sub(o).div(2).equal(),0),a=e.max(e.calc(t).sub(o).sub(i).equal(),0);return{padding:`${Ue(i)} ${Ue(r)} ${Ue(a)}`}},_$=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},j$=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:o,lineWidth:i,lineType:a,colorBorder:l,borderRadius:c,motionDurationMid:s,colorTextDisabled:u,colorTextPlaceholder:f,controlHeightLG:d,fontSizeLG:p,controlHeightSM:h,paddingInlineSM:v,paddingXS:m,marginXS:g,colorTextDescription:b,lineWidthBold:y,colorPrimary:w,motionDurationSlow:x,zIndexPopup:S,paddingXXS:C,sizePopupArrow:k,colorBgElevated:E,borderRadiusLG:O,boxShadowSecondary:_,borderRadiusSM:j,colorSplit:$,cellHoverBg:N,presetsWidth:P,presetsMaxWidth:I,boxShadowPopoverArrow:M,fontHeight:R,fontHeightLG:A,lineHeightLG:T}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},ua(e)),O$(e,r,R,o)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:c,transition:`border ${s}, box-shadow ${s}, background ${s}`,[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${s}`},Jm(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},O$(e,d,A,o)),{[`${t}-input > input`]:{fontSize:p,lineHeight:T}}),"&-small":Object.assign({},O$(e,h,R,v)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(m).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${s}, color ${s}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:g}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${s}, color ${s}`,"> *":{verticalAlign:"top"},"&:hover":{color:b}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:u,fontSize:p,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:b},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:y,background:w,opacity:0,transition:`all ${x} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${Ue(m)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:o},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:v}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},ua(e)),C$(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:S,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,\n &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft,\n &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:_w},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Ew},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:jw},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Ow},[`${t}-panel > ${t}-time-panel`]:{paddingTop:C},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${x} ease-out`},kp(e,E,M)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:E,borderRadius:O,boxShadow:_,transition:`margin ${x}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:P,maxWidth:I,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:m,borderInlineEnd:`${Ue(i)} ${a} ${$}`,li:Object.assign(Object.assign({},sa),{borderRadius:j,paddingInline:m,paddingBlock:e.calc(h).sub(R).div(2).equal(),cursor:"pointer",transition:`all ${x}`,"+ li":{marginTop:g},"&:hover":{background:N}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:l}}}}),"&-dropdown-range":{padding:`${Ue(e.calc(k).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},Rw(e,"slide-up"),Rw(e,"slide-down"),Fw(e,"move-up"),Fw(e,"move-down")]};var $$=Jl("DatePicker",(e=>{const t=Wl(Dm(e),(e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(r).div(2)).equal()}})(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[k$(t),j$(t),E$(t),_$(t),x$(t),Ws(e,{focusElCls:`${e.componentCls}-focused`})]}),(e=>Object.assign(Object.assign(Object.assign(Object.assign({},Lm(e)),(e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:i,lineWidth:a}=e,l=2*i,c=2*a,s=Math.min(n-l,n-c),u=Math.min(r-l,r-c),f=Math.min(o-l,o-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(i/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new no(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new no(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:1.4*o,timeColumnHeight:224,timeCellHeight:28,cellWidth:1.5*r,cellHeight:r,textHeight:o,withoutTimeCellHeight:1.65*o,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:s,multipleItemHeightSM:u,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}})(e)),Cp(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50})));function N$(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function P$(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function I$(e,t){const n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:"rtl"===e?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}function M$(e,n){const{allowClear:r=!0}=e,{clearIcon:o,removeIcon:i}=gx(Object.assign(Object.assign({},e),{prefixCls:n,componentName:"DatePicker"}));return[t.useMemo((()=>{if(!1===r)return!1;const e=!0===r?{}:r;return Object.assign({clearIcon:o},e)}),[r,o]),i]}const[R$,A$]=["week","WeekPicker"],[T$,q$]=["month","MonthPicker"],[D$,L$]=["year","YearPicker"],[z$,B$]=["quarter","QuarterPicker"],[F$,H$]=["time","TimePicker"];var W$=e=>t.createElement(Zs,Object.assign({size:"small",type:"primary"},e));function V$(e){return(0,t.useMemo)((()=>Object.assign({button:W$},e)),[e])}var U$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var G$=e=>{const n=(0,t.forwardRef)(((n,r)=>{var o;const{prefixCls:i,getPopupContainer:a,components:l,className:c,style:s,placement:u,size:f,disabled:d,bordered:p=!0,placeholder:h,popupClassName:v,dropdownClassName:m,status:g,rootClassName:b,variant:y,picker:w}=n,x=U$(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),S=t.useRef(null),{getPrefixCls:C,direction:k,getPopupContainer:E,rangePicker:O}=(0,t.useContext)(F),_=C("picker",i),{compactSize:j,compactItemClassnames:$}=es(_,k),N=C(),[P,I]=Og("rangePicker",y,p),M=Ol(_),[R,A,T]=$$(_,M);const[q]=M$(n,_),D=V$(l),L=Qc((e=>{var t;return null!==(t=null!=f?f:j)&&void 0!==t?t:e})),z=t.useContext(yo),B=null!=d?d:z,H=(0,t.useContext)(dp),{hasFeedback:W,status:V,feedbackIcon:U}=H,G=t.createElement(t.Fragment,null,w===F$?t.createElement(m_,null):t.createElement(p_,null),W&&U);(0,t.useImperativeHandle)(r,(()=>S.current));const[Y]=oh("Calendar",Dn),K=Object.assign(Object.assign({},Y),n.locale),[X]=Il("DatePicker",null===(o=n.popupStyle)||void 0===o?void 0:o.zIndex);return R(t.createElement(vp,{space:!0},t.createElement(p$,Object.assign({separator:t.createElement("span",{"aria-label":"to",className:`${_}-separator`},t.createElement(y_,null)),disabled:B,ref:S,popupAlign:I$(k,u),placement:u,placeholder:P$(K,w,h),suffixIcon:G,prevIcon:t.createElement("span",{className:`${_}-prev-icon`}),nextIcon:t.createElement("span",{className:`${_}-next-icon`}),superPrevIcon:t.createElement("span",{className:`${_}-super-prev-icon`}),superNextIcon:t.createElement("span",{className:`${_}-super-next-icon`}),transitionName:`${N}-slide-up`,picker:w},x,{className:jo()({[`${_}-${L}`]:L,[`${_}-${P}`]:I},kg(_,Eg(V,g),W),A,$,c,null==O?void 0:O.className,T,M,b),style:Object.assign(Object.assign({},null==O?void 0:O.style),s),locale:K.lang,prefixCls:_,getPopupContainer:a||E,generateConfig:e,components:D,direction:k,classNames:{popup:jo()(A,v||m,T,M,b)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:X})},allowClear:q}))))}));return n},Y$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var K$=e=>{const n=(n,r)=>{const o=r===H$?"timePicker":"datePicker",i=(0,t.forwardRef)(((r,i)=>{var a;const{prefixCls:l,getPopupContainer:c,components:s,style:u,className:f,rootClassName:d,size:p,bordered:h,placement:v,placeholder:m,popupClassName:g,dropdownClassName:b,disabled:y,status:w,variant:x,onCalendarChange:S}=r,C=Y$(r,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:k,direction:E,getPopupContainer:O,[o]:_}=(0,t.useContext)(F),j=k("picker",l),{compactSize:$,compactItemClassnames:N}=es(j,E),P=t.useRef(null),[I,M]=Og("datePicker",x,h),R=Ol(j),[A,T,q]=$$(j,R);(0,t.useImperativeHandle)(i,(()=>P.current));const D=n||r.picker,L=k(),{onSelect:z,multiple:B}=C,H=z&&"time"===n&&!B;const[W,V]=M$(r,j),U=V$(s),G=Qc((e=>{var t;return null!==(t=null!=p?p:$)&&void 0!==t?t:e})),Y=t.useContext(yo),K=null!=y?y:Y,X=(0,t.useContext)(dp),{hasFeedback:Q,status:Z,feedbackIcon:J}=X,ee=t.createElement(t.Fragment,null,"time"===D?t.createElement(m_,null):t.createElement(p_,null),Q&&J),[te]=oh("DatePicker",Dn),ne=Object.assign(Object.assign({},te),r.locale),[re]=Il("DatePicker",null===(a=r.popupStyle)||void 0===a?void 0:a.zIndex);return A(t.createElement(vp,{space:!0},t.createElement(y$,Object.assign({ref:P,placeholder:N$(ne,D,m),suffixIcon:ee,dropdownAlign:I$(E,v),placement:v,prevIcon:t.createElement("span",{className:`${j}-prev-icon`}),nextIcon:t.createElement("span",{className:`${j}-next-icon`}),superPrevIcon:t.createElement("span",{className:`${j}-super-prev-icon`}),superNextIcon:t.createElement("span",{className:`${j}-super-next-icon`}),transitionName:`${L}-slide-up`,picker:n,onCalendarChange:(e,t,n)=>{null==S||S(e,t,n),H&&z(e)}},{showToday:!0},C,{locale:ne.lang,className:jo()({[`${j}-${G}`]:G,[`${j}-${I}`]:M},kg(j,Eg(Z,w),Q),T,N,null==_?void 0:_.className,f,q,R,d),style:Object.assign(Object.assign({},null==_?void 0:_.style),u),prefixCls:j,getPopupContainer:c||O,generateConfig:e,components:U,direction:E,disabled:K,classNames:{popup:jo()(T,q,R,d,g||b)},styles:{popup:Object.assign(Object.assign({},r.popupStyle),{zIndex:re})},allowClear:W,removeIcon:V}))))}));return i},r=n(),o=n(R$,A$),i=n(T$,q$),a=n(D$,L$),l=n(z$,B$);return{DatePicker:r,WeekPicker:o,MonthPicker:i,YearPicker:a,TimePicker:n(F$,H$),QuarterPicker:l}};var X$=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:i,QuarterPicker:a}=K$(e),l=G$(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=o,c.RangePicker=l,c.TimePicker=i,c.QuarterPicker=a,c};const Q$=X$(u_);function Z$(e){const t=I$(e.direction,e.placement);return t.overflow.adjustY=!1,t.overflow.adjustX=!1,Object.assign(Object.assign({},e),{dropdownAlign:t})}const J$=Fv(Q$,"picker",null,Z$);Q$._InternalPanelDoNotUseOrYouWillBeFired=J$;const eN=Fv(Q$.RangePicker,"picker",null,Z$);Q$._InternalRangePanelDoNotUseOrYouWillBeFired=eN,Q$.generatePicker=X$;var tN=Q$;function nN(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return rN(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rN(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var oN=function(e){var n,o,i,a,c,s,u,f=e.field,p=f.help,h=f.value,v=f.placeholder,m=e.id,g=null===(n=e.field)||void 0===n?void 0:n.fieldType,b=null===(o=e.field)||void 0===o?void 0:o.parentId,y=null===(i=e.field)||void 0===i?void 0:i.index,w=null===(a=e.field)||void 0===a?void 0:a.repeaterData,x=null===(c=e.field)||void 0===c?void 0:c.format,S=!(null===(s=e.field)||void 0===s||!s.showtime),C=!(null===(u=e.field)||void 0===u||!u.disableDates),k=nN(l(),2),E=(k[0],k[1]);return(0,t.useEffect)((function(){var e=h||GO()().format(x);E({type:d,value:e,id:m,fieldType:g,parentId:b,repeaterData:w,index:y})}),[]),(0,r.jsxs)("div",{className:"rtsb-field datetime",children:[(0,r.jsx)(Nm,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(tN,{className:"rtsb-form-field",value:""!==h?GO()(h):GO()(),placeholder:v,disabledDate:!!C&&function(e){return e&&e<GO()().startOf("day")},onChange:function(e,t){E({type:d,value:t,id:m,fieldType:g,parentId:b,repeaterData:w,index:y})},format:x,allowClear:!1,showTime:S})}),p&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:p}})]})]})};function iN(e){return iN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iN(e)}var aN=function(e){e=cN(e);var t=[];return"string"==typeof e?t=JSON.parse(e):"object"===iN(e)&&(t=e),Object.keys(t).map((function(e){return t[e]}))},lN=function(e,t){var n;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];clearTimeout(n),n=setTimeout((function(){e.apply(void 0,o)}),t)}},cN=function(e){return"string"==typeof e&&e.startsWith('"')&&e.endsWith('"')&&(e=e.slice(1,-1)),e},sN=function(){return Date.now().toString(36)+Math.random().toString(36).substring(2)};const uN=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:c,fontSizeLG:s,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:d,paddingXS:p,borderRadiusLG:h,zIndexPopup:v,contentPadding:m,contentBg:g}=e,b=`${t}-notice`,y=new xn("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),w=new xn("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),x={padding:p,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:d,fontSize:s},[`${b}-content`]:{display:"inline-block",padding:m,background:g,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:c}};return[{[t]:Object.assign(Object.assign({},ua(e)),{color:o,position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:v,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:y,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:w,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${b}-wrapper`]:Object.assign({},x)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},x),{padding:0,textAlign:"start"})}]};var fN=Jl("Message",(e=>{const t=Wl(e,{height:150});return[uN(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+$l+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}))),dN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const pN={info:t.createElement(nl,null),success:t.createElement(Wa,null),error:t.createElement(Ga,null),warning:t.createElement(Ja,null),loading:t.createElement(il,null)},hN=e=>{let{prefixCls:n,type:r,icon:o,children:i}=e;return t.createElement("div",{className:jo()(`${n}-custom-content`,`${n}-${r}`)},o||pN[r],t.createElement("span",null,i))};var vN=e=>{const{prefixCls:n,className:r,type:o,icon:i,content:a}=e,l=dN(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:c}=t.useContext(F),s=n||c("message"),u=Ol(s),[f,d,p]=fN(s,u);return f(t.createElement(hl,Object.assign({},l,{prefixCls:s,className:jo()(r,d,`${s}-notice-pure-panel`,p,u),eventKey:"pure",duration:null,content:t.createElement(hN,{prefixCls:s,type:o,icon:i},a)})))};function mN(e){let t;const n=new Promise((n=>{t=e((()=>{n(!0)}))})),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var gN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const bN=3,yN=e=>{let{children:n,prefixCls:r}=e;const o=Ol(r),[i,a,l]=fN(r,o);return i(t.createElement(ml,{classNames:{list:jo()(a,l,o)}},n))},wN=(e,n)=>{let{prefixCls:r,key:o}=n;return t.createElement(yN,{prefixCls:r,key:o},e)},xN=t.forwardRef(((e,n)=>{const{top:r,prefixCls:o,getContainer:i,maxCount:a,duration:l=bN,rtl:c,transitionName:s,onAllRemoved:u}=e,{getPrefixCls:f,getPopupContainer:d,message:p,direction:h}=t.useContext(F),v=o||f("message"),m=t.createElement("span",{className:`${v}-close-x`},t.createElement(Xa,{className:`${v}-close-icon`})),[g,b]=El({prefixCls:v,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=r?r:8}),className:()=>jo()({[`${v}-rtl`]:null!=c?c:"rtl"===h}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(v,s),closable:!1,closeIcon:m,duration:l,getContainer:()=>(null==i?void 0:i())||(null==d?void 0:d())||document.body,maxCount:a,onAllRemoved:u,renderNotifications:wN});return t.useImperativeHandle(n,(()=>Object.assign(Object.assign({},g),{prefixCls:v,message:p}))),b}));let SN=0;function CN(e){const n=t.useRef(null),r=(Mn("Message"),t.useMemo((()=>{const e=e=>{var t;null===(t=n.current)||void 0===t||t.close(e)},r=r=>{if(!n.current){const e=()=>{};return e.then=()=>{},e}const{open:o,prefixCls:i,message:a}=n.current,l=`${i}-notice`,{content:c,icon:s,type:u,key:f,className:d,style:p,onClose:h}=r,v=gN(r,["content","icon","type","key","className","style","onClose"]);let m=f;return null==m&&(SN+=1,m=`antd-message-${SN}`),mN((n=>(o(Object.assign(Object.assign({},v),{key:m,content:t.createElement(hN,{prefixCls:i,type:u,icon:s},c),placement:"top",className:jo()(u&&`${l}-${u}`,d,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),p),onClose:()=>{null==h||h(),n()}})),()=>{e(m)})))},o={open:r,destroy:t=>{var r;void 0!==t?e(t):null===(r=n.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{o[e]=(t,n,o)=>{let i,a,l;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof n?l=n:(a=n,l=o);const c=Object.assign(Object.assign({onClose:l,duration:a},i),{type:e});return r(c)}})),o}),[]));return[r,t.createElement(xN,Object.assign({key:"message-holder"},e,{ref:n}))]}let kN=null,EN=e=>e(),ON=[],_N={};function jN(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=_N,i=(null==e?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const $N=t.forwardRef(((e,n)=>{const{messageConfig:r,sync:o}=e,{getPrefixCls:i}=(0,t.useContext)(F),a=_N.prefixCls||i("message"),l=(0,t.useContext)(D),[c,s]=CN(Object.assign(Object.assign(Object.assign({},r),{prefixCls:a}),l.message));return t.useImperativeHandle(n,(()=>{const e=Object.assign({},c);return Object.keys(e).forEach((t=>{e[t]=function(){return o(),c[t].apply(c,arguments)}})),{instance:e,sync:o}})),s})),NN=t.forwardRef(((e,n)=>{const[r,o]=t.useState(jN),i=()=>{o(jN)};t.useEffect(i,[]);const a=Ca(),l=a.getRootPrefixCls(),c=a.getIconPrefixCls(),s=a.getTheme(),u=t.createElement($N,{ref:n,sync:i,messageConfig:r});return t.createElement(Oa,{prefixCls:l,iconPrefixCls:c,theme:s},a.holderRender?a.holderRender(u):u)}));function PN(){if(!kN){const e=document.createDocumentFragment(),n={fragment:e};return kN=n,void EN((()=>{I(t.createElement(NN,{ref:e=>{const{instance:t,sync:r}=e||{};Promise.resolve().then((()=>{!n.instance&&t&&(n.instance=t,n.sync=r,PN())}))}}),e)}))}kN.instance&&(ON.forEach((e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":EN((()=>{const t=kN.instance.open(Object.assign(Object.assign({},_N),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":EN((()=>{null==kN||kN.instance.destroy(e.key)}));break;default:EN((()=>{var n;const r=(n=kN.instance)[t].apply(n,X(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)}))}})),ON=[])}const IN={open:function(e){const t=mN((t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return ON.push(r),()=>{n?EN((()=>{n()})):r.skipped=!0}}));return PN(),t},destroy:e=>{ON.push({type:"destroy",key:e}),PN()},config:function(e){_N=Object.assign(Object.assign({},_N),e),EN((()=>{var e;null===(e=null==kN?void 0:kN.sync)||void 0===e||e.call(kN)}))},useMessage:function(e){return CN(e)},_InternalPanelDoNotUseOrYouWillBeFired:vN},MN=IN;["success","info","warning","error","loading"].forEach((e=>{MN[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){Ca();const n=mN((n=>{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return ON.push(o),()=>{r?EN((()=>{r()})):o.skipped=!0}}));return PN(),n}(e,n)}}));var RN=MN,AN=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var n=r.toLowerCase(),a=t.toLowerCase(),l=[a];return".jpg"!==a&&".jpeg"!==a||(l=[".jpg",".jpeg"]),l.some((function(e){return n.endsWith(e)}))}return/\/\*$/.test(t)?i===t.replace(/\/.*$/,""):o===t||!!/^\w+$/.test(t)&&(ye(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)}))}return!0};function TN(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function qN(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach((function(t){var r=e.data[t];Array.isArray(r)?r.forEach((function(e){n.append("".concat(t,"[]"),e)})):n.append(t,r)})),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}(e,t),TN(t)):e.onSuccess(TN(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach((function(e){null!==r[e]&&t.setRequestHeader(e,r[e])})),t.send(n),{abort:function(){t.abort()}}}var DN=function(){var e=y(g().mark((function e(t,n){var r,o,i,a,l,c,s,u;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c=function(){return(c=y(g().mark((function e(t){return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){t.file((function(r){n(r)?(t.fullPath&&!r.webkitRelativePath&&(Object.defineProperties(r,{webkitRelativePath:{writable:!0}}),r.webkitRelativePath=t.fullPath.replace(/^\//,""),Object.defineProperties(r,{webkitRelativePath:{writable:!1}})),e(r)):e(null)}))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)},l=function(e){return c.apply(this,arguments)},a=function(){return(a=y(g().mark((function e(t){var n,r,o,i,a;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.createReader(),r=[];case 2:return e.next=5,new Promise((function(e){n.readEntries(e,(function(){return e([])}))}));case 5:if(o=e.sent,i=o.length){e.next=9;break}return e.abrupt("break",12);case 9:for(a=0;a<i;a++)r.push(o[a]);e.next=2;break;case 12:return e.abrupt("return",r);case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)},i=function(e){return a.apply(this,arguments)},r=[],o=[],t.forEach((function(e){return o.push(e.webkitGetAsEntry())})),s=function(){var e=y(g().mark((function e(t,n){var a,c;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(t.path=n||"",!t.isFile){e.next=10;break}return e.next=6,l(t);case 6:(a=e.sent)&&r.push(a),e.next=15;break;case 10:if(!t.isDirectory){e.next=15;break}return e.next=13,i(t);case 13:c=e.sent,o.push.apply(o,X(c));case 15:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),u=0;case 9:if(!(u<o.length)){e.next=15;break}return e.next=12,s(o[u]);case 12:u++,e.next=9;break;case 15:return e.abrupt("return",r);case 16:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),LN=DN,zN=+new Date,BN=0;function FN(){return"rc-upload-".concat(zN,"-").concat(++BN)}var HN=["component","prefixCls","className","classNames","disabled","id","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],WN=function(e){Fo(r,e);var n=Go(r);function r(){var e;xe(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return x(Vo(e=n.call.apply(n,[this].concat(o))),"state",{uid:FN()}),x(Vo(e),"reqs",{}),x(Vo(e),"fileInput",void 0),x(Vo(e),"_isMounted",void 0),x(Vo(e),"onChange",(function(t){var n=e.props,r=n.accept,o=n.directory,i=X(t.target.files).filter((function(e){return!o||AN(e,r)}));e.uploadFiles(i),e.reset()})),x(Vo(e),"onClick",(function(t){var n=e.fileInput;if(n){var r=t.target,o=e.props.onClick;if(r&&"BUTTON"===r.tagName)n.parentNode.focus(),r.blur();n.click(),o&&o(t)}})),x(Vo(e),"onKeyDown",(function(t){"Enter"===t.key&&e.onClick(t)})),x(Vo(e),"onFileDrop",function(){var t=y(g().mark((function t(n){var r,o,i;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.props.multiple,n.preventDefault(),"dragover"!==n.type){t.next=4;break}return t.abrupt("return");case 4:if(!e.props.directory){t.next=11;break}return t.next=7,LN(Array.prototype.slice.call(n.dataTransfer.items),(function(t){return AN(t,e.props.accept)}));case 7:o=t.sent,e.uploadFiles(o),t.next=14;break;case 11:i=X(n.dataTransfer.files).filter((function(t){return AN(t,e.props.accept)})),!1===r&&(i=i.slice(0,1)),e.uploadFiles(i);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),x(Vo(e),"uploadFiles",(function(t){var n=X(t),r=n.map((function(t){return t.uid=FN(),e.processFile(t,n)}));Promise.all(r).then((function(t){var n=e.props.onBatchStart;null==n||n(t.map((function(e){return{file:e.origin,parsedFile:e.parsedFile}}))),t.filter((function(e){return null!==e.parsedFile})).forEach((function(t){e.post(t)}))}))})),x(Vo(e),"processFile",function(){var t=y(g().mark((function t(n,r){var o,i,a,l,c,s,u,f,d;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.props.beforeUpload,i=n,!o){t.next=14;break}return t.prev=3,t.next=6,o(n,r);case 6:i=t.sent,t.next=12;break;case 9:t.prev=9,t.t0=t.catch(3),i=!1;case 12:if(!1!==i){t.next=14;break}return t.abrupt("return",{origin:n,parsedFile:null,action:null,data:null});case 14:if("function"!=typeof(a=e.props.action)){t.next=21;break}return t.next=18,a(n);case 18:l=t.sent,t.next=22;break;case 21:l=a;case 22:if("function"!=typeof(c=e.props.data)){t.next=29;break}return t.next=26,c(n);case 26:s=t.sent,t.next=30;break;case 29:s=c;case 30:return u="object"!==m(i)&&"string"!=typeof i||!i?n:i,f=u instanceof File?u:new File([u],n.name,{type:n.type}),(d=f).uid=n.uid,t.abrupt("return",{origin:n,data:s,parsedFile:d,action:l});case 35:case"end":return t.stop()}}),t,null,[[3,9]])})));return function(e,n){return t.apply(this,arguments)}}()),x(Vo(e),"saveFileInput",(function(t){e.fileInput=t})),e}return Ce(r,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(e){var t=this,n=e.data,r=e.origin,o=e.action,i=e.parsedFile;if(this._isMounted){var a=this.props,l=a.onStart,c=a.customRequest,s=a.name,u=a.headers,f=a.withCredentials,d=a.method,p=r.uid,h=c||qN,v={action:o,filename:s,data:n,file:i,headers:u,withCredentials:f,method:d||"post",onProgress:function(e){var n=t.props.onProgress;null==n||n(e,i)},onSuccess:function(e,n){var r=t.props.onSuccess;null==r||r(e,i,n),delete t.reqs[p]},onError:function(e,n){var r=t.props.onError;null==r||r(e,n,i),delete t.reqs[p]}};l(r),this.reqs[p]=h(v)}}},{key:"reset",value:function(){this.setState({uid:FN()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach((function(e){t[e]&&t[e].abort&&t[e].abort(),delete t[e]}))}},{key:"render",value:function(){var e=this.props,n=e.component,r=e.prefixCls,o=e.className,i=e.classNames,a=void 0===i?{}:i,l=e.disabled,c=e.id,s=e.style,u=e.styles,f=void 0===u?{}:u,d=e.multiple,p=e.accept,h=e.capture,v=e.children,m=e.directory,g=e.openFileDialogOnClick,b=e.onMouseEnter,y=e.onMouseLeave,w=e.hasControlInside,S=qo(e,HN),k=jo()(x(x(x({},r,!0),"".concat(r,"-disabled"),l),o,o)),E=m?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},O=l?{}:{onClick:g?this.onClick:function(){},onKeyDown:g?this.onKeyDown:function(){},onMouseEnter:b,onMouseLeave:y,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:w?void 0:"0"};return t.createElement(n,ht({},O,{className:k,role:w?void 0:"button",style:s}),t.createElement("input",ht({},dl(S,{aria:!0,data:!0}),{id:c,disabled:l,type:"file",ref:this.saveFileInput,onClick:function(e){return e.stopPropagation()},key:this.state.uid,style:C({display:"none"},f.input),className:a.input,accept:p},E,{multiple:d,onChange:this.onChange},null!=h?{capture:h}:{})),v)}}]),r}(t.Component),VN=WN;function UN(){}var GN=function(e){Fo(r,e);var n=Go(r);function r(){var e;xe(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return x(Vo(e=n.call.apply(n,[this].concat(o))),"uploader",void 0),x(Vo(e),"saveUploader",(function(t){e.uploader=t})),e}return Ce(r,[{key:"abort",value:function(e){this.uploader.abort(e)}},{key:"render",value:function(){return t.createElement(VN,ht({},this.props,{ref:this.saveUploader}))}}]),r}(t.Component);x(GN,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:UN,onError:UN,onSuccess:UN,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var YN=GN;var KN=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${Ue(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${Ue(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`\n &:not(${t}-disabled):hover,\n &-hover:not(${t}-disabled)\n `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${Ue(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},\n p${t}-text,\n p${t}-hint\n `]:{color:e.colorTextDisabled}}}}}};var XN=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSize:o,lineHeight:i,calc:a}=e,l=`${t}-list-item`,c=`${l}-actions`,s=`${l}-action`,u=e.fontHeightSM;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{lineHeight:e.lineHeight,[l]:{position:"relative",height:a(e.lineHeight).mul(o).equal(),marginTop:e.marginXS,fontSize:o,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${l}-name`]:Object.assign(Object.assign({},sa),{padding:`0 ${Ue(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[c]:{whiteSpace:"nowrap",[s]:{opacity:0},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`\n ${s}:focus-visible,\n &.picture ${s}\n `]:{opacity:1},[`${s}${n}-btn`]:{height:u,border:0,lineHeight:1}},[`${t}-icon ${r}`]:{color:e.colorTextDescription,fontSize:o},[`${l}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(o).add(e.paddingXS).equal(),fontSize:o,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${l}:hover ${s}`]:{opacity:1},[`${l}-error`]:{color:e.colorError,[`${l}-name, ${t}-icon ${r}`]:{color:e.colorError},[c]:{[`${r}, ${r}:hover`]:{color:e.colorError},[s]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}};var QN=e=>{const{componentCls:t}=e,n=new xn("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new xn("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:n},[`${o}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:pv(e)},n,r]};const ZN=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o,calc:i}=e,a=`${t}-list`,l=`${a}-item`;return{[`${t}-wrapper`]:{[`\n ${a}${a}-picture,\n ${a}${a}-picture-card,\n ${a}${a}-picture-circle\n `]:{[l]:{position:"relative",height:i(r).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${Ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:Object.assign(Object.assign({},sa),{width:r,height:r,lineHeight:Ue(i(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:o,width:`calc(100% - ${Ue(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(r).add(e.paddingXS).equal()}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{[`svg path[fill='${Ar[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Ar.primary}']`]:{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:o}}},[`${a}${a}-picture-circle ${l}`]:{[`&, &::before, ${l}-thumbnail`]:{borderRadius:"50%"}}}}},JN=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o,calc:i}=e,a=`${t}-list`,l=`${a}-item`,c=e.uploadPicCardSize;return{[`\n ${t}-wrapper${t}-picture-card-wrapper,\n ${t}-wrapper${t}-picture-circle-wrapper\n `]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{display:"block",[`${t}${t}-select`]:{width:c,height:c,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${Ue(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:c,height:c,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Ue(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${Ue(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`\n ${n}-eye,\n ${n}-download,\n ${n}-delete\n `]:{zIndex:10,width:r,margin:`0 ${Ue(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${Ue(i(e.paddingXS).mul(2).equal())})`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${Ue(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var eP=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}};const tP=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},ua(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}};var nP=Jl("Upload",(e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:o,calc:i}=e,a=Wl(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(r).equal(),uploadPicCardSize:i(o).mul(2.55).equal()});return[tP(a),KN(a),ZN(a),JN(a),XN(a),QN(a),eP(a),zk(a)]}),(e=>({actionsColor:e.colorTextDescription}))),rP={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"},oP=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:rP}))};var iP=t.forwardRef(oP),aP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},lP=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:aP}))};var cP=t.forwardRef(lP),sP={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"},uP=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:sP}))};var fP=t.forwardRef(uP);function dP(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function pP(e,t){const n=X(t),r=n.findIndex((t=>{let{uid:n}=t;return n===e.uid}));return-1===r?n.push(e):n[r]=e,n}function hP(e,t){const n=void 0!==e.uid?"uid":"name";return t.filter((t=>t[n]===e[n]))[0]}const vP=e=>0===e.indexOf("image/"),mP=e=>{if(e.type&&!e.thumbUrl)return vP(e.type);const t=e.thumbUrl||e.url||"",n=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),t=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n},gP=200;function bP(e){return new Promise((t=>{if(!e.type||!vP(e.type))return void t("");const n=document.createElement("canvas");n.width=gP,n.height=gP,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:e,height:i}=o;let a=gP,l=gP,c=0,s=0;e>i?(l=i*(gP/e),s=-(l-a)/2):(a=e*(gP/i),c=-(a-l)/2),r.drawImage(o,c,s,a,l);const u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(u)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const t=new FileReader;t.onload=()=>{t.result&&"string"==typeof t.result&&(o.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)}))}var yP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},wP=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:yP}))};var xP=t.forwardRef(wP),SP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},CP=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:SP}))};var kP=t.forwardRef(CP),EP={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},OP=function(){var e=(0,t.useRef)([]),n=(0,t.useRef)(null);return(0,t.useEffect)((function(){var t=Date.now(),r=!1;e.current.forEach((function(e){if(e){r=!0;var o=e.style;o.transitionDuration=".3s, .3s, .3s, .06s",n.current&&t-n.current<100&&(o.transitionDuration="0s, 0s")}})),r&&(n.current=Date.now())})),e.current};var _P=0,jP=Z();var $P=function(e){var n=Y(t.useState(),2),r=n[0],o=n[1];return t.useEffect((function(){var e;o("rc_progress_".concat((jP?(e=_P,_P+=1):e="TEST_OR_SSR",e)))}),[]),e||r},NP=function(e){var n=e.bg,r=e.children;return t.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function PP(e,t){return Object.keys(e).map((function(n){var r=parseFloat(n),o="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(o)}))}var IP=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.color,i=e.gradientId,a=e.radius,l=e.style,c=e.ptg,s=e.strokeLinecap,u=e.strokeWidth,f=e.size,d=e.gapDegree,p=o&&"object"===m(o),h=p?"#FFF":void 0,v=f/2,g=t.createElement("circle",{className:"".concat(r,"-circle-path"),r:a,cx:v,cy:v,stroke:h,strokeLinecap:s,strokeWidth:u,opacity:0===c?0:1,style:l,ref:n});if(!p)return g;var b="".concat(i,"-conic"),y=d?"".concat(180+d/2,"deg"):"0deg",w=PP(o,(360-d)/360),x=PP(o,1),S="conic-gradient(from ".concat(y,", ").concat(w.join(", "),")"),C="linear-gradient(to ".concat(d?"bottom":"top",", ").concat(x.join(", "),")");return t.createElement(t.Fragment,null,t.createElement("mask",{id:b},g),t.createElement("foreignObject",{x:0,y:0,width:f,height:f,mask:"url(#".concat(b,")")},t.createElement(NP,{bg:C},t.createElement(NP,{bg:S}))))}));var MP=IP,RP=100,AP=function(e,t,n,r,o,i,a,l,c,s){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,f=n/100*360*((360-i)/360),d=0===i?0:{bottom:0,top:180,left:90,right:-90}[a],p=(100-r)/100*t;"round"===c&&100!==r&&(p+=s/2)>=t&&(p=t-.01);return{stroke:"string"==typeof l?l:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:p+u,transform:"rotate(".concat(o+f+d,"deg)"),transformOrigin:"".concat(50,"px ").concat(50,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},TP=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function qP(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}var DP=function(e){var n,r,o,i=C(C({},EP),e),a=i.id,l=i.prefixCls,c=i.steps,s=i.strokeWidth,u=i.trailWidth,f=i.gapDegree,d=void 0===f?0:f,p=i.gapPosition,h=i.trailColor,v=i.strokeLinecap,g=i.style,b=i.className,y=i.strokeColor,w=i.percent,x=qo(i,TP),S=$P(a),k="".concat(S,"-gradient"),E=50-s/2,O=2*Math.PI*E,_=d>0?90+d/2:-90,j=O*((360-d)/360),$="object"===m(c)?c:{count:c,gap:2},N=$.count,P=$.gap,I=qP(w),M=qP(y),R=M.find((function(e){return e&&"object"===m(e)})),A=R&&"object"===m(R)?"butt":v,T=AP(O,j,0,100,_,d,p,h,A,s),q=OP();return t.createElement("svg",ht({className:jo()("".concat(l,"-circle"),b),viewBox:"0 0 ".concat(RP," ").concat(RP),style:g,id:a,role:"presentation"},x),!N&&t.createElement("circle",{className:"".concat(l,"-circle-trail"),r:E,cx:50,cy:50,stroke:h,strokeLinecap:A,strokeWidth:u||s,style:T}),N?(n=Math.round(N*(I[0]/100)),r=100/N,o=0,new Array(N).fill(null).map((function(e,i){var a=i<=n-1?M[0]:h,c=a&&"object"===m(a)?"url(#".concat(k,")"):void 0,u=AP(O,j,o,r,_,d,p,a,"butt",s,P);return o+=100*(j-u.strokeDashoffset+P)/j,t.createElement("circle",{key:i,className:"".concat(l,"-circle-path"),r:E,cx:50,cy:50,stroke:c,strokeWidth:s,opacity:1,style:u,ref:function(e){q[i]=e}})}))):function(){var e=0;return I.map((function(n,r){var o=M[r]||M[M.length-1],i=AP(O,j,e,n,_,d,p,o,A,s);return e+=n,t.createElement(MP,{key:r,color:o,ptg:n,radius:E,prefixCls:l,gradientId:k,style:i,strokeLinecap:A,strokeWidth:s,gapDegree:d,ref:function(e){q[r]=e},size:RP})})).reverse()}())};function LP(e){return!e||e<0?0:e>100?100:e}function zP(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const BP=(e,t,n)=>{var r,o,i,a;let l=-1,c=-1;if("step"===t){const t=n.steps,r=n.strokeWidth;"string"==typeof e||void 0===e?(l="small"===e?2:14,c=null!=r?r:8):"number"==typeof e?[l,c]=[e,e]:[l=14,c=8]=Array.isArray(e)?e:[e.width,e.height],l*=t}else if("line"===t){const t=null==n?void 0:n.strokeWidth;"string"==typeof e||void 0===e?c=t||("small"===e?6:8):"number"==typeof e?[l,c]=[e,e]:[l=-1,c=8]=Array.isArray(e)?e:[e.width,e.height]}else"circle"!==t&&"dashboard"!==t||("string"==typeof e||void 0===e?[l,c]="small"===e?[60,60]:[120,120]:"number"==typeof e?[l,c]=[e,e]:Array.isArray(e)&&(l=null!==(o=null!==(r=e[0])&&void 0!==r?r:e[1])&&void 0!==o?o:120,c=null!==(a=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==a?a:120));return[l,c]};var FP=e=>{const{prefixCls:n,trailColor:r=null,strokeLinecap:o="round",gapPosition:i,gapDegree:a,width:l=120,type:c,children:s,success:u,size:f=l,steps:d}=e,[p,h]=BP(f,"circle");let{strokeWidth:v}=e;void 0===v&&(v=Math.max((e=>3/e*100)(p),6));const m={width:p,height:h,fontSize:.15*p+6},g=t.useMemo((()=>a||0===a?a:"dashboard"===c?75:void 0),[a,c]),b=(e=>{let{percent:t,success:n,successPercent:r}=e;const o=LP(zP({success:n,successPercent:r}));return[o,LP(LP(t)-o)]})(e),y=i||"dashboard"===c&&"bottom"||void 0,w="[object Object]"===Object.prototype.toString.call(e.strokeColor),x=(e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Or.green,n||null]})({success:u,strokeColor:e.strokeColor}),S=jo()(`${n}-inner`,{[`${n}-circle-gradient`]:w}),C=t.createElement(DP,{steps:d,percent:d?b[1]:b,strokeWidth:v,trailWidth:v,strokeColor:d?x[1]:x,strokeLinecap:o,trailColor:r,prefixCls:n,gapDegree:g,gapPosition:y}),k=p<=20,E=t.createElement("div",{className:S,style:m},C,!k&&s);return k?t.createElement(rh,{title:s},E):E};const HP="--progress-line-stroke-color",WP="--progress-percent",VP=e=>{const t=e?"100%":"-100%";return new xn(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},UP=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},ua(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${HP})`]},height:"100%",width:`calc(1 / var(${WP}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${Ue(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:VP(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:VP(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},GP=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},YP=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},KP=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}};var XP=Jl("Progress",(e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Wl(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[UP(n),GP(n),YP(n),KP(n)]}),(e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:e.fontSize/e.fontSizeSM+"em"}))),QP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ZP=(e,t)=>{const{from:n=Or.blue,to:r=Or.blue,direction:o=("rtl"===t?"to left":"to right")}=e,i=QP(e,["from","to","direction"]);if(0!==Object.keys(i).length){const e=(e=>{let t=[];return Object.keys(e).forEach((n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})})),t=t.sort(((e,t)=>e.key-t.key)),t.map((e=>{let{key:t,value:n}=e;return`${n} ${t}%`})).join(", ")})(i),t=`linear-gradient(${o}, ${e})`;return{background:t,[HP]:t}}const a=`linear-gradient(${o}, ${n}, ${r})`;return{background:a,[HP]:a}};var JP=e=>{const{prefixCls:n,direction:r,percent:o,size:i,strokeWidth:a,strokeColor:l,strokeLinecap:c="round",children:s,trailColor:u=null,percentPosition:f,success:d}=e,{align:p,type:h}=f,v=l&&"string"!=typeof l?ZP(l,r):{[HP]:l,background:l},m="square"===c||"butt"===c?0:void 0,g=null!=i?i:[-1,a||("small"===i?6:8)],[b,y]=BP(g,"line",{strokeWidth:a});const w={backgroundColor:u||void 0,borderRadius:m},x=Object.assign(Object.assign({width:`${LP(o)}%`,height:y,borderRadius:m},v),{[WP]:LP(o)/100}),S=zP(e),C={width:`${LP(S)}%`,height:y,borderRadius:m,backgroundColor:null==d?void 0:d.strokeColor},k={width:b<0?"100%":b},E=t.createElement("div",{className:`${n}-inner`,style:w},t.createElement("div",{className:jo()(`${n}-bg`,`${n}-bg-${h}`),style:x},"inner"===h&&s),void 0!==S&&t.createElement("div",{className:`${n}-success-bg`,style:C})),O="outer"===h&&"start"===p,_="outer"===h&&"end"===p;return"outer"===h&&"center"===p?t.createElement("div",{className:`${n}-layout-bottom`},E,s):t.createElement("div",{className:`${n}-outer`,style:k},O&&s,E,_&&s)};var eI=e=>{const{size:n,steps:r,percent:o=0,strokeWidth:i=8,strokeColor:a,trailColor:l=null,prefixCls:c,children:s}=e,u=Math.round(r*(o/100)),f=null!=n?n:["small"===n?2:14,i],[d,p]=BP(f,"step",{steps:r,strokeWidth:i}),h=d/r,v=new Array(r);for(let e=0;e<r;e++){const n=Array.isArray(a)?a[e]:a;v[e]=t.createElement("div",{key:e,className:jo()(`${c}-steps-item`,{[`${c}-steps-item-active`]:e<=u-1}),style:{backgroundColor:e<=u-1?n:l,width:h,height:p}})}return t.createElement("div",{className:`${c}-steps-outer`},v,s)},tI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const nI=["normal","exception","active","success"],rI=t.forwardRef(((e,n)=>{const{prefixCls:r,className:o,rootClassName:i,steps:a,strokeColor:l,percent:c=0,size:s="default",showInfo:u=!0,type:f="line",status:d,format:p,style:h,percentPosition:v={}}=e,m=tI(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:g="end",type:b="outer"}=v,y=Array.isArray(l)?l[0]:l,w="string"==typeof l||Array.isArray(l)?l:void 0,x=t.useMemo((()=>{if(y){const e="string"==typeof y?y:Object.values(y)[0];return new no(e).isLight()}return!1}),[l]),S=t.useMemo((()=>{var t,n;const r=zP(e);return parseInt(void 0!==r?null===(t=null!=r?r:0)||void 0===t?void 0:t.toString():null===(n=null!=c?c:0)||void 0===n?void 0:n.toString(),10)}),[c,e.success,e.successPercent]),C=t.useMemo((()=>!nI.includes(d)&&S>=100?"success":d||"normal"),[d,S]),{getPrefixCls:k,direction:E,progress:O}=t.useContext(F),_=k("progress",r),[j,$,N]=XP(_),P="line"===f,I=P&&!a,M=t.useMemo((()=>{if(!u)return null;const n=zP(e);let r;const o=p||(e=>`${e}%`),i=P&&x&&"inner"===b;return"inner"===b||p||"exception"!==C&&"success"!==C?r=o(LP(c),LP(n)):"exception"===C?r=P?t.createElement(Ga,null):t.createElement(Xa,null):"success"===C&&(r=P?t.createElement(Wa,null):t.createElement(px,null)),t.createElement("span",{className:jo()(`${_}-text`,{[`${_}-text-bright`]:i,[`${_}-text-${g}`]:I,[`${_}-text-${b}`]:I}),title:"string"==typeof r?r:void 0},r)}),[u,c,S,C,f,_,p]);let R;"line"===f?R=a?t.createElement(eI,Object.assign({},e,{strokeColor:w,prefixCls:_,steps:"object"==typeof a?a.count:a}),M):t.createElement(JP,Object.assign({},e,{strokeColor:y,prefixCls:_,direction:E,percentPosition:{align:g,type:b}}),M):"circle"!==f&&"dashboard"!==f||(R=t.createElement(FP,Object.assign({},e,{strokeColor:y,prefixCls:_,progressStatus:C}),M));const A=jo()(_,`${_}-status-${C}`,{[`${_}-${"dashboard"===f?"circle":f}`]:"line"!==f,[`${_}-inline-circle`]:"circle"===f&&BP(s,"circle")[0]<=20,[`${_}-line`]:I,[`${_}-line-align-${g}`]:I,[`${_}-line-position-${b}`]:I,[`${_}-steps`]:a,[`${_}-show-info`]:u,[`${_}-${s}`]:"string"==typeof s,[`${_}-rtl`]:"rtl"===E},null==O?void 0:O.className,o,i,$,N);return j(t.createElement("div",Object.assign({ref:n,style:Object.assign(Object.assign({},null==O?void 0:O.style),h),className:A,role:"progressbar","aria-valuenow":S,"aria-valuemin":0,"aria-valuemax":100},qc(m,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),R))}));var oI=rI;const iI=t.forwardRef(((e,n)=>{let{prefixCls:r,className:o,style:i,locale:a,listType:l,file:c,items:s,progress:u,iconRender:f,actionIconRender:d,itemRender:p,isImgUrl:h,showPreviewIcon:v,showRemoveIcon:m,showDownloadIcon:g,previewIcon:b,removeIcon:y,downloadIcon:w,extra:x,onPreview:S,onDownload:C,onClose:k}=e;var E,O;const{status:_}=c,[j,$]=t.useState(_);t.useEffect((()=>{"removed"!==_&&$(_)}),[_]);const[N,P]=t.useState(!1);t.useEffect((()=>{const e=setTimeout((()=>{P(!0)}),300);return()=>{clearTimeout(e)}}),[]);const I=f(c);let M=t.createElement("div",{className:`${r}-icon`},I);if("picture"===l||"picture-card"===l||"picture-circle"===l)if("uploading"===j||!c.thumbUrl&&!c.url){const e=jo()(`${r}-list-item-thumbnail`,{[`${r}-list-item-file`]:"uploading"!==j});M=t.createElement("div",{className:e},I)}else{const e=(null==h?void 0:h(c))?t.createElement("img",{src:c.thumbUrl||c.url,alt:c.name,className:`${r}-list-item-image`,crossOrigin:c.crossOrigin}):I,n=jo()(`${r}-list-item-thumbnail`,{[`${r}-list-item-file`]:h&&!h(c)});M=t.createElement("a",{className:n,onClick:e=>S(c,e),href:c.url||c.thumbUrl,target:"_blank",rel:"noopener noreferrer"},e)}const R=jo()(`${r}-list-item`,`${r}-list-item-${j}`),A="string"==typeof c.linkProps?JSON.parse(c.linkProps):c.linkProps,T=m?d(("function"==typeof y?y(c):y)||t.createElement(xP,null),(()=>k(c)),r,a.removeFile,!0):null,q=g&&"done"===j?d(("function"==typeof w?w(c):w)||t.createElement(kP,null),(()=>C(c)),r,a.downloadFile):null,D="picture-card"!==l&&"picture-circle"!==l&&t.createElement("span",{key:"download-delete",className:jo()(`${r}-list-item-actions`,{picture:"picture"===l})},q,T),L="function"==typeof x?x(c):x,z=L&&t.createElement("span",{className:`${r}-list-item-extra`},L),B=jo()(`${r}-list-item-name`),H=c.url?t.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:B,title:c.name},A,{href:c.url,onClick:e=>S(c,e)}),c.name,z):t.createElement("span",{key:"view",className:B,onClick:e=>S(c,e),title:c.name},c.name,z),W=v&&(c.url||c.thumbUrl)?t.createElement("a",{href:c.url||c.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>S(c,e),title:a.previewFile},"function"==typeof b?b(c):b||t.createElement(Vg,null)):null,V=("picture-card"===l||"picture-circle"===l)&&"uploading"!==j&&t.createElement("span",{className:`${r}-list-item-actions`},W,"done"===j&&q,T),{getPrefixCls:U}=t.useContext(F),G=U(),Y=t.createElement("div",{className:R},M,H,D,V,N&&t.createElement(Ki,{motionName:`${G}-fade`,visible:"uploading"===j,motionDeadline:2e3},(e=>{let{className:n}=e;const o="percent"in c?t.createElement(oI,Object.assign({},u,{type:"line",percent:c.percent,"aria-label":c["aria-label"],"aria-labelledby":c["aria-labelledby"]})):null;return t.createElement("div",{className:jo()(`${r}-list-item-progress`,n)},o)}))),K=c.response&&"string"==typeof c.response?c.response:(null===(E=c.error)||void 0===E?void 0:E.statusText)||(null===(O=c.error)||void 0===O?void 0:O.message)||a.uploadError,X="error"===j?t.createElement(rh,{title:K,getPopupContainer:e=>e.parentNode},Y):Y;return t.createElement("div",{className:jo()(`${r}-list-item-container`,o),style:i,ref:n},p?p(X,c,s,{download:C.bind(null,c),preview:S.bind(null,c),remove:k.bind(null,c)}):X)}));var aI=iI;const lI=(e,n)=>{const{listType:r="text",previewFile:o=bP,onPreview:i,onDownload:a,onRemove:l,locale:c,iconRender:s,isImageUrl:u=mP,prefixCls:f,items:d=[],showPreviewIcon:p=!0,showRemoveIcon:h=!0,showDownloadIcon:v=!1,removeIcon:m,previewIcon:g,downloadIcon:b,extra:y,progress:w={size:[-1,2],showInfo:!1},appendAction:x,appendActionVisible:S=!0,itemRender:C,disabled:k}=e,E=function(){const[,e]=t.useReducer((e=>e+1),0);return e}(),[O,_]=t.useState(!1);t.useEffect((()=>{"picture"!==r&&"picture-card"!==r&&"picture-circle"!==r||(d||[]).forEach((e=>{"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",o&&o(e.originFileObj).then((t=>{e.thumbUrl=t||"",E()})))}))}),[r,d,o]),t.useEffect((()=>{_(!0)}),[]);const j=(e,t)=>{if(i)return null==t||t.preventDefault(),i(e)},$=e=>{"function"==typeof a?a(e):e.url&&window.open(e.url)},N=e=>{null==l||l(e)},P=e=>{if(s)return s(e,r);const n="uploading"===e.status,o=(null==u?void 0:u(e))?t.createElement(fP,null):t.createElement(iP,null);let i=n?t.createElement(il,null):t.createElement(cP,null);return"picture"===r?i=n?t.createElement(il,null):o:"picture-card"!==r&&"picture-circle"!==r||(i=n?c.uploading:o),i},I=(e,n,r,o,i)=>{const a={type:"text",size:"small",title:o,onClick:r=>{var o,i;n(),t.isValidElement(e)&&(null===(i=(o=e.props).onClick)||void 0===i||i.call(o,r))},className:`${r}-list-item-action`};if(i&&(a.disabled=k),t.isValidElement(e)){const n=Bc(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}));return t.createElement(Zs,Object.assign({},a,{icon:n}))}return t.createElement(Zs,Object.assign({},a),t.createElement("span",null,e))};t.useImperativeHandle(n,(()=>({handlePreview:j,handleDownload:$})));const{getPrefixCls:M}=t.useContext(F),R=M("upload",f),A=M(),T=jo()(`${R}-list`,`${R}-list-${r}`),q=X(d.map((e=>({key:e.uid,file:e}))));let D={motionDeadline:2e3,motionName:`${R}-${"picture-card"===r||"picture-circle"===r?"animate-inline":"animate"}`,keys:q,motionAppear:O};const L=t.useMemo((()=>{const e=Object.assign({},Sp(A));return delete e.onAppearEnd,delete e.onEnterEnd,delete e.onLeaveEnd,e}),[A]);return"picture-card"!==r&&"picture-circle"!==r&&(D=Object.assign(Object.assign({},L),D)),t.createElement("div",{className:T},t.createElement(Yi,Object.assign({},D,{component:!1}),(e=>{let{key:n,file:o,className:i,style:a}=e;return t.createElement(aI,{key:n,locale:c,prefixCls:R,className:i,style:a,file:o,items:d,progress:w,listType:r,isImgUrl:u,showPreviewIcon:p,showRemoveIcon:h,showDownloadIcon:v,removeIcon:m,previewIcon:g,downloadIcon:b,extra:y,iconRender:P,actionIconRender:I,itemRender:C,onPreview:j,onDownload:$,onClose:N})})),x&&t.createElement(Ki,Object.assign({},D,{visible:S,forceRender:!0}),(e=>{let{className:t,style:n}=e;return Bc(x,(e=>({className:jo()(e.className,t),style:Object.assign(Object.assign(Object.assign({},n),{pointerEvents:t?"none":void 0}),e.style)})))})))};var cI=t.forwardRef(lI),sI=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,l)}c((r=r.apply(e,t||[])).next())}))};const uI=`__LIST_IGNORE_${Date.now()}__`,fI=(e,n)=>{const{fileList:r,defaultFileList:o,onRemove:i,showUploadList:a=!0,listType:l="text",onPreview:c,onDownload:s,onChange:u,onDrop:f,previewFile:d,disabled:p,locale:h,iconRender:v,isImageUrl:m,progress:g,prefixCls:b,className:y,type:w="select",children:x,style:S,itemRender:C,maxCount:k,data:O={},multiple:_=!1,hasControlInside:j=!0,action:$="",accept:N="",supportServerRender:P=!0,rootClassName:I}=e,M=t.useContext(yo),R=null!=p?p:M,[A,T]=Jo(o||[],{value:r,postState:e=>null!=e?e:[]}),[q,D]=t.useState("drop"),L=t.useRef(null),z=t.useRef(null);t.useMemo((()=>{const e=Date.now();(r||[]).forEach(((t,n)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${n}__`)}))}),[r]);const B=(e,t,n)=>{let r=X(t),o=!1;1===k?r=r.slice(-1):k&&(o=r.length>k,r=r.slice(0,k)),(0,E.flushSync)((()=>{T(r)}));const i={file:e,fileList:r};n&&(i.event=n),o&&"removed"!==e.status&&!r.some((t=>t.uid===e.uid))||(0,E.flushSync)((()=>{null==u||u(i)}))},H=e=>{const t=e.filter((e=>!e.file[uI]));if(!t.length)return;const n=t.map((e=>dP(e.file)));let r=X(A);n.forEach((e=>{r=pP(e,r)})),n.forEach(((e,n)=>{let o=e;if(t[n].parsedFile)e.status="uploading";else{const{originFileObj:t}=e;let n;try{n=new File([t],t.name,{type:t.type})}catch(e){n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=(new Date).getTime()}n.uid=e.uid,o=n}B(o,r)}))},W=(e,t,n)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!hP(t,A))return;const r=dP(t);r.status="done",r.percent=100,r.response=e,r.xhr=n;const o=pP(r,A);B(r,o)},V=(e,t)=>{if(!hP(t,A))return;const n=dP(t);n.status="uploading",n.percent=e.percent;const r=pP(n,A);B(n,r,e)},U=(e,t,n)=>{if(!hP(n,A))return;const r=dP(n);r.error=e,r.response=t,r.status="error";const o=pP(r,A);B(r,o)},G=e=>{let t;Promise.resolve("function"==typeof i?i(e):i).then((n=>{var r;if(!1===n)return;const o=function(e,t){const n=void 0!==e.uid?"uid":"name",r=t.filter((t=>t[n]!==e[n]));return r.length===t.length?null:r}(e,A);o&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==A||A.forEach((e=>{const n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")})),null===(r=L.current)||void 0===r||r.abort(t),B(t,o))}))},Y=e=>{D(e.type),"drop"===e.type&&(null==f||f(e))};t.useImperativeHandle(n,(()=>({onBatchStart:H,onSuccess:W,onProgress:V,onError:U,fileList:A,upload:L.current,nativeElement:z.current})));const{getPrefixCls:K,direction:Q,upload:Z}=t.useContext(F),J=K("upload",b),ee=Object.assign(Object.assign({onBatchStart:H,onError:U,onProgress:V,onSuccess:W},e),{data:O,multiple:_,action:$,accept:N,supportServerRender:P,prefixCls:J,disabled:R,beforeUpload:(t,n)=>sI(void 0,void 0,void 0,(function*(){const{beforeUpload:r,transformFile:o}=e;let i=t;if(r){const e=yield r(t,n);if(!1===e)return!1;if(delete t[uI],e===uI)return Object.defineProperty(t,uI,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(i=e)}return o&&(i=yield o(i)),i})),onChange:void 0,hasControlInside:j});delete ee.className,delete ee.style,x&&!R||delete ee.id;const te=`${J}-wrapper`,[ne,re,oe]=nP(J,te),[ie]=oh("Upload",zn.Upload),{showRemoveIcon:ae,showPreviewIcon:le,showDownloadIcon:ce,removeIcon:se,previewIcon:ue,downloadIcon:fe,extra:de}="boolean"==typeof a?{}:a,pe=void 0===ae?!R:!!ae,he=(e,n)=>a?t.createElement(cI,{prefixCls:J,listType:l,items:A,previewFile:d,onPreview:c,onDownload:s,onRemove:G,showRemoveIcon:pe,showPreviewIcon:le,showDownloadIcon:ce,removeIcon:se,previewIcon:ue,downloadIcon:fe,iconRender:v,extra:de,locale:Object.assign(Object.assign({},ie),h),isImageUrl:m,progress:g,appendAction:e,appendActionVisible:n,itemRender:C,disabled:R}):e,ve=jo()(te,y,I,re,oe,null==Z?void 0:Z.className,{[`${J}-rtl`]:"rtl"===Q,[`${J}-picture-card-wrapper`]:"picture-card"===l,[`${J}-picture-circle-wrapper`]:"picture-circle"===l}),me=Object.assign(Object.assign({},null==Z?void 0:Z.style),S);if("drag"===w){const e=jo()(re,J,`${J}-drag`,{[`${J}-drag-uploading`]:A.some((e=>"uploading"===e.status)),[`${J}-drag-hover`]:"dragover"===q,[`${J}-disabled`]:R,[`${J}-rtl`]:"rtl"===Q});return ne(t.createElement("span",{className:ve,ref:z},t.createElement("div",{className:e,style:me,onDrop:Y,onDragOver:Y,onDragLeave:Y},t.createElement(YN,Object.assign({},ee,{ref:L,className:`${J}-btn`}),t.createElement("div",{className:`${J}-drag-container`},x))),he()))}const ge=jo()(J,`${J}-select`,{[`${J}-disabled`]:R}),be=t.createElement("div",{className:ge,style:x?void 0:{display:"none"}},t.createElement(YN,Object.assign({},ee,{ref:L})));return ne("picture-card"===l||"picture-circle"===l?t.createElement("span",{className:ve,ref:z},he(be,!!x)):t.createElement("span",{className:ve,ref:z},be,he()))};var dI=t.forwardRef(fI),pI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const hI=t.forwardRef(((e,n)=>{var{style:r,height:o,hasControlInside:i=!1}=e,a=pI(e,["style","height","hasControlInside"]);return t.createElement(dI,Object.assign({ref:n,hasControlInside:i},a,{type:"drag",style:Object.assign(Object.assign({},r),{height:o})}))}));var vI=hI;const mI=dI;mI.Dragger=vI,mI.LIST_IGNORE=uI;var gI=mI,bI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},yI=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:bI}))};var wI=t.forwardRef(yI);function xI(e){return xI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xI(e)}function SI(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */SI=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),l=new N(r||[]);return o(a,"_invoke",{value:O(e,n,l)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function g(){}function b(){}function y(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(P([])));S&&S!==n&&r.call(S,a)&&(w=S);var C=y.prototype=g.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,l){var c=f(e[o],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==xI(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,n,r){var o=d;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=_(l,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var s=f(t,n,r);if("normal"===s.type){if(o=r.done?v:p,s.arg===m)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function _(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,_(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function $(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(xI(t)+" is not iterable")}return b.prototype=y,o(C,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=s(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,c,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},k(E.prototype),s(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(C),s(C,c,"Generator"),s(C,a,(function(){return this})),s(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=P,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach($),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),$(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;$(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function CI(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function kI(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){CI(i,r,o,a,l,"next",e)}function l(e){CI(i,r,o,a,l,"throw",e)}a(void 0)}))}}function EI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return OI(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?OI(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var _I=function(e){var n,o,i,a,c=e.field,s=c.help,u=c.value,f=e.id,p=EI(l(),2),h=(p[0],p[1]),v=null===(n=e.field)||void 0===n?void 0:n.fieldType,m=null===(o=e.field)||void 0===o?void 0:o.parentId,g=null===(i=e.field)||void 0===i?void 0:i.index,b=null===(a=e.field)||void 0===a?void 0:a.repeaterData,y=EI((0,t.useState)(!1),2),w=y[0],x=y[1],S=EI((0,t.useState)(""),2),C=S[0],k=S[1],E=EI((0,t.useState)(!1),2),O=E[0],_=E[1],j=EI((0,t.useState)(null),2),$=j[0],N=j[1],P=function(){var e=kI(SI().mark((function e(t){var n,r,o;return SI().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _(!0),(n=new FormData).append("file",t),e.prev=3,e.next=6,fetch("".concat(rtsbParams.restApiUrl,"wp/v2/media"),{method:"POST",body:n,headers:{"X-WP-Nonce":rtsbParams.rest_nonce}});case 6:if((r=e.sent).ok){e.next=9;break}throw new Error("Network response was not ok");case 9:return e.next=11,r.json();case 11:o=e.sent,Tc.success({message:"File uploaded successfully!."}),h({type:d,id:f,value:{id:o.id,source:o.source_url},fieldType:v,parentId:m,repeaterData:b,index:g}),N({id:o.id,source:o.source_url}),e.next=22;break;case 17:e.prev=17,e.t0=e.catch(3),console.error(e.t0),RN.error("File upload failed."),N(null);case 22:case"end":return e.stop()}}),e,null,[[3,17]])})));return function(t){return e.apply(this,arguments)}}(),I=function(){var e=kI(SI().mark((function e(){return SI().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:k(null==$?void 0:$.source),x(!0);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),M=function(){var e=kI(SI().mark((function e(){return SI().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(N(null),_(!0),$){e.next=4;break}return e.abrupt("return");case 4:return e.prev=4,e.next=7,fetch("".concat(rtsbParams.restApiUrl,"wp/v2/media/").concat($.id,"?force=True"),{method:"DELETE",headers:{"X-WP-Nonce":rtsbParams.rest_nonce}});case 7:if(!e.sent.ok){e.next=15;break}return e.next=11,h({type:d,id:f,value:null,fieldType:v,parentId:m,repeaterData:b,index:g});case 11:return e.next=13,Tc.success({message:"File deleted successfully!"});case 13:e.next=16;break;case 15:throw new Error("Network response was not ok");case 16:N(null),e.next=24;break;case 19:e.prev=19,e.t0=e.catch(4),console.error(e.t0),RN.error("File deletion failed."),N(null);case 24:_(!1);case 25:case"end":return e.stop()}}),e,null,[[4,19]])})));return function(){return e.apply(this,arguments)}}(),R=(0,r.jsxs)("div",{children:[O?(0,r.jsx)(il,{}):(0,r.jsx)(wI,{}),(0,r.jsx)("div",{style:{marginTop:8},children:"Upload"})]});return(0,t.useEffect)((function(){N("object"!=xI(u)&&u?JSON.parse(u.replace(/\\/g,"")):u)}),[]),(0,r.jsxs)("div",{className:"rtsb-field text",children:[(0,r.jsx)(Nm,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsxs)("div",{className:"rtsb-field-control",children:[(0,r.jsxs)("div",{className:"rtsb-field-upload-wrapper",style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center"},children:[(0,r.jsx)(gI,{name:"avatar",listType:"picture-card",className:"rtsb-avatar-uploader ".concat(null!=$&&$.source?"rtsb-avatar-uploaded":"rtsb-avatar-deleted"," "),customRequest:function(e){var t=e.file,n=e.onSuccess,r=e.onError;setTimeout((function(){P(t).then((function(){return n("ok")})).catch((function(e){console.error(e),r(e)}))}),0)},onPreview:I,children:null!=$&&$.source?(0,r.jsx)("img",{src:null==$?void 0:$.source,alt:"avatar",style:{width:"100%"}}):R}),null!=$&&$.source?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"image-preview-overlay",children:[(0,r.jsx)(Vg,{className:"preview-icon",onClick:function(){return I()}}),(0,r.jsx)(xP,{className:"delete-icon",onClick:M})]})}):null]}),(0,r.jsx)(Jv,{open:w,title:"Image Preview",footer:null,className:"rtsb-image-preview-modal",styles:{body:{padding:"15px"}},onCancel:function(){return x(!1)},children:(0,r.jsx)("img",{alt:"Preview",style:{width:"100%"},src:C})})]}),s&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:s}})]})]})};function jI(e,t,n){var r=(n||{}).atBegin;return function(e,t,n){var r,o=n||{},i=o.noTrailing,a=void 0!==i&&i,l=o.noLeading,c=void 0!==l&&l,s=o.debounceMode,u=void 0===s?void 0:s,f=!1,d=0;function p(){r&&clearTimeout(r)}function h(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var l=this,s=Date.now()-d;function h(){d=Date.now(),t.apply(l,o)}function v(){r=void 0}f||(c||!u||r||h(),p(),void 0===u&&s>e?c?(d=Date.now(),a||(r=setTimeout(u?v:h,e))):h():!0!==a&&(r=setTimeout(u?v:h,void 0===u?e-s:e)))}return h.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;p(),f=!n},h}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}const $I=80*Math.PI,NI=e=>{const{dotClassName:n,style:r,hasCircleCls:o}=e;return t.createElement("circle",{className:jo()(`${n}-circle`,{[`${n}-circle-bg`]:o}),r:40,cx:50,cy:50,strokeWidth:20,style:r})};var PI=e=>{let{percent:n,prefixCls:r}=e;const o=`${r}-dot`,i=`${o}-holder`,a=`${i}-hidden`,[l,c]=t.useState(!1);et((()=>{0!==n&&c(!0)}),[0!==n]);const s=Math.max(Math.min(n,100),0);if(!l)return null;const u={strokeDashoffset:""+$I/4,strokeDasharray:`${$I*s/100} ${$I*(100-s)/100}`};return t.createElement("span",{className:jo()(i,`${o}-progress`,s<=0&&a)},t.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},t.createElement(NI,{dotClassName:o,hasCircleCls:!0}),t.createElement(NI,{dotClassName:o,style:u})))};function II(e){const{prefixCls:n,percent:r=0}=e,o=`${n}-dot`,i=`${o}-holder`,a=`${i}-hidden`;return t.createElement(t.Fragment,null,t.createElement("span",{className:jo()(i,r>0&&a)},t.createElement("span",{className:jo()(o,`${n}-dot-spin`)},[1,2,3,4].map((e=>t.createElement("i",{className:`${n}-dot-item`,key:e}))))),t.createElement(PI,{prefixCls:n,percent:r}))}function MI(e){const{prefixCls:n,indicator:r,percent:o}=e,i=`${n}-dot`;return r&&t.isValidElement(r)?Bc(r,{className:jo()(r.props.className,i),percent:o}):t.createElement(II,{prefixCls:n,percent:o})}const RI=new xn("antSpinMove",{to:{opacity:1}}),AI=new xn("antRotate",{to:{transform:"rotate(405deg)"}}),TI=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},ua(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:RI,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:AI,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map((t=>`${t} ${e.motionDurationSlow} ease`)).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}};var qI=Jl("Spin",(e=>{const t=Wl(e,{spinDotDefault:e.colorTextDescription});return[TI(t)]}),(e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}}));const DI=[[30,.05],[70,.03],[96,.01]];var LI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let zI;const BI=e=>{var n;const{prefixCls:r,spinning:o=!0,delay:i=0,className:a,rootClassName:l,size:c="default",tip:s,wrapperClassName:u,style:f,children:d,fullscreen:p=!1,indicator:h,percent:v}=e,m=LI(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:g,direction:b,spin:y}=t.useContext(F),w=g("spin",r),[x,S,C]=qI(w),[k,E]=t.useState((()=>o&&!function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(o,i))),O=function(e,n){const[r,o]=t.useState(0),i=t.useRef(),a="auto"===n;return t.useEffect((()=>(a&&e&&(o(0),i.current=setInterval((()=>{o((e=>{const t=100-e;for(let n=0;n<DI.length;n+=1){const[r,o]=DI[n];if(e<=r)return e+t*o}return e}))}),200)),()=>{clearInterval(i.current)})),[a,e]),a?r:n}(k,v);t.useEffect((()=>{if(o){const e=jI(i,(()=>{E(!0)}));return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}E(!1)}),[i,o]);const _=t.useMemo((()=>void 0!==d&&!p),[d,p]);const j=jo()(w,null==y?void 0:y.className,{[`${w}-sm`]:"small"===c,[`${w}-lg`]:"large"===c,[`${w}-spinning`]:k,[`${w}-show-text`]:!!s,[`${w}-rtl`]:"rtl"===b},a,!p&&l,S,C),$=jo()(`${w}-container`,{[`${w}-blur`]:k}),N=null!==(n=null!=h?h:null==y?void 0:y.indicator)&&void 0!==n?n:zI,P=Object.assign(Object.assign({},null==y?void 0:y.style),f),I=t.createElement("div",Object.assign({},m,{style:P,className:j,"aria-live":"polite","aria-busy":k}),t.createElement(MI,{prefixCls:w,indicator:N,percent:O}),s&&(_||p)?t.createElement("div",{className:`${w}-text`},s):null);return x(_?t.createElement("div",Object.assign({},m,{className:jo()(`${w}-nested-loading`,u,S,C)}),k&&t.createElement("div",{key:"loading"},I),t.createElement("div",{className:$,key:"container"},d)):p?t.createElement("div",{className:jo()(`${w}-fullscreen`,{[`${w}-fullscreen-show`]:k},l,S,C)},I):I)};BI.setDefaultIndicator=e=>{zI=e};var FI=BI,HI=["fetchOptions","initialOptions","debounceTimeout"];function WI(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */WI=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),l=new N(r||[]);return o(a,"_invoke",{value:O(e,n,l)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function g(){}function b(){}function y(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(P([])));S&&S!==n&&r.call(S,a)&&(w=S);var C=y.prototype=g.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,l){var c=f(e[o],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==VI(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,n,r){var o=d;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=_(l,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var s=f(t,n,r);if("normal"===s.type){if(o=r.done?v:p,s.arg===m)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function _(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,_(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function $(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(VI(t)+" is not iterable")}return b.prototype=y,o(C,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=s(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,c,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},k(E.prototype),s(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(C),s(C,c,"Generator"),s(C,a,(function(){return this})),s(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=P,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach($),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),$(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;$(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function VI(e){return VI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VI(e)}function UI(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function GI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function YI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GI(Object(n),!0).forEach((function(t){KI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function KI(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=VI(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=VI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==VI(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return QI(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?QI(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function QI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ZI(e){var n=e.fetchOptions,o=e.initialOptions,i=void 0===o?[]:o,a=e.debounceTimeout,l=void 0===a?400:a,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,HI),s=XI((0,t.useState)(!1),2),u=s[0],f=s[1],d=XI((0,t.useState)(i),2),p=d[0],h=d[1],v=(0,t.useRef)(0),m=(0,t.useMemo)((function(){return lN((function(e){v.current+=1;var t=v.current;h([]),f(!0),n(e).then((function(e){t===v.current&&(h(e),f(!1))}))}),l)}),[n,l]);return(0,r.jsx)(Cx,YI(YI({filterOption:!1,onSearch:m,notFoundContent:u?(0,r.jsx)(FI,{size:"small"}):null},c),{},{children:p.map((function(e){return(0,r.jsx)(Cx.Option,{value:e.value,children:e.label},e.value)}))}))}function JI(){var e;return e=WI().mark((function e(t,n){var r,o,i,a;return WI().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=new URLSearchParams).append("action","rtsb_get_multiselect_data"),r.append("__rtsb_wpnonce",rtsbParams.nonce),null!=t&&t.func_with_param&&r.append("func_with_param",JSON.stringify(null==t?void 0:t.func_with_param)),n&&r.append("s",n),o=rtsbParams.ajaxurl.includes("?"),i=o?"&":"?",a="".concat(rtsbParams.ajaxurl).concat(i).concat(r.toString()),e.abrupt("return",fetch(a).then((function(e){return e.json()})).then((function(e){return e.data.map((function(e){return{label:e.label,value:e.value}}))})));case 9:case"end":return e.stop()}}),e)})),JI=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){UI(i,r,o,a,l,"next",e)}function l(e){UI(i,r,o,a,l,"throw",e)}a(void 0)}))},JI.apply(this,arguments)}var eM=function(e){var t,n,o,i,a,c=e.id,s=e.field,u=s.value,f=s.help,p=s.options,h=(s.empty,s.searchable,s.placeholder),v=s.disabled,m=s.isPro,g=null===(t=e.field)||void 0===t?void 0:t.fieldType,b=null===(n=e.field)||void 0===n?void 0:n.parentId,y=null===(o=e.field)||void 0===o?void 0:o.index,w=!1!==(null===(i=e.field)||void 0===i?void 0:i.multiple),x=null===(a=e.field)||void 0===a?void 0:a.repeaterData,S=XI(l(),2),C=(S[0],S[1]),k=(u||[]).map((function(e){return"object"!==VI(e)?JSON.parse(e):e})),E=k.concat(p),O=new Set,_=E.filter((function(e){return!O.has(e.value)&&(O.add(e.value),!0)})),j={};return v?j.disabled=v||!1:m&&(j.disabled=m),(0,r.jsxs)("div",{className:"rtsb-field select",children:[(0,r.jsx)(Nm,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(ZI,YI(YI({},j),{},{mode:"multiple",value:k,placeholder:h,initialOptions:_,fetchOptions:function(e){return function(e,t){return JI.apply(this,arguments)}(s,e)},onChange:function(e,t){var n=t.map((function(e){return{value:e.value,label:e.children}})),r=w?n:n.slice(-1);C({type:d,id:c,value:r,fieldType:g,parentId:b,repeaterData:x,index:y})},style:{width:"100%"}}))}),f&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:f}})]})]})};const tM=t.createContext(null),nM=tM.Provider;var rM=tM;const oM=t.createContext(null),iM=oM.Provider,aM=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},ua(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},lM=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:s,lineWidth:u,colorBgContainerDisabled:f,colorTextDisabled:d,paddingXS:p,dotColorDisabled:h,lineType:v,radioColor:m,radioBgColor:g,calc:b}=e,y=`${t}-inner`,w=b(o).sub(b(4).mul(2)),x=b(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},ua(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Ue(u)} ${v} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},ua(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,\n &:hover ${y}`]:{borderColor:r},[`${t}-input:focus-visible + ${y}`]:Object.assign({},da(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:x,height:x,marginBlockStart:b(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:b(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:m,borderBlockStart:0,borderInlineStart:0,borderRadius:x,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:x,height:x,backgroundColor:c,borderColor:s,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:r,backgroundColor:g,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:f,borderColor:s,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:d,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${b(w).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},cM=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:c,buttonPaddingInline:s,fontSize:u,buttonBg:f,fontSizeLG:d,controlHeightLG:p,controlHeightSM:h,paddingXS:v,borderRadius:m,borderRadiusSM:g,borderRadiusLG:b,buttonCheckedBg:y,buttonSolidCheckedColor:w,colorTextDisabled:x,colorBgContainerDisabled:S,buttonCheckedBgDisabled:C,buttonCheckedColorDisabled:k,colorPrimary:E,colorPrimaryHover:O,colorPrimaryActive:_,buttonSolidCheckedBg:j,buttonSolidCheckedHoverBg:$,buttonSolidCheckedActiveBg:N,calc:P}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:u,lineHeight:Ue(P(n).sub(P(o).mul(2)).equal()),background:f,border:`${Ue(o)} ${i} ${a}`,borderBlockStartWidth:P(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:P(o).mul(-1).equal(),insetInlineStart:P(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${Ue(o)} ${i} ${a}`,borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m},"&:first-child:last-child":{borderRadius:m},[`${r}-group-large &`]:{height:p,fontSize:d,lineHeight:Ue(P(p).sub(P(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:h,paddingInline:P(v).sub(o).equal(),paddingBlock:0,lineHeight:Ue(P(h).sub(P(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},"&:hover":{position:"relative",color:E},"&:has(:focus-visible)":Object.assign({},da(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:E,background:y,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:_,borderColor:_,"&::before":{backgroundColor:_}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:w,background:j,borderColor:j,"&:hover":{color:w,background:$,borderColor:$},"&:active":{color:w,background:N,borderColor:N}},"&-disabled":{color:x,backgroundColor:S,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:S,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:k,backgroundColor:C,borderColor:a,boxShadow:"none"}}}};var sM=Jl("Radio",(e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${Ue(n)} ${t}`,o=Wl(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[aM(o),lM(o),cM(o)]}),(e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:s,colorTextLightSolid:u,colorPrimary:f,colorPrimaryHover:d,colorPrimaryActive:p,colorWhite:h}=e;return{radioSize:i,dotSize:t?i-8:i-2*(4+o),dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:d,buttonSolidCheckedActiveBg:p,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:s,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?f:h,radioBgColor:t?l:f}}),{unitless:{radioSize:!0,dotSize:!0}}),uM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const fM=(e,n)=>{var r,o;const i=t.useContext(rM),a=t.useContext(oM),{getPrefixCls:l,direction:c,radio:s}=t.useContext(F),u=t.useRef(null),f=Mo(n,u),{isFormItemInput:d}=t.useContext(dp);const p=t=>{var n,r;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(r=null==i?void 0:i.onChange)||void 0===r||r.call(i,t)},{prefixCls:h,className:v,rootClassName:m,children:g,style:b,title:y}=e,w=uM(e,["prefixCls","className","rootClassName","children","style","title"]),x=l("radio",h),S="button"===((null==i?void 0:i.optionType)||a),C=S?`${x}-button`:x,k=Ol(x),[E,O,_]=sM(x,k),j=Object.assign({},w),$=t.useContext(yo);i&&(j.name=i.name,j.onChange=p,j.checked=e.value===i.value,j.disabled=null!==(r=j.disabled)&&void 0!==r?r:i.disabled),j.disabled=null!==(o=j.disabled)&&void 0!==o?o:$;const N=jo()(`${C}-wrapper`,{[`${C}-wrapper-checked`]:j.checked,[`${C}-wrapper-disabled`]:j.disabled,[`${C}-wrapper-rtl`]:"rtl"===c,[`${C}-wrapper-in-form-item`]:d},null==s?void 0:s.className,v,m,O,_,k);return E(t.createElement(Xc,{component:"Radio",disabled:j.disabled},t.createElement("label",{className:N,style:Object.assign(Object.assign({},null==s?void 0:s.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y},t.createElement(NO,Object.assign({},j,{className:jo()(j.className,{[Wc]:!S}),type:"radio",prefixCls:C,ref:f})),void 0!==g?t.createElement("span",null,g):null)))};var dM=t.forwardRef(fM);const pM=t.forwardRef(((e,n)=>{const{getPrefixCls:r,direction:o}=t.useContext(F),[i,a]=Jo(e.defaultValue,{value:e.value}),{prefixCls:l,className:c,rootClassName:s,options:u,buttonStyle:f="outline",disabled:d,children:p,size:h,style:v,id:m,onMouseEnter:g,onMouseLeave:b,onFocus:y,onBlur:w}=e,x=r("radio",l),S=`${x}-group`,C=Ol(x),[k,E,O]=sM(x,C);let _=p;u&&u.length>0&&(_=u.map((e=>"string"==typeof e||"number"==typeof e?t.createElement(dM,{key:e.toString(),prefixCls:x,disabled:d,value:e,checked:i===e},e):t.createElement(dM,{key:`radio-group-value-options-${e.value}`,prefixCls:x,disabled:e.disabled||d,value:e.value,checked:i===e.value,title:e.title,style:e.style,id:e.id,required:e.required},e.label))));const j=Qc(h),$=jo()(S,`${S}-${f}`,{[`${S}-${j}`]:j,[`${S}-rtl`]:"rtl"===o},c,s,E,O,C);return k(t.createElement("div",Object.assign({},dl(e,{aria:!0,data:!0}),{className:$,style:v,onMouseEnter:g,onMouseLeave:b,onFocus:y,onBlur:w,id:m,ref:n}),t.createElement(nM,{value:{onChange:t=>{const n=i,r=t.target.value;"value"in e||a(r);const{onChange:o}=e;o&&r!==n&&o(t)},value:i,disabled:e.disabled,name:e.name,optionType:e.optionType}},_)))}));var hM=t.memo(pM),vM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const mM=(e,n)=>{const{getPrefixCls:r}=t.useContext(F),{prefixCls:o}=e,i=vM(e,["prefixCls"]),a=r("radio",o);return t.createElement(iM,{value:"button"},t.createElement(dM,Object.assign({prefixCls:a},i,{type:"radio",ref:n})))};var gM=t.forwardRef(mM);const bM=dM;bM.Button=gM,bM.Group=hM,bM.__ANT_RADIO=!0;var yM=bM;function wM(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function xM(e,t,n,r){var o=E.unstable_batchedUpdates?function(e){E.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}var SM=t.createContext(null),CM=function(e){var n=e.visible,r=e.maskTransitionName,o=e.getContainer,i=e.prefixCls,a=e.rootClassName,l=e.icons,c=e.countRender,s=e.showSwitch,u=e.showProgress,f=e.current,d=e.transform,p=e.count,h=e.scale,v=e.minScale,m=e.maxScale,g=e.closeIcon,b=e.onSwitchLeft,y=e.onSwitchRight,w=e.onClose,S=e.onZoomIn,k=e.onZoomOut,E=e.onRotateRight,O=e.onRotateLeft,_=e.onFlipX,j=e.onFlipY,$=e.onReset,N=e.toolbarRender,P=e.zIndex,I=e.image,M=(0,t.useContext)(SM),R=l.rotateLeft,A=l.rotateRight,T=l.zoomIn,q=l.zoomOut,D=l.close,L=l.left,z=l.right,B=l.flipX,F=l.flipY,H="".concat(i,"-operations-operation");t.useEffect((function(){var e=function(e){e.keyCode===ll.ESC&&w()};return n&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[n]);var W=[{icon:F,onClick:j,type:"flipY"},{icon:B,onClick:_,type:"flipX"},{icon:R,onClick:O,type:"rotateLeft"},{icon:A,onClick:E,type:"rotateRight"},{icon:q,onClick:k,type:"zoomOut",disabled:h<=v},{icon:T,onClick:S,type:"zoomIn",disabled:h===m}].map((function(e){var n,r=e.icon,o=e.onClick,a=e.type,l=e.disabled;return t.createElement("div",{className:jo()(H,(n={},x(n,"".concat(i,"-operations-operation-").concat(a),!0),x(n,"".concat(i,"-operations-operation-disabled"),!!l),n)),onClick:o,key:a},r)})),V=t.createElement("div",{className:"".concat(i,"-operations")},W);return t.createElement(Ki,{visible:n,motionName:r},(function(e){var n=e.className,r=e.style;return t.createElement(Su,{open:!0,getContainer:null!=o?o:document.body},t.createElement("div",{className:jo()("".concat(i,"-operations-wrapper"),n,a),style:C(C({},r),{},{zIndex:P})},null===g?null:t.createElement("button",{className:"".concat(i,"-close"),onClick:w},g||D),s&&t.createElement(t.Fragment,null,t.createElement("div",{className:jo()("".concat(i,"-switch-left"),x({},"".concat(i,"-switch-left-disabled"),0===f)),onClick:b},L),t.createElement("div",{className:jo()("".concat(i,"-switch-right"),x({},"".concat(i,"-switch-right-disabled"),f===p-1)),onClick:y},z)),t.createElement("div",{className:"".concat(i,"-footer")},u&&t.createElement("div",{className:"".concat(i,"-progress")},c?c(f+1,p):"".concat(f+1," / ").concat(p)),N?N(V,C(C({icons:{flipYIcon:W[0],flipXIcon:W[1],rotateLeftIcon:W[2],rotateRightIcon:W[3],zoomOutIcon:W[4],zoomInIcon:W[5]},actions:{onFlipY:j,onFlipX:_,onRotateLeft:O,onRotateRight:E,onZoomOut:k,onZoomIn:S,onReset:$,onClose:w},transform:d},M?{current:f,total:p}:{}),{},{image:I})):V)))}))},kM={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function EM(e,t,n,r){var o=t+n,i=(n-r)/2;if(n>r){if(t>0)return x({},e,i);if(t<0&&o<r)return x({},e,-i)}else if(t<0||o>r)return x({},e,t<0?i:-i);return{}}function OM(e,t,n,r){var o=wM(),i=o.width,a=o.height,l=null;return e<=i&&t<=a?l={x:0,y:0}:(e>i||t>a)&&(l=C(C({},EM("x",n,e,i)),EM("y",r,t,a))),l}function _M(e){var n=e.src,r=e.isCustomPlaceholder,o=e.fallback,i=Y((0,t.useState)(r?"loading":"normal"),2),a=i[0],l=i[1],c=(0,t.useRef)(!1),s="error"===a;(0,t.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}))}(n).then((function(t){!t&&e&&l("error")})),function(){e=!1}}),[n]),(0,t.useEffect)((function(){r&&!c.current?l("loading"):s&&l("normal")}),[n]);var u=function(){l("normal")};return[function(e){c.current=!1,"loading"===a&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(c.current=!0,u())},s&&o?{src:o}:{onLoad:u,src:n},a]}function jM(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function $M(e,n,r,o,i,a,l){var c=i.rotate,s=i.scale,u=i.x,f=i.y,d=Y((0,t.useState)(!1),2),p=d[0],h=d[1],v=(0,t.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),m=function(e){v.current=C(C({},v.current),e)};return(0,t.useEffect)((function(){var e;return r&&n&&(e=xM(window,"touchmove",(function(e){return e.preventDefault()}),{passive:!1})),function(){var t;null===(t=e)||void 0===t||t.remove()}}),[r,n]),{isTouching:p,onTouchStart:function(e){if(n){e.stopPropagation(),h(!0);var t=e.touches,r=void 0===t?[]:t;r.length>1?m({point1:{x:r[0].clientX,y:r[0].clientY},point2:{x:r[1].clientX,y:r[1].clientY},eventType:"touchZoom"}):m({point1:{x:r[0].clientX-u,y:r[0].clientY-f},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,r=v.current,o=r.point1,i=r.point2,c=r.eventType;if(n.length>1&&"touchZoom"===c){var s={x:n[0].clientX,y:n[0].clientY},u={x:n[1].clientX,y:n[1].clientY},f=function(e,t,n,r){var o=jM(e,n),i=jM(t,r);if(0===o&&0===i)return[e.x,e.y];var a=o/(o+i);return[e.x+a*(t.x-e.x),e.y+a*(t.y-e.y)]}(o,i,s,u),d=Y(f,2),p=d[0],h=d[1],g=jM(s,u)/jM(o,i);l(g,"touchZoom",p,h,!0),m({point1:s,point2:u,eventType:"touchZoom"})}else"move"===c&&(a({x:n[0].clientX-o.x,y:n[0].clientY-o.y},"move"),m({eventType:"move"}))},onTouchEnd:function(){if(r){if(p&&h(!1),m({eventType:"none"}),o>s)return a({x:0,y:0,scale:o},"touchZoom");var t=e.current.offsetWidth*s,n=e.current.offsetHeight*s,i=e.current.getBoundingClientRect(),l=i.left,u=i.top,f=c%180!=0,d=OM(f?n:t,f?t:n,l,u);d&&a(C({},d),"dragRebound")}}}}var NM=["fallback","src","imgRef"],PM=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],IM=function(e){var n=e.fallback,r=e.src,o=e.imgRef,i=qo(e,NM),a=Y(_M({src:r,fallback:n}),2),l=a[0],c=a[1];return t.createElement("img",ht({ref:function(e){o.current=e,l(e)}},i,c))},MM=function(e){var n=e.prefixCls,r=e.src,o=e.alt,i=e.imageInfo,a=e.fallback,l=e.movable,c=void 0===l||l,s=e.onClose,u=e.visible,f=e.icons,d=void 0===f?{}:f,p=e.rootClassName,h=e.closeIcon,v=e.getContainer,m=e.current,g=void 0===m?0:m,b=e.count,y=void 0===b?1:b,w=e.countRender,S=e.scaleStep,k=void 0===S?.5:S,E=e.minScale,O=void 0===E?1:E,_=e.maxScale,j=void 0===_?50:_,$=e.transitionName,N=void 0===$?"zoom":$,P=e.maskTransitionName,I=void 0===P?"fade":P,M=e.imageRender,R=e.imgCommonProps,A=e.toolbarRender,T=e.onTransform,q=e.onChange,D=qo(e,PM),L=(0,t.useRef)(),z=(0,t.useContext)(SM),B=z&&y>1,F=z&&y>=1,H=Y((0,t.useState)(!0),2),W=H[0],V=H[1],U=function(e,n,r,o){var i=(0,t.useRef)(null),a=(0,t.useRef)([]),l=Y((0,t.useState)(kM),2),c=l[0],s=l[1],u=function(e,t){null===i.current&&(a.current=[],i.current=Ni((function(){s((function(e){var n=e;return a.current.forEach((function(e){n=C(C({},n),e)})),i.current=null,null==o||o({transform:n,action:t}),n}))}))),a.current.push(C(C({},c),e))};return{transform:c,resetTransform:function(e){s(kM),we(kM,c)||null==o||o({transform:kM,action:e})},updateTransform:u,dispatchZoomChange:function(t,o,i,a,l){var s=e.current,f=s.width,d=s.height,p=s.offsetWidth,h=s.offsetHeight,v=s.offsetLeft,m=s.offsetTop,g=t,b=c.scale*t;b>r?(b=r,g=r/c.scale):b<n&&(g=(b=l?b:n)/c.scale);var y=null!=i?i:innerWidth/2,w=null!=a?a:innerHeight/2,x=g-1,S=x*f*.5,C=x*d*.5,k=x*(y-c.x-v),E=x*(w-c.y-m),O=c.x-(k-S),_=c.y-(E-C);if(t<1&&1===b){var j=p*b,$=h*b,N=wM(),P=N.width,I=N.height;j<=P&&$<=I&&(O=0,_=0)}u({x:O,y:_,scale:b},o)}}}(L,O,j,T),G=U.transform,K=U.resetTransform,X=U.updateTransform,Q=U.dispatchZoomChange,Z=function(e,n,r,o,i,a,l){var c=i.rotate,s=i.scale,u=i.x,f=i.y,d=Y((0,t.useState)(!1),2),p=d[0],h=d[1],v=(0,t.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),m=function(e){r&&p&&a({x:e.pageX-v.current.diffX,y:e.pageY-v.current.diffY},"move")},g=function(){if(r&&p){h(!1);var t=v.current,n=t.transformX,o=t.transformY;if(u===n||f===o)return;var i=e.current.offsetWidth*s,l=e.current.offsetHeight*s,d=e.current.getBoundingClientRect(),m=d.left,g=d.top,b=c%180!=0,y=OM(b?l:i,b?i:l,m,g);y&&a(C({},y),"dragRebound")}};return(0,t.useEffect)((function(){var e,t,r,o;if(n){r=xM(window,"mouseup",g,!1),o=xM(window,"mousemove",m,!1);try{window.top!==window.self&&(e=xM(window.top,"mouseup",g,!1),t=xM(window.top,"mousemove",m,!1))}catch(e){"[rc-image] ".concat(e)}}return function(){var n,i,a,l;null===(n=r)||void 0===n||n.remove(),null===(i=o)||void 0===i||i.remove(),null===(a=e)||void 0===a||a.remove(),null===(l=t)||void 0===l||l.remove()}}),[r,p,u,f,c,n]),{isMoving:p,onMouseDown:function(e){n&&0===e.button&&(e.preventDefault(),e.stopPropagation(),v.current={diffX:e.pageX-u,diffY:e.pageY-f,transformX:u,transformY:f},h(!0))},onMouseMove:m,onMouseUp:g,onWheel:function(e){if(r&&0!=e.deltaY){var t=Math.abs(e.deltaY/100),n=1+Math.min(t,1)*o;e.deltaY>0&&(n=1/n),l(n,"wheel",e.clientX,e.clientY)}}}}(L,c,u,k,G,X,Q),J=Z.isMoving,ee=Z.onMouseDown,te=Z.onWheel,ne=$M(L,c,u,O,G,X,Q),re=ne.isTouching,oe=ne.onTouchStart,ie=ne.onTouchMove,ae=ne.onTouchEnd,le=G.rotate,ce=G.scale,se=jo()(x({},"".concat(n,"-moving"),J));(0,t.useEffect)((function(){W||V(!0)}),[W]);var ue=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),g>0&&(V(!1),K("prev"),null==q||q(g-1,g))},fe=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),g<y-1&&(V(!1),K("next"),null==q||q(g+1,g))},de=function(e){u&&B&&(e.keyCode===ll.LEFT?ue():e.keyCode===ll.RIGHT&&fe())};(0,t.useEffect)((function(){var e=xM(window,"keydown",de,!1);return function(){e.remove()}}),[u,B,g]);var pe=t.createElement(IM,ht({},R,{width:e.width,height:e.height,imgRef:L,className:"".concat(n,"-img"),alt:o,style:{transform:"translate3d(".concat(G.x,"px, ").concat(G.y,"px, 0) scale3d(").concat(G.flipX?"-":"").concat(ce,", ").concat(G.flipY?"-":"").concat(ce,", 1) rotate(").concat(le,"deg)"),transitionDuration:(!W||re)&&"0s"},fallback:a,src:r,onWheel:te,onMouseDown:ee,onDoubleClick:function(e){u&&(1!==ce?X({x:0,y:0,scale:1},"doubleClick"):Q(1+k,"doubleClick",e.clientX,e.clientY))},onTouchStart:oe,onTouchMove:ie,onTouchEnd:ae,onTouchCancel:ae})),he=C({url:r,alt:o},i);return t.createElement(t.Fragment,null,t.createElement(kh,ht({transitionName:N,maskTransitionName:I,closable:!1,keyboard:!0,prefixCls:n,onClose:s,visible:u,classNames:{wrapper:se},rootClassName:p,getContainer:v},D,{afterClose:function(){K("close")}}),t.createElement("div",{className:"".concat(n,"-img-wrapper")},M?M(pe,C({transform:G,image:he},z?{current:g}:{})):pe)),t.createElement(CM,{visible:u,transform:G,maskTransitionName:I,closeIcon:h,getContainer:v,prefixCls:n,rootClassName:p,icons:d,countRender:w,showSwitch:B,showProgress:F,current:g,count:y,scale:ce,minScale:O,maxScale:j,toolbarRender:A,onSwitchLeft:ue,onSwitchRight:fe,onZoomIn:function(){Q(1+k,"zoomIn")},onZoomOut:function(){Q(1/(1+k),"zoomOut")},onRotateRight:function(){X({rotate:le+90},"rotateRight")},onRotateLeft:function(){X({rotate:le-90},"rotateLeft")},onFlipX:function(){X({flipX:!G.flipX},"flipX")},onFlipY:function(){X({flipY:!G.flipY},"flipY")},onClose:s,onReset:function(){K("reset")},zIndex:void 0!==D.zIndex?D.zIndex+1:void 0,image:he}))},RM=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];var AM=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],TM=["src"],qM=function(e){var n,r=e.previewPrefixCls,o=void 0===r?"rc-image-preview":r,i=e.children,a=e.icons,l=void 0===a?{}:a,c=e.items,s=e.preview,u=e.fallback,f="object"===m(s)?s:{},d=f.visible,p=f.onVisibleChange,h=f.getContainer,v=f.current,g=f.movable,b=f.minScale,y=f.maxScale,w=f.countRender,S=f.closeIcon,k=f.onChange,E=f.onTransform,O=f.toolbarRender,_=f.imageRender,j=qo(f,AM),$=function(e){var n=Y(t.useState({}),2),r=n[0],o=n[1],i=t.useCallback((function(e,t){return o((function(n){return C(C({},n),{},x({},e,t))})),function(){o((function(t){var n=C({},t);return delete n[e],n}))}}),[]),a=t.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(X(RM)).includes(n)&&(t[n]=e[n])})),{data:t}})):Object.keys(r).reduce((function(e,t){var n=r[t],o=n.canPreview,i=n.data;return o&&e.push({data:i,id:t}),e}),[])}),[e,r]);return[a,i,!!e]}(c),N=Y($,3),P=N[0],I=N[1],M=N[2],R=Y(Jo(0,{value:v}),2),A=R[0],T=R[1],q=Y((0,t.useState)(!1),2),D=q[0],L=q[1],z=(null===(n=P[A])||void 0===n?void 0:n.data)||{},B=z.src,F=qo(z,TM),H=Y(Jo(!!d,{value:d,onChange:function(e,t){null==p||p(e,t,A)}}),2),W=H[0],V=H[1],U=Y((0,t.useState)(null),2),G=U[0],K=U[1],Q=t.useCallback((function(e,t,n,r){var o=M?P.findIndex((function(e){return e.data.src===t})):P.findIndex((function(t){return t.id===e}));T(o<0?0:o),V(!0),K({x:n,y:r}),L(!0)}),[P,M]);t.useEffect((function(){W?D||T(0):L(!1)}),[W]);var Z=t.useMemo((function(){return{register:I,onPreview:Q}}),[I,Q]);return t.createElement(SM.Provider,{value:Z},i,t.createElement(MM,ht({"aria-hidden":!W,movable:g,visible:W,prefixCls:o,closeIcon:S,onClose:function(){V(!1),K(null)},mousePosition:G,imgCommonProps:F,src:B,fallback:u,icons:l,minScale:b,maxScale:y,getContainer:h,current:A,count:P.length,countRender:w,onTransform:E,toolbarRender:O,imageRender:_,onChange:function(e,t){T(e),null==k||k(e,t)}},j)))},DM=0;var LM=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],zM=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],BM=function(e){var n=e.src,r=e.alt,o=e.onPreviewClose,i=e.prefixCls,a=void 0===i?"rc-image":i,l=e.previewPrefixCls,c=void 0===l?"".concat(a,"-preview"):l,s=e.placeholder,u=e.fallback,f=e.width,d=e.height,p=e.style,h=e.preview,v=void 0===h||h,g=e.className,b=e.onClick,y=e.onError,w=e.wrapperClassName,S=e.wrapperStyle,k=e.rootClassName,E=qo(e,LM),O=s&&!0!==s,_="object"===m(v)?v:{},j=_.src,$=_.visible,N=void 0===$?void 0:$,P=_.onVisibleChange,I=void 0===P?o:P,M=_.getContainer,R=void 0===M?void 0:M,A=_.mask,T=_.maskClassName,q=_.movable,D=_.icons,L=_.scaleStep,z=_.minScale,B=_.maxScale,F=_.imageRender,H=_.toolbarRender,W=qo(_,zM),V=null!=j?j:n,U=Y(Jo(!!N,{value:N,onChange:I}),2),G=U[0],K=U[1],X=Y(_M({src:n,isCustomPlaceholder:O,fallback:u}),3),Q=X[0],Z=X[1],J=X[2],ee=Y((0,t.useState)(null),2),te=ee[0],ne=ee[1],re=(0,t.useContext)(SM),oe=!!v,ie=jo()(a,w,k,x({},"".concat(a,"-error"),"error"===J)),ae=(0,t.useMemo)((function(){var t={};return RM.forEach((function(n){void 0!==e[n]&&(t[n]=e[n])})),t}),RM.map((function(t){return e[t]}))),le=function(e,n){var r=Y(t.useState((function(){return String(DM+=1)})),1)[0],o=t.useContext(SM),i={data:n,canPreview:e};return t.useEffect((function(){if(o)return o.register(r,i)}),[]),t.useEffect((function(){o&&o.register(r,i)}),[e,n]),r}(oe,(0,t.useMemo)((function(){return C(C({},ae),{},{src:V})}),[V,ae]));return t.createElement(t.Fragment,null,t.createElement("div",ht({},E,{className:ie,onClick:oe?function(e){var t=function(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}(e.target),n=t.left,r=t.top;re?re.onPreview(le,V,n,r):(ne({x:n,y:r}),K(!0)),null==b||b(e)}:b,style:C({width:f,height:d},S)}),t.createElement("img",ht({},ae,{className:jo()("".concat(a,"-img"),x({},"".concat(a,"-img-placeholder"),!0===s),g),style:C({height:d},p),ref:Q},Z,{width:f,height:d,onError:y})),"loading"===J&&t.createElement("div",{"aria-hidden":"true",className:"".concat(a,"-placeholder")},s),A&&oe&&t.createElement("div",{className:jo()("".concat(a,"-mask"),T),style:{display:"none"===(null==p?void 0:p.display)?"none":void 0}},A)),!re&&oe&&t.createElement(MM,ht({"aria-hidden":!G,visible:G,prefixCls:c,onClose:function(){K(!1),ne(null)},mousePosition:te,src:V,alt:r,imageInfo:{width:f,height:d},fallback:u,getContainer:R,icons:D,movable:q,scaleStep:L,minScale:z,maxScale:B,rootClassName:k,imageRender:F,imgCommonProps:ae,toolbarRender:H},W)))};BM.PreviewGroup=qM;var FM=BM,HM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},WM=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:HM}))};var VM=t.forwardRef(WM),UM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},GM=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:UM}))};var YM=t.forwardRef(GM),KM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},XM=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:KM}))};var QM=t.forwardRef(XM),ZM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},JM=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:ZM}))};var eR=t.forwardRef(JM),tR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},nR=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:tR}))};var rR=t.forwardRef(nR),oR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},iR=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:oR}))};var aR=t.forwardRef(iR);const lR=e=>({position:e||"absolute",inset:0}),cR=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:o,prefixCls:i,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new no("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},sa),{padding:`0 ${Ue(r)}`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},sR=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:o,margin:i,paddingLG:a,previewOperationColorDisabled:l,previewOperationHoverColor:c,motionDurationSlow:s,iconCls:u,colorTextLightSolid:f}=e,d=new no(n).setAlpha(.1),p=d.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:o,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:o,right:{_skip_check_:!0,value:o},display:"flex",color:f,backgroundColor:d.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${s}`,"&:hover":{backgroundColor:p.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Ue(a)}`,backgroundColor:d.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${s}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:c},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},uR=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:o,zIndexPopup:i,motionDurationSlow:a}=e,l=new no(t).setAlpha(.1),c=l.clone().setAlpha(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:c.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},fR=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},lR()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},lR()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${o}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[sR(e),uR(e)]}]},dR=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},cR(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},lR())}}},pR=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Hp(e,"zoom"),"&":pv(e,!0)}};var hR=Jl("Image",(e=>{const t=`${e.componentCls}-preview`,n=Wl(e,{previewCls:t,modalMaskBg:new no("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[dR(n),fR(n),vv(Wl(n,{componentCls:t})),pR(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new no(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new no(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new no(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon}))),vR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const mR={rotateLeft:t.createElement(YM,null),rotateRight:t.createElement(QM,null),zoomIn:t.createElement(rR,null),zoomOut:t.createElement(aR,null),close:t.createElement(Xa,null),left:t.createElement(VM,null),right:t.createElement(_k,null),flipX:t.createElement(eR,null),flipY:t.createElement(eR,{rotate:90})};var gR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const bR=e=>{var n;const{prefixCls:r,preview:o,className:i,rootClassName:a,style:l}=e,c=gR(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:s,locale:u=zn,getPopupContainer:f,image:d}=t.useContext(F),p=s("image",r),h=s(),v=u.Image||zn.Image,m=Ol(p),[g,b,y]=hR(p,m),w=jo()(a,b,y,m),x=jo()(i,b,null==d?void 0:d.className),[S]=Il("ImagePreview","object"==typeof o?o.zIndex:void 0),C=t.useMemo((()=>{var e;if(!1===o)return o;const n="object"==typeof o?o:{},{getContainer:r,closeIcon:i}=n,a=gR(n,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:t.createElement("div",{className:`${p}-mask-info`},t.createElement(Vg,null),null==v?void 0:v.preview),icons:mR},a),{getContainer:null!=r?r:f,transitionName:xp(h,"zoom",n.transitionName),maskTransitionName:xp(h,"fade",n.maskTransitionName),zIndex:S,closeIcon:null!=i?i:null===(e=null==d?void 0:d.preview)||void 0===e?void 0:e.closeIcon})}),[o,v,null===(n=null==d?void 0:d.preview)||void 0===n?void 0:n.closeIcon]),k=Object.assign(Object.assign({},null==d?void 0:d.style),l);return g(t.createElement(FM,Object.assign({prefixCls:p,preview:C,rootClassName:w,className:x,style:k},c)))};bR.PreviewGroup=e=>{var{previewPrefixCls:n,preview:r}=e,o=vR(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=t.useContext(F),a=i("image",n),l=`${a}-preview`,c=i(),s=Ol(a),[u,f,d]=hR(a,s),[p]=Il("ImagePreview","object"==typeof r?r.zIndex:void 0),h=t.useMemo((()=>{var e;if(!1===r)return r;const t="object"==typeof r?r:{},n=jo()(f,d,s,null!==(e=t.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},t),{transitionName:xp(c,"zoom",t.transitionName),maskTransitionName:xp(c,"fade",t.maskTransitionName),rootClassName:n,zIndex:p})}),[r]);return u(t.createElement(FM.PreviewGroup,Object.assign({preview:h,previewPrefixCls:l,icons:mR},o)))};var yR=bR;function wR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return xR(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xR(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var SR=function(e){var t,n,o,i,a=e.id,c=e.field,s=c.value,u=c.help,f=c.options,p=(c.empty,c.searchable,null===(t=e.field)||void 0===t?void 0:t.fieldType),h=null===(n=e.field)||void 0===n?void 0:n.parentId,v=null===(o=e.field)||void 0===o?void 0:o.index,m=null===(i=e.field)||void 0===i?void 0:i.repeaterData,g=wR(l(),2),b=(g[0],g[1]);return(0,r.jsxs)("div",{className:"rtsb-field rtsb-image-select-field",children:[(0,r.jsx)(Nm,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(yM.Group,{size:"large",value:s,onChange:function(e){b({type:d,id:a,value:e.target.value,fieldType:p,parentId:h,repeaterData:m,index:v})},children:Object.keys(f).map((function(e){var t,n;return(0,r.jsx)(yM,{value:e,children:(0,r.jsx)(yR,{preview:!1,src:null===(t=f[e])||void 0===t?void 0:t.url,alt:null===(n=f[e])||void 0===n?void 0:n.label})},e)}))})}),u&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:u}})]})]})};function CR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return kR(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kR(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ER=function(e){var t,n,o,i,a=e.id,c=e.field,s=c.value,u=c.help,f=c.options,p=(c.empty,c.searchable,null===(t=e.field)||void 0===t?void 0:t.fieldType),h=null===(n=e.field)||void 0===n?void 0:n.parentId,v=null===(o=e.field)||void 0===o?void 0:o.index,m=null===(i=e.field)||void 0===i?void 0:i.repeaterData,g=CR(l(),2),b=(g[0],g[1]);return(0,r.jsxs)("div",{className:"rtsb-field rtsb-text-select-field",children:[(0,r.jsx)(Nm,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(yM.Group,{size:"large",value:s,onChange:function(e){b({type:d,id:a,value:e.target.value,fieldType:p,parentId:h,repeaterData:m,index:v})},buttonStyle:"solid",children:Object.keys(f).map((function(e){return(0,r.jsx)(yM.Button,{value:e,children:f[e]},e)}))})}),u&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:u}})]})]})},OR=function(e){var t=e.field.text;return(0,r.jsx)("div",{className:"rtsb-field-description",children:(0,r.jsx)("div",{className:"rtsb-field__description-label",dangerouslySetInnerHTML:{__html:t}})})};function _R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return jR(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jR(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var $R=Cx.Option,NR=function(e){var t,n,o,i,a=e.id,c=e.field,s=c.value,u=c.help,f=c.options,p=c.empty,h=c.searchable,v=c.multiple,m=null===(t=e.field)||void 0===t?void 0:t.fieldType,g=null===(n=e.field)||void 0===n?void 0:n.parentId,b=null===(o=e.field)||void 0===o?void 0:o.index,y=null===(i=e.field)||void 0===i?void 0:i.repeaterData,w=_R(l(),2),x=(w[0],w[1]);return(0,r.jsxs)("div",{className:"rtsb-field select icon-select",children:[(0,r.jsx)(Nm,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsxs)(Cx,{showSearch:!!h,value:s,mode:v?"multiple":null,popupClassName:"rtsb-icon-selector",onChange:function(e){x({type:d,id:a,value:e,fieldType:m,parentId:g,repeaterData:y,index:b})},filterOption:function(e,t){return null==t?void 0:t.key.toLowerCase().includes(e.toLowerCase())},children:[p&&(0,r.jsx)($R,{value:"",children:p}),Object.keys(f).map((function(e){return(0,r.jsx)($R,{value:e,children:(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:f[e]}})},e)}))]})}),u&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:u}})]})]})},PR=o(5708),IR=o.n(PR),MR=o(5072),RR=o.n(MR),AR=o(1958),TR={insert:"head",singleton:!1};RR()(AR.A,TR),AR.A.locals;function qR(e){return qR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qR(e)}function DR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function LR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DR(Object(n),!0).forEach((function(t){zR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zR(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=qR(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=qR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==qR(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return FR(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?FR(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function FR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var HR=mb.TextArea,WR=function(e){var n,o,i,a,c=e.field,s=c.help,u=c.value,f=c.placeholder,p=c.disabled,h=c.isPro,v=e.id,m=null===(n=e.field)||void 0===n?void 0:n.fieldType,g=null===(o=e.field)||void 0===o?void 0:o.parentId,b=null===(i=e.field)||void 0===i?void 0:i.index,y=null===(a=e.field)||void 0===a?void 0:a.repeaterData,w=BR(l(),2),x=(w[0],w[1]),S=BR((0,t.useState)("visual"),2),C=S[0],k=S[1],E=BR((0,t.useState)(u),2),O=E[0],_=E[1],j={};p?j.disabled=p||!1:h&&(j.disabled=h);var $=function(e){x({type:d,id:v,value:e,fieldType:m,parentId:g,repeaterData:y,index:b})},N=function(e){k(e)};return(0,t.useEffect)((function(){_(u)}),[u]),(0,r.jsxs)("div",{className:"rtsb-field textarea",children:[(0,r.jsx)(Nm,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsxs)("div",{className:"rtsb-field-control ".concat(h?"rtsb-text-editor-disable":""),children:[(0,r.jsxs)("div",{className:"editor-tabs",children:[(0,r.jsx)("button",{onClick:function(){return N("visual")},className:"".concat("visual"===C?"active ":"","rtsb-switch-editor"),children:"Visual"}),(0,r.jsx)("button",{onClick:function(){return N("html")},className:"".concat("html"===C?"active ":"","html rtsb-switch-editor"),children:"HTML"})]}),"visual"===C?(0,r.jsx)(IR(),{theme:"snow",value:O,modules:{toolbar:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"bullet"},{list:"ordered"}],["blockquote",{align:[]},"link","code"],[{color:[]},{background:[]}]]},formats:["header","bold","italic","underline","bullet","list","blockquote","align","link","code","color","background"],onChange:function(e){h&&(e=""),_(e),$(e)},placeholder:f}):(0,r.jsx)(HR,LR(LR({},j),{},{rows:4,className:"rtsb-form-field",value:O,onChange:function(e){return _(e.target.value)},placeholder:f}))]}),s&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:s}})]})]})};function VR(e){return VR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VR(e)}function UR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function GR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UR(Object(n),!0).forEach((function(t){YR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function YR(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=VR(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=VR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==VR(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return XR(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?XR(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function XR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var QR=function(e){var t,n,o,i,a,c=e.field,s=c.help,u=c.value,f=c.placeholder,p=c.size,h=c.min,v=c.max,m=e.id,g=KR(l(),2),b=g[0],y=g[1],w=null===(t=e.field)||void 0===t?void 0:t.fieldType,x=null===(n=e.field)||void 0===n?void 0:n.parentId,S=null===(o=e.field)||void 0===o?void 0:o.index,C=null===(i=e.field)||void 0===i?void 0:i.repeaterData,k={};"currency_options"===x&&"currency_rate"===m&&(k.disabled="automatically"===(null===(a=b.sections.modules)||void 0===a||null===(a=a.list)||void 0===a||null===(a=a.currency_switcher)||void 0===a||null===(a=a.fields)||void 0===a||null===(a=a.exchange_rates)||void 0===a?void 0:a.value));return(0,r.jsxs)("div",{className:"rtsb-field text",children:[(0,r.jsx)(Nm,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsx)(uS,GR(GR({},k),{},{className:"rtsb-form-field",size:p,min:h,max:v,defaultValue:"null"!==u?u:"",placeholder:f,value:"null"!==u?u:"",onChange:function(e){y({type:d,id:m,value:e,fieldType:w,parentId:x,repeaterData:C,index:S})}}))}),s&&(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:s}})]})]})};const ZR="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function JR(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function eA(e){return"nodeType"in e}function tA(e){var t,n;return e?JR(e)?e:eA(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function nA(e){const{Document:t}=tA(e);return e instanceof t}function rA(e){return!JR(e)&&e instanceof tA(e).HTMLElement}function oA(e){return e instanceof tA(e).SVGElement}function iA(e){return e?JR(e)?e.document:eA(e)?nA(e)?e:rA(e)||oA(e)?e.ownerDocument:document:document:document}const aA=ZR?t.useLayoutEffect:t.useEffect;function lA(e){const n=(0,t.useRef)(e);return aA((()=>{n.current=e})),(0,t.useCallback)((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)}),[])}function cA(e,n){void 0===n&&(n=[e]);const r=(0,t.useRef)(e);return aA((()=>{r.current!==e&&(r.current=e)}),n),r}function sA(e,n){const r=(0,t.useRef)();return(0,t.useMemo)((()=>{const t=e(r.current);return r.current=t,t}),[...n])}function uA(e){const n=lA(e),r=(0,t.useRef)(null),o=(0,t.useCallback)((e=>{e!==r.current&&(null==n||n(e,r.current)),r.current=e}),[]);return[r,o]}function fA(e){const n=(0,t.useRef)();return(0,t.useEffect)((()=>{n.current=e}),[e]),n.current}let dA={};function pA(e,n){return(0,t.useMemo)((()=>{if(n)return n;const t=null==dA[e]?0:dA[e]+1;return dA[e]=t,e+"-"+t}),[e,n])}function hA(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,o]of r){const r=t[n];null!=r&&(t[n]=r+e*o)}return t}),{...t})}}const vA=hA(1),mA=hA(-1);function gA(e){if(!e)return!1;const{KeyboardEvent:t}=tA(e.target);return t&&e instanceof t}function bA(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=tA(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const yA=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[yA.Translate.toString(e),yA.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),wA="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function xA(e){return e.matches(wA)?e:e.querySelector(wA)}const SA={display:"none"};function CA(e){let{id:n,value:r}=e;return t.createElement("div",{id:n,style:SA},r)}function kA(e){let{id:n,announcement:r,ariaLiveType:o="assertive"}=e;return t.createElement("div",{id:n,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":o,"aria-atomic":!0},r)}const EA=(0,t.createContext)(null);const OA={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},_A={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function jA(e){let{announcements:n=_A,container:r,hiddenTextDescribedById:o,screenReaderInstructions:i=OA}=e;const{announce:a,announcement:l}=function(){const[e,n]=(0,t.useState)("");return{announce:(0,t.useCallback)((e=>{null!=e&&n(e)}),[]),announcement:e}}(),c=pA("DndLiveRegion"),[s,u]=(0,t.useState)(!1);if((0,t.useEffect)((()=>{u(!0)}),[]),function(e){const n=(0,t.useContext)(EA);(0,t.useEffect)((()=>{if(!n)throw new Error("useDndMonitor must be used within a children of <DndContext>");return n(e)}),[e,n])}((0,t.useMemo)((()=>({onDragStart(e){let{active:t}=e;a(n.onDragStart({active:t}))},onDragMove(e){let{active:t,over:r}=e;n.onDragMove&&a(n.onDragMove({active:t,over:r}))},onDragOver(e){let{active:t,over:r}=e;a(n.onDragOver({active:t,over:r}))},onDragEnd(e){let{active:t,over:r}=e;a(n.onDragEnd({active:t,over:r}))},onDragCancel(e){let{active:t,over:r}=e;a(n.onDragCancel({active:t,over:r}))}})),[a,n])),!s)return null;const f=t.createElement(t.Fragment,null,t.createElement(CA,{id:o,value:i.draggable}),t.createElement(kA,{id:c,announcement:l}));return r?(0,E.createPortal)(f,r):f}var $A;function NA(){}function PA(e,n){return(0,t.useMemo)((()=>({sensor:e,options:null!=n?n:{}})),[e,n])}function IA(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0,t.useMemo)((()=>[...n].filter((e=>null!=e))),[...n])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}($A||($A={}));const MA=Object.freeze({x:0,y:0});function RA(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function AA(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function TA(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function qA(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function DA(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function LA(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const zA=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=LA(t,t.left,t.top),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=RA(LA(r),o);i.push({id:t,data:{droppableContainer:e,value:n}})}}return i.sort(AA)};function BA(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,l=i-n;if(r<o&&n<i){const n=t.width*t.height,r=e.width*e.height,o=a*l;return Number((o/(n+r-o)).toFixed(4))}return 0}const FA=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const e of r){const{id:r}=e,i=n.get(r);if(i){const n=BA(i,t);n>0&&o.push({id:r,data:{droppableContainer:e,value:n}})}}return o.sort(TA)};function HA(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:MA}function WA(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const VA=WA(1);function UA(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const GA={ignoreTransform:!1};function YA(e,t){void 0===t&&(t=GA);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=tA(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=UA(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:l}=r,c=e.left-a-(1-o)*parseFloat(n),s=e.top-l-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,f=i?e.height/i:e.height;return{width:u,height:f,top:s,right:c+u,bottom:s+f,left:c}}(n,t,r))}const{top:r,left:o,width:i,height:a,bottom:l,right:c}=n;return{top:r,left:o,width:i,height:a,bottom:l,right:c}}function KA(e){return YA(e,{ignoreTransform:!0})}function XA(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if(nA(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!rA(o)||oA(o))return n;if(n.includes(o))return n;const i=tA(e).getComputedStyle(o);return o!==e&&function(e,t){void 0===t&&(t=tA(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(o,i)&&n.push(o),function(e,t){return void 0===t&&(t=tA(e).getComputedStyle(e)),"fixed"===t.position}(o,i)?n:r(o.parentNode)}(e):n}function QA(e){const[t]=XA(e,1);return null!=t?t:null}function ZA(e){return ZR&&e?JR(e)?e:eA(e)?nA(e)||e===iA(e).scrollingElement?window:rA(e)?e:null:null:null}function JA(e){return JR(e)?e.scrollX:e.scrollLeft}function eT(e){return JR(e)?e.scrollY:e.scrollTop}function tT(e){return{x:JA(e),y:eT(e)}}var nT;function rT(e){return!(!ZR||!e)&&e===document.scrollingElement}function oT(e){const t={x:0,y:0},n=rT(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(nT||(nT={}));const iT={x:.2,y:.2};function aT(e,t,n,r,o){let{top:i,left:a,right:l,bottom:c}=n;void 0===r&&(r=10),void 0===o&&(o=iT);const{isTop:s,isBottom:u,isLeft:f,isRight:d}=oT(e),p={x:0,y:0},h={x:0,y:0},v=t.height*o.y,m=t.width*o.x;return!s&&i<=t.top+v?(p.y=nT.Backward,h.y=r*Math.abs((t.top+v-i)/v)):!u&&c>=t.bottom-v&&(p.y=nT.Forward,h.y=r*Math.abs((t.bottom-v-c)/v)),!d&&l>=t.right-m?(p.x=nT.Forward,h.x=r*Math.abs((t.right-m-l)/m)):!f&&a<=t.left+m&&(p.x=nT.Backward,h.x=r*Math.abs((t.left+m-a)/m)),{direction:p,speed:h}}function lT(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function cT(e){return e.reduce(((e,t)=>vA(e,tT(t))),MA)}function sT(e,t){if(void 0===t&&(t=YA),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);QA(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const uT=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+JA(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+eT(t)),0)}]];class fT{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=XA(t),r=cT(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,o]of uT)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=o(n),a=r[e]-t;return this.rect[i]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class dT{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function pT(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var hT,vT;function mT(e){e.preventDefault()}function gT(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(hT||(hT={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(vT||(vT={}));const bT={start:[vT.Space,vT.Enter],cancel:[vT.Esc],end:[vT.Space,vT.Enter]},yT=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case vT.Right:return{...n,x:n.x+25};case vT.Left:return{...n,x:n.x-25};case vT.Down:return{...n,y:n.y+25};case vT.Up:return{...n,y:n.y-25}}};class wT{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new dT(iA(t)),this.windowListeners=new dT(tA(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(hT.Resize,this.handleCancel),this.windowListeners.add(hT.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(hT.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&sT(n),t(MA)}handleKeyDown(e){if(gA(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=bT,coordinateGetter:i=yT,scrollBehavior:a="smooth"}=r,{code:l}=e;if(o.end.includes(l))return void this.handleEnd(e);if(o.cancel.includes(l))return void this.handleCancel(e);const{collisionRect:c}=n.current,s=c?{x:c.left,y:c.top}:MA;this.referenceCoordinates||(this.referenceCoordinates=s);const u=i(e,{active:t,context:n.current,currentCoordinates:s});if(u){const t=mA(u,s),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:i,isRight:l,isLeft:c,isBottom:s,maxScroll:f,minScroll:d}=oT(n),p=lT(n),h={x:Math.min(o===vT.Right?p.right-p.width/2:p.right,Math.max(o===vT.Right?p.left:p.left+p.width/2,u.x)),y:Math.min(o===vT.Down?p.bottom-p.height/2:p.bottom,Math.max(o===vT.Down?p.top:p.top+p.height/2,u.y))},v=o===vT.Right&&!l||o===vT.Left&&!c,m=o===vT.Down&&!s||o===vT.Up&&!i;if(v&&h.x!==u.x){const e=n.scrollLeft+t.x,i=o===vT.Right&&e<=f.x||o===vT.Left&&e>=d.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:a});r.x=i?n.scrollLeft-e:o===vT.Right?n.scrollLeft-f.x:n.scrollLeft-d.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(m&&h.y!==u.y){const e=n.scrollTop+t.y,i=o===vT.Down&&e<=f.y||o===vT.Up&&e>=d.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:a});r.y=i?n.scrollTop-e:o===vT.Down?n.scrollTop-f.y:n.scrollTop-d.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,vA(mA(u,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function xT(e){return Boolean(e&&"distance"in e)}function ST(e){return Boolean(e&&"delay"in e)}wT.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=bT,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=i.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==o||o({event:e.nativeEvent}),!0)}return!1}}];class CT{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=tA(e);return e instanceof t?e:iA(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:i}=o;this.props=e,this.events=t,this.document=iA(i),this.documentListeners=new dT(this.document),this.listeners=new dT(n),this.windowListeners=new dT(tA(i)),this.initialCoordinates=null!=(r=bA(o))?r:MA,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(hT.Resize,this.handleCancel),this.windowListeners.add(hT.DragStart,mT),this.windowListeners.add(hT.VisibilityChange,this.handleCancel),this.windowListeners.add(hT.ContextMenu,mT),this.documentListeners.add(hT.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(ST(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay));if(xT(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(hT.Click,gT,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(hT.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:i,options:{activationConstraint:a}}=o;if(!r)return;const l=null!=(t=bA(e))?t:MA,c=mA(r,l);if(!n&&a){if(xT(a)){if(null!=a.tolerance&&pT(c,a.tolerance))return this.handleCancel();if(pT(c,a.distance))return this.handleStart()}return ST(a)&&pT(c,a.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),i(l)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===vT.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const kT={move:{name:"pointermove"},end:{name:"pointerup"}};class ET extends CT{constructor(e){const{event:t}=e,n=iA(t.target);super(e,kT,n)}}ET.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button)&&(null==r||r({event:n}),!0)}}];const OT={move:{name:"mousemove"},end:{name:"mouseup"}};var _T;!function(e){e[e.RightClick=2]="RightClick"}(_T||(_T={}));class jT extends CT{constructor(e){super(e,OT,iA(e.event.target))}}jT.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==_T.RightClick&&(null==r||r({event:n}),!0)}}];const $T={move:{name:"touchmove"},end:{name:"touchend"}};class NT extends CT{constructor(e){super(e,$T)}static setup(){return window.addEventListener($T.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener($T.move.name,e)};function e(){}}}var PT,IT;function MT(e){let{acceleration:n,activator:r=PT.Pointer,canScroll:o,draggingRect:i,enabled:a,interval:l=5,order:c=IT.TreeOrder,pointerCoordinates:s,scrollableAncestors:u,scrollableAncestorRects:f,delta:d,threshold:p}=e;const h=function(e){let{delta:t,disabled:n}=e;const r=fA(t);return sA((e=>{if(n||!r||!e)return RT;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[nT.Backward]:e.x[nT.Backward]||-1===o.x,[nT.Forward]:e.x[nT.Forward]||1===o.x},y:{[nT.Backward]:e.y[nT.Backward]||-1===o.y,[nT.Forward]:e.y[nT.Forward]||1===o.y}}}),[n,t,r])}({delta:d,disabled:!a}),[v,m]=function(){const e=(0,t.useRef)(null);return[(0,t.useCallback)(((t,n)=>{e.current=setInterval(t,n)}),[]),(0,t.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}(),g=(0,t.useRef)({x:0,y:0}),b=(0,t.useRef)({x:0,y:0}),y=(0,t.useMemo)((()=>{switch(r){case PT.Pointer:return s?{top:s.y,bottom:s.y,left:s.x,right:s.x}:null;case PT.DraggableRect:return i}}),[r,i,s]),w=(0,t.useRef)(null),x=(0,t.useCallback)((()=>{const e=w.current;if(!e)return;const t=g.current.x*b.current.x,n=g.current.y*b.current.y;e.scrollBy(t,n)}),[]),S=(0,t.useMemo)((()=>c===IT.TreeOrder?[...u].reverse():u),[c,u]);(0,t.useEffect)((()=>{if(a&&u.length&&y){for(const e of S){if(!1===(null==o?void 0:o(e)))continue;const t=u.indexOf(e),r=f[t];if(!r)continue;const{direction:i,speed:a}=aT(e,r,y,n,p);for(const e of["x","y"])h[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0)return m(),w.current=e,v(x,l),g.current=a,void(b.current=i)}g.current={x:0,y:0},b.current={x:0,y:0},m()}else m()}),[n,x,o,m,a,l,JSON.stringify(y),JSON.stringify(h),v,u,S,f,JSON.stringify(p)])}NT.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return!(o.length>1)&&(null==r||r({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(PT||(PT={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(IT||(IT={}));const RT={x:{[nT.Backward]:!1,[nT.Forward]:!1},y:{[nT.Backward]:!1,[nT.Forward]:!1}};var AT,TT;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(AT||(AT={})),function(e){e.Optimized="optimized"}(TT||(TT={}));const qT=new Map;function DT(e,t){return sA((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function LT(e){let{callback:n,disabled:r}=e;const o=lA(n),i=(0,t.useMemo)((()=>{if(r||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(o)}),[r]);return(0,t.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}function zT(e){return new fT(YA(e),e)}function BT(e,n,r){void 0===n&&(n=zT);const[o,i]=(0,t.useReducer)((function(t){if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=t?t:r)?o:null;const i=n(e);if(JSON.stringify(t)===JSON.stringify(i))return t;return i}),null),a=function(e){let{callback:n,disabled:r}=e;const o=lA(n),i=(0,t.useMemo)((()=>{if(r||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(o)}),[o,r]);return(0,t.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){i();break}}}}),l=LT({callback:i});return aA((()=>{i(),e?(null==l||l.observe(e),null==a||a.observe(document.body,{childList:!0,subtree:!0})):(null==l||l.disconnect(),null==a||a.disconnect())}),[e]),o}const FT=[];function HT(e,n){void 0===n&&(n=[]);const r=(0,t.useRef)(null);return(0,t.useEffect)((()=>{r.current=null}),n),(0,t.useEffect)((()=>{const t=e!==MA;t&&!r.current&&(r.current=e),!t&&r.current&&(r.current=null)}),[e]),r.current?mA(e,r.current):MA}function WT(e){return(0,t.useMemo)((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const VT=[];function UT(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return rA(t)?t:e}const GT=[{sensor:ET,options:{}},{sensor:wT,options:{}}],YT={current:{}},KT={draggable:{measure:KA},droppable:{measure:KA,strategy:AT.WhileDragging,frequency:TT.Optimized},dragOverlay:{measure:YA}};class XT extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const QT={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new XT,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:NA},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:KT,measureDroppableContainers:NA,windowRect:null,measuringScheduled:!1},ZT={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:NA,draggableNodes:new Map,over:null,measureDroppableContainers:NA},JT=(0,t.createContext)(ZT),eq=(0,t.createContext)(QT);function tq(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new XT}}}function nq(e,t){switch(t.type){case $A.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case $A.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case $A.DragEnd:case $A.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case $A.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new XT(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case $A.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new XT(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case $A.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new XT(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function rq(e){let{disabled:n}=e;const{active:r,activatorEvent:o,draggableNodes:i}=(0,t.useContext)(JT),a=fA(o),l=fA(null==r?void 0:r.id);return(0,t.useEffect)((()=>{if(!n&&!o&&a&&null!=l){if(!gA(a))return;if(document.activeElement===a.target)return;const e=i.get(l);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=xA(e);if(t){t.focus();break}}}))}}),[o,n,i,l,a]),null}function oq(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const iq=(0,t.createContext)({...MA,scaleX:1,scaleY:1});var aq;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(aq||(aq={}));const lq=(0,t.memo)((function(e){var n,r,o,i;let{id:a,accessibility:l,autoScroll:c=!0,children:s,sensors:u=GT,collisionDetection:f=FA,measuring:d,modifiers:p,...h}=e;const v=(0,t.useReducer)(nq,void 0,tq),[m,g]=v,[b,y]=function(){const[e]=(0,t.useState)((()=>new Set)),n=(0,t.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]),r=(0,t.useCallback)((t=>{let{type:n,event:r}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[e]);return[r,n]}(),[w,x]=(0,t.useState)(aq.Uninitialized),S=w===aq.Initialized,{draggable:{active:C,nodes:k,translate:O},droppable:{containers:_}}=m,j=C?k.get(C):null,$=(0,t.useRef)({initial:null,translated:null}),N=(0,t.useMemo)((()=>{var e;return null!=C?{id:C,data:null!=(e=null==j?void 0:j.data)?e:YT,rect:$}:null}),[C,j]),P=(0,t.useRef)(null),[I,M]=(0,t.useState)(null),[R,A]=(0,t.useState)(null),T=cA(h,Object.values(h)),q=pA("DndDescribedBy",a),D=(0,t.useMemo)((()=>_.getEnabled()),[_]),L=(z=d,(0,t.useMemo)((()=>({draggable:{...KT.draggable,...null==z?void 0:z.draggable},droppable:{...KT.droppable,...null==z?void 0:z.droppable},dragOverlay:{...KT.dragOverlay,...null==z?void 0:z.dragOverlay}})),[null==z?void 0:z.draggable,null==z?void 0:z.droppable,null==z?void 0:z.dragOverlay]));var z;const{droppableRects:B,measureDroppableContainers:F,measuringScheduled:H}=function(e,n){let{dragging:r,dependencies:o,config:i}=n;const[a,l]=(0,t.useState)(null),{frequency:c,measure:s,strategy:u}=i,f=(0,t.useRef)(e),d=function(){switch(u){case AT.Always:return!1;case AT.BeforeDragging:return r;default:return!r}}(),p=cA(d),h=(0,t.useCallback)((function(e){void 0===e&&(e=[]),p.current||l((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[p]),v=(0,t.useRef)(null),m=sA((t=>{if(d&&!r)return qT;if(!t||t===qT||f.current!==e||null!=a){const t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new fT(s(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t}),[e,a,r,d,s]);return(0,t.useEffect)((()=>{f.current=e}),[e]),(0,t.useEffect)((()=>{d||h()}),[r,d]),(0,t.useEffect)((()=>{a&&a.length>0&&l(null)}),[JSON.stringify(a)]),(0,t.useEffect)((()=>{d||"number"!=typeof c||null!==v.current||(v.current=setTimeout((()=>{h(),v.current=null}),c))}),[c,d,h,...o]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:null!=a}}(D,{dragging:S,dependencies:[O.x,O.y],config:L.droppable}),W=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return sA((e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(k,C),V=(0,t.useMemo)((()=>R?bA(R):null),[R]),U=function(){const e=!1===(null==I?void 0:I.autoScrollEnabled),t="object"==typeof c?!1===c.enabled:!1===c,n=S&&!e&&!t;if("object"==typeof c)return{...c,enabled:n};return{enabled:n}}(),G=function(e,t){return DT(e,t)}(W,L.draggable.measure);!function(e){let{activeNode:n,measure:r,initialRect:o,config:i=!0}=e;const a=(0,t.useRef)(!1),{x:l,y:c}="boolean"==typeof i?{x:i,y:i}:i;aA((()=>{if(!l&&!c||!n)return void(a.current=!1);if(a.current||!o)return;const e=null==n?void 0:n.node.current;if(!e||!1===e.isConnected)return;const t=HA(r(e),o);if(l||(t.x=0),c||(t.y=0),a.current=!0,Math.abs(t.x)>0||Math.abs(t.y)>0){const n=QA(e);n&&n.scrollBy({top:t.y,left:t.x})}}),[n,l,c,o,r])}({activeNode:C?k.get(C):null,config:U.layoutShiftCompensation,initialRect:G,measure:L.draggable.measure});const Y=BT(W,L.draggable.measure,G),K=BT(W?W.parentElement:null),X=(0,t.useRef)({activatorEvent:null,active:null,activeNode:W,collisionRect:null,collisions:null,droppableRects:B,draggableNodes:k,draggingNode:null,draggingNodeRect:null,droppableContainers:_,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Q=_.getNodeFor(null==(n=X.current.over)?void 0:n.id),Z=function(e){let{measure:n}=e;const[r,o]=(0,t.useState)(null),i=LT({callback:(0,t.useCallback)((e=>{for(const{target:t}of e)if(rA(t)){o((e=>{const r=n(t);return e?{...e,width:r.width,height:r.height}:r}));break}}),[n])}),a=(0,t.useCallback)((e=>{const t=UT(e);null==i||i.disconnect(),t&&(null==i||i.observe(t)),o(t?n(t):null)}),[n,i]),[l,c]=uA(a);return(0,t.useMemo)((()=>({nodeRef:l,rect:r,setRef:c})),[r,l,c])}({measure:L.dragOverlay.measure}),J=null!=(r=Z.nodeRef.current)?r:W,ee=S?null!=(o=Z.rect)?o:Y:null,te=Boolean(Z.nodeRef.current&&Z.rect),ne=HA(re=te?null:Y,DT(re));var re;const oe=WT(J?tA(J):null),ie=function(e){const n=(0,t.useRef)(e),r=sA((t=>e?t&&t!==FT&&e&&n.current&&e.parentNode===n.current.parentNode?t:XA(e):FT),[e]);return(0,t.useEffect)((()=>{n.current=e}),[e]),r}(S?null!=Q?Q:W:null),ae=function(e,n){void 0===n&&(n=YA);const[r]=e,o=WT(r?tA(r):null),[i,a]=(0,t.useReducer)((function(){return e.length?e.map((e=>rT(e)?o:new fT(n(e),e))):VT}),VT),l=LT({callback:a});return e.length>0&&i===VT&&a(),aA((()=>{e.length?e.forEach((e=>null==l?void 0:l.observe(e))):(null==l||l.disconnect(),a())}),[e]),i}(ie),le=oq(p,{transform:{x:O.x-ne.x,y:O.y-ne.y,scaleX:1,scaleY:1},activatorEvent:R,active:N,activeNodeRect:Y,containerNodeRect:K,draggingNodeRect:ee,over:X.current.over,overlayNodeRect:Z.rect,scrollableAncestors:ie,scrollableAncestorRects:ae,windowRect:oe}),ce=V?vA(V,O):null,se=function(e){const[n,r]=(0,t.useState)(null),o=(0,t.useRef)(e),i=(0,t.useCallback)((e=>{const t=ZA(e.target);t&&r((e=>e?(e.set(t,tT(t)),new Map(e)):null))}),[]);return(0,t.useEffect)((()=>{const t=o.current;if(e!==t){n(t);const a=e.map((e=>{const t=ZA(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,tT(t)]):null})).filter((e=>null!=e));r(a.length?new Map(a):null),o.current=e}return()=>{n(e),n(t)};function n(e){e.forEach((e=>{const t=ZA(e);null==t||t.removeEventListener("scroll",i)}))}}),[i,e]),(0,t.useMemo)((()=>e.length?n?Array.from(n.values()).reduce(((e,t)=>vA(e,t)),MA):cT(e):MA),[e,n])}(ie),ue=HT(se),fe=HT(se,[Y]),de=vA(le,ue),pe=ee?VA(ee,le):null,he=N&&pe?f({active:N,collisionRect:pe,droppableRects:B,droppableContainers:D,pointerCoordinates:ce}):null,ve=DA(he,"id"),[me,ge]=(0,t.useState)(null),be=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(te?le:vA(le,fe),null!=(i=null==me?void 0:me.rect)?i:null,Y),ye=(0,t.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==P.current)return;const o=k.get(P.current);if(!o)return;const i=e.nativeEvent,a=new n({active:P.current,activeNode:o,event:i,options:r,context:X,onStart(e){const t=P.current;if(null==t)return;const n=k.get(t);if(!n)return;const{onDragStart:r}=T.current,o={active:{id:t,data:n.data,rect:$}};(0,E.unstable_batchedUpdates)((()=>{null==r||r(o),x(aq.Initializing),g({type:$A.DragStart,initialCoordinates:e,active:t}),b({type:"onDragStart",event:o})}))},onMove(e){g({type:$A.DragMove,coordinates:e})},onEnd:l($A.DragEnd),onCancel:l($A.DragCancel)});function l(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:o}=X.current;let a=null;if(t&&o){const{cancelDrop:l}=T.current;if(a={activatorEvent:i,active:t,collisions:n,delta:o,over:r},e===$A.DragEnd&&"function"==typeof l){await Promise.resolve(l(a))&&(e=$A.DragCancel)}}P.current=null,(0,E.unstable_batchedUpdates)((()=>{g({type:e}),x(aq.Uninitialized),ge(null),M(null),A(null);const t=e===$A.DragEnd?"onDragEnd":"onDragCancel";if(a){const e=T.current[t];null==e||e(a),b({type:t,event:a})}}))}}(0,E.unstable_batchedUpdates)((()=>{M(a),A(e.nativeEvent)}))}),[k]),we=(0,t.useCallback)(((e,t)=>(n,r)=>{const o=n.nativeEvent,i=k.get(r);if(null!==P.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(n,t.options,a)&&(o.dndKit={capturedBy:t.sensor},P.current=r,ye(n,t))}),[k,ye]),xe=function(e,n){return(0,t.useMemo)((()=>e.reduce(((e,t)=>{const{sensor:r}=t;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:n(e.handler,t)})))]}),[])),[e,n])}(u,we);!function(e){(0,t.useEffect)((()=>{if(!ZR)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(u),aA((()=>{Y&&w===aq.Initializing&&x(aq.Initialized)}),[Y,w]),(0,t.useEffect)((()=>{const{onDragMove:e}=T.current,{active:t,activatorEvent:n,collisions:r,over:o}=X.current;if(!t||!n)return;const i={active:t,activatorEvent:n,collisions:r,delta:{x:de.x,y:de.y},over:o};(0,E.unstable_batchedUpdates)((()=>{null==e||e(i),b({type:"onDragMove",event:i})}))}),[de.x,de.y]),(0,t.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:o}=X.current;if(!e||null==P.current||!t||!o)return;const{onDragOver:i}=T.current,a=r.get(ve),l=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:o.x,y:o.y},over:l};(0,E.unstable_batchedUpdates)((()=>{ge(l),null==i||i(c),b({type:"onDragOver",event:c})}))}),[ve]),aA((()=>{X.current={activatorEvent:R,active:N,activeNode:W,collisionRect:pe,collisions:he,droppableRects:B,draggableNodes:k,draggingNode:J,draggingNodeRect:ee,droppableContainers:_,over:me,scrollableAncestors:ie,scrollAdjustedTranslate:de},$.current={initial:ee,translated:pe}}),[N,W,he,pe,k,J,ee,B,_,me,ie,de]),MT({...U,delta:O,draggingRect:pe,pointerCoordinates:ce,scrollableAncestors:ie,scrollableAncestorRects:ae});const Se=(0,t.useMemo)((()=>({active:N,activeNode:W,activeNodeRect:Y,activatorEvent:R,collisions:he,containerNodeRect:K,dragOverlay:Z,draggableNodes:k,droppableContainers:_,droppableRects:B,over:me,measureDroppableContainers:F,scrollableAncestors:ie,scrollableAncestorRects:ae,measuringConfiguration:L,measuringScheduled:H,windowRect:oe})),[N,W,Y,R,he,K,Z,k,_,B,me,F,ie,ae,L,H,oe]),Ce=(0,t.useMemo)((()=>({activatorEvent:R,activators:xe,active:N,activeNodeRect:Y,ariaDescribedById:{draggable:q},dispatch:g,draggableNodes:k,over:me,measureDroppableContainers:F})),[R,xe,N,Y,g,q,k,me,F]);return t.createElement(EA.Provider,{value:y},t.createElement(JT.Provider,{value:Ce},t.createElement(eq.Provider,{value:Se},t.createElement(iq.Provider,{value:be},s)),t.createElement(rq,{disabled:!1===(null==l?void 0:l.restoreFocus)})),t.createElement(jA,{...l,hiddenTextDescribedById:q}))})),cq=(0,t.createContext)(null),sq="button",uq="Droppable";function fq(e){let{id:n,data:r,disabled:o=!1,attributes:i}=e;const a=pA(uq),{activators:l,activatorEvent:c,active:s,activeNodeRect:u,ariaDescribedById:f,draggableNodes:d,over:p}=(0,t.useContext)(JT),{role:h=sq,roleDescription:v="draggable",tabIndex:m=0}=null!=i?i:{},g=(null==s?void 0:s.id)===n,b=(0,t.useContext)(g?iq:cq),[y,w]=uA(),[x,S]=uA(),C=function(e,n){return(0,t.useMemo)((()=>e.reduce(((e,t)=>{let{eventName:r,handler:o}=t;return e[r]=e=>{o(e,n)},e}),{})),[e,n])}(l,n),k=cA(r);aA((()=>(d.set(n,{id:n,key:a,node:y,activatorNode:x,data:k}),()=>{const e=d.get(n);e&&e.key===a&&d.delete(n)})),[d,n]);return{active:s,activatorEvent:c,activeNodeRect:u,attributes:(0,t.useMemo)((()=>({role:h,tabIndex:m,"aria-disabled":o,"aria-pressed":!(!g||h!==sq)||void 0,"aria-roledescription":v,"aria-describedby":f.draggable})),[o,h,m,g,v,f.draggable]),isDragging:g,listeners:o?void 0:C,node:y,over:p,setNodeRef:w,setActivatorNodeRef:S,transform:b}}function dq(){return(0,t.useContext)(eq)}const pq="Droppable",hq={timeout:25};function vq(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function mq(e,t){return e.reduce(((e,n,r)=>{const o=t.get(n);return o&&(e[r]=o),e}),Array(e.length))}function gq(e){return null!==e&&e>=0}const bq=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=vq(t,r,n),a=t[o],l=i[o];return l&&a?{x:l.left-a.left,y:l.top-a.top,scaleX:l.width/a.width,scaleY:l.height/a.height}:null},yq={scaleX:1,scaleY:1},wq=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:i,overIndex:a}=e;const l=null!=(t=i[n])?t:r;if(!l)return null;if(o===n){const e=i[a];return e?{x:0,y:n<a?e.top+e.height-(l.top+l.height):e.top-l.top,...yq}:null}const c=function(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];if(!r)return 0;if(n<t)return o?r.top-(o.top+o.height):i?i.top-(r.top+r.height):0;return i?i.top-(r.top+r.height):o?r.top-(o.top+o.height):0}(i,o,n);return o>n&&o<=a?{x:0,y:-l.height-c,...yq}:o<n&&o>=a?{x:0,y:l.height+c,...yq}:{x:0,y:0,...yq}};const xq="Sortable",Sq=t.createContext({activeIndex:-1,containerId:xq,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:bq,disabled:{draggable:!1,droppable:!1}});function Cq(e){let{children:n,id:r,items:o,strategy:i=bq,disabled:a=!1}=e;const{active:l,dragOverlay:c,droppableRects:s,over:u,measureDroppableContainers:f}=dq(),d=pA(xq,r),p=Boolean(null!==c.rect),h=(0,t.useMemo)((()=>o.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[o]),v=null!=l,m=l?h.indexOf(l.id):-1,g=u?h.indexOf(u.id):-1,b=(0,t.useRef)(h),y=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(h,b.current),w=-1!==g&&-1===m||y,x=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(a);aA((()=>{y&&v&&f(h)}),[y,h,v,f]),(0,t.useEffect)((()=>{b.current=h}),[h]);const S=(0,t.useMemo)((()=>({activeIndex:m,containerId:d,disabled:x,disableTransforms:w,items:h,overIndex:g,useDragOverlay:p,sortedRects:mq(h,s),strategy:i})),[m,d,x.draggable,x.droppable,w,h,g,s,p,i]);return t.createElement(Sq.Provider,{value:S},n)}const kq=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return vq(n,r,o).indexOf(t)},Eq=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:l,previousContainerId:c,transition:s}=e;return!(!s||!r)&&((l===i||o!==a)&&(!!n||a!==o&&t===c))},Oq={duration:200,easing:"ease"},_q="transform",jq=yA.Transition.toString({property:_q,duration:0,easing:"linear"}),$q={roleDescription:"sortable"};function Nq(e){let{animateLayoutChanges:n=Eq,attributes:r,disabled:o,data:i,getNewIndex:a=kq,id:l,strategy:c,resizeObserverConfig:s,transition:u=Oq}=e;const{items:f,containerId:d,activeIndex:p,disabled:h,disableTransforms:v,sortedRects:m,overIndex:g,useDragOverlay:b,strategy:y}=(0,t.useContext)(Sq),w=function(e,t){var n,r;if("boolean"==typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(o,h),x=f.indexOf(l),S=(0,t.useMemo)((()=>({sortable:{containerId:d,index:x,items:f},...i})),[d,i,x,f]),C=(0,t.useMemo)((()=>f.slice(f.indexOf(l))),[f,l]),{rect:k,node:E,isOver:O,setNodeRef:_}=function(e){let{data:n,disabled:r=!1,id:o,resizeObserverConfig:i}=e;const a=pA(pq),{active:l,dispatch:c,over:s,measureDroppableContainers:u}=(0,t.useContext)(JT),f=(0,t.useRef)({disabled:r}),d=(0,t.useRef)(!1),p=(0,t.useRef)(null),h=(0,t.useRef)(null),{disabled:v,updateMeasurementsFor:m,timeout:g}={...hq,...i},b=cA(null!=m?m:o),y=LT({callback:(0,t.useCallback)((()=>{d.current?(null!=h.current&&clearTimeout(h.current),h.current=setTimeout((()=>{u(Array.isArray(b.current)?b.current:[b.current]),h.current=null}),g)):d.current=!0}),[g]),disabled:v||!l}),w=(0,t.useCallback)(((e,t)=>{y&&(t&&(y.unobserve(t),d.current=!1),e&&y.observe(e))}),[y]),[x,S]=uA(w),C=cA(n);return(0,t.useEffect)((()=>{y&&x.current&&(y.disconnect(),d.current=!1,y.observe(x.current))}),[x,y]),aA((()=>(c({type:$A.RegisterDroppable,element:{id:o,key:a,disabled:r,node:x,rect:p,data:C}}),()=>c({type:$A.UnregisterDroppable,key:a,id:o}))),[o]),(0,t.useEffect)((()=>{r!==f.current.disabled&&(c({type:$A.SetDroppableDisabled,id:o,key:a,disabled:r}),f.current.disabled=r)}),[o,a,r,c]),{active:l,rect:p,isOver:(null==s?void 0:s.id)===o,node:x,over:s,setNodeRef:S}}({id:l,data:S,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:C,...s}}),{active:j,activatorEvent:$,activeNodeRect:N,attributes:P,setNodeRef:I,listeners:M,isDragging:R,over:A,setActivatorNodeRef:T,transform:q}=fq({id:l,data:S,attributes:{...$q,...r},disabled:w.draggable}),D=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0,t.useMemo)((()=>e=>{n.forEach((t=>t(e)))}),n)}(_,I),L=Boolean(j),z=L&&!v&&gq(p)&&gq(g),B=!b&&R,F=B&&z?q:null,H=z?null!=F?F:(null!=c?c:y)({rects:m,activeNodeRect:N,activeIndex:p,overIndex:g,index:x}):null,W=gq(p)&&gq(g)?a({id:l,items:f,activeIndex:p,overIndex:g}):x,V=null==j?void 0:j.id,U=(0,t.useRef)({activeId:V,items:f,newIndex:W,containerId:d}),G=f!==U.current.items,Y=n({active:j,containerId:d,isDragging:R,isSorting:L,id:l,index:x,items:f,newIndex:U.current.newIndex,previousItems:U.current.items,previousContainerId:U.current.containerId,transition:u,wasDragging:null!=U.current.activeId}),K=function(e){let{disabled:n,index:r,node:o,rect:i}=e;const[a,l]=(0,t.useState)(null),c=(0,t.useRef)(r);return aA((()=>{if(!n&&r!==c.current&&o.current){const e=i.current;if(e){const t=YA(o.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&l(n)}}r!==c.current&&(c.current=r)}),[n,r,o,i]),(0,t.useEffect)((()=>{a&&l(null)}),[a]),a}({disabled:!Y,index:x,node:E,rect:k});return(0,t.useEffect)((()=>{L&&U.current.newIndex!==W&&(U.current.newIndex=W),d!==U.current.containerId&&(U.current.containerId=d),f!==U.current.items&&(U.current.items=f)}),[L,W,d,f]),(0,t.useEffect)((()=>{if(V===U.current.activeId)return;if(V&&!U.current.activeId)return void(U.current.activeId=V);const e=setTimeout((()=>{U.current.activeId=V}),50);return()=>clearTimeout(e)}),[V]),{active:j,activeIndex:p,attributes:P,data:S,rect:k,index:x,newIndex:W,items:f,isOver:O,isSorting:L,isDragging:R,listeners:M,node:E,overIndex:g,over:A,setNodeRef:D,setActivatorNodeRef:T,setDroppableNodeRef:_,setDraggableNodeRef:I,transform:null!=K?K:H,transition:function(){if(K||G&&U.current.newIndex===x)return jq;if(B&&!gA($)||!u)return;if(L||Y)return yA.Transition.toString({...u,property:_q});return}()}}function Pq(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const Iq=[vT.Down,vT.Right,vT.Up,vT.Left],Mq=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:o,droppableContainers:i,over:a,scrollableAncestors:l}}=t;if(Iq.includes(e.code)){if(e.preventDefault(),!n||!r)return;const t=[];i.getEnabled().forEach((n=>{if(!n||null!=n&&n.disabled)return;const i=o.get(n.id);if(i)switch(e.code){case vT.Down:r.top<i.top&&t.push(n);break;case vT.Up:r.top>i.top&&t.push(n);break;case vT.Left:r.left>i.left&&t.push(n);break;case vT.Right:r.left<i.left&&t.push(n)}}));const c=(e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=qA(t),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=qA(r),a=o.reduce(((e,t,r)=>e+RA(n[r],t)),0),l=Number((a/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:l}})}}return i.sort(AA)})({active:n,collisionRect:r,droppableRects:o,droppableContainers:t,pointerCoordinates:null});let s=DA(c,"id");if(s===(null==a?void 0:a.id)&&c.length>1&&(s=c[1].id),null!=s){const e=i.get(n.id),t=i.get(s),a=t?o.get(t.id):null,c=null==t?void 0:t.node.current;if(c&&a&&e&&t){const n=XA(c).some(((e,t)=>l[t]!==e)),o=Rq(e,t),i=function(e,t){if(!Pq(e)||!Pq(t))return!1;if(!Rq(e,t))return!1;return e.data.current.sortable.index<t.data.current.sortable.index}(e,t),s=n||!o?{x:0,y:0}:{x:i?r.width-a.width:0,y:i?r.height-a.height:0},u={x:a.left,y:a.top};return s.x&&s.y?u:mA(u,s)}}}};function Rq(e,t){return!(!Pq(e)||!Pq(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}var Aq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},Tq=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:Aq}))};var qq=t.forwardRef(Tq),Dq=function(e){if(Z()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1};function Lq(e,t){return Array.isArray(e)||void 0===t?Dq(e):function(e,t){if(!Dq(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r}(e,t)}var zq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Bq={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},Fq=t.forwardRef(((e,n)=>{const{style:r,noStyle:o,disabled:i,tabIndex:a=0}=e,l=zq(e,["style","noStyle","disabled","tabIndex"]);let c={};return o||(c=Object.assign({},Bq)),i&&(c.pointerEvents="none"),c=Object.assign(Object.assign({},c),r),t.createElement("div",Object.assign({role:"button",tabIndex:a,ref:n},l,{onKeyDown:e=>{const{keyCode:t}=e;t===ll.ENTER&&e.preventDefault()},onKeyUp:t=>{const{keyCode:n}=t,{onClick:r}=e;n===ll.ENTER&&r&&r()},style:c}))}));var Hq=Fq,Wq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},Vq=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:Wq}))};var Uq=t.forwardRef(Vq);const Gq=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Yq=e=>{const t={};return[1,2,3,4,5].forEach((n=>{t[`\n h${n}&,\n div&-h${n},\n div&-h${n} > textarea,\n h${n}\n `]=((e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:i}=r;return{marginBottom:o,color:n,fontWeight:i,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)})),t},Kq=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Gq(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Xq=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Nr[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),Qq=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${Ue(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},Zq=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Jq=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},Yq(e)),{[`\n & + h1${t},\n & + h2${t},\n & + h3${t},\n & + h4${t},\n & + h5${t}\n `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),Xq(e)),Kq(e)),{[`\n ${t}-expand,\n ${t}-collapse,\n ${t}-edit,\n ${t}-copy\n `]:Object.assign(Object.assign({},Gq(e)),{marginInlineStart:e.marginXXS})}),Qq(e)),Zq(e)),{"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),{"&-rtl":{direction:"rtl"}})}};var eD=Jl("Typography",(e=>[Jq(e)]),(()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})));var tD=e=>{const{prefixCls:n,"aria-label":r,className:o,style:i,direction:a,maxLength:l,autoSize:c=!0,value:s,onSave:u,onCancel:f,onEnd:d,component:p,enterIcon:h=t.createElement(Uq,null)}=e,v=t.useRef(null),m=t.useRef(!1),g=t.useRef(),[b,y]=t.useState(s);t.useEffect((()=>{y(s)}),[s]),t.useEffect((()=>{var e;if(null===(e=v.current)||void 0===e?void 0:e.resizableTextArea){const{textArea:e}=v.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}}),[]);const w=()=>{u(b.trim())},x=p?`${n}-${p}`:"",[S,C,k]=eD(n),E=jo()(n,`${n}-edit-content`,{[`${n}-rtl`]:"rtl"===a},o,x,C,k);return S(t.createElement("div",{className:E,style:i},t.createElement(hb,{ref:v,maxLength:l,value:b,onChange:e=>{let{target:t}=e;y(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;m.current||(g.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:r,metaKey:o,shiftKey:i}=e;g.current!==t||m.current||n||r||o||i||(t===ll.ENTER?(w(),null==d||d()):t===ll.ESC&&f())},onCompositionStart:()=>{m.current=!0},onCompositionEnd:()=>{m.current=!1},onBlur:()=>{w()},"aria-label":r,rows:1,autoSize:c}),null!==h?Bc(h,{className:`${n}-edit-content-confirm`}):null))},nD=o(7965),rD=o.n(nD),oD=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,l)}c((r=r.apply(e,t||[])).next())}))};var iD=e=>{let{copyConfig:n,children:r}=e;const[o,i]=t.useState(!1),[a,l]=t.useState(!1),c=t.useRef(null),s=()=>{c.current&&clearTimeout(c.current)},u={};n.format&&(u.format=n.format),t.useEffect((()=>s),[]);return{copied:o,copyLoading:a,onClick:Xo((e=>oD(void 0,void 0,void 0,(function*(){var t;null==e||e.preventDefault(),null==e||e.stopPropagation(),l(!0);try{const o="function"==typeof n.text?yield n.text():n.text;rD()(o||String(r)||"",u),l(!1),i(!0),s(),c.current=setTimeout((()=>{i(!1)}),3e3),null===(t=n.onCopy)||void 0===t||t.call(n,e)}catch(e){throw l(!1),e}}))))}};function aD(e,n){return t.useMemo((()=>{const t=!!e;return[t,Object.assign(Object.assign({},n),t&&"object"==typeof e?e:null)]}),[e])}var lD=e=>{const n=(0,t.useRef)();return(0,t.useEffect)((()=>{n.current=e})),n.current};var cD=(e,n)=>{const r=t.useRef(!1);t.useEffect((()=>{r.current?e():r.current=!0}),n)},sD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const uD=t.forwardRef(((e,n)=>{const{prefixCls:r,component:o="article",className:i,rootClassName:a,setContentRef:l,children:c,direction:s,style:u}=e,f=sD(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:d,direction:p,typography:h}=t.useContext(F),v=null!=s?s:p;let m=n;l&&(m=Mo(n,l));const g=d("typography",r),[b,y,w]=eD(g),x=jo()(g,null==h?void 0:h.className,{[`${g}-rtl`]:"rtl"===v},i,a,y,w),S=Object.assign(Object.assign({},null==h?void 0:h.style),u);return b(t.createElement(o,Object.assign({className:x,style:S,ref:m},f),c))}));var fD=uD,dD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},pD=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:dD}))};var hD=t.forwardRef(pD);function vD(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}function mD(e,t,n){return!0===e||void 0===e?t:e||n&&t}var gD=e=>{const{prefixCls:n,copied:r,locale:o,iconOnly:i,tooltips:a,icon:l,loading:c,tabIndex:s,onCopy:u}=e,f=vD(a),d=vD(l),{copied:p,copy:h}=null!=o?o:{},v=r?mD(f[1],p):mD(f[0],h),m="string"==typeof v?v:r?p:h;return t.createElement(rh,{key:"copy",title:v},t.createElement(Hq,{className:jo()(`${n}-copy`,{[`${n}-copy-success`]:r,[`${n}-copy-icon-only`]:i}),onClick:u,"aria-label":m,tabIndex:s},r?mD(d[1],t.createElement(px,null),!0):mD(d[0],c?t.createElement(il,null):t.createElement(hD,null),!0)))};const bD=t.forwardRef(((e,n)=>{let{style:r,children:o}=e;const i=t.useRef(null);return t.useImperativeHandle(n,(()=>({isExceed:()=>{const e=i.current;return e.scrollHeight>e.clientHeight},getHeight:()=>i.current.clientHeight}))),t.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},r)},o)}));function yD(e){const t=typeof e;return"string"===t||"number"===t}function wD(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const i=e[o],a=n+(yD(i)?String(i).length:1);if(a>t){const e=t-n;return r.push(String(i).slice(0,e)),r}r.push(i),n=a}return e}const xD={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function SD(e){const{enableMeasure:n,width:r,text:o,children:i,rows:a,expanded:l,miscDeps:c,onEllipsis:s}=e,u=t.useMemo((()=>Zc(o)),[o]),f=t.useMemo((()=>function(e){let t=0;return e.forEach((e=>{yD(e)?t+=String(e).length:t+=1})),t}(u)),[o]),d=t.useMemo((()=>i(u,!1)),[o]),[p,h]=t.useState(null),v=t.useRef(null),m=t.useRef(null),g=t.useRef(null),b=t.useRef(null),y=t.useRef(null),[w,x]=t.useState(!1),[S,C]=t.useState(0),[k,E]=t.useState(0),[O,_]=t.useState(null);et((()=>{C(n&&r&&f?1:0)}),[r,o,a,n,u]),et((()=>{var e,t,n,r;if(1===S){C(2);const e=m.current&&getComputedStyle(m.current).whiteSpace;_(e)}else if(2===S){const o=!!(null===(e=g.current)||void 0===e?void 0:e.isExceed());C(o?3:4),h(o?[0,f]:null),x(o);const i=(null===(t=g.current)||void 0===t?void 0:t.getHeight())||0,l=(1===a?0:(null===(n=b.current)||void 0===n?void 0:n.getHeight())||0)+((null===(r=y.current)||void 0===r?void 0:r.getHeight())||0),c=Math.max(i,l);E(c+1),s(o)}}),[S]);const j=p?Math.ceil((p[0]+p[1])/2):0;et((()=>{var e;const[t,n]=p||[0,0];if(t!==n){const r=((null===(e=v.current)||void 0===e?void 0:e.getHeight())||0)>k;let o=j;n-t==1&&(o=r?t:n),h(r?[t,o]:[o,n])}}),[p,j]);const $=t.useMemo((()=>{if(3!==S||!p||p[0]!==p[1]){const e=i(u,!1);return 4!==S&&0!==S?t.createElement("span",{style:Object.assign(Object.assign({},xD),{WebkitLineClamp:a})},e):e}return i(l?u:wD(u,p[0]),w)}),[l,S,p,u].concat(X(c))),N={width:r,margin:0,padding:0,whiteSpace:"nowrap"===O?"normal":"inherit"};return t.createElement(t.Fragment,null,$,2===S&&t.createElement(t.Fragment,null,t.createElement(bD,{style:Object.assign(Object.assign(Object.assign({},N),xD),{WebkitLineClamp:a}),ref:g},d),t.createElement(bD,{style:Object.assign(Object.assign(Object.assign({},N),xD),{WebkitLineClamp:a-1}),ref:b},d),t.createElement(bD,{style:Object.assign(Object.assign(Object.assign({},N),xD),{WebkitLineClamp:1}),ref:y},i([],!0))),3===S&&p&&p[0]!==p[1]&&t.createElement(bD,{style:Object.assign(Object.assign({},N),{top:400}),ref:v},i(wD(u,j),!0)),1===S&&t.createElement("span",{style:{whiteSpace:"inherit"},ref:m}))}var CD=e=>{let{enableEllipsis:n,isEllipsis:r,children:o,tooltipProps:i}=e;return(null==i?void 0:i.title)&&n?t.createElement(rh,Object.assign({open:!!r&&void 0},i),o):o},kD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ED=t.forwardRef(((e,n)=>{var r,o,i;const{prefixCls:a,className:l,style:c,type:s,disabled:u,children:f,ellipsis:d,editable:p,copyable:h,component:v,title:m}=e,g=kD(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:b,direction:y}=t.useContext(F),[w]=oh("Text"),x=t.useRef(null),S=t.useRef(null),C=b("typography",a),k=qc(g,["mark","code","delete","underline","strong","keyboard","italic"]),[E,O]=aD(p),[_,j]=Jo(!1,{value:O.editing}),{triggerType:$=["icon"]}=O,N=e=>{var t;e&&(null===(t=O.onStart)||void 0===t||t.call(O)),j(e)},P=lD(_);cD((()=>{var e;!_&&P&&(null===(e=S.current)||void 0===e||e.focus())}),[_]);const I=e=>{null==e||e.preventDefault(),N(!0)},M=e=>{var t;null===(t=O.onChange)||void 0===t||t.call(O,e),N(!1)},R=()=>{var e;null===(e=O.onCancel)||void 0===e||e.call(O),N(!1)},[A,T]=aD(h),{copied:q,copyLoading:D,onClick:L}=iD({copyConfig:T,children:f}),[z,B]=t.useState(!1),[H,W]=t.useState(!1),[V,U]=t.useState(!1),[G,Y]=t.useState(!1),[K,X]=t.useState(!0),[Q,Z]=aD(d,{expandable:!1,symbol:e=>e?null==w?void 0:w.collapse:null==w?void 0:w.expand}),[J,ee]=Jo(Z.defaultExpanded||!1,{value:Z.expanded}),te=Q&&(!J||"collapsible"===Z.expandable),{rows:ne=1}=Z,re=t.useMemo((()=>te&&(void 0!==Z.suffix||Z.onEllipsis||Z.expandable||E||A)),[te,Z,E,A]);et((()=>{Q&&!re&&(B(Lq("webkitLineClamp")),W(Lq("textOverflow")))}),[re,Q]);const[oe,ie]=t.useState(te),ae=t.useMemo((()=>!re&&(1===ne?H:z)),[re,H,z]);et((()=>{ie(ae&&te)}),[ae,te]);const le=te&&(oe?G:V),ce=te&&1===ne&&oe,se=te&&ne>1&&oe,[ue,fe]=t.useState(0),de=e=>{var t;U(e),V!==e&&(null===(t=Z.onEllipsis)||void 0===t||t.call(Z,e))};t.useEffect((()=>{const e=x.current;if(Q&&oe&&e){const[t,n]=function(e){const t=e.getBoundingClientRect(),{offsetWidth:n,offsetHeight:r}=e;let o=n,i=r;return Math.abs(n-t.width)<1&&Math.abs(r-t.height)<1&&(o=t.width,i=t.height),[o,i]}(e),r=se?n<e.scrollHeight:t<e.scrollWidth;G!==r&&Y(r)}}),[Q,oe,f,se,K,ue]),t.useEffect((()=>{const e=x.current;if("undefined"==typeof IntersectionObserver||!e||!oe||!te)return;const t=new IntersectionObserver((()=>{X(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[oe,te]);let pe={};pe=!0===Z.tooltip?{title:null!==(r=O.text)&&void 0!==r?r:f}:t.isValidElement(Z.tooltip)?{title:Z.tooltip}:"object"==typeof Z.tooltip?Object.assign({title:null!==(o=O.text)&&void 0!==o?o:f},Z.tooltip):{title:Z.tooltip};const he=t.useMemo((()=>{const e=e=>["string","number"].includes(typeof e);if(Q&&!oe)return e(O.text)?O.text:e(f)?f:e(m)?m:e(pe.title)?pe.title:void 0}),[Q,oe,m,pe.title,le]);if(_)return t.createElement(tD,{value:null!==(i=O.text)&&void 0!==i?i:"string"==typeof f?f:"",onSave:M,onCancel:R,onEnd:O.onEnd,prefixCls:C,className:l,style:c,direction:y,component:v,maxLength:O.maxLength,autoSize:O.autoSize,enterIcon:O.enterIcon});const ve=()=>{const{expandable:e,symbol:n}=Z;return e?J&&"collapsible"!==e?null:t.createElement(Hq,{key:"expand",className:`${C}-${J?"collapse":"expand"}`,onClick:e=>((e,t)=>{var n;ee(t.expanded),null===(n=Z.onExpand)||void 0===n||n.call(Z,e,t)})(e,{expanded:!J}),"aria-label":J?w.collapse:null==w?void 0:w.expand},"function"==typeof n?n(J):n):null},me=()=>{if(!E)return;const{icon:e,tooltip:n,tabIndex:r}=O,o=Zc(n)[0]||(null==w?void 0:w.edit),i="string"==typeof o?o:"";return $.includes("icon")?t.createElement(rh,{key:"edit",title:!1===n?"":o},t.createElement(Hq,{ref:S,className:`${C}-edit`,onClick:I,"aria-label":i,tabIndex:r},e||t.createElement(qq,{role:"button"}))):null},ge=e=>[e&&ve(),me(),A?t.createElement(gD,Object.assign({key:"copy"},T,{prefixCls:C,copied:q,locale:w,onCopy:L,loading:D,iconOnly:null==f})):null];return t.createElement(Ju,{onResize:e=>{let{offsetWidth:t}=e;fe(t)},disabled:!te},(r=>t.createElement(CD,{tooltipProps:pe,enableEllipsis:te,isEllipsis:le},t.createElement(fD,Object.assign({className:jo()({[`${C}-${s}`]:s,[`${C}-disabled`]:u,[`${C}-ellipsis`]:Q,[`${C}-ellipsis-single-line`]:ce,[`${C}-ellipsis-multiple-line`]:se},l),prefixCls:a,style:Object.assign(Object.assign({},c),{WebkitLineClamp:se?ne:void 0}),component:v,ref:Mo(r,x,n),direction:y,onClick:$.includes("text")?I:void 0,"aria-label":null==he?void 0:he.toString(),title:m},k),t.createElement(SD,{enableMeasure:te&&!oe,text:f,rows:ne,width:ue,onEllipsis:de,expanded:J,miscDeps:[q,J,D,E,A]},((n,r)=>function(e,n){let{mark:r,code:o,underline:i,delete:a,strong:l,keyboard:c,italic:s}=e,u=n;function f(e,n){n&&(u=t.createElement(e,{},u))}return f("strong",l),f("u",i),f("del",a),f("code",o),f("mark",r),f("kbd",c),f("i",s),u}(e,t.createElement(t.Fragment,null,n.length>0&&r&&!J&&he?t.createElement("span",{key:"show-content","aria-hidden":!0},n):n,(e=>[e&&!J&&t.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),Z.suffix,ge(e)])(r)))))))))}));var OD=ED,_D=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var jD=t.forwardRef(((e,n)=>{var{ellipsis:r,rel:o}=e,i=_D(e,["ellipsis","rel"]);const a=Object.assign(Object.assign({},i),{rel:void 0===o&&"_blank"===i.target?"noopener noreferrer":o});return delete a.navigate,t.createElement(OD,Object.assign({},a,{ref:n,ellipsis:!!r,component:"a"}))}));var $D=t.forwardRef(((e,n)=>t.createElement(OD,Object.assign({ref:n},e,{component:"div"})))),ND=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const PD=(e,n)=>{var{ellipsis:r}=e,o=ND(e,["ellipsis"]);const i=t.useMemo((()=>r&&"object"==typeof r?qc(r,["expandable","rows"]):r),[r]);return t.createElement(OD,Object.assign({ref:n},o,{ellipsis:i,component:"span"}))};var ID=t.forwardRef(PD),MD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const RD=[1,2,3,4,5];var AD=t.forwardRef(((e,n)=>{const{level:r=1}=e,o=MD(e,["level"]);let i;return i=RD.includes(r)?`h${r}`:"h1",t.createElement(OD,Object.assign({ref:n},o,{component:i}))}));const TD=fD;TD.Text=ID,TD.Link=jD,TD.Title=AD,TD.Paragraph=$D;var qD=TD,DD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},LD=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:DD}))};var zD=t.forwardRef(LD),BD=(0,t.createContext)(null),FD=function(e){var n=e.activeTabOffset,r=e.horizontal,o=e.rtl,i=e.indicator,a=void 0===i?{}:i,l=a.size,c=a.align,s=void 0===c?"center":c,u=Y((0,t.useState)(),2),f=u[0],d=u[1],p=(0,t.useRef)(),h=t.useCallback((function(e){return"function"==typeof l?l(e):"number"==typeof l?l:e}),[l]);function v(){Ni.cancel(p.current)}return(0,t.useEffect)((function(){var e={};if(n)if(r){e.width=h(n.width);var t=o?"right":"left";"start"===s&&(e[t]=n[t]),"center"===s&&(e[t]=n[t]+n.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===s&&(e[t]=n[t]+n.width,e.transform="translateX(-100%)")}else e.height=h(n.height),"start"===s&&(e.top=n.top),"center"===s&&(e.top=n.top+n.height/2,e.transform="translateY(-50%)"),"end"===s&&(e.top=n.top+n.height,e.transform="translateY(-100%)");return v(),p.current=Ni((function(){d(e)})),v}),[n,r,o,s,h]),{style:f}},HD={width:0,height:0,left:0,top:0};function WD(e,n){var r=t.useRef(e),o=Y(t.useState({}),2)[1];return[r.current,function(e){var t="function"==typeof e?e(r.current):e;t!==r.current&&n(t,r.current),r.current=t,o({})}]}var VD=Math.pow(.995,20);function UD(e){var n=Y((0,t.useState)(0),2),r=n[0],o=n[1],i=(0,t.useRef)(0),a=(0,t.useRef)();return a.current=e,Je((function(){var e;null===(e=a.current)||void 0===e||e.call(a)}),[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}var GD={width:0,height:0,left:0,top:0,right:0};function YD(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function KD(e){return String(e).replace(/"/g,"TABS_DQ")}function XD(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var QD=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.editable,i=e.locale,a=e.style;return o&&!1!==o.showAdd?t.createElement("button",{ref:n,type:"button",className:"".concat(r,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null})),ZD=QD,JD=t.forwardRef((function(e,n){var r,o=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var l={};return"object"!==m(a)||t.isValidElement(a)?l.right=a:l=a,"right"===o&&(r=l.right),"left"===o&&(r=l.left),r?t.createElement("div",{className:"".concat(i,"-extra-content"),ref:n},r):null}));var eL=JD,tL=ll.ESC,nL=ll.TAB;var rL=(0,t.forwardRef)((function(e,n){var r=e.overlay,o=e.arrow,i=e.prefixCls,a=(0,t.useMemo)((function(){return"function"==typeof r?r():r}),[r]),l=Mo(n,null==a?void 0:a.ref);return t.createElement(t.Fragment,null,o&&t.createElement("div",{className:"".concat(i,"-arrow")}),t.cloneElement(a,{ref:Ao(a)?l:void 0}))})),oL={adjustX:1,adjustY:1},iL=[0,0],aL={topLeft:{points:["bl","tl"],overflow:oL,offset:[0,-4],targetOffset:iL},top:{points:["bc","tc"],overflow:oL,offset:[0,-4],targetOffset:iL},topRight:{points:["br","tr"],overflow:oL,offset:[0,-4],targetOffset:iL},bottomLeft:{points:["tl","bl"],overflow:oL,offset:[0,4],targetOffset:iL},bottom:{points:["tc","bc"],overflow:oL,offset:[0,4],targetOffset:iL},bottomRight:{points:["tr","br"],overflow:oL,offset:[0,4],targetOffset:iL}},lL=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function cL(e,n){var r,o=e.arrow,i=void 0!==o&&o,a=e.prefixCls,l=void 0===a?"rc-dropdown":a,c=e.transitionName,s=e.animation,u=e.align,f=e.placement,d=void 0===f?"bottomLeft":f,p=e.placements,h=void 0===p?aL:p,v=e.getPopupContainer,m=e.showAction,g=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,w=e.visible,S=e.trigger,C=void 0===S?["hover"]:S,k=e.autoFocus,E=e.overlay,O=e.children,_=e.onVisibleChange,j=qo(e,lL),$=Y(t.useState(),2),N=$[0],P=$[1],I="visible"in e?w:N,M=t.useRef(null),R=t.useRef(null),A=t.useRef(null);t.useImperativeHandle(n,(function(){return M.current}));var T=function(e){P(e),null==_||_(e)};!function(e){var n=e.visible,r=e.triggerRef,o=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,l=t.useRef(!1),c=function(){var e,t;n&&(null===(e=r.current)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e),null==o||o(!1))},s=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus||(a.current.focus(),l.current=!0,0))},u=function(e){switch(e.keyCode){case tL:c();break;case nL:var t=!1;l.current||(t=s()),t?e.preventDefault():c()}};t.useEffect((function(){return n?(window.addEventListener("keydown",u),i&&Ni(s,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}}),[n])}({visible:I,triggerRef:A,onVisibleChange:T,autoFocus:k,overlayRef:R});var q,D,L,z=function(){return t.createElement(rL,{ref:R,overlay:E,prefixCls:l,arrow:i})},B=t.cloneElement(O,{className:jo()(null===(r=O.props)||void 0===r?void 0:r.className,I&&(q=e.openClassName,void 0!==q?q:"".concat(l,"-open"))),ref:Ao(O)?Mo(A,O.ref):void 0}),F=g;return F||-1===C.indexOf("contextMenu")||(F=["click"]),t.createElement(jf,ht({builtinPlacements:h},j,{prefixCls:l,ref:M,popupClassName:jo()(b,x({},"".concat(l,"-show-arrow"),i)),popupStyle:y,action:C,showAction:m,hideAction:F,popupPlacement:d,popupAlign:u,popupTransitionName:c,popupAnimation:s,popupVisible:I,stretch:(D=e.minOverlayWidthMatchTrigger,L=e.alignPoint,("minOverlayWidthMatchTrigger"in e?D:!L)?"minWidth":""),popup:"function"==typeof E?z:z(),onPopupVisibleChange:T,onPopupClick:function(t){var n=e.onOverlayClick;P(!1),n&&n(t)},getPopupContainer:v}),B)}var sL=t.forwardRef(cL),uL=t.createContext(null);function fL(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function dL(e){return fL(t.useContext(uL),e)}var pL=["children","locked"],hL=t.createContext(null);function vL(e){var n=e.children,r=e.locked,o=qo(e,pL),i=t.useContext(hL),a=fe((function(){return e=o,t=C({},i),Object.keys(e).forEach((function(n){var r=e[n];void 0!==r&&(t[n]=r)})),t;var e,t}),[i,o],(function(e,t){return!(r||e[0]===t[0]&&we(e[1],t[1],!0))}));return t.createElement(hL.Provider,{value:a},n)}var mL=[],gL=t.createContext(null);function bL(){return t.useContext(gL)}var yL=t.createContext(mL);function wL(e){var n=t.useContext(yL);return t.useMemo((function(){return void 0!==e?[].concat(X(n),[e]):n}),[n,e])}var xL=t.createContext(null),SL=t.createContext({});function CL(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Dc(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function kL(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=X(e.querySelectorAll("*")).filter((function(e){return CL(e,t)}));return CL(e,t)&&n.unshift(e),n}var EL=ll.LEFT,OL=ll.RIGHT,_L=ll.UP,jL=ll.DOWN,$L=ll.ENTER,NL=ll.ESC,PL=ll.HOME,IL=ll.END,ML=[_L,jL,EL,OL];function RL(e,t){return kL(e,!0).filter((function(e){return t.has(e)}))}function AL(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=RL(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var TL=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(fL(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};function qL(e,n,r,o,i,a,l,c,s,u){var f=t.useRef(),d=t.useRef();d.current=n;var p=function(){Ni.cancel(f.current)};return t.useEffect((function(){return function(){p()}}),[]),function(t){var h=t.which;if([].concat(ML,[$L,NL,PL,IL]).includes(h)){var v=a(),m=TL(v,o),g=m,b=g.elements,y=g.key2element,w=g.element2key,S=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(n),b),C=w.get(S),k=function(e,t,n,r){var o,i,a,l,c="prev",s="next",u="children",f="parent";if("inline"===e&&r===$L)return{inlineTrigger:!0};var d=(x(o={},_L,c),x(o,jL,s),o),p=(x(i={},EL,n?s:c),x(i,OL,n?c:s),x(i,jL,u),x(i,$L,u),i),h=(x(a={},_L,c),x(a,jL,s),x(a,$L,u),x(a,NL,f),x(a,EL,n?u:f),x(a,OL,n?f:u),a);switch(null===(l={inline:d,horizontal:p,vertical:h,inlineSub:d,horizontalSub:h,verticalSub:h}["".concat(e).concat(t?"":"Sub")])||void 0===l?void 0:l[r]){case c:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}(e,1===l(C,!0).length,r,h);if(!k&&h!==PL&&h!==IL)return;(ML.includes(h)||[PL,IL].includes(h))&&t.preventDefault();var E=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=w.get(e);c(r),p(),f.current=Ni((function(){d.current===r&&t.focus()}))}};if([PL,IL].includes(h)||k.sibling||!S){var O,_,j=RL(O=S&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(S):i.current,b);_=h===PL?j[0]:h===IL?j[j.length-1]:AL(O,b,S,k.offset),E(_)}else if(k.inlineTrigger)s(C);else if(k.offset>0)s(C,!0),p(),f.current=Ni((function(){m=TL(v,o);var e=S.getAttribute("aria-controls"),t=AL(document.getElementById(e),m.elements);E(t)}),5);else if(k.offset<0){var $=l(C,!0),N=$[$.length-2],P=y.get(N);s(N,!1),E(P)}}null==u||u(t)}}var DL="__RC_UTIL_PATH_SPLIT__",LL=function(e){return e.join(DL)},zL="rc-menu-more";function BL(){var e=Y(t.useState({}),2)[1],n=(0,t.useRef)(new Map),r=(0,t.useRef)(new Map),o=Y(t.useState([]),2),i=o[0],a=o[1],l=(0,t.useRef)(0),c=(0,t.useRef)(!1),s=(0,t.useCallback)((function(t,o){var i=LL(o);r.current.set(i,t),n.current.set(t,i),l.current+=1;var a,s=l.current;a=function(){s===l.current&&(c.current||e({}))},Promise.resolve().then(a)}),[]),u=(0,t.useCallback)((function(e,t){var o=LL(t);r.current.delete(o),n.current.delete(e)}),[]),f=(0,t.useCallback)((function(e){a(e)}),[]),d=(0,t.useCallback)((function(e,t){var r=n.current.get(e)||"",o=r.split(DL);return t&&i.includes(o[0])&&o.unshift(zL),o}),[i]),p=(0,t.useCallback)((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return d(e,!0).includes(t)}))}),[d]),h=(0,t.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(DL),o=new Set;return X(r.current.keys()).forEach((function(e){e.startsWith(t)&&o.add(r.current.get(e))})),o}),[]);return t.useEffect((function(){return function(){c.current=!0}}),[]),{registerPath:s,unregisterPath:u,refreshOverflowKeys:f,isSubPathKey:p,getKeyPath:d,getKeys:function(){var e=X(n.current.keys());return i.length&&e.push(zL),e},getSubPathKeys:h}}function FL(e){var n=t.useRef(e);n.current=e;var r=t.useCallback((function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(r))}),[]);return e?r:void 0}var HL=Math.random().toFixed(5).toString().slice(2),WL=0;function VL(e,n,r,o){var i=t.useContext(hL),a=i.activeKey,l=i.onActive,c=i.onInactive,s={active:a===e};return n||(s.onMouseEnter=function(t){null==r||r({key:e,domEvent:t}),l(e)},s.onMouseLeave=function(t){null==o||o({key:e,domEvent:t}),c(e)}),s}function UL(e){var n=t.useContext(hL),r=n.mode,o=n.rtl,i=n.inlineIndent;if("inline"!==r)return null;return o?{paddingRight:e*i}:{paddingLeft:e*i}}function GL(e){var n,r=e.icon,o=e.props,i=e.children;return null===r||!1===r?null:("function"==typeof r?n=t.createElement(r,C({},o)):"boolean"!=typeof r&&(n=r),n||i||null)}var YL=["item"];function KL(e){var t=e.item,n=qo(e,YL);return Object.defineProperty(n,"item",{get:function(){return ye(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var XL=["title","attribute","elementRef"],QL=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],ZL=["active"],JL=function(e){Fo(r,e);var n=Go(r);function r(){return xe(this,r),n.apply(this,arguments)}return Ce(r,[{key:"render",value:function(){var e=this.props,n=e.title,r=e.attribute,o=e.elementRef,i=qc(qo(e,XL),["eventKey","popupClassName","popupOffset","onTitleClick"]);return ye(!r,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),t.createElement(Qb.Item,ht({},r,{title:"string"==typeof n?n:void 0},i,{ref:o}))}}]),r}(t.Component),ez=t.forwardRef((function(e,n){var r,o=e.style,i=e.className,a=e.eventKey,l=(e.warnKey,e.disabled),c=e.itemIcon,s=e.children,u=e.role,f=e.onMouseEnter,d=e.onMouseLeave,p=e.onClick,h=e.onKeyDown,v=e.onFocus,m=qo(e,QL),g=dL(a),b=t.useContext(hL),y=b.prefixCls,w=b.onItemClick,S=b.disabled,k=b.overflowDisabled,E=b.itemIcon,O=b.selectedKeys,_=b.onActive,j=t.useContext(SL)._internalRenderMenuItem,$="".concat(y,"-item"),N=t.useRef(),P=t.useRef(),I=S||l,M=Ro(n,P),R=wL(a);var A=function(e){return{key:a,keyPath:X(R).reverse(),item:N.current,domEvent:e}},T=c||E,q=VL(a,I,f,d),D=q.active,L=qo(q,ZL),z=O.includes(a),B=UL(R.length),F={};"option"===e.role&&(F["aria-selected"]=z);var H=t.createElement(JL,ht({ref:N,elementRef:M,role:null===u?"none":u||"menuitem",tabIndex:l?null:-1,"data-menu-id":k&&g?null:g},m,L,F,{component:"li","aria-disabled":l,style:C(C({},B),o),className:jo()($,(r={},x(r,"".concat($,"-active"),D),x(r,"".concat($,"-selected"),z),x(r,"".concat($,"-disabled"),I),r),i),onClick:function(e){if(!I){var t=A(e);null==p||p(KL(t)),w(t)}},onKeyDown:function(e){if(null==h||h(e),e.which===ll.ENTER){var t=A(e);null==p||p(KL(t)),w(t)}},onFocus:function(e){_(a),null==v||v(e)}}),s,t.createElement(GL,{props:C(C({},e),{},{isSelected:z}),icon:T}));return j&&(H=j(H,e,{selected:z})),H}));function tz(e,n){var r=e.eventKey,o=bL(),i=wL(r);return t.useEffect((function(){if(o)return o.registerPath(r,i),function(){o.unregisterPath(r,i)}}),[i]),o?null:t.createElement(ez,ht({},e,{ref:n}))}var nz=t.forwardRef(tz),rz=["className","children"],oz=function(e,n){var r=e.className,o=e.children,i=qo(e,rz),a=t.useContext(hL),l=a.prefixCls,c=a.mode,s=a.rtl;return t.createElement("ul",ht({className:jo()(l,s&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat("inline"===c?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},iz=t.forwardRef(oz);iz.displayName="SubMenuList";var az=iz;function lz(e,n){return Zc(e).map((function(e,r){if(t.isValidElement(e)){var o,i,a=e.key,l=null!==(o=null===(i=e.props)||void 0===i?void 0:i.eventKey)&&void 0!==o?o:a;null==l&&(l="tmp_key-".concat([].concat(X(n),[r]).join("-")));var c={key:l,eventKey:l};return t.cloneElement(e,c)}return e}))}var cz={adjustX:1,adjustY:1},sz={topLeft:{points:["bl","tl"],overflow:cz},topRight:{points:["br","tr"],overflow:cz},bottomLeft:{points:["tl","bl"],overflow:cz},bottomRight:{points:["tr","br"],overflow:cz},leftTop:{points:["tr","tl"],overflow:cz},leftBottom:{points:["br","bl"],overflow:cz},rightTop:{points:["tl","tr"],overflow:cz},rightBottom:{points:["bl","br"],overflow:cz}},uz={topLeft:{points:["bl","tl"],overflow:cz},topRight:{points:["br","tr"],overflow:cz},bottomLeft:{points:["tl","bl"],overflow:cz},bottomRight:{points:["tr","br"],overflow:cz},rightTop:{points:["tr","tl"],overflow:cz},rightBottom:{points:["br","bl"],overflow:cz},leftTop:{points:["tl","tr"],overflow:cz},leftBottom:{points:["bl","br"],overflow:cz}};function fz(e,t,n){return t||(n?n[e]||n.other:void 0)}var dz={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function pz(e){var n=e.prefixCls,r=e.visible,o=e.children,i=e.popup,a=e.popupStyle,l=e.popupClassName,c=e.popupOffset,s=e.disabled,u=e.mode,f=e.onVisibleChange,d=t.useContext(hL),p=d.getPopupContainer,h=d.rtl,v=d.subMenuOpenDelay,m=d.subMenuCloseDelay,g=d.builtinPlacements,b=d.triggerSubMenuAction,y=d.forceSubMenuRender,w=d.rootClassName,S=d.motion,k=d.defaultMotions,E=Y(t.useState(!1),2),O=E[0],_=E[1],j=C(C({},h?uz:sz),g),$=dz[u],N=fz(u,S,k),P=t.useRef(N);"inline"!==u&&(P.current=N);var I=C(C({},P.current),{},{leavedClassName:"".concat(n,"-hidden"),removeOnLeave:!1,motionAppear:!0}),M=t.useRef();return t.useEffect((function(){return M.current=Ni((function(){_(r)})),function(){Ni.cancel(M.current)}}),[r]),t.createElement(jf,{prefixCls:n,popupClassName:jo()("".concat(n,"-popup"),x({},"".concat(n,"-rtl"),h),l,w),stretch:"horizontal"===u?"minWidth":null,getPopupContainer:p,builtinPlacements:j,popupPlacement:$,popupVisible:O,popup:i,popupStyle:a,popupAlign:c&&{offset:c},action:s?[]:[b],mouseEnterDelay:v,mouseLeaveDelay:m,onPopupVisibleChange:f,forceRender:y,popupMotion:I,fresh:!0},o)}function hz(e){var n=e.id,r=e.open,o=e.keyPath,i=e.children,a="inline",l=t.useContext(hL),c=l.prefixCls,s=l.forceSubMenuRender,u=l.motion,f=l.defaultMotions,d=l.mode,p=t.useRef(!1);p.current=d===a;var h=Y(t.useState(!p.current),2),v=h[0],m=h[1],g=!!p.current&&r;t.useEffect((function(){p.current&&m(!1)}),[d]);var b=C({},fz(a,u,f));o.length>1&&(b.motionAppear=!1);var y=b.onVisibleChanged;return b.onVisibleChanged=function(e){return p.current||e||m(!0),null==y?void 0:y(e)},v?null:t.createElement(vL,{mode:a,locked:!p.current},t.createElement(Ki,ht({visible:g},b,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),(function(e){var r=e.className,o=e.style;return t.createElement(az,{id:n,className:r,style:o},i)})))}var vz=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],mz=["active"],gz=t.forwardRef((function(e,n){var r,o=e.style,i=e.className,a=e.title,l=e.eventKey,c=(e.warnKey,e.disabled),s=e.internalPopupClose,u=e.children,f=e.itemIcon,d=e.expandIcon,p=e.popupClassName,h=e.popupOffset,v=e.popupStyle,m=e.onClick,g=e.onMouseEnter,b=e.onMouseLeave,y=e.onTitleClick,w=e.onTitleMouseEnter,S=e.onTitleMouseLeave,k=qo(e,vz),E=dL(l),O=t.useContext(hL),_=O.prefixCls,j=O.mode,$=O.openKeys,N=O.disabled,P=O.overflowDisabled,I=O.activeKey,M=O.selectedKeys,R=O.itemIcon,A=O.expandIcon,T=O.onItemClick,q=O.onOpenChange,D=O.onActive,L=t.useContext(SL)._internalRenderSubMenuItem,z=t.useContext(xL).isSubPathKey,B=wL(),F="".concat(_,"-submenu"),H=N||c,W=t.useRef(),V=t.useRef();var U=null!=f?f:R,G=null!=d?d:A,K=$.includes(l),X=!P&&K,Q=z(M,l),Z=VL(l,H,w,S),J=Z.active,ee=qo(Z,mz),te=Y(t.useState(!1),2),ne=te[0],re=te[1],oe=function(e){H||re(e)},ie=t.useMemo((function(){return J||"inline"!==j&&(ne||z([I],l))}),[j,J,I,ne,l,z]),ae=UL(B.length),le=FL((function(e){null==m||m(KL(e)),T(e)})),ce=E&&"".concat(E,"-popup"),se=t.createElement("div",ht({role:"menuitem",style:ae,className:"".concat(F,"-title"),tabIndex:H?null:-1,ref:W,title:"string"==typeof a?a:null,"data-menu-id":P&&E?null:E,"aria-expanded":X,"aria-haspopup":!0,"aria-controls":ce,"aria-disabled":H,onClick:function(e){H||(null==y||y({key:l,domEvent:e}),"inline"===j&&q(l,!K))},onFocus:function(){D(l)}},ee),a,t.createElement(GL,{icon:"horizontal"!==j?G:void 0,props:C(C({},e),{},{isOpen:X,isSubMenu:!0})},t.createElement("i",{className:"".concat(F,"-arrow")}))),ue=t.useRef(j);if("inline"!==j&&B.length>1?ue.current="vertical":ue.current=j,!P){var fe=ue.current;se=t.createElement(pz,{mode:fe,prefixCls:F,visible:!s&&X&&"inline"!==j,popupClassName:p,popupOffset:h,popupStyle:v,popup:t.createElement(vL,{mode:"horizontal"===fe?"vertical":fe},t.createElement(az,{id:ce,ref:V},u)),disabled:H,onVisibleChange:function(e){"inline"!==j&&q(l,e)}},se)}var de=t.createElement(Qb.Item,ht({ref:n,role:"none"},k,{component:"li",style:o,className:jo()(F,"".concat(F,"-").concat(j),i,(r={},x(r,"".concat(F,"-open"),X),x(r,"".concat(F,"-active"),ie),x(r,"".concat(F,"-selected"),Q),x(r,"".concat(F,"-disabled"),H),r)),onMouseEnter:function(e){oe(!0),null==g||g({key:l,domEvent:e})},onMouseLeave:function(e){oe(!1),null==b||b({key:l,domEvent:e})}}),se,!P&&t.createElement(hz,{id:ce,open:X,keyPath:B},u));return L&&(de=L(de,e,{selected:Q,active:ie,open:X,disabled:H})),t.createElement(vL,{onItemClick:le,mode:"horizontal"===j?"vertical":j,itemIcon:U,expandIcon:G},de)}));var bz=t.forwardRef((function(e,n){var r,o=e.eventKey,i=e.children,a=wL(o),l=lz(i,a),c=bL();return t.useEffect((function(){if(c)return c.registerPath(o,a),function(){c.unregisterPath(o,a)}}),[a]),r=c?l:t.createElement(gz,ht({ref:n},e),l),t.createElement(yL.Provider,{value:a},r)}));function yz(e){var n=e.className,r=e.style,o=t.useContext(hL).prefixCls;return bL()?null:t.createElement("li",{role:"separator",className:jo()("".concat(o,"-item-divider"),n),style:r})}var wz=["className","title","eventKey","children"],xz=t.forwardRef((function(e,n){var r=e.className,o=e.title,i=(e.eventKey,e.children),a=qo(e,wz),l=t.useContext(hL).prefixCls,c="".concat(l,"-item-group");return t.createElement("li",ht({ref:n,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:jo()(c,r)}),t.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:"string"==typeof o?o:void 0},o),t.createElement("ul",{role:"group",className:"".concat(c,"-list")},i))}));var Sz=t.forwardRef((function(e,n){var r=e.eventKey,o=lz(e.children,wL(r));return bL()?o:t.createElement(xz,ht({ref:n},qc(e,["warnKey"])),o)})),Cz=["label","children","key","type"];function kz(e,n){var r=n.item,o=n.group,i=n.submenu,a=n.divider;return(e||[]).map((function(e,l){if(e&&"object"===m(e)){var c=e,s=c.label,u=c.children,f=c.key,d=c.type,p=qo(c,Cz),h=null!=f?f:"tmp-".concat(l);return u||"group"===d?"group"===d?t.createElement(o,ht({key:h},p,{title:s}),kz(u,n)):t.createElement(i,ht({key:h},p,{title:s}),kz(u,n)):"divider"===d?t.createElement(a,ht({key:h},p)):t.createElement(r,ht({key:h},p),s)}return null})).filter((function(e){return e}))}function Ez(e,t,n,r){var o=e,i=C({divider:yz,item:nz,group:Sz,submenu:bz},r);return t&&(o=kz(t,i)),lz(o,n)}var Oz=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],_z=[],jz=t.forwardRef((function(e,n){var r,o,i=e,a=i.prefixCls,l=void 0===a?"rc-menu":a,c=i.rootClassName,s=i.style,u=i.className,f=i.tabIndex,d=void 0===f?0:f,p=i.items,h=i.children,v=i.direction,m=i.id,g=i.mode,b=void 0===g?"vertical":g,y=i.inlineCollapsed,w=i.disabled,S=i.disabledOverflow,k=i.subMenuOpenDelay,O=void 0===k?.1:k,_=i.subMenuCloseDelay,j=void 0===_?.1:_,$=i.forceSubMenuRender,N=i.defaultOpenKeys,P=i.openKeys,I=i.activeKey,M=i.defaultActiveFirst,R=i.selectable,A=void 0===R||R,T=i.multiple,q=void 0!==T&&T,D=i.defaultSelectedKeys,L=i.selectedKeys,z=i.onSelect,B=i.onDeselect,F=i.inlineIndent,H=void 0===F?24:F,W=i.motion,V=i.defaultMotions,U=i.triggerSubMenuAction,G=void 0===U?"hover":U,K=i.builtinPlacements,Q=i.itemIcon,Z=i.expandIcon,J=i.overflowedIndicator,ee=void 0===J?"...":J,te=i.overflowedIndicatorPopupClassName,ne=i.getPopupContainer,re=i.onClick,oe=i.onOpenChange,ie=i.onKeyDown,ae=(i.openAnimation,i.openTransitionName,i._internalRenderMenuItem),le=i._internalRenderSubMenuItem,ce=i._internalComponents,se=qo(i,Oz),ue=Y(t.useMemo((function(){return[Ez(h,p,_z,ce),Ez(h,p,_z,{})]}),[h,p,ce]),2),fe=ue[0],de=ue[1],pe=Y(t.useState(!1),2),he=pe[0],ve=pe[1],me=t.useRef(),ge=function(e){var n=Y(Jo(e,{value:e}),2),r=n[0],o=n[1];return t.useEffect((function(){WL+=1;var e="".concat(HL,"-").concat(WL);o("rc-menu-uuid-".concat(e))}),[]),r}(m),be="rtl"===v;var ye=Jo(N,{value:P,postState:function(e){return e||_z}}),xe=Y(ye,2),Se=xe[0],Ce=xe[1],ke=function(e){function t(){Ce(e),null==oe||oe(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,E.flushSync)(t):t()},Ee=Y(t.useState(Se),2),Oe=Ee[0],_e=Ee[1],je=t.useRef(!1),$e=Y(t.useMemo((function(){return"inline"!==b&&"vertical"!==b||!y?[b,!1]:["vertical",y]}),[b,y]),2),Ne=$e[0],Pe=$e[1],Ie="inline"===Ne,Me=Y(t.useState(Ne),2),Re=Me[0],Ae=Me[1],Te=Y(t.useState(Pe),2),qe=Te[0],De=Te[1];t.useEffect((function(){Ae(Ne),De(Pe),je.current&&(Ie?Ce(Oe):ke(_z))}),[Ne,Pe]);var Le=Y(t.useState(0),2),ze=Le[0],Be=Le[1],Fe=ze>=fe.length-1||"horizontal"!==Re||S;t.useEffect((function(){Ie&&_e(Se)}),[Se]),t.useEffect((function(){return je.current=!0,function(){je.current=!1}}),[]);var He=BL(),We=He.registerPath,Ve=He.unregisterPath,Ue=He.refreshOverflowKeys,Ge=He.isSubPathKey,Ye=He.getKeyPath,Ke=He.getKeys,Xe=He.getSubPathKeys,Qe=t.useMemo((function(){return{registerPath:We,unregisterPath:Ve}}),[We,Ve]),Ze=t.useMemo((function(){return{isSubPathKey:Ge}}),[Ge]);t.useEffect((function(){Ue(Fe?_z:fe.slice(ze+1).map((function(e){return e.key})))}),[ze,Fe]);var Je=Y(Jo(I||M&&(null===(r=fe[0])||void 0===r?void 0:r.key),{value:I}),2),et=Je[0],tt=Je[1],nt=FL((function(e){tt(e)})),rt=FL((function(){tt(void 0)}));(0,t.useImperativeHandle)(n,(function(){return{list:me.current,focus:function(e){var t,n,r=Ke(),o=TL(r,ge),i=o.elements,a=o.key2element,l=o.element2key,c=RL(me.current,i),s=null!=et?et:c[0]?l.get(c[0]):null===(t=fe.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(s);s&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var ot=Jo(D||[],{value:L,postState:function(e){return Array.isArray(e)?e:null==e?_z:[e]}}),it=Y(ot,2),at=it[0],lt=it[1],ct=FL((function(e){null==re||re(KL(e)),function(e){if(A){var t,n=e.key,r=at.includes(n);t=q?r?at.filter((function(e){return e!==n})):[].concat(X(at),[n]):[n],lt(t);var o=C(C({},e),{},{selectedKeys:t});r?null==B||B(o):null==z||z(o)}!q&&Se.length&&"inline"!==Re&&ke(_z)}(e)})),st=FL((function(e,t){var n=Se.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Re){var r=Xe(e);n=n.filter((function(e){return!r.has(e)}))}we(Se,n,!0)||ke(n,!0)})),ut=qL(Re,et,be,ge,me,Ke,Ye,tt,(function(e,t){var n=null!=t?t:!Se.includes(e);st(e,n)}),ie);t.useEffect((function(){ve(!0)}),[]);var ft=t.useMemo((function(){return{_internalRenderMenuItem:ae,_internalRenderSubMenuItem:le}}),[ae,le]),dt="horizontal"!==Re||S?fe:fe.map((function(e,n){return t.createElement(vL,{key:e.key,overflowDisabled:n>ze},e)})),pt=t.createElement(Qb,ht({id:m,ref:me,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:nz,className:jo()(l,"".concat(l,"-root"),"".concat(l,"-").concat(Re),u,(o={},x(o,"".concat(l,"-inline-collapsed"),qe),x(o,"".concat(l,"-rtl"),be),o),c),dir:v,style:s,role:"menu",tabIndex:d,data:dt,renderRawItem:function(e){return e},renderRawRest:function(e){var n=e.length,r=n?fe.slice(-n):null;return t.createElement(bz,{eventKey:zL,title:ee,disabled:Fe,internalPopupClose:0===n,popupClassName:te},r)},maxCount:"horizontal"!==Re||S?Qb.INVALIDATE:Qb.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Be(e)},onKeyDown:ut},se));return t.createElement(SL.Provider,{value:ft},t.createElement(uL.Provider,{value:ge},t.createElement(vL,{prefixCls:l,rootClassName:c,mode:Re,openKeys:Se,rtl:be,disabled:w,motion:he?W:null,defaultMotions:he?V:null,activeKey:et,onActive:nt,onInactive:rt,selectedKeys:at,inlineIndent:H,subMenuOpenDelay:O,subMenuCloseDelay:j,forceSubMenuRender:$,builtinPlacements:K,triggerSubMenuAction:G,getPopupContainer:ne,itemIcon:Q,expandIcon:Z,onItemClick:ct,onOpenChange:st},t.createElement(xL.Provider,{value:Ze},pt),t.createElement("div",{style:{display:"none"},"aria-hidden":!0},t.createElement(gL.Provider,{value:Qe},de)))))})),$z=jz;$z.Item=nz,$z.SubMenu=bz,$z.ItemGroup=Sz,$z.Divider=yz;var Nz=$z,Pz=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.id,i=e.tabs,a=e.locale,l=e.mobile,c=e.more,s=void 0===c?{}:c,u=e.style,f=e.className,d=e.editable,p=e.tabBarGutter,h=e.rtl,v=e.removeAriaLabel,m=e.onTabClick,g=e.getPopupContainer,b=e.popupClassName,y=Y((0,t.useState)(!1),2),w=y[0],S=y[1],C=Y((0,t.useState)(null),2),k=C[0],E=C[1],O=s.icon,_=void 0===O?"More":O,j="".concat(o,"-more-popup"),$="".concat(r,"-dropdown"),N=null!==k?"".concat(j,"-").concat(k):null,P=null==a?void 0:a.dropdownAriaLabel;var I=t.createElement(Nz,{onClick:function(e){var t=e.key,n=e.domEvent;m(t,n),S(!1)},prefixCls:"".concat($,"-menu"),id:j,tabIndex:-1,role:"listbox","aria-activedescendant":N,selectedKeys:[k],"aria-label":void 0!==P?P:"expanded dropdown"},i.map((function(e){var n=e.closable,r=e.disabled,i=e.closeIcon,a=e.key,l=e.label,c=XD(n,i,d,r);return t.createElement(nz,{key:a,id:"".concat(j,"-").concat(a),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(a),disabled:r},t.createElement("span",null,l),c&&t.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat($,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),d.onEdit("remove",{key:t,event:e})}(e,a)}},i||d.removeIcon||"×"))})));function M(e){for(var t=i.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===k}))||0,r=t.length,o=0;o<r;o+=1){var a=t[n=(n+e+r)%r];if(!a.disabled)return void E(a.key)}}(0,t.useEffect)((function(){var e=document.getElementById(N);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[k]),(0,t.useEffect)((function(){w||E(null)}),[w]);var R=x({},h?"marginRight":"marginLeft",p);i.length||(R.visibility="hidden",R.order=1);var A=jo()(x({},"".concat($,"-rtl"),h)),T=l?null:t.createElement(sL,ht({prefixCls:$,overlay:I,visible:!!i.length&&w,onVisibleChange:S,overlayClassName:jo()(A,b),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:g},s),t.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:R,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":j,id:"".concat(o,"-more"),"aria-expanded":w,onKeyDown:function(e){var t=e.which;if(w)switch(t){case ll.UP:M(-1),e.preventDefault();break;case ll.DOWN:M(1),e.preventDefault();break;case ll.ESC:S(!1);break;case ll.SPACE:case ll.ENTER:null!==k&&m(k,e)}else[ll.DOWN,ll.SPACE,ll.ENTER].includes(t)&&(S(!0),e.preventDefault())}},_));return t.createElement("div",{className:jo()("".concat(r,"-nav-operations"),f),style:u,ref:n},T,t.createElement(ZD,{prefixCls:r,locale:a,editable:d}))})),Iz=t.memo(Pz,(function(e,t){return t.tabMoving})),Mz=function(e){var n=e.prefixCls,r=e.id,o=e.active,i=e.tab,a=i.key,l=i.label,c=i.disabled,s=i.closeIcon,u=i.icon,f=e.closable,d=e.renderWrapper,p=e.removeAriaLabel,h=e.editable,v=e.onClick,m=e.onFocus,g=e.style,b="".concat(n,"-tab"),y=XD(f,s,h,c);function w(e){c||v(e)}var S=t.useMemo((function(){return u&&"string"==typeof l?t.createElement("span",null,l):l}),[l,u]),C=t.createElement("div",{key:a,"data-node-key":KD(a),className:jo()(b,x(x(x({},"".concat(b,"-with-remove"),y),"".concat(b,"-active"),o),"".concat(b,"-disabled"),c)),style:g,onClick:w},t.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(a),className:"".concat(b,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(a),"aria-disabled":c,tabIndex:c?null:0,onClick:function(e){e.stopPropagation(),w(e)},onKeyDown:function(e){[ll.SPACE,ll.ENTER].includes(e.which)&&(e.preventDefault(),w(e))},onFocus:m},u&&t.createElement("span",{className:"".concat(b,"-icon")},u),l&&S),y&&t.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),h.onEdit("remove",{key:a,event:t})}},s||h.removeIcon||"×"));return d?d(C):C},Rz=function(e){var t=e.current||{},n=t.offsetWidth,r=void 0===n?0:n,o=t.offsetHeight,i=void 0===o?0:o;if(e.current){var a=e.current.getBoundingClientRect(),l=a.width,c=a.height;if(Math.abs(l-r)<1)return[l,c]}return[r,i]},Az=function(e,t){return e[t?0:1]},Tz=t.forwardRef((function(e,n){var r,o,i,a,l,c=e.className,s=e.style,u=e.id,f=e.animated,d=e.activeKey,p=e.rtl,h=e.extra,v=e.editable,m=e.locale,g=e.tabPosition,b=e.tabBarGutter,y=e.children,w=e.onTabClick,S=e.onTabScroll,k=e.indicator,E=t.useContext(BD),O=E.prefixCls,_=E.tabs,j=(0,t.useRef)(null),$=(0,t.useRef)(null),N=(0,t.useRef)(null),P=(0,t.useRef)(null),I=(0,t.useRef)(null),M=(0,t.useRef)(null),R=(0,t.useRef)(null),A="top"===g||"bottom"===g,T=WD(0,(function(e,t){A&&S&&S({direction:e>t?"left":"right"})})),q=Y(T,2),D=q[0],L=q[1],z=WD(0,(function(e,t){!A&&S&&S({direction:e>t?"top":"bottom"})})),B=Y(z,2),F=B[0],H=B[1],W=Y((0,t.useState)([0,0]),2),V=W[0],U=W[1],G=Y((0,t.useState)([0,0]),2),K=G[0],Q=G[1],Z=Y((0,t.useState)([0,0]),2),J=Z[0],ee=Z[1],te=Y((0,t.useState)([0,0]),2),ne=te[0],re=te[1],oe=(r=new Map,o=(0,t.useRef)([]),i=Y((0,t.useState)({}),2)[1],a=(0,t.useRef)("function"==typeof r?r():r),l=UD((function(){var e=a.current;o.current.forEach((function(t){e=t(e)})),o.current=[],a.current=e,i({})})),[a.current,function(e){o.current.push(e),l()}]),ie=Y(oe,2),ae=ie[0],le=ie[1],ce=function(e,n,r){return(0,t.useMemo)((function(){for(var t,r=new Map,o=n.get(null===(t=e[0])||void 0===t?void 0:t.key)||HD,i=o.left+o.width,a=0;a<e.length;a+=1){var l,c=e[a].key,s=n.get(c);s||(s=n.get(null===(l=e[a-1])||void 0===l?void 0:l.key)||HD);var u=r.get(c)||C({},s);u.right=i-u.left-u.width,r.set(c,u)}return r}),[e.map((function(e){return e.key})).join("_"),n,r])}(_,ae,K[0]),se=Az(V,A),ue=Az(K,A),fe=Az(J,A),de=Az(ne,A),pe=se<ue+fe,he=pe?se-de:se-fe,ve="".concat(O,"-nav-operations-hidden"),me=0,ge=0;function be(e){return e<me?me:e>ge?ge:e}A&&p?(me=0,ge=Math.max(0,ue-he)):(me=Math.min(0,he-ue),ge=0);var ye=(0,t.useRef)(null),we=Y((0,t.useState)(),2),xe=we[0],Se=we[1];function Ce(){Se(Date.now())}function ke(){ye.current&&clearTimeout(ye.current)}!function(e,n){var r=Y((0,t.useState)(),2),o=r[0],i=r[1],a=Y((0,t.useState)(0),2),l=a[0],c=a[1],s=Y((0,t.useState)(0),2),u=s[0],f=s[1],d=Y((0,t.useState)(),2),p=d[0],h=d[1],v=(0,t.useRef)(),m=(0,t.useRef)(),g=(0,t.useRef)(null);g.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;i({x:n,y:r}),window.clearInterval(v.current)},onTouchMove:function(e){if(o){e.preventDefault();var t=e.touches[0],r=t.screenX,a=t.screenY;i({x:r,y:a});var s=r-o.x,u=a-o.y;n(s,u);var d=Date.now();c(d),f(d-l),h({x:s,y:u})}},onTouchEnd:function(){if(o&&(i(null),h(null),p)){var e=p.x/u,t=p.y/u,r=Math.abs(e),a=Math.abs(t);if(Math.max(r,a)<.1)return;var l=e,c=t;v.current=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(c)<.01?window.clearInterval(v.current):n(20*(l*=VD),20*(c*=VD))}),20)}},onWheel:function(e){var t=e.deltaX,r=e.deltaY,o=0,i=Math.abs(t),a=Math.abs(r);i===a?o="x"===m.current?t:r:i>a?(o=t,m.current="x"):(o=r,m.current="y"),n(-o,-o)&&e.preventDefault()}},t.useEffect((function(){function t(e){g.current.onTouchMove(e)}function n(e){g.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),e.current.addEventListener("touchstart",(function(e){g.current.onTouchStart(e)}),{passive:!0}),e.current.addEventListener("wheel",(function(e){g.current.onWheel(e)}),{passive:!1}),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(P,(function(e,t){function n(e,t){e((function(e){return be(e+t)}))}return!!pe&&(A?n(L,e):n(H,t),ke(),Ce(),!0)})),(0,t.useEffect)((function(){return ke(),xe&&(ye.current=setTimeout((function(){Se(0)}),100)),ke}),[xe]);var Ee=function(e,n,r,o,i,a,l){var c,s,u,f=l.tabs,d=l.tabPosition,p=l.rtl;return["top","bottom"].includes(d)?(c="width",s=p?"right":"left",u=Math.abs(r)):(c="height",s="top",u=-r),(0,t.useMemo)((function(){if(!f.length)return[0,0];for(var t=f.length,r=t,o=0;o<t;o+=1){var i=e.get(f[o].key)||GD;if(i[s]+i[c]>u+n){r=o-1;break}}for(var a=0,l=t-1;l>=0;l-=1)if((e.get(f[l].key)||GD)[s]<u){a=l+1;break}return a>=r?[0,0]:[a,r]}),[e,n,o,i,a,u,d,f.map((function(e){return e.key})).join("_"),p])}(ce,he,A?D:F,ue,fe,de,C(C({},e),{},{tabs:_})),Oe=Y(Ee,2),_e=Oe[0],je=Oe[1],$e=Xo((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=ce.get(e)||{width:0,height:0,left:0,right:0,top:0};if(A){var n=D;p?t.right<D?n=t.right:t.right+t.width>D+he&&(n=t.right+t.width-he):t.left<-D?n=-t.left:t.left+t.width>-D+he&&(n=-(t.left+t.width-he)),H(0),L(be(n))}else{var r=F;t.top<-F?r=-t.top:t.top+t.height>-F+he&&(r=-(t.top+t.height-he)),L(0),H(be(r))}})),Ne={};"top"===g||"bottom"===g?Ne[p?"marginRight":"marginLeft"]=b:Ne.marginTop=b;var Pe=_.map((function(e,n){var r=e.key;return t.createElement(Mz,{id:u,prefixCls:O,key:r,tab:e,style:0===n?void 0:Ne,closable:e.closable,editable:v,active:r===d,renderWrapper:y,removeAriaLabel:null==m?void 0:m.removeAriaLabel,onClick:function(e){w(r,e)},onFocus:function(){$e(r),Ce(),P.current&&(p||(P.current.scrollLeft=0),P.current.scrollTop=0)}})})),Ie=function(){return le((function(){var e,t=new Map,n=null===(e=I.current)||void 0===e?void 0:e.getBoundingClientRect();return _.forEach((function(e){var r,o=e.key,i=null===(r=I.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(KD(o),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),l=a.width,c=a.height,s=a.x,u=a.y;return Math.abs(l-n)<1?[l,c,s-t.x,u-t.y]:[n,r,i,o]}(i,n),l=Y(a,4),c=l[0],s=l[1],u=l[2],f=l[3];t.set(o,{width:c,height:s,left:u,top:f})}})),t}))};(0,t.useEffect)((function(){Ie()}),[_.map((function(e){return e.key})).join("_")]);var Me=UD((function(){var e=Rz(j),t=Rz($),n=Rz(N);U([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=Rz(R);ee(r);var o=Rz(M);re(o);var i=Rz(I);Q([i[0]-r[0],i[1]-r[1]]),Ie()})),Re=_.slice(0,_e),Ae=_.slice(je+1),Te=[].concat(X(Re),X(Ae)),qe=ce.get(d),De=FD({activeTabOffset:qe,horizontal:A,indicator:k,rtl:p}).style;(0,t.useEffect)((function(){$e()}),[d,me,ge,YD(qe),YD(ce),A]),(0,t.useEffect)((function(){Me()}),[p]);var Le,ze,Be,Fe,He=!!Te.length,We="".concat(O,"-nav-wrap");return A?p?(ze=D>0,Le=D!==ge):(Le=D<0,ze=D!==me):(Be=F<0,Fe=F!==me),t.createElement(Ju,{onResize:Me},t.createElement("div",{ref:Ro(n,j),role:"tablist",className:jo()("".concat(O,"-nav"),c),style:s,onKeyDown:function(){Ce()}},t.createElement(eL,{ref:$,position:"left",extra:h,prefixCls:O}),t.createElement(Ju,{onResize:Me},t.createElement("div",{className:jo()(We,x(x(x(x({},"".concat(We,"-ping-left"),Le),"".concat(We,"-ping-right"),ze),"".concat(We,"-ping-top"),Be),"".concat(We,"-ping-bottom"),Fe)),ref:P},t.createElement(Ju,{onResize:Me},t.createElement("div",{ref:I,className:"".concat(O,"-nav-list"),style:{transform:"translate(".concat(D,"px, ").concat(F,"px)"),transition:xe?"none":void 0}},Pe,t.createElement(ZD,{ref:R,prefixCls:O,locale:m,editable:v,style:C(C({},0===Pe.length?void 0:Ne),{},{visibility:He?"hidden":null})}),t.createElement("div",{className:jo()("".concat(O,"-ink-bar"),x({},"".concat(O,"-ink-bar-animated"),f.inkBar)),style:De}))))),t.createElement(Iz,ht({},e,{removeAriaLabel:null==m?void 0:m.removeAriaLabel,ref:M,prefixCls:O,tabs:Te,className:!He&&ve,tabMoving:!!xe})),t.createElement(eL,{ref:N,position:"right",extra:h,prefixCls:O})))})),qz=Tz,Dz=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.className,i=e.style,a=e.id,l=e.active,c=e.tabKey,s=e.children;return t.createElement("div",{id:a&&"".concat(a,"-panel-").concat(c),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(c),"aria-hidden":!l,style:i,className:jo()(r,l&&"".concat(r,"-active"),o),ref:n},s)}));var Lz=Dz,zz=["renderTabBar"],Bz=["label","key"];var Fz=function(e){var n=e.renderTabBar,r=qo(e,zz),o=t.useContext(BD).tabs;if(n){var i=C(C({},r),{},{panes:o.map((function(e){var n=e.label,r=e.key,o=qo(e,Bz);return t.createElement(Lz,ht({tab:n,key:r,tabKey:r},o))}))});return n(i,qz)}return t.createElement(qz,r)},Hz=["key","forceRender","style","className","destroyInactiveTabPane"],Wz=function(e){var n=e.id,r=e.activeKey,o=e.animated,i=e.tabPosition,a=e.destroyInactiveTabPane,l=t.useContext(BD),c=l.prefixCls,s=l.tabs,u=o.tabPane,f="".concat(c,"-tabpane");return t.createElement("div",{className:jo()("".concat(c,"-content-holder"))},t.createElement("div",{className:jo()("".concat(c,"-content"),"".concat(c,"-content-").concat(i),x({},"".concat(c,"-content-animated"),u))},s.map((function(e){var i=e.key,l=e.forceRender,c=e.style,s=e.className,d=e.destroyInactiveTabPane,p=qo(e,Hz),h=i===r;return t.createElement(Ki,ht({key:i,visible:h,forceRender:l,removeOnLeave:!(!a&&!d),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),(function(e,r){var o=e.style,a=e.className;return t.createElement(Lz,ht({},p,{prefixCls:f,id:n,tabKey:i,animated:u,active:h,style:C(C({},c),o),className:jo()(s,a),ref:r}))}))}))))};var Vz=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Uz=0,Gz=t.forwardRef((function(e,n){var r=e.id,o=e.prefixCls,i=void 0===o?"rc-tabs":o,a=e.className,l=e.items,c=e.direction,s=e.activeKey,u=e.defaultActiveKey,f=e.editable,d=e.animated,p=e.tabPosition,h=void 0===p?"top":p,v=e.tabBarGutter,g=e.tabBarStyle,b=e.tabBarExtraContent,y=e.locale,w=e.more,S=e.destroyInactiveTabPane,k=e.renderTabBar,E=e.onChange,O=e.onTabClick,_=e.onTabScroll,j=e.getPopupContainer,$=e.popupClassName,N=e.indicator,P=qo(e,Vz),I=t.useMemo((function(){return(l||[]).filter((function(e){return e&&"object"===m(e)&&"key"in e}))}),[l]),M="rtl"===c,R=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:C({inkBar:!0},"object"===m(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(d),A=Y((0,t.useState)(!1),2),T=A[0],q=A[1];(0,t.useEffect)((function(){q(rf())}),[]);var D=Y(Jo((function(){var e;return null===(e=I[0])||void 0===e?void 0:e.key}),{value:s,defaultValue:u}),2),L=D[0],z=D[1],B=Y((0,t.useState)((function(){return I.findIndex((function(e){return e.key===L}))})),2),F=B[0],H=B[1];(0,t.useEffect)((function(){var e,t=I.findIndex((function(e){return e.key===L}));-1===t&&(t=Math.max(0,Math.min(F,I.length-1)),z(null===(e=I[t])||void 0===e?void 0:e.key));H(t)}),[I.map((function(e){return e.key})).join("_"),L,F]);var W=Y(Jo(null,{value:r}),2),V=W[0],U=W[1];(0,t.useEffect)((function(){r||(U("rc-tabs-".concat(Uz)),Uz+=1)}),[]);var G={id:V,activeKey:L,animated:R,tabPosition:h,rtl:M,mobile:T},K=C(C({},G),{},{editable:f,locale:y,more:w,tabBarGutter:v,onTabClick:function(e,t){null==O||O(e,t);var n=e!==L;z(e),n&&(null==E||E(e))},onTabScroll:_,extra:b,style:g,panes:null,getPopupContainer:j,popupClassName:$,indicator:N});return t.createElement(BD.Provider,{value:{tabs:I,prefixCls:i}},t.createElement("div",ht({ref:n,id:r,className:jo()(i,"".concat(i,"-").concat(h),x(x(x({},"".concat(i,"-mobile"),T),"".concat(i,"-editable"),f),"".concat(i,"-rtl"),M),a)},P),t.createElement(Fz,ht({},K,{renderTabBar:k})),t.createElement(Wz,ht({destroyInactiveTabPane:S},G,{animated:R}))))}));var Yz=Gz;const Kz={motionAppear:!1,motionEnter:!0,motionLeave:!0};var Xz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var Qz=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Rw(e,"slide-up"),Rw(e,"slide-down")]]};const Zz=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${Ue(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:Ue(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Ue(e.borderRadiusLG)} ${Ue(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Ue(e.borderRadiusLG)} ${Ue(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Ue(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ue(e.borderRadiusLG)} 0 0 ${Ue(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ue(e.borderRadiusLG)} ${Ue(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Jz=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},ua(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${Ue(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},sa),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Ue(e.paddingXXS)} ${Ue(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},eB=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Ue(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Ue(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},tB=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Ue(e.borderRadius)} ${Ue(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Ue(e.borderRadius)} ${Ue(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ue(e.borderRadius)} ${Ue(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ue(e.borderRadius)} 0 0 ${Ue(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},nB=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,s=`${t}-tab`;return{[s]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},pa(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${s}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${s}-active ${s}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:i}}}},rB=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e,a=`${t}-rtl`;return{[a]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:Ue(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Ue(e.marginXS)},marginLeft:{_skip_check_:!0,value:Ue(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},oB=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ua(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${Ue(e.paddingXS)}`,background:"transparent",border:`${Ue(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${Ue(e.borderRadiusLG)} ${Ue(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},pa(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),nB(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var iB=Jl("Tabs",(e=>{const t=Wl(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Ue(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Ue(e.horizontalItemGutter)}`});return[tB(t),rB(t),eB(t),Jz(t),Zz(t),oB(t),Qz(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}));var aB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const lB=e=>{var n,r,o,i,a,l,c,s,u,f,d;const{type:p,className:h,rootClassName:v,size:m,onEdit:g,hideAdd:b,centered:y,addIcon:w,removeIcon:x,moreIcon:S,more:C,popupClassName:k,children:E,items:O,animated:_,style:j,indicatorSize:$,indicator:N}=e,P=aB(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:I}=P,{direction:M,tabs:R,getPrefixCls:A,getPopupContainer:T}=t.useContext(F),q=A("tabs",I),D=Ol(q),[L,z,B]=iB(q,D);let H;"editable-card"===p&&(H={onEdit:(e,t)=>{let{key:n,event:r}=t;null==g||g("add"===e?r:n,e)},removeIcon:null!==(n=null!=x?x:null==R?void 0:R.removeIcon)&&void 0!==n?n:t.createElement(Xa,null),addIcon:(null!=w?w:null==R?void 0:R.addIcon)||t.createElement(wI,null),showAdd:!0!==b});const W=A();const V=Qc(m),U=function(e,n){if(e)return e;const r=Zc(n).map((e=>{if(t.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=Xz(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null}));return function(e){return e.filter((e=>e))}(r)}(O,E),G=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},Kz),{motionName:xp(e,"switch")})),t}(q,_),Y=Object.assign(Object.assign({},null==R?void 0:R.style),j),K={align:null!==(r=null==N?void 0:N.align)&&void 0!==r?r:null===(o=null==R?void 0:R.indicator)||void 0===o?void 0:o.align,size:null!==(c=null!==(a=null!==(i=null==N?void 0:N.size)&&void 0!==i?i:$)&&void 0!==a?a:null===(l=null==R?void 0:R.indicator)||void 0===l?void 0:l.size)&&void 0!==c?c:null==R?void 0:R.indicatorSize};return L(t.createElement(Yz,Object.assign({direction:M,getPopupContainer:T},P,{items:U,className:jo()({[`${q}-${V}`]:V,[`${q}-card`]:["card","editable-card"].includes(p),[`${q}-editable-card`]:"editable-card"===p,[`${q}-centered`]:y},null==R?void 0:R.className,h,v,z,B,D),popupClassName:jo()(k,z,B,D),style:Y,editable:H,more:Object.assign({icon:null!==(d=null!==(f=null!==(u=null===(s=null==R?void 0:R.more)||void 0===s?void 0:s.icon)&&void 0!==u?u:null==R?void 0:R.moreIcon)&&void 0!==f?f:S)&&void 0!==d?d:t.createElement(zD,null),transitionName:`${W}-slide-up`},C),prefixCls:q,animated:G,indicator:K})))};lB.TabPane=()=>null;var cB=lB,sB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var uB=e=>{var{prefixCls:n,className:r,hoverable:o=!0}=e,i=sB(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=t.useContext(F),l=a("card",n),c=jo()(`${l}-grid`,r,{[`${l}-grid-hoverable`]:o});return t.createElement("div",Object.assign({},i,{className:c}))};const fB=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:o,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${Ue(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Ue(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Ue(e.borderRadiusLG)} ${Ue(e.borderRadiusLG)} 0 0`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},sa),{[`\n > ${n}-typography,\n > ${n}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${Ue(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},dB=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${Ue(o)} 0 0 0 ${n},\n 0 ${Ue(o)} 0 0 ${n},\n ${Ue(o)} ${Ue(o)} 0 0 ${n},\n ${Ue(o)} 0 0 0 ${n} inset,\n 0 ${Ue(o)} 0 0 ${n} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},pB=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${Ue(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${Ue(e.borderRadiusLG)} ${Ue(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:Ue(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:Ue(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Ue(e.lineWidth)} ${e.lineType} ${i}`}}})},hB=e=>Object.assign(Object.assign({margin:`${Ue(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},sa),"&-description":{color:e.colorTextDescription}}),vB=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${Ue(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Ue(e.padding)} ${Ue(n)}`}}},mB=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},gB=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:i,cardPaddingBase:a,extraColor:l}=e;return{[t]:Object.assign(Object.assign({},ua(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:fB(e),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${Ue(e.borderRadiusLG)} ${Ue(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${t}-grid`]:dB(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${Ue(e.borderRadiusLG)} ${Ue(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:pB(e),[`${t}-meta`]:hB(e)}),[`${t}-bordered`]:{border:`${Ue(e.lineWidth)} ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${Ue(e.borderRadiusLG)} ${Ue(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:vB(e),[`${t}-loading`]:mB(e),[`${t}-rtl`]:{direction:"rtl"}}},bB=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${Ue(n)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}};var yB=Jl("Card",(e=>{const t=Wl(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[gB(t),bB(t)]}),(e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}))),wB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const xB=e=>{const{actionClasses:n,actions:r=[],actionStyle:o}=e;return t.createElement("ul",{className:n,style:o},r.map(((e,n)=>{const o=`action-${n}`;return t.createElement("li",{style:{width:100/r.length+"%"},key:o},t.createElement("span",null,e))})))},SB=t.forwardRef(((e,n)=>{const{prefixCls:r,className:o,rootClassName:i,style:a,extra:l,headStyle:c={},bodyStyle:s={},title:u,loading:f,bordered:d=!0,size:p,type:h,cover:v,actions:m,tabList:g,children:b,activeTabKey:y,defaultActiveTabKey:w,tabBarExtraContent:x,hoverable:S,tabProps:C={},classNames:k,styles:E}=e,O=wB(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:_,direction:j,card:$}=t.useContext(F);const N=e=>{var t;return jo()(null===(t=null==$?void 0:$.classNames)||void 0===t?void 0:t[e],null==k?void 0:k[e])},P=e=>{var t;return Object.assign(Object.assign({},null===(t=null==$?void 0:$.styles)||void 0===t?void 0:t[e]),null==E?void 0:E[e])},I=t.useMemo((()=>{let e=!1;return t.Children.forEach(b,(t=>{(null==t?void 0:t.type)===uB&&(e=!0)})),e}),[b]),M=_("card",r),[R,A,T]=yB(M),q=t.createElement(ov,{loading:!0,active:!0,paragraph:{rows:4},title:!1},b),D=void 0!==y,L=Object.assign(Object.assign({},C),{[D?"activeKey":"defaultActiveKey"]:D?y:w,tabBarExtraContent:x});let z;const B=Qc(p),H=B&&"default"!==B?B:"large",W=g?t.createElement(cB,Object.assign({size:H},L,{className:`${M}-head-tabs`,onChange:t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:g.map((e=>{var{tab:t}=e,n=wB(e,["tab"]);return Object.assign({label:t},n)}))})):null;if(u||l||W){const e=jo()(`${M}-head`,N("header")),n=jo()(`${M}-head-title`,N("title")),r=jo()(`${M}-extra`,N("extra")),o=Object.assign(Object.assign({},c),P("header"));z=t.createElement("div",{className:e,style:o},t.createElement("div",{className:`${M}-head-wrapper`},u&&t.createElement("div",{className:n,style:P("title")},u),l&&t.createElement("div",{className:r,style:P("extra")},l)),W)}const V=jo()(`${M}-cover`,N("cover")),U=v?t.createElement("div",{className:V,style:P("cover")},v):null,G=jo()(`${M}-body`,N("body")),Y=Object.assign(Object.assign({},s),P("body")),K=t.createElement("div",{className:G,style:Y},f?q:b),X=jo()(`${M}-actions`,N("actions")),Q=(null==m?void 0:m.length)?t.createElement(xB,{actionClasses:X,actionStyle:P("actions"),actions:m}):null,Z=qc(O,["onTabChange"]),J=jo()(M,null==$?void 0:$.className,{[`${M}-loading`]:f,[`${M}-bordered`]:d,[`${M}-hoverable`]:S,[`${M}-contain-grid`]:I,[`${M}-contain-tabs`]:null==g?void 0:g.length,[`${M}-${B}`]:B,[`${M}-type-${h}`]:!!h,[`${M}-rtl`]:"rtl"===j},o,i,A,T),ee=Object.assign(Object.assign({},null==$?void 0:$.style),a);return R(t.createElement("div",Object.assign({ref:n},Z,{className:J,style:ee}),z,U,K,Q))}));var CB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var kB=e=>{const{prefixCls:n,className:r,avatar:o,title:i,description:a}=e,l=CB(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:c}=t.useContext(F),s=c("card",n),u=jo()(`${s}-meta`,r),f=o?t.createElement("div",{className:`${s}-meta-avatar`},o):null,d=i?t.createElement("div",{className:`${s}-meta-title`},i):null,p=a?t.createElement("div",{className:`${s}-meta-description`},a):null,h=d||p?t.createElement("div",{className:`${s}-meta-detail`},d,p):null;return t.createElement("div",Object.assign({},l,{className:u}),f,h)};const EB=SB;EB.Grid=uB,EB.Meta=kB;var OB=EB;const _B="collapsed",jB="collapsing",$B="expanding",NB="expanded";function PB(e){requestAnimationFrame((function(){requestAnimationFrame(e)}))}const IB=({children:e,transition:n,style:o,render:i,elementType:a="div",isOpen:l,collapseHeight:c="0px",onInit:s,onChange:u,className:f="collapse-css-transition",addState:d,noAnim:p,overflowOnExpanded:h,...v})=>{const m=()=>"0px"===c?"hidden":void 0,[g,b]=(0,t.useReducer)((e=>e+1),0),y=(0,t.useRef)(),[w,x]=(0,t.useState)(0),S=(0,t.useRef)({collapse:l?NB:_B,style:{height:l?void 0:c,visibility:l?void 0:m()}}).current;(0,t.useEffect)((()=>{w&&C(u)}),[w]);const C=(e,t={})=>{e&&e({state:S.collapse,style:S.style,...t})};function k(){y.current&&(S.collapse=_B,S.style={height:c,visibility:m()},b(),setTimeout((()=>x(Date.now)),0))}function E(){y.current&&(S.collapse=NB,S.style={height:void 0,visibility:void 0},b(),setTimeout((()=>x(Date.now)),0))}function O(){return`${y.current.scrollHeight}px`}const _=S.collapse===NB||S.collapse===$B;!_&&l&&function(){if(y.current){if(p)return E();S.collapse=$B,PB((()=>{y.current&&S.collapse===$B&&(S.style={height:O(),visibility:void 0},x(Date.now))}))}}(),_&&!l&&function(){if(y.current){if(p)return k();S.collapse=jB,S.style={height:O(),visibility:void 0},b(),PB((()=>{y.current&&S.collapse===jB&&(S.style={height:c,visibility:void 0},x(Date.now))}))}}();const j={overflow:S.collapse===NB&&h?void 0:"hidden",transition:n,...o,...S.style},$=a,N=(0,t.useCallback)((e=>{e&&(y.current=e,C(s,{node:e}))}),[a]),P=d?`${f} --c-${S.collapse}`:f;return(0,r.jsx)($,{ref:N,style:j,onTransitionEnd:function({target:e,propertyName:t}){if(e===y.current&&"height"===t){const t=e.style.height;switch(S.collapse){case $B:void 0===t||t===c||E();break;case jB:void 0===t||t!==c||k()}}},className:P,...v,children:"function"==typeof e?e(S.collapse):"function"==typeof i?i(S.collapse):e})};var MB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},RB=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:MB}))};var AB=t.forwardRef(RB),TB={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},qB=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:TB}))};var DB=t.forwardRef(qB),LB={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"},zB=function(e,n){return t.createElement(Fa,ht({},e,{ref:n,icon:LB}))};var BB=t.forwardRef(zB),FB=function(e){var t=e.field,n=t.label,o=t.isPro;return n&&(0,r.jsx)("div",{className:"rtsb-field__label_wrap",children:(0,r.jsxs)(mm,{wrap:!0,gap:"small",children:[(0,r.jsx)("h6",{className:"rtsb-field__label",dangerouslySetInnerHTML:{__html:n}}),o?(0,r.jsx)($m,{color:"red",children:"PRO"}):null]})})};function HB(e){return HB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HB(e)}function WB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function VB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WB(Object(n),!0).forEach((function(t){UB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function UB(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=HB(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=HB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==HB(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return YB(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?YB(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function YB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var KB=function(e){var t=e.children,n=e.field,o=e.type,i=n.isPro,a=n.help,s=GB(l(),2),u=s[0],f=s[1];return(0,r.jsxs)("div",{className:"rtsb-field ".concat(o),onClick:function(){i&&"yes"!==rtsbParams.hasPro&&f({type:c,general:VB(VB({},u.general),{},{proInfoVisible:!0})})},children:[(0,r.jsx)(FB,{field:n}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:t}),(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:a}})]})]})};function XB(e){return XB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},XB(e)}function QB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ZB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QB(Object(n),!0).forEach((function(t){JB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function JB(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=XB(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=XB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==XB(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eF=function(e){var t=e.name,n=e.value,o=e.onChange,i=e.placeholder,a=e.disabled,l=e.isPro,c={};return a?c.disabled=a||!1:l&&(c.disabled=l),(0,r.jsx)(KB,{field:e,type:"text",children:(0,r.jsx)(mb,ZB(ZB({},c),{},{className:"rtsb-form-field",placeholder:i,name:t,value:n,onChange:function(e){return o(t,e.target.value)}}))})};function tF(e){return tF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tF(e)}function nF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nF(Object(n),!0).forEach((function(t){oF(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oF(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=tF(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=tF(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tF(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var iF=function(e){var t=e.name,n=e.value,o=e.disabled,i=e.isPro,a=e.options,l=e.onChange,c=e.mode,s={};return o?s.disabled=o||!1:i&&(s.disabled=i),(0,r.jsx)(KB,{field:e,type:"select",children:(0,r.jsx)(Cx,rF(rF({},s),{},{mode:c,showSearch:!0,options:a,name:t,value:n,onChange:function(e){return l(t,e)}}))})};function aF(e){return aF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},aF(e)}var lF=["fetchOptions","initialOptions","debounceTimeout"];function cF(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */cF=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),l=new N(r||[]);return o(a,"_invoke",{value:O(e,n,l)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function g(){}function b(){}function y(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(P([])));S&&S!==n&&r.call(S,a)&&(w=S);var C=y.prototype=g.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,l){var c=f(e[o],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==aF(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,n,r){var o=d;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=_(l,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var s=f(t,n,r);if("normal"===s.type){if(o=r.done?v:p,s.arg===m)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function _(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,_(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function $(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(aF(t)+" is not iterable")}return b.prototype=y,o(C,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=s(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,c,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},k(E.prototype),s(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(C),s(C,c,"Generator"),s(C,a,(function(){return this})),s(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=P,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach($),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),$(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;$(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function sF(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function uF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uF(Object(n),!0).forEach((function(t){dF(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dF(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=aF(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=aF(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==aF(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return hF(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hF(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vF(e){var n=e.fetchOptions,o=e.initialOptions,i=void 0===o?[]:o,a=e.debounceTimeout,l=void 0===a?400:a,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,lF),s=pF((0,t.useState)(!1),2),u=s[0],f=s[1],d=pF((0,t.useState)(i),2),p=d[0],h=d[1],v=(0,t.useRef)(0),m=(0,t.useMemo)((function(){return lN((function(e){v.current+=1;var t=v.current;h([]),f(!0),n(e).then((function(e){t===v.current&&(h(e),f(!1))}))}),l)}),[n,l]);return(0,r.jsx)(Cx,fF(fF({filterOption:!1,onSearch:m,notFoundContent:u?(0,r.jsx)(FI,{size:"small"}):null},c),{},{children:p.map((function(e){return(0,r.jsx)(Cx.Option,{value:e.value,children:e.label},e.value)}))}))}function mF(){var e;return e=cF().mark((function e(t,n){var r,o,i,a;return cF().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=new URLSearchParams).append("action","rtsb_get_multiselect_data"),r.append("__rtsb_wpnonce",rtsbParams.nonce),null!=t&&t.func_with_param&&r.append("func_with_param",JSON.stringify(null==t?void 0:t.func_with_param)),n&&r.append("s",n),o=rtsbParams.ajaxurl.includes("?"),i=o?"&":"?",a="".concat(rtsbParams.ajaxurl).concat(i).concat(r.toString()),e.abrupt("return",fetch(a).then((function(e){return e.json()})).then((function(e){return e.data.map((function(e){return{label:e.label,value:e.value}}))})));case 9:case"end":return e.stop()}}),e)})),mF=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){sF(i,r,o,a,l,"next",e)}function l(e){sF(i,r,o,a,l,"throw",e)}a(void 0)}))},mF.apply(this,arguments)}var gF=function(e){var t=e.options,n=e.value,o=e.name,i=e.placeholder,a=e.onChange,l=(e.help,e.disabled),c=e.isPro,s=new Set,u={};return l?u.disabled=l||!1:c&&(u.disabled=c),(0,r.jsx)(KB,{field:e,type:"select",children:(0,r.jsx)(vF,fF(fF({},u),{},{mode:"multiple",placeholder:i,initialOptions:t,fetchOptions:function(t){return function(e,t){return mF.apply(this,arguments)}(e,t)},onChange:function(e,t){var n=t.map((function(e){return{value:e.value,label:e.children}})).filter((function(e){return!s.has(e.value)&&(s.add(e.value),!0)}));a(o,n)},style:{width:"100%"},value:n}))})};function bF(e){return bF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bF(e)}function yF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yF(Object(n),!0).forEach((function(t){xF(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xF(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=bF(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=bF(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==bF(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var SF=function(e){var t=e.name,n=e.value,o=e.onChange,i=e.disabled,a=e.isPro,l={};return i?l.disabled=i||!1:a&&(l.disabled=a),(0,r.jsx)(KB,{field:e,type:"select",children:(0,r.jsx)(fu,wF(wF({},l),{},{checkedChildren:"On",unCheckedChildren:"Off",checked:"on"===n,onChange:function(e){return o(t,e?"on":"off")}}))})};function CF(e){return CF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},CF(e)}function kF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function EF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kF(Object(n),!0).forEach((function(t){OF(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function OF(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=CF(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=CF(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==CF(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _F(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return jF(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jF(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var $F=(0,t.forwardRef)((function(e,n){var o=Nq({id:e.id}),i=o.attributes,a=o.listeners,l=o.setNodeRef,c=o.transform,s=o.transition,u=o.isDragging,f=e.option,d=(e.index,e.activePanel,e.fieldGroup),p=e.allOptions,h=e.handleRemovePanel,v=e.setFieldsOptions,m=_F((0,t.useState)("var(--rtsb-admin-color-secondary)"),2),g=m[0],b=m[1],y={transform:yA.Translate.toString(c),transition:s,opacity:u?.8:1,zIndex:u?1:0,margin:"0.5rem 0",position:"relative",scrollMarginTop:98},w=function(e,t){var n=p.map((function(n){return"isDefault"!==e||["checkboxgroup","multiselect"].includes(null==d?void 0:d.type)||(n.isDefault="off"),n.id===f.id?EF(EF({},n),{},OF({},e,t)):n}));v(n)};return(0,t.useEffect)((function(){!function(){if(!["checkboxgroup","multiselect"].includes(null==d?void 0:d.type)){var e=!1,t=p.map((function(t){return e||"on"!==(null==t?void 0:t.isDefault)||e?EF(EF({},t),{},{isDefault:"off"}):(e=!0,t)}));v(t)}}()}),[null==d?void 0:d.type]),(0,r.jsx)("div",{className:"rtsb-repeater-item",ref:n?function(e){n.current=e,l(e)}:l,style:y,children:(0,r.jsx)("div",{className:"rtsb_group_repeater rtsb-inline-options-field",children:(0,r.jsxs)(mm,{wrap:!0,gap:"small",children:[(0,r.jsx)(rh,{title:"Rearrange",placement:"left",children:(0,r.jsx)(AB,EF(EF({},i),a))}),(0,r.jsx)(eF,{label:"",help:"Option Label",placeholder:"Option",value:f.label,name:"label",onChange:w}),(0,r.jsx)(eF,{label:"",help:"Option Value",placeholder:"Value",value:f.value,name:"value",onChange:w}),(0,r.jsx)(SF,{label:"",help:"Set as Default",value:f.isDefault,name:"isDefault",onChange:w}),(0,r.jsx)(xP,{style:{color:g},onClick:function(e){return h(e,null==f?void 0:f.id)},onMouseEnter:function(){return b("var(--rtsb-admin-color-secondary-hover)")},onMouseLeave:function(){return b("var(--rtsb-admin-color-secondary)")}})]})})})})),NF=function(e){var t=e.label,n=e.subtitle,o=(null==e?void 0:e.customClass)||"";return(0,r.jsxs)("div",{className:"rtsb-field-title ".concat(o),children:[(0,r.jsx)("h3",{className:"title-label",dangerouslySetInnerHTML:{__html:t}}),n&&(0,r.jsx)("div",{className:"rtsb-field__subtitle",dangerouslySetInnerHTML:{__html:n}})]})};function PF(e){return function(e){if(Array.isArray(e))return RF(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||MF(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function IF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||MF(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function MF(e,t){if(e){if("string"==typeof e)return RF(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?RF(e,t):void 0}}function RF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var AF=function(e){var n=e.fieldGroup,o=e.onChange,i=null!=n&&n.options?n.options:[],a=IF((0,t.useState)(i),2),l=a[0],c=a[1],s=IF((0,t.useState)(0),2),u=s[0],f=s[1],d=IF((0,t.useState)(0),2),p=d[0],h=(d[1],function(e,t){if(e.stopPropagation(),window.confirm("Are you sure you want to delete?")){var n=l.filter((function(e){return e.id!==t}));c(n)}}),v=IA(PA(ET),PA(wT,{coordinateGetter:Mq}));return(0,t.useEffect)((function(){o("options",l)}),[l]),(0,r.jsx)(lq,{sensors:v,collisionDetection:zA,onDragEnd:function(e){var t=e.active,n=e.over;t.id!==n.id&&c((function(e){var r=e.findIndex((function(e){return e.id===t.id})),o=e.findIndex((function(e){return e.id===n.id}));return vq(e,r,o)}))},children:(0,r.jsxs)("div",{className:"rtsb-repeater-wrapper field-options-wrapper",style:{paddingTop:p,margin:0},children:[(0,r.jsxs)(Cq,{items:l,strategy:wq,children:[(0,r.jsx)(NF,{label:"Options",subtitle:""}),l.length>0?l.map((function(e,t){return(0,r.jsx)($F,{id:e.id,index:t,activePanel:u,handleRemovePanel:h,fieldGroup:n,option:e,allOptions:l,setFieldsOptions:c},e.id)})):(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:"Kindly add at least one option."}})]}),(0,r.jsx)("div",{className:"repeater-footer",style:{marginTop:"15px",display:"flex",justifyContent:"flex-end",position:"static",minWidth:"140px"},children:(0,r.jsx)(Zs,{className:"rtsb-button",onClick:function(){var e=l.length+1;c([].concat(PF(l),[{id:e,label:"",value:"",isDefault:!1}])),f(e)},style:{fontSize:"14px",color:"#fff"},children:" Add New Option "})})]})})};function TF(e){return TF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},TF(e)}function qF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function DF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qF(Object(n),!0).forEach((function(t){LF(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function LF(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=TF(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=TF(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==TF(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zF(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */zF=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),l=new N(r||[]);return o(a,"_invoke",{value:O(e,n,l)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",p="suspendedYield",h="executing",v="completed",m={};function g(){}function b(){}function y(){}var w={};s(w,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(P([])));S&&S!==n&&r.call(S,a)&&(w=S);var C=y.prototype=g.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,l){var c=f(e[o],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==TF(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,n,r){var o=d;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=_(l,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var s=f(t,n,r);if("normal"===s.type){if(o=r.done?v:p,s.arg===m)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function _(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,_(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function $(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(TF(t)+" is not iterable")}return b.prototype=y,o(C,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=s(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,c,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},k(E.prototype),s(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(C),s(C,c,"Generator"),s(C,a,(function(){return this})),s(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=P,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach($),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),$(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;$(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function BF(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function FF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return HF(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?HF(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function HF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var WF=qD.Text,VF=(qD.Link,(0,t.forwardRef)((function(e,n){var o,i,a,c,s=Nq({id:e.fieldId}),u=s.attributes,f=s.listeners,d=s.setNodeRef,p=s.transform,h=s.transition,v=s.isDragging,m=e.fieldIndex,g=e.fieldActivePanel,b=e.fieldHandleRemovePanel,y=e.fieldGroup,w=e.setGroupFieldData,x=e.group,S=(e.groupIndex,e.allGroups),C=e.setGroups,k=FF(l(),2),E=(k[0],k[1],FF((0,t.useState)(String(m+1)===String(g)),2)),O=E[0],_=E[1],j=FF((0,t.useState)("var(--rtsb-admin-color-secondary)"),2),$=j[0],N=j[1],P={transform:yA.Translate.toString(p),transition:h,opacity:v?.8:1,zIndex:v?1:0,margin:"0.5rem 0",position:"relative",scrollMarginTop:98},I=function(){var e,t=(e=zF().mark((function e(t,n){var r;return zF().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n,"custom_key"===t&&(r=n.replace(/[\s-]+/g,"_")),e.next=4,w(y.id,t,r);case 4:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){BF(i,r,o,a,l,"next",e)}function l(e){BF(i,r,o,a,l,"throw",e)}a(void 0)}))});return function(e,n){return t.apply(this,arguments)}}(),M=function(e){return["custom_field"].includes(null==y?void 0:y.name)&&e===(null==y?void 0:y.type)},R=(null==y?void 0:y.validation)||"default";null!=y&&y.validation||"email"!==(null==y?void 0:y.name)&&!M("email")?null!=y&&y.validation||"state"!==(null==y?void 0:y.name)?null!=y&&y.validation||"postcode"!==(null==y?void 0:y.name)?null!=y&&y.validation||"phone"!==(null==y?void 0:y.name)&&!M("phone")||(R="phone"):R="postcode":R="state":R="email";var A=Object.entries(rtsbParams.userRoles).map((function(e){var t=FF(e,2),n=t[0];return{label:t[1],value:n}}));return(0,r.jsx)("div",{className:"rtsb-repeater-item",ref:n?function(e){n.current=e,d(e)}:d,style:P,children:(0,r.jsx)(OB,{title:(0,r.jsxs)("span",{className:"title-wrapper",children:[(0,r.jsx)(rh,{title:"Rearrange",placement:"left",children:(0,r.jsx)(AB,DF(DF({},u),f))}),(0,r.jsxs)(WF,{children:[" ",(0,r.jsxs)(mm,{wrap:!0,gap:"small",align:"center",children:[(0,r.jsx)($m,{className:"on"===(null==y?void 0:y.isEnable)?"green":"red",style:{display:"inline-flex",alignItems:"center"},children:(0,r.jsxs)("div",{style:{display:"none"},children:[" ","on"===(null==y?void 0:y.isEnable)?"Enabled":"Disabled"," "]})}),["custom_field"].includes(null==y?void 0:y.name)?"Custom Field: ":null," ",(null==y?void 0:y.label)||"Untitled Field"," "]})," "]})]}),extra:(0,r.jsxs)(WF,{onClick:function(){_(!O)},children:[O?(0,r.jsx)(DB,{style:{cursor:"pointer"}}):(0,r.jsx)(BB,{style:{cursor:"pointer"}}),"no"!==(null==y?void 0:y.deletable)?(0,r.jsx)(xP,{style:{position:"absolute",right:"50px",margin:"auto",height:"20px",color:$},onClick:function(e){return b(e,null==y?void 0:y.id)},onMouseEnter:function(){return N("var(--rtsb-admin-color-secondary-hover)")},onMouseLeave:function(){return N("var(--rtsb-admin-color-secondary)")}}):null]}),className:"rtsb-card-wrapper ".concat(O?"rtsb-card-expanded":"rtsb-card-no-expanded"," "),children:(0,r.jsx)(IB,{isOpen:O,transition:"height 300ms cubic-bezier(0.4, 0, 0.2, 1)",children:(0,r.jsxs)("div",{className:"rtsb_group_repeater",children:[(0,r.jsx)(SF,{label:"Enable Field?",help:"Switch on to enable this field. When disabled, the field will not appear to users.",value:null==y?void 0:y.isEnable,name:"isEnable",onChange:I}),(0,r.jsx)(eF,{label:"Field Label",help:"Enter the field label to be displayed next to the field.",placeholder:"Ex: First Name",value:null==y?void 0:y.label,name:"label",onChange:I}),(0,r.jsx)(eF,{label:"Field Placeholder",help:"Enter the field placeholder to be displayed inside the field.",placeholder:"Ex: Enter your first name",value:null==y?void 0:y.placeholder,name:"placeholder",onChange:I}),["custom_field"].includes(null==y?void 0:y.name)?null:(0,r.jsx)(eF,{label:"Field Name",help:"no"===(null==y?void 0:y.deletable)?"This is the unique field name. You cannot change the default field name.":"Enter the name of the field used in form processing (e.g., first_name). This should be unique to avoid conflicts.",disabled:!0,placeholder:"Name",value:null==y?void 0:y.name,name:"name"}),["custom_field"].includes(null==y?void 0:y.name)&&!["heading"].includes(null==y?void 0:y.type)?(0,r.jsx)(eF,{label:"Field Name",help:"Required Field",placeholder:"Custom Key",value:y.custom_key||"custom_key_".concat(null==y?void 0:y.id),name:"custom_key",onChange:I}):null,["custom_field"].includes(null==y?void 0:y.name)?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(iF,{label:"Custom Field Type",help:"Select your preferred custom field type.",options:[{value:"text",label:"Text"},{value:"textarea",label:"Textarea"},{value:"select",label:"Select"},{value:"radio",label:"Radio"},{value:"number",label:"Number"},{value:"checkbox",label:"Checkbox"},{value:"email",label:"Email"},{value:"tel",label:"Tel"},{value:"heading",label:"Heading"},{value:"multiselect",label:"Multi-Select"},{value:"checkboxgroup",label:"Checkbox Group"},{value:"date",label:"Date"},{value:"time",label:"Time"},{value:"month",label:"Month"},{value:"week",label:"Week"}],value:(null==y?void 0:y.type)||"text",name:"type",onChange:I})}):null,["custom_field"].includes(null==y?void 0:y.name)&&["heading"].includes(null==y?void 0:y.type)?(0,r.jsx)(iF,{label:"Heading Tag",help:"Select the heading tag.",options:[{value:"h1",label:"H1"},{value:"h2",label:"H2"},{value:"h3",label:"H3"},{value:"h4",label:"H4"},{value:"h5",label:"H5"},{value:"h6",label:"H6"},{value:"p",label:"P"},{value:"span",label:"Span"},{value:"div",label:"Div"}],value:(null==y?void 0:y.tag)||"h3",name:"tag",onChange:I}):null,["select","radio","checkboxgroup","multiselect","heading"].includes(null==y?void 0:y.type)?null:(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(eF,{label:"checkbox"===(null==y?void 0:y.type)?"Value":"Default Value",help:"country"===(null==y?void 0:y.name)?"Enter a default value. Ex: US.":"Enter a default value. This is the pre-filled data for this field, shown to users by default.",placeholder:"checkbox"===(null==y?void 0:y.type)?"Value":"Enter a default value",value:null==y?void 0:y.default,name:"default",onChange:I})}),!["select","checkbox","radio","checkboxgroup","multiselect","heading","number"].includes(null==y?void 0:y.type)&&["custom_field"].includes(null==y?void 0:y.name)?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(iF,{label:"Field Validation",help:"Choose the field validation rule. This prevents incorrect or incomplete submissions.",options:[{value:"default",label:"Default"},{value:"email",label:"Email"},{value:"phone",label:"Phone"},{value:"postcode",label:"Postcode"},{value:"state",label:"State"}],value:R,name:"validation",onChange:I})}):null,(0,r.jsx)(eF,{label:"Custom Class",help:"Add custom CSS classes for styling purposes. You can input multiple classes separated by commas (e.g., form-row-first, form-row-last, form-row-wide).",placeholder:"Custom Class",value:null==y?void 0:y.custom_class,name:"custom_class",onChange:I}),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(iF,{label:"Field Visibility",help:"Please choose whether to show this field to all users or only to specific users.",isPro:"yes"!==(null===(o=rtsbParams)||void 0===o?void 0:o.hasPro),options:[{value:"all",label:"All users"},{value:"specific",label:"Only users with a specific role"}],value:(null==y?void 0:y.fieldVisibility)||"all",name:"fieldVisibility",onChange:I}),["specific"].includes(null==y?void 0:y.fieldVisibility)?(0,r.jsx)(gF,{label:"Select User Roles",help:"Please choose user roles to show this field.",isPro:"yes"!==(null===(i=rtsbParams)||void 0===i?void 0:i.hasPro),options:A,value:null==y?void 0:y.fieldVisibilityRoles,name:"fieldVisibilityRoles",onChange:I}):null]}),"checkbox"===(null==y?void 0:y.type)?(0,r.jsx)(SF,{label:"Default Checkbox State",help:"Switch on to set the checkbox to be checked by default.",value:null==y?void 0:y.isChecked,name:"isChecked",onChange:I}):null,["custom_field"].includes(null==y?void 0:y.name)&&["heading"].includes(null==y?void 0:y.type)?null:(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(SF,{label:"Required Field",help:"Switch on to make this field required for the checkout process to continue.",value:null==y?void 0:y.isRequired,name:"isRequired",onChange:I})}),["custom_field"].includes(null==y?void 0:y.name)&&!["heading"].includes(null==y?void 0:y.type)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(SF,{label:"Show in Email",help:"Switch on this option to include the field’s value in customer and admin emails.",value:null==y?void 0:y.isShowinEmail,name:"isShowinEmail",isPro:"yes"!==(null===(a=rtsbParams)||void 0===a?void 0:a.hasPro),onChange:I}),(0,r.jsx)(SF,{label:"Show in Thank You Page",help:"Switch on this option to display the field’s value on the thank you page.",value:null==y?void 0:y.isShowinOrderDetails,name:"isShowinOrderDetails",isPro:"yes"!==(null===(c=rtsbParams)||void 0===c?void 0:c.hasPro),onChange:I})]}):null,["select","radio","checkboxgroup","multiselect"].includes(y.type)?(0,r.jsx)(AF,{fieldGroup:y,onChange:I,group:x,allGroups:S,setGroups:C}):null]})})})})}))),UF=[{id:1,deletable:"no",isEnable:"on",label:"First Name",type:"email",options:[],name:"first_name",validation:[],placeholder:"Placeholder Text ",isRequired:"on",default:"Name Is Required ",custom_class:"row-first"},{id:2,deletable:"no",isEnable:"on",label:"Last Name",type:"text",options:[],name:"last_name",isRequired:"on",placeholder:"Last Name ",default:"NO value",validation:[],custom_class:"row-last"},{id:3,deletable:"no",label:"Company Name",type:"text",options:[],isEnable:"on",name:"company",custom_class:"row-first"},{id:4,deletable:"no",label:"Country ",name:"country",type:"text",options:[],isEnable:"on"},{id:5,deletable:"no",label:"Email Address ",type:"text",options:[],isEnable:"on",name:"email",isRequired:"on",custom_class:"row-first"},{id:6,deletable:"no",label:"Street address",type:"text",options:[],name:"address_1",custom_class:"row-last",validation:["state"],isEnable:"on"},{id:7,deletable:"no",label:"Appartment Address ",type:"text",options:[],isEnable:"on",name:"address_2"},{id:8,deletable:"no",label:"City / Town ",type:"text",options:[],isEnable:"on",name:"city",validation:[],isRequired:"on",custom_class:"row-first"},{id:9,deletable:"no",label:"State/Country ",type:"text",options:[],name:"state",isEnable:"on"},{id:10,deletable:"no",label:"Postcode / ZIP",type:"text",options:[],isEnable:"on",name:"postcode",isRequired:"on",custom_class:"row-last"},{id:11,deletable:"no",label:"Phone",type:"text",options:[],isEnable:"on",name:"phone",isRequired:"on"}],GF=[{id:1,deletable:"no",isEnable:"on",label:"Order Note",type:"text",options:[],name:"order_comments",validation:[],placeholder:"Placeholder Text ",isRequired:"",default:"",custom_class:""}];function YF(e){return YF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},YF(e)}function KF(e){return function(e){if(Array.isArray(e))return tH(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||eH(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function XF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function QF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XF(Object(n),!0).forEach((function(t){ZF(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ZF(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=YF(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=YF(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==YF(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||eH(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eH(e,t){if(e){if("string"==typeof e)return tH(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tH(e,t):void 0}}function tH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var nH=function(e){var n=JF(l(),2),o=n[0],i=n[1],a=e.field,s=(a.help,a.value),u=(a.placeholder,e.id),f=[];f="checkout_additional_fields"===u?GF:UF;var p=s?aN(s):[];p=p.length>0?p:f;var h=JF((0,t.useState)(p),2),v=h[0],m=h[1],g=JF((0,t.useState)(0),2),b=g[0],y=g[1],w=JF((0,t.useState)(0),2),x=w[0],S=(w[1],JF((0,t.useState)(!1),2)),C=S[0],k=S[1],E=JF((0,t.useState)(!1),2),O=E[0],_=E[1],j=(0,t.useRef)(null),$=v.length,N=function(e,t){if(e.stopPropagation(),window.confirm("Are you sure you want to delete?")){var n=v.filter((function(e){return e.id!==t}));m(n),_(!0)}},P=IA(PA(ET),PA(wT,{coordinateGetter:Mq}));var I=function(e,t,n){_(!0);var r=v.map((function(r){return"type"===t&&(r.validation="default"),r.id===e?QF(QF({},r),{},ZF({},t,n)):r}));m(r)};return(0,t.useEffect)((function(){C&&j.current&&(j.current.scrollIntoView({behavior:"smooth"}),k(!1)),_(!0)}),[v,C]),(0,t.useEffect)((function(){!function(){if(O){var e=v.filter((function(e){return e.name&&""!==e.name.trim()})).map((function(e,t){return QF(QF({},e),{},{id:t+1})}));i({type:d,id:u,value:e,fieldType:"checkout_fields"}),_(!1)}}()}),[O]),(0,r.jsx)(lq,{sensors:P,collisionDetection:zA,onDragEnd:function(e){if("yes"===rtsbParams.hasPro){var t=e.active,n=e.over;t.id!==n.id&&(m((function(e){var r=e.findIndex((function(e){return e.id===t.id})),o=e.findIndex((function(e){return e.id===n.id}));return vq(e,r,o)})),_(!0))}else i({type:c,general:QF(QF({},o.general),{},{proInfoVisible:!0})})},children:(0,r.jsxs)("div",{className:"rtsb-repeater-wrapper",style:{paddingTop:x,margin:0},children:[(0,r.jsx)(Cq,{items:v,strategy:wq,children:v.length>0?v.map((function(e,t){var n=t===$-1?j:null;return(0,r.jsx)(VF,{fieldId:e.id,fieldIndex:t,fieldActivePanel:b,fieldHandleRemovePanel:N,fieldGroup:e,setGroupFieldData:I,ref:n},t)})):(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:"Kindly add at least one fields."}})}),(0,r.jsx)("div",{className:"repeater-footer",style:{marginTop:"15px"},children:(0,r.jsx)(Zs,{className:"rtsb-button",onClick:function(){if("yes"===rtsbParams.hasPro){var e=$>0?$+1:1;m([].concat(KF(v),[{id:e,deletable:"yes",label:"Custom Field Label",name:"custom_field",custom_key:"custom_field_".concat(e),type:"text",validation:"default",custom_class:"form-row-wide",fieldVisibility:"all",fieldVisibilityRoles:[],options:[]}])),y(e),k(!0),_(!0)}else i({type:c,general:QF(QF({},o.general),{},{proInfoVisible:!0})})},style:{fontSize:"14px",color:"#fff"},children:"Add Custom Field"})})]})})};function rH(e){return rH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rH(e)}function oH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function iH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oH(Object(n),!0).forEach((function(t){aH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aH(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=rH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=rH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rH(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lH=mb.TextArea,cH=function(e){var t=e.name,n=e.value,o=e.placeholder,i=e.isPro,a=e.onChange,l=e.disabled,c={};return l?c.disabled=l||!1:i&&(c.disabled=i),(0,r.jsx)(KB,{field:e,type:"text",children:(0,r.jsx)(lH,iH(iH({},c),{},{rows:4,className:"rtsb-form-field",placeholder:o,name:t,value:n,onChange:function(e){return a(t,e.target.value)}}))})};function sH(e){return sH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sH(e)}function uH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uH(Object(n),!0).forEach((function(t){dH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dH(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=sH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=sH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sH(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pH=function(e){var t=e.name,n=e.value,o=e.onChange,i=e.placeholder,a=e.disabled,l=e.isPro,c={};return a?c.disabled=a||!1:l&&(c.disabled=l),(0,r.jsx)(KB,{field:e,type:"number",children:(0,r.jsx)(uS,fH(fH({},c),{},{className:"rtsb-form-field",placeholder:i,name:t,value:"null"!==n?n:"",defaultValue:"null"!==n?n:"",min:0,onChange:function(e){return o(t,e)}}))})};function hH(e){return hH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hH(e)}function vH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vH(Object(n),!0).forEach((function(t){gH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gH(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=hH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=hH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hH(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bH(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return yH(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yH(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var wH=(0,t.forwardRef)((function(e,n){var o=Nq({id:e.id}),i=o.attributes,a=o.listeners,l=o.setNodeRef,c=o.transform,s=o.transition,u=o.isDragging,f=e.option,d=(e.index,e.activePanel,e.allOptions),p=e.handleRemovePanel,h=e.setFieldsOptions,v=bH((0,t.useState)("var(--rtsb-admin-color-secondary)"),2),m=v[0],g=v[1],b={transform:yA.Translate.toString(c),transition:s,opacity:u?.8:1,zIndex:u?1:0,margin:"0.5rem 0",position:"relative",scrollMarginTop:98},y=function(e,t){var n=d.map((function(n){return"default"===e&&(n.default="off"),n.id===f.id?mH(mH({},n),{},gH({},e,t)):n}));h(n)};return(0,r.jsx)("div",{className:"rtsb-repeater-item",ref:n?function(e){n.current=e,l(e)}:l,style:b,children:(0,r.jsx)("div",{className:"rtsb_group_repeater rtsb-inline-options-field",children:(0,r.jsxs)(mm,{wrap:!0,gap:"small",children:[(0,r.jsx)(rh,{title:"Rearrange",placement:"left",children:(0,r.jsx)(AB,mH(mH({},i),a))}),(0,r.jsx)(eF,{label:"",help:"Option Name",placeholder:"Option",value:f.name,name:"name",onChange:y}),(0,r.jsx)(pH,{label:"",help:"Option Price",placeholder:"Price",value:f.price,name:"price",onChange:y}),(0,r.jsx)(SF,{label:"",help:"Default Selected?",value:f.default,name:"default",onChange:y}),(0,r.jsx)(xP,{style:{color:m},onClick:function(e){return p(e,null==f?void 0:f.id)},onMouseEnter:function(){return g("var(--rtsb-admin-color-secondary-hover)")},onMouseLeave:function(){return g("var(--rtsb-admin-color-secondary)")}})]})})})}));function xH(e){return function(e){if(Array.isArray(e))return kH(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||CH(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function SH(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||CH(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function CH(e,t){if(e){if("string"==typeof e)return kH(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kH(e,t):void 0}}function kH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var EH=function(e){var n=e.fieldGroup,o=e.onChange,i=null!=n&&n.options?n.options:[],a=SH((0,t.useState)(i),2),l=a[0],c=a[1],s=SH((0,t.useState)(0),2),u=s[0],f=s[1],d=SH((0,t.useState)(30),2),p=d[0],h=d[1],v=function(e,t){if(e.stopPropagation(),window.confirm("Are you sure you want to delete?")){var n=l.filter((function(e){return e.id!==t}));c(n),h(0)}},m=IA(PA(ET),PA(wT,{coordinateGetter:Mq}));return(0,t.useEffect)((function(){o("options",l)}),[l]),(0,r.jsx)(lq,{sensors:m,collisionDetection:zA,onDragEnd:function(e){var t=e.active,n=e.over;t.id!==n.id&&c((function(e){var r=e.findIndex((function(e){return e.id===t.id})),o=e.findIndex((function(e){return e.id===n.id}));return vq(e,r,o)}))},children:(0,r.jsxs)("div",{className:"rtsb-repeater-wrapper field-options-wrapper",style:{paddingTop:p,margin:0},children:[(0,r.jsxs)(Cq,{items:l,strategy:wq,children:[l.length>0?(0,r.jsx)(NF,{label:"Options",subtitle:""}):null,l.length>0?l.map((function(e,t){return(0,r.jsx)(wH,{id:e.id,index:t,activePanel:u,handleRemovePanel:v,option:e,allOptions:l,setFieldsOptions:c},e.id)})):null]}),(0,r.jsx)("div",{className:"repeater-footer",style:{marginTop:"15px",display:"flex",justifyContent:"flex-end",position:"static",minWidth:"140px"},children:(0,r.jsxs)(Zs,{className:"rtsb-button",onClick:function(){var e=l.length+1;c([].concat(xH(l),[{id:e}])),f(e),h(30)},style:{fontSize:"13px",padding:"7px 10px",color:"#fff",minWidth:"140px"},children:[" ","Add New Option"," "]})})]})})};function OH(e){return OH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},OH(e)}function _H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_H(Object(n),!0).forEach((function(t){$H(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $H(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=OH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=OH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==OH(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NH(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return PH(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?PH(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function PH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var IH=qD.Text,MH=(qD.Link,(0,t.forwardRef)((function(e,n){var o=Nq({id:e.fieldId}),i=o.attributes,a=o.listeners,l=o.setNodeRef,c=o.transform,s=o.transition,u=o.isDragging,f=e.fieldIndex,d=e.fieldActivePanel,p=e.fieldHandleRemovePanel,h=e.fieldGroup,v=e.setGroupFieldData,m=e.group,g=(e.groupIndex,e.allGroups),b=e.setGroups,y=NH((0,t.useState)(String(f+1)===String(d)),2),w=y[0],x=y[1],S=NH((0,t.useState)("var(--rtsb-admin-color-secondary)"),2),C=S[0],k=S[1],E={transform:yA.Translate.toString(c),transition:s,opacity:u?.8:1,zIndex:u?1:0,margin:"0.5rem 0",position:"relative",scrollMarginTop:98},O=function(e,t){v(h.id,e,t)};return(0,r.jsx)("div",{className:"rtsb-repeater-item",ref:n?function(e){n.current=e,l(e)}:l,style:E,children:(0,r.jsx)(OB,{title:(0,r.jsxs)("span",{className:"title-wrapper",children:[(0,r.jsx)(rh,{title:"Rearrange",placement:"left",children:(0,r.jsx)(AB,jH(jH({},i),a))}),(0,r.jsxs)(IH,{children:[" ",(null==h?void 0:h.label)||"Untitled Field"," "]})]}),extra:(0,r.jsxs)(IH,{onClick:function(){x(!w)},children:[w?(0,r.jsx)(DB,{style:{cursor:"pointer"}}):(0,r.jsx)(BB,{style:{cursor:"pointer"}}),(0,r.jsx)(xP,{style:{position:"absolute",right:"50px",margin:"auto",height:"20px",color:C},onClick:function(e){return p(e,null==h?void 0:h.id)},onMouseEnter:function(){return k("var(--rtsb-admin-color-secondary-hover)")},onMouseLeave:function(){return k("var(--rtsb-admin-color-secondary)")}})]}),className:"rtsb-card-wrapper ".concat(w?"rtsb-card-expanded":"rtsb-card-no-expanded"," "),children:(0,r.jsx)(IB,{isOpen:w,transition:"height 300ms cubic-bezier(0.4, 0, 0.2, 1)",children:(0,r.jsxs)("div",{className:"rtsb_group_repeater",children:[(0,r.jsx)(eF,{label:"Field Label",help:"Enter the field label. This is a mandatory field.",placeholder:"Field Label",value:h.label,name:"label",onChange:O}),(0,r.jsx)(iF,{label:"Field Type",help:"Select your desired field type.",options:[{value:"text",label:"Text"},{value:"textarea",label:"TextArea"},{value:"number",label:"Number"},{value:"radio",label:"Radio"},{value:"select",label:"Select"},{value:"image_upload",label:"Image Upload"},{value:"checkbox",label:"Checkbox"},{value:"text_select",label:"Text Select"},{value:"switch",label:"Switch"}],value:(null==h?void 0:h.type)||"text",name:"type",onChange:O}),["select","checkbox","radio","text_select","switch"].includes(h.type)?null:(0,r.jsx)(pH,{label:"Price",help:"Enter the field price.",placeholder:"Price",value:h.price,name:"price",onChange:O}),(0,r.jsx)(cH,{label:"Description",help:"Enter the field description.",placeholder:"Field Description",value:h.description,name:"description",onChange:O}),["checkbox","radio","text_select","switch"].includes(h.type)?null:(0,r.jsx)(eF,{label:"Placeholder",help:"Enter the field placeholder. This can also be used if the input type is select.",placeholder:"Placeholder Text",value:h.placeholder,name:"placeholder",onChange:O}),(0,r.jsx)(SF,{label:"Is The Field Required?",help:"Switch on to add this field as required.",value:null==h?void 0:h.required,name:"required",onChange:O}),(0,r.jsx)(SF,{label:"Show Description as Tooltips?",help:"Switch on to show the field description as a tooltip.",value:null==h?void 0:h.tooltip,name:"tooltip",onChange:O}),["checkbox","text_select","select","switch"].includes(h.type)?(0,r.jsx)(SF,{label:"Allow Multiple Selection?",help:"Switch on to allow multiple selection.",value:null==h?void 0:h.multiple,name:"multiple",onChange:O}):null,["select","checkbox","radio","text_select","switch"].includes(h.type)?(0,r.jsx)(EH,{fieldGroup:h,onChange:O,group:m,allGroups:g,setGroups:b}):null]})})})})})));function RH(e){return RH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},RH(e)}function AH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function TH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AH(Object(n),!0).forEach((function(t){qH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qH(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=RH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=RH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==RH(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DH(e){return function(e){if(Array.isArray(e))return BH(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||zH(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function LH(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||zH(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zH(e,t){if(e){if("string"==typeof e)return BH(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?BH(e,t):void 0}}function BH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var FH=function(e){var n=e.group,o=e.groupIndex,i=e.groupFields,a=e.allGroups,l=e.setGroups,c=LH((0,t.useState)(i||[]),2),s=c[0],u=c[1],f=LH((0,t.useState)(0),2),d=f[0],p=f[1],h=LH((0,t.useState)(0),2),v=h[0],m=(h[1],LH((0,t.useState)(!1),2)),g=m[0],b=m[1],y=(0,t.useRef)(null),w=s.length;(0,t.useEffect)((function(){g&&y.current&&(y.current.scrollIntoView({behavior:"smooth"}),b(!1))}),[s,g]);var x=function(e,t){if(e.stopPropagation(),window.confirm("Are you sure you want to delete?")){var n=s.filter((function(e){return e.id!==t}));u(n)}},S=IA(PA(ET),PA(wT,{coordinateGetter:Mq}));var C=function(e,t,n){var r=s.map((function(r){return r.id===e?TH(TH({},r),{},qH({},t,n)):r}));u(r)};return(0,t.useEffect)((function(){var e;e=a.map((function(e,t){return e.id===n.id?TH(TH({},e),{},{inputs:s}):e})),l(e)}),[s]),(0,r.jsx)(lq,{sensors:S,collisionDetection:zA,onDragEnd:function(e){var t=e.active,n=e.over;t.id!==n.id&&u((function(e){var r=e.findIndex((function(e){return e.id===t.id})),o=e.findIndex((function(e){return e.id===n.id}));return vq(e,r,o)}))},children:(0,r.jsxs)("div",{className:"rtsb-repeater-wrapper",style:{paddingTop:v,margin:0},children:[(0,r.jsx)(Cq,{items:s,strategy:wq,children:s.length>0?s.map((function(e,t){var i=t===w-1?y:null;return(0,r.jsx)(MH,{fieldId:e.id,fieldIndex:t,fieldActivePanel:d,fieldHandleRemovePanel:x,fieldGroup:e,setGroupFieldData:C,groupIndex:o,group:n,allGroups:a,setGroups:l,ref:i},t)})):null}),(0,r.jsx)("div",{className:"repeater-footer",style:{marginTop:"15px",display:"flex",justifyContent:"flex-end",position:"static"},children:(0,r.jsxs)(Zs,{className:"rtsb-button",onClick:function(){var e=s.length>0?s.length+1:1;u([].concat(DH(s),[{id:e,label:"",type:"text",price:"",options:[]}])),p(e),b(!0)},style:{fontSize:"13px",padding:"7px 10px",color:"#fff",minWidth:"140px"},children:[" ","Add New Field"]})})]})})};function HH(e){return HH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HH(e)}function WH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function VH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WH(Object(n),!0).forEach((function(t){UH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function UH(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=HH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=HH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==HH(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GH(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return YH(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?YH(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function YH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var KH=qD.Text,XH=(0,t.forwardRef)((function(e,n){var o,i=Nq({id:e.groupId}),a=i.attributes,l=i.listeners,c=i.setNodeRef,s=i.transform,u=i.transition,f=i.isDragging,d=e.group,p=e.groupIndex,h=e.allGroups,v=e.setGroups,m=e.activePanel,g=e.handleRemovePanel,b=e.field,y=GH((0,t.useState)(String(p+1)===String(m)),2),w=y[0],x=y[1],S=GH((0,t.useState)("var(--rtsb-admin-color-secondary)"),2),C=S[0],k=S[1],E={transform:yA.Translate.toString(s),transition:u,opacity:f?.8:1,zIndex:f?1:0,margin:"0.5rem 0",position:"relative",scrollMarginTop:98},O=function(e,t){var n=h.map((function(n){return n.id===d.id?VH(VH({},n),{},UH({},e,t)):n}));v(n)},_=function(e,t){var n=h.map((function(n){return n.id===d.id?VH(VH({},n),{},UH({},e,t)):n}));v(n)};return(0,r.jsx)("div",{className:"rtsb-repeater-item",ref:n?function(e){n.current=e,c(e)}:c,style:E,children:(0,r.jsx)(OB,{title:(0,r.jsxs)("span",{className:"title-wrapper",children:[(0,r.jsx)(rh,{title:"Rearrange",placement:"left",children:(0,r.jsx)(AB,VH(VH({},a),l))}),(0,r.jsxs)(KH,{children:[" ",(null==d?void 0:d.name)||"Untitled Group"," "]})]}),extra:(0,r.jsxs)(KH,{onClick:function(){x(!w)},children:[w?(0,r.jsx)(DB,{style:{cursor:"pointer"}}):(0,r.jsx)(BB,{style:{cursor:"pointer"}}),(0,r.jsx)(xP,{style:{position:"absolute",right:"50px",margin:"auto",height:"20px",color:C},onClick:function(e){return g(e,null==d?void 0:d.id)},onMouseEnter:function(){return k("var(--rtsb-admin-color-secondary-hover)")},onMouseLeave:function(){return k("var(--rtsb-admin-color-secondary)")}})]}),className:"rtsb-card-wrapper ".concat(w?"rtsb-card-expanded":"rtsb-card-no-expanded"," "),children:(0,r.jsx)(IB,{isOpen:w,transition:"height 300ms cubic-bezier(0.4, 0, 0.2, 1)",children:(0,r.jsxs)("div",{className:"rtsb_group_repeater",children:[(0,r.jsx)(eF,{label:"Group Name",help:"Enter the group name. This is a required field.",placeholder:"Name",value:d.name,name:"name",onChange:O}),(0,r.jsx)(cH,{label:"Group Description",help:"Enter the group description.",value:d.description,name:"description",onChange:O}),(0,r.jsx)(iF,{label:"Group By",help:"Select your desired field type.",options:[{value:"category",label:"Category"},{value:"product",label:"Product"}],value:(null==d?void 0:d.group_by)||"category",name:"group_by",onChange:O}),"category"===((null==d?void 0:d.group_by)||"category")?(0,r.jsx)(gF,{label:"Group By Category",help:"Choose categories to include. Leave blank to apply in all categories.",func_with_param:["RadiusTheme\\SB\\Helpers\\Fns","products_category_query"],placeholder:"Select Category",options:(null==b?void 0:b.cat_list)||[],name:"group_cat",value:null!=d&&d.group_cat?d.group_cat:[],onChange:_}):null,"product"===((null==d?void 0:d.group_by)||"category")?(0,r.jsx)(gF,{label:"Group By Product",help:"Choose products to include. Leave blank to apply in all product.",func_with_param:["RadiusTheme\\SB\\Helpers\\Fns","get_post_types",{post_type:["product"]}],placeholder:"Select Product",options:(null==b?void 0:b.product_list)||[],name:"group_product",value:null!=d&&d.group_product?d.group_product:[],onChange:_}):null,(0,r.jsx)(SF,{label:"Display Group Name",help:"Switch on to show group name in the frontend.",value:null==d?void 0:d.show_name,name:"show_name",onChange:O}),(0,r.jsx)(SF,{label:"Display Group Description",help:"Switch on to show group description in the frontend.",value:null==d?void 0:d.show_desc,name:"show_desc",onChange:O}),(null==d||null===(o=d.inputs)||void 0===o?void 0:o.length)>0?(0,r.jsx)(NF,{label:"Group Fields",subtitle:""}):null,(0,r.jsx)(FH,{groupIndex:p,group:d,groupFields:(null==d?void 0:d.inputs)||[],allGroups:h,setGroups:v})]})})})})}));function QH(e){return QH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},QH(e)}function ZH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function JH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZH(Object(n),!0).forEach((function(t){eW(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eW(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=QH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=QH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==QH(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tW(e){return function(e){if(Array.isArray(e))return oW(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||rW(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nW(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||rW(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rW(e,t){if(e){if("string"==typeof e)return oW(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oW(e,t):void 0}}function oW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var iW=function(e){var n=nW(l(),2),o=(n[0],n[1]),i=e.field.value,a=e.id,c=i?aN(i):[],s=nW((0,t.useState)(c),2),u=s[0],f=s[1],p=nW((0,t.useState)(0),2),h=p[0],v=p[1],m=nW((0,t.useState)(0),2),g=m[0],b=(m[1],nW((0,t.useState)(!1),2)),y=b[0],w=b[1],x=(0,t.useRef)(null),S=u.length;(0,t.useEffect)((function(){y&&x.current&&(x.current.scrollIntoView({behavior:"smooth"}),w(!1))}),[u,y]);var C=function(e,t){if(e.stopPropagation(),window.confirm("Are you sure you want to delete?")){var n=u.filter((function(e){return e.id!==t}));f(n)}},k=IA(PA(ET),PA(wT,{coordinateGetter:Mq}));return(0,t.useEffect)((function(){var e;e=u.filter((function(e){return e.name&&""!==e.name.trim()})).map((function(e,t){return JH(JH({},e),{},{id:t+1})})),o({type:d,id:a,value:e,fieldType:"product_addons_special_settings"})}),[u]),(0,r.jsx)(lq,{sensors:k,collisionDetection:zA,onDragEnd:function(e){var t=e.active,n=e.over;t.id!==n.id&&f((function(e){var r=e.findIndex((function(e){return e.id===t.id})),o=e.findIndex((function(e){return e.id===n.id}));return vq(e,r,o)}))},children:(0,r.jsxs)("div",{className:"rtsb-repeater-wrapper",style:{paddingTop:g},children:[(0,r.jsx)(Cq,{items:u,strategy:wq,children:u.length>0?u.map((function(t,n){var o=n===S-1?x:null;return(0,r.jsx)(XH,{groupId:t.id,groupIndex:n,group:t,allGroups:u,setGroups:f,activePanel:h,handleRemovePanel:C,field:e.field,ref:o},t.id)})):null}),(0,r.jsx)("div",{className:"repeater-footer",style:{marginTop:"15px"},children:(0,r.jsxs)(Zs,{className:"rtsb-button",onClick:function(){var e=u.length>0?u.length+1:1,t={id:e,inputs:[]};f([].concat(tW(u),[t])),v(e),w(!0)},style:{fontSize:"14px",color:"#fff"},children:[" ","Add New Group"," "]})})]})})};function aW(e){return aW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},aW(e)}function lW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lW(Object(n),!0).forEach((function(t){sW(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sW(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=aW(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=aW(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==aW(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uW(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return fW(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fW(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var dW=function(e){var n,o,i,a,c=e.field,s=c.help,u=c.value,f=c.min,p=c.max,h=c.unit,v=c.disabled,m=c.isPro,g=e.id,b=null===(n=e.field)||void 0===n?void 0:n.fieldType,y=null===(o=e.field)||void 0===o?void 0:o.parentId,w=null===(i=e.field)||void 0===i?void 0:i.index,x=null===(a=e.field)||void 0===a?void 0:a.repeaterData,S=uW(l(),2),C=(S[0],S[1]),k=uW((0,t.useState)(u||1),2),E=k[0],O=k[1],_={};v?_.disabled=v||!1:m&&(_.disabled=m),(0,t.useEffect)((function(){O(u)}),[u]);var j=function(e){O(e),C({type:d,id:g,value:e,fieldType:b,parentId:y,repeaterData:x,index:w})};return(0,r.jsxs)("div",{className:"rtsb-field slider",children:[(0,r.jsx)(Nm,{field:e.field}),(0,r.jsxs)("div",{className:"rtsb-field__content",children:[(0,r.jsx)("div",{className:"rtsb-field-control",children:(0,r.jsxs)("div",{className:"slider-wrapper",children:[(0,r.jsx)(vk,cW(cW({},_),{},{className:"rtsb-form-field",min:f,max:p,onChange:j,value:E})),(0,r.jsxs)("div",{className:"number-input",children:[(0,r.jsx)(uS,cW(cW({},_),{},{min:f,max:p,onChange:j,value:E})),(0,r.jsx)("span",{children:h||"px"})]})]})}),(0,r.jsx)("div",{className:"rtsb-field__help",dangerouslySetInnerHTML:{__html:s}})]})]})};function pW(e){return pW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pW(e)}function hW(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vW(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vW(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var mW=function(e){var t=e.field,n=t.fieldType,o=t.type,i=t.dependency,a=t.id,c=t.repeaterDefaults,s=hW(l(),2),u=s[0];s[1];if(function(){if(i&&!v().isEmpty(i)){var t=i.rules,r=i.relation,o=t.map((function(t){var r,o=t.item,i=t.value,a=t.operator,l=hW(o.split("."),4),c=l[0],s=l[1],f=l[2],d=l[3],p=null===(r=u.sections[c])||void 0===r||null===(r=r.list[s])||void 0===r?void 0:r.fields[f],h=(null==p?void 0:p.value)||"";if("repeater"===n&&"on"!==(null==p?void 0:p.value)){var v,m=aN((null==p?void 0:p.value)||[]);h=null===(v=m[e.field.index])||void 0===v?void 0:v[d]}if("search_and_multi_select"===(null==p?void 0:p.type)&&(h=h.map((function(e){return("string"==typeof e?JSON.parse(e):e).value}))),"checkbox"===(null==p?void 0:p.type)||"search_and_multi_select"===(null==p?void 0:p.type)){if("in"===a.toLowerCase()||"=="===a)return Array.isArray(i)?i.every((function(e){return h.includes(e)})):h.includes(i);if("!in"===a.toLowerCase()||"!="===a)return Array.isArray(i)?!i.every((function(e){return h.includes(e)})):!h.includes(i);if("any"===a.toLowerCase()){if(Array.isArray(i))return i.some((function(e){return h.includes(e)}))}else{if("empty"===a.toLowerCase())return 0>=h.length;if("!empty"===a.toLowerCase())return h.length>0}}else{if("in"===a.toLowerCase())return i.includes(h);if("!in"===a.toLowerCase())return!i.includes(h);if("=="===a){if(h===i)return!0}else if("!="===a&&h!=i)return!0}return!1}));return 1===o.length?o[0]:r&&"or"===r.toLowerCase()?o.some((function(e){return e})):o.every((function(e){return e}))}return!0}()){if("object"===pW(c)){var f=e.field.isDefault;if(c[f])if(!Object.keys(c[f]).includes(a))return}return"switch"===o?(0,r.jsx)(qm,{id:e.id,field:e.field}):"checkbox"===o?(0,r.jsx)(VO,{id:e.id,field:e.field}):"textarea"===o?(0,r.jsx)(_b,{id:e.id,field:e.field}):"text_editor"===o?(0,r.jsx)(WR,{id:e.id,field:e.field}):"select"===o?(0,r.jsx)(Px,{id:e.id,field:e.field}):"number"===o?(0,r.jsx)(pS,{id:e.id,field:e.field}):"sortable"===o?(0,r.jsx)(wO,{id:e.id,field:e.field}):"title"===o?(0,r.jsx)(vS,{id:e.id,field:e.field}):"description"===o?(0,r.jsx)(OR,{id:e.id,field:e.field}):"datetime"===o?(0,r.jsx)(oN,{id:e.id,field:e.field}):"color"===o?(0,r.jsx)(_O,{id:e.id,field:e.field}):"fileupload"===o?(0,r.jsx)(_I,{id:e.id,field:e.field}):"gradient"===o?(0,r.jsx)(SE,{id:e.id,field:e.field}):"search_and_multi_select"===o?(0,r.jsx)(eM,{id:e.id,field:e.field}):"image_select"===o?(0,r.jsx)(SR,{id:e.id,field:e.field}):"text_select"===o?(0,r.jsx)(ER,{id:e.id,field:e.field}):"icon_select"===o?(0,r.jsx)(NR,{id:e.id,field:e.field}):"currency_rate"===o?(0,r.jsx)(QR,{id:e.id,field:e.field}):"checkout_fields"===o?(0,r.jsx)(nH,{id:e.id,field:e.field}):"product_addons_special_settings"===o?(0,r.jsx)(iW,{id:e.id,field:e.field}):"raw"===o?(0,r.jsx)(hS,{id:e.id,field:e.field}):"slider"===o?(0,r.jsx)(dW,{id:e.id,field:e.field}):(0,r.jsx)(Cb,{id:e.id,field:e.field})}};function gW(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return bW(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bW(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var yW=function(e){var n,o,i,a=e.repeater,c=gW((0,t.useState)(!1),2),u=c[0],f=c[1],p=gW(l(),2),h=p[0],v=p[1],m="automatically"===(null===(n=h.sections.modules)||void 0===n||null===(n=n.list)||void 0===n||null===(n=n.currency_switcher)||void 0===n||null===(n=n.fields)||void 0===n||null===(n=n.exchange_rates)||void 0===n?void 0:n.value),g="on"===(null==h||null===(o=h.data)||void 0===o||null===(o=o.options)||void 0===o?void 0:o.active);return(0,t.useEffect)((function(){g&&m&&v({type:s,value:{callSave:!0}})}),[]),(0,r.jsx)(r.Fragment,{children:m?(0,r.jsxs)(Zs,{loading:u,onClick:function(){return function(){if(a.value){var e=new FormData;e.append("action","rtsb_update_currency_rates"),e.append("currency_options",JSON.stringify(aN(a.value))),e.append("__rtsb_wpnonce",rtsbParams.nonce),jQuery.ajax({type:"POST",url:"".concat(rtsbParams.ajaxurl),cache:!1,processData:!1,contentType:!1,dataType:"json",data:e,beforeSend:function(){f(!0)},success:function(e){f(!1),e.success?Tc.success({message:e.data.message,placement:"bottomRight"}):Tc.error({message:e.data.message,placement:"bottomRight"});var t=aN(e.data.currency_options);t.length&&v({type:d,id:"currency_options",value:t})},error:function(e){f(!1),Tc.error({message:e.message||"Failed",placement:"bottomRight"})}})}}()},className:"rtsb-button",style:{fontSize:"14px",color:"#fff",marginLeft:"10px"},children:[null!==(i=rtsbParams)&&void 0!==i&&i.updateRates?rtsbParams.updateRates:""," "]}):""})};function wW(e){return wW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wW(e)}function xW(e){return function(e){if(Array.isArray(e))return _W(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||OW(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function SW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function CW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SW(Object(n),!0).forEach((function(t){kW(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kW(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=wW(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=wW(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wW(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EW(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||OW(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OW(e,t){if(e){if("string"==typeof e)return _W(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_W(e,t):void 0}}function _W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var jW=qD.Text,$W=(qD.Link,new Map),NW=function(e){var t,n,r,o,i=null;if(null!=e&&null!==(t=e.repeater_type)&&void 0!==t&&t.value){var a,l,c,s,u=null==e||null===(a=e.repeater_type)||void 0===a?void 0:a.value;i=null==e||null===(l=e.repeater_type)||void 0===l||null===(l=l.options)||void 0===l?void 0:l[u],i=null!=e&&null!==(c=e.title)&&void 0!==c&&c.value?i+" - "+(null==e||null===(s=e.title)||void 0===s?void 0:s.value):i}else{var f;if("select"===(null==e||null===(f=e.title)||void 0===f?void 0:f.type)){var d=null==e||null===(n=e.title)||void 0===n?void 0:n.value;i=null==e||null===(r=e.title)||void 0===r||null===(r=r.options)||void 0===r?void 0:r[d]}else i=null==e||null===(o=e.title)||void 0===o?void 0:o.value}return i},PW=t.forwardRef((function(e,n){var o,i=EW(l(),2),a=i[0],s=i[1],u=e.index,f=e.id,d=e.dataLoop,p=e.repeater,h=e.repeaterData,v=e.activePanel,m=e.handleRemovePanel,g=(e.hideContent,e.onSubComponentRendered,p.repeat),b=p.defaults,y=EW((0,t.useState)(String(u)===String(v)),2),w=y[0],x=y[1],S=EW((0,t.useState)("var(--rtsb-admin-color-secondary)"),2),C=S[0],k=S[1],E=Nq({id:f}),O=E.attributes,_=E.listeners,j=E.transform,$=E.transition,N=E.setNodeRef,P=E.isDragging,I={transform:yA.Translate.toString(j),transition:$,opacity:P?.8:1,zIndex:P?1:0,marginTop:"1rem",position:"relative",scrollMarginTop:98},M="no"!==(null===(o=d.deletable)||void 0===o?void 0:o.value);return(0,r.jsx)("div",{className:"rtsb-repeater-item",ref:n?function(e){n.current=e,N(e)}:N,style:I,children:(0,r.jsx)(OB,{title:(0,r.jsxs)("span",{className:"title-wrapper",children:[(0,r.jsx)(rh,{title:"Rearrange",placement:"left",children:(0,r.jsx)(AB,CW(CW({},O),_))}),(0,r.jsxs)(jW,{children:[" ",(0,r.jsxs)(mm,{wrap:!0,gap:"small",align:"center",children:[d.isEnable&&(0,r.jsx)($m,{className:"on"===(null==d?void 0:d.isEnable)?"green":"red",style:{display:"inline-flex",alignItems:"center"},children:(0,r.jsxs)("div",{style:{display:"none"},children:[" ","on"===(null==d?void 0:d.isEnable)?"Enabled":"Disabled"," "]})}),(0,r.jsx)("span",{dangerouslySetInnerHTML:{__html:NW(d)}})]})," "]})]}),extra:(0,r.jsxs)(jW,{onClick:function(){x(!w)},children:[w?(0,r.jsx)(DB,{style:{cursor:"pointer"}}):(0,r.jsx)(BB,{style:{cursor:"pointer"}}),M?(0,r.jsx)(xP,{style:{position:"absolute",right:"50px",margin:"auto",height:"20px",color:C},onClick:function(e){return m(e,u)},onMouseEnter:function(){return k("var(--rtsb-admin-color-secondary-hover)")},onMouseLeave:function(){return k("var(--rtsb-admin-color-secondary)")}}):""]}),className:"rtsb-card-wrapper ".concat(w?"rtsb-card-expanded":"rtsb-card-no-expanded"," "),children:(0,r.jsx)(IB,{isOpen:w,transition:"height 300ms cubic-bezier(0.4, 0, 0.2, 1)",children:(0,r.jsx)("ul",{className:"rtsb_group_repeater",children:Object.keys(g).map((function(e,t){var n,o,i=CW(CW({},d[e]||g[e]),{},{fieldType:"repeater",parentId:p.id,index:u,repeaterData:h,repeaterDefaults:b,isDefault:(null===(n=d.uniqueid)||void 0===n?void 0:n.value)||"",value:(null===(o=d[e])||void 0===o?void 0:o.value)||""});return(0,r.jsx)("li",{onClick:function(){(null==i?void 0:i.isPro)&&"yes"!==rtsbParams.hasPro&&s({type:c,general:CW(CW({},a.general),{},{proInfoVisible:!0})})},children:(0,r.jsx)(mW,{id:e,field:i},e)},e)}))})})})})})),IW=function(e){var n=EW(l(),2),o=(n[0],n[1]),i=e.repeater,a=i.repeat,c=i.id,s=(i.defaults,EW((0,t.useState)(null),2)),u=s[0],f=s[1],p=EW((0,t.useState)([]),2),h=p[0],v=p[1],m=EW((0,t.useState)(0),2),g=m[0],b=m[1],y=EW((0,t.useState)(!1),2),w=y[0],x=y[1],S=EW((0,t.useState)(!1),2),C=S[0],k=S[1],E=(0,t.useRef)(null),O=h.length;(0,t.useEffect)((function(){C&&E.current&&(E.current.scrollIntoView({behavior:"smooth"}),k(!1))}),[h,C]);var _=function(e,t){e.stopPropagation(),window.confirm("Are you sure you want to delete?")&&o({type:d,fieldType:"repeater",parentId:c,doAction:"remove",repeaterData:h,index:t})};(0,t.useEffect)((function(){!function(){if(i.value){var e=aN(i.value);e=e.map((function(e,t){var n,r=sN(),o={};return e&&0!==Object.keys(e).length?(Object.keys(e).forEach((function(t){e[t]&&(o[t]=CW(CW({},a[t]),{},{id:t,value:e[t]}))})),Object.keys(o).length>0&&("no"===(null==o||null===(n=o.deletable)||void 0===n?void 0:n.value)&&null!=o&&o.uniqueid&&!o.uniqueid.value.includes("rtsb_repeater_item_")||(o.uniqueid={id:"id",value:"rtsb_repeater_item_"+r})),o):o})),e=e.filter((function(e){return 0!==Object.keys(e).length})),v(e)}}()}),[i.value]);var j=h.map((function(e){var t;return null===(t=e.uniqueid)||void 0===t?void 0:t.value})),$=IA(PA(jT,{}),PA(NT,{}),PA(wT,{coordinateGetter:Mq})),N=(0,t.useCallback)((function(e){for(var t=h.findIndex((function(t){var n;return(null==t||null===(n=t.uniqueid)||void 0===n?void 0:n.value)===e.active.id})),n=h.slice(0,t),r=0,o=0;o<n.length;o+=1){var i=$W.get(n[o].id);i&&(r+=i.clientHeight)}b(r),x(!0)}),[h]),P=(0,t.useCallback)((function(e){var t=e.active,n=e.over;if(n){if(t.id!==n.id){var r=h.findIndex((function(e){var n;return(null===(n=e.uniqueid)||void 0===n?void 0:n.value)===t.id})),i=h.findIndex((function(e){var t;return(null===(t=e.uniqueid)||void 0===t?void 0:t.value)===n.id})),a=vq(h,r,i);v(a),o({type:d,fieldType:"repeater",parentId:c,doAction:"sort",repeaterData:a})}x(!1),b(0)}}),[h]);return(0,r.jsxs)(lq,{collisionDetection:zA,onDragStart:N,onDragEnd:P,sensors:$,children:[(0,r.jsx)(Cq,{items:j,strategy:wq,children:(0,r.jsx)("div",{className:"rtsb-repeater-wrapper",style:{paddingTop:g},children:h.map((function(e,t){var n,o,a,l;if(null==e||!e.isEnable)switch(c){case"endpoint_field":e.isEnable="on"===(null==e||null===(n=e.menu_visibility)||void 0===n?void 0:n.value)?"on":"off";break;case"currency_options":e.isEnable="on"===(null==e||null===(o=e.activate_currency)||void 0===o?void 0:o.value)?"on":"off";break;case"campaign_field":e.isEnable="on"===(null==e||null===(a=e.enable_campaign)||void 0===a?void 0:a.value)?"on":"off";break;default:e.isEnable=!1}if(e&&0!==Object.keys(e).length){var s=t===O-1?E:null;return(0,r.jsx)(PW,{index:t,id:null===(l=e.uniqueid)||void 0===l?void 0:l.value,parentId:c,dataLoop:e,hideContent:w,repeater:i,repeaterData:h,handleRemovePanel:_,activePanel:u,ref:s},t)}}))})}),(0,r.jsxs)("div",{className:"repeater-footer",style:{marginTop:"15px"},children:[(0,r.jsx)(Zs,{className:"rtsb-button",onClick:function(){var e=[].concat(xW(h),[CW({},a)]);o({type:d,fieldType:"repeater",repeaterData:e,parentId:c,doAction:"addPanel",index:O}),f(String(O)),v(e),k(!0)},style:{fontSize:"14px",color:"#fff"},children:null!=i&&i.buttonLabel?i.buttonLabel:"Add New"}),"currency_options"===c&&O>0?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(yW,CW({},e))}):""]})]})};function MW(e){return MW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},MW(e)}function RW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function AW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RW(Object(n),!0).forEach((function(t){TW(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function TW(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=MW(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=MW(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==MW(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qW(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return DW(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?DW(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function DW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var LW=function(e){var n=e.block,o=n.fields,i=qW(l(),2),a=i[0],s=i[1],u=qW((0,t.useState)((function(){return n.tabs?Object.keys(n.tabs)[0]:""})),2),f=u[0],d=u[1],p=AW(AW({},n.active_field),{},{type:"switch",value:n.active});return(0,r.jsxs)("div",{className:"rtsb-block-settings".concat(n.tabs?" rtsb-block-tabs rtsb-active-tab-"+f:""),children:[n.tabs?(0,r.jsx)("ul",{className:"rtsb-block-tab-nav",children:Object.keys(n.tabs).map((function(e){return(0,r.jsx)("li",{className:"rtsb-block-tab-nav-item".concat(e===f?" active":""),onClick:function(){return d(e)},children:n.tabs[e].title},e)}))}):"",(0,r.jsxs)("div",{className:"rtsb-block-settings-content",children:[!p.disable&&(!n.tabs||n.tabs&&Object.keys(n.tabs)[0]===f)&&(0,r.jsx)("div",{className:"block-active-field",children:(0,r.jsx)(mW,{id:"active",field:p})}),Object.keys(o).map((function(e){if(!("repeaters"===o[e].type||n.tabs&&f&&f!==o[e].tab))return(0,r.jsx)("div",{onClick:function(){var t;(null===(t=o[e])||void 0===t?void 0:t.isPro)&&"yes"!==rtsbParams.hasPro&&s({type:c,general:AW(AW({},a.general),{},{proInfoVisible:!0})})},children:(0,r.jsx)(mW,{id:e,field:o[e]},e)},e)})),Object.keys(o).map((function(e,t){if(!("repeaters"!==o[e].type||n.tabs&&f&&f!==o[e].tab))return(0,r.jsx)(IW,{repeater:o[e]},t)}))]})]})};function zW(e){return function(e){if(Array.isArray(e))return BW(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return BW(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?BW(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function BW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function FW(e){return FW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},FW(e)}function HW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HW(Object(n),!0).forEach((function(t){VW(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function VW(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=FW(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=FW(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==FW(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var UW={callSave:!1,saving:!1,dirty:!1,modalVisible:!1,sections:rtsbParams.sections,section:!1,general:{proInfoVisible:!1},data:{block_id:!1,section_id:localStorage.getItem("rtsb_selected_section_nav")?localStorage.getItem("rtsb_selected_section_nav"):"general",options:{}}},GW=function(e,t){switch(t.type){case s:return WW(WW({},e),t.value);case c:return WW(WW({},e),{},{general:t.general});case u:return WW(WW({},e),{},{sections:t.sections});case f:return WW(WW({},e),{},{data:WW(WW({},e.data),{},VW({},t.id,t.value))});case p:if(!t.id||!e.data.section_id)return e;var n=JSON.parse(JSON.stringify(e.data.options));n.active=t.value;var r=JSON.parse(JSON.stringify(e.sections));return r[e.data.section_id].list[t.id].active=t.value,WW(WW({},e),{},{callSave:!0,dirty:!0,sections:r,data:WW(WW({},e.data),{},{block_id:t.id,options:n})});case d:if(!e.data.block_id||!e.data.section_id)return e;var o=JSON.parse(JSON.stringify(e.data.options));void 0!==(null==t?void 0:t.value)&&(o[t.id]=t.value);var i=JSON.parse(JSON.stringify(e.sections));if("active"===t.id)i[e.data.section_id].list[e.data.block_id].active=t.value;else{var a="repeater"===(null==t?void 0:t.fieldType),l="remove"===(null==t?void 0:t.doAction),h="sort"===(null==t?void 0:t.doAction),v="addPanel"===(null==t?void 0:t.doAction);if(a){var m=("object"===FW(null==t?void 0:t.repeaterData)?zW(null==t?void 0:t.repeaterData):[]).map((function(e){var t={};return Object.keys(e).forEach((function(n){t[n]=e[n].value})),t})),g=i[e.data.section_id].list[e.data.block_id].fields[t.parentId].value,b="string"==typeof(g=aN(g=g||{}))[t.index]?JSON.parse(g[t.index]):g[t.index],y=i[e.data.section_id].list[e.data.block_id].fields[t.parentId].repeat,w=Object.keys(y).reduce((function(e,t){return e[t]=y[t].value,e}),{});if(h)i[e.data.section_id].list[e.data.block_id].fields[t.parentId].value=zW(m),o[t.parentId]=zW(m);else if(v){var x=sN(),S=WW(WW({},g),{},VW({},t.index,WW(WW({uniqueid:"rtsb_repeater_item_"+x},w),b)));i[e.data.section_id].list[e.data.block_id].fields[t.parentId].value=Object.values(S);var C=WW(WW(WW({},o[t.parentId]),m),{},VW({},t.index,WW({},w)));o[t.parentId]=Object.values(C)}else if(l){var k=i[e.data.section_id].list[e.data.block_id].fields[t.parentId].value;delete k[t.index];var E=[];Object.keys(k).forEach((function(e,t){E[t]=k[e]})),i[e.data.section_id].list[e.data.block_id].fields[t.parentId].value=E;var O=o[t.parentId];delete O[t.index];var _=[];Object.keys(O).forEach((function(e,t){_[t]=O[e]})),o[t.parentId]=Object.values(_)}else{var j,$=WW(WW({},g),{},VW({},t.index,WW(WW(WW({},w),b),{},VW({},t.id,t.value))));i[e.data.section_id].list[e.data.block_id].fields[t.parentId].value=Object.values($);var N=WW(WW(WW({},m),o[t.parentId]),{},VW({},t.index,WW(WW(WW({},m[t.index]),(null===(j=o[t.parentId])||void 0===j?void 0:j[t.index])||{}),{},VW({},t.id,t.value))));o[t.parentId]=Object.values(N)}}else i[e.data.section_id].list[e.data.block_id].fields[t.id].value=t.value}return WW(WW({},e),{},{dirty:!0,sections:i,data:WW(WW({},e.data),{},{options:o})});default:return e}};function YW(e){return YW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},YW(e)}function KW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function XW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KW(Object(n),!0).forEach((function(t){QW(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function QW(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=YW(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=YW(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==YW(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZW(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return JW(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?JW(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function JW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var eV=function(e){var n=e.block,o=n.title,i=n.active,a=n.id,d=n.fields,h=n.external,m="on"===i,g=ZW(l(),2),b=g[0],y=g[1],w=ZW((0,t.useState)(!1),2),x=w[0],S=w[1],C=!v().isEmpty(d),k=ZW((0,t.useState)(null),2),E=k[0],O=k[1];(0,t.useEffect)((function(){h&&(jQuery(document).on("wp-plugin-installing",(function(t,n){e.block.pluginSlug===n.slug&&O(XW(XW({},n),{},{status:"installing"}))})),jQuery(document).on("wp-plugin-install-success",(function(t,n){if("plugin"===n.install&&e.block.pluginSlug===n.slug){O(XW(XW({},n),{},{status:"install-success"})),Tc.success({message:n.debug[4],placement:"bottomRight"});var r=JSON.parse(JSON.stringify(b.sections));r[b.data.section_id].list[a]=XW(XW({},e.block),{},{pluginIsInstalled:!0}),y({type:u,sections:r})}})),jQuery(document).on("wp-plugin-install-error",(function(t,n){"plugin"===n.install&&e.block.pluginSlug===n.slug&&(Tc.error({message:n.errorMessage,placement:"bottomRight"}),O(null))})))}),[]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"rtsb-ss-item ".concat(e.block.package).concat(m?" active":"").concat(h?" is-external":""),onClick:function(t){if(t.preventDefault(),t.stopPropagation(),!0===h);else{if("pro-disabled"===e.block.package)return void y({type:c,general:XW(XW({},b.general),{},{proInfoVisible:!0})});C?(y({type:s,value:{saving:!1,callSave:!1,data:XW(XW({},b.data),{},{options:UW.data.options})}}),y({type:f,id:"block_id",value:a}),S(!0)):y({type:p,id:a,value:m?"":"on"})}},children:(0,r.jsxs)("div",{className:"rtsb-ss-item-box",children:[(0,r.jsx)("div",{className:"rtsb-ss-item-icon"}),(0,r.jsx)("div",{className:"rtsb-ss-item-content",children:(0,r.jsx)("h3",{className:"rtsb-ss-item-title",children:(0,r.jsx)("span",{dangerouslySetInnerHTML:{__html:o}})})}),h&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"externalActions",children:e.block.pluginIsActive?(0,r.jsx)("div",{className:"rtsb-ss-item-switch",children:(0,r.jsx)(fu,{checked:!0,disabled:!0})}):(0,r.jsx)(Zs,{type:"primary rtsb-button",loading:"installing"===(null==E?void 0:E.status),onClick:function(){null!=E&&E.activateUrl?window.open(E.activateUrl,"_self"):e.block.pluginIsInstalled?e.block.pluginIsInstalled&&!e.block.pluginIsActive&&window.open(e.block.pluginActiveUrl):wp.updates.installPlugin({slug:e.block.pluginSlug})},size:"small",children:e.block.pluginIsInstalled||E?e.block.pluginIsInstalled&&!e.block.pluginIsActive?wp.i18n.__("Activate"):"installing"===(null==E?void 0:E.status)?wp.i18n.__("Installing…"):"install-success"===(null==E?void 0:E.status)?wp.i18n.__("Activate"):void 0:wp.i18n.__("Install")})}),!!e.block.help&&(0,r.jsx)(rh,{title:(0,r.jsx)("span",{children:(0,r.jsx)("span",{dangerouslySetInnerHTML:{__html:e.block.help.replace(/<a\s+href="([^"]+)"\s*([^>]*)>(.*?)<\/a>/g,(function(e,t,n,r){return'<a href="'.concat(t,'" target="_blank" rel="noopener noreferrer" onClick="event.stopPropagation();" style="color: #fff;font-weight: 700;outline: none;text-decoration: underline dotted;">').concat(r,"</a>")}))}})}),children:(0,r.jsx)(nm,{style:{fontSize:"150%"}})})]}),!h&&(0,r.jsx)("div",{className:"rtsb-ss-item-switch",children:(0,r.jsx)(fu,{unCheckedChildren:"pro-disabled"===e.block.package?(0,r.jsx)("span",{className:"dashicons dashicons-lock"}):"",checked:m})}),C&&(0,r.jsx)("div",{className:"rtsb-ss-item-action",children:(0,r.jsx)("span",{className:"dashicons dashicons-admin-generic"})})]})}),C&&(0,r.jsx)(Jv,{title:(0,r.jsx)("span",{dangerouslySetInnerHTML:{__html:o}}),centered:!0,open:x,okText:"Save Changes",onCancel:function(){return S(!1)},width:1e3,styles:{body:{maxHeight:"calc(100vh - 200px)",overflow:"scroll",minHeight:"500px"}},footer:[(0,r.jsx)(Zs,{type:"primary",loading:b.saving,onClick:function(){e.saveData(null,(function(){S(!1)}))},disabled:!b.dirty,block:!0,children:"Save Changes"},"save")],children:(0,r.jsx)(LW,{block:e.block})})]})},tV=function(e){var t=e.blocks,n=e.category;return(0,r.jsx)("div",{className:"rtsb-ss-item-list",children:t&&Object.keys(t).map((function(o){var i=t[o];if(!n||i.category===n)return(0,r.jsx)(eV,{block:t[o],id:o,saveData:e.saveData},o)}))})};function nV(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return rV(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rV(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rV(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var oV=function(e){var n,o,i=e.section,a=i.list,l=i.categories,c=nV((0,t.useState)(null),2),s=c[0],u=c[1],f="selected_cat_nav_id_"+e.section.id,d=localStorage.getItem(f)?localStorage.getItem(f):Object.keys(l)[0];return(0,t.useEffect)((function(){u(d)}),[e.section.id]),(0,r.jsx)("div",{className:"rtsb-ss-item-list-wrap",children:l?(0,r.jsxs)("div",{className:"rtsb-cat-tabs-wrap",children:[Object.keys(l).length>0?(0,r.jsx)("div",{className:"rtsb-cat-nav-wrap",children:Object.keys(l).map((function(e){var t=l[e],n=t.title;t.description;return(0,r.jsx)("div",{onClick:function(){localStorage.setItem(f,e),u(e)},className:"rtsb-cat-nav".concat(e===s?" active":""),children:(0,r.jsx)("h3",{className:"rtsb-title",children:n})},e)}))}):null,(0,r.jsxs)("div",{className:"rtsb-cat-content",children:[(null===(n=l[s])||void 0===n?void 0:n.description)&&(0,r.jsx)("h4",{className:"rtsb-cat-description",children:null===(o=l[s])||void 0===o?void 0:o.description}),(0,r.jsx)(tV,{blocks:a,saveData:e.saveData,category:s})]})]}):(0,r.jsx)(tV,{blocks:a})})};function iV(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return aV(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?aV(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aV(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var lV=function(e){var n=e.id,o=iV(l(),2),i=o[0],a=o[1],c=i.sections[n]||{},s=iV((0,t.useState)(!1),2),f=s[0],d=s[1],p=iV((0,t.useState)(!1),2),h=p[0],v=p[1],m=c.title,g=c.short_title,b=c.description,y=function(e){var t="active"===e?"Are you sure you want to enable all ".concat(g.toLowerCase(),"?"):"Are you sure you want to disable all ".concat(g.toLowerCase(),"?");if(window.confirm(t)){var n=c.list,r=Object.keys(n);jQuery.ajax({url:rtsbParams.ajaxurl,data:{module_ids:r,section_id:c.id,action:"rtsb_toggle_modules_activation",__rtsb_wpnonce:rtsbParams.nonce,type:e},method:"POST",beforeSend:function(){e?d(!0):v(!0)},success:function(e){d(!1),v(!1),e.success?(Tc.success({message:e.data.message,placement:"bottomRight"}),a({type:u,sections:e.data.sections})):Tc.error({message:e.data.message,placement:"bottomRight"})},error:function(e){d(!1),v(!1),Tc.error({message:e.message,placement:"bottomRight"})}})}};return(0,r.jsxs)("div",{className:"rtsb-ss-wrap",children:[(0,r.jsxs)("div",{className:"rtsb-ss-header-area",children:[(0,r.jsxs)("div",{className:"rtsb-ss-header",children:[(0,r.jsx)("h2",{className:"rtsb-title",children:m}),(0,r.jsx)("p",{className:"rtsb-description",children:b})]}),(0,r.jsxs)("div",{className:"rtsb-button-wrapper",children:[(0,r.jsxs)(Zs,{type:"primary",loading:f,onClick:function(){return y("active")},className:"rtsb-button rtsb-enable-button",children:["Enable All ",g]},"enable"),(0,r.jsxs)(Zs,{type:"secondary",loading:h,onClick:function(){return y()},className:"rtsb-button rtsb-disable-button",children:["Disable All ",g]},"disable")]})]}),(0,r.jsx)(oV,{section:c,saveData:e.saveData})]})},cV=function(e){var t=e.visible,n=e.setVisible;return(0,r.jsxs)(Jv,{centered:!0,open:t,className:"rtsb-pro-modal",onOk:function(){return n(!1)},onCancel:function(){return n(!1)},footer:null,children:[(0,r.jsx)("div",{className:"rtsb-box-icon",children:(0,r.jsx)("i",{className:"dashicons dashicons-lock"})}),(0,r.jsxs)("div",{className:"rtsb-box-content",children:[(0,r.jsx)("h3",{className:"rtsb-box-title",children:"Pro Feature Alert!"}),(0,r.jsx)("p",{children:"Sorry! This is a Pro feature. To activate this feature, you need to upgrade to the Pro version."}),(0,r.jsx)("a",{href:"https://shopbuilderwp.com",target:"_blank",className:"rtsb-pro-btn rtsb-button",rel:"noreferrer",children:"Get Pro Version"})]})]})};function sV(e){return sV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sV(e)}function uV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uV(Object(n),!0).forEach((function(t){dV(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dV(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=sV(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=sV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sV(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pV(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return hV(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hV(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hV(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var vV=function(){var e,n=pV(l(),2),o=n[0],i=n[1],a=function(e,t){i({type:s,value:{saving:!0}});var n=e||o.data,r=new FormData;r.append("section_id",n.section_id),r.append("block_id",n.block_id);for(var a=function(){var e=pV(c[l],2),t=e[0],n=e[1];if(Array.isArray(n))n.length?n.map((function(e){var n=e;"object"===sV(e)&&null!==e&&(n=JSON.stringify(e)),r.append("options["+t+"][]",n)})):r.append("options["+t+"]",[]);else if("object"===sV(n)&&null!==n){var o=JSON.stringify(n);r.append("options["+t+"]",o)}else r.append("options["+t+"]",n)},l=0,c=Object.entries(n.options);l<c.length;l++)a();r.append("action","rtsb_save_settings_data"),r.append("__rtsb_wpnonce",rtsbParams.nonce),jQuery.ajax({cache:!1,processData:!1,contentType:!1,dataType:"json",url:rtsbParams.ajaxurl,data:r,method:"POST",success:function(e){e.success?(Tc.success({message:e.data.message,placement:"bottomRight"}),i({type:s,value:{saving:!1,callSave:!1,dirty:!1,placement:"bottomRight"}}),i({type:s,value:{modalVisible:!1}})):(Tc.error({message:e.data.message,placement:"bottomRight"}),i({type:s,value:{saving:!1,callSave:!1}})),t&&t()},error:function(e){Tc.error({message:e.message,placement:"bottomRight"}),i({type:s,value:{saving:!1,callSave:!1}}),t&&t()}})};return(0,t.useEffect)((function(){o.callSave&&!o.saving&&a()}),[o.callSave]),(0,r.jsxs)("div",{className:"rtsb-settings-page-wrapper",children:[(0,r.jsxs)("div",{className:"rtsb-header-area",children:[(0,r.jsx)("div",{className:"rtsb-header-logo-wrap",children:(0,r.jsx)("img",{src:rtsbParams.adminLogo,alt:"ShopBuilder",loading:"lazy"})}),(0,r.jsx)("div",{className:"rtsb-header-title-wrap",children:(0,r.jsx)("h1",{className:"rtsb-title",children:"ShopBuilder Settings"})})]}),(0,r.jsxs)("div",{className:"rtsb-settings-tabs-wrap",children:[(0,r.jsx)("div",{className:"rtsb-tabs-nav-wrap",children:(0,r.jsx)("ul",{className:"rtsb-tab-list",children:Object.keys(o.sections).map((function(e){return(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#",onClick:function(t){t.preventDefault(),t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),localStorage.setItem("rtsb_selected_section_nav",e),i({type:f,id:"section_id",value:e})},className:"rtsb-button".concat(e===o.data.section_id?" active":""),children:(0,r.jsx)("span",{children:o.sections[e].title})})},e)}))})}),(0,r.jsxs)("div",{className:"rtsb-tabs-content-wrap",children:[(0,r.jsx)("div",{className:"rtsb-settings-tab-content rtsb-settings-".concat(o.data.section_id," ").concat("elements"!==localStorage.getItem("rtsb_selected_section_nav")||rtsbParams.hasElementor?"elementor-activated":"elementor-not-activated"),children:(0,r.jsx)(lV,{id:o.data.section_id,saveData:a})}),"elements"!==localStorage.getItem("rtsb_selected_section_nav")||rtsbParams.hasElementor?null:(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(OB,{size:"small",className:"rtsb-no-elementor-notice",style:{width:500},children:(0,r.jsxs)("div",{className:"rtsb-settings-card-content-wrapper",children:["To use Elementor Widgets, please Install and Activate the"," ",(0,r.jsx)("strong",{children:"Elementor Website Builder"})," ","Plugin."]})})})]})]}),"yes"!==rtsbParams.hasPro&&(0,r.jsx)(cV,{visible:null==o||null===(e=o.general)||void 0===e?void 0:e.proInfoVisible,setVisible:function(e){i({type:c,general:fV(fV({},o.general),{},{proInfoVisible:e})})}})]})},mV=document.getElementById("rtsb-admin-app");e.createRoot(mV).render((0,r.jsx)(a,{reducer:GW,initialState:UW,children:(0,r.jsx)(vV,{})}))}()}();