diff --git a/color.less b/color.less index 2e5458ee9b..3d8299e2b9 100644 --- a/color.less +++ b/color.less @@ -727,42 +727,42 @@ tr > .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child::afte .ant-form-item-has-success.ant-form-item-has-feedback .ant-form-item-children-icon {color: @success-color;} .ant-form-item-has-warning .ant-form-item-explain, .ant-form-item-has-warning .ant-form-item-split {color: @warning-color;} .ant-form-item-has-warning .ant-input, .ant-form-item-has-warning .ant-input-affix-wrapper, .ant-form-item-has-warning .ant-input:hover, .ant-form-item-has-warning .ant-input-affix-wrapper:hover {border-color: @warning-color;} -.ant-form-item-has-warning .ant-input:focus, .ant-form-item-has-warning .ant-input-affix-wrapper:focus, .ant-form-item-has-warning .ant-input-focused, .ant-form-item-has-warning .ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(24, 37, 132, 0.2);} +.ant-form-item-has-warning .ant-input:focus, .ant-form-item-has-warning .ant-input-affix-wrapper:focus, .ant-form-item-has-warning .ant-input-focused, .ant-form-item-has-warning .ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(170, 123, 253, 0.2);} .ant-form-item-has-warning .ant-input:not(.ant-form-item-has-warning .ant-input-disabled) {background-color: #fff;} .ant-form-item-has-warning .ant-input-affix-wrapper:not(.ant-form-item-has-warning .ant-input-affix-wrapper-disabled) {background-color: #fff;} .ant-form-item-has-warning .ant-input-affix-wrapper input:focus {box-shadow: none !important;} -.ant-form-item-has-warning .ant-calendar-picker-open .ant-calendar-picker-input {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(24, 37, 132, 0.2);} +.ant-form-item-has-warning .ant-calendar-picker-open .ant-calendar-picker-input {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(170, 123, 253, 0.2);} .ant-form-item-has-warning .ant-input-prefix {color: @warning-color;} .ant-form-item-has-warning .ant-input-group-addon {color: @warning-color;border-color: @warning-color;} .ant-form-item-has-warning .has-feedback {color: @warning-color;} .ant-form-item-has-warning.ant-form-item-has-feedback .ant-form-item-children-icon {color: @warning-color;} .ant-form-item-has-warning .ant-select:not(.ant-select-borderless) .ant-select-selector {border-color: @warning-color !important;} -.ant-form-item-has-warning .ant-select:not(.ant-select-borderless).ant-select-open .ant-select-selector, .ant-form-item-has-warning .ant-select:not(.ant-select-borderless).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(24, 37, 132, 0.2);} +.ant-form-item-has-warning .ant-select:not(.ant-select-borderless).ant-select-open .ant-select-selector, .ant-form-item-has-warning .ant-select:not(.ant-select-borderless).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(170, 123, 253, 0.2);} .ant-form-item-has-warning .ant-input-number, .ant-form-item-has-warning .ant-picker {border-color: @warning-color;} -.ant-form-item-has-warning .ant-input-number-focused, .ant-form-item-has-warning .ant-picker-focused, .ant-form-item-has-warning .ant-input-number:focus, .ant-form-item-has-warning .ant-picker:focus {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(24, 37, 132, 0.2);} +.ant-form-item-has-warning .ant-input-number-focused, .ant-form-item-has-warning .ant-picker-focused, .ant-form-item-has-warning .ant-input-number:focus, .ant-form-item-has-warning .ant-picker:focus {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(170, 123, 253, 0.2);} .ant-form-item-has-warning .ant-input-number:not([disabled]):hover, .ant-form-item-has-warning .ant-picker:not([disabled]):hover {border-color: @warning-color;} -.ant-form-item-has-warning .ant-cascader-picker:focus .ant-cascader-input {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(24, 37, 132, 0.2);} +.ant-form-item-has-warning .ant-cascader-picker:focus .ant-cascader-input {border-color: color(~`colorPalette("@{warning-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(170, 123, 253, 0.2);} .ant-form-item-has-error .ant-form-item-explain, .ant-form-item-has-error .ant-form-item-split {color: @error-color;} .ant-form-item-has-error .ant-input, .ant-form-item-has-error .ant-input-affix-wrapper, .ant-form-item-has-error .ant-input:hover, .ant-form-item-has-error .ant-input-affix-wrapper:hover {border-color: @error-color;} -.ant-form-item-has-error .ant-input:focus, .ant-form-item-has-error .ant-input-affix-wrapper:focus, .ant-form-item-has-error .ant-input-focused, .ant-form-item-has-error .ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(108, 233, 167, 0.2);} +.ant-form-item-has-error .ant-input:focus, .ant-form-item-has-error .ant-input-affix-wrapper:focus, .ant-form-item-has-error .ant-input-focused, .ant-form-item-has-error .ant-input-affix-wrapper-focused {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(255, 38, 204, 0.2);} .ant-form-item-has-error .ant-input:not(.ant-form-item-has-error .ant-input-disabled) {background-color: #fff;} .ant-form-item-has-error .ant-input-affix-wrapper:not(.ant-form-item-has-error .ant-input-affix-wrapper-disabled) {background-color: #fff;} .ant-form-item-has-error .ant-input-affix-wrapper input:focus {box-shadow: none !important;} -.ant-form-item-has-error .ant-calendar-picker-open .ant-calendar-picker-input {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(108, 233, 167, 0.2);} +.ant-form-item-has-error .ant-calendar-picker-open .ant-calendar-picker-input {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(255, 38, 204, 0.2);} .ant-form-item-has-error .ant-input-prefix {color: @error-color;} .ant-form-item-has-error .ant-input-group-addon {color: @error-color;border-color: @error-color;} .ant-form-item-has-error .has-feedback {color: @error-color;} .ant-form-item-has-error.ant-form-item-has-feedback .ant-form-item-children-icon {color: @error-color;} .ant-form-item-has-error .ant-select:not(.ant-select-borderless) .ant-select-selector {border-color: @error-color !important;} -.ant-form-item-has-error .ant-select:not(.ant-select-borderless).ant-select-open .ant-select-selector, .ant-form-item-has-error .ant-select:not(.ant-select-borderless).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(108, 233, 167, 0.2);} +.ant-form-item-has-error .ant-select:not(.ant-select-borderless).ant-select-open .ant-select-selector, .ant-form-item-has-error .ant-select:not(.ant-select-borderless).ant-select-focused .ant-select-selector {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(255, 38, 204, 0.2);} .ant-form-item-has-error .ant-input-group-addon .ant-select.ant-select-single:not(.ant-select-customize-input) .ant-select-selector {border: 0;} .ant-form-item-has-error .ant-select.ant-select-auto-complete .ant-input:focus {border-color: @error-color;} .ant-form-item-has-error .ant-input-number, .ant-form-item-has-error .ant-picker {border-color: @error-color;} -.ant-form-item-has-error .ant-input-number-focused, .ant-form-item-has-error .ant-picker-focused, .ant-form-item-has-error .ant-input-number:focus, .ant-form-item-has-error .ant-picker:focus {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(108, 233, 167, 0.2);} +.ant-form-item-has-error .ant-input-number-focused, .ant-form-item-has-error .ant-picker-focused, .ant-form-item-has-error .ant-input-number:focus, .ant-form-item-has-error .ant-picker:focus {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(255, 38, 204, 0.2);} .ant-form-item-has-error .ant-input-number:not([disabled]):hover, .ant-form-item-has-error .ant-picker:not([disabled]):hover {border-color: @error-color;} .ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor, .ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):hover {border-color: @error-color;} -.ant-form-item-has-error .ant-mention-wrapper.ant-mention-active:not([disabled]) .ant-mention-editor, .ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):focus {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(108, 233, 167, 0.2);} -.ant-form-item-has-error .ant-cascader-picker:focus .ant-cascader-input {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(108, 233, 167, 0.2);} +.ant-form-item-has-error .ant-mention-wrapper.ant-mention-active:not([disabled]) .ant-mention-editor, .ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):focus {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(255, 38, 204, 0.2);} +.ant-form-item-has-error .ant-cascader-picker:focus .ant-cascader-input {border-color: color(~`colorPalette("@{error-color}", 5)`);border-right-width: 1px !important;box-shadow: 0 0 0 2px rgba(255, 38, 204, 0.2);} .ant-form-item-has-error .ant-transfer-list {border-color: @error-color;} .ant-form-item-has-error .ant-transfer-list-search:not([disabled]) {border-color: @border-color-base;} .ant-form-item-has-error .ant-transfer-list-search:not([disabled]):hover {border-color: color(~`colorPalette("@{primary-color}", 5)`);border-right-width: 1px !important;} @@ -1457,9 +1457,9 @@ tr.ant-table-expanded-row:hover > td {background: #fbfbfb;} .ant-tag-checkable:active, .ant-tag-checkable-checked {color: #fff;} .ant-tag-checkable-checked {background-color: @primary-color;} .ant-tag-checkable:active {background-color: color(~`colorPalette("@{primary-color}", 7)`);} -.ant-tag-pink {color: #eb2f96;background: #fff0f6;border-color: #ffadd2;} +.ant-tag-pink {color: #eb2f96;background: color(~`colorPalette("@{modal-close-color}", 3)`);border-color: #ffadd2;} .ant-tag-pink-inverse {color: #fff;background: #eb2f96;border-color: #eb2f96;} -.ant-tag-magenta {color: #eb2f96;background: #fff0f6;border-color: #ffadd2;} +.ant-tag-magenta {color: #eb2f96;background: color(~`colorPalette("@{modal-close-color}", 3)`);border-color: #ffadd2;} .ant-tag-magenta-inverse {color: #fff;background: #eb2f96;border-color: #eb2f96;} .ant-tag-red {color: #f5222d;background: #fff1f0;border-color: #ffa39e;} .ant-tag-red-inverse {color: #fff;background: #f5222d;border-color: #f5222d;} @@ -1479,7 +1479,7 @@ tr.ant-table-expanded-row:hover > td {background: #fbfbfb;} .ant-tag-green-inverse {color: #fff;background: #52c41a;border-color: #52c41a;} .ant-tag-blue {color: #1890ff;background: #e6f7ff;border-color: #91d5ff;} .ant-tag-blue-inverse {color: #fff;background: #1890ff;border-color: #1890ff;} -.ant-tag-geekblue {color: #2f54eb;background: #f0f5ff;border-color: #adc6ff;} +.ant-tag-geekblue {color: #2f54eb;background: color(~`colorPalette("@{border-color-base}", 2)`);border-color: #adc6ff;} .ant-tag-geekblue-inverse {color: #fff;background: #2f54eb;border-color: #2f54eb;} .ant-tag-purple {color: #722ed1;background: #f9f0ff;border-color: #d3adf7;} .ant-tag-purple-inverse {color: #fff;background: #722ed1;border-color: #722ed1;} diff --git a/index.html b/index.html index 4a2f178299..5dfd46eb38 100644 --- a/index.html +++ b/index.html @@ -149,6 +149,6 @@ - + diff --git a/p__Classrooms__Lists__Exercise__Export__index.044d61b9.async.js b/p__Classrooms__Lists__Exercise__Export__index.689b14f7.async.js similarity index 93% rename from p__Classrooms__Lists__Exercise__Export__index.044d61b9.async.js rename to p__Classrooms__Lists__Exercise__Export__index.689b14f7.async.js index fbb66c6c9d..350cfbc034 100644 --- a/p__Classrooms__Lists__Exercise__Export__index.044d61b9.async.js +++ b/p__Classrooms__Lists__Exercise__Export__index.689b14f7.async.js @@ -299,7 +299,7 @@ Please report this to https://github.com/markedjs/marked.`,ue.silent)return"

A * @license MIT */var G=j("H7XF"),D=j("kVK+"),V=j("49sm");_e.Buffer=P,_e.SlowBuffer=i,_e.INSPECT_MAX_BYTES=50,P.TYPED_ARRAY_SUPPORT=se.TYPED_ARRAY_SUPPORT!==void 0?se.TYPED_ARRAY_SUPPORT:F(),_e.kMaxLength=O();function F(){try{var re=new Uint8Array(1);return re.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},re.foo()===42&&typeof re.subarray=="function"&&re.subarray(1,1).byteLength===0}catch(J){return!1}}function O(){return P.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function X(re,J){if(O()=O())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+O().toString(16)+" bytes");return re|0}function i(re){return+re!=re&&(re=0),P.alloc(+re)}P.isBuffer=function(J){return!!(J!=null&&J._isBuffer)},P.compare=function(J,k){if(!P.isBuffer(J)||!P.isBuffer(k))throw new TypeError("Arguments must be Buffers");if(J===k)return 0;for(var $=J.length,q=k.length,he=0,de=Math.min($,q);he>>1;case"base64":return at(re).length;default:if($)return ve(re).length;J=(""+J).toLowerCase(),$=!0}}P.byteLength=r;function t(re,J,k){var $=!1;if((J===void 0||J<0)&&(J=0),J>this.length)return"";if((k===void 0||k>this.length)&&(k=this.length),k<=0)return"";if(k>>>=0,J>>>=0,k<=J)return"";for(re||(re="utf8");;)switch(re){case"hex":return M(this,J,k);case"utf8":case"utf-8":return g(this,J,k);case"ascii":return N(this,J,k);case"latin1":case"binary":return T(this,J,k);case"base64":return b(this,J,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,J,k);default:if($)throw new TypeError("Unknown encoding: "+re);re=(re+"").toLowerCase(),$=!0}}P.prototype._isBuffer=!0;function E(re,J,k){var $=re[J];re[J]=re[k],re[k]=$}P.prototype.swap16=function(){var J=this.length;if(J%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var k=0;k0&&(J=this.toString("hex",0,k).match(/.{2}/g).join(" "),this.length>k&&(J+=" ... ")),""},P.prototype.compare=function(J,k,$,q,he){if(!P.isBuffer(J))throw new TypeError("Argument must be a Buffer");if(k===void 0&&(k=0),$===void 0&&($=J?J.length:0),q===void 0&&(q=0),he===void 0&&(he=this.length),k<0||$>J.length||q<0||he>this.length)throw new RangeError("out of range index");if(q>=he&&k>=$)return 0;if(q>=he)return-1;if(k>=$)return 1;if(k>>>=0,$>>>=0,q>>>=0,he>>>=0,this===J)return 0;for(var de=he-q,Qe=$-k,ze=Math.min(de,Qe),Ge=this.slice(q,he),$e=J.slice(k,$),nt=0;nt2147483647?k=2147483647:k<-2147483648&&(k=-2147483648),k=+k,isNaN(k)&&(k=q?0:re.length-1),k<0&&(k=re.length+k),k>=re.length){if(q)return-1;k=re.length-1}else if(k<0)if(q)k=0;else return-1;if(typeof J=="string"&&(J=P.from(J,$)),P.isBuffer(J))return J.length===0?-1:y(re,J,k,$,q);if(typeof J=="number")return J=J&255,P.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?q?Uint8Array.prototype.indexOf.call(re,J,k):Uint8Array.prototype.lastIndexOf.call(re,J,k):y(re,[J],k,$,q);throw new TypeError("val must be string, number or Buffer")}function y(re,J,k,$,q){var he=1,de=re.length,Qe=J.length;if($!==void 0&&($=String($).toLowerCase(),$==="ucs2"||$==="ucs-2"||$==="utf16le"||$==="utf-16le")){if(re.length<2||J.length<2)return-1;he=2,de/=2,Qe/=2,k/=2}function ze(xe,Ue){return he===1?xe[Ue]:xe.readUInt16BE(Ue*he)}var Ge;if(q){var $e=-1;for(Ge=k;Gede&&(k=de-Qe),Ge=k;Ge>=0;Ge--){for(var nt=!0,dt=0;dtq&&($=q)):$=q;var he=J.length;if(he%2!==0)throw new TypeError("Invalid hex string");$>he/2&&($=he/2);for(var de=0;de<$;++de){var Qe=parseInt(J.substr(de*2,2),16);if(isNaN(Qe))return de;re[k+de]=Qe}return de}function C(re,J,k,$){return je(ve(J,re.length-k),re,k,$)}function d(re,J,k,$){return je(Xe(J),re,k,$)}function n(re,J,k,$){return d(re,J,k,$)}function l(re,J,k,$){return je(at(J),re,k,$)}function c(re,J,k,$){return je(lt(J,re.length-k),re,k,$)}P.prototype.write=function(J,k,$,q){if(k===void 0)q="utf8",$=this.length,k=0;else if($===void 0&&typeof k=="string")q=k,$=this.length,k=0;else if(isFinite(k))k=k|0,isFinite($)?($=$|0,q===void 0&&(q="utf8")):(q=$,$=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var he=this.length-k;if(($===void 0||$>he)&&($=he),J.length>0&&($<0||k<0)||k>this.length)throw new RangeError("Attempt to write outside buffer bounds");q||(q="utf8");for(var de=!1;;)switch(q){case"hex":return B(this,J,k,$);case"utf8":case"utf-8":return C(this,J,k,$);case"ascii":return d(this,J,k,$);case"latin1":case"binary":return n(this,J,k,$);case"base64":return l(this,J,k,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c(this,J,k,$);default:if(de)throw new TypeError("Unknown encoding: "+q);q=(""+q).toLowerCase(),de=!0}},P.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function b(re,J,k){return J===0&&k===re.length?G.fromByteArray(re):G.fromByteArray(re.slice(J,k))}function g(re,J,k){k=Math.min(re.length,k);for(var $=[],q=J;q239?4:he>223?3:he>191?2:1;if(q+Qe<=k){var ze,Ge,$e,nt;switch(Qe){case 1:he<128&&(de=he);break;case 2:ze=re[q+1],(ze&192)===128&&(nt=(he&31)<<6|ze&63,nt>127&&(de=nt));break;case 3:ze=re[q+1],Ge=re[q+2],(ze&192)===128&&(Ge&192)===128&&(nt=(he&15)<<12|(ze&63)<<6|Ge&63,nt>2047&&(nt<55296||nt>57343)&&(de=nt));break;case 4:ze=re[q+1],Ge=re[q+2],$e=re[q+3],(ze&192)===128&&(Ge&192)===128&&($e&192)===128&&(nt=(he&15)<<18|(ze&63)<<12|(Ge&63)<<6|$e&63,nt>65535&&nt<1114112&&(de=nt))}}de===null?(de=65533,Qe=1):de>65535&&(de-=65536,$.push(de>>>10&1023|55296),de=56320|de&1023),$.push(de),q+=Qe}return L($)}var h=4096;function L(re){var J=re.length;if(J<=h)return String.fromCharCode.apply(String,re);for(var k="",$=0;$$)&&(k=$);for(var q="",he=J;he$&&(J=$),k<0?(k+=$,k<0&&(k=0)):k>$&&(k=$),kk)throw new RangeError("Trying to access beyond buffer length")}P.prototype.readUIntLE=function(J,k,$){J=J|0,k=k|0,$||U(J,k,this.length);for(var q=this[J],he=1,de=0;++de0&&(he*=256);)q+=this[J+--k]*he;return q},P.prototype.readUInt8=function(J,k){return k||U(J,1,this.length),this[J]},P.prototype.readUInt16LE=function(J,k){return k||U(J,2,this.length),this[J]|this[J+1]<<8},P.prototype.readUInt16BE=function(J,k){return k||U(J,2,this.length),this[J]<<8|this[J+1]},P.prototype.readUInt32LE=function(J,k){return k||U(J,4,this.length),(this[J]|this[J+1]<<8|this[J+2]<<16)+this[J+3]*16777216},P.prototype.readUInt32BE=function(J,k){return k||U(J,4,this.length),this[J]*16777216+(this[J+1]<<16|this[J+2]<<8|this[J+3])},P.prototype.readIntLE=function(J,k,$){J=J|0,k=k|0,$||U(J,k,this.length);for(var q=this[J],he=1,de=0;++de=he&&(q-=Math.pow(2,8*k)),q},P.prototype.readIntBE=function(J,k,$){J=J|0,k=k|0,$||U(J,k,this.length);for(var q=k,he=1,de=this[J+--q];q>0&&(he*=256);)de+=this[J+--q]*he;return he*=128,de>=he&&(de-=Math.pow(2,8*k)),de},P.prototype.readInt8=function(J,k){return k||U(J,1,this.length),this[J]&128?(255-this[J]+1)*-1:this[J]},P.prototype.readInt16LE=function(J,k){k||U(J,2,this.length);var $=this[J]|this[J+1]<<8;return $&32768?$|4294901760:$},P.prototype.readInt16BE=function(J,k){k||U(J,2,this.length);var $=this[J+1]|this[J]<<8;return $&32768?$|4294901760:$},P.prototype.readInt32LE=function(J,k){return k||U(J,4,this.length),this[J]|this[J+1]<<8|this[J+2]<<16|this[J+3]<<24},P.prototype.readInt32BE=function(J,k){return k||U(J,4,this.length),this[J]<<24|this[J+1]<<16|this[J+2]<<8|this[J+3]},P.prototype.readFloatLE=function(J,k){return k||U(J,4,this.length),D.read(this,J,!0,23,4)},P.prototype.readFloatBE=function(J,k){return k||U(J,4,this.length),D.read(this,J,!1,23,4)},P.prototype.readDoubleLE=function(J,k){return k||U(J,8,this.length),D.read(this,J,!0,52,8)},P.prototype.readDoubleBE=function(J,k){return k||U(J,8,this.length),D.read(this,J,!1,52,8)};function Y(re,J,k,$,q,he){if(!P.isBuffer(re))throw new TypeError('"buffer" argument must be a Buffer instance');if(J>q||Jre.length)throw new RangeError("Index out of range")}P.prototype.writeUIntLE=function(J,k,$,q){if(J=+J,k=k|0,$=$|0,!q){var he=Math.pow(2,8*$)-1;Y(this,J,k,$,he,0)}var de=1,Qe=0;for(this[k]=J&255;++Qe<$&&(de*=256);)this[k+Qe]=J/de&255;return k+$},P.prototype.writeUIntBE=function(J,k,$,q){if(J=+J,k=k|0,$=$|0,!q){var he=Math.pow(2,8*$)-1;Y(this,J,k,$,he,0)}var de=$-1,Qe=1;for(this[k+de]=J&255;--de>=0&&(Qe*=256);)this[k+de]=J/Qe&255;return k+$},P.prototype.writeUInt8=function(J,k,$){return J=+J,k=k|0,$||Y(this,J,k,1,255,0),P.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),this[k]=J&255,k+1};function ne(re,J,k,$){J<0&&(J=65535+J+1);for(var q=0,he=Math.min(re.length-k,2);q>>($?q:1-q)*8}P.prototype.writeUInt16LE=function(J,k,$){return J=+J,k=k|0,$||Y(this,J,k,2,65535,0),P.TYPED_ARRAY_SUPPORT?(this[k]=J&255,this[k+1]=J>>>8):ne(this,J,k,!0),k+2},P.prototype.writeUInt16BE=function(J,k,$){return J=+J,k=k|0,$||Y(this,J,k,2,65535,0),P.TYPED_ARRAY_SUPPORT?(this[k]=J>>>8,this[k+1]=J&255):ne(this,J,k,!1),k+2};function me(re,J,k,$){J<0&&(J=4294967295+J+1);for(var q=0,he=Math.min(re.length-k,4);q>>($?q:3-q)*8&255}P.prototype.writeUInt32LE=function(J,k,$){return J=+J,k=k|0,$||Y(this,J,k,4,4294967295,0),P.TYPED_ARRAY_SUPPORT?(this[k+3]=J>>>24,this[k+2]=J>>>16,this[k+1]=J>>>8,this[k]=J&255):me(this,J,k,!0),k+4},P.prototype.writeUInt32BE=function(J,k,$){return J=+J,k=k|0,$||Y(this,J,k,4,4294967295,0),P.TYPED_ARRAY_SUPPORT?(this[k]=J>>>24,this[k+1]=J>>>16,this[k+2]=J>>>8,this[k+3]=J&255):me(this,J,k,!1),k+4},P.prototype.writeIntLE=function(J,k,$,q){if(J=+J,k=k|0,!q){var he=Math.pow(2,8*$-1);Y(this,J,k,$,he-1,-he)}var de=0,Qe=1,ze=0;for(this[k]=J&255;++de<$&&(Qe*=256);)J<0&&ze===0&&this[k+de-1]!==0&&(ze=1),this[k+de]=(J/Qe>>0)-ze&255;return k+$},P.prototype.writeIntBE=function(J,k,$,q){if(J=+J,k=k|0,!q){var he=Math.pow(2,8*$-1);Y(this,J,k,$,he-1,-he)}var de=$-1,Qe=1,ze=0;for(this[k+de]=J&255;--de>=0&&(Qe*=256);)J<0&&ze===0&&this[k+de+1]!==0&&(ze=1),this[k+de]=(J/Qe>>0)-ze&255;return k+$},P.prototype.writeInt8=function(J,k,$){return J=+J,k=k|0,$||Y(this,J,k,1,127,-128),P.TYPED_ARRAY_SUPPORT||(J=Math.floor(J)),J<0&&(J=255+J+1),this[k]=J&255,k+1},P.prototype.writeInt16LE=function(J,k,$){return J=+J,k=k|0,$||Y(this,J,k,2,32767,-32768),P.TYPED_ARRAY_SUPPORT?(this[k]=J&255,this[k+1]=J>>>8):ne(this,J,k,!0),k+2},P.prototype.writeInt16BE=function(J,k,$){return J=+J,k=k|0,$||Y(this,J,k,2,32767,-32768),P.TYPED_ARRAY_SUPPORT?(this[k]=J>>>8,this[k+1]=J&255):ne(this,J,k,!1),k+2},P.prototype.writeInt32LE=function(J,k,$){return J=+J,k=k|0,$||Y(this,J,k,4,2147483647,-2147483648),P.TYPED_ARRAY_SUPPORT?(this[k]=J&255,this[k+1]=J>>>8,this[k+2]=J>>>16,this[k+3]=J>>>24):me(this,J,k,!0),k+4},P.prototype.writeInt32BE=function(J,k,$){return J=+J,k=k|0,$||Y(this,J,k,4,2147483647,-2147483648),J<0&&(J=4294967295+J+1),P.TYPED_ARRAY_SUPPORT?(this[k]=J>>>24,this[k+1]=J>>>16,this[k+2]=J>>>8,this[k+3]=J&255):me(this,J,k,!1),k+4};function ge(re,J,k,$,q,he){if(k+$>re.length)throw new RangeError("Index out of range");if(k<0)throw new RangeError("Index out of range")}function Oe(re,J,k,$,q){return q||ge(re,J,k,4,34028234663852886e22,-34028234663852886e22),D.write(re,J,k,$,23,4),k+4}P.prototype.writeFloatLE=function(J,k,$){return Oe(this,J,k,!0,$)},P.prototype.writeFloatBE=function(J,k,$){return Oe(this,J,k,!1,$)};function Se(re,J,k,$,q){return q||ge(re,J,k,8,17976931348623157e292,-17976931348623157e292),D.write(re,J,k,$,52,8),k+8}P.prototype.writeDoubleLE=function(J,k,$){return Se(this,J,k,!0,$)},P.prototype.writeDoubleBE=function(J,k,$){return Se(this,J,k,!1,$)},P.prototype.copy=function(J,k,$,q){if($||($=0),!q&&q!==0&&(q=this.length),k>=J.length&&(k=J.length),k||(k=0),q>0&&q<$&&(q=$),q===$)return 0;if(J.length===0||this.length===0)return 0;if(k<0)throw new RangeError("targetStart out of bounds");if($<0||$>=this.length)throw new RangeError("sourceStart out of bounds");if(q<0)throw new RangeError("sourceEnd out of bounds");q>this.length&&(q=this.length),J.length-k=0;--de)J[de+k]=this[de+$];else if(he<1e3||!P.TYPED_ARRAY_SUPPORT)for(de=0;de>>0,$=$===void 0?this.length:$>>>0,J||(J=0);var de;if(typeof J=="number")for(de=k;de<$;++de)this[de]=J;else{var Qe=P.isBuffer(J)?J:ve(new P(J,q).toString()),ze=Qe.length;for(de=0;de<$-k;++de)this[de+k]=Qe[de%ze]}return this};var Be=/[^+\/0-9A-Za-z-_]/g;function Ne(re){if(re=ke(re).replace(Be,""),re.length<2)return"";for(;re.length%4!==0;)re=re+"=";return re}function ke(re){return re.trim?re.trim():re.replace(/^\s+|\s+$/g,"")}function Ce(re){return re<16?"0"+re.toString(16):re.toString(16)}function ve(re,J){J=J||Infinity;for(var k,$=re.length,q=null,he=[],de=0;de<$;++de){if(k=re.charCodeAt(de),k>55295&&k<57344){if(!q){if(k>56319){(J-=3)>-1&&he.push(239,191,189);continue}else if(de+1===$){(J-=3)>-1&&he.push(239,191,189);continue}q=k;continue}if(k<56320){(J-=3)>-1&&he.push(239,191,189),q=k;continue}k=(q-55296<<10|k-56320)+65536}else q&&((J-=3)>-1&&he.push(239,191,189));if(q=null,k<128){if((J-=1)<0)break;he.push(k)}else if(k<2048){if((J-=2)<0)break;he.push(k>>6|192,k&63|128)}else if(k<65536){if((J-=3)<0)break;he.push(k>>12|224,k>>6&63|128,k&63|128)}else if(k<1114112){if((J-=4)<0)break;he.push(k>>18|240,k>>12&63|128,k>>6&63|128,k&63|128)}else throw new Error("Invalid code point")}return he}function Xe(re){for(var J=[],k=0;k>8,q=k%256,he.push(q),he.push($);return he}function at(re){return G.toByteArray(Ne(re))}function je(re,J,k,$){for(var q=0;q<$&&!(q+k>=J.length||q>=re.length);++q)J[q+k]=re[q];return q}function rt(re){return re!==re}}).call(this,j("IyRk"))},IBYe:function(ht,_e,j){"use strict";function se(G){return null}_e.a=se},J66h:function(ht,_e,j){(function(se){var G,D;(function(V,F){ht.exports=F(V)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof se!="undefined"?se:this,function(V){"use strict";V=V||{};var F=V.Base64,O="2.6.4",X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",P=function(h){for(var L={},N=0,T=h.length;N>>6)+e(128|L&63):e(224|L>>>12&15)+e(128|L>>>6&63)+e(128|L&63)}else{var L=65536+(h.charCodeAt(0)-55296)*1024+(h.charCodeAt(1)-56320);return e(240|L>>>18&7)+e(128|L>>>12&63)+e(128|L>>>6&63)+e(128|L&63)}},m=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,v=function(h){return h.replace(m,R)},u=function(h){var L=[0,2,1][h.length%3],N=h.charCodeAt(0)<<16|(h.length>1?h.charCodeAt(1):0)<<8|(h.length>2?h.charCodeAt(2):0),T=[X.charAt(N>>>18),X.charAt(N>>>12&63),L>=2?"=":X.charAt(N>>>6&63),L>=1?"=":X.charAt(N&63)];return T.join("")},s=V.btoa&&typeof V.btoa=="function"?function(h){return V.btoa(h)}:function(h){if(h.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return h.replace(/[\s\S]{1,3}/g,u)},a=function(h){return s(v(String(h)))},A=function(h){return h.replace(/[+\/]/g,function(L){return L=="+"?"-":"_"}).replace(/=/g,"")},o=function(h,L){return L?A(a(h)):a(h)},i=function(h){return o(h,!0)},r;V.Uint8Array&&(r=function(h,L){for(var N="",T=0,M=h.length;T>>18)+X.charAt(ne>>>12&63)+(typeof U!="undefined"?X.charAt(ne>>>6&63):"=")+(typeof Y!="undefined"?X.charAt(ne&63):"=")}return L?A(N):N});var t=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,E=function(h){switch(h.length){case 4:var L=(7&h.charCodeAt(0))<<18|(63&h.charCodeAt(1))<<12|(63&h.charCodeAt(2))<<6|63&h.charCodeAt(3),N=L-65536;return e((N>>>10)+55296)+e((N&1023)+56320);case 3:return e((15&h.charCodeAt(0))<<12|(63&h.charCodeAt(1))<<6|63&h.charCodeAt(2));default:return e((31&h.charCodeAt(0))<<6|63&h.charCodeAt(1))}},_=function(h){return h.replace(t,E)},y=function(h){var L=h.length,N=L%4,T=(L>0?P[h.charAt(0)]<<18:0)|(L>1?P[h.charAt(1)]<<12:0)|(L>2?P[h.charAt(2)]<<6:0)|(L>3?P[h.charAt(3)]:0),M=[e(T>>>16),e(T>>>8&255),e(T&255)];return M.length-=[0,0,2,1][N],M.join("")},B=V.atob&&typeof V.atob=="function"?function(h){return V.atob(h)}:function(h){return h.replace(/\S{1,4}/g,y)},C=function(h){return B(String(h).replace(/[^A-Za-z0-9\+\/]/g,""))},d=function(h){return _(B(h))},n=function(h){return String(h).replace(/[-_]/g,function(L){return L=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},l=function(h){return d(n(h))},c;V.Uint8Array&&(c=function(h){return Uint8Array.from(C(n(h)),function(L){return L.charCodeAt(0)})});var b=function(){var h=V.Base64;return V.Base64=F,h};if(V.Base64={VERSION:O,atob:C,btoa:s,fromBase64:l,toBase64:o,utob:v,encode:o,encodeURI:i,btou:_,decode:l,noConflict:b,fromUint8Array:r,toUint8Array:c},typeof Object.defineProperty=="function"){var g=function(h){return{value:h,enumerable:!1,writable:!0,configurable:!0}};V.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",g(function(){return l(this)})),Object.defineProperty(String.prototype,"toBase64",g(function(h){return o(this,h)})),Object.defineProperty(String.prototype,"toBase64URI",g(function(){return o(this,!0)}))}}return V.Meteor&&(Base64=V.Base64),ht.exports?ht.exports.Base64=V.Base64:!(G=[],D=function(){return V.Base64}.apply(_e,G),D!==void 0&&(ht.exports=D)),{Base64:V.Base64}})}).call(this,j("IyRk"))},JYp7:function(ht,_e,j){"use strict";j.d(_e,"a",function(){return se});var se;(function(G){function D(t){return t&&typeof t=="object"&&typeof t[Symbol.iterator]=="function"}G.is=D;const V=Object.freeze([]);function F(){return V}G.empty=F;function*O(t){yield t}G.single=O;function X(t){return t||V}G.from=X;function P(t){return!t||t[Symbol.iterator]().next().done===!0}G.isEmpty=P;function e(t){return t[Symbol.iterator]().next().value}G.first=e;function R(t,E){for(const _ of t)if(E(_))return!0;return!1}G.some=R;function m(t,E){for(const _ of t)if(E(_))return _;return}G.find=m;function*v(t,E){for(const _ of t)E(_)&&(yield _)}G.filter=v;function*u(t,E){let _=0;for(const y of t)yield E(y,_++)}G.map=u;function*s(...t){for(const E of t)for(const _ of E)yield _}G.concat=s;function*a(t){for(const E of t)for(const _ of E)yield _}G.concatNested=a;function A(t,E,_){let y=_;for(const B of t)y=E(y,B);return y}G.reduce=A;function*o(t,E,_=t.length){for(E<0&&(E+=t.length),_<0?_+=t.length:_>t.length&&(_=t.length);E<_;E++)yield t[E]}G.slice=o;function i(t,E=Number.POSITIVE_INFINITY){const _=[];if(E===0)return[_,t];const y=t[Symbol.iterator]();for(let B=0;By===B){const y=t[Symbol.iterator](),B=E[Symbol.iterator]();for(;;){const C=y.next(),d=B.next();if(C.done!==d.done)return!1;if(C.done)return!0;if(!_(C.value,d.value))return!1}}G.equals=r})(se||(se={}))},LdHM:function(ht,_e,j){"use strict";j.d(_e,"b",function(){return t}),j.d(_e,"a",function(){return _});var se=j("1OyB"),G=j("vuIU"),D=j("Ji7U"),V=j("LK+K"),F=j("q1tI"),O=j("rePB"),X=j("Ff2n"),P=j("ODXe"),e=j("4IlW"),R=j("bX4T"),m=j("YrtM"),v=j("TSYQ"),u=j.n(v),s=j("+nKL"),a=j("8OUc"),A=function(Y,ne){var me=Y.prefixCls,ge=Y.id,Oe=Y.flattenOptions,Se=Y.childrenAsData,Be=Y.values,Ne=Y.searchValue,ke=Y.multiple,Ce=Y.defaultActiveFirstOption,ve=Y.height,Xe=Y.itemHeight,lt=Y.notFoundContent,at=Y.open,je=Y.menuItemSelectedIcon,rt=Y.virtual,re=Y.onSelect,J=Y.onToggleOpen,k=Y.onActiveValue,$=Y.onScroll,q=Y.onMouseEnter,he="".concat(me,"-item"),de=Object(m.a)(function(){return Oe},[at,Oe],function(Fe,we){return we[0]&&Fe[1]!==we[1]}),Qe=F.useRef(null),ze=function(we){we.preventDefault()},Ge=function(we){Qe.current&&Qe.current.scrollTo({index:we})},$e=function(we){for(var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ce=de.length,te=0;te1&&arguments[1]!==void 0?arguments[1]:!1;return Object(B.a)(U).map(function(ne,me){if(!F.isValidElement(ne)||!ne.type)return null;var ge=ne.type.isSelectOptGroup,Oe=ne.key,Se=ne.props,Be=Se.children,Ne=Object(X.a)(Se,["children"]);return Y||!ge?C(ne):Object(y.a)(Object(y.a)({key:"__RC_SELECT_GRP__".concat(Oe===null?me:Oe,"__"),label:Oe},Ne),{},{options:d(Be)})}).filter(function(ne){return ne})}var n=j("2Qr1"),l=j("qNPg"),c=j("U8pU"),b=j("Kwbf"),g=j("WKfj");function h(U){var Y=U.mode,ne=U.options,me=U.children,ge=U.backfill,Oe=U.allowClear,Se=U.placeholder,Be=U.getInputElement,Ne=U.showSearch,ke=U.onSearch,Ce=U.defaultOpen,ve=U.autoFocus,Xe=U.labelInValue,lt=U.value,at=U.inputValue,je=U.optionLabelProp,rt=Y==="multiple"||Y==="tags",re=Ne!==void 0?Ne:rt||Y==="combobox",J=ne||d(me);if(Object(b.a)(Y!=="tags"||J.every(function(he){return!he.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Y==="tags"||Y==="combobox"){var k=J.some(function(he){return he.options?he.options.some(function(de){return typeof("value"in de?de.value:de.key)=="number"}):typeof("value"in he?he.value:he.key)=="number"});Object(b.a)(!k,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(b.a)(Y!=="combobox"||!je,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(b.a)(Y==="combobox"||!ge,"`backfill` only works with `combobox` mode."),Object(b.a)(Y==="combobox"||!Be,"`getInputElement` only work with `combobox` mode."),Object(b.b)(Y!=="combobox"||!Be||!Oe||!Se,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ke&&!re&&Y!=="combobox"&&Y!=="tags"&&Object(b.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(b.b)(!Ce||ve,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),lt!=null){var $=Object(g.d)(lt);Object(b.a)(!Xe||$.every(function(he){return Object(c.a)(he)==="object"&&("key"in he||"value"in he)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(b.a)(!rt||Array.isArray(lt),"`value` should be array when `mode` is `multiple` or `tags`")}if(me){var q=null;Object(B.a)(me).some(function(he){if(!F.isValidElement(he)||!he.type)return!1;var de=he.type;if(de.isSelectOption)return!1;if(de.isSelectOptGroup){var Qe=Object(B.a)(he.props.children).every(function(ze){return!F.isValidElement(ze)||!he.type||ze.type.isSelectOption?!0:(q=ze.type,!1)});return!Qe}return q=de,!0}),q&&Object(b.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(q.displayName||q.name||q,"`.")),Object(b.a)(at===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var L=h,N=Object(l.a)({prefixCls:"rc-select",components:{optionList:i},convertChildrenToData:d,flattenOptions:n.d,getLabeledValue:n.e,filterOptions:n.b,isValueDisabled:n.g,findValueOption:n.c,warningProps:L,fillOptionsWithMissingValue:n.a}),T=function(U){Object(D.a)(ne,U);var Y=Object(V.a)(ne);function ne(){var me;return Object(se.a)(this,ne),me=Y.apply(this,arguments),me.selectRef=F.createRef(),me.focus=function(){me.selectRef.current.focus()},me.blur=function(){me.selectRef.current.blur()},me}return Object(G.a)(ne,[{key:"render",value:function(){return F.createElement(N,Object.assign({ref:this.selectRef},this.props))}}]),ne}(F.Component);T.Option=t,T.OptGroup=_;var M=T,W=_e.c=M},MI8n:function(ht,_e,j){"use strict";j.d(_e,"c",function(){return F}),j.d(_e,"b",function(){return e}),j.d(_e,"e",function(){return R}),j.d(_e,"a",function(){return m}),j.d(_e,"d",function(){return v}),j.d(_e,"f",function(){return u});var se=j("/cxE"),G=j("pmY6"),D=j("24hK"),V=j("5Y4S"),F;(function(s){s.None=()=>G.a.None;function a(h){return(L,N=null,T)=>{let M=!1,W;return W=h(U=>M?void 0:(W?W.dispose():M=!0,L.call(N,U)),null,T),M&&W.dispose(),W}}s.once=a;function A(h,L){return _((N,T=null,M)=>h(W=>N.call(T,L(W)),null,M))}s.map=A;function o(h,L){return _((N,T=null,M)=>h(W=>{L(W),N.call(T,W)},null,M))}s.forEach=o;function i(h,L){return _((N,T=null,M)=>h(W=>L(W)&&N.call(T,W),null,M))}s.filter=i;function r(h){return h}s.signal=r;function t(...h){return(L,N=null,T)=>Object(G.e)(...h.map(M=>M(W=>L.call(N,W),null,T)))}s.any=t;function E(h,L,N){let T=N;return A(h,M=>(T=L(T,M),T))}s.reduce=E;function _(h){let L;const N=new e({onFirstListenerAdd(){L=h(N.fire,N)},onLastListenerRemove(){L.dispose()}});return N.event}function y(h,L,N=100,T=!1,M){let W,U,Y,ne=0;const me=new e({leakWarningThreshold:M,onFirstListenerAdd(){W=h(ge=>{ne++,U=L(U,ge),T&&!Y&&(me.fire(U),U=void 0),clearTimeout(Y),Y=setTimeout(()=>{const Oe=U;U=void 0,Y=void 0,(!T||ne>1)&&me.fire(Oe),ne=0},N)})},onLastListenerRemove(){W.dispose()}});return me.event}s.debounce=y;function B(h,L=(N,T)=>N===T){let N=!0,T;return i(h,M=>{const W=N||!L(M,T);return N=!1,T=M,W})}s.latch=B;function C(h,L){return[s.filter(h,L),s.filter(h,N=>!L(N))]}s.split=C;function d(h,L=!1,N=[]){let T=N.slice(),M=h(Y=>{T?T.push(Y):U.fire(Y)});const W=()=>{T&&T.forEach(Y=>U.fire(Y)),T=null},U=new e({onFirstListenerAdd(){M||(M=h(Y=>U.fire(Y)))},onFirstListenerDidAdd(){T&&(L?setTimeout(W):W())},onLastListenerRemove(){M&&M.dispose(),M=null}});return U.event}s.buffer=d;class n{constructor(h){this.event=h}map(h){return new n(A(this.event,h))}forEach(h){return new n(o(this.event,h))}filter(h){return new n(i(this.event,h))}reduce(h,L){return new n(E(this.event,h,L))}latch(){return new n(B(this.event))}debounce(h,L=100,N=!1,T){return new n(y(this.event,h,L,N,T))}on(h,L,N){return this.event(h,L,N)}once(h,L,N){return a(this.event)(h,L,N)}}function l(h){return new n(h)}s.chain=l;function c(h,L,N=T=>T){const T=(...Y)=>U.fire(N(...Y)),M=()=>h.on(L,T),W=()=>h.removeListener(L,T),U=new e({onFirstListenerAdd:M,onLastListenerRemove:W});return U.event}s.fromNodeEventEmitter=c;function b(h,L,N=T=>T){const T=(...Y)=>U.fire(N(...Y)),M=()=>h.addEventListener(L,T),W=()=>h.removeEventListener(L,T),U=new e({onFirstListenerAdd:M,onLastListenerRemove:W});return U.event}s.fromDOMEventEmitter=b;function g(h){return new Promise(L=>a(h)(L))}s.toPromise=g})(F||(F={}));class O{constructor(s){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${s}_${O._idPool++}`}start(s){this._stopWatch=new V.a(!0),this._listenerCount=s}stop(){if(this._stopWatch){const s=this._stopWatch.elapsed();this._elapsedOverall+=s,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${s.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}O._idPool=0;let X=-1;class P{constructor(s,a=Math.random().toString(18).slice(2,5)){this.customThreshold=s,this.name=a,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(s){let a=X;if(typeof this.customThreshold=="number"&&(a=this.customThreshold),a<=0||s{const i=this._stacks.get(A)||0;this._stacks.set(A,i-1)}}}class e{constructor(s){var a;this._disposed=!1,this._options=s,this._leakageMon=X>0?new P(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((a=this._options)===null||a===void 0?void 0:a._profName)?new O(this._options._profName):void 0}get event(){return this._event||(this._event=(s,a,A)=>{var o;this._listeners||(this._listeners=new D.a);const i=this._listeners.isEmpty();i&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const r=this._listeners.push(a?[s,a]:s);i&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,s,a);const t=(o=this._leakageMon)===null||o===void 0?void 0:o.check(this._listeners.size),E=Object(G.i)(()=>{if(t&&t(),!this._disposed&&(r(),this._options&&this._options.onLastListenerRemove)){const _=this._listeners&&!this._listeners.isEmpty();_||this._options.onLastListenerRemove(this)}});return A instanceof G.b?A.add(E):Array.isArray(A)&&A.push(E),E}),this._event}fire(s){var a,A;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new D.a);for(let o of this._listeners)this._deliveryQueue.push([o,s]);for((a=this._perfMon)===null||a===void 0||a.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[o,i]=this._deliveryQueue.shift();try{typeof o=="function"?o.call(void 0,i):o[0].call(o[1],i)}catch(r){Object(se.f)(r)}}(A=this._perfMon)===null||A===void 0||A.stop()}}dispose(){var s,a,A,o,i;this._disposed||(this._disposed=!0,(s=this._listeners)===null||s===void 0||s.clear(),(a=this._deliveryQueue)===null||a===void 0||a.clear(),(o=(A=this._options)===null||A===void 0?void 0:A.onLastListenerRemove)===null||o===void 0||o.call(A),(i=this._leakageMon)===null||i===void 0||i.dispose())}}class R extends e{constructor(s){super(s);this._isPaused=0,this._eventQueue=new D.a,this._mergeFn=s==null?void 0:s.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const s=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(s))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(s){this._listeners&&(this._isPaused!==0?this._eventQueue.push(s):super.fire(s))}}class m extends R{constructor(s){var a;super(s);this._delay=(a=s.delay)!==null&&a!==void 0?a:100}fire(s){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(s)}}class v{constructor(){this.buffers=[]}wrapEvent(s){return(a,A,o)=>s(i=>{const r=this.buffers[this.buffers.length-1];r?r.push(()=>a.call(A,i)):a.call(A,i)},void 0,o)}bufferEvents(s){const a=[];this.buffers.push(a);const A=s();return this.buffers.pop(),a.forEach(o=>o()),A}}class u{constructor(){this.listening=!1,this.inputEvent=F.None,this.inputEventListener=G.a.None,this.emitter=new e({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(s){this.inputEvent=s,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=s(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MNsG:function(ht,_e,j){"use strict";(function(se,G){j.d(_e,"b",function(){return A}),j.d(_e,"i",function(){return t}),j.d(_e,"f",function(){return E}),j.d(_e,"d",function(){return _}),j.d(_e,"g",function(){return y}),j.d(_e,"h",function(){return B}),j.d(_e,"c",function(){return C}),j.d(_e,"k",function(){return d}),j.d(_e,"j",function(){return n}),j.d(_e,"a",function(){return l}),j.d(_e,"e",function(){return g});var D;const V="en";let F=!1,O=!1,X=!1,P=!1,e=!1,R=!1,m=!1,v,u=V,s,a;const A=typeof self=="object"?self:typeof se=="object"?se:{};let o;typeof A.vscode!="undefined"&&typeof A.vscode.process!="undefined"?o=A.vscode.process:typeof G!="undefined"&&(o=G);const i=typeof((D=o==null?void 0:o.versions)===null||D===void 0?void 0:D.electron)=="string"&&o.type==="renderer";if(typeof navigator=="object"&&!i)a=navigator.userAgent,F=a.indexOf("Windows")>=0,O=a.indexOf("Macintosh")>=0,m=(a.indexOf("Macintosh")>=0||a.indexOf("iPad")>=0||a.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,X=a.indexOf("Linux")>=0,R=!0,v=navigator.language,u=v;else if(typeof o=="object"){F=o.platform==="win32",O=o.platform==="darwin",X=o.platform==="linux",P=X&&!!o.env.SNAP&&!!o.env.SNAP_REVISION,v=V,u=V;const h=o.env.VSCODE_NLS_CONFIG;if(h)try{const L=JSON.parse(h),N=L.availableLanguages["*"];v=L.locale,u=N||V,s=L._translationsConfigFile}catch(L){}e=!0}else console.error("Unable to resolve platform.");let r=0;O?r=1:F?r=3:X&&(r=2);const t=F,E=O,_=X,y=e,B=R,C=m,d=a,n=function(){if(A.setImmediate)return A.setImmediate.bind(A);if(typeof A.postMessage=="function"&&!A.importScripts){let N=[];A.addEventListener("message",M=>{if(M.data&&M.data.vscodeSetImmediateId)for(let W=0,U=N.length;W{const W=++T;N.push({id:W,callback:M}),A.postMessage({vscodeSetImmediateId:W},"*")}}if(typeof(o==null?void 0:o.nextTick)=="function")return o.nextTick.bind(o);const L=Promise.resolve();return N=>L.then(N)}(),l=O||m?2:F?1:3;let c=!0,b=!1;function g(){if(!b){b=!0;const h=new Uint8Array(2);h[0]=1,h[1]=2;const L=new Uint16Array(h.buffer);c=L[0]===(2<<8)+1}return c}}).call(this,j("IyRk"),j("Q2Ig"))},N0LK:function(ht,_e,j){"use strict";j.d(_e,"C",function(){return se}),j.d(_e,"v",function(){return D}),j.d(_e,"s",function(){return V}),j.d(_e,"t",function(){return F}),j.d(_e,"U",function(){return O}),j.d(_e,"J",function(){return X}),j.d(_e,"O",function(){return P}),j.d(_e,"p",function(){return e}),j.d(_e,"T",function(){return R}),j.d(_e,"q",function(){return m}),j.d(_e,"N",function(){return v}),j.d(_e,"M",function(){return u}),j.d(_e,"Q",function(){return s}),j.d(_e,"u",function(){return a}),j.d(_e,"x",function(){return A}),j.d(_e,"I",function(){return o}),j.d(_e,"f",function(){return i}),j.d(_e,"h",function(){return r}),j.d(_e,"g",function(){return t}),j.d(_e,"i",function(){return E}),j.d(_e,"G",function(){return _}),j.d(_e,"H",function(){return y}),j.d(_e,"r",function(){return B}),j.d(_e,"R",function(){return C}),j.d(_e,"d",function(){return d}),j.d(_e,"e",function(){return n}),j.d(_e,"E",function(){return l}),j.d(_e,"F",function(){return c}),j.d(_e,"j",function(){return b}),j.d(_e,"z",function(){return g}),j.d(_e,"K",function(){return L}),j.d(_e,"L",function(){return N}),j.d(_e,"m",function(){return M}),j.d(_e,"k",function(){return U}),j.d(_e,"A",function(){return ne}),j.d(_e,"a",function(){return me}),j.d(_e,"n",function(){return ge}),j.d(_e,"l",function(){return Oe}),j.d(_e,"D",function(){return Se}),j.d(_e,"B",function(){return Be}),j.d(_e,"b",function(){return Ne}),j.d(_e,"S",function(){return ke}),j.d(_e,"o",function(){return Ce}),j.d(_e,"P",function(){return ve}),j.d(_e,"w",function(){return Xe}),j.d(_e,"c",function(){return lt}),j.d(_e,"y",function(){return rt});function se($){return!$||typeof $!="string"?!0:$.trim().length===0}const G=/{(\d+)}/g;function D($,...q){return q.length===0?$:$.replace(G,function(he,de){const Qe=parseInt(de,10);return isNaN(Qe)||Qe<0||Qe>=q.length?he:q[Qe]})}function V($){return $.replace(/[<>&]/g,function(q){switch(q){case"<":return"<";case">":return">";case"&":return"&";default:return q}})}function F($){return $.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function O($,q=" "){const he=X($,q);return P(he,q)}function X($,q){if(!$||!q)return $;const he=q.length;if(he===0||$.length===0)return $;let de=0;for(;$.indexOf(q,de)===de;)de=de+he;return $.substring(de)}function P($,q){if(!$||!q)return $;const he=q.length,de=$.length;if(he===0||de===0)return $;let Qe=de,ze=-1;for(;!(ze=$.lastIndexOf(q,Qe-1),ze===-1||ze+he!==Qe);){if(ze===0)return"";Qe=ze}return $.substring(0,Qe)}function e($){return $.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function R($){return $.replace(/\*/g,"")}function m($,q,he={}){if(!$)throw new Error("Cannot create regex from empty string");q||($=F($)),he.wholeWord&&(/\B/.test($.charAt(0))||($="\\b"+$),/\B/.test($.charAt($.length-1))||($=$+"\\b"));let de="";return he.global&&(de+="g"),he.matchCase||(de+="i"),he.multiline&&(de+="m"),he.unicode&&(de+="u"),new RegExp($,de)}function v($){if($.source==="^"||$.source==="^$"||$.source==="$"||$.source==="^\\s*$")return!1;const q=$.exec("");return!!(q&&$.lastIndex===0)}function u($){return($.global?"g":"")+($.ignoreCase?"i":"")+($.multiline?"m":"")+($.unicode?"u":"")}function s($){return $.split(/\r\n|\r|\n/)}function a($){for(let q=0,he=$.length;q=0;he--){const de=$.charCodeAt(he);if(de!==32&&de!==9)return he}return-1}function i($,q){return $q?1:0}function r($,q,he=0,de=$.length,Qe=0,ze=q.length){for(;hedt)return 1}const Ge=de-he,$e=ze-Qe;return Ge<$e?-1:Ge>$e?1:0}function t($,q){return E($,q,0,$.length,0,q.length)}function E($,q,he=0,de=$.length,Qe=0,ze=q.length){for(;he=128||dt>=128)return r($.toLowerCase(),q.toLowerCase(),he,de,Qe,ze);_(nt)&&(nt-=32),_(dt)&&(dt-=32);const xe=nt-dt;if(xe===0)continue;return xe}const Ge=de-he,$e=ze-Qe;return Ge<$e?-1:Ge>$e?1:0}function _($){return $>=97&&$<=122}function y($){return $>=65&&$<=90}function B($,q){return $.length===q.length&&E($,q)===0}function C($,q){const he=q.length;return q.length>$.length?!1:E($,q,0,he)===0}function d($,q){let he,de=Math.min($.length,q.length);for(he=0;he1){const de=$.charCodeAt(q-2);if(l(de))return b(de,he)}return he}function L($,q){const he=at.getInstance(),de=q,Qe=$.length,ze=g($,Qe,q);q+=ze>=65536?2:1;let Ge=he.getGraphemeBreakType(ze);for(;q=65536?2:1,Ge=nt}return q-de}function N($,q){const he=at.getInstance(),de=q,Qe=h($,q);q-=Qe>=65536?2:1;let ze=he.getGraphemeBreakType(Qe);for(;q>0;){const Ge=h($,q),$e=he.getGraphemeBreakType(Ge);if(lt($e,ze))break;q-=Ge>=65536?2:1,ze=$e}return de-q}const T=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function M($){return T.test($)}const W=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function U($){return W.test($)}const Y=/^[\t\n\r\x20-\x7E]*$/;function ne($){return Y.test($)}const me=/[\u2028\u2029]/;function ge($){return me.test($)}function Oe($){for(let q=0,he=$.length;q=11904&&$<=55215||$>=63744&&$<=64255||$>=65281&&$<=65374}function Be($){return $>=127462&&$<=127487||$===8986||$===8987||$===9200||$===9203||$>=9728&&$<=10175||$===11088||$===11093||$>=127744&&$<=128591||$>=128640&&$<=128764||$>=128992&&$<=129003||$>=129280&&$<=129535||$>=129648&&$<=129750}const Ne=String.fromCharCode(65279);function ke($){return!!($&&$.length>0&&$.charCodeAt(0)===65279)}function Ce($,q=!1){return $?(q&&($=$.replace(/\\./g,"")),$.toLowerCase()!==$):!1}function ve($){const q=90-65+1;return $=$%(2*q),$q[3*de+1])de=2*de+1;else return q[3*de+2];return 0}}at._INSTANCE=null;function je(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function rt($,q){if($===0)return 0;const he=re($,q);if(he!==void 0)return he;const de=h(q,$);return $-=J(de),$}function re($,q){let he=h(q,$);for($-=J(he);k(he)||he===65039||he===8419;){if($===0)return;he=h(q,$),$-=J(he)}if(!Be(he))return;if($>=0){const de=h(q,$);de===8205&&($-=J(de))}return $}function J($){return $>=65536?2:1}function k($){return 127995<=$&&$<=127999}},NKYn:function(ht,_e,j){"use strict";j.d(_e,"a",function(){return e});var se=j("14J3"),G=j("BMrR"),D=j("jCWc"),V=j("kPKH"),F=j("tJVT"),O=j("q1tI"),X=j.n(O),P=j("9Bee"),e=function(m){var v=m.data,u=Object(O.useState)(!1),s=Object(F.a)(u,2),a=s[0],A=s[1],o=function(){var r,t;switch(v.question_type){case 3:return X.a.createElement("aside",{className:"mt20"},X.a.createElement("span",{style:{cursor:"pointer"},className:"font14 c-blue current",onClick:function(){A(!a)}},a?"\u9690\u85CF\u53C2\u8003\u7B54\u6848":"\u67E5\u770B\u53C2\u8003\u7B54\u6848"),a&&X.a.createElement("div",null,v==null||((r=v.standard_answer)===null||r===void 0)?void 0:r.map(function(E,_){var y;return X.a.createElement(G.a,{style:{alignItems:"baseline"},className:"mr20"},X.a.createElement(V.a,{flex:"50px"},X.a.createElement("span",{className:"mt10"},"\u586B\u7A7A",E.choice_id,":")),X.a.createElement(V.a,{flex:1},E==null||((y=E.answer_text)===null||y===void 0)?void 0:y.map(function(B,C){return X.a.createElement("div",{dangerouslySetInnerHTML:{__html:B||""}})})))})));case 4:return X.a.createElement("aside",{className:"mt20"},X.a.createElement("span",{style:{cursor:"pointer"},className:"font14 c-blue current",onClick:function(){A(!a)}},a?"\u9690\u85CF\u53C2\u8003\u7B54\u6848":"\u67E5\u770B\u53C2\u8003\u7B54\u6848"),a&&X.a.createElement("div",null,X.a.createElement(P.a,{value:v==null||((t=v.standard_answer)===null||t===void 0)?void 0:t.join(" ")})))}};return X.a.createElement("section",null,o())}},NvD2:function(ht,_e,j){"use strict";j.d(_e,"a",function(){return O});var se=j("Kwbf");function G(X,P){var e=new Set;return X.forEach(function(R){P.has(R)||e.add(R)}),e}function D(X){var P=X||{},e=P.disabled,R=P.disableCheckbox,m=P.checkable;return!!(e||R)||m===!1}function V(X,P,e,R){for(var m=new Set(X),v=new Set,u=0;u<=e;u+=1){var s=P.get(u)||new Set;s.forEach(function(i){var r=i.key,t=i.node,E=i.children,_=E===void 0?[]:E;m.has(r)&&!R(t)&&_.filter(function(y){return!R(y.node)}).forEach(function(y){m.add(y.key)})})}for(var a=new Set,A=e;A>=0;A-=1){var o=P.get(A)||new Set;o.forEach(function(i){var r=i.parent,t=i.node;if(R(t)||!i.parent||a.has(i.parent.key))return;if(R(i.parent.node)){a.add(r.key);return}var E=!0,_=!1;(r.children||[]).filter(function(y){return!R(y.node)}).forEach(function(y){var B=y.key,C=m.has(B);E&&!C&&(E=!1),!_&&(C||v.has(B))&&(_=!0)}),E&&m.add(r.key),_&&v.add(r.key),a.add(r.key)})}return{checkedKeys:Array.from(m),halfCheckedKeys:Array.from(G(v,m))}}function F(X,P,e,R,m){for(var v=new Set(X),u=new Set(P),s=0;s<=R;s+=1){var a=e.get(s)||new Set;a.forEach(function(r){var t=r.key,E=r.node,_=r.children,y=_===void 0?[]:_;!v.has(t)&&!u.has(t)&&!m(E)&&y.filter(function(B){return!m(B.node)}).forEach(function(B){v.delete(B.key)})})}u=new Set;for(var A=new Set,o=R;o>=0;o-=1){var i=e.get(o)||new Set;i.forEach(function(r){var t=r.parent,E=r.node;if(m(E)||!r.parent||A.has(r.parent.key))return;if(m(r.parent.node)){A.add(t.key);return}var _=!0,y=!1;(t.children||[]).filter(function(B){return!m(B.node)}).forEach(function(B){var C=B.key,d=v.has(C);_&&!d&&(_=!1),!y&&(d||u.has(C))&&(y=!0)}),_||v.delete(t.key),y&&u.add(t.key),A.add(t.key)})}return{checkedKeys:Array.from(v),halfCheckedKeys:Array.from(G(u,v))}}function O(X,P,e,R){var m=[],v;R?v=R:v=D;var u=new Set(X.filter(function(o){var i=!!e[o];return i||m.push(o),i})),s=new Map,a=0;Object.keys(e).forEach(function(o){var i=e[o],r=i.level,t=s.get(r);t||(t=new Set,s.set(r,t)),t.add(i),a=Math.max(a,r)}),Object(se.a)(!m.length,"Tree missing follow keys: ".concat(m.slice(0,100).map(function(o){return"'".concat(o,"'")}).join(", ")));var A;return P===!0?A=V(u,s,a,v):A=F(u,P.halfCheckedKeys,s,a,v),A}},OZM5:function(ht,_e,j){"use strict";j.d(_e,"b",function(){return R}),j.d(_e,"a",function(){return m}),j.d(_e,"k",function(){return v}),j.d(_e,"h",function(){return u}),j.d(_e,"i",function(){return s}),j.d(_e,"g",function(){return a}),j.d(_e,"c",function(){return A}),j.d(_e,"d",function(){return o}),j.d(_e,"j",function(){return t}),j.d(_e,"e",function(){return E}),j.d(_e,"f",function(){return _});var se=j("KQm4"),G=j("U8pU"),D=j("Ff2n"),V=j("q1tI"),F=j.n(V),O=j("Kwbf"),X=j("WaYH"),P=.25,e=2;function R(y,B){var C=y.slice(),d=C.indexOf(B);return d>=0&&C.splice(d,1),C}function m(y,B){var C=y.slice();return C.indexOf(B)===-1&&C.push(B),C}function v(y){return y.split("-")}function u(y,B){return"".concat(y,"-").concat(B)}function s(y){return y&&y.type&&y.type.isTreeNode}function a(y,B){var C=[y],d=B[y];function n(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l.forEach(function(c){var b=c.key,g=c.children;C.push(b),n(g)})}return n(d.children),C}function A(y,B){var C=y.clientY,d=B.selectHandle.getBoundingClientRect(),n=d.top,l=d.bottom,c=d.height,b=Math.max(c*P,e);return C<=n+b?-1:C>=l-b?1:0}function o(y,B){if(!y)return;var C=B.multiple;return C?y.slice():y.length?[y[0]]:y}var i=function(B){return B};function r(y,B){if(!y)return[];var C=B||{},d=C.processProps,n=d===void 0?i:d,l=Array.isArray(y)?y:[y];return l.map(function(c){var b=c.children,g=Object(D.a)(c,["children"]),h=r(b,B);return F.a.createElement(X.a,Object.assign({},n(g)),h)})}function t(y){if(!y)return null;var B;if(Array.isArray(y))B={checkedKeys:y,halfCheckedKeys:void 0};else if(Object(G.a)(y)==="object")B={checkedKeys:y.checked||void 0,halfCheckedKeys:y.halfChecked||void 0};else return Object(O.a)(!1,"`checkedKeys` is not an array or an object"),null;return B}function E(y,B){var C=new Set;function d(n){if(C.has(n))return;var l=B[n];if(!l)return;C.add(n);var c=l.parent,b=l.node;if(b.disabled)return;c&&d(c.key)}return(y||[]).forEach(function(n){d(n)}),Object(se.a)(C)}function _(y){var B={};return Object.keys(y).forEach(function(C){(C.startsWith("data-")||C.startsWith("aria-"))&&(B[C]=y[C])}),B}},"SA+Z":function(ht,_e,j){var se=j("wTVA"),G=j("EbDI"),D=j("ZhPi"),V=j("wkBT");function F(O){return se(O)||G(O)||D(O)||V()}ht.exports=F,ht.exports.__esModule=!0,ht.exports.default=ht.exports},SJMd:function(ht,_e){/** +`),o=this._stacks.get(A)||0;if(this._stacks.set(A,o+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=a*.5;let i,r=0;for(const[t,E]of this._stacks)(!i||r{const i=this._stacks.get(A)||0;this._stacks.set(A,i-1)}}}class e{constructor(s){var a;this._disposed=!1,this._options=s,this._leakageMon=X>0?new P(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((a=this._options)===null||a===void 0?void 0:a._profName)?new O(this._options._profName):void 0}get event(){return this._event||(this._event=(s,a,A)=>{var o;this._listeners||(this._listeners=new D.a);const i=this._listeners.isEmpty();i&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const r=this._listeners.push(a?[s,a]:s);i&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,s,a);const t=(o=this._leakageMon)===null||o===void 0?void 0:o.check(this._listeners.size),E=Object(G.i)(()=>{if(t&&t(),!this._disposed&&(r(),this._options&&this._options.onLastListenerRemove)){const _=this._listeners&&!this._listeners.isEmpty();_||this._options.onLastListenerRemove(this)}});return A instanceof G.b?A.add(E):Array.isArray(A)&&A.push(E),E}),this._event}fire(s){var a,A;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new D.a);for(let o of this._listeners)this._deliveryQueue.push([o,s]);for((a=this._perfMon)===null||a===void 0||a.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[o,i]=this._deliveryQueue.shift();try{typeof o=="function"?o.call(void 0,i):o[0].call(o[1],i)}catch(r){Object(se.f)(r)}}(A=this._perfMon)===null||A===void 0||A.stop()}}dispose(){var s,a,A,o,i;this._disposed||(this._disposed=!0,(s=this._listeners)===null||s===void 0||s.clear(),(a=this._deliveryQueue)===null||a===void 0||a.clear(),(o=(A=this._options)===null||A===void 0?void 0:A.onLastListenerRemove)===null||o===void 0||o.call(A),(i=this._leakageMon)===null||i===void 0||i.dispose())}}class R extends e{constructor(s){super(s);this._isPaused=0,this._eventQueue=new D.a,this._mergeFn=s==null?void 0:s.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const s=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(s))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(s){this._listeners&&(this._isPaused!==0?this._eventQueue.push(s):super.fire(s))}}class m extends R{constructor(s){var a;super(s);this._delay=(a=s.delay)!==null&&a!==void 0?a:100}fire(s){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(s)}}class v{constructor(){this.buffers=[]}wrapEvent(s){return(a,A,o)=>s(i=>{const r=this.buffers[this.buffers.length-1];r?r.push(()=>a.call(A,i)):a.call(A,i)},void 0,o)}bufferEvents(s){const a=[];this.buffers.push(a);const A=s();return this.buffers.pop(),a.forEach(o=>o()),A}}class u{constructor(){this.listening=!1,this.inputEvent=F.None,this.inputEventListener=G.a.None,this.emitter=new e({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(s){this.inputEvent=s,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=s(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MNsG:function(ht,_e,j){"use strict";(function(se,G){j.d(_e,"b",function(){return A}),j.d(_e,"i",function(){return t}),j.d(_e,"f",function(){return E}),j.d(_e,"d",function(){return _}),j.d(_e,"g",function(){return y}),j.d(_e,"h",function(){return B}),j.d(_e,"c",function(){return C}),j.d(_e,"k",function(){return d}),j.d(_e,"j",function(){return n}),j.d(_e,"a",function(){return l}),j.d(_e,"e",function(){return g});var D;const V="en";let F=!1,O=!1,X=!1,P=!1,e=!1,R=!1,m=!1,v,u=V,s,a;const A=typeof self=="object"?self:typeof se=="object"?se:{};let o;typeof A.vscode!="undefined"&&typeof A.vscode.process!="undefined"?o=A.vscode.process:typeof G!="undefined"&&(o=G);const i=typeof((D=o==null?void 0:o.versions)===null||D===void 0?void 0:D.electron)=="string"&&o.type==="renderer";if(typeof navigator=="object"&&!i)a=navigator.userAgent,F=a.indexOf("Windows")>=0,O=a.indexOf("Macintosh")>=0,m=(a.indexOf("Macintosh")>=0||a.indexOf("iPad")>=0||a.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,X=a.indexOf("Linux")>=0,R=!0,v=navigator.language,u=v;else if(typeof o=="object"){F=o.platform==="win32",O=o.platform==="darwin",X=o.platform==="linux",P=X&&!!o.env.SNAP&&!!o.env.SNAP_REVISION,v=V,u=V;const h=o.env.VSCODE_NLS_CONFIG;if(h)try{const L=JSON.parse(h),N=L.availableLanguages["*"];v=L.locale,u=N||V,s=L._translationsConfigFile}catch(L){}e=!0}else console.error("Unable to resolve platform.");let r=0;O?r=1:F?r=3:X&&(r=2);const t=F,E=O,_=X,y=e,B=R,C=m,d=a,n=function(){if(A.setImmediate)return A.setImmediate.bind(A);if(typeof A.postMessage=="function"&&!A.importScripts){let N=[];A.addEventListener("message",M=>{if(M.data&&M.data.vscodeSetImmediateId)for(let W=0,U=N.length;W{const W=++T;N.push({id:W,callback:M}),A.postMessage({vscodeSetImmediateId:W},"*")}}if(typeof(o==null?void 0:o.nextTick)=="function")return o.nextTick.bind(o);const L=Promise.resolve();return N=>L.then(N)}(),l=O||m?2:F?1:3;let c=!0,b=!1;function g(){if(!b){b=!0;const h=new Uint8Array(2);h[0]=1,h[1]=2;const L=new Uint16Array(h.buffer);c=L[0]===(2<<8)+1}return c}}).call(this,j("IyRk"),j("Q2Ig"))},N0LK:function(ht,_e,j){"use strict";j.d(_e,"C",function(){return se}),j.d(_e,"v",function(){return D}),j.d(_e,"s",function(){return V}),j.d(_e,"t",function(){return F}),j.d(_e,"U",function(){return O}),j.d(_e,"J",function(){return X}),j.d(_e,"O",function(){return P}),j.d(_e,"p",function(){return e}),j.d(_e,"T",function(){return R}),j.d(_e,"q",function(){return m}),j.d(_e,"N",function(){return v}),j.d(_e,"M",function(){return u}),j.d(_e,"Q",function(){return s}),j.d(_e,"u",function(){return a}),j.d(_e,"x",function(){return A}),j.d(_e,"I",function(){return o}),j.d(_e,"f",function(){return i}),j.d(_e,"h",function(){return r}),j.d(_e,"g",function(){return t}),j.d(_e,"i",function(){return E}),j.d(_e,"G",function(){return _}),j.d(_e,"H",function(){return y}),j.d(_e,"r",function(){return B}),j.d(_e,"R",function(){return C}),j.d(_e,"d",function(){return d}),j.d(_e,"e",function(){return n}),j.d(_e,"E",function(){return l}),j.d(_e,"F",function(){return c}),j.d(_e,"j",function(){return b}),j.d(_e,"z",function(){return g}),j.d(_e,"K",function(){return L}),j.d(_e,"L",function(){return N}),j.d(_e,"m",function(){return M}),j.d(_e,"k",function(){return U}),j.d(_e,"A",function(){return ne}),j.d(_e,"a",function(){return me}),j.d(_e,"n",function(){return ge}),j.d(_e,"l",function(){return Oe}),j.d(_e,"D",function(){return Se}),j.d(_e,"B",function(){return Be}),j.d(_e,"b",function(){return Ne}),j.d(_e,"S",function(){return ke}),j.d(_e,"o",function(){return Ce}),j.d(_e,"P",function(){return ve}),j.d(_e,"w",function(){return Xe}),j.d(_e,"c",function(){return lt}),j.d(_e,"y",function(){return rt});function se($){return!$||typeof $!="string"?!0:$.trim().length===0}const G=/{(\d+)}/g;function D($,...q){return q.length===0?$:$.replace(G,function(he,de){const Qe=parseInt(de,10);return isNaN(Qe)||Qe<0||Qe>=q.length?he:q[Qe]})}function V($){return $.replace(/[<>&]/g,function(q){switch(q){case"<":return"<";case">":return">";case"&":return"&";default:return q}})}function F($){return $.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function O($,q=" "){const he=X($,q);return P(he,q)}function X($,q){if(!$||!q)return $;const he=q.length;if(he===0||$.length===0)return $;let de=0;for(;$.indexOf(q,de)===de;)de=de+he;return $.substring(de)}function P($,q){if(!$||!q)return $;const he=q.length,de=$.length;if(he===0||de===0)return $;let Qe=de,ze=-1;for(;!(ze=$.lastIndexOf(q,Qe-1),ze===-1||ze+he!==Qe);){if(ze===0)return"";Qe=ze}return $.substring(0,Qe)}function e($){return $.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function R($){return $.replace(/\*/g,"")}function m($,q,he={}){if(!$)throw new Error("Cannot create regex from empty string");q||($=F($)),he.wholeWord&&(/\B/.test($.charAt(0))||($="\\b"+$),/\B/.test($.charAt($.length-1))||($=$+"\\b"));let de="";return he.global&&(de+="g"),he.matchCase||(de+="i"),he.multiline&&(de+="m"),he.unicode&&(de+="u"),new RegExp($,de)}function v($){if($.source==="^"||$.source==="^$"||$.source==="$"||$.source==="^\\s*$")return!1;const q=$.exec("");return!!(q&&$.lastIndex===0)}function u($){return($.global?"g":"")+($.ignoreCase?"i":"")+($.multiline?"m":"")+($.unicode?"u":"")}function s($){return $.split(/\r\n|\r|\n/)}function a($){for(let q=0,he=$.length;q=0;he--){const de=$.charCodeAt(he);if(de!==32&&de!==9)return he}return-1}function i($,q){return $q?1:0}function r($,q,he=0,de=$.length,Qe=0,ze=q.length){for(;hedt)return 1}const Ge=de-he,$e=ze-Qe;return Ge<$e?-1:Ge>$e?1:0}function t($,q){return E($,q,0,$.length,0,q.length)}function E($,q,he=0,de=$.length,Qe=0,ze=q.length){for(;he=128||dt>=128)return r($.toLowerCase(),q.toLowerCase(),he,de,Qe,ze);_(nt)&&(nt-=32),_(dt)&&(dt-=32);const xe=nt-dt;if(xe===0)continue;return xe}const Ge=de-he,$e=ze-Qe;return Ge<$e?-1:Ge>$e?1:0}function _($){return $>=97&&$<=122}function y($){return $>=65&&$<=90}function B($,q){return $.length===q.length&&E($,q)===0}function C($,q){const he=q.length;return q.length>$.length?!1:E($,q,0,he)===0}function d($,q){let he,de=Math.min($.length,q.length);for(he=0;he1){const de=$.charCodeAt(q-2);if(l(de))return b(de,he)}return he}function L($,q){const he=at.getInstance(),de=q,Qe=$.length,ze=g($,Qe,q);q+=ze>=65536?2:1;let Ge=he.getGraphemeBreakType(ze);for(;q=65536?2:1,Ge=nt}return q-de}function N($,q){const he=at.getInstance(),de=q,Qe=h($,q);q-=Qe>=65536?2:1;let ze=he.getGraphemeBreakType(Qe);for(;q>0;){const Ge=h($,q),$e=he.getGraphemeBreakType(Ge);if(lt($e,ze))break;q-=Ge>=65536?2:1,ze=$e}return de-q}const T=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function M($){return T.test($)}const W=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function U($){return W.test($)}const Y=/^[\t\n\r\x20-\x7E]*$/;function ne($){return Y.test($)}const me=/[\u2028\u2029]/;function ge($){return me.test($)}function Oe($){for(let q=0,he=$.length;q=11904&&$<=55215||$>=63744&&$<=64255||$>=65281&&$<=65374}function Be($){return $>=127462&&$<=127487||$===8986||$===8987||$===9200||$===9203||$>=9728&&$<=10175||$===11088||$===11093||$>=127744&&$<=128591||$>=128640&&$<=128764||$>=128992&&$<=129003||$>=129280&&$<=129535||$>=129648&&$<=129750}const Ne=String.fromCharCode(65279);function ke($){return!!($&&$.length>0&&$.charCodeAt(0)===65279)}function Ce($,q=!1){return $?(q&&($=$.replace(/\\./g,"")),$.toLowerCase()!==$):!1}function ve($){const q=90-65+1;return $=$%(2*q),$q[3*de+1])de=2*de+1;else return q[3*de+2];return 0}}at._INSTANCE=null;function je(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function rt($,q){if($===0)return 0;const he=re($,q);if(he!==void 0)return he;const de=h(q,$);return $-=J(de),$}function re($,q){let he=h(q,$);for($-=J(he);k(he)||he===65039||he===8419;){if($===0)return;he=h(q,$),$-=J(he)}if(!Be(he))return;if($>=0){const de=h(q,$);de===8205&&($-=J(de))}return $}function J($){return $>=65536?2:1}function k($){return 127995<=$&&$<=127999}},NKYn:function(ht,_e,j){"use strict";j.d(_e,"a",function(){return e});var se=j("14J3"),G=j("BMrR"),D=j("jCWc"),V=j("kPKH"),F=j("tJVT"),O=j("q1tI"),X=j.n(O),P=j("9Bee"),e=function(m){var v=m.data,u=Object(O.useState)(!1),s=Object(F.a)(u,2),a=s[0],A=s[1],o=function(){var r,t;switch(v.question_type){case 3:return X.a.createElement("aside",{className:"mt20"},X.a.createElement("span",{style:{cursor:"pointer"},className:"font14 c-blue current",onClick:function(){A(!a)}},a?"\u9690\u85CF\u53C2\u8003\u7B54\u6848":"\u67E5\u770B\u53C2\u8003\u7B54\u6848"),a&&X.a.createElement("div",null,v==null||((r=v.standard_answer)===null||r===void 0)?void 0:r.map(function(E,_){var y;return X.a.createElement(G.a,{style:{alignItems:"baseline"},className:"mr20"},X.a.createElement(V.a,{flex:"50px"},X.a.createElement("span",{className:"mt10"},"\u586B\u7A7A",E.choice_id,":")),X.a.createElement(V.a,{flex:1},E==null||((y=E.answer_text)===null||y===void 0)?void 0:y.map(function(B,C){return X.a.createElement("div",null,B)})))})));case 4:return X.a.createElement("aside",{className:"mt20"},X.a.createElement("span",{style:{cursor:"pointer"},className:"font14 c-blue current",onClick:function(){A(!a)}},a?"\u9690\u85CF\u53C2\u8003\u7B54\u6848":"\u67E5\u770B\u53C2\u8003\u7B54\u6848"),a&&X.a.createElement("div",null,X.a.createElement(P.a,{value:v==null||((t=v.standard_answer)===null||t===void 0)?void 0:t.join(" ")})))}};return X.a.createElement("section",null,o())}},NvD2:function(ht,_e,j){"use strict";j.d(_e,"a",function(){return O});var se=j("Kwbf");function G(X,P){var e=new Set;return X.forEach(function(R){P.has(R)||e.add(R)}),e}function D(X){var P=X||{},e=P.disabled,R=P.disableCheckbox,m=P.checkable;return!!(e||R)||m===!1}function V(X,P,e,R){for(var m=new Set(X),v=new Set,u=0;u<=e;u+=1){var s=P.get(u)||new Set;s.forEach(function(i){var r=i.key,t=i.node,E=i.children,_=E===void 0?[]:E;m.has(r)&&!R(t)&&_.filter(function(y){return!R(y.node)}).forEach(function(y){m.add(y.key)})})}for(var a=new Set,A=e;A>=0;A-=1){var o=P.get(A)||new Set;o.forEach(function(i){var r=i.parent,t=i.node;if(R(t)||!i.parent||a.has(i.parent.key))return;if(R(i.parent.node)){a.add(r.key);return}var E=!0,_=!1;(r.children||[]).filter(function(y){return!R(y.node)}).forEach(function(y){var B=y.key,C=m.has(B);E&&!C&&(E=!1),!_&&(C||v.has(B))&&(_=!0)}),E&&m.add(r.key),_&&v.add(r.key),a.add(r.key)})}return{checkedKeys:Array.from(m),halfCheckedKeys:Array.from(G(v,m))}}function F(X,P,e,R,m){for(var v=new Set(X),u=new Set(P),s=0;s<=R;s+=1){var a=e.get(s)||new Set;a.forEach(function(r){var t=r.key,E=r.node,_=r.children,y=_===void 0?[]:_;!v.has(t)&&!u.has(t)&&!m(E)&&y.filter(function(B){return!m(B.node)}).forEach(function(B){v.delete(B.key)})})}u=new Set;for(var A=new Set,o=R;o>=0;o-=1){var i=e.get(o)||new Set;i.forEach(function(r){var t=r.parent,E=r.node;if(m(E)||!r.parent||A.has(r.parent.key))return;if(m(r.parent.node)){A.add(t.key);return}var _=!0,y=!1;(t.children||[]).filter(function(B){return!m(B.node)}).forEach(function(B){var C=B.key,d=v.has(C);_&&!d&&(_=!1),!y&&(d||u.has(C))&&(y=!0)}),_||v.delete(t.key),y&&u.add(t.key),A.add(t.key)})}return{checkedKeys:Array.from(v),halfCheckedKeys:Array.from(G(u,v))}}function O(X,P,e,R){var m=[],v;R?v=R:v=D;var u=new Set(X.filter(function(o){var i=!!e[o];return i||m.push(o),i})),s=new Map,a=0;Object.keys(e).forEach(function(o){var i=e[o],r=i.level,t=s.get(r);t||(t=new Set,s.set(r,t)),t.add(i),a=Math.max(a,r)}),Object(se.a)(!m.length,"Tree missing follow keys: ".concat(m.slice(0,100).map(function(o){return"'".concat(o,"'")}).join(", ")));var A;return P===!0?A=V(u,s,a,v):A=F(u,P.halfCheckedKeys,s,a,v),A}},OZM5:function(ht,_e,j){"use strict";j.d(_e,"b",function(){return R}),j.d(_e,"a",function(){return m}),j.d(_e,"k",function(){return v}),j.d(_e,"h",function(){return u}),j.d(_e,"i",function(){return s}),j.d(_e,"g",function(){return a}),j.d(_e,"c",function(){return A}),j.d(_e,"d",function(){return o}),j.d(_e,"j",function(){return t}),j.d(_e,"e",function(){return E}),j.d(_e,"f",function(){return _});var se=j("KQm4"),G=j("U8pU"),D=j("Ff2n"),V=j("q1tI"),F=j.n(V),O=j("Kwbf"),X=j("WaYH"),P=.25,e=2;function R(y,B){var C=y.slice(),d=C.indexOf(B);return d>=0&&C.splice(d,1),C}function m(y,B){var C=y.slice();return C.indexOf(B)===-1&&C.push(B),C}function v(y){return y.split("-")}function u(y,B){return"".concat(y,"-").concat(B)}function s(y){return y&&y.type&&y.type.isTreeNode}function a(y,B){var C=[y],d=B[y];function n(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l.forEach(function(c){var b=c.key,g=c.children;C.push(b),n(g)})}return n(d.children),C}function A(y,B){var C=y.clientY,d=B.selectHandle.getBoundingClientRect(),n=d.top,l=d.bottom,c=d.height,b=Math.max(c*P,e);return C<=n+b?-1:C>=l-b?1:0}function o(y,B){if(!y)return;var C=B.multiple;return C?y.slice():y.length?[y[0]]:y}var i=function(B){return B};function r(y,B){if(!y)return[];var C=B||{},d=C.processProps,n=d===void 0?i:d,l=Array.isArray(y)?y:[y];return l.map(function(c){var b=c.children,g=Object(D.a)(c,["children"]),h=r(b,B);return F.a.createElement(X.a,Object.assign({},n(g)),h)})}function t(y){if(!y)return null;var B;if(Array.isArray(y))B={checkedKeys:y,halfCheckedKeys:void 0};else if(Object(G.a)(y)==="object")B={checkedKeys:y.checked||void 0,halfCheckedKeys:y.halfChecked||void 0};else return Object(O.a)(!1,"`checkedKeys` is not an array or an object"),null;return B}function E(y,B){var C=new Set;function d(n){if(C.has(n))return;var l=B[n];if(!l)return;C.add(n);var c=l.parent,b=l.node;if(b.disabled)return;c&&d(c.key)}return(y||[]).forEach(function(n){d(n)}),Object(se.a)(C)}function _(y){var B={};return Object.keys(y).forEach(function(C){(C.startsWith("data-")||C.startsWith("aria-"))&&(B[C]=y[C])}),B}},"SA+Z":function(ht,_e,j){var se=j("wTVA"),G=j("EbDI"),D=j("ZhPi"),V=j("wkBT");function F(O){return se(O)||G(O)||D(O)||V()}ht.exports=F,ht.exports.__esModule=!0,ht.exports.default=ht.exports},SJMd:function(ht,_e){/** * @license * Copyright (C) 2006 Google Inc. * @@ -362,7 +362,7 @@ You passed in: '`+this.raw_options[u]+"'");return A},R.prototype._is_valid_selec `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},o={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(` -`)}]},i=j("5VLF"),r=j.n(i),t={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},E=function(Y,ne){return ne.map(function(me){return{label:me,kind:Y.languages.CompletionItemKind.Keyword,insertText:me}})},_=function(Y){return Object.keys(t.tables).map(function(ne){return{label:ne,kind:Y.languages.CompletionItemKind.Variable,insertText:ne}})},y=function(Y,ne){var me=t.tables[Y];return me?me.map(function(ge){return{label:ge,kind:ne.languages.CompletionItemKind.Field,insertText:ge}}):[]};function B(U,Y,ne,me,ge){var Oe=Y.getWordUntilPosition(ne),Se={startLineNumber:ne.lineNumber,endLineNumber:ne.lineNumber,startColumn:Oe.startColumn,endColumn:Oe.endColumn},Be=me.map(function(Ne){return{label:Ne,kind:U.languages.CompletionItemKind.Keyword,insertText:Ne,insertTextRules:U.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}});return ge.map(function(Ne){Be.push(Object(se.a)(Object(se.a)({},Ne),{},{range:Se}))}),Be}var C=function(U){t.languages.map(function(ge){return U.languages.registerDocumentFormattingEditProvider(ge,{provideDocumentFormattingEdits:function(Se,Be,Ne){return Object(m.a)(u.a.mark(function ke(){var Ce;return u.a.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Ce=r()(Se.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1}),Xe.abrupt("return",[{range:Se.getFullModelRange(),text:Ce}]);case 2:case"end":return Xe.stop()}},ke)}))()}}),ge});var Y=A.quickKey.map(function(ge){return{label:ge.label,kind:U.languages.CompletionItemKind.Method,insertText:ge.content,insertTextRules:U.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),ne=o.quickKey.map(function(ge){return{label:ge.label,kind:U.languages.CompletionItemKind.Method,insertText:ge.content,insertTextRules:U.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),me=a.quickKey.map(function(ge){return{label:ge.label,kind:U.languages.CompletionItemKind.Method,insertText:ge.content,insertTextRules:U.languages.CompletionItemInsertTextRule.InsertAsSnippet}});U.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Oe,Se){var Be=Oe.getWordUntilPosition(Se),Ne={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Be.startColumn,endColumn:Be.endColumn},ke=Oe.getLineContent(Se.lineNumber).substring(Be.startColumn-2,Be.endColumn);return{suggestions:[].concat(Object(G.a)(A.keywords.map(function(Ce){return{label:Ce,kind:U.languages.CompletionItemKind.Function,documentation:Ce,insertText:Ce,insertTextRules:U.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ne}})),Object(G.a)(A.quickKey.map(function(Ce){return{label:Ce.label,kind:U.languages.CompletionItemKind.Function,documentation:Ce.content,insertText:ke.startsWith("#")?Ce.content.replace(/#/,""):Ce.content,insertTextRules:U.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ne}})))}}}),U.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Oe,Se){var Be=Oe.getWordUntilPosition(Se),Ne={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Be.startColumn,endColumn:Be.endColumn};return{suggestions:Object(G.a)(s.keywords.map(function(ke){return{label:ke,kind:U.languages.CompletionItemKind.Function,documentation:ke,insertText:ke,insertTextRules:U.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ne}}))}}}),U.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Oe,Se){var Be=Oe.getWordUntilPosition(Se),Ne={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Be.startColumn,endColumn:Be.endColumn},ke=Oe.getLineContent(Se.lineNumber).substring(Be.startColumn-2,Be.endColumn);return{suggestions:[].concat(Object(G.a)(a.keywords.map(function(Ce){return{label:Ce,kind:U.languages.CompletionItemKind.Function,documentation:Ce,insertText:Ce,insertTextRules:U.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ne}})),Object(G.a)(a.quickKey.map(function(Ce){return{label:Ce.label,kind:U.languages.CompletionItemKind.Function,documentation:Ce.content,insertText:ke.startsWith("#")?Ce.content.replace(/#/,""):Ce.content,insertTextRules:U.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ne}})))}}}),U.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Oe,Se){var Be=Oe.getWordUntilPosition(Se),Ne={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Be.startColumn,endColumn:Be.endColumn},ke=Oe.getLineContent(Se.lineNumber).substring(Be.startColumn-2,Be.endColumn);return{suggestions:[].concat(Object(G.a)(o.keywords.map(function(Ce){return{label:Ce,kind:U.languages.CompletionItemKind.Function,documentation:Ce,insertText:Ce,insertTextRules:U.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ne}})),Object(G.a)(o.quickKey.map(function(Ce){return{label:Ce.label,kind:U.languages.CompletionItemKind.Function,documentation:Ce.content,insertText:ke.startsWith("#")?Ce.content.replace(/#/,""):Ce.content,insertTextRules:U.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ne}})))}}})},d="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",n=j("fjLI"),l=j("LvDl"),c=j("+ua5");function b(U){return/^\d+$/.test(U)?"".concat(U,"px"):U}function g(){}var h=!1,L={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function N(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Y=U;if(Array.isArray(U)){for(var ne=0;ne0||yr.target.offsetWidth>0)&&Fe.current.instance.layout()}}catch(br){Nt.e(br)}finally{Nt.f()}}),At.observe(Le.current)),At}function qe(){V.b.warn(decodeURIComponent(d))}var ft=function(){var gt=Fe.current.instance;if(Oe!=null&>&&pe){var Nt=gt.getModel();Nt&&Oe!==Nt.getValue()&&(h=!0,Nt.setValue(Oe),gt.layout(),h=!1)}};Object(P.useEffect)(function(){ue.current&&clearTimeout(ue.current),ue.current=setTimeout(function(){ft()},500)},[Oe,pe,Fe.current]),Object(P.useEffect)(function(){if(xe&&Fe.current&&Fe.current.instance){var At=Fe.current.instance;At.changeViewZones(function(Nt){var ir=document.createElement("div");ir.style.padding="10px 20px",ir.style.width="calc(100% - 20px)",ir.className="my-error-line-wrp",ir.innerHTML=Ke,Nt.addZone({afterLineNumber:xe||11,heightInLines:3,domNode:ir})});var gt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};At.addOverlayWidget(gt),At.revealPositionInCenter({lineNumber:20,column:1})}},[xe,Fe.current,pe]);function ut(){var At=Fe.current.instance;if(At){var gt=At.getSelection(),Nt=Fe.current.pastePos||{},ir=new T.Range(Nt.startLineNumber||gt.endLineNumber,Nt.startColumn||gt.endColumn,Nt.endLineNumber||gt.endLineNumber,Nt.endColumn||gt.endColumn);setTimeout(function(){At.executeEdits("",[{range:ir,text:""}])},300)}}function st(At){(window.navigator.platform.match("Mac")?At.metaKey:At.ctrlKey)&&At.keyCode==83&&(At.preventDefault(),re())}var Lt=function(){if(k&&Fe.current.instance){var gt=Fe.current.instance.getContentHeight();ct(gt0||Qe.target.offsetWidth>0)&&k.layout()}}catch(ze){he.e(ze)}finally{he.f()}}),$.observe(Ce.current)),$}Object(P.useEffect)(function(){Ce.current&&Promise.all([j.e(16),j.e(28)]).then(j.t.bind(null,"M/lh",7)).then(function(k){T=k;var $=T.editor.createDiffEditor(Ce.current,Object(se.a)(Object(se.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},ke),{},{wordWrap:!0}));at($);var q=je($);return function(){$.dispose();var he=$.getModel();he&&he.dispose(),q.unobserve(Ce.current)}})},[]),Object(P.useEffect)(function(){lt&<.setModel({original:T.editor.createModel(Oe,Be),modified:T.editor.createModel(Se,Be)})},[Oe,Se,Be,lt]);var rt=b(ne),re=b(ge),J={width:rt,height:re};return e.a.createElement("div",{className:"my-diff-editor",ref:Ce,style:J})}},bT9E:function(ht,_e,j){"use strict";j.d(_e,"a",function(){return G});var se=j("VTBJ");function G(D,V){var F=Object(se.a)({},D);return Array.isArray(V)&&V.forEach(function(O){delete F[O]}),F}},biw7:function(ht,_e,j){"use strict";var se=j("q1tI"),G=j.n(se),D=se.createContext(null);_e.a=D},crp1:function(ht,_e,j){"use strict";j.d(_e,"b",function(){return Ot}),j.d(_e,"a",function(){return Mt});var se={},G=function(ae,oe,fe,Te,Ye){var et=se[oe]||(se[oe]=URL.createObjectURL(new Blob([ae],{type:"text/javascript"}))),Q=new Worker(et);return Q.onerror=function(p){return Ye(p.error,null)},Q.onmessage=function(p){return Ye(null,p.data)},Q.postMessage(fe,Te),Q},D=Uint8Array,V=Uint16Array,F=Uint32Array,O=new D([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),X=new D([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),P=new D([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),e=function(ae,oe){for(var fe=new V(31),Te=0;Te<31;++Te)fe[Te]=oe+=1<>>1|(o&21845)<<1;i=(i&52428)>>>2|(i&13107)<<2,i=(i&61680)>>>4|(i&3855)<<4,A[o]=((i&65280)>>>8|(i&255)<<8)>>>1}for(var r=function(ae,oe,fe){for(var Te=ae.length,Ye=0,et=new V(oe);Ye>>w]=H}else for(p=new V(Te),Ye=0;Ye>>15-ae[Ye];return p},t=new D(288),o=0;o<144;++o)t[o]=8;for(var o=144;o<256;++o)t[o]=9;for(var o=256;o<280;++o)t[o]=7;for(var o=280;o<288;++o)t[o]=8;for(var E=new D(32),o=0;o<32;++o)E[o]=5;var _=r(t,9,0),y=r(t,9,1),B=r(E,5,0),C=r(E,5,1),d=function(ae){for(var oe=ae[0],fe=1;feoe&&(oe=ae[fe]);return oe},n=function(ae,oe,fe){var Te=oe/8>>0;return(ae[Te]|ae[Te+1]<<8)>>>(oe&7)&fe},l=function(ae,oe){var fe=oe/8>>0;return(ae[fe]|ae[fe+1]<<8|ae[fe+2]<<16)>>>(oe&7)},c=function(ae){return(ae/8>>0)+(ae&7&&1)},b=function(ae,oe,fe){(oe==null||oe<0)&&(oe=0),(fe==null||fe>ae.length)&&(fe=ae.length);var Te=new(ae instanceof V?V:ae instanceof F?F:D)(fe-oe);return Te.set(ae.subarray(oe,fe)),Te},g=function(ae,oe,fe){var Te=ae.length,Ye=!oe||fe,et=!fe||fe.i;fe||(fe={}),oe||(oe=new D(Te*3));var Q=function(Zt){var xr=oe.length;if(Zt>xr){var qt=new D(Math.max(xr*2,Zt));qt.set(oe),oe=qt}},p=fe.f||0,w=fe.p||0,H=fe.b||0,Z=fe.l,K=fe.d,ye=fe.m,He=fe.n,it=Te*8;do{if(!Z){fe.f=p=n(ae,w,1);var ot=n(ae,w+1,3);if(w+=3,ot)if(ot==1)Z=y,K=C,ye=9,He=5;else if(ot==2){var Tt=n(ae,w,31)+257,Pt=n(ae,w+10,15)+4,ur=Tt+n(ae,w+5,31)+1;w+=14;for(var Gt=new D(ur),ar=new D(19),kt=0;ktit)break;for(var $t=r(ar,Tr,1),kt=0;kt>>4;if(Ve<16)Gt[kt++]=Ve;else{var Qt=0,Vt=0;for(Ve==16?(Vt=3+n(ae,w,3),w+=2,Qt=Gt[kt-1]):Ve==17?(Vt=3+n(ae,w,7),w+=3):Ve==18&&(Vt=11+n(ae,w,127),w+=7);Vt--;)Gt[kt++]=Qt}}var Dt=Gt.subarray(0,Tt),jt=Gt.subarray(Tt);ye=d(Dt),He=d(jt),Z=r(Dt,ye,1),K=r(jt,He,1)}else throw"invalid block type";else{var Ve=c(w)+4,_t=ae[Ve-4]|ae[Ve-3]<<8,vt=Ve+_t;if(vt>Te){if(et)throw"unexpected EOF";break}Ye&&Q(H+_t),oe.set(ae.subarray(Ve,vt),H),fe.b=H+=_t,fe.p=w=vt*8;continue}if(w>it)throw"unexpected EOF"}Ye&&Q(H+131072);for(var Kt=(1<>>4;if(w+=Qt&15,w>it)throw"unexpected EOF";if(!Qt)throw"invalid length/literal";if(sr<256)oe[H++]=sr;else if(sr==256){Z=null;break}else{var rr=sr-254;if(sr>264){var kt=sr-257,Ut=O[kt];rr=n(ae,w,(1<>>4;if(!Wt)throw"invalid distance";w+=Wt&15;var jt=s[Ft];if(Ft>3){var Ut=X[Ft];jt+=l(ae,w)&(1<it)throw"unexpected EOF";Ye&&Q(H+131072);for(var tr=H+rr;H>0;ae[Te]|=fe,ae[Te+1]|=fe>>>8},L=function(ae,oe,fe){fe<<=oe&7;var Te=oe/8>>0;ae[Te]|=fe,ae[Te+1]|=fe>>>8,ae[Te+2]|=fe>>>16},N=function(ae,oe){for(var fe=[],Te=0;Teye&&(ye=et[Te].s);var He=new V(ye+1),it=T(fe[Z-1],He,0);if(it>oe){var Te=0,ot=0,Ve=it-oe,_t=1<oe)ot+=_t-(1<>>=Ve;ot>0;){var Tt=et[Te].s;He[Tt]=0&&ot;--Te){var Pt=et[Te].s;He[Pt]==oe&&(--He[Pt],++ot)}it=oe}return[new D(He),it]},T=function(ae,oe,fe){return ae.s==-1?Math.max(T(ae.l,oe,fe+1),T(ae.r,oe,fe+1)):oe[ae.s]=fe},M=function(ae){for(var oe=ae.length;oe&&!ae[--oe];);for(var fe=new V(++oe),Te=0,Ye=ae[0],et=1,Q=function(w){fe[Te++]=w},p=1;p<=oe;++p)if(ae[p]==Ye&&p!=oe)++et;else{if(!Ye&&et>2){for(;et>138;et-=138)Q(32754);et>2&&(Q(et>10?et-11<<5|28690:et-3<<5|12305),et=0)}else if(et>3){for(Q(Ye),--et;et>6;et-=6)Q(8304);et>2&&(Q(et-3<<5|8208),et=0)}for(;et--;)Q(Ye);et=1,Ye=ae[p]}return[fe.subarray(0,Te),oe]},W=function(ae,oe){for(var fe=0,Te=0;Te>>8,ae[Ye+2]=ae[Ye]^255,ae[Ye+3]=ae[Ye+1]^255;for(var et=0;et4&&!mr[P[De-1]];--De);var Qt=H+5<<3,Vt=W(Ye,t)+W(et,E)+Q,Dt=W(Ye,ye)+W(et,ot)+Q+14+3*De+W(ar,mr)+(2*ar[16]+3*ar[17]+7*ar[18]);if(Qt<=Vt&&Qt<=Dt)return U(oe,Z,ae.subarray(w,w+H));var jt,Kt,Ar,zt;if(h(oe,Z,1+(Dt15&&(h(oe,Z,Wt[kt]>>>5&127),Z+=Wt[kt]>>>12)}}else jt=_,Kt=t,Ar=B,zt=E;for(var kt=0;kt255){var Ft=Te[kt]>>>18&31;L(oe,Z,jt[Ft+257]),Z+=Kt[Ft+257],Ft>7&&(h(oe,Z,Te[kt]>>>23&31),Z+=O[Ft]);var tr=Te[kt]&31;L(oe,Z,Ar[tr]),Z+=zt[tr],tr>3&&(L(oe,Z,Te[kt]>>>5&8191),Z+=X[tr])}else L(oe,Z,jt[Te[kt]]),Z+=Kt[Te[kt]];return L(oe,Z,jt[256]),Z+Kt[256]},ne=new F([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),me=new D(0),ge=function(ae,oe,fe,Te,Ye,et){var Q=ae.length,p=new D(Te+Q+5*(1+Math.floor(Q/7e3))+Ye),w=p.subarray(Te,p.length-Ye),H=0;if(!oe||Q<8)for(var Z=0;Z<=Q;Z+=65535){var K=Z+65535;K>>13,it=ye&8191,ot=(1<7e3||mr>24576)&&jt>423){H=Y(ae,w,0,ur,Gt,ar,Tr,mr,De,Z-De,H),mr=kt=Tr=0,De=Z;for(var Kt=0;Kt<286;++Kt)Gt[Kt]=0;for(var Kt=0;Kt<30;++Kt)ar[Kt]=0}var Ar=2,zt=0,sr=it,rr=Vt-Dt&32767;if(jt>2&&Qt==Pt(Z-rr))for(var Ut=Math.min(He,jt)-1,Wt=Math.min(32767,Z),Ft=Math.min(258,jt);rr<=Wt&&--sr&&Vt!=Dt;){if(ae[Z+Ar]==ae[Z+Ar-rr]){for(var tr=0;trAr){if(Ar=tr,zt=rr,tr>Ut)break;for(var Zt=Math.min(rr,tr-2),xr=0,Kt=0;Ktxr&&(xr=gr,Dt=qt)}}}Vt=Dt,Dt=Ve[Vt],rr+=Vt-Dt+32768&32767}if(zt){ur[mr++]=268435456|v[Ar]<<18|a[zt];var Kr=v[Ar]&31,Pr=a[zt]&31;Tr+=O[Kr]+X[Pr],++Gt[257+Kr],++ar[Pr],$t=Z+Ar,++kt}else ur[mr++]=ae[Z],++Gt[ae[Z]]}}H=Y(ae,w,et,ur,Gt,ar,Tr,mr,De,Z-De,H),et||(H=U(w,H,me))}return b(p,0,Te+c(H)+Ye)},Oe=function(){for(var ae=new F(256),oe=0;oe<256;++oe){for(var fe=oe,Te=9;--Te;)fe=(fe&1&&3988292384)^fe>>>1;ae[oe]=fe}return ae}(),Se=function(){var ae=4294967295;return{p:function(oe){for(var fe=ae,Te=0;Te>>8;ae=fe},d:function(){return ae^4294967295}}},Be=function(){var ae=1,oe=0;return{p:function(fe){for(var Te=ae,Ye=oe,et=fe.length,Q=0;Q!=et;){for(var p=Math.min(Q+5552,et);Q>>8<<16|(oe&255)<<8|oe>>>8)+((ae&255)<<23)*2}}},Ne=function(ae,oe,fe,Te,Ye){return ge(ae,oe.level==null?6:oe.level,oe.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(ae.length)))*1.5):12+oe.mem,fe,Te,!Ye)},ke=function(ae,oe){var fe={};for(var Te in ae)fe[Te]=ae[Te];for(var Te in oe)fe[Te]=oe[Te];return fe},Ce=function(ae,oe,fe){for(var Te=ae(),Ye=ae.toString(),et=Ye.slice(Ye.indexOf("[")+1,Ye.lastIndexOf("]")).replace(/ /g,"").split(","),Q=0;Q>>=8},nt=function(ae,oe){var fe=oe.filename;if(ae[0]=31,ae[1]=139,ae[2]=8,ae[8]=oe.level<2?4:oe.level==9?2:0,ae[9]=3,oe.mtime!=0&&$e(ae,4,Math.floor(new Date(oe.mtime||Date.now())/1e3)),fe){ae[3]=8;for(var Te=0;Te<=fe.length;++Te)ae[Te+10]=fe.charCodeAt(Te)}},dt=function(ae){if(ae[0]!=31||ae[1]!=139||ae[2]!=8)throw"invalid gzip data";var oe=ae[3],fe=10;oe&4&&(fe+=ae[10]|(ae[11]<<8)+2);for(var Te=(oe>>3&1)+(oe>>4&1);Te>0;Te-=!ae[fe++]);return fe+(oe&2)},xe=function(ae){var oe=ae.length;return(ae[oe-4]|ae[oe-3]<<8|ae[oe-2]<<16)+2*(ae[oe-1]<<23)},Ue=function(ae){return 10+(ae.filename&&ae.filename.length+1||0)},Ke=function(ae,oe){var fe=oe.level,Te=fe==0?0:fe<6?1:fe==9?3:2;ae[0]=120,ae[1]=Te<<6|(Te?32-2*Te:1)},We=function(ae){if((ae[0]&15)!=8||ae[0]>>>4>7||(ae[0]<<8|ae[1])%31)throw"invalid zlib data";if(ae[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function Le(ae,oe){return!oe&&typeof ae=="function"&&(oe=ae,ae={}),this.ondata=oe,ae}var Fe=function(){function ae(oe,fe){!fe&&typeof oe=="function"&&(fe=oe,oe={}),this.ondata=fe,this.o=oe||{}}return ae.prototype.p=function(oe,fe){this.ondata(Ne(oe,this.o,0,0,!fe),fe)},ae.prototype.push=function(oe,fe){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=fe,this.p(oe,fe||!1)},ae}(),we=function(){function ae(oe,fe){Qe([je,function(){return[de,Fe]}],this,Le.call(this,oe,fe),function(Te){var Ye=new Fe(Te.data);onmessage=de(Ye)},6)}return ae}();function ue(ae,oe,fe){if(fe||(fe=oe,oe={}),typeof fe!="function")throw"no callback";return he(ae,oe,[je],function(Te){return $(ce(Te.data[0],Te.data[1]))},0,fe)}function ce(ae,oe){return oe===void 0&&(oe={}),Ne(ae,oe,0,0)}var te=function(){function ae(oe){this.s={},this.p=new D(0),this.ondata=oe}return ae.prototype.e=function(oe){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var fe=this.p.length,Te=new D(fe+oe.length);Te.set(this.p),Te.set(oe,fe),this.p=Te},ae.prototype.c=function(oe){this.d=this.s.i=oe||!1;var fe=this.s.b,Te=g(this.p,this.o,this.s);this.ondata(b(Te,fe,this.s.b),this.d),this.o=b(Te,this.s.b-32768),this.s.b=this.o.length,this.p=b(this.p,this.s.p/8>>0),this.s.p&=7},ae.prototype.push=function(oe,fe){this.e(oe),this.c(fe)},ae}(),ie=function(){function ae(oe){this.ondata=oe,Qe([at,function(){return[de,te]}],this,0,function(){var fe=new te;onmessage=de(fe)},7)}return ae}();function le(ae,oe,fe){if(fe||(fe=oe,oe={}),typeof fe!="function")throw"no callback";return he(ae,oe,[at],function(Te){return $(pe(Te.data[0],q(Te.data[1])))},1,fe)}function pe(ae,oe){return g(ae,oe)}var Ie=function(){function ae(oe,fe){this.c=Se(),this.l=0,this.v=1,Fe.call(this,oe,fe)}return ae.prototype.push=function(oe,fe){Fe.prototype.push.call(this,oe,fe)},ae.prototype.p=function(oe,fe){this.c.p(oe),this.l+=oe.length;var Te=Ne(oe,this.o,this.v&&Ue(this.o),fe&&8,!fe);this.v&&(nt(Te,this.o),this.v=0),fe&&($e(Te,Te.length-8,this.c.d()),$e(Te,Te.length-4,this.l)),this.ondata(Te,fe)},ae}(),Pe=function(){function ae(oe,fe){Qe([je,rt,function(){return[de,Fe,Ie]}],this,Le.call(this,oe,fe),function(Te){var Ye=new Ie(Te.data);onmessage=de(Ye)},8)}return ae}();function qe(ae,oe,fe){if(fe||(fe=oe,oe={}),typeof fe!="function")throw"no callback";return he(ae,oe,[je,rt,function(){return[ft]}],function(Te){return $(ft(Te.data[0],Te.data[1]))},2,fe)}function ft(ae,oe){oe===void 0&&(oe={});var fe=Se(),Te=ae.length;fe.p(ae);var Ye=Ne(ae,oe,Ue(oe),8),et=Ye.length;return nt(Ye,oe),$e(Ye,et-8,fe.d()),$e(Ye,et-4,Te),Ye}var ut=function(){function ae(oe){this.v=1,te.call(this,oe)}return ae.prototype.push=function(oe,fe){if(te.prototype.e.call(this,oe),this.v){var Te=dt(this.p);if(Te>=this.p.length&&!fe)return;this.p=this.p.subarray(Te),this.v=0}if(fe){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}te.prototype.c.call(this,fe)},ae}(),st=function(){function ae(oe){this.ondata=oe,Qe([at,re,function(){return[de,te,ut]}],this,0,function(){var fe=new ut;onmessage=de(fe)},9)}return ae}();function Lt(ae,oe,fe){if(fe||(fe=oe,oe={}),typeof fe!="function")throw"no callback";return he(ae,oe,[at,re,function(){return[mt]}],function(Te){return $(mt(Te.data[0]))},3,fe)}function mt(ae,oe){return g(ae.subarray(dt(ae),-8),oe||new D(xe(ae)))}var tt=function(){function ae(oe,fe){this.c=Be(),this.v=1,Fe.call(this,oe,fe)}return ae.prototype.push=function(oe,fe){Fe.prototype.push.call(this,oe,fe)},ae.prototype.p=function(oe,fe){this.c.p(oe);var Te=Ne(oe,this.o,this.v&&2,fe&&4,!fe);this.v&&(Ke(Te,this.o),this.v=0),fe&&$e(Te,Te.length-4,this.c.d()),this.ondata(Te,fe)},ae}(),er=function(){function ae(oe,fe){Qe([je,J,function(){return[de,Fe,tt]}],this,Le.call(this,oe,fe),function(Te){var Ye=new tt(Te.data);onmessage=de(Ye)},10)}return ae}();function Jt(ae,oe,fe){if(fe||(fe=oe,oe={}),typeof fe!="function")throw"no callback";return he(ae,oe,[je,J,function(){return[Ot]}],function(Te){return $(Ot(Te.data[0],Te.data[1]))},4,fe)}function Ot(ae,oe){oe===void 0&&(oe={});var fe=Be();fe.p(ae);var Te=Ne(ae,oe,2,4);return Ke(Te,oe),$e(Te,Te.length-4,fe.d()),Te}var yt=function(){function ae(oe){this.v=1,te.call(this,oe)}return ae.prototype.push=function(oe,fe){if(te.prototype.e.call(this,oe),this.v){if(this.p.length<2&&!fe)return;this.p=this.p.subarray(2),this.v=0}if(fe){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}te.prototype.c.call(this,fe)},ae}(),Et=function(){function ae(oe){this.ondata=oe,Qe([at,k,function(){return[de,te,yt]}],this,0,function(){var fe=new yt;onmessage=de(fe)},11)}return ae}();function wt(ae,oe,fe){if(fe||(fe=oe,oe={}),typeof fe!="function")throw"no callback";return he(ae,oe,[at,k,function(){return[Mt]}],function(Te){return $(Mt(Te.data[0],q(Te.data[1])))},5,fe)}function Mt(ae,oe){return g((We(ae),ae.subarray(2,-4)),oe)}var ct=function(){function ae(oe){this.G=ut,this.I=te,this.Z=yt,this.ondata=oe}return ae.prototype.push=function(oe,fe){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(oe,fe);else{if(this.p&&this.p.length){var Te=new D(this.p.length+oe.length);Te.set(this.p),Te.set(oe,this.p.length)}else this.p=oe;if(this.p.length>2){var Ye=this,et=function(){Ye.ondata.apply(Ye,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(et):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(et):new this.Z(et),this.s.push(this.p,fe),this.p=null}}},ae}(),lr=function(){function ae(oe){this.G=st,this.I=ie,this.Z=Et,this.ondata=oe}return ae.prototype.push=function(oe,fe){ct.prototype.push.call(this,oe,fe)},ae}();function At(ae,oe,fe){if(fe||(fe=oe,oe={}),typeof fe!="function")throw"no callback";return ae[0]==31&&ae[1]==139&&ae[2]==8?Lt(ae,oe,fe):(ae[0]&15)!=8||ae[0]>>4>7||(ae[0]<<8|ae[1])%31?le(ae,oe,fe):wt(ae,oe,fe)}function gt(ae,oe){return ae[0]==31&&ae[1]==139&&ae[2]==8?mt(ae,oe):(ae[0]&15)!=8||ae[0]>>4>7||(ae[0]<<8|ae[1])%31?pe(ae,oe):Mt(ae,oe)}var Nt=function(ae,oe,fe,Te){for(var Ye in ae){var et=ae[Ye],Q=oe+Ye;et instanceof D?fe[Q]=[et,Te]:Array.isArray(et)?fe[Q]=[et[0],ke(Te,et[1])]:Nt(et,Q+"/",fe,Te)}};function ir(ae,oe){var fe=ae.length;if(!oe&&typeof TextEncoder!="undefined")return new TextEncoder().encode(ae);for(var Te=new D(ae.length+(ae.length>>>1)),Ye=0,et=function(H){Te[Ye++]=H},Q=0;QTe.length){var p=new D(Ye+8+(fe-Q<<1));p.set(Te),Te=p}var w=ae.charCodeAt(Q);w<128||oe?et(w):w<2048?(et(192|w>>>6),et(128|w&63)):w>55295&&w<57344?(w=65536+(w&1023<<10)|ae.charCodeAt(++Q)&1023,et(240|w>>>18),et(128|w>>>12&63),et(128|w>>>6&63),et(128|w&63)):(et(224|w>>>12),et(128|w>>>6&63),et(128|w&63))}return b(Te,0,Ye)}function yr(ae,oe){var fe="";if(!oe&&typeof TextDecoder!="undefined")return new TextDecoder().decode(ae);for(var Te=0;Te>10,56320|Ye&1023))}return fe}var br=function(ae,oe){return oe+30+ze(ae,oe+26)+ze(ae,oe+28)},Rr=function(ae,oe,fe){var Te=ze(ae,oe+28),Ye=yr(ae.subarray(oe+46,oe+46+Te),!(ze(ae,oe+8)&2048)),et=oe+46+Te,Q=fe?Dr(ae,et):[Ge(ae,oe+20),Ge(ae,oe+24),Ge(ae,oe+42)],p=Q[0],w=Q[1],H=Q[2];return[ze(ae,oe+10),p,w,Ye,et+ze(ae,oe+30)+ze(ae,oe+32),H]},Dr=function(ae,oe){for(;ze(ae,oe)!=1;oe+=4+ze(ae,oe+2));return[Ge(ae,oe+12),Ge(ae,oe+4),Ge(ae,oe+20)]},Ht=function(ae,oe,fe,Te,Ye,et,Q,p,w,H){var Z=et.length,K=Te.length;$e(ae,oe,w!=null?33639248:67324752),oe+=4,w!=null&&(ae[oe]=20,oe+=2),ae[oe]=20,oe+=2,ae[oe++]=H==8&&(p.level==1?6:p.level<6?4:p.level==9?2:0),ae[oe++]=Q&&8,ae[oe]=H,oe+=2;var ye=new Date(p.mtime||Date.now()),He=ye.getFullYear()-1980;if(He<0||He>119)throw"date not in range 1980-2099";$e(ae,oe,(He<<24)*2|ye.getMonth()+1<<21|ye.getDate()<<16|ye.getHours()<<11|ye.getMinutes()<<5|ye.getSeconds()>>>1),oe+=4,$e(ae,oe,fe),$e(ae,oe+4,K),$e(ae,oe+8,Ye),$e(ae,oe+12,Z),oe+=16,w!=null&&($e(ae,oe+=10,w),oe+=4),ae.set(et,oe),oe+=Z,w==null&&ae.set(Te,oe)},pr=function(ae,oe,fe,Te,Ye){$e(ae,oe,101010256),$e(ae,oe+8,fe),$e(ae,oe+10,fe),$e(ae,oe+12,Te),$e(ae,oe+16,Ye)};function Lr(ae,oe,fe){if(fe||(fe=oe,oe={}),typeof fe!="function")throw"no callback";var Te={};Nt(ae,"",Te,oe);var Ye=Object.keys(Te),et=Ye.length,Q=0,p=0,w=et,H=new Array(et),Z=[],K=function(){for(var ot=0;ot65535&&Tr("filename too long",null),!kt)Tr(null,vt);else if(ur<16e4)try{Tr(null,ce(vt,Tt))}catch(mr){Tr(mr,null)}else Z.push(ue(vt,Tt,Tr))},it=0;it65535)throw"filename too long";var He=Z?ce(w,H):w,it=He.length,ot=Se();ot.p(w),Te.push({t:Z,d:He,m:w.length,c:ot.d(),u:Q.length!=ye,n:K,o:Ye,p:H}),Ye+=30+ye+it,et+=76+2*ye+it}for(var Ve=new D(et+22),_t=Ye,vt=et-Ye,Tt=0;Tt65558){oe("invalid zip file",null);return}var Q=ze(ae,et+8);Q||oe(null,{});var p=Q,w=Ge(ae,et+16),H=w==4294967295;if(H){if(et=Ge(ae,et-12),Ge(ae,et)!=101075792)throw"invalid zip file";p=Q=Ge(ae,et+32),w=Ge(ae,et+48)}for(var Z=function(ye){var He=Rr(ae,w,H),it=He[0],ot=He[1],Ve=He[2],_t=He[3],vt=He[4],Tt=He[5],Pt=br(ae,Tt);w=vt;var ur=function(ar,kt){ar?(Te(),oe(ar,null)):(Ye[_t]=kt,--Q||oe(null,Ye))};if(!it)ur(null,b(ae,Pt,Pt+ot));else if(it==8){var Gt=ae.subarray(Pt,Pt+ot);if(ot<32e4)try{ur(null,pe(Gt,new D(Ve)))}catch(ar){ur(ar,null)}else fe.push(le(Gt,{size:Ve},ur))}else ur("unknown compression type "+it,null)},K=0;K65558)throw"invalid zip file";var Te=ze(ae,fe+8);if(!Te)return{};var Ye=Ge(ae,fe+16),et=Ye==4294967295;if(et){if(fe=Ge(ae,fe-12),Ge(ae,fe)!=101075792)throw"invalid zip file";Te=Ge(ae,fe+32),Ye=Ge(ae,fe+48)}for(var Q=0;Q1?me-1:0),Oe=1;Oe1?W-1:0),Y=1;Y=0)return parseInt(M.slice(M.indexOf("e-")+2),10);var W=0;return M.indexOf(".")>=0&&(W=M.length-M.indexOf(".")-1),W},h.getInputDisplayValue=function(T){var M=T||h.state,W=M.focused,U=M.inputValue,Y=M.value,ne;W?ne=U:ne=h.toPrecisionAsStep(Y),ne==null&&(ne="");var me=h.formatWrapper(ne);return y(h.props.decimalSeparator)&&(me=me.toString().replace(".",h.props.decimalSeparator)),me},h.recordCursorPosition=function(){try{h.cursorStart=h.input.selectionStart,h.cursorEnd=h.input.selectionEnd,h.currentValue=h.input.value,h.cursorBefore=h.input.value.substring(0,h.cursorStart),h.cursorAfter=h.input.value.substring(h.cursorEnd)}catch(T){}},h.restoreByAfter=function(T){if(T===void 0)return!1;var M=h.input.value,W=M.lastIndexOf(T);if(W===-1)return!1;var U=h.cursorBefore.length;return h.lastKeyCode===v.a.DELETE&&h.cursorBefore.charAt(U-1)===T[0]?(h.fixCaret(U,U),!0):W+T.length===M.length?(h.fixCaret(W,W),!0):!1},h.partRestoreByAfter=function(T){return T===void 0?!1:Array.prototype.some.call(T,function(M,W){var U=T.substring(W);return h.restoreByAfter(U)})},h.isNotCompleteNumber=function(T){return isNaN(T)||T===""||T===null||T&&T.toString().indexOf(".")===T.toString().length-1},h.stop=function(){h.autoStepTimer&&clearTimeout(h.autoStepTimer)},h.down=function(T,M,W){h.pressingUpOrDown=!0,h.step("down",T,M,W)},h.up=function(T,M,W){h.pressingUpOrDown=!0,h.step("up",T,M,W)},h.saveInput=function(T){h.input=T};var L=g.value;L===void 0&&(L=g.defaultValue),h.state={focused:g.autoFocus};var N=h.getValidValue(h.toNumber(L));return h.state=s(s({},h.state),{},{inputValue:h.toPrecisionAsStep(N),value:N}),h}return Object(V.a)(b,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(h){var L=this.props,N=L.value,T=L.onChange,M=L.max,W=L.min,U=this.state.focused;if(h){if(!B(h.value,N)||!B(h.max,M)||!B(h.min,W)){var Y=U?N:this.getValidValue(N),ne;this.pressingUpOrDown?ne=Y:this.inputting?ne=this.rawInput:ne=this.toPrecisionAsStep(Y),this.setState({value:Y,inputValue:ne})}var me="value"in this.props?N:this.state.value;"max"in this.props&&h.max!==M&&typeof me=="number"&&me>M&&T&&T(M),"min"in this.props&&h.min!==W&&typeof me=="number"&&me1&&arguments[1]!==void 0?arguments[1]:this.props.min,N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,T=parseFloat(h);return isNaN(T)?h:(TN&&(T=N),T)}},{key:"setValue",value:function(h,L){var N=this.props.precision,T=this.isNotCompleteNumber(parseFloat(h))?null:parseFloat(h),M=this.state.value,W=M===void 0?null:M,U=this.state.inputValue,Y=U===void 0?null:U,ne=typeof T=="number"?T.toFixed(N):"".concat(T),me=T!==W||ne!=="".concat(Y);return"value"in this.props?(Y=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:Y},L)):this.setState({value:T,inputValue:this.toPrecisionAsStep(h)},L),me&&this.props.onChange(T),T}},{key:"getMaxPrecision",value:function(h){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,N=this.props,T=N.precision,M=N.step;if(y(T))return T;var W=this.getPrecision(L),U=this.getPrecision(M),Y=this.getPrecision(h);return h?Math.max(Y,W+U):W+U}},{key:"getPrecisionFactor",value:function(h){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,N=this.getMaxPrecision(h,L);return Math.pow(10,N)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(h){return this.props.formatter?this.props.formatter(h):h}},{key:"toPrecisionAsStep",value:function(h){if(this.isNotCompleteNumber(h)||h==="")return h;var L=Math.abs(this.getMaxPrecision(h));return isNaN(L)?h.toString():Number(h).toFixed(L)}},{key:"toNumber",value:function(h){var L=this.props.precision,N=this.state.focused,T=h&&h.length>16&&N;return this.isNotCompleteNumber(h)||T?h:y(L)?Math.round(h*Math.pow(10,L))/Math.pow(10,L):Number(h)}},{key:"upStep",value:function(h,L){var N=this.props.step,T=this.getPrecisionFactor(h,L),M=Math.abs(this.getMaxPrecision(h,L)),W=((T*h+T*N*L)/T).toFixed(M);return this.toNumber(W)}},{key:"downStep",value:function(h,L){var N=this.props.step,T=this.getPrecisionFactor(h,L),M=Math.abs(this.getMaxPrecision(h,L)),W=((T*h-T*N*L)/T).toFixed(M);return this.toNumber(W)}},{key:"step",value:function(h,L){var N=this,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,M=arguments.length>3?arguments[3]:void 0;this.stop(),L&&(L.persist(),L.preventDefault());var W=this.props;if(W.disabled)return;var U=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(U))return;var Y=this["".concat(h,"Step")](U,T),ne=Y>W.max||YW.max?Y=W.max:Y=ge),Fe=(nt||nt===0)&&(isNaN(nt)||Number(nt)<=Oe),we=Le||T||M,ue=Fe||T||M,ce=m()("".concat(N,"-handler"),"".concat(N,"-handler-up"),Object(G.a)({},"".concat(N,"-handler-up-disabled"),we)),te=m()("".concat(N,"-handler"),"".concat(N,"-handler-down"),Object(G.a)({},"".concat(N,"-handler-down-disabled"),ue)),ie=W?{onTouchStart:we?o:this.up,onTouchEnd:this.stop}:{onMouseDown:we?o:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},le=W?{onTouchStart:ue?o:this.down,onTouchEnd:this.stop}:{onMouseDown:ue?o:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return e.a.createElement("div",{className:xe,style:Se,title:Be,onMouseEnter:Ne,onMouseLeave:ke,onMouseOver:Ce,onMouseOut:ve,onFocus:function(){return null},onBlur:function(){return null}},e.a.createElement("div",{className:"".concat(N,"-handler-wrap")},e.a.createElement("span",Object.assign({unselectable:"on"},ie,{role:"button","aria-label":"Increase Value","aria-disabled":we,className:ce}),Y||e.a.createElement("span",{unselectable:"on",className:"".concat(N,"-handler-up-inner"),onClick:i})),e.a.createElement("span",Object.assign({unselectable:"on"},le,{role:"button","aria-label":"Decrease Value","aria-disabled":ue,className:te}),ne||e.a.createElement("span",{unselectable:"on",className:"".concat(N,"-handler-down-inner"),onClick:i}))),e.a.createElement("div",{className:"".concat(N,"-input-wrap")},e.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Oe,"aria-valuemax":ge,"aria-valuenow":nt,required:Xe,type:je,placeholder:rt,onPaste:Qe,onClick:lt,onMouseUp:this.onMouseUp,className:"".concat(N,"-input"),tabIndex:at,autoComplete:U,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Ke?this.onKeyDown:o,onKeyUp:Ke?this.onKeyUp:o,autoFocus:he,maxLength:q,readOnly:M,disabled:T,max:ge,min:Oe,step:$,name:de,title:Be,id:re,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(We),pattern:k,inputMode:J,onInput:ze},Ue))))}}]),b}(e.a.Component);C.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:_,min:-_,step:1,style:{},onChange:o,onKeyDown:o,onPressEnter:o,onFocus:o,onBlur:o,parser:r,required:!1,autoComplete:"off"};var d=C,n=_e.a=d},fjLI:function(ht,_e,j){"use strict";j.d(_e,"f",function(){return u}),j.d(_e,"b",function(){return s}),j.d(_e,"a",function(){return a}),j.d(_e,"d",function(){return A}),j.d(_e,"e",function(){return o}),j.d(_e,"c",function(){return i});var se=j("8HAY"),G=j("Vhoy"),D=j("MI8n"),V=j("JYp7"),F=j("pmY6"),O=j("24hK"),X=j("nnTU"),P=j("T8No"),e=j("Cg/j"),R=j("t9D7"),m=function(r,t,E,_){var y=arguments.length,B=y<3?t:_===null?_=Object.getOwnPropertyDescriptor(t,E):_,C;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")B=Reflect.decorate(r,t,E,_);else for(var d=r.length-1;d>=0;d--)(C=r[d])&&(B=(y<3?C(B):y>3?C(t,E,B):C(t,E))||B);return y>3&&B&&Object.defineProperty(t,E,B),B},v=function(r,t){return function(E,_){t(E,_,r)}};function u(r){return r.command!==void 0}class s{constructor(r){this.id=s._idPool++,this._debugName=r}}s._idPool=0,s.CommandPalette=new s("CommandPalette"),s.EditorContext=new s("EditorContext"),s.SimpleEditorContext=new s("SimpleEditorContext"),s.EditorContextCopy=new s("EditorContextCopy"),s.EditorContextPeek=new s("EditorContextPeek"),s.MenubarEditMenu=new s("MenubarEditMenu"),s.MenubarCopy=new s("MenubarCopy"),s.MenubarGoMenu=new s("MenubarGoMenu"),s.MenubarSelectionMenu=new s("MenubarSelectionMenu"),s.InlineCompletionsActions=new s("InlineCompletionsActions");const a=Object(e.c)("menuService"),A=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new D.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:r=>r===s.CommandPalette}}addCommand(r){return this.addCommands(V.a.single(r))}addCommands(r){for(const t of r)this._commands.set(t.id,t);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(F.i)(()=>{let t=!1;for(const E of r)t=this._commands.delete(E.id)||t;t&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(r){return this._commands.get(r)}getCommands(){const r=new Map;return this._commands.forEach((t,E)=>r.set(E,t)),r}appendMenuItem(r,t){return this.appendMenuItems(V.a.single({id:r,item:t}))}appendMenuItems(r){const t=new Set,E=new O.a;for(const{id:_,item:y}of r){let B=this._menuItems.get(_);B||(B=new O.a,this._menuItems.set(_,B)),E.push(B.push(y)),t.add(_)}return this._onDidChangeMenu.fire(t),Object(F.i)(()=>{if(E.size>0){for(let _ of E)_();this._onDidChangeMenu.fire(t),E.clear()}})}getMenuItems(r){let t;return this._menuItems.has(r)?t=[...this._menuItems.get(r)]:t=[],r===s.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(r){const t=new Set;for(const E of r)u(E)&&(t.add(E.command.id),E.alt&&t.add(E.alt.id));this._commands.forEach((E,_)=>{t.has(_)||r.push({command:E})})}};class o extends se.e{constructor(r,t,E,_){super(`submenuitem.${r.submenu.id}`,typeof r.title=="string"?r.title:r.title.value,[],"submenu");this.item=r,this._menuService=t,this._contextKeyService=E,this._options=_}get actions(){const r=[],t=this._menuService.createMenu(this.item.submenu,this._contextKeyService),E=t.getActions(this._options);t.dispose();for(const[,_]of E)_.length>0&&(r.push(..._),r.push(new se.d));return r.length&&r.pop(),r}}let i=class r{constructor(t,E,_,y,B){var C,d;if(this._commandService=B,this.id=t.id,this.label=(_==null?void 0:_.renderShortTitle)&&t.shortTitle?typeof t.shortTitle=="string"?t.shortTitle:t.shortTitle.value:typeof t.title=="string"?t.title:t.title.value,this.tooltip=(d=typeof t.tooltip=="string"?t.tooltip:(C=t.tooltip)===null||C===void 0?void 0:C.value)!==null&&d!==void 0?d:"",this.enabled=!t.precondition||y.contextMatchesRules(t.precondition),this.checked=void 0,t.toggled){const n=t.toggled.condition?t.toggled:{condition:t.toggled};this.checked=y.contextMatchesRules(n.condition),this.checked&&n.tooltip&&(this.tooltip=typeof n.tooltip=="string"?n.tooltip:n.tooltip.value),n.title&&(this.label=typeof n.title=="string"?n.title:n.title.value)}this.item=t,this.alt=E?new r(E,void 0,_,y,B):void 0,this._options=_,R.d.isThemeIcon(t.icon)&&(this.class=G.a.asClassName(t.icon))}dispose(){}run(...t){var E,_;let y=[];return((E=this._options)===null||E===void 0?void 0:E.arg)&&(y=[...y,this._options.arg]),((_=this._options)===null||_===void 0?void 0:_.shouldForwardArgs)&&(y=[...y,...t]),this._commandService.executeCommand(this.id,...y)}};i=m([v(3,P.b),v(4,X.b)],i)},fyJ8:function(ht,_e,j){"use strict";var se=j("rePB"),G=j("VTBJ"),D=j("Ff2n"),V=j("U8pU"),F=j("q1tI"),O=j.n(F),X=j("TSYQ"),P=j.n(X),e=j("c+Xe"),R=j("sR1s");function m(A){return A&&Object(V.a)(A)==="object"&&!Array.isArray(A)&&!F.isValidElement(A)}function v(A){return typeof A=="string"?!0:Object(e.c)(A)}function u(A,o){var i,r=A.prefixCls,t=A.className,E=A.record,_=A.index,y=A.dataIndex,B=A.render,C=A.children,d=A.component,n=d===void 0?"td":d,l=A.colSpan,c=A.rowSpan,b=A.fixLeft,g=A.fixRight,h=A.firstFixLeft,L=A.lastFixLeft,N=A.firstFixRight,T=A.lastFixRight,M=A.appendNode,W=A.additionalProps,U=W===void 0?{}:W,Y=A.ellipsis,ne=A.align,me=A.rowType,ge=A.isSticky,Oe="".concat(r,"-cell"),Se,Be;if(C)Be=C;else{var Ne=Object(R.b)(E,y);if(Be=Ne,B){var ke=B(Ne,E,_);m(ke)?(Be=ke.children,Se=ke.props):Be=ke}}Object(V.a)(Be)==="object"&&!Array.isArray(Be)&&!F.isValidElement(Be)&&(Be=null),Y&&(L||N)&&(Be=F.createElement("span",{className:"".concat(Oe,"-content")},Be));var Ce=Se||{},ve=Ce.colSpan,Xe=Ce.rowSpan,lt=Ce.style,at=Ce.className,je=Object(D.a)(Ce,["colSpan","rowSpan","style","className"]),rt=ve!==void 0?ve:l,re=Xe!==void 0?Xe:c;if(rt===0||re===0)return null;var J={},k=typeof b=="number",$=typeof g=="number";k&&(J.position="sticky",J.left=b),$&&(J.position="sticky",J.right=g);var q={};ne&&(q.textAlign=ne);var he,de=Y===!0?{showTitle:!0}:Y;de&&(de.showTitle||me==="header")&&(typeof Be=="string"||typeof Be=="number"?he=Be.toString():F.isValidElement(Be)&&typeof Be.props.children=="string"&&(he=Be.props.children));var Qe=Object(G.a)(Object(G.a)(Object(G.a)({title:he},je),U),{},{colSpan:rt&&rt!==1?rt:null,rowSpan:re&&re!==1?re:null,className:P()(Oe,t,(i={},Object(se.a)(i,"".concat(Oe,"-fix-left"),k),Object(se.a)(i,"".concat(Oe,"-fix-left-first"),h),Object(se.a)(i,"".concat(Oe,"-fix-left-last"),L),Object(se.a)(i,"".concat(Oe,"-fix-right"),$),Object(se.a)(i,"".concat(Oe,"-fix-right-first"),N),Object(se.a)(i,"".concat(Oe,"-fix-right-last"),T),Object(se.a)(i,"".concat(Oe,"-ellipsis"),Y),Object(se.a)(i,"".concat(Oe,"-with-append"),M),Object(se.a)(i,"".concat(Oe,"-fix-sticky"),(k||$)&&ge),i),U.className,at),style:Object(G.a)(Object(G.a)(Object(G.a)(Object(G.a)({},U.style),q),J),lt),ref:v(n)?o:null});return F.createElement(n,Object.assign({},Qe),M,Be)}var s=F.forwardRef(u);s.displayName="Cell";var a=F.memo(s,function(A,o){return o.shouldCellUpdate?!o.shouldCellUpdate(o.record,A.record):!1});_e.a=a},hQp1:function(ht,_e,j){"use strict";j.d(_e,"a",function(){return G});var se;(function(D){D.FirstPage="firstPage",D.PrevPage="prevPage",D.NextPage="nextPage"})(se||(se={}));var G;(function(D){D[D.Single=0]="Single",D[D.Multiple=1]="Multiple",D[D.Judge=2]="Judge",D[D.Fill=3]="Fill",D[D.Subjective=4]="Subjective",D[D.Shixun=5]="Shixun",D[D.Program=6]="Program",D[D.Combine=7]="Combine"})(G||(G={}))},hW8S:function(ht,_e,j){"use strict";j.d(_e,"a",function(){return V}),j.d(_e,"c",function(){return F}),j.d(_e,"b",function(){return O});var se=j("VTBJ"),G=j("Ff2n"),D=j("Kwbf"),V="RC_TABLE_INTERNAL_COL_DEFINE";function F(X){var P=X.expandable,e=Object(G.a)(X,["expandable"]);return"expandable"in X?Object(se.a)(Object(se.a)({},e),P):e}function O(X){return Object.keys(X).reduce(function(P,e){return(e.substr(0,5)==="data-"||e.substr(0,5)==="aria-")&&(P[e]=X[e]),P},{})}},ic2d:function(ht,_e,j){"use strict";j.d(_e,"a",function(){return V});var se=j("FWmy"),G=j("746U");class D{constructor(){this.data=new Map}add(F,O){se.a(G.l(F)),se.a(G.k(O)),se.a(!this.data.has(F),"There is already an extension with this id"),this.data.set(F,O)}as(F){return this.data.get(F)||null}}const V=new D},k5F3:function(ht,_e,j){"use strict";var se=j("g9YV"),G=j("wCAj"),D=j("9og8"),V=j("oBTY"),F=j("k1fw"),O=j("tJVT"),X=j("WmNS"),P=j.n(X),e=j("q1tI"),R=j.n(e),m=j("Ty5D"),v=j("9kvl"),u=j("uJ6K"),s=j.n(u),a=j("V0Rq"),A=j("9Bee"),o=j("1vsH"),i=function(t){var E,_,y,B,C=t.isPreview,d=C===void 0?!1:C,n=t.isExportBlank,l=n===void 0?!1:n,c=t.activeTabs,b=t.exercise,g=t.globalSetting,h=t.loading,L=t.user,N=t.dispatch,T=Object(m.i)(),M=L.userInfo,W=Object(e.useState)(),U=Object(O.a)(W,2),Y=U[0],ne=U[1],me=Object(e.useState)(),ge=Object(O.a)(me,2),Oe=ge[0],Se=ge[1],Be=Object(e.useRef)(null),Ne=Object(e.useState)(21),ke=Object(O.a)(Ne,2),Ce=ke[0],ve=ke[1];Object(e.useEffect)(function(){Object(o.P)(c)||c==="2"&&Xe()},[T.userId,T.coursesId,T.exerciseId,T.categoryId,c]),Object(e.useEffect)(function(){Be.current&&ve(Be.current.clientHeight)},[Be.current]),Object(e.useEffect)(function(){var rt;if((rt=b.exerciseExportHeadData)!==null&&rt!==void 0&&rt.title){var re=b.exerciseExportHeadData;ne(Object(F.a)({},re||{}));var J=re||{},k=J.table,$,q;(k!=null&&k.total_singles_scores||k!=null&&k.total_doubles_scores||k!=null&&k.total_nulls_scores||k!=null&&k.total_judges_scores||k!=null&&k.total_pros_scores||k!=null&&k.total_shixuns_scores||k!=null&&k.total_mains_scores||k!=null&&k.total_combination_scores)&&($=Number(k==null?void 0:k.total_singles_scores)+Number(k==null?void 0:k.total_doubles_scores)+Number(k==null?void 0:k.total_nulls_scores)+Number(k==null?void 0:k.total_judges_scores)+Number(k==null?void 0:k.total_pros_scores)+Number(k==null?void 0:k.total_shixuns_scores)+Number(k==null?void 0:k.total_mains_scores)+Number(k==null?void 0:k.total_combination_scores)),(k!=null&&k.singles_scores||k!=null&&k.doubles_scores||k!=null&&k.nulls_scores||k!=null&&k.judges_scores||k!=null&&k.pros_scores||k!=null&&k.shixuns_scores||k!=null&&k.mains_scores||k!=null&&k.combination_scores)&&(q=Number(k==null?void 0:k.singles_scores)+Number(k==null?void 0:k.doubles_scores)+Number(k==null?void 0:k.nulls_scores)+Number(k==null?void 0:k.judges_scores)+Number(k==null?void 0:k.pros_scores)+Number(k==null?void 0:k.shixuns_scores)+Number(k==null?void 0:k.mains_scores)+Number(k==null?void 0:k.combination_scores));var he=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:k==null?void 0:k.total_singles_scores,doubles_score:k==null?void 0:k.total_doubles_scores,nulls_score:k==null?void 0:k.total_nulls_scores,judges_score:k==null?void 0:k.total_judges_scores,pros_score:k==null?void 0:k.total_pros_scores,shixuns_score:k==null?void 0:k.total_shixuns_scores,mains_score:k==null?void 0:k.total_mains_scores,total_combination_scores:k==null?void 0:k.total_combination_scores,total_score:$},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:k==null?void 0:k.singles_scores,doubles_score:k==null?void 0:k.doubles_scores,nulls_score:k==null?void 0:k.nulls_scores,judges_score:k==null?void 0:k.judges_scores,pros_score:k==null?void 0:k.pros_scores,shixuns_score:k==null?void 0:k.shixuns_scores,mains_score:k==null?void 0:k.mains_scores,total_combination_scores:k==null?void 0:k.combination_scores,total_score:q},{key:"3",name:"\u8BC4\u5377\u4EBA"}],de=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:k==null?void 0:k.total_singles_scores,doubles_score:k==null?void 0:k.total_doubles_scores,nulls_score:k==null?void 0:k.total_nulls_scores,judges_score:k==null?void 0:k.total_judges_scores,pros_score:k==null?void 0:k.total_pros_scores,shixuns_score:k==null?void 0:k.total_shixuns_scores,mains_score:k==null?void 0:k.total_mains_scores,total_combination_scores:k==null?void 0:k.total_combination_scores,total_score:$},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}];Se(Object(V.a)(l?de:he))}},[b.exerciseExportHeadData]);var Xe=function(){var rt=Object(D.a)(P.a.mark(function re(){var J,k,$,q,he,de,Qe,ze;return P.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return J={id:T.exerciseId||T.categoryId,identify:(M==null?void 0:M.login)||null},$e.next=3,Object(a.v)(J);case 3:k=$e.sent,ne(k||{}),$=k||{},q=$.table,(q!=null&&q.total_singles_scores||q!=null&&q.total_doubles_scores||q!=null&&q.total_nulls_scores||q!=null&&q.total_judges_scores||q!=null&&q.total_pros_scores||q!=null&&q.total_shixuns_scores||q!=null&&q.total_mains_scores||q!=null&&q.total_combination_scores)&&(he=Number(q==null?void 0:q.total_singles_scores)+Number(q==null?void 0:q.total_doubles_scores)+Number(q==null?void 0:q.total_nulls_scores)+Number(q==null?void 0:q.total_judges_scores)+Number(q==null?void 0:q.total_pros_scores)+Number(q==null?void 0:q.total_shixuns_scores)+Number(q==null?void 0:q.total_mains_scores)+Number(q==null?void 0:q.total_combination_scores)),(q!=null&&q.singles_scores||q!=null&&q.doubles_scores||q!=null&&q.nulls_scores||q!=null&&q.judges_scores||q!=null&&q.pros_scores||q!=null&&q.shixuns_scores||q!=null&&q.mains_scores||q!=null&&q.combination_scores)&&(de=Number(q==null?void 0:q.singles_scores)+Number(q==null?void 0:q.doubles_scores)+Number(q==null?void 0:q.nulls_scores)+Number(q==null?void 0:q.judges_scores)+Number(q==null?void 0:q.pros_scores)+Number(q==null?void 0:q.shixuns_scores)+Number(q==null?void 0:q.mains_scores)+Number(q==null?void 0:q.combination_scores)),Qe=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:q==null?void 0:q.total_singles_scores,doubles_score:q==null?void 0:q.total_doubles_scores,nulls_score:q==null?void 0:q.total_nulls_scores,judges_score:q==null?void 0:q.total_judges_scores,pros_score:q==null?void 0:q.total_pros_scores,shixuns_score:q==null?void 0:q.total_shixuns_scores,mains_score:q==null?void 0:q.total_mains_scores,total_combination_scores:q==null?void 0:q.total_combination_scores,total_score:he},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:q==null?void 0:q.singles_scores,doubles_score:q==null?void 0:q.doubles_scores,nulls_score:q==null?void 0:q.nulls_scores,judges_score:q==null?void 0:q.judges_scores,pros_score:q==null?void 0:q.pros_scores,shixuns_score:q==null?void 0:q.shixuns_scores,mains_score:q==null?void 0:q.mains_scores,total_combination_scores:q==null?void 0:q.combination_scores,total_score:de},{key:"3",name:"\u8BC4\u5377\u4EBA"}],ze=[{key:"1",name:"\u5E94\u5F97\u5206"},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}],Se(l?ze:Qe);case 11:case"end":return $e.stop()}},re)}));return function(){return rt.apply(this,arguments)}}(),lt=[{width:"10%",title:"\u9898\u578B",align:"center",dataIndex:"name",render:function(re){return R.a.createElement("a",null,re)}},{width:"10%",title:"\u5355\u9009\u9898",align:"center",dataIndex:"singles_score",render:function(re){return R.a.createElement("a",null,re==="0.0"?0:re)}},{width:"10%",title:"\u591A\u9009\u9898",align:"center",dataIndex:"doubles_score",render:function(re){return R.a.createElement("a",null,re==="0.0"?0:re)}},{width:"10%",title:"\u586B\u7A7A\u9898",align:"center",dataIndex:"nulls_score",render:function(re){return R.a.createElement("a",null,re==="0.0"?0:re)}},{width:140,title:"\u5224\u65AD\u9898",align:"center",dataIndex:"judges_score",render:function(re){return R.a.createElement("a",null,re==="0.0"?0:re)}},{width:"10%",title:"\u7F16\u7A0B\u9898",align:"center",dataIndex:"pros_score",render:function(re){return R.a.createElement("a",null,re==="0.0"?0:re)}},{width:"10%",title:"\u5B9E\u8BAD\u9898",align:"center",dataIndex:"shixuns_score",render:function(re){return R.a.createElement("a",null,re==="0.0"?0:re)}},{width:"10%",title:"\u7B80\u7B54\u9898",align:"center",dataIndex:"mains_score",render:function(re){return R.a.createElement("a",null,re==="0.0"?0:re)}},{width:"10%",title:"\u7EC4\u5408\u9898",align:"center",dataIndex:"total_combination_scores",render:function(re){return R.a.createElement("a",null,re==="0.0"?0:re)}},{width:"10%",title:"\u603B\u5206",align:"center",dataIndex:"total_score",render:function(re){return R.a.createElement("a",null,re==="0.0"?0:re)}}],at=Y||{},je=at.exercise_header;return R.a.createElement(R.a.Fragment,null,((je==null?void 0:je.show_user)||(je==null?void 0:je.show_no)||(je==null?void 0:je.show_group))&&R.a.createElement("section",{className:s.a.glassSeal},(je==null?void 0:je.show_user)&&R.a.createElement("span",null,"\u59D3\u540D\uFF1A",R.a.createElement("span",null,Y==null?void 0:Y.user)),(je==null?void 0:je.show_no)&&R.a.createElement("span",null,"\u5B66\u53F7\uFF1A",R.a.createElement("span",null,Y==null?void 0:Y.student_id)),(je==null?void 0:je.show_group)&&R.a.createElement("span",null,"\u4E13\u4E1A\u73ED\u7EA7\uFF1A",R.a.createElement("span",null,Y==null?void 0:Y.group_name))),R.a.createElement("section",{className:"".concat(s.a.wrap," ").concat(d?"pl20":""," ")},(Y==null?void 0:Y.photo_url)&&R.a.createElement("img",{className:s.a.img,src:Y==null?void 0:Y.photo_url}),(je==null?void 0:je.show_title)&&R.a.createElement("p",{className:"font16 tc c-grey-333"},R.a.createElement("strong",null,Y==null?void 0:Y.title)),(je==null?void 0:je.show_body)&&((b==null||((E=b.exerciseExportHeadData)===null||E===void 0)?void 0:E.exercise_description)||(b==null||((_=b.commonHeader)===null||_===void 0)?void 0:_.exercise_description))&&R.a.createElement("span",{ref:Be,style:{justifyContent:Ce===21?"center":"left",wordBreak:"break-all",display:"flex",textAlign:"left"},className:"tc c-grey-333"},"\u8BD5\u5377\u987B\u77E5\uFF1A".concat((b==null||((y=b.exerciseExportHeadData)===null||y===void 0)?void 0:y.exercise_description)||(b==null||((B=b.commonHeader)===null||B===void 0)?void 0:B.exercise_description))),(je==null?void 0:je.show_info)&&R.a.createElement("p",{className:"tc c-grey-666"},"\u5171:\u3010",Y==null?void 0:Y.large_counts,"\u5927\u9898\u3011\u3010",Y==null?void 0:Y.total_count,"\u5C0F\u9898\u3011\u3010 \u6EE1\u5206",Y==null?void 0:Y.score,"\u5206\u3011 \u8003\u8BD5\u65F6\u95F4\uFF1A\u3010",(Y==null?void 0:Y.time)>-1?"".concat(Y==null?void 0:Y.time,"\u5206\u949F"):"\u4E0D\u9650","\u3011"),(je==null?void 0:je.show_desc)&&R.a.createElement("div",{className:"mt10"},R.a.createElement("p",{className:"font16"},"\u8003\u8BD5\u8BF4\u660E\uFF1A"),R.a.createElement(A.a,{value:Y==null?void 0:Y.description})),(je==null?void 0:je.show_table)&&R.a.createElement("div",{className:"mt10"},R.a.createElement(G.a,{className:s.a.table,columns:lt,dataSource:Object(V.a)(Oe||[]),bordered:!0,pagination:!1}))))};_e.a=Object(v.a)(function(r){var t=r.exercise,E=r.loading,_=r.user,y=r.globalSetting;return{exercise:t,globalSetting:y,user:_,loading:E.effects}})(i)},"kVK+":function(ht,_e){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */_e.read=function(j,se,G,D,V){var F,O,X=V*8-D-1,P=(1<>1,R=-7,m=G?V-1:0,v=G?-1:1,u=j[se+m];for(m+=v,F=u&(1<<-R)-1,u>>=-R,R+=X;R>0;F=F*256+j[se+m],m+=v,R-=8);for(O=F&(1<<-R)-1,F>>=-R,R+=D;R>0;O=O*256+j[se+m],m+=v,R-=8);if(F===0)F=1-e;else{if(F===P)return O?NaN:(u?-1:1)*Infinity;O=O+Math.pow(2,D),F=F-e}return(u?-1:1)*O*Math.pow(2,F-D)},_e.write=function(j,se,G,D,V,F){var O,X,P,e=F*8-V-1,R=(1<>1,v=V===23?Math.pow(2,-24)-Math.pow(2,-77):0,u=D?0:F-1,s=D?1:-1,a=se<0||se===0&&1/se<0?1:0;for(se=Math.abs(se),isNaN(se)||se===Infinity?(X=isNaN(se)?1:0,O=R):(O=Math.floor(Math.log(se)/Math.LN2),se*(P=Math.pow(2,-O))<1&&(O--,P*=2),O+m>=1?se+=v/P:se+=v*Math.pow(2,1-m),se*P>=2&&(O++,P/=2),O+m>=R?(X=0,O=R):O+m>=1?(X=(se*P-1)*Math.pow(2,V),O=O+m):(X=se*Math.pow(2,m-1)*Math.pow(2,V),O=0));V>=8;j[G+u]=X&255,u+=s,X/=256,V-=8);for(O=O<0;j[G+u]=O&255,u+=s,O/=256,e-=8);j[G+u-s]|=a*128}},mrIW:function(ht,_e,j){"use strict";j.r(_e);var se=j("+L6B"),G=j("2/Rp"),D=j("sPJy"),V=j("bE4q"),F=j("oBTY"),O=j("/zsF"),X=j("PArb"),P=j("sRBo"),e=j("kaz8"),R=j("14J3"),m=j("BMrR"),v=j("jCWc"),u=j("kPKH"),s=j("7Kak"),a=j("9yH6"),A=j("2qtc"),o=j("kLXV"),i=j("k1fw"),r=j("9og8"),t=j("tJVT"),E=j("PpiC"),_=j("5NDa"),y=j("5rEg"),B=j("WmNS"),C=j.n(B),d=j("q1tI"),n=j.n(d),l=j("Ty5D"),c=j("55Ip"),b=j("9kvl"),g=j("xOOu"),h=j.n(g),L=j("jhfD"),N=j("dF/Y"),T=j("q5bB"),M=j.n(T),W=j("9Bee"),U=j("1vsH"),Y=j("cw1j"),ne=j("g9YV"),me=j("wCAj"),ge=j("giR+"),Oe=j("fyUT"),Se=j("miYZ"),Be=j("tsqr"),Ne=j("5Dmo"),ke=j("3S7+"),Ce=j("xKgJ"),ve=j("wd/R"),Xe=j.n(ve),lt=j("ZW9T"),at=j("tJYV"),je=j.n(at),rt=function(We){var Le,Fe,we,ue=We.item,ce=We.answerData,te=We.hasChangeScore,ie=te===void 0?!0:te,le=We.autoHeight,pe=We.saveChangeScore,Ie=pe===void 0?function(){}:pe,Pe=Object(d.useState)([]),qe=Object(t.a)(Pe,2),ft=qe[0],ut=qe[1],st=Object(d.useState)([]),Lt=Object(t.a)(st,2),mt=Lt[0],tt=Lt[1];Object(d.useEffect)(function(){var yt;if(!(ue!=null&&(yt=ue.shixun_details)!==null&&yt!==void 0&&yt.length))return;for(var Et=[],wt=[],Mt=0;Mt<(ue==null||((ct=ue.shixun_details)===null||ct===void 0)?void 0:ct.length);Mt++){for(var ct,lr,At,gt=0;gt<(ue==null?void 0:ue.shixun_details[Mt].stage_list.length);gt++){var Nt,ir,yr,br,Rr,Dr=ue==null?void 0:ue.shixun_details[Mt].stage_list[gt];Et.push(Object(i.a)(Object(i.a)({},Dr),{operation:ue==null||((Nt=ue.shixun_details)===null||Nt===void 0||((ir=Nt[Mt])===null||ir===void 0||((yr=ir.shixun_detail)===null||yr===void 0||((br=yr[0])===null||br===void 0))))?void 0:br.game_identifier,shixun_challenge_id:ue==null||((Rr=ue.shixun_details[Mt])===null||Rr===void 0)?void 0:Rr.shixun_challenge_id}))}if(ue!=null&&(lr=ue.shixun_details)!==null&&lr!==void 0&&(At=lr[Mt])!==null&&At!==void 0&&At.shixun_detail){var Ht,pr,Lr;wt.push(ue==null||((Ht=ue.shixun_details)===null||Ht===void 0||((pr=Ht[Mt])===null||pr===void 0||((Lr=pr.shixun_detail)===null||Lr===void 0)))?void 0:Lr[0])}}tt(wt),ut([].concat(Et))},[ue==null?void 0:ue.shixun_details]);var er=[{title:"\u5173\u5361",dataIndex:"position",key:"position",align:"center"},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",key:"name",align:"center",ellipsis:!0,width:260,render:function(Et){return n.a.createElement(ke.a,{title:Et},n.a.createElement("span",{className:"overflowHidden1",style:{maxWidth:"400px"},title:Et&&Et.length>25?Et:""},Et))}},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",key:"evaluate_count",align:"center",render:function(Et,wt){return n.a.createElement("span",null,wt.evaluate_count?wt.evaluate_count:n.a.createElement("span",{className:"color-grey-9"},"--"))}},{title:"\u5B8C\u6210\u65F6\u95F4",key:"finished_time",dataIndex:"finished_time",align:"center",render:function(Et,wt){var Mt=!1;return wt.finished_time&&ce!==null&&ce!==void 0&&ce.exercise&&ce!==null&&ce!==void 0&&ce.exercise_answer_user&&((ce==null?void 0:ce.exercise.time)===-1?Mt=Xe()(ce==null?void 0:ce.exercise.end_time).isBefore(wt.finished_time):Mt=Xe()(ce==null?void 0:ce.exercise_answer_user.start_at).add(ce==null?void 0:ce.exercise.time,"m").isBefore(wt.finished_time)),n.a.createElement("span",null,wt.finished_time||n.a.createElement("span",{className:"c-grey-999"},"--"),n.a.createElement("span",{className:"c-orange-ff9 "},Mt?"\uFF08\u5DF2\u8D85\u65F6\uFF09":""))}},{title:"\u8017\u65F6",dataIndex:"time_consuming",key:"time_consuming",align:"center",render:function(Et,wt){return n.a.createElement("span",null,wt.time_consuming||n.a.createElement("span",{className:"color-grey-9"},"--"))}},{title:"\u67E5\u770B\u7B54\u6848",dataIndex:"view_answer",key:"view_answer",align:"center",render:function(Et,wt){return n.a.createElement("span",null,wt.view_answer?"\u5DF2\u67E5\u770B":"\u672A\u67E5\u770B")}},{title:"\u5F97\u5206/\u6EE1\u5206",dataIndex:"user_score",key:"user_score",align:"center",render:function(Et,wt){return n.a.createElement("span",null,n.a.createElement("span",{className:"c-orange"},wt.user_score),"/",wt.game_score)}},ie&&{title:"\u8C03\u5206",dataIndex:"user_score",key:"user_score",align:"center",render:function(Et,wt,Mt){return n.a.createElement(Oe.a,{min:0,max:Number(wt.game_score),defaultValue:Et,onBlur:function(){var ct=Object(r.a)(C.a.mark(function lr(At){var gt;return C.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:if(!(At.target.value!=Et)){ir.next=6;break}return ir.next=3,Ie(Object(i.a)(Object(i.a)({},ue),{shixun_challenge_id:wt.shixun_challenge_id,shixunScore:At.target.value}));case 3:gt=ir.sent,console.log("res: ",gt),gt!=null&>.question_comments&&Be.b.success("\u5DF2\u4FEE\u6539\u5F53\u524D\u8BC4\u5206");case 6:case"end":return ir.stop()}},lr)}));return function(lr){return ct.apply(this,arguments)}}()})}}].filter(function(yt){return!!yt}),Jt=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"key",width:"127px",key:"key",align:"center",render:function(Et,wt){return n.a.createElement("span",null,wt.key)}},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"error_msg",key:"error_msg",align:"center",render:function(Et,wt){return n.a.createElement("span",null,wt.error_msg?wt.error_msg:"--")}},{title:"\u8BC4\u6D4B\u65F6\u95F4",dataIndex:"updated_at",key:"updated_at",align:"center",width:200,render:function(Et,wt){return n.a.createElement("span",null,wt.updated_at?wt.updated_at:"--")}}],Ot={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return n.a.createElement(n.a.Fragment,null,((ce==null||((Le=ce.exercise)===null||Le===void 0)?void 0:Le.student_commit_status)!==0||(ce==null||((Fe=ce.exercise)===null||Fe===void 0)?void 0:Fe.user_exercise_status)!==0)&&n.a.createElement("div",{className:"mt15"},n.a.createElement("p",{className:"font16 c-grey-666"},"\u9636\u6BB5\u6210\u7EE9"),!!(ft!=null&&ft.length)&&n.a.createElement(me.a,{columns:er,dataSource:ft,pagination:!1})),!!(mt!=null&&mt.length)&&n.a.createElement(n.a.Fragment,null,n.a.createElement("p",{className:"font16 c-grey-666 mt10"},"\u5B9E\u8BAD\u8BE6\u60C5"),mt==null?void 0:mt.map(function(yt,Et){var wt;return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"mt5"},n.a.createElement("span",{className:"font16 mr15"}," ","\u7B2C",yt.position,"\u5173"),n.a.createElement(c.a,{className:"current c-black font16",to:"/tasks/".concat(yt.game_identifier)},yt.name)),!!(yt!=null&&(wt=yt.outputs)!==null&&wt!==void 0&&wt.length)&&n.a.createElement(me.a,{bordered:!0,dataSource:yt.outputs.map(function(Mt){return{key:Mt.position,error_msg:Mt.output_detail,updated_at:Mt.updated_at}}),columns:Jt,pagination:!1}),(yt==null?void 0:yt.st)===0&&yt.passed_code&&n.a.createElement("div",{className:je.a.shixunWrp},n.a.createElement("h2",null,"\u6700\u540E\u4E00\u6B21\u901A\u5173\u7684\u4EE3\u7801\uFF08\u672A\u901A\u5173\u5219\u4E3A\u6700\u540E\u4E00\u6B21\u63D0\u4EA4\u8BC4\u6D4B\u7684\u4EE3\u7801\uFF09",n.a.createElement("span",{className:"c-light-black"},yt.path)),n.a.createElement(lt.b,{height:300,autoHeight:le,language:"python",theme:"default",value:yt.passed_code,options:Ot})))})),Object(Ce.s)()&&n.a.createElement(W.a,{className:"c-grey-999 mt20 mb20",value:ue==null?void 0:ue.question_title}),ue==null||((we=ue.shixun)===null||we===void 0)?void 0:we.map(function(yt,Et){return n.a.createElement("p",{className:"font16 c-grey-666 mb5"},n.a.createElement("span",{className:"mr20"},"\u7B2C",yt==null?void 0:yt.challenge_position,"\u5173 ",yt==null?void 0:yt.challenge_name),n.a.createElement("span",null,yt==null?void 0:yt.challenge_score,"\u5206"))}),n.a.createElement("div",{className:"mb15"}))},re=rt,J=j("J66h"),k=j("ZPm4"),$=j.n(k),q=function(We){var Le,Fe,we,ue,ce,te=We.item,ie=We.answerData,le=We.autoHeight,pe=Object(d.useState)([]),Ie=Object(t.a)(pe,2),Pe=Ie[0],qe=Ie[1];Object(d.useEffect)(function(){var st;if((te==null||((st=te.evaluate_codes)===null||st===void 0)?void 0:st.length)>0){var Lt;qe(te==null||((Lt=te.evaluate_codes)===null||Lt===void 0)?void 0:Lt.map(function(mt,tt){return{key:tt+1,error_msg:mt!=null&&mt.error_msg?J.Base64.decode(mt==null?void 0:mt.error_msg):"",created_at:mt.created_at}}))}else qe([{key:"--",error_msg:"--"}])},[te==null?void 0:te.evaluate_codes]);var ft=[{title:"\u8BC4\u6D4B\u5E8F\u53F7",dataIndex:"key",width:"127px",key:"key",align:"center",render:function(Lt,mt){return n.a.createElement("span",null,mt.key)}},{title:"\u8BC4\u6D4B\u65F6\u95F4",dataIndex:"created_at",key:"created_at",align:"center",width:200,render:function(Lt,mt){return n.a.createElement("span",null,mt.created_at?Xe()(mt.created_at).format("YYYY-MM-DD HH:mm"):"--")}},{title:"\u8BC4\u6D4B\u7ED3\u679C",dataIndex:"error_msg",key:"error_msg",align:"center",render:function(Lt,mt){var tt;return n.a.createElement("span",null,mt.error_msg?((tt=mt.error_msg)===null||tt===void 0?void 0:tt.length)>1e3?mt.error_msg.substring(0,1e3)+"...":mt.error_msg:"--")}}],ut={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"mt15 mb15"},n.a.createElement(W.a,{value:te==null?void 0:te.description})),(!!(ie!=null&&(Le=ie.exercise)!==null&&Le!==void 0&&Le.student_commit_status)&&(ie==null||((Fe=ie.exercise)===null||Fe===void 0)?void 0:Fe.student_commit_status)!==0||!!(ie!=null&&(we=ie.exercise)!==null&&we!==void 0&&we.user_exercise_status)&&(ie==null||((ue=ie.exercise)===null||ue===void 0)?void 0:ue.user_exercise_status)!==0)&&n.a.createElement(me.a,{className:"mt5",bordered:!0,dataSource:Pe,columns:ft,pagination:!1}),!!(te!=null&&(ce=te.user_answer)!==null&&ce!==void 0&&ce.length)&&(te==null?void 0:te.passed_code)&&n.a.createElement("aside",{className:$.a.shixunWrp},n.a.createElement("h3",null,"\u7B2C\u4E00\u6B21\u8BC4\u6D4B\u901A\u8FC7\u7684\u4EE3\u7801\uFF08\u672A\u901A\u5173\u5219\u4E3A\u6700\u540E\u4E00\u6B21\u63D0\u4EA4\u8BC4\u6D4B\u7684\u4EE3\u7801\uFF09"),n.a.createElement(lt.b,{style:{border:"1px solid #ccc"},height:300,language:"python",theme:"vs-light",value:te!=null&&te.passed_code?J.Base64.decode(te==null?void 0:te.passed_code):"",autoHeight:le,options:ut})))},he=q,de=j("k5F3"),Qe=j("1n7x"),ze=j.n(Qe),Ge=j("hQp1"),$e=30,nt=y.a.TextArea,dt=["\u5355\u9009\u9898","\u591A\u9009\u9898","\u5224\u65AD\u9898","\u586B\u7A7A\u9898","\u7B80\u7B54\u9898","\u5B9E\u8BAD\u9898","\u7F16\u7A0B\u9898"],xe=function(We){var Le,Fe,we,ue,ce,te,ie,le=We.exercise,pe=We.globalSetting,Ie=We.loading,Pe=We.user,qe=We.dispatch,ft=Object(E.a)(We,["exercise","globalSetting","loading","user","dispatch"]),ut=Object(l.i)(),st=Pe.userInfo,Lt=Object(d.useState)({}),mt=Object(t.a)(Lt,2),tt=mt[0],er=mt[1],Jt=Object(d.useRef)(),Ot=Object(d.useRef)(!1),yt=Object(d.useState)(!1),Et=Object(t.a)(yt,2),wt=Et[0],Mt=Et[1],ct=Object(d.useState)({}),lr=Object(t.a)(ct,2),At=lr[0],gt=lr[1],Nt=Object(d.useState)(new h.a),ir=Object(t.a)(Nt,2),yr=ir[0],br=ir[1],Rr=Object(d.useState)([]),Dr=Object(t.a)(Rr,2),Ht=Dr[0],pr=Dr[1],Lr=Object(d.useState)(!1),Cr=Object(t.a)(Lr,2),Qr=Cr[0],Ur=Cr[1],ae=Object(d.useState)(!1),oe=Object(t.a)(ae,2),fe=oe[0],Te=oe[1],Ye=Object(d.useState)(!1),et=Object(t.a)(Ye,2),Q=et[0],p=et[1],w=Object(d.useState)(!1),H=Object(t.a)(w,2),Z=H[0],K=H[1],ye=Object(d.useState)(!1),He=Object(t.a)(ye,2),it=He[0],ot=He[1];Object(d.useEffect)(function(){st!=null&&st.login&&Tt();try{pr(JSON.parse(localStorage.total_exercise_users))}catch($t){}},[ut.userId,ut.coursesId,ut.exerciseId,st]);var Ve=function(){document.querySelectorAll("canvas").forEach(function(De){(!De.clientWidth||!De.clientHeight)&&De.remove()})},_t=function(){document.body.scrollIntoView()},vt=function(De){var Qt,Vt,Dt,jt=De==null||((Qt=De.exercise_answer_user)===null||Qt===void 0)?void 0:Qt.user_id;if(De!=null&&(Vt=De.exercise)!==null&&Vt!==void 0&&Vt.question_random||De!=null&&(Dt=De.exercise)!==null&&Dt!==void 0&&Dt.choice_random){var Kt,Ar=1;De.exercise.question_random=De==null||((Kt=De.exercise_question_types)===null||Kt===void 0)?void 0:Kt.map(function(zt){var sr,rr;return De!=null&&(sr=De.exercise)!==null&&sr!==void 0&&sr.choice_random&&((zt.question_type===0||zt.question_type===1)&&zt.items.map(function(Ut){return Ut.question_choices=Object(U.U)(Ut.question_choices,jt),Ut}),zt.question_type===7&&zt.items.forEach(function(Ut){Ut.sub_exercise_questions.forEach(function(Wt){Wt.question_choices=Object(U.U)(Wt.question_choices,jt)})})),De!=null&&(rr=De.exercise)!==null&&rr!==void 0&&rr.question_random&&(zt.items=Object(U.U)(zt.items,jt)),zt.items.map(function(Ut){return Ut.question_num=Ar,Ar++,Ut}),zt})}},Tt=function(){var $t=Object(r.a)(C.a.mark(function De(){var Qt;return C.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:if(qe({type:"exercise/getExerciseExportHeadData",payload:{id:ut.exerciseId||ut.categoryId,identify:ut.userId||null}}),!ut.userId){Dt.next=9;break}return Dt.next=4,qe({type:"exercise/getReviewExercise",payload:{exerciseId:ut.exerciseId,login:ut.userId}});case 4:Qt=Dt.sent,vt(Qt),Ot.current=!1,Dt.next=13;break;case 9:return Dt.next=11,qe({type:"exercise/editExercise",payload:{coursesId:ut.coursesId,categoryId:ut.exerciseId}});case 11:Qt=Dt.sent,Ot.current=!0;case 13:gt(Object(i.a)({},Qt||{})),setTimeout(function(){var jt=1,Kt=document.getElementById("export-id-all"),Ar=860,zt=0},1500);case 15:case"end":return Dt.stop()}},De)}));return function(){return $t.apply(this,arguments)}}(),Pt=function(){yr.generateAsync({type:"blob"}).then(function(De){var Qt,Vt,Dt,jt=document.createElement("a");jt.href=window.URL.createObjectURL(De),jt.download=Object.keys(yr.files).length>1?At==null||((Qt=At.exercise)===null||Qt===void 0)?void 0:Qt.exercise_name:((le==null||((Vt=le.exerciseExportHeadData)===null||Vt===void 0)?void 0:Vt.user)||(At==null||((Dt=At.exercise)===null||Dt===void 0)?void 0:Dt.exercise_name))+".zip",document.body.appendChild(jt);var Kt=document.createEvent("MouseEvents");Kt.initEvent("click",!1,!1),jt.dispatchEvent(Kt),document.body.removeChild(jt),br(new h.a)}),Te(!1),K(!1),p(!1),Ur(!1)},ur=function(){var $t=Object(r.a)(C.a.mark(function De(Qt){var Vt,Dt,jt,Kt,Ar,zt,sr,rr,Ut,Wt,Ft,tr,Zt;return C.a.wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:return Zt=function(){return Zt=Object(r.a)(C.a.mark(function gr(){var Kr;return C.a.wrap(function(Nr){for(;;)switch(Nr.prev=Nr.next){case 0:return Dt++,Ot.current=!1,_t(),Nr.next=5,qe({type:"exercise/getExerciseExportHeadData",payload:{id:ut.exerciseId||ut.categoryId,identify:Ht[Dt-1].user_login}});case 5:return Nr.next=7,qe({type:"exercise/getReviewExercise",payload:{exerciseId:ut.exerciseId,login:Ht[Dt-1].user_login}});case 7:Kr=Nr.sent,vt(Kr),gt(Object(i.a)({},Kr||{})),setTimeout(Object(r.a)(C.a.mark(function fr(){var qr,Xt,Sr;return C.a.wrap(function($r){for(;;)switch($r.prev=$r.next){case 0:Ve(),qr=ze()(),Xt=C.a.mark(function un(Yr){return C.a.wrap(function(mn){for(;;)switch(mn.prev=mn.next){case 0:return mn.next=2,qr.set(rr).from(Kt[Yr]).toContainer().toCanvas().toPdf().get("pdf").then(function(){var Qn=Object(r.a)(C.a.mark(function Jr(cn){return C.a.wrap(function(gn){for(;;)switch(gn.prev=gn.next){case 0:if(!(Yr0)&&fe&&n.a.createElement(m.a,{style:{marginTop:14}},n.a.createElement("span",{className:"font16 "},"\u89E3\u6790\uFF1A"),n.a.createElement(W.a,{className:M.a.renderHtml,value:(Xt==null?void 0:Xt.analysis)||"\u6682\u65E0\u89E3\u6790"})))})),fe&&n.a.createElement("div",{style:{marginTop:10}},(De==null?void 0:De.question_type)<3&&(De==null?void 0:De.standard_answer_show)&&n.a.createElement("span",{className:"font16 "},"\u6B63\u786E\u7B54\u6848\uFF1A",De==null?void 0:De.standard_answer_show),!!(De!=null&&(Ut=De.standard_answer)!==null&&Ut!==void 0&&Ut.length)&&fe&&(De==null?void 0:De.question_type)===3&&n.a.createElement("div",null,De==null||((Wt=De.standard_answer)===null||Wt===void 0)?void 0:Wt.map(function(Xt,Sr){return n.a.createElement("div",null,n.a.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",Sr+1,"\uFF09:"),n.a.createElement("div",null,n.a.createElement(nt,{autoSize:!0,disabled:!0,value:Xt==null?void 0:Xt.answer_text[0]})))})),(De==null?void 0:De.standard_answer)&&(De==null?void 0:De.question_type)===4&&n.a.createElement("div",null,n.a.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A"),n.a.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},n.a.createElement(W.a,{value:De==null||((Ft=De.standard_answer)===null||Ft===void 0)?void 0:Ft[0]}))),(De==null?void 0:De.question_type)<=4&&((De==null?void 0:De.standard_answer_show)||(De==null||((tr=De.standard_answer)===null||tr===void 0)?void 0:tr.length)>0)&&n.a.createElement(m.a,{style:{marginTop:14}},n.a.createElement("span",{className:"font16 "},"\u89E3\u6790\uFF1A"),n.a.createElement(W.a,{className:M.a.renderHtml,value:(De==null?void 0:De.analysis)||"\u6682\u65E0\u89E3\u6790"}))),Q&&!Number.isNaN(parseFloat(De==null?void 0:De.user_score))&&(De==null?void 0:De.question_type)!==Ge.a.Shixun&&n.a.createElement("span",null,n.a.createElement("span",{style:{color:"#0152d9"}},"\u5B66\u751F\u5F97\u5206\uFF1A"),De==null?void 0:De.user_score,"\u5206"),Z&&((De==null?void 0:De.question_type)===4||(De==null?void 0:De.question_type)===3||(De==null?void 0:De.question_type)===6)&&n.a.createElement("div",{style:{display:"flex",flexFlow:"column"}},(De==null||((Zt=De.answer_comments)===null||Zt===void 0||((xr=Zt[0])===null||xr===void 0||((qt=xr.user)===null||qt===void 0)))?void 0:qt.name)&&n.a.createElement("span",null,"\u8BC4\u9605\u6559\u5E08\uFF1A",De==null||((Fr=De.answer_comments)===null||Fr===void 0||((gr=Fr[0])===null||gr===void 0||((Kr=gr.user)===null||Kr===void 0)))?void 0:Kr.name," "),(De==null||((Pr=De.answer_comments)===null||Pr===void 0||((Nr=Pr[0])===null||Nr===void 0))?void 0:Nr.comment)&&n.a.createElement("span",null,"\u6559\u5E08\u8BC4\u8BED\uFF1A",De==null||((fr=De.answer_comments)===null||fr===void 0||((qr=fr[0])===null||qr===void 0))?void 0:qr.comment," ")),n.a.createElement(X.a,{style:Ot.current?{marginTop:30}:{}}))},kt=function(De){var Qt=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],Vt=["","\u5341","\u767E","\u5343","\u4E07"];De=parseInt(De);var Dt=function(zt){for(var sr=zt.toString().split("").reverse(),rr="",Ut=0;Ut0&&sr[Ut]==0&&sr[Ut-1]==0?"":Qt[sr[Ut]]+(sr[Ut]==0?Vt[0]:Vt[Ut]))+rr;return rr},jt=Math.floor(De/1e4),Kt=De%1e4;return Kt.toString().length<4&&(Kt="0"+Kt),jt?Dt(jt)+"\u4E07"+Dt(Kt):Dt(De)},Tr=function(De,Qt){return De.category?n.a.createElement("div",null,n.a.createElement("span",{className:"font16 c-light-primary"},kt(De.key+1),"\u3001",De.name),n.a.createElement("span",{className:"c-grey-999"},"\uFF08\u5171",De.count,"\u9898\uFF0C",(De==null?void 0:De.question_type)===7?"\u5305\u542B".concat(De==null?void 0:De.sub_count,"\u5C0F\u9898\uFF1B"):"","\u5171",De.score,"\u5206\uFF09")):ar(De,Qt)},mr=Object(d.useCallback)(function(){var $t,De,Qt,Vt,Dt,jt,Kt,Ar=(le==null||(($t=le.exerciseExportHeadData)===null||$t===void 0||((De=$t.exercise_header)===null||De===void 0))?void 0:De.export_page_num)||40,zt=At==null||((Qt=At.exercise_question_types)===null||Qt===void 0||((Vt=Qt.map(function(rr,Ut){return[Object(i.a)(Object(i.a)({},rr),{},{items:null,category:1,key:Ut})].concat(Object(F.a)(rr.items))}))===null||Vt===void 0))?void 0:Vt.flat(),sr=0;return zt!=null&&zt.length?(Dt=new Array(Math.ceil((zt==null?void 0:zt.length)/Ar)))===null||Dt===void 0||((jt=Dt.fill([]))===null||jt===void 0||((Kt=jt.map(function(rr,Ut){return zt.slice(Ut*Ar,Ut*Ar+Ar)}))===null||Kt===void 0))?void 0:Kt.map(function(rr,Ut){return n.a.createElement("div",{className:"pl60 pr30",style:{minHeight:Ut===0?1e3:"auto"}},Ut===0&&n.a.createElement(n.a.Fragment,null,n.a.createElement(de.a,{isExportBlank:Ot.current}),n.a.createElement(X.a,{className:M.a.divider})),rr==null?void 0:rr.map(function(Wt,Ft){return Wt.question_title&&++sr,Tr(Wt,sr)}))}):null},[At==null?void 0:At.exercise_question_types,Qr]);return n.a.createElement("section",{className:"edu-container"},n.a.createElement("section",{className:"animated fadeIn"},n.a.createElement("aside",{className:"mt10"},st&&n.a.createElement(V.a,{separator:">"},n.a.createElement(V.a.Item,null,n.a.createElement(c.a,{to:"/classrooms/".concat(ut.coursesId,"/exercise")},st==null||((Le=st.course)===null||Le===void 0)?void 0:Le.course_name)),n.a.createElement(V.a.Item,null,n.a.createElement(c.a,{to:"/classrooms/".concat(ut.coursesId,"/exercise")},"\u8BD5\u5377\u5217\u8868")),n.a.createElement(V.a.Item,null,n.a.createElement(c.a,{to:"/classrooms/".concat(ut.coursesId,"/exercise/").concat(At==null||((Fe=At.exercise)===null||Fe===void 0)?void 0:Fe.id,"/detail")},"\u8BD5\u5377\u8BE6\u60C5")),n.a.createElement(V.a.Item,null,(At==null||((we=At.exercise_answer_user)===null||we===void 0)?void 0:we.user_name)||(At==null||((ue=At.exercise)===null||ue===void 0)?void 0:ue.exercise_name)))),n.a.createElement("aside",{className:[M.a.title,"mt20"].join(" ")},n.a.createElement(m.a,{style:{width:"100%"}},n.a.createElement(u.a,{flex:"1",style:{lineHeight:"24px"}},n.a.createElement(c.a,{to:"/classrooms/".concat(ut.coursesId,"/exercise/").concat(At==null||((ce=At.exercise)===null||ce===void 0)?void 0:ce.id,"/detail")},n.a.createElement(L.a,{className:"font16 c-black"})),Object(U.A)((te=At.exercise)===null||te===void 0?void 0:te.exercise_status),n.a.createElement("strong",{className:"font20 ml5"},At==null||((ie=At.exercise)===null||ie===void 0)?void 0:ie.exercise_name)),n.a.createElement(u.a,null,n.a.createElement(G.a,{type:"primary",onClick:function(){Te(!0),setTimeout(function(){ur("")},500)}},n.a.createElement(N.a,null),"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377+\u7B54\u6848"),n.a.createElement(G.a,{type:"primary",className:"ml10",onClick:function(){return ur("")},loading:wt},n.a.createElement(N.a,null),"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377"),Object(Ce.c)()&&n.a.createElement(G.a,{disabled:wt,className:"ml10",type:"primary",onClick:function(){ot(!0)}},n.a.createElement(N.a,null),"\u5BFC\u51FA\u6240\u6709\u5B66\u751F\u8BD5\u5377"))))),n.a.createElement(o.a,{title:"\u5BFC\u51FA\u8BD5\u5377\u9009\u62E9",visible:it,footer:n.a.createElement("div",null,n.a.createElement(G.a,{type:"primary",onClick:function(){K(!0),p(!0),ot(!1),ur("all")}},"\u662F"),n.a.createElement(G.a,{onClick:function(){p(!0),ot(!1),ur("all")}},"\u5426")),onCancel:function(){return ot(!1)}},"\u662F\u5426\u8FDE\u540C\u8BC4\u9605\u6559\u5E08\u3001\u6559\u5E08\u8BC4\u8BED\u4E00\u8D77\u5BFC\u51FA\uFF1F"),n.a.createElement("section",{id:"export-all",className:[M.a.bg,"pt30","pb30","mt20","mb20","relative"].join(" "),ref:Jt},mr()))},Ue=_e.default=Object(b.a)(function(Ke){var We=Ke.exercise,Le=Ke.loading,Fe=Ke.user,we=Ke.globalSetting;return{exercise:We,globalSetting:we,user:Fe,loading:Le.effects}})(xe)},n6Qo:function(ht,_e,j){"use strict";j.d(_e,"a",function(){return P});var se=j("q1tI"),G=j("biw7"),D=j("fyJ8");function V(e){var R=e.className,m=e.index,v=e.children,u=e.colSpan,s=e.rowSpan,a=se.useContext(G.a),A=a.prefixCls,o=a.fixedInfoList,i=o[m];return se.createElement(D.a,Object.assign({className:R,index:m,component:"td",prefixCls:A,record:null,dataIndex:null,render:function(){return{children:v,props:{colSpan:u,rowSpan:s}}}},i))}function F(e){return se.createElement("tr",Object.assign({},e))}function O(e){var R=e.children,m=se.useContext(G.a),v=m.prefixCls;return se.createElement("tfoot",{className:"".concat(v,"-summary")},R)}var X=_e.b=O,P={Cell:V,Row:F}},nEHx:function(ht,_e,j){"use strict";j.d(_e,"a",function(){return se});var se;(function(G){G.DARK="dark",G.LIGHT="light",G.HIGH_CONTRAST="hc"})(se||(se={}))},nnTU:function(ht,_e,j){"use strict";j.d(_e,"b",function(){return X}),j.d(_e,"a",function(){return P});var se=j("MI8n"),G=j("JYp7"),D=j("pmY6"),V=j("24hK"),F=j("746U"),O=j("Cg/j");const X=Object(O.c)("commandService"),P=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new se.b,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,R){if(!e)throw new Error("invalid command");if(typeof e=="string"){if(!R)throw new Error("invalid command");return this.registerCommand({id:e,handler:R})}if(e.description){const a=[];for(let o of e.description.args)a.push(o.constraint);const A=e.handler;e.handler=function(o,...i){return Object(F.o)(i,a),A(o,...i)}}const{id:m}=e;let v=this._commands.get(m);v||(v=new V.a,this._commands.set(m,v));let u=v.unshift(e),s=Object(D.i)(()=>{u();const a=this._commands.get(m);(a==null?void 0:a.isEmpty())&&this._commands.delete(m)});return this._onDidRegisterCommand.fire(m),s}registerCommandAlias(e,R){return P.registerCommand(e,(m,...v)=>m.get(X).executeCommand(R,...v))}getCommand(e){const R=this._commands.get(e);return!R||R.isEmpty()?void 0:G.a.first(R)}getCommands(){const e=new Map;for(const R of this._commands.keys()){const m=this.getCommand(R);m&&e.set(R,m)}return e}};P.registerCommand("noop",()=>{})},p5ED:function(ht,_e,j){"use strict";var se=j("+L6B"),G=j("2/Rp"),D=j("5Dmo"),V=j("3S7+"),F=j("k1fw"),O=j("9og8"),X=j("tJVT"),P=j("WmNS"),e=j.n(P),R=j("q1tI"),m=j.n(R),v=j("vHTk"),u=j.n(v),s=j("yEEn"),a=j("ZW9T"),A=j("1vsH"),o=j("V0Rq"),i=j("m3rI");_e.a=function(r){var t,E,_,y,B,C,d,n=r.editOffice,l=n===void 0?"view":n,c=r.data,b=r.theme,g=r.type,h=r.filename,L=r.monacoEditor,N=r.className,T=r.style,M=r.close,W=r.onClose,U=r.hasMask,Y=r.disabledDownload,ne=Object(R.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),me=Object(X.a)(ne,2),ge=me[0],Oe=me[1],Se=Object(R.useState)(""),Be=Object(X.a)(Se,2),Ne=Be[0],ke=Be[1],Ce=Object(R.useState)(),ve=Object(X.a)(Ce,2),Xe=ve[0],lt=ve[1],at=window.ENV==="build"?"/react/build":"",je=i.a.PROXY_SERVER||location.origin,rt,re=1024*1024,J=10*re,k=Object(R.useRef)();(t=c)!==null&&t!==void 0&&t.startsWith("/api")&&g!=="txt"&&(c=i.a.API_SERVER+c),g==="office"&&(rt=Object(A.T)(c).filesize,rt>J&&(g="other")),h&&L&&(L.filename=h),Object(R.useEffect)(function(){var de,Qe,ze=(de=document.cookie)===null||de===void 0||((Qe=de.replace(/\s/g,""))===null||Qe===void 0)?void 0:Qe.split(";");ze==null||ze.map(function(Ge){var $e=Ge.split("=");$e[0]==="_educoder_session"&&ke($e[1])})},[]),Object(R.useEffect)(function(){g==="office"&&$()},[g,c]);var $=function(){var de=Object(O.a)(e.a.mark(function Qe(){var ze,Ge,$e;return e.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return console.log("data:",c),ze=c,c.startsWith("http")||(ze=location.origin+ze),Ge=new URL(ze).pathname.split("/").pop(),dt.next=6,Object(o.V)({attachment_id:Ge});case 6:$e=dt.sent,lt($e);case 8:case"end":return dt.stop()}},Qe)}));return function(){return de.apply(this,arguments)}}(),q=function(){if(c.startsWith("http")||c.startsWith("blob:")){he();return}Object(A.z)(h||"educoder",c,h)},he=function(){Object(A.x)(h||"educoder",decodeURIComponent(c))};return m.a.createElement("div",{style:Object(F.a)({},T||{}),className:"".concat(U&&u.a.bgBlack," ").concat(g?u.a.wrp:"hide")},M&&m.a.createElement("div",{className:u.a.close,ref:k},!Y&&m.a.createElement(V.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return k.current}},m.a.createElement("span",{onClick:he},m.a.createElement("i",{className:"icon-quxiaozhiding"}))),m.a.createElement(V.a,{title:"\u5173\u95ED",getPopupContainer:function(){return k.current}},m.a.createElement("span",{className:"",onClick:W},m.a.createElement("i",{className:"icon-guanbi1"})))),m.a.createElement("div",{className:"".concat(u.a[N]," ").concat(N," ").concat(u.a.monaco," ").concat(g==="txt"?"show":"hide")},g==="txt"&&m.a.createElement(a.b,L)),g==="audio"&&m.a.createElement("audio",{src:"".concat(((E=c)===null||E===void 0?void 0:E.indexOf("http://"))>-1||((_=c)===null||_===void 0?void 0:_.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(c),autoPlay:!0}),g==="video"&&m.a.createElement(m.a.Fragment,null,((y=c)===null||y===void 0?void 0:y.indexOf("http"))>-1?m.a.createElement("video",{controls:!0,src:"".concat(c),autoPlay:!0}):m.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(c),autoPlay:!0})),g==="office"&&Xe&&m.a.createElement("iframe",{src:"".concat(at,"/office.html?key=").concat(Xe.key,"&url=").concat(je+Xe.url,"&callbackUrl=").concat(je+Xe.callbackUrl,"&fileType=").concat(Xe.fileType,"&title=").concat(Xe.title,"&model=").concat(l,"&officeServer=").concat(i.a.OFFICE_SERVER,"&disabledDownload=").concat(!!Y)}),g==="html"&&m.a.createElement("iframe",{src:c+"&disposition=inline"}),g==="pdf"&&m.a.createElement("iframe",{src:"".concat(at,"/js/pdfview/index.html?url=").concat(c,"&disabledDownload=").concat(!!Y)}),g==="image"&&m.a.createElement("img",{src:"".concat(((B=c)===null||B===void 0?void 0:B.indexOf("http://"))>-1||((C=c)===null||C===void 0?void 0:C.indexOf("https://"))>-1||(d=c)!==null&&d!==void 0&&d.startsWith("/api")?"":"data:image/png;base64,").concat(c)}),g==="other"&&m.a.createElement("div",null,m.a.createElement(G.a,{type:"primary",size:"large",onClick:q},m.a.createElement(s.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),g==="download"&&m.a.createElement(G.a,{type:"primary",size:"large",onClick:q},m.a.createElement(s.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},pmY6:function(ht,_e,j){"use strict";j.d(_e,"h",function(){return R}),j.d(_e,"g",function(){return v}),j.d(_e,"f",function(){return u}),j.d(_e,"e",function(){return s}),j.d(_e,"i",function(){return a}),j.d(_e,"b",function(){return A}),j.d(_e,"a",function(){return o}),j.d(_e,"d",function(){return i}),j.d(_e,"c",function(){return r});var se=j("C/vA"),G=j("JYp7");const D=!1;let V=null;function F(t){V=t}if(D){const t="__is_disposable_tracked__";F(new class{trackDisposable(E){const _=new Error("Potentially leaked disposable").stack;setTimeout(()=>{E[t]||console.log(_)},3e3)}setParent(E,_){if(E&&E!==o.None)try{E[t]=!0}catch(y){}}markAsDisposed(E){if(E&&E!==o.None)try{E[t]=!0}catch(_){}}markAsSingleton(E){}})}function O(t){return V==null||V.trackDisposable(t),t}function X(t){V==null||V.markAsDisposed(t)}function P(t,E){V==null||V.setParent(t,E)}function e(t,E){if(!V)return;for(const _ of t)V.setParent(_,E)}function R(t){return V==null||V.markAsSingleton(t),t}class m extends Error{constructor(t){super(`Encountered errors while disposing of store. Errors: [${t.join(", ")}]`);this.errors=t}}function v(t){return typeof t.dispose=="function"&&t.dispose.length===0}function u(t){if(G.a.is(t)){let E=[];for(const _ of t)if(_)try{_.dispose()}catch(y){E.push(y)}if(E.length===1)throw E[0];if(E.length>1)throw new m(E);return Array.isArray(t)?[]:t}else if(t)return t.dispose(),t}function s(...t){const E=a(()=>u(t));return e(t,E),E}function a(t){const E=O({dispose:Object(se.a)(()=>{X(E),t()})});return E}class A{constructor(){this._toDispose=new Set,this._isDisposed=!1,O(this)}dispose(){if(this._isDisposed)return;X(this),this._isDisposed=!0,this.clear()}clear(){try{u(this._toDispose.values())}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return P(t,this),this._isDisposed?A.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}}A.DISABLE_DISPOSED_WARNING=!1;class o{constructor(){this._store=new A,O(this),P(this._store,this)}dispose(){X(this),this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}}o.None=Object.freeze({dispose(){}});class i{constructor(){this._isDisposed=!1,O(this)}get value(){return this._isDisposed?void 0:this._value}set value(t){var E;if(this._isDisposed||t===this._value)return;(E=this._value)===null||E===void 0||E.dispose(),t&&P(t,this),this._value=t}clear(){this.value=void 0}dispose(){var t;this._isDisposed=!0,X(this),(t=this._value)===null||t===void 0||t.dispose(),this._value=void 0}clearAndLeak(){const t=this._value;return this._value=void 0,t&&P(t,null),t}}class r{constructor(t){this.object=t}dispose(){}}},psGv:function(ht,_e,j){var se,G;(function(){var D;(function(){"use strict";var X=[,,function(m){function v(a){this.__parent=a,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}v.prototype.clone_empty=function(){var a=new v(this.__parent);return a.set_indent(this.__indent_count,this.__alignment_count),a},v.prototype.item=function(a){return a<0?this.__items[this.__items.length+a]:this.__items[a]},v.prototype.has_match=function(a){for(var A=this.__items.length-1;A>=0;A--)if(this.__items[A].match(a))return!0;return!1},v.prototype.set_indent=function(a,A){this.is_empty()&&(this.__indent_count=a||0,this.__alignment_count=A||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},v.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},v.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},v.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var a=this.__parent.current_line;return a.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),a.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),a.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,a.__items[0]===" "&&(a.__items.splice(0,1),a.__character_count-=1),!0}return!1},v.prototype.is_empty=function(){return this.__items.length===0},v.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},v.prototype.push=function(a){this.__items.push(a);var A=a.lastIndexOf(` +`)}]},i=j("5VLF"),r=j.n(i),t={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},E=function(Y,ne){return ne.map(function(me){return{label:me,kind:Y.languages.CompletionItemKind.Keyword,insertText:me}})},_=function(Y){return Object.keys(t.tables).map(function(ne){return{label:ne,kind:Y.languages.CompletionItemKind.Variable,insertText:ne}})},y=function(Y,ne){var me=t.tables[Y];return me?me.map(function(ge){return{label:ge,kind:ne.languages.CompletionItemKind.Field,insertText:ge}}):[]};function B(U,Y,ne,me,ge){var Oe=Y.getWordUntilPosition(ne),Se={startLineNumber:ne.lineNumber,endLineNumber:ne.lineNumber,startColumn:Oe.startColumn,endColumn:Oe.endColumn},Be=me.map(function(Ne){return{label:Ne,kind:U.languages.CompletionItemKind.Keyword,insertText:Ne,insertTextRules:U.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}});return ge.map(function(Ne){Be.push(Object(se.a)(Object(se.a)({},Ne),{},{range:Se}))}),Be}var C=function(U){t.languages.map(function(ge){return U.languages.registerDocumentFormattingEditProvider(ge,{provideDocumentFormattingEdits:function(Se,Be,Ne){return Object(m.a)(u.a.mark(function ke(){var Ce;return u.a.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Ce=r()(Se.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1}),Xe.abrupt("return",[{range:Se.getFullModelRange(),text:Ce}]);case 2:case"end":return Xe.stop()}},ke)}))()}}),ge});var Y=A.quickKey.map(function(ge){return{label:ge.label,kind:U.languages.CompletionItemKind.Method,insertText:ge.content,insertTextRules:U.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),ne=o.quickKey.map(function(ge){return{label:ge.label,kind:U.languages.CompletionItemKind.Method,insertText:ge.content,insertTextRules:U.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),me=a.quickKey.map(function(ge){return{label:ge.label,kind:U.languages.CompletionItemKind.Method,insertText:ge.content,insertTextRules:U.languages.CompletionItemInsertTextRule.InsertAsSnippet}});U.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Oe,Se){var Be=Oe.getWordUntilPosition(Se),Ne={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Be.startColumn,endColumn:Be.endColumn},ke=Oe.getLineContent(Se.lineNumber).substring(Be.startColumn-2,Be.endColumn);return{suggestions:[].concat(Object(G.a)(A.keywords.map(function(Ce){return{label:Ce,kind:U.languages.CompletionItemKind.Function,documentation:Ce,insertText:Ce,insertTextRules:U.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ne}})),Object(G.a)(A.quickKey.map(function(Ce){return{label:Ce.label,kind:U.languages.CompletionItemKind.Function,documentation:Ce.content,insertText:ke.startsWith("#")?Ce.content.replace(/#/,""):Ce.content,insertTextRules:U.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ne}})))}}}),U.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Oe,Se){var Be=Oe.getWordUntilPosition(Se),Ne={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Be.startColumn,endColumn:Be.endColumn};return{suggestions:Object(G.a)(s.keywords.map(function(ke){return{label:ke,kind:U.languages.CompletionItemKind.Function,documentation:ke,insertText:ke,insertTextRules:U.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ne}}))}}}),U.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Oe,Se){var Be=Oe.getWordUntilPosition(Se),Ne={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Be.startColumn,endColumn:Be.endColumn},ke=Oe.getLineContent(Se.lineNumber).substring(Be.startColumn-2,Be.endColumn);return{suggestions:[].concat(Object(G.a)(a.keywords.map(function(Ce){return{label:Ce,kind:U.languages.CompletionItemKind.Function,documentation:Ce,insertText:Ce,insertTextRules:U.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ne}})),Object(G.a)(a.quickKey.map(function(Ce){return{label:Ce.label,kind:U.languages.CompletionItemKind.Function,documentation:Ce.content,insertText:ke.startsWith("#")?Ce.content.replace(/#/,""):Ce.content,insertTextRules:U.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ne}})))}}}),U.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Oe,Se){var Be=Oe.getWordUntilPosition(Se),Ne={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Be.startColumn,endColumn:Be.endColumn},ke=Oe.getLineContent(Se.lineNumber).substring(Be.startColumn-2,Be.endColumn);return{suggestions:[].concat(Object(G.a)(o.keywords.map(function(Ce){return{label:Ce,kind:U.languages.CompletionItemKind.Function,documentation:Ce,insertText:Ce,insertTextRules:U.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ne}})),Object(G.a)(o.quickKey.map(function(Ce){return{label:Ce.label,kind:U.languages.CompletionItemKind.Function,documentation:Ce.content,insertText:ke.startsWith("#")?Ce.content.replace(/#/,""):Ce.content,insertTextRules:U.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ne}})))}}})},d="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",n=j("fjLI"),l=j("LvDl"),c=j("+ua5");function b(U){return/^\d+$/.test(U)?"".concat(U,"px"):U}function g(){}var h=!1,L={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function N(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Y=U;if(Array.isArray(U)){for(var ne=0;ne0||yr.target.offsetWidth>0)&&Fe.current.instance.layout()}}catch(br){Nt.e(br)}finally{Nt.f()}}),At.observe(Le.current)),At}function qe(){V.b.warn(decodeURIComponent(d))}var ft=function(){var gt=Fe.current.instance;if(Oe!=null&>&&pe){var Nt=gt.getModel();Nt&&Oe!==Nt.getValue()&&(h=!0,Nt.setValue(Oe),gt.layout(),h=!1)}};Object(P.useEffect)(function(){ue.current&&clearTimeout(ue.current),ue.current=setTimeout(function(){ft()},500)},[Oe,pe,Fe.current]),Object(P.useEffect)(function(){if(xe&&Fe.current&&Fe.current.instance){var At=Fe.current.instance;At.changeViewZones(function(Nt){var ir=document.createElement("div");ir.style.padding="10px 20px",ir.style.width="calc(100% - 20px)",ir.className="my-error-line-wrp",ir.innerHTML=Ke,Nt.addZone({afterLineNumber:xe||11,heightInLines:3,domNode:ir})});var gt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};At.addOverlayWidget(gt),At.revealPositionInCenter({lineNumber:20,column:1})}},[xe,Fe.current,pe]);function ut(){var At=Fe.current.instance;if(At){var gt=At.getSelection(),Nt=Fe.current.pastePos||{},ir=new T.Range(Nt.startLineNumber||gt.endLineNumber,Nt.startColumn||gt.endColumn,Nt.endLineNumber||gt.endLineNumber,Nt.endColumn||gt.endColumn);setTimeout(function(){At.executeEdits("",[{range:ir,text:""}])},300)}}function st(At){(window.navigator.platform.match("Mac")?At.metaKey:At.ctrlKey)&&At.keyCode==83&&(At.preventDefault(),re())}var Lt=function(){if(k&&Fe.current.instance){var gt=Fe.current.instance.getContentHeight();ct(gt0||Qe.target.offsetWidth>0)&&k.layout()}}catch(ze){he.e(ze)}finally{he.f()}}),$.observe(Ce.current)),$}Object(P.useEffect)(function(){Ce.current&&Promise.all([j.e(16),j.e(28)]).then(j.t.bind(null,"M/lh",7)).then(function(k){T=k;var $=T.editor.createDiffEditor(Ce.current,Object(se.a)(Object(se.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},ke),{},{wordWrap:!0}));at($);var q=je($);return function(){$.dispose();var he=$.getModel();he&&he.dispose(),q.unobserve(Ce.current)}})},[]),Object(P.useEffect)(function(){lt&<.setModel({original:T.editor.createModel(Oe,Be),modified:T.editor.createModel(Se,Be)})},[Oe,Se,Be,lt]);var rt=b(ne),re=b(ge),J={width:rt,height:re};return e.a.createElement("div",{className:"my-diff-editor",ref:Ce,style:J})}},bT9E:function(ht,_e,j){"use strict";j.d(_e,"a",function(){return G});var se=j("VTBJ");function G(D,V){var F=Object(se.a)({},D);return Array.isArray(V)&&V.forEach(function(O){delete F[O]}),F}},biw7:function(ht,_e,j){"use strict";var se=j("q1tI"),G=j.n(se),D=se.createContext(null);_e.a=D},crp1:function(ht,_e,j){"use strict";j.d(_e,"b",function(){return Ot}),j.d(_e,"a",function(){return Mt});var se={},G=function(ae,oe,fe,Te,Ye){var et=se[oe]||(se[oe]=URL.createObjectURL(new Blob([ae],{type:"text/javascript"}))),Q=new Worker(et);return Q.onerror=function(p){return Ye(p.error,null)},Q.onmessage=function(p){return Ye(null,p.data)},Q.postMessage(fe,Te),Q},D=Uint8Array,V=Uint16Array,F=Uint32Array,O=new D([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),X=new D([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),P=new D([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),e=function(ae,oe){for(var fe=new V(31),Te=0;Te<31;++Te)fe[Te]=oe+=1<>>1|(o&21845)<<1;i=(i&52428)>>>2|(i&13107)<<2,i=(i&61680)>>>4|(i&3855)<<4,A[o]=((i&65280)>>>8|(i&255)<<8)>>>1}for(var r=function(ae,oe,fe){for(var Te=ae.length,Ye=0,et=new V(oe);Ye>>w]=H}else for(p=new V(Te),Ye=0;Ye>>15-ae[Ye];return p},t=new D(288),o=0;o<144;++o)t[o]=8;for(var o=144;o<256;++o)t[o]=9;for(var o=256;o<280;++o)t[o]=7;for(var o=280;o<288;++o)t[o]=8;for(var E=new D(32),o=0;o<32;++o)E[o]=5;var _=r(t,9,0),y=r(t,9,1),B=r(E,5,0),C=r(E,5,1),d=function(ae){for(var oe=ae[0],fe=1;feoe&&(oe=ae[fe]);return oe},n=function(ae,oe,fe){var Te=oe/8>>0;return(ae[Te]|ae[Te+1]<<8)>>>(oe&7)&fe},l=function(ae,oe){var fe=oe/8>>0;return(ae[fe]|ae[fe+1]<<8|ae[fe+2]<<16)>>>(oe&7)},c=function(ae){return(ae/8>>0)+(ae&7&&1)},b=function(ae,oe,fe){(oe==null||oe<0)&&(oe=0),(fe==null||fe>ae.length)&&(fe=ae.length);var Te=new(ae instanceof V?V:ae instanceof F?F:D)(fe-oe);return Te.set(ae.subarray(oe,fe)),Te},g=function(ae,oe,fe){var Te=ae.length,Ye=!oe||fe,et=!fe||fe.i;fe||(fe={}),oe||(oe=new D(Te*3));var Q=function(Zt){var xr=oe.length;if(Zt>xr){var qt=new D(Math.max(xr*2,Zt));qt.set(oe),oe=qt}},p=fe.f||0,w=fe.p||0,H=fe.b||0,Z=fe.l,K=fe.d,ye=fe.m,He=fe.n,it=Te*8;do{if(!Z){fe.f=p=n(ae,w,1);var ot=n(ae,w+1,3);if(w+=3,ot)if(ot==1)Z=y,K=C,ye=9,He=5;else if(ot==2){var Tt=n(ae,w,31)+257,Pt=n(ae,w+10,15)+4,ur=Tt+n(ae,w+5,31)+1;w+=14;for(var Gt=new D(ur),ar=new D(19),kt=0;ktit)break;for(var $t=r(ar,Tr,1),kt=0;kt>>4;if(Ve<16)Gt[kt++]=Ve;else{var Qt=0,Vt=0;for(Ve==16?(Vt=3+n(ae,w,3),w+=2,Qt=Gt[kt-1]):Ve==17?(Vt=3+n(ae,w,7),w+=3):Ve==18&&(Vt=11+n(ae,w,127),w+=7);Vt--;)Gt[kt++]=Qt}}var Dt=Gt.subarray(0,Tt),jt=Gt.subarray(Tt);ye=d(Dt),He=d(jt),Z=r(Dt,ye,1),K=r(jt,He,1)}else throw"invalid block type";else{var Ve=c(w)+4,_t=ae[Ve-4]|ae[Ve-3]<<8,vt=Ve+_t;if(vt>Te){if(et)throw"unexpected EOF";break}Ye&&Q(H+_t),oe.set(ae.subarray(Ve,vt),H),fe.b=H+=_t,fe.p=w=vt*8;continue}if(w>it)throw"unexpected EOF"}Ye&&Q(H+131072);for(var Kt=(1<>>4;if(w+=Qt&15,w>it)throw"unexpected EOF";if(!Qt)throw"invalid length/literal";if(sr<256)oe[H++]=sr;else if(sr==256){Z=null;break}else{var rr=sr-254;if(sr>264){var kt=sr-257,Ut=O[kt];rr=n(ae,w,(1<>>4;if(!Wt)throw"invalid distance";w+=Wt&15;var jt=s[Ft];if(Ft>3){var Ut=X[Ft];jt+=l(ae,w)&(1<it)throw"unexpected EOF";Ye&&Q(H+131072);for(var tr=H+rr;H>0;ae[Te]|=fe,ae[Te+1]|=fe>>>8},L=function(ae,oe,fe){fe<<=oe&7;var Te=oe/8>>0;ae[Te]|=fe,ae[Te+1]|=fe>>>8,ae[Te+2]|=fe>>>16},N=function(ae,oe){for(var fe=[],Te=0;Teye&&(ye=et[Te].s);var He=new V(ye+1),it=T(fe[Z-1],He,0);if(it>oe){var Te=0,ot=0,Ve=it-oe,_t=1<oe)ot+=_t-(1<>>=Ve;ot>0;){var Tt=et[Te].s;He[Tt]=0&&ot;--Te){var Pt=et[Te].s;He[Pt]==oe&&(--He[Pt],++ot)}it=oe}return[new D(He),it]},T=function(ae,oe,fe){return ae.s==-1?Math.max(T(ae.l,oe,fe+1),T(ae.r,oe,fe+1)):oe[ae.s]=fe},M=function(ae){for(var oe=ae.length;oe&&!ae[--oe];);for(var fe=new V(++oe),Te=0,Ye=ae[0],et=1,Q=function(w){fe[Te++]=w},p=1;p<=oe;++p)if(ae[p]==Ye&&p!=oe)++et;else{if(!Ye&&et>2){for(;et>138;et-=138)Q(32754);et>2&&(Q(et>10?et-11<<5|28690:et-3<<5|12305),et=0)}else if(et>3){for(Q(Ye),--et;et>6;et-=6)Q(8304);et>2&&(Q(et-3<<5|8208),et=0)}for(;et--;)Q(Ye);et=1,Ye=ae[p]}return[fe.subarray(0,Te),oe]},W=function(ae,oe){for(var fe=0,Te=0;Te>>8,ae[Ye+2]=ae[Ye]^255,ae[Ye+3]=ae[Ye+1]^255;for(var et=0;et4&&!mr[P[De-1]];--De);var Qt=H+5<<3,Vt=W(Ye,t)+W(et,E)+Q,Dt=W(Ye,ye)+W(et,ot)+Q+14+3*De+W(ar,mr)+(2*ar[16]+3*ar[17]+7*ar[18]);if(Qt<=Vt&&Qt<=Dt)return U(oe,Z,ae.subarray(w,w+H));var jt,Kt,Ar,zt;if(h(oe,Z,1+(Dt15&&(h(oe,Z,Wt[kt]>>>5&127),Z+=Wt[kt]>>>12)}}else jt=_,Kt=t,Ar=B,zt=E;for(var kt=0;kt255){var Ft=Te[kt]>>>18&31;L(oe,Z,jt[Ft+257]),Z+=Kt[Ft+257],Ft>7&&(h(oe,Z,Te[kt]>>>23&31),Z+=O[Ft]);var tr=Te[kt]&31;L(oe,Z,Ar[tr]),Z+=zt[tr],tr>3&&(L(oe,Z,Te[kt]>>>5&8191),Z+=X[tr])}else L(oe,Z,jt[Te[kt]]),Z+=Kt[Te[kt]];return L(oe,Z,jt[256]),Z+Kt[256]},ne=new F([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),me=new D(0),ge=function(ae,oe,fe,Te,Ye,et){var Q=ae.length,p=new D(Te+Q+5*(1+Math.floor(Q/7e3))+Ye),w=p.subarray(Te,p.length-Ye),H=0;if(!oe||Q<8)for(var Z=0;Z<=Q;Z+=65535){var K=Z+65535;K>>13,it=ye&8191,ot=(1<7e3||mr>24576)&&jt>423){H=Y(ae,w,0,ur,Gt,ar,Tr,mr,De,Z-De,H),mr=kt=Tr=0,De=Z;for(var Kt=0;Kt<286;++Kt)Gt[Kt]=0;for(var Kt=0;Kt<30;++Kt)ar[Kt]=0}var Ar=2,zt=0,sr=it,rr=Vt-Dt&32767;if(jt>2&&Qt==Pt(Z-rr))for(var Ut=Math.min(He,jt)-1,Wt=Math.min(32767,Z),Ft=Math.min(258,jt);rr<=Wt&&--sr&&Vt!=Dt;){if(ae[Z+Ar]==ae[Z+Ar-rr]){for(var tr=0;trAr){if(Ar=tr,zt=rr,tr>Ut)break;for(var Zt=Math.min(rr,tr-2),xr=0,Kt=0;Ktxr&&(xr=gr,Dt=qt)}}}Vt=Dt,Dt=Ve[Vt],rr+=Vt-Dt+32768&32767}if(zt){ur[mr++]=268435456|v[Ar]<<18|a[zt];var Kr=v[Ar]&31,Pr=a[zt]&31;Tr+=O[Kr]+X[Pr],++Gt[257+Kr],++ar[Pr],$t=Z+Ar,++kt}else ur[mr++]=ae[Z],++Gt[ae[Z]]}}H=Y(ae,w,et,ur,Gt,ar,Tr,mr,De,Z-De,H),et||(H=U(w,H,me))}return b(p,0,Te+c(H)+Ye)},Oe=function(){for(var ae=new F(256),oe=0;oe<256;++oe){for(var fe=oe,Te=9;--Te;)fe=(fe&1&&3988292384)^fe>>>1;ae[oe]=fe}return ae}(),Se=function(){var ae=4294967295;return{p:function(oe){for(var fe=ae,Te=0;Te>>8;ae=fe},d:function(){return ae^4294967295}}},Be=function(){var ae=1,oe=0;return{p:function(fe){for(var Te=ae,Ye=oe,et=fe.length,Q=0;Q!=et;){for(var p=Math.min(Q+5552,et);Q>>8<<16|(oe&255)<<8|oe>>>8)+((ae&255)<<23)*2}}},Ne=function(ae,oe,fe,Te,Ye){return ge(ae,oe.level==null?6:oe.level,oe.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(ae.length)))*1.5):12+oe.mem,fe,Te,!Ye)},ke=function(ae,oe){var fe={};for(var Te in ae)fe[Te]=ae[Te];for(var Te in oe)fe[Te]=oe[Te];return fe},Ce=function(ae,oe,fe){for(var Te=ae(),Ye=ae.toString(),et=Ye.slice(Ye.indexOf("[")+1,Ye.lastIndexOf("]")).replace(/ /g,"").split(","),Q=0;Q>>=8},nt=function(ae,oe){var fe=oe.filename;if(ae[0]=31,ae[1]=139,ae[2]=8,ae[8]=oe.level<2?4:oe.level==9?2:0,ae[9]=3,oe.mtime!=0&&$e(ae,4,Math.floor(new Date(oe.mtime||Date.now())/1e3)),fe){ae[3]=8;for(var Te=0;Te<=fe.length;++Te)ae[Te+10]=fe.charCodeAt(Te)}},dt=function(ae){if(ae[0]!=31||ae[1]!=139||ae[2]!=8)throw"invalid gzip data";var oe=ae[3],fe=10;oe&4&&(fe+=ae[10]|(ae[11]<<8)+2);for(var Te=(oe>>3&1)+(oe>>4&1);Te>0;Te-=!ae[fe++]);return fe+(oe&2)},xe=function(ae){var oe=ae.length;return(ae[oe-4]|ae[oe-3]<<8|ae[oe-2]<<16)+2*(ae[oe-1]<<23)},Ue=function(ae){return 10+(ae.filename&&ae.filename.length+1||0)},Ke=function(ae,oe){var fe=oe.level,Te=fe==0?0:fe<6?1:fe==9?3:2;ae[0]=120,ae[1]=Te<<6|(Te?32-2*Te:1)},We=function(ae){if((ae[0]&15)!=8||ae[0]>>>4>7||(ae[0]<<8|ae[1])%31)throw"invalid zlib data";if(ae[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function Le(ae,oe){return!oe&&typeof ae=="function"&&(oe=ae,ae={}),this.ondata=oe,ae}var Fe=function(){function ae(oe,fe){!fe&&typeof oe=="function"&&(fe=oe,oe={}),this.ondata=fe,this.o=oe||{}}return ae.prototype.p=function(oe,fe){this.ondata(Ne(oe,this.o,0,0,!fe),fe)},ae.prototype.push=function(oe,fe){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=fe,this.p(oe,fe||!1)},ae}(),we=function(){function ae(oe,fe){Qe([je,function(){return[de,Fe]}],this,Le.call(this,oe,fe),function(Te){var Ye=new Fe(Te.data);onmessage=de(Ye)},6)}return ae}();function ue(ae,oe,fe){if(fe||(fe=oe,oe={}),typeof fe!="function")throw"no callback";return he(ae,oe,[je],function(Te){return $(ce(Te.data[0],Te.data[1]))},0,fe)}function ce(ae,oe){return oe===void 0&&(oe={}),Ne(ae,oe,0,0)}var te=function(){function ae(oe){this.s={},this.p=new D(0),this.ondata=oe}return ae.prototype.e=function(oe){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var fe=this.p.length,Te=new D(fe+oe.length);Te.set(this.p),Te.set(oe,fe),this.p=Te},ae.prototype.c=function(oe){this.d=this.s.i=oe||!1;var fe=this.s.b,Te=g(this.p,this.o,this.s);this.ondata(b(Te,fe,this.s.b),this.d),this.o=b(Te,this.s.b-32768),this.s.b=this.o.length,this.p=b(this.p,this.s.p/8>>0),this.s.p&=7},ae.prototype.push=function(oe,fe){this.e(oe),this.c(fe)},ae}(),ie=function(){function ae(oe){this.ondata=oe,Qe([at,function(){return[de,te]}],this,0,function(){var fe=new te;onmessage=de(fe)},7)}return ae}();function le(ae,oe,fe){if(fe||(fe=oe,oe={}),typeof fe!="function")throw"no callback";return he(ae,oe,[at],function(Te){return $(pe(Te.data[0],q(Te.data[1])))},1,fe)}function pe(ae,oe){return g(ae,oe)}var Ie=function(){function ae(oe,fe){this.c=Se(),this.l=0,this.v=1,Fe.call(this,oe,fe)}return ae.prototype.push=function(oe,fe){Fe.prototype.push.call(this,oe,fe)},ae.prototype.p=function(oe,fe){this.c.p(oe),this.l+=oe.length;var Te=Ne(oe,this.o,this.v&&Ue(this.o),fe&&8,!fe);this.v&&(nt(Te,this.o),this.v=0),fe&&($e(Te,Te.length-8,this.c.d()),$e(Te,Te.length-4,this.l)),this.ondata(Te,fe)},ae}(),Pe=function(){function ae(oe,fe){Qe([je,rt,function(){return[de,Fe,Ie]}],this,Le.call(this,oe,fe),function(Te){var Ye=new Ie(Te.data);onmessage=de(Ye)},8)}return ae}();function qe(ae,oe,fe){if(fe||(fe=oe,oe={}),typeof fe!="function")throw"no callback";return he(ae,oe,[je,rt,function(){return[ft]}],function(Te){return $(ft(Te.data[0],Te.data[1]))},2,fe)}function ft(ae,oe){oe===void 0&&(oe={});var fe=Se(),Te=ae.length;fe.p(ae);var Ye=Ne(ae,oe,Ue(oe),8),et=Ye.length;return nt(Ye,oe),$e(Ye,et-8,fe.d()),$e(Ye,et-4,Te),Ye}var ut=function(){function ae(oe){this.v=1,te.call(this,oe)}return ae.prototype.push=function(oe,fe){if(te.prototype.e.call(this,oe),this.v){var Te=dt(this.p);if(Te>=this.p.length&&!fe)return;this.p=this.p.subarray(Te),this.v=0}if(fe){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}te.prototype.c.call(this,fe)},ae}(),st=function(){function ae(oe){this.ondata=oe,Qe([at,re,function(){return[de,te,ut]}],this,0,function(){var fe=new ut;onmessage=de(fe)},9)}return ae}();function Lt(ae,oe,fe){if(fe||(fe=oe,oe={}),typeof fe!="function")throw"no callback";return he(ae,oe,[at,re,function(){return[mt]}],function(Te){return $(mt(Te.data[0]))},3,fe)}function mt(ae,oe){return g(ae.subarray(dt(ae),-8),oe||new D(xe(ae)))}var tt=function(){function ae(oe,fe){this.c=Be(),this.v=1,Fe.call(this,oe,fe)}return ae.prototype.push=function(oe,fe){Fe.prototype.push.call(this,oe,fe)},ae.prototype.p=function(oe,fe){this.c.p(oe);var Te=Ne(oe,this.o,this.v&&2,fe&&4,!fe);this.v&&(Ke(Te,this.o),this.v=0),fe&&$e(Te,Te.length-4,this.c.d()),this.ondata(Te,fe)},ae}(),er=function(){function ae(oe,fe){Qe([je,J,function(){return[de,Fe,tt]}],this,Le.call(this,oe,fe),function(Te){var Ye=new tt(Te.data);onmessage=de(Ye)},10)}return ae}();function Jt(ae,oe,fe){if(fe||(fe=oe,oe={}),typeof fe!="function")throw"no callback";return he(ae,oe,[je,J,function(){return[Ot]}],function(Te){return $(Ot(Te.data[0],Te.data[1]))},4,fe)}function Ot(ae,oe){oe===void 0&&(oe={});var fe=Be();fe.p(ae);var Te=Ne(ae,oe,2,4);return Ke(Te,oe),$e(Te,Te.length-4,fe.d()),Te}var yt=function(){function ae(oe){this.v=1,te.call(this,oe)}return ae.prototype.push=function(oe,fe){if(te.prototype.e.call(this,oe),this.v){if(this.p.length<2&&!fe)return;this.p=this.p.subarray(2),this.v=0}if(fe){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}te.prototype.c.call(this,fe)},ae}(),Et=function(){function ae(oe){this.ondata=oe,Qe([at,k,function(){return[de,te,yt]}],this,0,function(){var fe=new yt;onmessage=de(fe)},11)}return ae}();function wt(ae,oe,fe){if(fe||(fe=oe,oe={}),typeof fe!="function")throw"no callback";return he(ae,oe,[at,k,function(){return[Mt]}],function(Te){return $(Mt(Te.data[0],q(Te.data[1])))},5,fe)}function Mt(ae,oe){return g((We(ae),ae.subarray(2,-4)),oe)}var ct=function(){function ae(oe){this.G=ut,this.I=te,this.Z=yt,this.ondata=oe}return ae.prototype.push=function(oe,fe){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(oe,fe);else{if(this.p&&this.p.length){var Te=new D(this.p.length+oe.length);Te.set(this.p),Te.set(oe,this.p.length)}else this.p=oe;if(this.p.length>2){var Ye=this,et=function(){Ye.ondata.apply(Ye,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(et):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(et):new this.Z(et),this.s.push(this.p,fe),this.p=null}}},ae}(),lr=function(){function ae(oe){this.G=st,this.I=ie,this.Z=Et,this.ondata=oe}return ae.prototype.push=function(oe,fe){ct.prototype.push.call(this,oe,fe)},ae}();function At(ae,oe,fe){if(fe||(fe=oe,oe={}),typeof fe!="function")throw"no callback";return ae[0]==31&&ae[1]==139&&ae[2]==8?Lt(ae,oe,fe):(ae[0]&15)!=8||ae[0]>>4>7||(ae[0]<<8|ae[1])%31?le(ae,oe,fe):wt(ae,oe,fe)}function gt(ae,oe){return ae[0]==31&&ae[1]==139&&ae[2]==8?mt(ae,oe):(ae[0]&15)!=8||ae[0]>>4>7||(ae[0]<<8|ae[1])%31?pe(ae,oe):Mt(ae,oe)}var Nt=function(ae,oe,fe,Te){for(var Ye in ae){var et=ae[Ye],Q=oe+Ye;et instanceof D?fe[Q]=[et,Te]:Array.isArray(et)?fe[Q]=[et[0],ke(Te,et[1])]:Nt(et,Q+"/",fe,Te)}};function ir(ae,oe){var fe=ae.length;if(!oe&&typeof TextEncoder!="undefined")return new TextEncoder().encode(ae);for(var Te=new D(ae.length+(ae.length>>>1)),Ye=0,et=function(H){Te[Ye++]=H},Q=0;QTe.length){var p=new D(Ye+8+(fe-Q<<1));p.set(Te),Te=p}var w=ae.charCodeAt(Q);w<128||oe?et(w):w<2048?(et(192|w>>>6),et(128|w&63)):w>55295&&w<57344?(w=65536+(w&1023<<10)|ae.charCodeAt(++Q)&1023,et(240|w>>>18),et(128|w>>>12&63),et(128|w>>>6&63),et(128|w&63)):(et(224|w>>>12),et(128|w>>>6&63),et(128|w&63))}return b(Te,0,Ye)}function yr(ae,oe){var fe="";if(!oe&&typeof TextDecoder!="undefined")return new TextDecoder().decode(ae);for(var Te=0;Te>10,56320|Ye&1023))}return fe}var br=function(ae,oe){return oe+30+ze(ae,oe+26)+ze(ae,oe+28)},Rr=function(ae,oe,fe){var Te=ze(ae,oe+28),Ye=yr(ae.subarray(oe+46,oe+46+Te),!(ze(ae,oe+8)&2048)),et=oe+46+Te,Q=fe?Dr(ae,et):[Ge(ae,oe+20),Ge(ae,oe+24),Ge(ae,oe+42)],p=Q[0],w=Q[1],H=Q[2];return[ze(ae,oe+10),p,w,Ye,et+ze(ae,oe+30)+ze(ae,oe+32),H]},Dr=function(ae,oe){for(;ze(ae,oe)!=1;oe+=4+ze(ae,oe+2));return[Ge(ae,oe+12),Ge(ae,oe+4),Ge(ae,oe+20)]},Ht=function(ae,oe,fe,Te,Ye,et,Q,p,w,H){var Z=et.length,K=Te.length;$e(ae,oe,w!=null?33639248:67324752),oe+=4,w!=null&&(ae[oe]=20,oe+=2),ae[oe]=20,oe+=2,ae[oe++]=H==8&&(p.level==1?6:p.level<6?4:p.level==9?2:0),ae[oe++]=Q&&8,ae[oe]=H,oe+=2;var ye=new Date(p.mtime||Date.now()),He=ye.getFullYear()-1980;if(He<0||He>119)throw"date not in range 1980-2099";$e(ae,oe,(He<<24)*2|ye.getMonth()+1<<21|ye.getDate()<<16|ye.getHours()<<11|ye.getMinutes()<<5|ye.getSeconds()>>>1),oe+=4,$e(ae,oe,fe),$e(ae,oe+4,K),$e(ae,oe+8,Ye),$e(ae,oe+12,Z),oe+=16,w!=null&&($e(ae,oe+=10,w),oe+=4),ae.set(et,oe),oe+=Z,w==null&&ae.set(Te,oe)},pr=function(ae,oe,fe,Te,Ye){$e(ae,oe,101010256),$e(ae,oe+8,fe),$e(ae,oe+10,fe),$e(ae,oe+12,Te),$e(ae,oe+16,Ye)};function Lr(ae,oe,fe){if(fe||(fe=oe,oe={}),typeof fe!="function")throw"no callback";var Te={};Nt(ae,"",Te,oe);var Ye=Object.keys(Te),et=Ye.length,Q=0,p=0,w=et,H=new Array(et),Z=[],K=function(){for(var ot=0;ot65535&&Tr("filename too long",null),!kt)Tr(null,vt);else if(ur<16e4)try{Tr(null,ce(vt,Tt))}catch(mr){Tr(mr,null)}else Z.push(ue(vt,Tt,Tr))},it=0;it65535)throw"filename too long";var He=Z?ce(w,H):w,it=He.length,ot=Se();ot.p(w),Te.push({t:Z,d:He,m:w.length,c:ot.d(),u:Q.length!=ye,n:K,o:Ye,p:H}),Ye+=30+ye+it,et+=76+2*ye+it}for(var Ve=new D(et+22),_t=Ye,vt=et-Ye,Tt=0;Tt65558){oe("invalid zip file",null);return}var Q=ze(ae,et+8);Q||oe(null,{});var p=Q,w=Ge(ae,et+16),H=w==4294967295;if(H){if(et=Ge(ae,et-12),Ge(ae,et)!=101075792)throw"invalid zip file";p=Q=Ge(ae,et+32),w=Ge(ae,et+48)}for(var Z=function(ye){var He=Rr(ae,w,H),it=He[0],ot=He[1],Ve=He[2],_t=He[3],vt=He[4],Tt=He[5],Pt=br(ae,Tt);w=vt;var ur=function(ar,kt){ar?(Te(),oe(ar,null)):(Ye[_t]=kt,--Q||oe(null,Ye))};if(!it)ur(null,b(ae,Pt,Pt+ot));else if(it==8){var Gt=ae.subarray(Pt,Pt+ot);if(ot<32e4)try{ur(null,pe(Gt,new D(Ve)))}catch(ar){ur(ar,null)}else fe.push(le(Gt,{size:Ve},ur))}else ur("unknown compression type "+it,null)},K=0;K65558)throw"invalid zip file";var Te=ze(ae,fe+8);if(!Te)return{};var Ye=Ge(ae,fe+16),et=Ye==4294967295;if(et){if(fe=Ge(ae,fe-12),Ge(ae,fe)!=101075792)throw"invalid zip file";Te=Ge(ae,fe+32),Ye=Ge(ae,fe+48)}for(var Q=0;Q1?me-1:0),Oe=1;Oe1?W-1:0),Y=1;Y=0)return parseInt(M.slice(M.indexOf("e-")+2),10);var W=0;return M.indexOf(".")>=0&&(W=M.length-M.indexOf(".")-1),W},h.getInputDisplayValue=function(T){var M=T||h.state,W=M.focused,U=M.inputValue,Y=M.value,ne;W?ne=U:ne=h.toPrecisionAsStep(Y),ne==null&&(ne="");var me=h.formatWrapper(ne);return y(h.props.decimalSeparator)&&(me=me.toString().replace(".",h.props.decimalSeparator)),me},h.recordCursorPosition=function(){try{h.cursorStart=h.input.selectionStart,h.cursorEnd=h.input.selectionEnd,h.currentValue=h.input.value,h.cursorBefore=h.input.value.substring(0,h.cursorStart),h.cursorAfter=h.input.value.substring(h.cursorEnd)}catch(T){}},h.restoreByAfter=function(T){if(T===void 0)return!1;var M=h.input.value,W=M.lastIndexOf(T);if(W===-1)return!1;var U=h.cursorBefore.length;return h.lastKeyCode===v.a.DELETE&&h.cursorBefore.charAt(U-1)===T[0]?(h.fixCaret(U,U),!0):W+T.length===M.length?(h.fixCaret(W,W),!0):!1},h.partRestoreByAfter=function(T){return T===void 0?!1:Array.prototype.some.call(T,function(M,W){var U=T.substring(W);return h.restoreByAfter(U)})},h.isNotCompleteNumber=function(T){return isNaN(T)||T===""||T===null||T&&T.toString().indexOf(".")===T.toString().length-1},h.stop=function(){h.autoStepTimer&&clearTimeout(h.autoStepTimer)},h.down=function(T,M,W){h.pressingUpOrDown=!0,h.step("down",T,M,W)},h.up=function(T,M,W){h.pressingUpOrDown=!0,h.step("up",T,M,W)},h.saveInput=function(T){h.input=T};var L=g.value;L===void 0&&(L=g.defaultValue),h.state={focused:g.autoFocus};var N=h.getValidValue(h.toNumber(L));return h.state=s(s({},h.state),{},{inputValue:h.toPrecisionAsStep(N),value:N}),h}return Object(V.a)(b,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(h){var L=this.props,N=L.value,T=L.onChange,M=L.max,W=L.min,U=this.state.focused;if(h){if(!B(h.value,N)||!B(h.max,M)||!B(h.min,W)){var Y=U?N:this.getValidValue(N),ne;this.pressingUpOrDown?ne=Y:this.inputting?ne=this.rawInput:ne=this.toPrecisionAsStep(Y),this.setState({value:Y,inputValue:ne})}var me="value"in this.props?N:this.state.value;"max"in this.props&&h.max!==M&&typeof me=="number"&&me>M&&T&&T(M),"min"in this.props&&h.min!==W&&typeof me=="number"&&me1&&arguments[1]!==void 0?arguments[1]:this.props.min,N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,T=parseFloat(h);return isNaN(T)?h:(TN&&(T=N),T)}},{key:"setValue",value:function(h,L){var N=this.props.precision,T=this.isNotCompleteNumber(parseFloat(h))?null:parseFloat(h),M=this.state.value,W=M===void 0?null:M,U=this.state.inputValue,Y=U===void 0?null:U,ne=typeof T=="number"?T.toFixed(N):"".concat(T),me=T!==W||ne!=="".concat(Y);return"value"in this.props?(Y=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:Y},L)):this.setState({value:T,inputValue:this.toPrecisionAsStep(h)},L),me&&this.props.onChange(T),T}},{key:"getMaxPrecision",value:function(h){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,N=this.props,T=N.precision,M=N.step;if(y(T))return T;var W=this.getPrecision(L),U=this.getPrecision(M),Y=this.getPrecision(h);return h?Math.max(Y,W+U):W+U}},{key:"getPrecisionFactor",value:function(h){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,N=this.getMaxPrecision(h,L);return Math.pow(10,N)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(h){return this.props.formatter?this.props.formatter(h):h}},{key:"toPrecisionAsStep",value:function(h){if(this.isNotCompleteNumber(h)||h==="")return h;var L=Math.abs(this.getMaxPrecision(h));return isNaN(L)?h.toString():Number(h).toFixed(L)}},{key:"toNumber",value:function(h){var L=this.props.precision,N=this.state.focused,T=h&&h.length>16&&N;return this.isNotCompleteNumber(h)||T?h:y(L)?Math.round(h*Math.pow(10,L))/Math.pow(10,L):Number(h)}},{key:"upStep",value:function(h,L){var N=this.props.step,T=this.getPrecisionFactor(h,L),M=Math.abs(this.getMaxPrecision(h,L)),W=((T*h+T*N*L)/T).toFixed(M);return this.toNumber(W)}},{key:"downStep",value:function(h,L){var N=this.props.step,T=this.getPrecisionFactor(h,L),M=Math.abs(this.getMaxPrecision(h,L)),W=((T*h-T*N*L)/T).toFixed(M);return this.toNumber(W)}},{key:"step",value:function(h,L){var N=this,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,M=arguments.length>3?arguments[3]:void 0;this.stop(),L&&(L.persist(),L.preventDefault());var W=this.props;if(W.disabled)return;var U=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(U))return;var Y=this["".concat(h,"Step")](U,T),ne=Y>W.max||YW.max?Y=W.max:Y=ge),Fe=(nt||nt===0)&&(isNaN(nt)||Number(nt)<=Oe),we=Le||T||M,ue=Fe||T||M,ce=m()("".concat(N,"-handler"),"".concat(N,"-handler-up"),Object(G.a)({},"".concat(N,"-handler-up-disabled"),we)),te=m()("".concat(N,"-handler"),"".concat(N,"-handler-down"),Object(G.a)({},"".concat(N,"-handler-down-disabled"),ue)),ie=W?{onTouchStart:we?o:this.up,onTouchEnd:this.stop}:{onMouseDown:we?o:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},le=W?{onTouchStart:ue?o:this.down,onTouchEnd:this.stop}:{onMouseDown:ue?o:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return e.a.createElement("div",{className:xe,style:Se,title:Be,onMouseEnter:Ne,onMouseLeave:ke,onMouseOver:Ce,onMouseOut:ve,onFocus:function(){return null},onBlur:function(){return null}},e.a.createElement("div",{className:"".concat(N,"-handler-wrap")},e.a.createElement("span",Object.assign({unselectable:"on"},ie,{role:"button","aria-label":"Increase Value","aria-disabled":we,className:ce}),Y||e.a.createElement("span",{unselectable:"on",className:"".concat(N,"-handler-up-inner"),onClick:i})),e.a.createElement("span",Object.assign({unselectable:"on"},le,{role:"button","aria-label":"Decrease Value","aria-disabled":ue,className:te}),ne||e.a.createElement("span",{unselectable:"on",className:"".concat(N,"-handler-down-inner"),onClick:i}))),e.a.createElement("div",{className:"".concat(N,"-input-wrap")},e.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Oe,"aria-valuemax":ge,"aria-valuenow":nt,required:Xe,type:je,placeholder:rt,onPaste:Qe,onClick:lt,onMouseUp:this.onMouseUp,className:"".concat(N,"-input"),tabIndex:at,autoComplete:U,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Ke?this.onKeyDown:o,onKeyUp:Ke?this.onKeyUp:o,autoFocus:he,maxLength:q,readOnly:M,disabled:T,max:ge,min:Oe,step:$,name:de,title:Be,id:re,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(We),pattern:k,inputMode:J,onInput:ze},Ue))))}}]),b}(e.a.Component);C.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:_,min:-_,step:1,style:{},onChange:o,onKeyDown:o,onPressEnter:o,onFocus:o,onBlur:o,parser:r,required:!1,autoComplete:"off"};var d=C,n=_e.a=d},fjLI:function(ht,_e,j){"use strict";j.d(_e,"f",function(){return u}),j.d(_e,"b",function(){return s}),j.d(_e,"a",function(){return a}),j.d(_e,"d",function(){return A}),j.d(_e,"e",function(){return o}),j.d(_e,"c",function(){return i});var se=j("8HAY"),G=j("Vhoy"),D=j("MI8n"),V=j("JYp7"),F=j("pmY6"),O=j("24hK"),X=j("nnTU"),P=j("T8No"),e=j("Cg/j"),R=j("t9D7"),m=function(r,t,E,_){var y=arguments.length,B=y<3?t:_===null?_=Object.getOwnPropertyDescriptor(t,E):_,C;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")B=Reflect.decorate(r,t,E,_);else for(var d=r.length-1;d>=0;d--)(C=r[d])&&(B=(y<3?C(B):y>3?C(t,E,B):C(t,E))||B);return y>3&&B&&Object.defineProperty(t,E,B),B},v=function(r,t){return function(E,_){t(E,_,r)}};function u(r){return r.command!==void 0}class s{constructor(r){this.id=s._idPool++,this._debugName=r}}s._idPool=0,s.CommandPalette=new s("CommandPalette"),s.EditorContext=new s("EditorContext"),s.SimpleEditorContext=new s("SimpleEditorContext"),s.EditorContextCopy=new s("EditorContextCopy"),s.EditorContextPeek=new s("EditorContextPeek"),s.MenubarEditMenu=new s("MenubarEditMenu"),s.MenubarCopy=new s("MenubarCopy"),s.MenubarGoMenu=new s("MenubarGoMenu"),s.MenubarSelectionMenu=new s("MenubarSelectionMenu"),s.InlineCompletionsActions=new s("InlineCompletionsActions");const a=Object(e.c)("menuService"),A=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new D.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:r=>r===s.CommandPalette}}addCommand(r){return this.addCommands(V.a.single(r))}addCommands(r){for(const t of r)this._commands.set(t.id,t);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(F.i)(()=>{let t=!1;for(const E of r)t=this._commands.delete(E.id)||t;t&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(r){return this._commands.get(r)}getCommands(){const r=new Map;return this._commands.forEach((t,E)=>r.set(E,t)),r}appendMenuItem(r,t){return this.appendMenuItems(V.a.single({id:r,item:t}))}appendMenuItems(r){const t=new Set,E=new O.a;for(const{id:_,item:y}of r){let B=this._menuItems.get(_);B||(B=new O.a,this._menuItems.set(_,B)),E.push(B.push(y)),t.add(_)}return this._onDidChangeMenu.fire(t),Object(F.i)(()=>{if(E.size>0){for(let _ of E)_();this._onDidChangeMenu.fire(t),E.clear()}})}getMenuItems(r){let t;return this._menuItems.has(r)?t=[...this._menuItems.get(r)]:t=[],r===s.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(r){const t=new Set;for(const E of r)u(E)&&(t.add(E.command.id),E.alt&&t.add(E.alt.id));this._commands.forEach((E,_)=>{t.has(_)||r.push({command:E})})}};class o extends se.e{constructor(r,t,E,_){super(`submenuitem.${r.submenu.id}`,typeof r.title=="string"?r.title:r.title.value,[],"submenu");this.item=r,this._menuService=t,this._contextKeyService=E,this._options=_}get actions(){const r=[],t=this._menuService.createMenu(this.item.submenu,this._contextKeyService),E=t.getActions(this._options);t.dispose();for(const[,_]of E)_.length>0&&(r.push(..._),r.push(new se.d));return r.length&&r.pop(),r}}let i=class r{constructor(t,E,_,y,B){var C,d;if(this._commandService=B,this.id=t.id,this.label=(_==null?void 0:_.renderShortTitle)&&t.shortTitle?typeof t.shortTitle=="string"?t.shortTitle:t.shortTitle.value:typeof t.title=="string"?t.title:t.title.value,this.tooltip=(d=typeof t.tooltip=="string"?t.tooltip:(C=t.tooltip)===null||C===void 0?void 0:C.value)!==null&&d!==void 0?d:"",this.enabled=!t.precondition||y.contextMatchesRules(t.precondition),this.checked=void 0,t.toggled){const n=t.toggled.condition?t.toggled:{condition:t.toggled};this.checked=y.contextMatchesRules(n.condition),this.checked&&n.tooltip&&(this.tooltip=typeof n.tooltip=="string"?n.tooltip:n.tooltip.value),n.title&&(this.label=typeof n.title=="string"?n.title:n.title.value)}this.item=t,this.alt=E?new r(E,void 0,_,y,B):void 0,this._options=_,R.d.isThemeIcon(t.icon)&&(this.class=G.a.asClassName(t.icon))}dispose(){}run(...t){var E,_;let y=[];return((E=this._options)===null||E===void 0?void 0:E.arg)&&(y=[...y,this._options.arg]),((_=this._options)===null||_===void 0?void 0:_.shouldForwardArgs)&&(y=[...y,...t]),this._commandService.executeCommand(this.id,...y)}};i=m([v(3,P.b),v(4,X.b)],i)},fyJ8:function(ht,_e,j){"use strict";var se=j("rePB"),G=j("VTBJ"),D=j("Ff2n"),V=j("U8pU"),F=j("q1tI"),O=j.n(F),X=j("TSYQ"),P=j.n(X),e=j("c+Xe"),R=j("sR1s");function m(A){return A&&Object(V.a)(A)==="object"&&!Array.isArray(A)&&!F.isValidElement(A)}function v(A){return typeof A=="string"?!0:Object(e.c)(A)}function u(A,o){var i,r=A.prefixCls,t=A.className,E=A.record,_=A.index,y=A.dataIndex,B=A.render,C=A.children,d=A.component,n=d===void 0?"td":d,l=A.colSpan,c=A.rowSpan,b=A.fixLeft,g=A.fixRight,h=A.firstFixLeft,L=A.lastFixLeft,N=A.firstFixRight,T=A.lastFixRight,M=A.appendNode,W=A.additionalProps,U=W===void 0?{}:W,Y=A.ellipsis,ne=A.align,me=A.rowType,ge=A.isSticky,Oe="".concat(r,"-cell"),Se,Be;if(C)Be=C;else{var Ne=Object(R.b)(E,y);if(Be=Ne,B){var ke=B(Ne,E,_);m(ke)?(Be=ke.children,Se=ke.props):Be=ke}}Object(V.a)(Be)==="object"&&!Array.isArray(Be)&&!F.isValidElement(Be)&&(Be=null),Y&&(L||N)&&(Be=F.createElement("span",{className:"".concat(Oe,"-content")},Be));var Ce=Se||{},ve=Ce.colSpan,Xe=Ce.rowSpan,lt=Ce.style,at=Ce.className,je=Object(D.a)(Ce,["colSpan","rowSpan","style","className"]),rt=ve!==void 0?ve:l,re=Xe!==void 0?Xe:c;if(rt===0||re===0)return null;var J={},k=typeof b=="number",$=typeof g=="number";k&&(J.position="sticky",J.left=b),$&&(J.position="sticky",J.right=g);var q={};ne&&(q.textAlign=ne);var he,de=Y===!0?{showTitle:!0}:Y;de&&(de.showTitle||me==="header")&&(typeof Be=="string"||typeof Be=="number"?he=Be.toString():F.isValidElement(Be)&&typeof Be.props.children=="string"&&(he=Be.props.children));var Qe=Object(G.a)(Object(G.a)(Object(G.a)({title:he},je),U),{},{colSpan:rt&&rt!==1?rt:null,rowSpan:re&&re!==1?re:null,className:P()(Oe,t,(i={},Object(se.a)(i,"".concat(Oe,"-fix-left"),k),Object(se.a)(i,"".concat(Oe,"-fix-left-first"),h),Object(se.a)(i,"".concat(Oe,"-fix-left-last"),L),Object(se.a)(i,"".concat(Oe,"-fix-right"),$),Object(se.a)(i,"".concat(Oe,"-fix-right-first"),N),Object(se.a)(i,"".concat(Oe,"-fix-right-last"),T),Object(se.a)(i,"".concat(Oe,"-ellipsis"),Y),Object(se.a)(i,"".concat(Oe,"-with-append"),M),Object(se.a)(i,"".concat(Oe,"-fix-sticky"),(k||$)&&ge),i),U.className,at),style:Object(G.a)(Object(G.a)(Object(G.a)(Object(G.a)({},U.style),q),J),lt),ref:v(n)?o:null});return F.createElement(n,Object.assign({},Qe),M,Be)}var s=F.forwardRef(u);s.displayName="Cell";var a=F.memo(s,function(A,o){return o.shouldCellUpdate?!o.shouldCellUpdate(o.record,A.record):!1});_e.a=a},hQp1:function(ht,_e,j){"use strict";j.d(_e,"a",function(){return G});var se;(function(D){D.FirstPage="firstPage",D.PrevPage="prevPage",D.NextPage="nextPage"})(se||(se={}));var G;(function(D){D[D.Single=0]="Single",D[D.Multiple=1]="Multiple",D[D.Judge=2]="Judge",D[D.Fill=3]="Fill",D[D.Subjective=4]="Subjective",D[D.Shixun=5]="Shixun",D[D.Program=6]="Program",D[D.Combine=7]="Combine"})(G||(G={}))},hW8S:function(ht,_e,j){"use strict";j.d(_e,"a",function(){return V}),j.d(_e,"c",function(){return F}),j.d(_e,"b",function(){return O});var se=j("VTBJ"),G=j("Ff2n"),D=j("Kwbf"),V="RC_TABLE_INTERNAL_COL_DEFINE";function F(X){var P=X.expandable,e=Object(G.a)(X,["expandable"]);return"expandable"in X?Object(se.a)(Object(se.a)({},e),P):e}function O(X){return Object.keys(X).reduce(function(P,e){return(e.substr(0,5)==="data-"||e.substr(0,5)==="aria-")&&(P[e]=X[e]),P},{})}},ic2d:function(ht,_e,j){"use strict";j.d(_e,"a",function(){return V});var se=j("FWmy"),G=j("746U");class D{constructor(){this.data=new Map}add(F,O){se.a(G.l(F)),se.a(G.k(O)),se.a(!this.data.has(F),"There is already an extension with this id"),this.data.set(F,O)}as(F){return this.data.get(F)||null}}const V=new D},k5F3:function(ht,_e,j){"use strict";var se=j("g9YV"),G=j("wCAj"),D=j("9og8"),V=j("oBTY"),F=j("k1fw"),O=j("tJVT"),X=j("WmNS"),P=j.n(X),e=j("q1tI"),R=j.n(e),m=j("Ty5D"),v=j("9kvl"),u=j("uJ6K"),s=j.n(u),a=j("V0Rq"),A=j("9Bee"),o=j("1vsH"),i=function(t){var E,_,y,B,C=t.isPreview,d=C===void 0?!1:C,n=t.isExportBlank,l=n===void 0?!1:n,c=t.activeTabs,b=t.exercise,g=t.globalSetting,h=t.loading,L=t.user,N=t.dispatch,T=Object(m.i)(),M=L.userInfo,W=Object(e.useState)(),U=Object(O.a)(W,2),Y=U[0],ne=U[1],me=Object(e.useState)(),ge=Object(O.a)(me,2),Oe=ge[0],Se=ge[1],Be=Object(e.useRef)(null),Ne=Object(e.useState)(21),ke=Object(O.a)(Ne,2),Ce=ke[0],ve=ke[1];Object(e.useEffect)(function(){Object(o.P)(c)||c==="2"&&Xe()},[T.userId,T.coursesId,T.exerciseId,T.categoryId,c]),Object(e.useEffect)(function(){Be.current&&ve(Be.current.clientHeight)},[Be.current]),Object(e.useEffect)(function(){var rt;if((rt=b.exerciseExportHeadData)!==null&&rt!==void 0&&rt.title){var re=b.exerciseExportHeadData;ne(Object(F.a)({},re||{}));var J=re||{},k=J.table,$,q;(k!=null&&k.total_singles_scores||k!=null&&k.total_doubles_scores||k!=null&&k.total_nulls_scores||k!=null&&k.total_judges_scores||k!=null&&k.total_pros_scores||k!=null&&k.total_shixuns_scores||k!=null&&k.total_mains_scores||k!=null&&k.total_combination_scores)&&($=Number(k==null?void 0:k.total_singles_scores)+Number(k==null?void 0:k.total_doubles_scores)+Number(k==null?void 0:k.total_nulls_scores)+Number(k==null?void 0:k.total_judges_scores)+Number(k==null?void 0:k.total_pros_scores)+Number(k==null?void 0:k.total_shixuns_scores)+Number(k==null?void 0:k.total_mains_scores)+Number(k==null?void 0:k.total_combination_scores)),(k!=null&&k.singles_scores||k!=null&&k.doubles_scores||k!=null&&k.nulls_scores||k!=null&&k.judges_scores||k!=null&&k.pros_scores||k!=null&&k.shixuns_scores||k!=null&&k.mains_scores||k!=null&&k.combination_scores)&&(q=Number(k==null?void 0:k.singles_scores)+Number(k==null?void 0:k.doubles_scores)+Number(k==null?void 0:k.nulls_scores)+Number(k==null?void 0:k.judges_scores)+Number(k==null?void 0:k.pros_scores)+Number(k==null?void 0:k.shixuns_scores)+Number(k==null?void 0:k.mains_scores)+Number(k==null?void 0:k.combination_scores));var he=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:k==null?void 0:k.total_singles_scores,doubles_score:k==null?void 0:k.total_doubles_scores,nulls_score:k==null?void 0:k.total_nulls_scores,judges_score:k==null?void 0:k.total_judges_scores,pros_score:k==null?void 0:k.total_pros_scores,shixuns_score:k==null?void 0:k.total_shixuns_scores,mains_score:k==null?void 0:k.total_mains_scores,total_combination_scores:k==null?void 0:k.total_combination_scores,total_score:$},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:k==null?void 0:k.singles_scores,doubles_score:k==null?void 0:k.doubles_scores,nulls_score:k==null?void 0:k.nulls_scores,judges_score:k==null?void 0:k.judges_scores,pros_score:k==null?void 0:k.pros_scores,shixuns_score:k==null?void 0:k.shixuns_scores,mains_score:k==null?void 0:k.mains_scores,total_combination_scores:k==null?void 0:k.combination_scores,total_score:q},{key:"3",name:"\u8BC4\u5377\u4EBA"}],de=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:k==null?void 0:k.total_singles_scores,doubles_score:k==null?void 0:k.total_doubles_scores,nulls_score:k==null?void 0:k.total_nulls_scores,judges_score:k==null?void 0:k.total_judges_scores,pros_score:k==null?void 0:k.total_pros_scores,shixuns_score:k==null?void 0:k.total_shixuns_scores,mains_score:k==null?void 0:k.total_mains_scores,total_combination_scores:k==null?void 0:k.total_combination_scores,total_score:$},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}];Se(Object(V.a)(l?de:he))}},[b.exerciseExportHeadData]);var Xe=function(){var rt=Object(D.a)(P.a.mark(function re(){var J,k,$,q,he,de,Qe,ze;return P.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return J={id:T.exerciseId||T.categoryId,identify:(M==null?void 0:M.login)||null},$e.next=3,Object(a.v)(J);case 3:k=$e.sent,ne(k||{}),$=k||{},q=$.table,(q!=null&&q.total_singles_scores||q!=null&&q.total_doubles_scores||q!=null&&q.total_nulls_scores||q!=null&&q.total_judges_scores||q!=null&&q.total_pros_scores||q!=null&&q.total_shixuns_scores||q!=null&&q.total_mains_scores||q!=null&&q.total_combination_scores)&&(he=Number(q==null?void 0:q.total_singles_scores)+Number(q==null?void 0:q.total_doubles_scores)+Number(q==null?void 0:q.total_nulls_scores)+Number(q==null?void 0:q.total_judges_scores)+Number(q==null?void 0:q.total_pros_scores)+Number(q==null?void 0:q.total_shixuns_scores)+Number(q==null?void 0:q.total_mains_scores)+Number(q==null?void 0:q.total_combination_scores)),(q!=null&&q.singles_scores||q!=null&&q.doubles_scores||q!=null&&q.nulls_scores||q!=null&&q.judges_scores||q!=null&&q.pros_scores||q!=null&&q.shixuns_scores||q!=null&&q.mains_scores||q!=null&&q.combination_scores)&&(de=Number(q==null?void 0:q.singles_scores)+Number(q==null?void 0:q.doubles_scores)+Number(q==null?void 0:q.nulls_scores)+Number(q==null?void 0:q.judges_scores)+Number(q==null?void 0:q.pros_scores)+Number(q==null?void 0:q.shixuns_scores)+Number(q==null?void 0:q.mains_scores)+Number(q==null?void 0:q.combination_scores)),Qe=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:q==null?void 0:q.total_singles_scores,doubles_score:q==null?void 0:q.total_doubles_scores,nulls_score:q==null?void 0:q.total_nulls_scores,judges_score:q==null?void 0:q.total_judges_scores,pros_score:q==null?void 0:q.total_pros_scores,shixuns_score:q==null?void 0:q.total_shixuns_scores,mains_score:q==null?void 0:q.total_mains_scores,total_combination_scores:q==null?void 0:q.total_combination_scores,total_score:he},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:q==null?void 0:q.singles_scores,doubles_score:q==null?void 0:q.doubles_scores,nulls_score:q==null?void 0:q.nulls_scores,judges_score:q==null?void 0:q.judges_scores,pros_score:q==null?void 0:q.pros_scores,shixuns_score:q==null?void 0:q.shixuns_scores,mains_score:q==null?void 0:q.mains_scores,total_combination_scores:q==null?void 0:q.combination_scores,total_score:de},{key:"3",name:"\u8BC4\u5377\u4EBA"}],ze=[{key:"1",name:"\u5E94\u5F97\u5206"},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}],Se(l?ze:Qe);case 11:case"end":return $e.stop()}},re)}));return function(){return rt.apply(this,arguments)}}(),lt=[{width:"10%",title:"\u9898\u578B",align:"center",dataIndex:"name",render:function(re){return R.a.createElement("a",null,re)}},{width:"10%",title:"\u5355\u9009\u9898",align:"center",dataIndex:"singles_score",render:function(re){return R.a.createElement("a",null,re==="0.0"?0:re)}},{width:"10%",title:"\u591A\u9009\u9898",align:"center",dataIndex:"doubles_score",render:function(re){return R.a.createElement("a",null,re==="0.0"?0:re)}},{width:"10%",title:"\u586B\u7A7A\u9898",align:"center",dataIndex:"nulls_score",render:function(re){return R.a.createElement("a",null,re==="0.0"?0:re)}},{width:140,title:"\u5224\u65AD\u9898",align:"center",dataIndex:"judges_score",render:function(re){return R.a.createElement("a",null,re==="0.0"?0:re)}},{width:"10%",title:"\u7F16\u7A0B\u9898",align:"center",dataIndex:"pros_score",render:function(re){return R.a.createElement("a",null,re==="0.0"?0:re)}},{width:"10%",title:"\u5B9E\u8BAD\u9898",align:"center",dataIndex:"shixuns_score",render:function(re){return R.a.createElement("a",null,re==="0.0"?0:re)}},{width:"10%",title:"\u7B80\u7B54\u9898",align:"center",dataIndex:"mains_score",render:function(re){return R.a.createElement("a",null,re==="0.0"?0:re)}},{width:"10%",title:"\u7EC4\u5408\u9898",align:"center",dataIndex:"total_combination_scores",render:function(re){return R.a.createElement("a",null,re==="0.0"?0:re)}},{width:"10%",title:"\u603B\u5206",align:"center",dataIndex:"total_score",render:function(re){return R.a.createElement("a",null,re==="0.0"?0:re)}}],at=Y||{},je=at.exercise_header;return R.a.createElement(R.a.Fragment,null,((je==null?void 0:je.show_user)||(je==null?void 0:je.show_no)||(je==null?void 0:je.show_group))&&R.a.createElement("section",{className:s.a.glassSeal},(je==null?void 0:je.show_user)&&R.a.createElement("span",null,"\u59D3\u540D\uFF1A",R.a.createElement("span",null,Y==null?void 0:Y.user)),(je==null?void 0:je.show_no)&&R.a.createElement("span",null,"\u5B66\u53F7\uFF1A",R.a.createElement("span",null,Y==null?void 0:Y.student_id)),(je==null?void 0:je.show_group)&&R.a.createElement("span",null,"\u4E13\u4E1A\u73ED\u7EA7\uFF1A",R.a.createElement("span",null,Y==null?void 0:Y.group_name))),R.a.createElement("section",{className:"".concat(s.a.wrap," ").concat(d?"pl20":""," ")},(Y==null?void 0:Y.photo_url)&&R.a.createElement("img",{className:s.a.img,src:Y==null?void 0:Y.photo_url}),(je==null?void 0:je.show_title)&&R.a.createElement("p",{className:"font16 tc c-grey-333"},R.a.createElement("strong",null,Y==null?void 0:Y.title)),(je==null?void 0:je.show_body)&&((b==null||((E=b.exerciseExportHeadData)===null||E===void 0)?void 0:E.exercise_description)||(b==null||((_=b.commonHeader)===null||_===void 0)?void 0:_.exercise_description))&&R.a.createElement("span",{ref:Be,style:{justifyContent:Ce===21?"center":"left",wordBreak:"break-all",display:"flex",textAlign:"left"},className:"tc c-grey-333"},"\u8BD5\u5377\u987B\u77E5\uFF1A".concat((b==null||((y=b.exerciseExportHeadData)===null||y===void 0)?void 0:y.exercise_description)||(b==null||((B=b.commonHeader)===null||B===void 0)?void 0:B.exercise_description))),(je==null?void 0:je.show_info)&&R.a.createElement("p",{className:"tc c-grey-666"},"\u5171:\u3010",Y==null?void 0:Y.large_counts,"\u5927\u9898\u3011\u3010",Y==null?void 0:Y.total_count,"\u5C0F\u9898\u3011\u3010 \u6EE1\u5206",Y==null?void 0:Y.score,"\u5206\u3011 \u8003\u8BD5\u65F6\u95F4\uFF1A\u3010",(Y==null?void 0:Y.time)>-1?"".concat(Y==null?void 0:Y.time,"\u5206\u949F"):"\u4E0D\u9650","\u3011"),(je==null?void 0:je.show_desc)&&R.a.createElement("div",{className:"mt10"},R.a.createElement("p",{className:"font16"},"\u8003\u8BD5\u8BF4\u660E\uFF1A"),R.a.createElement(A.a,{value:Y==null?void 0:Y.description})),(je==null?void 0:je.show_table)&&R.a.createElement("div",{className:"mt10"},R.a.createElement(G.a,{className:s.a.table,columns:lt,dataSource:Object(V.a)(Oe||[]),bordered:!0,pagination:!1}))))};_e.a=Object(v.a)(function(r){var t=r.exercise,E=r.loading,_=r.user,y=r.globalSetting;return{exercise:t,globalSetting:y,user:_,loading:E.effects}})(i)},"kVK+":function(ht,_e){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */_e.read=function(j,se,G,D,V){var F,O,X=V*8-D-1,P=(1<>1,R=-7,m=G?V-1:0,v=G?-1:1,u=j[se+m];for(m+=v,F=u&(1<<-R)-1,u>>=-R,R+=X;R>0;F=F*256+j[se+m],m+=v,R-=8);for(O=F&(1<<-R)-1,F>>=-R,R+=D;R>0;O=O*256+j[se+m],m+=v,R-=8);if(F===0)F=1-e;else{if(F===P)return O?NaN:(u?-1:1)*Infinity;O=O+Math.pow(2,D),F=F-e}return(u?-1:1)*O*Math.pow(2,F-D)},_e.write=function(j,se,G,D,V,F){var O,X,P,e=F*8-V-1,R=(1<>1,v=V===23?Math.pow(2,-24)-Math.pow(2,-77):0,u=D?0:F-1,s=D?1:-1,a=se<0||se===0&&1/se<0?1:0;for(se=Math.abs(se),isNaN(se)||se===Infinity?(X=isNaN(se)?1:0,O=R):(O=Math.floor(Math.log(se)/Math.LN2),se*(P=Math.pow(2,-O))<1&&(O--,P*=2),O+m>=1?se+=v/P:se+=v*Math.pow(2,1-m),se*P>=2&&(O++,P/=2),O+m>=R?(X=0,O=R):O+m>=1?(X=(se*P-1)*Math.pow(2,V),O=O+m):(X=se*Math.pow(2,m-1)*Math.pow(2,V),O=0));V>=8;j[G+u]=X&255,u+=s,X/=256,V-=8);for(O=O<0;j[G+u]=O&255,u+=s,O/=256,e-=8);j[G+u-s]|=a*128}},mrIW:function(ht,_e,j){"use strict";j.r(_e);var se=j("+L6B"),G=j("2/Rp"),D=j("sPJy"),V=j("bE4q"),F=j("oBTY"),O=j("/zsF"),X=j("PArb"),P=j("sRBo"),e=j("kaz8"),R=j("14J3"),m=j("BMrR"),v=j("jCWc"),u=j("kPKH"),s=j("7Kak"),a=j("9yH6"),A=j("2qtc"),o=j("kLXV"),i=j("k1fw"),r=j("9og8"),t=j("tJVT"),E=j("PpiC"),_=j("5NDa"),y=j("5rEg"),B=j("WmNS"),C=j.n(B),d=j("q1tI"),n=j.n(d),l=j("Ty5D"),c=j("55Ip"),b=j("9kvl"),g=j("xOOu"),h=j.n(g),L=j("jhfD"),N=j("dF/Y"),T=j("q5bB"),M=j.n(T),W=j("9Bee"),U=j("1vsH"),Y=j("cw1j"),ne=j("g9YV"),me=j("wCAj"),ge=j("giR+"),Oe=j("fyUT"),Se=j("miYZ"),Be=j("tsqr"),Ne=j("5Dmo"),ke=j("3S7+"),Ce=j("xKgJ"),ve=j("wd/R"),Xe=j.n(ve),lt=j("ZW9T"),at=j("tJYV"),je=j.n(at),rt=function(We){var Le,Fe,we,ue=We.item,ce=We.answerData,te=We.hasChangeScore,ie=te===void 0?!0:te,le=We.autoHeight,pe=We.saveChangeScore,Ie=pe===void 0?function(){}:pe,Pe=Object(d.useState)([]),qe=Object(t.a)(Pe,2),ft=qe[0],ut=qe[1],st=Object(d.useState)([]),Lt=Object(t.a)(st,2),mt=Lt[0],tt=Lt[1];Object(d.useEffect)(function(){var yt;if(!(ue!=null&&(yt=ue.shixun_details)!==null&&yt!==void 0&&yt.length))return;for(var Et=[],wt=[],Mt=0;Mt<(ue==null||((ct=ue.shixun_details)===null||ct===void 0)?void 0:ct.length);Mt++){for(var ct,lr,At,gt=0;gt<(ue==null?void 0:ue.shixun_details[Mt].stage_list.length);gt++){var Nt,ir,yr,br,Rr,Dr=ue==null?void 0:ue.shixun_details[Mt].stage_list[gt];Et.push(Object(i.a)(Object(i.a)({},Dr),{operation:ue==null||((Nt=ue.shixun_details)===null||Nt===void 0||((ir=Nt[Mt])===null||ir===void 0||((yr=ir.shixun_detail)===null||yr===void 0||((br=yr[0])===null||br===void 0))))?void 0:br.game_identifier,shixun_challenge_id:ue==null||((Rr=ue.shixun_details[Mt])===null||Rr===void 0)?void 0:Rr.shixun_challenge_id}))}if(ue!=null&&(lr=ue.shixun_details)!==null&&lr!==void 0&&(At=lr[Mt])!==null&&At!==void 0&&At.shixun_detail){var Ht,pr,Lr;wt.push(ue==null||((Ht=ue.shixun_details)===null||Ht===void 0||((pr=Ht[Mt])===null||pr===void 0||((Lr=pr.shixun_detail)===null||Lr===void 0)))?void 0:Lr[0])}}tt(wt),ut([].concat(Et))},[ue==null?void 0:ue.shixun_details]);var er=[{title:"\u5173\u5361",dataIndex:"position",key:"position",align:"center"},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",key:"name",align:"center",ellipsis:!0,width:260,render:function(Et){return n.a.createElement(ke.a,{title:Et},n.a.createElement("span",{className:"overflowHidden1",style:{maxWidth:"400px"},title:Et&&Et.length>25?Et:""},Et))}},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",key:"evaluate_count",align:"center",render:function(Et,wt){return n.a.createElement("span",null,wt.evaluate_count?wt.evaluate_count:n.a.createElement("span",{className:"color-grey-9"},"--"))}},{title:"\u5B8C\u6210\u65F6\u95F4",key:"finished_time",dataIndex:"finished_time",align:"center",render:function(Et,wt){var Mt=!1;return wt.finished_time&&ce!==null&&ce!==void 0&&ce.exercise&&ce!==null&&ce!==void 0&&ce.exercise_answer_user&&((ce==null?void 0:ce.exercise.time)===-1?Mt=Xe()(ce==null?void 0:ce.exercise.end_time).isBefore(wt.finished_time):Mt=Xe()(ce==null?void 0:ce.exercise_answer_user.start_at).add(ce==null?void 0:ce.exercise.time,"m").isBefore(wt.finished_time)),n.a.createElement("span",null,wt.finished_time||n.a.createElement("span",{className:"c-grey-999"},"--"),n.a.createElement("span",{className:"c-orange-ff9 "},Mt?"\uFF08\u5DF2\u8D85\u65F6\uFF09":""))}},{title:"\u8017\u65F6",dataIndex:"time_consuming",key:"time_consuming",align:"center",render:function(Et,wt){return n.a.createElement("span",null,wt.time_consuming||n.a.createElement("span",{className:"color-grey-9"},"--"))}},{title:"\u67E5\u770B\u7B54\u6848",dataIndex:"view_answer",key:"view_answer",align:"center",render:function(Et,wt){return n.a.createElement("span",null,wt.view_answer?"\u5DF2\u67E5\u770B":"\u672A\u67E5\u770B")}},{title:"\u5F97\u5206/\u6EE1\u5206",dataIndex:"user_score",key:"user_score",align:"center",render:function(Et,wt){return n.a.createElement("span",null,n.a.createElement("span",{className:"c-orange"},wt.user_score),"/",wt.game_score)}},ie&&{title:"\u8C03\u5206",dataIndex:"user_score",key:"user_score",align:"center",render:function(Et,wt,Mt){return n.a.createElement(Oe.a,{min:0,max:Number(wt.game_score),defaultValue:Et,onBlur:function(){var ct=Object(r.a)(C.a.mark(function lr(At){var gt;return C.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:if(!(At.target.value!=Et)){ir.next=6;break}return ir.next=3,Ie(Object(i.a)(Object(i.a)({},ue),{shixun_challenge_id:wt.shixun_challenge_id,shixunScore:At.target.value}));case 3:gt=ir.sent,console.log("res: ",gt),gt!=null&>.question_comments&&Be.b.success("\u5DF2\u4FEE\u6539\u5F53\u524D\u8BC4\u5206");case 6:case"end":return ir.stop()}},lr)}));return function(lr){return ct.apply(this,arguments)}}()})}}].filter(function(yt){return!!yt}),Jt=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"key",width:"127px",key:"key",align:"center",render:function(Et,wt){return n.a.createElement("span",null,wt.key)}},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"error_msg",key:"error_msg",align:"center",render:function(Et,wt){return n.a.createElement("span",null,wt.error_msg?wt.error_msg:"--")}},{title:"\u8BC4\u6D4B\u65F6\u95F4",dataIndex:"updated_at",key:"updated_at",align:"center",width:200,render:function(Et,wt){return n.a.createElement("span",null,wt.updated_at?wt.updated_at:"--")}}],Ot={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return n.a.createElement(n.a.Fragment,null,((ce==null||((Le=ce.exercise)===null||Le===void 0)?void 0:Le.student_commit_status)!==0||(ce==null||((Fe=ce.exercise)===null||Fe===void 0)?void 0:Fe.user_exercise_status)!==0)&&n.a.createElement("div",{className:"mt15"},n.a.createElement("p",{className:"font16 c-grey-666"},"\u9636\u6BB5\u6210\u7EE9"),!!(ft!=null&&ft.length)&&n.a.createElement(me.a,{columns:er,dataSource:ft,pagination:!1})),!!(mt!=null&&mt.length)&&n.a.createElement(n.a.Fragment,null,n.a.createElement("p",{className:"font16 c-grey-666 mt10"},"\u5B9E\u8BAD\u8BE6\u60C5"),mt==null?void 0:mt.map(function(yt,Et){var wt;return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"mt5"},n.a.createElement("span",{className:"font16 mr15"}," ","\u7B2C",yt.position,"\u5173"),n.a.createElement(c.a,{className:"current c-black font16",to:"/tasks/".concat(yt.game_identifier)},yt.name)),!!(yt!=null&&(wt=yt.outputs)!==null&&wt!==void 0&&wt.length)&&n.a.createElement(me.a,{bordered:!0,dataSource:yt.outputs.map(function(Mt){return{key:Mt.position,error_msg:Mt.output_detail,updated_at:Mt.updated_at}}),columns:Jt,pagination:!1}),(yt==null?void 0:yt.st)===0&&yt.passed_code&&n.a.createElement("div",{className:je.a.shixunWrp},n.a.createElement("h2",null,"\u6700\u540E\u4E00\u6B21\u901A\u5173\u7684\u4EE3\u7801\uFF08\u672A\u901A\u5173\u5219\u4E3A\u6700\u540E\u4E00\u6B21\u63D0\u4EA4\u8BC4\u6D4B\u7684\u4EE3\u7801\uFF09",n.a.createElement("span",{className:"c-light-black"},yt.path)),n.a.createElement(lt.b,{height:300,autoHeight:le,language:"python",theme:"default",value:yt.passed_code,options:Ot})))})),Object(Ce.s)()&&n.a.createElement(W.a,{className:"c-grey-999 mt20 mb20",value:ue==null?void 0:ue.question_title}),ue==null||((we=ue.shixun)===null||we===void 0)?void 0:we.map(function(yt,Et){return n.a.createElement("p",{className:"font16 c-grey-666 mb5"},n.a.createElement("span",{className:"mr20"},"\u7B2C",yt==null?void 0:yt.challenge_position,"\u5173 ",yt==null?void 0:yt.challenge_name),n.a.createElement("span",null,yt==null?void 0:yt.challenge_score,"\u5206"))}),n.a.createElement("div",{className:"mb15"}))},re=rt,J=j("J66h"),k=j("ZPm4"),$=j.n(k),q=function(We){var Le,Fe,we,ue,ce,te=We.item,ie=We.answerData,le=We.autoHeight,pe=Object(d.useState)([]),Ie=Object(t.a)(pe,2),Pe=Ie[0],qe=Ie[1];Object(d.useEffect)(function(){var st;if((te==null||((st=te.evaluate_codes)===null||st===void 0)?void 0:st.length)>0){var Lt;qe(te==null||((Lt=te.evaluate_codes)===null||Lt===void 0)?void 0:Lt.map(function(mt,tt){return{key:tt+1,error_msg:mt!=null&&mt.error_msg?J.Base64.decode(mt==null?void 0:mt.error_msg):"",created_at:mt.created_at}}))}else qe([{key:"--",error_msg:"--"}])},[te==null?void 0:te.evaluate_codes]);var ft=[{title:"\u8BC4\u6D4B\u5E8F\u53F7",dataIndex:"key",width:"127px",key:"key",align:"center",render:function(Lt,mt){return n.a.createElement("span",null,mt.key)}},{title:"\u8BC4\u6D4B\u65F6\u95F4",dataIndex:"created_at",key:"created_at",align:"center",width:200,render:function(Lt,mt){return n.a.createElement("span",null,mt.created_at?Xe()(mt.created_at).format("YYYY-MM-DD HH:mm"):"--")}},{title:"\u8BC4\u6D4B\u7ED3\u679C",dataIndex:"error_msg",key:"error_msg",align:"center",render:function(Lt,mt){var tt;return n.a.createElement("span",null,mt.error_msg?((tt=mt.error_msg)===null||tt===void 0?void 0:tt.length)>1e3?mt.error_msg.substring(0,1e3)+"...":mt.error_msg:"--")}}],ut={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"mt15 mb15"},n.a.createElement(W.a,{value:te==null?void 0:te.description})),(!!(ie!=null&&(Le=ie.exercise)!==null&&Le!==void 0&&Le.student_commit_status)&&(ie==null||((Fe=ie.exercise)===null||Fe===void 0)?void 0:Fe.student_commit_status)!==0||!!(ie!=null&&(we=ie.exercise)!==null&&we!==void 0&&we.user_exercise_status)&&(ie==null||((ue=ie.exercise)===null||ue===void 0)?void 0:ue.user_exercise_status)!==0)&&n.a.createElement(me.a,{className:"mt5",bordered:!0,dataSource:Pe,columns:ft,pagination:!1}),!!(te!=null&&(ce=te.user_answer)!==null&&ce!==void 0&&ce.length)&&(te==null?void 0:te.passed_code)&&n.a.createElement("aside",{className:$.a.shixunWrp},n.a.createElement("h3",null,"\u7B2C\u4E00\u6B21\u8BC4\u6D4B\u901A\u8FC7\u7684\u4EE3\u7801\uFF08\u672A\u901A\u5173\u5219\u4E3A\u6700\u540E\u4E00\u6B21\u63D0\u4EA4\u8BC4\u6D4B\u7684\u4EE3\u7801\uFF09"),n.a.createElement(lt.b,{style:{border:"1px solid #ccc"},height:300,language:"python",theme:"vs-light",value:te!=null&&te.passed_code?J.Base64.decode(te==null?void 0:te.passed_code):"",autoHeight:le,options:ut})))},he=q,de=j("k5F3"),Qe=j("1n7x"),ze=j.n(Qe),Ge=j("hQp1"),$e=30,nt=y.a.TextArea,dt=["\u5355\u9009\u9898","\u591A\u9009\u9898","\u5224\u65AD\u9898","\u586B\u7A7A\u9898","\u7B80\u7B54\u9898","\u5B9E\u8BAD\u9898","\u7F16\u7A0B\u9898"],xe=function(We){var Le,Fe,we,ue,ce,te,ie,le=We.exercise,pe=We.globalSetting,Ie=We.loading,Pe=We.user,qe=We.dispatch,ft=Object(E.a)(We,["exercise","globalSetting","loading","user","dispatch"]),ut=Object(l.i)(),st=Pe.userInfo,Lt=Object(d.useState)({}),mt=Object(t.a)(Lt,2),tt=mt[0],er=mt[1],Jt=Object(d.useRef)(),Ot=Object(d.useRef)(!1),yt=Object(d.useState)(!1),Et=Object(t.a)(yt,2),wt=Et[0],Mt=Et[1],ct=Object(d.useState)({}),lr=Object(t.a)(ct,2),At=lr[0],gt=lr[1],Nt=Object(d.useState)(new h.a),ir=Object(t.a)(Nt,2),yr=ir[0],br=ir[1],Rr=Object(d.useState)([]),Dr=Object(t.a)(Rr,2),Ht=Dr[0],pr=Dr[1],Lr=Object(d.useState)(!1),Cr=Object(t.a)(Lr,2),Qr=Cr[0],Ur=Cr[1],ae=Object(d.useState)(!1),oe=Object(t.a)(ae,2),fe=oe[0],Te=oe[1],Ye=Object(d.useState)(!1),et=Object(t.a)(Ye,2),Q=et[0],p=et[1],w=Object(d.useState)(!1),H=Object(t.a)(w,2),Z=H[0],K=H[1],ye=Object(d.useState)(!1),He=Object(t.a)(ye,2),it=He[0],ot=He[1];Object(d.useEffect)(function(){st!=null&&st.login&&Tt();try{pr(JSON.parse(localStorage.total_exercise_users))}catch($t){}},[ut.userId,ut.coursesId,ut.exerciseId,st]);var Ve=function(){document.querySelectorAll("canvas").forEach(function(De){(!De.clientWidth||!De.clientHeight)&&De.remove()})},_t=function(){document.body.scrollIntoView()},vt=function(De){var Qt,Vt,Dt,jt=De==null||((Qt=De.exercise_answer_user)===null||Qt===void 0)?void 0:Qt.user_id;if(De!=null&&(Vt=De.exercise)!==null&&Vt!==void 0&&Vt.question_random||De!=null&&(Dt=De.exercise)!==null&&Dt!==void 0&&Dt.choice_random){var Kt,Ar=1;De.exercise.question_random=De==null||((Kt=De.exercise_question_types)===null||Kt===void 0)?void 0:Kt.map(function(zt){var sr,rr;return De!=null&&(sr=De.exercise)!==null&&sr!==void 0&&sr.choice_random&&((zt.question_type===0||zt.question_type===1)&&zt.items.map(function(Ut){return Ut.question_choices=Object(U.U)(Ut.question_choices,jt),Ut}),zt.question_type===7&&zt.items.forEach(function(Ut){Ut.sub_exercise_questions.forEach(function(Wt){Wt.question_choices=Object(U.U)(Wt.question_choices,jt)})})),De!=null&&(rr=De.exercise)!==null&&rr!==void 0&&rr.question_random&&(zt.items=Object(U.U)(zt.items,jt)),zt.items.map(function(Ut){return Ut.question_num=Ar,Ar++,Ut}),zt})}},Tt=function(){var $t=Object(r.a)(C.a.mark(function De(){var Qt;return C.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:if(qe({type:"exercise/getExerciseExportHeadData",payload:{id:ut.exerciseId||ut.categoryId,identify:ut.userId||null}}),!ut.userId){Dt.next=9;break}return Dt.next=4,qe({type:"exercise/getReviewExercise",payload:{exerciseId:ut.exerciseId,login:ut.userId}});case 4:Qt=Dt.sent,vt(Qt),Ot.current=!1,Dt.next=13;break;case 9:return Dt.next=11,qe({type:"exercise/editExercise",payload:{coursesId:ut.coursesId,categoryId:ut.exerciseId}});case 11:Qt=Dt.sent,Ot.current=!0;case 13:gt(Object(i.a)({},Qt||{})),setTimeout(function(){var jt=1,Kt=document.getElementById("export-id-all"),Ar=860,zt=0},1500);case 15:case"end":return Dt.stop()}},De)}));return function(){return $t.apply(this,arguments)}}(),Pt=function(){yr.generateAsync({type:"blob"}).then(function(De){var Qt,Vt,Dt,jt=document.createElement("a");jt.href=window.URL.createObjectURL(De),jt.download=Object.keys(yr.files).length>1?At==null||((Qt=At.exercise)===null||Qt===void 0)?void 0:Qt.exercise_name:((le==null||((Vt=le.exerciseExportHeadData)===null||Vt===void 0)?void 0:Vt.user)||(At==null||((Dt=At.exercise)===null||Dt===void 0)?void 0:Dt.exercise_name))+".zip",document.body.appendChild(jt);var Kt=document.createEvent("MouseEvents");Kt.initEvent("click",!1,!1),jt.dispatchEvent(Kt),document.body.removeChild(jt),br(new h.a)}),Te(!1),K(!1),p(!1),Ur(!1)},ur=function(){var $t=Object(r.a)(C.a.mark(function De(Qt){var Vt,Dt,jt,Kt,Ar,zt,sr,rr,Ut,Wt,Ft,tr,Zt;return C.a.wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:return Zt=function(){return Zt=Object(r.a)(C.a.mark(function gr(){var Kr;return C.a.wrap(function(Nr){for(;;)switch(Nr.prev=Nr.next){case 0:return Dt++,Ot.current=!1,_t(),Nr.next=5,qe({type:"exercise/getExerciseExportHeadData",payload:{id:ut.exerciseId||ut.categoryId,identify:Ht[Dt-1].user_login}});case 5:return Nr.next=7,qe({type:"exercise/getReviewExercise",payload:{exerciseId:ut.exerciseId,login:Ht[Dt-1].user_login}});case 7:Kr=Nr.sent,vt(Kr),gt(Object(i.a)({},Kr||{})),setTimeout(Object(r.a)(C.a.mark(function fr(){var qr,Xt,Sr;return C.a.wrap(function($r){for(;;)switch($r.prev=$r.next){case 0:Ve(),qr=ze()(),Xt=C.a.mark(function un(Yr){return C.a.wrap(function(mn){for(;;)switch(mn.prev=mn.next){case 0:return mn.next=2,qr.set(rr).from(Kt[Yr]).toContainer().toCanvas().toPdf().get("pdf").then(function(){var Qn=Object(r.a)(C.a.mark(function Jr(cn){return C.a.wrap(function(gn){for(;;)switch(gn.prev=gn.next){case 0:if(!(Yr0)&&fe&&n.a.createElement(m.a,{style:{marginTop:14}},n.a.createElement("span",{className:"font16 "},"\u89E3\u6790\uFF1A"),n.a.createElement(W.a,{className:M.a.renderHtml,value:(Xt==null?void 0:Xt.analysis)||"\u6682\u65E0\u89E3\u6790"})))})),fe&&n.a.createElement("div",{style:{marginTop:10}},(De==null?void 0:De.question_type)<3&&(De==null?void 0:De.standard_answer_show)&&n.a.createElement("span",{className:"font16 "},"\u6B63\u786E\u7B54\u6848\uFF1A",De==null?void 0:De.standard_answer_show),!!(De!=null&&(Ut=De.standard_answer)!==null&&Ut!==void 0&&Ut.length)&&fe&&(De==null?void 0:De.question_type)===3&&n.a.createElement("div",null,De==null||((Wt=De.standard_answer)===null||Wt===void 0)?void 0:Wt.map(function(Xt,Sr){return n.a.createElement("div",null,n.a.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",Sr+1,"\uFF09:"),n.a.createElement("div",null,n.a.createElement(nt,{autoSize:!0,disabled:!0,value:Xt==null?void 0:Xt.answer_text[0]})))})),(De==null?void 0:De.standard_answer)&&(De==null?void 0:De.question_type)===4&&n.a.createElement("div",null,n.a.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A"),n.a.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},n.a.createElement(W.a,{value:De==null||((Ft=De.standard_answer)===null||Ft===void 0)?void 0:Ft[0]}))),(De==null?void 0:De.question_type)<=4&&((De==null?void 0:De.standard_answer_show)||(De==null||((tr=De.standard_answer)===null||tr===void 0)?void 0:tr.length)>0)&&n.a.createElement(m.a,{style:{marginTop:14}},n.a.createElement("span",{className:"font16 "},"\u89E3\u6790\uFF1A"),n.a.createElement(W.a,{className:M.a.renderHtml,value:(De==null?void 0:De.analysis)||"\u6682\u65E0\u89E3\u6790"}))),Q&&!Number.isNaN(parseFloat(De==null?void 0:De.user_score))&&(De==null?void 0:De.question_type)!==Ge.a.Shixun&&n.a.createElement("span",null,n.a.createElement("span",{style:{color:"#0152d9"}},"\u5B66\u751F\u5F97\u5206\uFF1A"),De==null?void 0:De.user_score,"\u5206"),Z&&((De==null?void 0:De.question_type)===4||(De==null?void 0:De.question_type)===3||(De==null?void 0:De.question_type)===6)&&n.a.createElement("div",{style:{display:"flex",flexFlow:"column"}},(De==null||((Zt=De.answer_comments)===null||Zt===void 0||((xr=Zt[0])===null||xr===void 0||((qt=xr.user)===null||qt===void 0)))?void 0:qt.name)&&n.a.createElement("span",null,"\u8BC4\u9605\u6559\u5E08\uFF1A",De==null||((Fr=De.answer_comments)===null||Fr===void 0||((gr=Fr[0])===null||gr===void 0||((Kr=gr.user)===null||Kr===void 0)))?void 0:Kr.name," "),(De==null||((Pr=De.answer_comments)===null||Pr===void 0||((Nr=Pr[0])===null||Nr===void 0))?void 0:Nr.comment)&&n.a.createElement("span",null,"\u6559\u5E08\u8BC4\u8BED\uFF1A",De==null||((fr=De.answer_comments)===null||fr===void 0||((qr=fr[0])===null||qr===void 0))?void 0:qr.comment," ")),n.a.createElement(X.a,{style:Ot.current?{marginTop:30}:{}}))},kt=function(De){var Qt=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],Vt=["","\u5341","\u767E","\u5343","\u4E07"];De=parseInt(De);var Dt=function(zt){for(var sr=zt.toString().split("").reverse(),rr="",Ut=0;Ut0&&sr[Ut]==0&&sr[Ut-1]==0?"":Qt[sr[Ut]]+(sr[Ut]==0?Vt[0]:Vt[Ut]))+rr;return rr},jt=Math.floor(De/1e4),Kt=De%1e4;return Kt.toString().length<4&&(Kt="0"+Kt),jt?Dt(jt)+"\u4E07"+Dt(Kt):Dt(De)},Tr=function(De,Qt){return De.category?n.a.createElement("div",null,n.a.createElement("span",{className:"font16 c-light-primary"},kt(De.key+1),"\u3001",De.name),n.a.createElement("span",{className:"c-grey-999"},"\uFF08\u5171",De.count,"\u9898\uFF0C",(De==null?void 0:De.question_type)===7?"\u5305\u542B".concat(De==null?void 0:De.sub_count,"\u5C0F\u9898\uFF1B"):"","\u5171",De.score,"\u5206\uFF09")):ar(De,Qt)},mr=Object(d.useCallback)(function(){var $t,De,Qt,Vt,Dt,jt,Kt,Ar=(le==null||(($t=le.exerciseExportHeadData)===null||$t===void 0||((De=$t.exercise_header)===null||De===void 0))?void 0:De.export_page_num)||40,zt=At==null||((Qt=At.exercise_question_types)===null||Qt===void 0||((Vt=Qt.map(function(rr,Ut){return[Object(i.a)(Object(i.a)({},rr),{},{items:null,category:1,key:Ut})].concat(Object(F.a)(rr.items))}))===null||Vt===void 0))?void 0:Vt.flat(),sr=0;return zt!=null&&zt.length?(Dt=new Array(Math.ceil((zt==null?void 0:zt.length)/Ar)))===null||Dt===void 0||((jt=Dt.fill([]))===null||jt===void 0||((Kt=jt.map(function(rr,Ut){return zt.slice(Ut*Ar,Ut*Ar+Ar)}))===null||Kt===void 0))?void 0:Kt.map(function(rr,Ut){return n.a.createElement("div",{className:"pl60 pr30",style:{minHeight:Ut===0?1e3:"auto"}},Ut===0&&n.a.createElement(n.a.Fragment,null,n.a.createElement(de.a,{isExportBlank:Ot.current}),n.a.createElement(X.a,{className:M.a.divider})),rr==null?void 0:rr.map(function(Wt,Ft){return Wt.question_title&&++sr,Tr(Wt,sr)}))}):null},[At==null?void 0:At.exercise_question_types,Qr]);return n.a.createElement("section",{className:"edu-container"},n.a.createElement("section",{className:"animated fadeIn"},n.a.createElement("aside",{className:"mt10"},st&&n.a.createElement(V.a,{separator:">"},n.a.createElement(V.a.Item,null,n.a.createElement(c.a,{to:"/classrooms/".concat(ut.coursesId,"/exercise")},st==null||((Le=st.course)===null||Le===void 0)?void 0:Le.course_name)),n.a.createElement(V.a.Item,null,n.a.createElement(c.a,{to:"/classrooms/".concat(ut.coursesId,"/exercise")},"\u8BD5\u5377\u5217\u8868")),n.a.createElement(V.a.Item,null,n.a.createElement(c.a,{to:"/classrooms/".concat(ut.coursesId,"/exercise/").concat(At==null||((Fe=At.exercise)===null||Fe===void 0)?void 0:Fe.id,"/detail")},"\u8BD5\u5377\u8BE6\u60C5")),n.a.createElement(V.a.Item,null,(At==null||((we=At.exercise_answer_user)===null||we===void 0)?void 0:we.user_name)||(At==null||((ue=At.exercise)===null||ue===void 0)?void 0:ue.exercise_name)))),n.a.createElement("aside",{className:[M.a.title,"mt20"].join(" ")},n.a.createElement(m.a,{style:{width:"100%"}},n.a.createElement(u.a,{flex:"1",style:{lineHeight:"24px"}},n.a.createElement(c.a,{to:"/classrooms/".concat(ut.coursesId,"/exercise/").concat(At==null||((ce=At.exercise)===null||ce===void 0)?void 0:ce.id,"/detail")},n.a.createElement(L.a,{className:"font16 c-black"})),Object(U.A)((te=At.exercise)===null||te===void 0?void 0:te.exercise_status),n.a.createElement("strong",{className:"font20 ml5"},At==null||((ie=At.exercise)===null||ie===void 0)?void 0:ie.exercise_name)),n.a.createElement(u.a,null,n.a.createElement(G.a,{type:"primary",onClick:function(){Te(!0),setTimeout(function(){ur("")},500)}},n.a.createElement(N.a,null),"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377+\u7B54\u6848"),n.a.createElement(G.a,{type:"primary",className:"ml10",onClick:function(){return ur("")},loading:wt},n.a.createElement(N.a,null),"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377"),Object(Ce.c)()&&n.a.createElement(G.a,{disabled:wt,className:"ml10",type:"primary",onClick:function(){ot(!0)}},n.a.createElement(N.a,null),"\u5BFC\u51FA\u6240\u6709\u5B66\u751F\u8BD5\u5377"))))),n.a.createElement(o.a,{title:"\u5BFC\u51FA\u8BD5\u5377\u9009\u62E9",visible:it,footer:n.a.createElement("div",null,n.a.createElement(G.a,{type:"primary",onClick:function(){K(!0),p(!0),ot(!1),ur("all")}},"\u662F"),n.a.createElement(G.a,{onClick:function(){p(!0),ot(!1),ur("all")}},"\u5426")),onCancel:function(){return ot(!1)}},"\u662F\u5426\u8FDE\u540C\u8BC4\u9605\u6559\u5E08\u3001\u6559\u5E08\u8BC4\u8BED\u4E00\u8D77\u5BFC\u51FA\uFF1F"),n.a.createElement("section",{id:"export-all",className:[M.a.bg,"pt30","pb30","mt20","mb20","relative"].join(" "),ref:Jt},mr()))},Ue=_e.default=Object(b.a)(function(Ke){var We=Ke.exercise,Le=Ke.loading,Fe=Ke.user,we=Ke.globalSetting;return{exercise:We,globalSetting:we,user:Fe,loading:Le.effects}})(xe)},n6Qo:function(ht,_e,j){"use strict";j.d(_e,"a",function(){return P});var se=j("q1tI"),G=j("biw7"),D=j("fyJ8");function V(e){var R=e.className,m=e.index,v=e.children,u=e.colSpan,s=e.rowSpan,a=se.useContext(G.a),A=a.prefixCls,o=a.fixedInfoList,i=o[m];return se.createElement(D.a,Object.assign({className:R,index:m,component:"td",prefixCls:A,record:null,dataIndex:null,render:function(){return{children:v,props:{colSpan:u,rowSpan:s}}}},i))}function F(e){return se.createElement("tr",Object.assign({},e))}function O(e){var R=e.children,m=se.useContext(G.a),v=m.prefixCls;return se.createElement("tfoot",{className:"".concat(v,"-summary")},R)}var X=_e.b=O,P={Cell:V,Row:F}},nEHx:function(ht,_e,j){"use strict";j.d(_e,"a",function(){return se});var se;(function(G){G.DARK="dark",G.LIGHT="light",G.HIGH_CONTRAST="hc"})(se||(se={}))},nnTU:function(ht,_e,j){"use strict";j.d(_e,"b",function(){return X}),j.d(_e,"a",function(){return P});var se=j("MI8n"),G=j("JYp7"),D=j("pmY6"),V=j("24hK"),F=j("746U"),O=j("Cg/j");const X=Object(O.c)("commandService"),P=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new se.b,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,R){if(!e)throw new Error("invalid command");if(typeof e=="string"){if(!R)throw new Error("invalid command");return this.registerCommand({id:e,handler:R})}if(e.description){const a=[];for(let o of e.description.args)a.push(o.constraint);const A=e.handler;e.handler=function(o,...i){return Object(F.o)(i,a),A(o,...i)}}const{id:m}=e;let v=this._commands.get(m);v||(v=new V.a,this._commands.set(m,v));let u=v.unshift(e),s=Object(D.i)(()=>{u();const a=this._commands.get(m);(a==null?void 0:a.isEmpty())&&this._commands.delete(m)});return this._onDidRegisterCommand.fire(m),s}registerCommandAlias(e,R){return P.registerCommand(e,(m,...v)=>m.get(X).executeCommand(R,...v))}getCommand(e){const R=this._commands.get(e);return!R||R.isEmpty()?void 0:G.a.first(R)}getCommands(){const e=new Map;for(const R of this._commands.keys()){const m=this.getCommand(R);m&&e.set(R,m)}return e}};P.registerCommand("noop",()=>{})},p5ED:function(ht,_e,j){"use strict";var se=j("+L6B"),G=j("2/Rp"),D=j("5Dmo"),V=j("3S7+"),F=j("k1fw"),O=j("9og8"),X=j("tJVT"),P=j("WmNS"),e=j.n(P),R=j("q1tI"),m=j.n(R),v=j("vHTk"),u=j.n(v),s=j("yEEn"),a=j("ZW9T"),A=j("1vsH"),o=j("V0Rq"),i=j("m3rI");_e.a=function(r){var t,E,_,y,B,C,d,n=r.editOffice,l=n===void 0?"view":n,c=r.data,b=r.theme,g=r.type,h=r.filename,L=r.monacoEditor,N=r.className,T=r.style,M=r.close,W=r.onClose,U=r.hasMask,Y=r.disabledDownload,ne=Object(R.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),me=Object(X.a)(ne,2),ge=me[0],Oe=me[1],Se=Object(R.useState)(""),Be=Object(X.a)(Se,2),Ne=Be[0],ke=Be[1],Ce=Object(R.useState)(),ve=Object(X.a)(Ce,2),Xe=ve[0],lt=ve[1],at=window.ENV==="build"?"/react/build":"",je=i.a.PROXY_SERVER||location.origin,rt,re=1024*1024,J=10*re,k=Object(R.useRef)();(t=c)!==null&&t!==void 0&&t.startsWith("/api")&&g!=="txt"&&(c=i.a.API_SERVER+c),g==="office"&&(rt=Object(A.T)(c).filesize,rt>J&&(g="other")),h&&L&&(L.filename=h),Object(R.useEffect)(function(){var de,Qe,ze=(de=document.cookie)===null||de===void 0||((Qe=de.replace(/\s/g,""))===null||Qe===void 0)?void 0:Qe.split(";");ze==null||ze.map(function(Ge){var $e=Ge.split("=");$e[0]==="_educoder_session"&&ke($e[1])})},[]),Object(R.useEffect)(function(){g==="office"&&$()},[g,c]);var $=function(){var de=Object(O.a)(e.a.mark(function Qe(){var ze,Ge,$e;return e.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return console.log("data:",c),ze=c,c.startsWith("http")||(ze=location.origin+ze),Ge=new URL(ze).pathname.split("/").pop(),dt.next=6,Object(o.V)({attachment_id:Ge});case 6:$e=dt.sent,lt($e);case 8:case"end":return dt.stop()}},Qe)}));return function(){return de.apply(this,arguments)}}(),q=function(){if(c.startsWith("http")||c.startsWith("blob:")){he();return}Object(A.z)(h||"educoder",c,h)},he=function(){Object(A.x)(h||"educoder",decodeURIComponent(c))};return m.a.createElement("div",{style:Object(F.a)({},T||{}),className:"".concat(U&&u.a.bgBlack," ").concat(g?u.a.wrp:"hide")},M&&m.a.createElement("div",{className:u.a.close,ref:k},!Y&&m.a.createElement(V.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return k.current}},m.a.createElement("span",{onClick:he},m.a.createElement("i",{className:"icon-quxiaozhiding"}))),m.a.createElement(V.a,{title:"\u5173\u95ED",getPopupContainer:function(){return k.current}},m.a.createElement("span",{className:"",onClick:W},m.a.createElement("i",{className:"icon-guanbi1"})))),m.a.createElement("div",{className:"".concat(u.a[N]," ").concat(N," ").concat(u.a.monaco," ").concat(g==="txt"?"show":"hide")},g==="txt"&&m.a.createElement(a.b,L)),g==="audio"&&m.a.createElement("audio",{src:"".concat(((E=c)===null||E===void 0?void 0:E.indexOf("http://"))>-1||((_=c)===null||_===void 0?void 0:_.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(c),autoPlay:!0}),g==="video"&&m.a.createElement(m.a.Fragment,null,((y=c)===null||y===void 0?void 0:y.indexOf("http"))>-1?m.a.createElement("video",{controls:!0,src:"".concat(c),autoPlay:!0}):m.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(c),autoPlay:!0})),g==="office"&&Xe&&m.a.createElement("iframe",{src:"".concat(at,"/office.html?key=").concat(Xe.key,"&url=").concat(je+Xe.url,"&callbackUrl=").concat(je+Xe.callbackUrl,"&fileType=").concat(Xe.fileType,"&title=").concat(Xe.title,"&model=").concat(l,"&officeServer=").concat(i.a.OFFICE_SERVER,"&disabledDownload=").concat(!!Y)}),g==="html"&&m.a.createElement("iframe",{src:c+"&disposition=inline"}),g==="pdf"&&m.a.createElement("iframe",{src:"".concat(at,"/js/pdfview/index.html?url=").concat(c,"&disabledDownload=").concat(!!Y)}),g==="image"&&m.a.createElement("img",{src:"".concat(((B=c)===null||B===void 0?void 0:B.indexOf("http://"))>-1||((C=c)===null||C===void 0?void 0:C.indexOf("https://"))>-1||(d=c)!==null&&d!==void 0&&d.startsWith("/api")?"":"data:image/png;base64,").concat(c)}),g==="other"&&m.a.createElement("div",null,m.a.createElement(G.a,{type:"primary",size:"large",onClick:q},m.a.createElement(s.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),g==="download"&&m.a.createElement(G.a,{type:"primary",size:"large",onClick:q},m.a.createElement(s.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},pmY6:function(ht,_e,j){"use strict";j.d(_e,"h",function(){return R}),j.d(_e,"g",function(){return v}),j.d(_e,"f",function(){return u}),j.d(_e,"e",function(){return s}),j.d(_e,"i",function(){return a}),j.d(_e,"b",function(){return A}),j.d(_e,"a",function(){return o}),j.d(_e,"d",function(){return i}),j.d(_e,"c",function(){return r});var se=j("C/vA"),G=j("JYp7");const D=!1;let V=null;function F(t){V=t}if(D){const t="__is_disposable_tracked__";F(new class{trackDisposable(E){const _=new Error("Potentially leaked disposable").stack;setTimeout(()=>{E[t]||console.log(_)},3e3)}setParent(E,_){if(E&&E!==o.None)try{E[t]=!0}catch(y){}}markAsDisposed(E){if(E&&E!==o.None)try{E[t]=!0}catch(_){}}markAsSingleton(E){}})}function O(t){return V==null||V.trackDisposable(t),t}function X(t){V==null||V.markAsDisposed(t)}function P(t,E){V==null||V.setParent(t,E)}function e(t,E){if(!V)return;for(const _ of t)V.setParent(_,E)}function R(t){return V==null||V.markAsSingleton(t),t}class m extends Error{constructor(t){super(`Encountered errors while disposing of store. Errors: [${t.join(", ")}]`);this.errors=t}}function v(t){return typeof t.dispose=="function"&&t.dispose.length===0}function u(t){if(G.a.is(t)){let E=[];for(const _ of t)if(_)try{_.dispose()}catch(y){E.push(y)}if(E.length===1)throw E[0];if(E.length>1)throw new m(E);return Array.isArray(t)?[]:t}else if(t)return t.dispose(),t}function s(...t){const E=a(()=>u(t));return e(t,E),E}function a(t){const E=O({dispose:Object(se.a)(()=>{X(E),t()})});return E}class A{constructor(){this._toDispose=new Set,this._isDisposed=!1,O(this)}dispose(){if(this._isDisposed)return;X(this),this._isDisposed=!0,this.clear()}clear(){try{u(this._toDispose.values())}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return P(t,this),this._isDisposed?A.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}}A.DISABLE_DISPOSED_WARNING=!1;class o{constructor(){this._store=new A,O(this),P(this._store,this)}dispose(){X(this),this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}}o.None=Object.freeze({dispose(){}});class i{constructor(){this._isDisposed=!1,O(this)}get value(){return this._isDisposed?void 0:this._value}set value(t){var E;if(this._isDisposed||t===this._value)return;(E=this._value)===null||E===void 0||E.dispose(),t&&P(t,this),this._value=t}clear(){this.value=void 0}dispose(){var t;this._isDisposed=!0,X(this),(t=this._value)===null||t===void 0||t.dispose(),this._value=void 0}clearAndLeak(){const t=this._value;return this._value=void 0,t&&P(t,null),t}}class r{constructor(t){this.object=t}dispose(){}}},psGv:function(ht,_e,j){var se,G;(function(){var D;(function(){"use strict";var X=[,,function(m){function v(a){this.__parent=a,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}v.prototype.clone_empty=function(){var a=new v(this.__parent);return a.set_indent(this.__indent_count,this.__alignment_count),a},v.prototype.item=function(a){return a<0?this.__items[this.__items.length+a]:this.__items[a]},v.prototype.has_match=function(a){for(var A=this.__items.length-1;A>=0;A--)if(this.__items[A].match(a))return!0;return!1},v.prototype.set_indent=function(a,A){this.is_empty()&&(this.__indent_count=a||0,this.__alignment_count=A||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},v.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},v.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},v.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var a=this.__parent.current_line;return a.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),a.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),a.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,a.__items[0]===" "&&(a.__items.splice(0,1),a.__character_count-=1),!0}return!1},v.prototype.is_empty=function(){return this.__items.length===0},v.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},v.prototype.push=function(a){this.__items.push(a);var A=a.lastIndexOf(` `);A!==-1?this.__character_count=a.length-A:this.__character_count+=a.length},v.prototype.pop=function(){var a=null;return this.is_empty()||(a=this.__items.pop(),this.__character_count-=a.length),a},v.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},v.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},v.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},v.prototype.toString=function(){var a="";return this.is_empty()?this.__parent.indent_empty_lines&&(a=this.__parent.get_indent_string(this.__indent_count)):(a=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),a+=this.__items.join("")),a};function u(a,A){this.__cache=[""],this.__indent_size=a.indent_size,this.__indent_string=a.indent_char,a.indent_with_tabs||(this.__indent_string=new Array(a.indent_size+1).join(a.indent_char)),A=A||"",a.indent_level>0&&(A=new Array(a.indent_level+1).join(this.__indent_string)),this.__base_string=A,this.__base_string_length=A.length}u.prototype.get_indent_size=function(a,A){var o=this.__base_string_length;return A=A||0,a<0&&(o=0),o+=a*this.__indent_size,o+=A,o},u.prototype.get_indent_string=function(a,A){var o=this.__base_string;return A=A||0,a<0&&(a=0,o=""),A+=a*this.__indent_size,this.__ensure_cache(A),o+=this.__cache[A],o},u.prototype.__ensure_cache=function(a){for(;a>=this.__cache.length;)this.__add_column()},u.prototype.__add_column=function(){var a=this.__cache.length,A=0,o="";this.__indent_size&&a>=this.__indent_size&&(A=Math.floor(a/this.__indent_size),a-=A*this.__indent_size,o=new Array(A+1).join(this.__indent_string)),a&&(o+=new Array(a+1).join(" ")),this.__cache.push(o)};function s(a,A){this.__indent_cache=new u(a,A),this.raw=!1,this._end_with_newline=a.end_with_newline,this.indent_size=a.indent_size,this.wrap_line_length=a.wrap_line_length,this.indent_empty_lines=a.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new v(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}s.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},s.prototype.get_line_number=function(){return this.__lines.length},s.prototype.get_indent_string=function(a,A){return this.__indent_cache.get_indent_string(a,A)},s.prototype.get_indent_size=function(a,A){return this.__indent_cache.get_indent_size(a,A)},s.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},s.prototype.add_new_line=function(a){return this.is_empty()||!a&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},s.prototype.get_code=function(a){this.trim(!0);var A=this.current_line.pop();A&&(A[A.length-1]===` `&&(A=A.replace(/\n+$/g,"")),this.current_line.push(A)),this._end_with_newline&&this.__add_outputline();var o=this.__lines.join(` `);return a!==` diff --git a/p__Classrooms__Lists__Exercise__Review__index.70a10fc1.async.js b/p__Classrooms__Lists__Exercise__Review__index.b603452d.async.js similarity index 87% rename from p__Classrooms__Lists__Exercise__Review__index.70a10fc1.async.js rename to p__Classrooms__Lists__Exercise__Review__index.b603452d.async.js index 6ff891d715..8035d59428 100644 --- a/p__Classrooms__Lists__Exercise__Review__index.70a10fc1.async.js +++ b/p__Classrooms__Lists__Exercise__Review__index.b603452d.async.js @@ -294,7 +294,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `+(Ye.tokens?this.parseInline(Ye.tokens):Ye.text);te+=Q?this.renderer.paragraph(pt):pt;continue}default:{var yt='Token with "'+Ye.type+'" type was not found.';if(this.options.silent){console.error(yt);return}else throw new Error(yt)}}}return te},ae.parseInline=function(Y,Q){Q=Q||this.renderer;var te="",Z,$,ie=Y.length;for(Z=0;ZAn error occurred:

"+Te(ie.message+"",!0)+"
";throw ie}}Me.options=Me.setOptions=function(pe){return ut(Me.defaults,pe),je(Me.defaults),Me},Me.getDefaults=Ie,Me.defaults=ze,Me.use=function(pe){var ae=ut({},pe);if(pe.renderer&&function(){var Y=Me.defaults.renderer||new Oe,Q=function($){var ie=Y[$];Y[$]=function(){for(var ye=arguments.length,fe=new Array(ye),Pe=0;Pe>>6)+e(128|R&63):e(224|R>>>12&15)+e(128|R>>>6&63)+e(128|R&63)}else{var R=65536+(f.charCodeAt(0)-55296)*1024+(f.charCodeAt(1)-56320);return e(240|R>>>18&7)+e(128|R>>>12&63)+e(128|R>>>6&63)+e(128|R&63)}},m=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,v=function(f){return f.replace(m,O)},d=function(f){var R=[0,2,1][f.length%3],I=f.charCodeAt(0)<<16|(f.length>1?f.charCodeAt(1):0)<<8|(f.length>2?f.charCodeAt(2):0),n=[H.charAt(I>>>18),H.charAt(I>>>12&63),R>=2?"=":H.charAt(I>>>6&63),R>=1?"=":H.charAt(I&63)];return n.join("")},s=N.btoa&&typeof N.btoa=="function"?function(f){return N.btoa(f)}:function(f){if(f.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return f.replace(/[\s\S]{1,3}/g,d)},a=function(f){return s(v(String(f)))},l=function(f){return f.replace(/[+\/]/g,function(R){return R=="+"?"-":"_"}).replace(/=/g,"")},o=function(f,R){return R?l(a(f)):a(f)},i=function(f){return o(f,!0)},r;N.Uint8Array&&(r=function(f,R){for(var I="",n=0,P=f.length;n>>18)+H.charAt(V>>>12&63)+(typeof D!="undefined"?H.charAt(V>>>6&63):"=")+(typeof K!="undefined"?H.charAt(V&63):"=")}return R?l(I):I});var t=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,E=function(f){switch(f.length){case 4:var R=(7&f.charCodeAt(0))<<18|(63&f.charCodeAt(1))<<12|(63&f.charCodeAt(2))<<6|63&f.charCodeAt(3),I=R-65536;return e((I>>>10)+55296)+e((I&1023)+56320);case 3:return e((15&f.charCodeAt(0))<<12|(63&f.charCodeAt(1))<<6|63&f.charCodeAt(2));default:return e((31&f.charCodeAt(0))<<6|63&f.charCodeAt(1))}},b=function(f){return f.replace(t,E)},y=function(f){var R=f.length,I=R%4,n=(R>0?F[f.charAt(0)]<<18:0)|(R>1?F[f.charAt(1)]<<12:0)|(R>2?F[f.charAt(2)]<<6:0)|(R>3?F[f.charAt(3)]:0),P=[e(n>>>16),e(n>>>8&255),e(n&255)];return P.length-=[0,0,2,1][I],P.join("")},w=N.atob&&typeof N.atob=="function"?function(f){return N.atob(f)}:function(f){return f.replace(/\S{1,4}/g,y)},T=function(f){return w(String(f).replace(/[^A-Za-z0-9\+\/]/g,""))},p=function(f){return b(w(f))},c=function(f){return String(f).replace(/[-_]/g,function(R){return R=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},u=function(f){return p(c(f))},h;N.Uint8Array&&(h=function(f){return Uint8Array.from(T(c(f)),function(R){return R.charCodeAt(0)})});var x=function(){var f=N.Base64;return N.Base64=S,f};if(N.Base64={VERSION:A,atob:T,btoa:s,fromBase64:u,toBase64:o,utob:v,encode:o,encodeURI:i,btou:b,decode:u,noConflict:x,fromUint8Array:r,toUint8Array:h},typeof Object.defineProperty=="function"){var g=function(f){return{value:f,enumerable:!1,writable:!0,configurable:!0}};N.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",g(function(){return u(this)})),Object.defineProperty(String.prototype,"toBase64",g(function(f){return o(this,f)})),Object.defineProperty(String.prototype,"toBase64URI",g(function(){return o(this,!0)}))}}return N.Meteor&&(Base64=N.Base64),qe.exports?qe.exports.Base64=N.Base64:!(B=[],L=function(){return N.Base64}.apply(ce,B),L!==void 0&&(qe.exports=L)),{Base64:N.Base64}})}).call(this,M("IyRk"))},JYp7:function(qe,ce,M){"use strict";M.d(ce,"a",function(){return J});var J;(function(B){function L(t){return t&&typeof t=="object"&&typeof t[Symbol.iterator]=="function"}B.is=L;const N=Object.freeze([]);function S(){return N}B.empty=S;function*A(t){yield t}B.single=A;function H(t){return t||N}B.from=H;function F(t){return!t||t[Symbol.iterator]().next().done===!0}B.isEmpty=F;function e(t){return t[Symbol.iterator]().next().value}B.first=e;function O(t,E){for(const b of t)if(E(b))return!0;return!1}B.some=O;function m(t,E){for(const b of t)if(E(b))return b;return}B.find=m;function*v(t,E){for(const b of t)E(b)&&(yield b)}B.filter=v;function*d(t,E){let b=0;for(const y of t)yield E(y,b++)}B.map=d;function*s(...t){for(const E of t)for(const b of E)yield b}B.concat=s;function*a(t){for(const E of t)for(const b of E)yield b}B.concatNested=a;function l(t,E,b){let y=b;for(const w of t)y=E(y,w);return y}B.reduce=l;function*o(t,E,b=t.length){for(E<0&&(E+=t.length),b<0?b+=t.length:b>t.length&&(b=t.length);Ey===w){const y=t[Symbol.iterator](),w=E[Symbol.iterator]();for(;;){const T=y.next(),p=w.next();if(T.done!==p.done)return!1;if(T.done)return!0;if(!b(T.value,p.value))return!1}}B.equals=r})(J||(J={}))},KWfA:function(qe,ce,M){qe.exports=M.p+"static/not-commented.ffff7b2e.png"},LdHM:function(qe,ce,M){"use strict";M.d(ce,"b",function(){return t}),M.d(ce,"a",function(){return b});var J=M("1OyB"),B=M("vuIU"),L=M("Ji7U"),N=M("LK+K"),S=M("q1tI"),A=M("rePB"),H=M("Ff2n"),F=M("ODXe"),e=M("4IlW"),O=M("bX4T"),m=M("YrtM"),v=M("TSYQ"),d=M.n(v),s=M("+nKL"),a=M("8OUc"),l=function(K,V){var oe=K.prefixCls,se=K.id,Ae=K.flattenOptions,we=K.childrenAsData,Ee=K.values,Se=K.searchValue,Le=K.multiple,he=K.defaultActiveFirstOption,ee=K.height,Be=K.itemHeight,at=K.notFoundContent,Ze=K.open,Xe=K.menuItemSelectedIcon,it=K.virtual,Ue=K.onSelect,Ve=K.onToggleOpen,et=K.onActiveValue,ne=K.onScroll,be=K.onMouseEnter,Oe="".concat(oe,"-item"),Re=Object(m.a)(function(){return Ae},[Ze,Ae],function(Ne,pe){return pe[0]&&Ne[1]!==pe[1]}),$e=S.useRef(null),tt=function(pe){pe.preventDefault()},st=function(pe){$e.current&&$e.current.scrollTo({index:pe})},rt=function(pe){for(var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,le=Re.length,Y=0;Y1&&arguments[1]!==void 0?arguments[1]:!1;return Object(w.a)(D).map(function(V,oe){if(!S.isValidElement(V)||!V.type)return null;var se=V.type.isSelectOptGroup,Ae=V.key,we=V.props,Ee=we.children,Se=Object(H.a)(we,["children"]);return K||!se?T(V):Object(y.a)(Object(y.a)({key:"__RC_SELECT_GRP__".concat(Ae===null?oe:Ae,"__"),label:Ae},Se),{},{options:p(Ee)})}).filter(function(V){return V})}var c=M("2Qr1"),u=M("qNPg"),h=M("U8pU"),x=M("Kwbf"),g=M("WKfj");function f(D){var K=D.mode,V=D.options,oe=D.children,se=D.backfill,Ae=D.allowClear,we=D.placeholder,Ee=D.getInputElement,Se=D.showSearch,Le=D.onSearch,he=D.defaultOpen,ee=D.autoFocus,Be=D.labelInValue,at=D.value,Ze=D.inputValue,Xe=D.optionLabelProp,it=K==="multiple"||K==="tags",Ue=Se!==void 0?Se:it||K==="combobox",Ve=V||p(oe);if(Object(x.a)(K!=="tags"||Ve.every(function(Oe){return!Oe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),K==="tags"||K==="combobox"){var et=Ve.some(function(Oe){return Oe.options?Oe.options.some(function(Re){return typeof("value"in Re?Re.value:Re.key)=="number"}):typeof("value"in Oe?Oe.value:Oe.key)=="number"});Object(x.a)(!et,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(x.a)(K!=="combobox"||!Xe,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(x.a)(K==="combobox"||!se,"`backfill` only works with `combobox` mode."),Object(x.a)(K==="combobox"||!Ee,"`getInputElement` only work with `combobox` mode."),Object(x.b)(K!=="combobox"||!Ee||!Ae||!we,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Le&&!Ue&&K!=="combobox"&&K!=="tags"&&Object(x.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(x.b)(!he||ee,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),at!=null){var ne=Object(g.d)(at);Object(x.a)(!Be||ne.every(function(Oe){return Object(h.a)(Oe)==="object"&&("key"in Oe||"value"in Oe)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(x.a)(!it||Array.isArray(at),"`value` should be array when `mode` is `multiple` or `tags`")}if(oe){var be=null;Object(w.a)(oe).some(function(Oe){if(!S.isValidElement(Oe)||!Oe.type)return!1;var Re=Oe.type;if(Re.isSelectOption)return!1;if(Re.isSelectOptGroup){var $e=Object(w.a)(Oe.props.children).every(function(tt){return!S.isValidElement(tt)||!Oe.type||tt.type.isSelectOption?!0:(be=tt.type,!1)});return!$e}return be=Re,!0}),be&&Object(x.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(be.displayName||be.name||be,"`.")),Object(x.a)(Ze===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var R=f,I=Object(u.a)({prefixCls:"rc-select",components:{optionList:i},convertChildrenToData:p,flattenOptions:c.d,getLabeledValue:c.e,filterOptions:c.b,isValueDisabled:c.g,findValueOption:c.c,warningProps:R,fillOptionsWithMissingValue:c.a}),n=function(D){Object(L.a)(V,D);var K=Object(N.a)(V);function V(){var oe;return Object(J.a)(this,V),oe=K.apply(this,arguments),oe.selectRef=S.createRef(),oe.focus=function(){oe.selectRef.current.focus()},oe.blur=function(){oe.selectRef.current.blur()},oe}return Object(B.a)(V,[{key:"render",value:function(){return S.createElement(I,Object.assign({ref:this.selectRef},this.props))}}]),V}(S.Component);n.Option=t,n.OptGroup=b;var P=n,W=ce.c=P},MI8n:function(qe,ce,M){"use strict";M.d(ce,"c",function(){return S}),M.d(ce,"b",function(){return e}),M.d(ce,"e",function(){return O}),M.d(ce,"a",function(){return m}),M.d(ce,"d",function(){return v}),M.d(ce,"f",function(){return d});var J=M("/cxE"),B=M("pmY6"),L=M("24hK"),N=M("5Y4S"),S;(function(s){s.None=()=>B.a.None;function a(f){return(R,I=null,n)=>{let P=!1,W;return W=f(D=>P?void 0:(W?W.dispose():P=!0,R.call(I,D)),null,n),P&&W.dispose(),W}}s.once=a;function l(f,R){return b((I,n=null,P)=>f(W=>I.call(n,R(W)),null,P))}s.map=l;function o(f,R){return b((I,n=null,P)=>f(W=>{R(W),I.call(n,W)},null,P))}s.forEach=o;function i(f,R){return b((I,n=null,P)=>f(W=>R(W)&&I.call(n,W),null,P))}s.filter=i;function r(f){return f}s.signal=r;function t(...f){return(R,I=null,n)=>Object(B.e)(...f.map(P=>P(W=>R.call(I,W),null,n)))}s.any=t;function E(f,R,I){let n=I;return l(f,P=>(n=R(n,P),n))}s.reduce=E;function b(f){let R;const I=new e({onFirstListenerAdd(){R=f(I.fire,I)},onLastListenerRemove(){R.dispose()}});return I.event}function y(f,R,I=100,n=!1,P){let W,D,K,V=0;const oe=new e({leakWarningThreshold:P,onFirstListenerAdd(){W=f(se=>{V++,D=R(D,se),n&&!K&&(oe.fire(D),D=void 0),clearTimeout(K),K=setTimeout(()=>{const Ae=D;D=void 0,K=void 0,(!n||V>1)&&oe.fire(Ae),V=0},I)})},onLastListenerRemove(){W.dispose()}});return oe.event}s.debounce=y;function w(f,R=(I,n)=>I===n){let I=!0,n;return i(f,P=>{const W=I||!R(P,n);return I=!1,n=P,W})}s.latch=w;function T(f,R){return[s.filter(f,R),s.filter(f,I=>!R(I))]}s.split=T;function p(f,R=!1,I=[]){let n=I.slice(),P=f(K=>{n?n.push(K):D.fire(K)});const W=()=>{n&&n.forEach(K=>D.fire(K)),n=null},D=new e({onFirstListenerAdd(){P||(P=f(K=>D.fire(K)))},onFirstListenerDidAdd(){n&&(R?setTimeout(W):W())},onLastListenerRemove(){P&&P.dispose(),P=null}});return D.event}s.buffer=p;class c{constructor(f){this.event=f}map(f){return new c(l(this.event,f))}forEach(f){return new c(o(this.event,f))}filter(f){return new c(i(this.event,f))}reduce(f,R){return new c(E(this.event,f,R))}latch(){return new c(w(this.event))}debounce(f,R=100,I=!1,n){return new c(y(this.event,f,R,I,n))}on(f,R,I){return this.event(f,R,I)}once(f,R,I){return a(this.event)(f,R,I)}}function u(f){return new c(f)}s.chain=u;function h(f,R,I=n=>n){const n=(...K)=>D.fire(I(...K)),P=()=>f.on(R,n),W=()=>f.removeListener(R,n),D=new e({onFirstListenerAdd:P,onLastListenerRemove:W});return D.event}s.fromNodeEventEmitter=h;function x(f,R,I=n=>n){const n=(...K)=>D.fire(I(...K)),P=()=>f.addEventListener(R,n),W=()=>f.removeEventListener(R,n),D=new e({onFirstListenerAdd:P,onLastListenerRemove:W});return D.event}s.fromDOMEventEmitter=x;function g(f){return new Promise(R=>a(f)(R))}s.toPromise=g})(S||(S={}));class A{constructor(s){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${s}_${A._idPool++}`}start(s){this._stopWatch=new N.a(!0),this._listenerCount=s}stop(){if(this._stopWatch){const s=this._stopWatch.elapsed();this._elapsedOverall+=s,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${s.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}A._idPool=0;let H=-1;class F{constructor(s,a=Math.random().toString(18).slice(2,5)){this.customThreshold=s,this.name=a,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(s){let a=H;if(typeof this.customThreshold=="number"&&(a=this.customThreshold),a<=0||s{const i=this._stacks.get(l)||0;this._stacks.set(l,i-1)}}}class e{constructor(s){var a;this._disposed=!1,this._options=s,this._leakageMon=H>0?new F(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((a=this._options)===null||a===void 0?void 0:a._profName)?new A(this._options._profName):void 0}get event(){return this._event||(this._event=(s,a,l)=>{var o;this._listeners||(this._listeners=new L.a);const i=this._listeners.isEmpty();i&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const r=this._listeners.push(a?[s,a]:s);i&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,s,a);const t=(o=this._leakageMon)===null||o===void 0?void 0:o.check(this._listeners.size),E=Object(B.i)(()=>{if(t&&t(),!this._disposed&&(r(),this._options&&this._options.onLastListenerRemove)){const b=this._listeners&&!this._listeners.isEmpty();b||this._options.onLastListenerRemove(this)}});return l instanceof B.b?l.add(E):Array.isArray(l)&&l.push(E),E}),this._event}fire(s){var a,l;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new L.a);for(let o of this._listeners)this._deliveryQueue.push([o,s]);for((a=this._perfMon)===null||a===void 0||a.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[o,i]=this._deliveryQueue.shift();try{typeof o=="function"?o.call(void 0,i):o[0].call(o[1],i)}catch(r){Object(J.f)(r)}}(l=this._perfMon)===null||l===void 0||l.stop()}}dispose(){var s,a,l,o,i;this._disposed||(this._disposed=!0,(s=this._listeners)===null||s===void 0||s.clear(),(a=this._deliveryQueue)===null||a===void 0||a.clear(),(o=(l=this._options)===null||l===void 0?void 0:l.onLastListenerRemove)===null||o===void 0||o.call(l),(i=this._leakageMon)===null||i===void 0||i.dispose())}}class O extends e{constructor(s){super(s);this._isPaused=0,this._eventQueue=new L.a,this._mergeFn=s==null?void 0:s.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const s=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(s))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(s){this._listeners&&(this._isPaused!==0?this._eventQueue.push(s):super.fire(s))}}class m extends O{constructor(s){var a;super(s);this._delay=(a=s.delay)!==null&&a!==void 0?a:100}fire(s){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(s)}}class v{constructor(){this.buffers=[]}wrapEvent(s){return(a,l,o)=>s(i=>{const r=this.buffers[this.buffers.length-1];r?r.push(()=>a.call(l,i)):a.call(l,i)},void 0,o)}bufferEvents(s){const a=[];this.buffers.push(a);const l=s();return this.buffers.pop(),a.forEach(o=>o()),l}}class d{constructor(){this.listening=!1,this.inputEvent=S.None,this.inputEventListener=B.a.None,this.emitter=new e({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(s){this.inputEvent=s,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=s(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MNsG:function(qe,ce,M){"use strict";(function(J,B){M.d(ce,"b",function(){return l}),M.d(ce,"i",function(){return t}),M.d(ce,"f",function(){return E}),M.d(ce,"d",function(){return b}),M.d(ce,"g",function(){return y}),M.d(ce,"h",function(){return w}),M.d(ce,"c",function(){return T}),M.d(ce,"k",function(){return p}),M.d(ce,"j",function(){return c}),M.d(ce,"a",function(){return u}),M.d(ce,"e",function(){return g});var L;const N="en";let S=!1,A=!1,H=!1,F=!1,e=!1,O=!1,m=!1,v,d=N,s,a;const l=typeof self=="object"?self:typeof J=="object"?J:{};let o;typeof l.vscode!="undefined"&&typeof l.vscode.process!="undefined"?o=l.vscode.process:typeof B!="undefined"&&(o=B);const i=typeof((L=o==null?void 0:o.versions)===null||L===void 0?void 0:L.electron)=="string"&&o.type==="renderer";if(typeof navigator=="object"&&!i)a=navigator.userAgent,S=a.indexOf("Windows")>=0,A=a.indexOf("Macintosh")>=0,m=(a.indexOf("Macintosh")>=0||a.indexOf("iPad")>=0||a.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,H=a.indexOf("Linux")>=0,O=!0,v=navigator.language,d=v;else if(typeof o=="object"){S=o.platform==="win32",A=o.platform==="darwin",H=o.platform==="linux",F=H&&!!o.env.SNAP&&!!o.env.SNAP_REVISION,v=N,d=N;const f=o.env.VSCODE_NLS_CONFIG;if(f)try{const R=JSON.parse(f),I=R.availableLanguages["*"];v=R.locale,d=I||N,s=R._translationsConfigFile}catch(R){}e=!0}else console.error("Unable to resolve platform.");let r=0;A?r=1:S?r=3:H&&(r=2);const t=S,E=A,b=H,y=e,w=O,T=m,p=a,c=function(){if(l.setImmediate)return l.setImmediate.bind(l);if(typeof l.postMessage=="function"&&!l.importScripts){let I=[];l.addEventListener("message",P=>{if(P.data&&P.data.vscodeSetImmediateId)for(let W=0,D=I.length;W{const W=++n;I.push({id:W,callback:P}),l.postMessage({vscodeSetImmediateId:W},"*")}}if(typeof(o==null?void 0:o.nextTick)=="function")return o.nextTick.bind(o);const R=Promise.resolve();return I=>R.then(I)}(),u=A||m?2:S?1:3;let h=!0,x=!1;function g(){if(!x){x=!0;const f=new Uint8Array(2);f[0]=1,f[1]=2;const R=new Uint16Array(f.buffer);h=R[0]===(2<<8)+1}return h}}).call(this,M("IyRk"),M("Q2Ig"))},N0LK:function(qe,ce,M){"use strict";M.d(ce,"C",function(){return J}),M.d(ce,"v",function(){return L}),M.d(ce,"s",function(){return N}),M.d(ce,"t",function(){return S}),M.d(ce,"U",function(){return A}),M.d(ce,"J",function(){return H}),M.d(ce,"O",function(){return F}),M.d(ce,"p",function(){return e}),M.d(ce,"T",function(){return O}),M.d(ce,"q",function(){return m}),M.d(ce,"N",function(){return v}),M.d(ce,"M",function(){return d}),M.d(ce,"Q",function(){return s}),M.d(ce,"u",function(){return a}),M.d(ce,"x",function(){return l}),M.d(ce,"I",function(){return o}),M.d(ce,"f",function(){return i}),M.d(ce,"h",function(){return r}),M.d(ce,"g",function(){return t}),M.d(ce,"i",function(){return E}),M.d(ce,"G",function(){return b}),M.d(ce,"H",function(){return y}),M.d(ce,"r",function(){return w}),M.d(ce,"R",function(){return T}),M.d(ce,"d",function(){return p}),M.d(ce,"e",function(){return c}),M.d(ce,"E",function(){return u}),M.d(ce,"F",function(){return h}),M.d(ce,"j",function(){return x}),M.d(ce,"z",function(){return g}),M.d(ce,"K",function(){return R}),M.d(ce,"L",function(){return I}),M.d(ce,"m",function(){return P}),M.d(ce,"k",function(){return D}),M.d(ce,"A",function(){return V}),M.d(ce,"a",function(){return oe}),M.d(ce,"n",function(){return se}),M.d(ce,"l",function(){return Ae}),M.d(ce,"D",function(){return we}),M.d(ce,"B",function(){return Ee}),M.d(ce,"b",function(){return Se}),M.d(ce,"S",function(){return Le}),M.d(ce,"o",function(){return he}),M.d(ce,"P",function(){return ee}),M.d(ce,"w",function(){return Be}),M.d(ce,"c",function(){return at}),M.d(ce,"y",function(){return it});function J(ne){return!ne||typeof ne!="string"?!0:ne.trim().length===0}const B=/{(\d+)}/g;function L(ne,...be){return be.length===0?ne:ne.replace(B,function(Oe,Re){const $e=parseInt(Re,10);return isNaN($e)||$e<0||$e>=be.length?Oe:be[$e]})}function N(ne){return ne.replace(/[<>&]/g,function(be){switch(be){case"<":return"<";case">":return">";case"&":return"&";default:return be}})}function S(ne){return ne.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function A(ne,be=" "){const Oe=H(ne,be);return F(Oe,be)}function H(ne,be){if(!ne||!be)return ne;const Oe=be.length;if(Oe===0||ne.length===0)return ne;let Re=0;for(;ne.indexOf(be,Re)===Re;)Re=Re+Oe;return ne.substring(Re)}function F(ne,be){if(!ne||!be)return ne;const Oe=be.length,Re=ne.length;if(Oe===0||Re===0)return ne;let $e=Re,tt=-1;for(;!(tt=ne.lastIndexOf(be,$e-1),tt===-1||tt+Oe!==$e);){if(tt===0)return"";$e=tt}return ne.substring(0,$e)}function e(ne){return ne.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function O(ne){return ne.replace(/\*/g,"")}function m(ne,be,Oe={}){if(!ne)throw new Error("Cannot create regex from empty string");be||(ne=S(ne)),Oe.wholeWord&&(/\B/.test(ne.charAt(0))||(ne="\\b"+ne),/\B/.test(ne.charAt(ne.length-1))||(ne=ne+"\\b"));let Re="";return Oe.global&&(Re+="g"),Oe.matchCase||(Re+="i"),Oe.multiline&&(Re+="m"),Oe.unicode&&(Re+="u"),new RegExp(ne,Re)}function v(ne){if(ne.source==="^"||ne.source==="^$"||ne.source==="$"||ne.source==="^\\s*$")return!1;const be=ne.exec("");return!!(be&&ne.lastIndex===0)}function d(ne){return(ne.global?"g":"")+(ne.ignoreCase?"i":"")+(ne.multiline?"m":"")+(ne.unicode?"u":"")}function s(ne){return ne.split(/\r\n|\r|\n/)}function a(ne){for(let be=0,Oe=ne.length;be=0;Oe--){const Re=ne.charCodeAt(Oe);if(Re!==32&&Re!==9)return Oe}return-1}function i(ne,be){return nebe?1:0}function r(ne,be,Oe=0,Re=ne.length,$e=0,tt=be.length){for(;Oeht)return 1}const st=Re-Oe,rt=tt-$e;return strt?1:0}function t(ne,be){return E(ne,be,0,ne.length,0,be.length)}function E(ne,be,Oe=0,Re=ne.length,$e=0,tt=be.length){for(;Oe=128||ht>=128)return r(ne.toLowerCase(),be.toLowerCase(),Oe,Re,$e,tt);b(ut)&&(ut-=32),b(ht)&&(ht-=32);const Te=ut-ht;if(Te===0)continue;return Te}const st=Re-Oe,rt=tt-$e;return strt?1:0}function b(ne){return ne>=97&&ne<=122}function y(ne){return ne>=65&&ne<=90}function w(ne,be){return ne.length===be.length&&E(ne,be)===0}function T(ne,be){const Oe=be.length;return be.length>ne.length?!1:E(ne,be,0,Oe)===0}function p(ne,be){let Oe,Re=Math.min(ne.length,be.length);for(Oe=0;Oe1){const Re=ne.charCodeAt(be-2);if(u(Re))return x(Re,Oe)}return Oe}function R(ne,be){const Oe=Ze.getInstance(),Re=be,$e=ne.length,tt=g(ne,$e,be);be+=tt>=65536?2:1;let st=Oe.getGraphemeBreakType(tt);for(;be<$e;){const rt=g(ne,$e,be),ut=Oe.getGraphemeBreakType(rt);if(at(st,ut))break;be+=rt>=65536?2:1,st=ut}return be-Re}function I(ne,be){const Oe=Ze.getInstance(),Re=be,$e=f(ne,be);be-=$e>=65536?2:1;let tt=Oe.getGraphemeBreakType($e);for(;be>0;){const st=f(ne,be),rt=Oe.getGraphemeBreakType(st);if(at(rt,tt))break;be-=st>=65536?2:1,tt=rt}return Re-be}const n=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function P(ne){return n.test(ne)}const W=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function D(ne){return W.test(ne)}const K=/^[\t\n\r\x20-\x7E]*$/;function V(ne){return K.test(ne)}const oe=/[\u2028\u2029]/;function se(ne){return oe.test(ne)}function Ae(ne){for(let be=0,Oe=ne.length;be=11904&&ne<=55215||ne>=63744&&ne<=64255||ne>=65281&&ne<=65374}function Ee(ne){return ne>=127462&&ne<=127487||ne===8986||ne===8987||ne===9200||ne===9203||ne>=9728&&ne<=10175||ne===11088||ne===11093||ne>=127744&&ne<=128591||ne>=128640&&ne<=128764||ne>=128992&&ne<=129003||ne>=129280&&ne<=129535||ne>=129648&&ne<=129750}const Se=String.fromCharCode(65279);function Le(ne){return!!(ne&&ne.length>0&&ne.charCodeAt(0)===65279)}function he(ne,be=!1){return ne?(be&&(ne=ne.replace(/\\./g,"")),ne.toLowerCase()!==ne):!1}function ee(ne){const be=90-65+1;return ne=ne%(2*be),nebe[3*Re+1])Re=2*Re+1;else return be[3*Re+2];return 0}}Ze._INSTANCE=null;function Xe(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function it(ne,be){if(ne===0)return 0;const Oe=Ue(ne,be);if(Oe!==void 0)return Oe;const Re=f(be,ne);return ne-=Ve(Re),ne}function Ue(ne,be){let Oe=f(be,ne);for(ne-=Ve(Oe);et(Oe)||Oe===65039||Oe===8419;){if(ne===0)return;Oe=f(be,ne),ne-=Ve(Oe)}if(!Ee(Oe))return;if(ne>=0){const Re=f(be,ne);Re===8205&&(ne-=Ve(Re))}return ne}function Ve(ne){return ne>=65536?2:1}function et(ne){return 127995<=ne&&ne<=127999}},NKYn:function(qe,ce,M){"use strict";M.d(ce,"a",function(){return e});var J=M("14J3"),B=M("BMrR"),L=M("jCWc"),N=M("kPKH"),S=M("tJVT"),A=M("q1tI"),H=M.n(A),F=M("9Bee"),e=function(m){var v=m.data,d=Object(A.useState)(!1),s=Object(S.a)(d,2),a=s[0],l=s[1],o=function(){var r,t;switch(v.question_type){case 3:return H.a.createElement("aside",{className:"mt20"},H.a.createElement("span",{style:{cursor:"pointer"},className:"font14 c-blue current",onClick:function(){l(!a)}},a?"\u9690\u85CF\u53C2\u8003\u7B54\u6848":"\u67E5\u770B\u53C2\u8003\u7B54\u6848"),a&&H.a.createElement("div",null,v==null||((r=v.standard_answer)===null||r===void 0)?void 0:r.map(function(E,b){var y;return H.a.createElement(B.a,{style:{alignItems:"baseline"},className:"mr20"},H.a.createElement(N.a,{flex:"50px"},H.a.createElement("span",{className:"mt10"},"\u586B\u7A7A",E.choice_id,":")),H.a.createElement(N.a,{flex:1},E==null||((y=E.answer_text)===null||y===void 0)?void 0:y.map(function(w,T){return H.a.createElement("div",{dangerouslySetInnerHTML:{__html:w||""}})})))})));case 4:return H.a.createElement("aside",{className:"mt20"},H.a.createElement("span",{style:{cursor:"pointer"},className:"font14 c-blue current",onClick:function(){l(!a)}},a?"\u9690\u85CF\u53C2\u8003\u7B54\u6848":"\u67E5\u770B\u53C2\u8003\u7B54\u6848"),a&&H.a.createElement("div",null,H.a.createElement(F.a,{value:v==null||((t=v.standard_answer)===null||t===void 0)?void 0:t.join(" ")})))}};return H.a.createElement("section",null,o())}},NvD2:function(qe,ce,M){"use strict";M.d(ce,"a",function(){return A});var J=M("Kwbf");function B(H,F){var e=new Set;return H.forEach(function(O){F.has(O)||e.add(O)}),e}function L(H){var F=H||{},e=F.disabled,O=F.disableCheckbox,m=F.checkable;return!!(e||O)||m===!1}function N(H,F,e,O){for(var m=new Set(H),v=new Set,d=0;d<=e;d+=1){var s=F.get(d)||new Set;s.forEach(function(i){var r=i.key,t=i.node,E=i.children,b=E===void 0?[]:E;m.has(r)&&!O(t)&&b.filter(function(y){return!O(y.node)}).forEach(function(y){m.add(y.key)})})}for(var a=new Set,l=e;l>=0;l-=1){var o=F.get(l)||new Set;o.forEach(function(i){var r=i.parent,t=i.node;if(O(t)||!i.parent||a.has(i.parent.key))return;if(O(i.parent.node)){a.add(r.key);return}var E=!0,b=!1;(r.children||[]).filter(function(y){return!O(y.node)}).forEach(function(y){var w=y.key,T=m.has(w);E&&!T&&(E=!1),!b&&(T||v.has(w))&&(b=!0)}),E&&m.add(r.key),b&&v.add(r.key),a.add(r.key)})}return{checkedKeys:Array.from(m),halfCheckedKeys:Array.from(B(v,m))}}function S(H,F,e,O,m){for(var v=new Set(H),d=new Set(F),s=0;s<=O;s+=1){var a=e.get(s)||new Set;a.forEach(function(r){var t=r.key,E=r.node,b=r.children,y=b===void 0?[]:b;!v.has(t)&&!d.has(t)&&!m(E)&&y.filter(function(w){return!m(w.node)}).forEach(function(w){v.delete(w.key)})})}d=new Set;for(var l=new Set,o=O;o>=0;o-=1){var i=e.get(o)||new Set;i.forEach(function(r){var t=r.parent,E=r.node;if(m(E)||!r.parent||l.has(r.parent.key))return;if(m(r.parent.node)){l.add(t.key);return}var b=!0,y=!1;(t.children||[]).filter(function(w){return!m(w.node)}).forEach(function(w){var T=w.key,p=v.has(T);b&&!p&&(b=!1),!y&&(p||d.has(T))&&(y=!0)}),b||v.delete(t.key),y&&d.add(t.key),l.add(t.key)})}return{checkedKeys:Array.from(v),halfCheckedKeys:Array.from(B(d,v))}}function A(H,F,e,O){var m=[],v;O?v=O:v=L;var d=new Set(H.filter(function(o){var i=!!e[o];return i||m.push(o),i})),s=new Map,a=0;Object.keys(e).forEach(function(o){var i=e[o],r=i.level,t=s.get(r);t||(t=new Set,s.set(r,t)),t.add(i),a=Math.max(a,r)}),Object(J.a)(!m.length,"Tree missing follow keys: ".concat(m.slice(0,100).map(function(o){return"'".concat(o,"'")}).join(", ")));var l;return F===!0?l=N(d,s,a,v):l=S(d,F.halfCheckedKeys,s,a,v),l}},OZM5:function(qe,ce,M){"use strict";M.d(ce,"b",function(){return O}),M.d(ce,"a",function(){return m}),M.d(ce,"k",function(){return v}),M.d(ce,"h",function(){return d}),M.d(ce,"i",function(){return s}),M.d(ce,"g",function(){return a}),M.d(ce,"c",function(){return l}),M.d(ce,"d",function(){return o}),M.d(ce,"j",function(){return t}),M.d(ce,"e",function(){return E}),M.d(ce,"f",function(){return b});var J=M("KQm4"),B=M("U8pU"),L=M("Ff2n"),N=M("q1tI"),S=M.n(N),A=M("Kwbf"),H=M("WaYH"),F=.25,e=2;function O(y,w){var T=y.slice(),p=T.indexOf(w);return p>=0&&T.splice(p,1),T}function m(y,w){var T=y.slice();return T.indexOf(w)===-1&&T.push(w),T}function v(y){return y.split("-")}function d(y,w){return"".concat(y,"-").concat(w)}function s(y){return y&&y.type&&y.type.isTreeNode}function a(y,w){var T=[y],p=w[y];function c(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];u.forEach(function(h){var x=h.key,g=h.children;T.push(x),c(g)})}return c(p.children),T}function l(y,w){var T=y.clientY,p=w.selectHandle.getBoundingClientRect(),c=p.top,u=p.bottom,h=p.height,x=Math.max(h*F,e);return T<=c+x?-1:T>=u-x?1:0}function o(y,w){if(!y)return;var T=w.multiple;return T?y.slice():y.length?[y[0]]:y}var i=function(w){return w};function r(y,w){if(!y)return[];var T=w||{},p=T.processProps,c=p===void 0?i:p,u=Array.isArray(y)?y:[y];return u.map(function(h){var x=h.children,g=Object(L.a)(h,["children"]),f=r(x,w);return S.a.createElement(H.a,Object.assign({},c(g)),f)})}function t(y){if(!y)return null;var w;if(Array.isArray(y))w={checkedKeys:y,halfCheckedKeys:void 0};else if(Object(B.a)(y)==="object")w={checkedKeys:y.checked||void 0,halfCheckedKeys:y.halfChecked||void 0};else return Object(A.a)(!1,"`checkedKeys` is not an array or an object"),null;return w}function E(y,w){var T=new Set;function p(c){if(T.has(c))return;var u=w[c];if(!u)return;T.add(c);var h=u.parent,x=u.node;if(x.disabled)return;h&&p(h.key)}return(y||[]).forEach(function(c){p(c)}),Object(J.a)(T)}function b(y){var w={};return Object.keys(y).forEach(function(T){(T.startsWith("data-")||T.startsWith("aria-"))&&(w[T]=y[T])}),w}},P8Rs:function(qe,ce,M){qe.exports=M.p+"static/big.53187f09.svg"},RxJ0:function(qe,ce,M){qe.exports={wrap:"wrap___17CUR",head:"head___2KG7G",li:"li___1EGtk",img:"img___3IerY",big:"big___16qCh",s:"s___2czS6"}},"SA+Z":function(qe,ce,M){var J=M("wTVA"),B=M("EbDI"),L=M("ZhPi"),N=M("wkBT");function S(A){return J(A)||B(A)||L(A)||N()}qe.exports=S,qe.exports.__esModule=!0,qe.exports.default=qe.exports},SJMd:function(qe,ce){/** +`),o=this._stacks.get(l)||0;if(this._stacks.set(l,o+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=a*.5;let i,r=0;for(const[t,E]of this._stacks)(!i||r{const i=this._stacks.get(l)||0;this._stacks.set(l,i-1)}}}class e{constructor(s){var a;this._disposed=!1,this._options=s,this._leakageMon=H>0?new F(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((a=this._options)===null||a===void 0?void 0:a._profName)?new A(this._options._profName):void 0}get event(){return this._event||(this._event=(s,a,l)=>{var o;this._listeners||(this._listeners=new L.a);const i=this._listeners.isEmpty();i&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const r=this._listeners.push(a?[s,a]:s);i&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,s,a);const t=(o=this._leakageMon)===null||o===void 0?void 0:o.check(this._listeners.size),E=Object(B.i)(()=>{if(t&&t(),!this._disposed&&(r(),this._options&&this._options.onLastListenerRemove)){const b=this._listeners&&!this._listeners.isEmpty();b||this._options.onLastListenerRemove(this)}});return l instanceof B.b?l.add(E):Array.isArray(l)&&l.push(E),E}),this._event}fire(s){var a,l;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new L.a);for(let o of this._listeners)this._deliveryQueue.push([o,s]);for((a=this._perfMon)===null||a===void 0||a.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[o,i]=this._deliveryQueue.shift();try{typeof o=="function"?o.call(void 0,i):o[0].call(o[1],i)}catch(r){Object(J.f)(r)}}(l=this._perfMon)===null||l===void 0||l.stop()}}dispose(){var s,a,l,o,i;this._disposed||(this._disposed=!0,(s=this._listeners)===null||s===void 0||s.clear(),(a=this._deliveryQueue)===null||a===void 0||a.clear(),(o=(l=this._options)===null||l===void 0?void 0:l.onLastListenerRemove)===null||o===void 0||o.call(l),(i=this._leakageMon)===null||i===void 0||i.dispose())}}class O extends e{constructor(s){super(s);this._isPaused=0,this._eventQueue=new L.a,this._mergeFn=s==null?void 0:s.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const s=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(s))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(s){this._listeners&&(this._isPaused!==0?this._eventQueue.push(s):super.fire(s))}}class m extends O{constructor(s){var a;super(s);this._delay=(a=s.delay)!==null&&a!==void 0?a:100}fire(s){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(s)}}class v{constructor(){this.buffers=[]}wrapEvent(s){return(a,l,o)=>s(i=>{const r=this.buffers[this.buffers.length-1];r?r.push(()=>a.call(l,i)):a.call(l,i)},void 0,o)}bufferEvents(s){const a=[];this.buffers.push(a);const l=s();return this.buffers.pop(),a.forEach(o=>o()),l}}class d{constructor(){this.listening=!1,this.inputEvent=S.None,this.inputEventListener=B.a.None,this.emitter=new e({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(s){this.inputEvent=s,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=s(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MNsG:function(qe,ce,M){"use strict";(function(J,B){M.d(ce,"b",function(){return l}),M.d(ce,"i",function(){return t}),M.d(ce,"f",function(){return E}),M.d(ce,"d",function(){return b}),M.d(ce,"g",function(){return y}),M.d(ce,"h",function(){return w}),M.d(ce,"c",function(){return T}),M.d(ce,"k",function(){return p}),M.d(ce,"j",function(){return c}),M.d(ce,"a",function(){return u}),M.d(ce,"e",function(){return g});var L;const N="en";let S=!1,A=!1,H=!1,F=!1,e=!1,O=!1,m=!1,v,d=N,s,a;const l=typeof self=="object"?self:typeof J=="object"?J:{};let o;typeof l.vscode!="undefined"&&typeof l.vscode.process!="undefined"?o=l.vscode.process:typeof B!="undefined"&&(o=B);const i=typeof((L=o==null?void 0:o.versions)===null||L===void 0?void 0:L.electron)=="string"&&o.type==="renderer";if(typeof navigator=="object"&&!i)a=navigator.userAgent,S=a.indexOf("Windows")>=0,A=a.indexOf("Macintosh")>=0,m=(a.indexOf("Macintosh")>=0||a.indexOf("iPad")>=0||a.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,H=a.indexOf("Linux")>=0,O=!0,v=navigator.language,d=v;else if(typeof o=="object"){S=o.platform==="win32",A=o.platform==="darwin",H=o.platform==="linux",F=H&&!!o.env.SNAP&&!!o.env.SNAP_REVISION,v=N,d=N;const f=o.env.VSCODE_NLS_CONFIG;if(f)try{const R=JSON.parse(f),I=R.availableLanguages["*"];v=R.locale,d=I||N,s=R._translationsConfigFile}catch(R){}e=!0}else console.error("Unable to resolve platform.");let r=0;A?r=1:S?r=3:H&&(r=2);const t=S,E=A,b=H,y=e,w=O,T=m,p=a,c=function(){if(l.setImmediate)return l.setImmediate.bind(l);if(typeof l.postMessage=="function"&&!l.importScripts){let I=[];l.addEventListener("message",P=>{if(P.data&&P.data.vscodeSetImmediateId)for(let W=0,D=I.length;W{const W=++n;I.push({id:W,callback:P}),l.postMessage({vscodeSetImmediateId:W},"*")}}if(typeof(o==null?void 0:o.nextTick)=="function")return o.nextTick.bind(o);const R=Promise.resolve();return I=>R.then(I)}(),u=A||m?2:S?1:3;let h=!0,x=!1;function g(){if(!x){x=!0;const f=new Uint8Array(2);f[0]=1,f[1]=2;const R=new Uint16Array(f.buffer);h=R[0]===(2<<8)+1}return h}}).call(this,M("IyRk"),M("Q2Ig"))},N0LK:function(qe,ce,M){"use strict";M.d(ce,"C",function(){return J}),M.d(ce,"v",function(){return L}),M.d(ce,"s",function(){return N}),M.d(ce,"t",function(){return S}),M.d(ce,"U",function(){return A}),M.d(ce,"J",function(){return H}),M.d(ce,"O",function(){return F}),M.d(ce,"p",function(){return e}),M.d(ce,"T",function(){return O}),M.d(ce,"q",function(){return m}),M.d(ce,"N",function(){return v}),M.d(ce,"M",function(){return d}),M.d(ce,"Q",function(){return s}),M.d(ce,"u",function(){return a}),M.d(ce,"x",function(){return l}),M.d(ce,"I",function(){return o}),M.d(ce,"f",function(){return i}),M.d(ce,"h",function(){return r}),M.d(ce,"g",function(){return t}),M.d(ce,"i",function(){return E}),M.d(ce,"G",function(){return b}),M.d(ce,"H",function(){return y}),M.d(ce,"r",function(){return w}),M.d(ce,"R",function(){return T}),M.d(ce,"d",function(){return p}),M.d(ce,"e",function(){return c}),M.d(ce,"E",function(){return u}),M.d(ce,"F",function(){return h}),M.d(ce,"j",function(){return x}),M.d(ce,"z",function(){return g}),M.d(ce,"K",function(){return R}),M.d(ce,"L",function(){return I}),M.d(ce,"m",function(){return P}),M.d(ce,"k",function(){return D}),M.d(ce,"A",function(){return V}),M.d(ce,"a",function(){return oe}),M.d(ce,"n",function(){return se}),M.d(ce,"l",function(){return Ae}),M.d(ce,"D",function(){return we}),M.d(ce,"B",function(){return Ee}),M.d(ce,"b",function(){return Se}),M.d(ce,"S",function(){return Le}),M.d(ce,"o",function(){return he}),M.d(ce,"P",function(){return ee}),M.d(ce,"w",function(){return Be}),M.d(ce,"c",function(){return at}),M.d(ce,"y",function(){return it});function J(ne){return!ne||typeof ne!="string"?!0:ne.trim().length===0}const B=/{(\d+)}/g;function L(ne,...be){return be.length===0?ne:ne.replace(B,function(Oe,Re){const $e=parseInt(Re,10);return isNaN($e)||$e<0||$e>=be.length?Oe:be[$e]})}function N(ne){return ne.replace(/[<>&]/g,function(be){switch(be){case"<":return"<";case">":return">";case"&":return"&";default:return be}})}function S(ne){return ne.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function A(ne,be=" "){const Oe=H(ne,be);return F(Oe,be)}function H(ne,be){if(!ne||!be)return ne;const Oe=be.length;if(Oe===0||ne.length===0)return ne;let Re=0;for(;ne.indexOf(be,Re)===Re;)Re=Re+Oe;return ne.substring(Re)}function F(ne,be){if(!ne||!be)return ne;const Oe=be.length,Re=ne.length;if(Oe===0||Re===0)return ne;let $e=Re,tt=-1;for(;!(tt=ne.lastIndexOf(be,$e-1),tt===-1||tt+Oe!==$e);){if(tt===0)return"";$e=tt}return ne.substring(0,$e)}function e(ne){return ne.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function O(ne){return ne.replace(/\*/g,"")}function m(ne,be,Oe={}){if(!ne)throw new Error("Cannot create regex from empty string");be||(ne=S(ne)),Oe.wholeWord&&(/\B/.test(ne.charAt(0))||(ne="\\b"+ne),/\B/.test(ne.charAt(ne.length-1))||(ne=ne+"\\b"));let Re="";return Oe.global&&(Re+="g"),Oe.matchCase||(Re+="i"),Oe.multiline&&(Re+="m"),Oe.unicode&&(Re+="u"),new RegExp(ne,Re)}function v(ne){if(ne.source==="^"||ne.source==="^$"||ne.source==="$"||ne.source==="^\\s*$")return!1;const be=ne.exec("");return!!(be&&ne.lastIndex===0)}function d(ne){return(ne.global?"g":"")+(ne.ignoreCase?"i":"")+(ne.multiline?"m":"")+(ne.unicode?"u":"")}function s(ne){return ne.split(/\r\n|\r|\n/)}function a(ne){for(let be=0,Oe=ne.length;be=0;Oe--){const Re=ne.charCodeAt(Oe);if(Re!==32&&Re!==9)return Oe}return-1}function i(ne,be){return nebe?1:0}function r(ne,be,Oe=0,Re=ne.length,$e=0,tt=be.length){for(;Oeht)return 1}const st=Re-Oe,rt=tt-$e;return strt?1:0}function t(ne,be){return E(ne,be,0,ne.length,0,be.length)}function E(ne,be,Oe=0,Re=ne.length,$e=0,tt=be.length){for(;Oe=128||ht>=128)return r(ne.toLowerCase(),be.toLowerCase(),Oe,Re,$e,tt);b(ut)&&(ut-=32),b(ht)&&(ht-=32);const Te=ut-ht;if(Te===0)continue;return Te}const st=Re-Oe,rt=tt-$e;return strt?1:0}function b(ne){return ne>=97&&ne<=122}function y(ne){return ne>=65&&ne<=90}function w(ne,be){return ne.length===be.length&&E(ne,be)===0}function T(ne,be){const Oe=be.length;return be.length>ne.length?!1:E(ne,be,0,Oe)===0}function p(ne,be){let Oe,Re=Math.min(ne.length,be.length);for(Oe=0;Oe1){const Re=ne.charCodeAt(be-2);if(u(Re))return x(Re,Oe)}return Oe}function R(ne,be){const Oe=Ze.getInstance(),Re=be,$e=ne.length,tt=g(ne,$e,be);be+=tt>=65536?2:1;let st=Oe.getGraphemeBreakType(tt);for(;be<$e;){const rt=g(ne,$e,be),ut=Oe.getGraphemeBreakType(rt);if(at(st,ut))break;be+=rt>=65536?2:1,st=ut}return be-Re}function I(ne,be){const Oe=Ze.getInstance(),Re=be,$e=f(ne,be);be-=$e>=65536?2:1;let tt=Oe.getGraphemeBreakType($e);for(;be>0;){const st=f(ne,be),rt=Oe.getGraphemeBreakType(st);if(at(rt,tt))break;be-=st>=65536?2:1,tt=rt}return Re-be}const n=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function P(ne){return n.test(ne)}const W=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function D(ne){return W.test(ne)}const K=/^[\t\n\r\x20-\x7E]*$/;function V(ne){return K.test(ne)}const oe=/[\u2028\u2029]/;function se(ne){return oe.test(ne)}function Ae(ne){for(let be=0,Oe=ne.length;be=11904&&ne<=55215||ne>=63744&&ne<=64255||ne>=65281&&ne<=65374}function Ee(ne){return ne>=127462&&ne<=127487||ne===8986||ne===8987||ne===9200||ne===9203||ne>=9728&&ne<=10175||ne===11088||ne===11093||ne>=127744&&ne<=128591||ne>=128640&&ne<=128764||ne>=128992&&ne<=129003||ne>=129280&&ne<=129535||ne>=129648&&ne<=129750}const Se=String.fromCharCode(65279);function Le(ne){return!!(ne&&ne.length>0&&ne.charCodeAt(0)===65279)}function he(ne,be=!1){return ne?(be&&(ne=ne.replace(/\\./g,"")),ne.toLowerCase()!==ne):!1}function ee(ne){const be=90-65+1;return ne=ne%(2*be),nebe[3*Re+1])Re=2*Re+1;else return be[3*Re+2];return 0}}Ze._INSTANCE=null;function Xe(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function it(ne,be){if(ne===0)return 0;const Oe=Ue(ne,be);if(Oe!==void 0)return Oe;const Re=f(be,ne);return ne-=Ve(Re),ne}function Ue(ne,be){let Oe=f(be,ne);for(ne-=Ve(Oe);et(Oe)||Oe===65039||Oe===8419;){if(ne===0)return;Oe=f(be,ne),ne-=Ve(Oe)}if(!Ee(Oe))return;if(ne>=0){const Re=f(be,ne);Re===8205&&(ne-=Ve(Re))}return ne}function Ve(ne){return ne>=65536?2:1}function et(ne){return 127995<=ne&&ne<=127999}},NKYn:function(qe,ce,M){"use strict";M.d(ce,"a",function(){return e});var J=M("14J3"),B=M("BMrR"),L=M("jCWc"),N=M("kPKH"),S=M("tJVT"),A=M("q1tI"),H=M.n(A),F=M("9Bee"),e=function(m){var v=m.data,d=Object(A.useState)(!1),s=Object(S.a)(d,2),a=s[0],l=s[1],o=function(){var r,t;switch(v.question_type){case 3:return H.a.createElement("aside",{className:"mt20"},H.a.createElement("span",{style:{cursor:"pointer"},className:"font14 c-blue current",onClick:function(){l(!a)}},a?"\u9690\u85CF\u53C2\u8003\u7B54\u6848":"\u67E5\u770B\u53C2\u8003\u7B54\u6848"),a&&H.a.createElement("div",null,v==null||((r=v.standard_answer)===null||r===void 0)?void 0:r.map(function(E,b){var y;return H.a.createElement(B.a,{style:{alignItems:"baseline"},className:"mr20"},H.a.createElement(N.a,{flex:"50px"},H.a.createElement("span",{className:"mt10"},"\u586B\u7A7A",E.choice_id,":")),H.a.createElement(N.a,{flex:1},E==null||((y=E.answer_text)===null||y===void 0)?void 0:y.map(function(w,T){return H.a.createElement("div",null,w)})))})));case 4:return H.a.createElement("aside",{className:"mt20"},H.a.createElement("span",{style:{cursor:"pointer"},className:"font14 c-blue current",onClick:function(){l(!a)}},a?"\u9690\u85CF\u53C2\u8003\u7B54\u6848":"\u67E5\u770B\u53C2\u8003\u7B54\u6848"),a&&H.a.createElement("div",null,H.a.createElement(F.a,{value:v==null||((t=v.standard_answer)===null||t===void 0)?void 0:t.join(" ")})))}};return H.a.createElement("section",null,o())}},NvD2:function(qe,ce,M){"use strict";M.d(ce,"a",function(){return A});var J=M("Kwbf");function B(H,F){var e=new Set;return H.forEach(function(O){F.has(O)||e.add(O)}),e}function L(H){var F=H||{},e=F.disabled,O=F.disableCheckbox,m=F.checkable;return!!(e||O)||m===!1}function N(H,F,e,O){for(var m=new Set(H),v=new Set,d=0;d<=e;d+=1){var s=F.get(d)||new Set;s.forEach(function(i){var r=i.key,t=i.node,E=i.children,b=E===void 0?[]:E;m.has(r)&&!O(t)&&b.filter(function(y){return!O(y.node)}).forEach(function(y){m.add(y.key)})})}for(var a=new Set,l=e;l>=0;l-=1){var o=F.get(l)||new Set;o.forEach(function(i){var r=i.parent,t=i.node;if(O(t)||!i.parent||a.has(i.parent.key))return;if(O(i.parent.node)){a.add(r.key);return}var E=!0,b=!1;(r.children||[]).filter(function(y){return!O(y.node)}).forEach(function(y){var w=y.key,T=m.has(w);E&&!T&&(E=!1),!b&&(T||v.has(w))&&(b=!0)}),E&&m.add(r.key),b&&v.add(r.key),a.add(r.key)})}return{checkedKeys:Array.from(m),halfCheckedKeys:Array.from(B(v,m))}}function S(H,F,e,O,m){for(var v=new Set(H),d=new Set(F),s=0;s<=O;s+=1){var a=e.get(s)||new Set;a.forEach(function(r){var t=r.key,E=r.node,b=r.children,y=b===void 0?[]:b;!v.has(t)&&!d.has(t)&&!m(E)&&y.filter(function(w){return!m(w.node)}).forEach(function(w){v.delete(w.key)})})}d=new Set;for(var l=new Set,o=O;o>=0;o-=1){var i=e.get(o)||new Set;i.forEach(function(r){var t=r.parent,E=r.node;if(m(E)||!r.parent||l.has(r.parent.key))return;if(m(r.parent.node)){l.add(t.key);return}var b=!0,y=!1;(t.children||[]).filter(function(w){return!m(w.node)}).forEach(function(w){var T=w.key,p=v.has(T);b&&!p&&(b=!1),!y&&(p||d.has(T))&&(y=!0)}),b||v.delete(t.key),y&&d.add(t.key),l.add(t.key)})}return{checkedKeys:Array.from(v),halfCheckedKeys:Array.from(B(d,v))}}function A(H,F,e,O){var m=[],v;O?v=O:v=L;var d=new Set(H.filter(function(o){var i=!!e[o];return i||m.push(o),i})),s=new Map,a=0;Object.keys(e).forEach(function(o){var i=e[o],r=i.level,t=s.get(r);t||(t=new Set,s.set(r,t)),t.add(i),a=Math.max(a,r)}),Object(J.a)(!m.length,"Tree missing follow keys: ".concat(m.slice(0,100).map(function(o){return"'".concat(o,"'")}).join(", ")));var l;return F===!0?l=N(d,s,a,v):l=S(d,F.halfCheckedKeys,s,a,v),l}},OZM5:function(qe,ce,M){"use strict";M.d(ce,"b",function(){return O}),M.d(ce,"a",function(){return m}),M.d(ce,"k",function(){return v}),M.d(ce,"h",function(){return d}),M.d(ce,"i",function(){return s}),M.d(ce,"g",function(){return a}),M.d(ce,"c",function(){return l}),M.d(ce,"d",function(){return o}),M.d(ce,"j",function(){return t}),M.d(ce,"e",function(){return E}),M.d(ce,"f",function(){return b});var J=M("KQm4"),B=M("U8pU"),L=M("Ff2n"),N=M("q1tI"),S=M.n(N),A=M("Kwbf"),H=M("WaYH"),F=.25,e=2;function O(y,w){var T=y.slice(),p=T.indexOf(w);return p>=0&&T.splice(p,1),T}function m(y,w){var T=y.slice();return T.indexOf(w)===-1&&T.push(w),T}function v(y){return y.split("-")}function d(y,w){return"".concat(y,"-").concat(w)}function s(y){return y&&y.type&&y.type.isTreeNode}function a(y,w){var T=[y],p=w[y];function c(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];u.forEach(function(h){var x=h.key,g=h.children;T.push(x),c(g)})}return c(p.children),T}function l(y,w){var T=y.clientY,p=w.selectHandle.getBoundingClientRect(),c=p.top,u=p.bottom,h=p.height,x=Math.max(h*F,e);return T<=c+x?-1:T>=u-x?1:0}function o(y,w){if(!y)return;var T=w.multiple;return T?y.slice():y.length?[y[0]]:y}var i=function(w){return w};function r(y,w){if(!y)return[];var T=w||{},p=T.processProps,c=p===void 0?i:p,u=Array.isArray(y)?y:[y];return u.map(function(h){var x=h.children,g=Object(L.a)(h,["children"]),f=r(x,w);return S.a.createElement(H.a,Object.assign({},c(g)),f)})}function t(y){if(!y)return null;var w;if(Array.isArray(y))w={checkedKeys:y,halfCheckedKeys:void 0};else if(Object(B.a)(y)==="object")w={checkedKeys:y.checked||void 0,halfCheckedKeys:y.halfChecked||void 0};else return Object(A.a)(!1,"`checkedKeys` is not an array or an object"),null;return w}function E(y,w){var T=new Set;function p(c){if(T.has(c))return;var u=w[c];if(!u)return;T.add(c);var h=u.parent,x=u.node;if(x.disabled)return;h&&p(h.key)}return(y||[]).forEach(function(c){p(c)}),Object(J.a)(T)}function b(y){var w={};return Object.keys(y).forEach(function(T){(T.startsWith("data-")||T.startsWith("aria-"))&&(w[T]=y[T])}),w}},P8Rs:function(qe,ce,M){qe.exports=M.p+"static/big.53187f09.svg"},RxJ0:function(qe,ce,M){qe.exports={wrap:"wrap___17CUR",head:"head___2KG7G",li:"li___1EGtk",img:"img___3IerY",big:"big___16qCh",s:"s___2czS6"}},"SA+Z":function(qe,ce,M){var J=M("wTVA"),B=M("EbDI"),L=M("ZhPi"),N=M("wkBT");function S(A){return J(A)||B(A)||L(A)||N()}qe.exports=S,qe.exports.__esModule=!0,qe.exports.default=qe.exports},SJMd:function(qe,ce){/** * @license * Copyright (C) 2006 Google Inc. * @@ -357,7 +357,7 @@ You passed in: '`+this.raw_options[d]+"'");return l},O.prototype._is_valid_selec `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},o={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(` -`)}]},i=M("5VLF"),r=M.n(i),t={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},E=function(K,V){return V.map(function(oe){return{label:oe,kind:K.languages.CompletionItemKind.Keyword,insertText:oe}})},b=function(K){return Object.keys(t.tables).map(function(V){return{label:V,kind:K.languages.CompletionItemKind.Variable,insertText:V}})},y=function(K,V){var oe=t.tables[K];return oe?oe.map(function(se){return{label:se,kind:V.languages.CompletionItemKind.Field,insertText:se}}):[]};function w(D,K,V,oe,se){var Ae=K.getWordUntilPosition(V),we={startLineNumber:V.lineNumber,endLineNumber:V.lineNumber,startColumn:Ae.startColumn,endColumn:Ae.endColumn},Ee=oe.map(function(Se){return{label:Se,kind:D.languages.CompletionItemKind.Keyword,insertText:Se,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:we}});return se.map(function(Se){Ee.push(Object(J.a)(Object(J.a)({},Se),{},{range:we}))}),Ee}var T=function(D){t.languages.map(function(se){return D.languages.registerDocumentFormattingEditProvider(se,{provideDocumentFormattingEdits:function(we,Ee,Se){return Object(m.a)(d.a.mark(function Le(){var he;return d.a.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return he=r()(we.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1}),Be.abrupt("return",[{range:we.getFullModelRange(),text:he}]);case 2:case"end":return Be.stop()}},Le)}))()}}),se});var K=l.quickKey.map(function(se){return{label:se.label,kind:D.languages.CompletionItemKind.Method,insertText:se.content,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),V=o.quickKey.map(function(se){return{label:se.label,kind:D.languages.CompletionItemKind.Method,insertText:se.content,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),oe=a.quickKey.map(function(se){return{label:se.label,kind:D.languages.CompletionItemKind.Method,insertText:se.content,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet}});D.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Ae,we){var Ee=Ae.getWordUntilPosition(we),Se={startLineNumber:we.lineNumber,endLineNumber:we.lineNumber,startColumn:Ee.startColumn,endColumn:Ee.endColumn},Le=Ae.getLineContent(we.lineNumber).substring(Ee.startColumn-2,Ee.endColumn);return{suggestions:[].concat(Object(B.a)(l.keywords.map(function(he){return{label:he,kind:D.languages.CompletionItemKind.Function,documentation:he,insertText:he,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}})),Object(B.a)(l.quickKey.map(function(he){return{label:he.label,kind:D.languages.CompletionItemKind.Function,documentation:he.content,insertText:Le.startsWith("#")?he.content.replace(/#/,""):he.content,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}})))}}}),D.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Ae,we){var Ee=Ae.getWordUntilPosition(we),Se={startLineNumber:we.lineNumber,endLineNumber:we.lineNumber,startColumn:Ee.startColumn,endColumn:Ee.endColumn};return{suggestions:Object(B.a)(s.keywords.map(function(Le){return{label:Le,kind:D.languages.CompletionItemKind.Function,documentation:Le,insertText:Le,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}}))}}}),D.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Ae,we){var Ee=Ae.getWordUntilPosition(we),Se={startLineNumber:we.lineNumber,endLineNumber:we.lineNumber,startColumn:Ee.startColumn,endColumn:Ee.endColumn},Le=Ae.getLineContent(we.lineNumber).substring(Ee.startColumn-2,Ee.endColumn);return{suggestions:[].concat(Object(B.a)(a.keywords.map(function(he){return{label:he,kind:D.languages.CompletionItemKind.Function,documentation:he,insertText:he,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}})),Object(B.a)(a.quickKey.map(function(he){return{label:he.label,kind:D.languages.CompletionItemKind.Function,documentation:he.content,insertText:Le.startsWith("#")?he.content.replace(/#/,""):he.content,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}})))}}}),D.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Ae,we){var Ee=Ae.getWordUntilPosition(we),Se={startLineNumber:we.lineNumber,endLineNumber:we.lineNumber,startColumn:Ee.startColumn,endColumn:Ee.endColumn},Le=Ae.getLineContent(we.lineNumber).substring(Ee.startColumn-2,Ee.endColumn);return{suggestions:[].concat(Object(B.a)(o.keywords.map(function(he){return{label:he,kind:D.languages.CompletionItemKind.Function,documentation:he,insertText:he,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}})),Object(B.a)(o.quickKey.map(function(he){return{label:he.label,kind:D.languages.CompletionItemKind.Function,documentation:he.content,insertText:Le.startsWith("#")?he.content.replace(/#/,""):he.content,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}})))}}})},p="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",c=M("fjLI"),u=M("LvDl"),h=M("+ua5");function x(D){return/^\d+$/.test(D)?"".concat(D,"px"):D}function g(){}var f=!1,R={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function I(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],K=D;if(Array.isArray(D)){for(var V=0;V0||mn.target.offsetWidth>0)&&Ne.current.instance.layout()}}catch(fn){wt.e(fn)}finally{wt.f()}}),yt.observe(Me.current)),yt}function ye(){N.b.warn(decodeURIComponent(p))}var fe=function(){var gt=Ne.current.instance;if(Ae!=null&>&&Z){var wt=gt.getModel();wt&&Ae!==wt.getValue()&&(f=!0,wt.setValue(Ae),gt.layout(),f=!1)}};Object(F.useEffect)(function(){ae.current&&clearTimeout(ae.current),ae.current=setTimeout(function(){fe()},500)},[Ae,Z,Ne.current]),Object(F.useEffect)(function(){if(Te&&Ne.current&&Ne.current.instance){var yt=Ne.current.instance;yt.changeViewZones(function(wt){var Qt=document.createElement("div");Qt.style.padding="10px 20px",Qt.style.width="calc(100% - 20px)",Qt.className="my-error-line-wrp",Qt.innerHTML=je,wt.addZone({afterLineNumber:Te||11,heightInLines:3,domNode:Qt})});var gt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};yt.addOverlayWidget(gt),yt.revealPositionInCenter({lineNumber:20,column:1})}},[Te,Ne.current,Z]);function Pe(){var yt=Ne.current.instance;if(yt){var gt=yt.getSelection(),wt=Ne.current.pastePos||{},Qt=new n.Range(wt.startLineNumber||gt.endLineNumber,wt.startColumn||gt.endColumn,wt.endLineNumber||gt.endLineNumber,wt.endColumn||gt.endColumn);setTimeout(function(){yt.executeEdits("",[{range:Qt,text:""}])},300)}}function ke(yt){(window.navigator.platform.match("Mac")?yt.metaKey:yt.ctrlKey)&&yt.keyCode==83&&(yt.preventDefault(),Ue())}var Qe=function(){if(et&&Ne.current.instance){var gt=Ne.current.instance.getContentHeight();ot(gt0||$e.target.offsetWidth>0)&&et.layout()}}catch(tt){Oe.e(tt)}finally{Oe.f()}}),ne.observe(he.current)),ne}Object(F.useEffect)(function(){he.current&&Promise.all([M.e(16),M.e(28)]).then(M.t.bind(null,"M/lh",7)).then(function(et){n=et;var ne=n.editor.createDiffEditor(he.current,Object(J.a)(Object(J.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},Le),{},{wordWrap:!0}));Ze(ne);var be=Xe(ne);return function(){ne.dispose();var Oe=ne.getModel();Oe&&Oe.dispose(),be.unobserve(he.current)}})},[]),Object(F.useEffect)(function(){at&&at.setModel({original:n.editor.createModel(Ae,Ee),modified:n.editor.createModel(we,Ee)})},[Ae,we,Ee,at]);var it=x(V),Ue=x(se),Ve={width:it,height:Ue};return e.a.createElement("div",{className:"my-diff-editor",ref:he,style:Ve})}},ZpRC:function(qe,ce,M){"use strict";function J(m){return typeof m=="object"&&m!=null&&m.nodeType===1}function B(m,v){return(!v||m!=="hidden")&&m!=="visible"&&m!=="clip"}function L(m,v){if(m.clientHeightv||l>m&&o=v&&i>=d?l-m-s:o>v&&id?o-v+a:0}var S=function(m,v){var d=window,s=v.scrollMode,a=v.block,l=v.inline,o=v.boundary,i=v.skipOverflowHiddenElements,r=typeof o=="function"?o:function(et){return et!==o};if(!J(m))throw new TypeError("Invalid target");for(var t=document.scrollingElement||document.documentElement,E=[],b=m;J(b)&&r(b);){if((b=b.parentElement)===t){E.push(b);break}b!=null&&b===document.body&&L(b)&&!L(document.documentElement)||b!=null&&L(b,i)&&E.push(b)}for(var y=d.visualViewport?d.visualViewport.width:innerWidth,w=d.visualViewport?d.visualViewport.height:innerHeight,T=window.scrollX||pageXOffset,p=window.scrollY||pageYOffset,c=m.getBoundingClientRect(),u=c.height,h=c.width,x=c.top,g=c.right,f=c.bottom,R=c.left,I=a==="start"||a==="nearest"?x:a==="end"?f:x+u/2,n=l==="center"?R+h/2:l==="end"?g:R,P=[],W=0;W=0&&R>=0&&f<=w&&g<=y&&x>=se&&f<=we&&R>=Ee&&g<=Ae)return P;var Se=getComputedStyle(D),Le=parseInt(Se.borderLeftWidth,10),he=parseInt(Se.borderTopWidth,10),ee=parseInt(Se.borderRightWidth,10),Be=parseInt(Se.borderBottomWidth,10),at=0,Ze=0,Xe="offsetWidth"in D?D.offsetWidth-D.clientWidth-Le-ee:0,it="offsetHeight"in D?D.offsetHeight-D.clientHeight-he-Be:0;if(t===D)at=a==="start"?I:a==="end"?I-w:a==="nearest"?N(p,p+w,w,he,Be,p+I,p+I+u,u):I-w/2,Ze=l==="start"?n:l==="center"?n-y/2:l==="end"?n-y:N(T,T+y,y,Le,ee,T+n,T+n+h,h),at=Math.max(0,at+p),Ze=Math.max(0,Ze+T);else{at=a==="start"?I-se-he:a==="end"?I-we+Be+it:a==="nearest"?N(se,we,V,he,Be+it,I,I+u,u):I-(se+V/2)+it/2,Ze=l==="start"?n-Ee-Le:l==="center"?n-(Ee+oe/2)+Xe/2:l==="end"?n-Ae+ee+Xe:N(Ee,Ae,oe,Le,ee+Xe,n,n+h,h);var Ue=D.scrollLeft,Ve=D.scrollTop;I+=Ve-(at=Math.max(0,Math.min(Ve+at,D.scrollHeight-V+it))),n+=Ue-(Ze=Math.max(0,Math.min(Ue+Ze,D.scrollWidth-oe+Xe)))}P.push({el:D,top:at,left:Ze})}return P};function A(m){return m===Object(m)&&Object.keys(m).length!==0}function H(m,v){v===void 0&&(v="auto");var d="scrollBehavior"in document.body.style;m.forEach(function(s){var a=s.el,l=s.top,o=s.left;a.scroll&&d?a.scroll({top:l,left:o,behavior:v}):(a.scrollTop=l,a.scrollLeft=o)})}function F(m){return m===!1?{block:"end",inline:"nearest"}:A(m)?m:{block:"start",inline:"nearest"}}function e(m,v){var d=!m.ownerDocument.documentElement.contains(m);if(A(v)&&typeof v.behavior=="function")return v.behavior(d?[]:S(m,v));if(d)return;var s=F(v);return H(S(m,s),s.behavior)}var O=ce.a=e},"a83/":function(qe,ce){qe.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABGCAYAAAA6hjFpAAAAAXNSR0IArs4c6QAAAppJREFUeAHtnGlrwkAYhN+oiIiK6AdBwf//s/SD94EX3kc7SxXFxFIb21mZhWKy2YTJPJk9tBpMp9OTqdA4kKBRIiHOAQEhexAEREDIHCCTo4QICJkDZHKUEAEhc4BMjhIiIGQOkMlRQgSEzAEyOUqIgJA5QCZHCREQMgfI5CghAkLmAJkcJURAyBwgk6OECAiZA2RylBABIXOATE6KTM9FTq/Xs9lsdtmPc6NQKFilUonzkrFdixYIYARBYOl0OrabxYW2260DLSBP2JpKpaxerz9xZvQpjUbDdrtddIN/PuLloL7ZbOx0es9/SabtssIeVIBotVp2OBxcd1atVi2bzYY19bbOq4QMBgMHA24jId1u11vjo4R7BWS/39/cB5Lybl2XV0Dy+fwNkFwu57qum8qvndVqZZ1Ox8bjsVfQvBpDyuWyJZNJg9mYDpdKpTAWbmrbbrfteDzaYrFw7Wu1WmhbtkqvgMC8YrHo/h4ZiUUlYJzLcrl0SYkCeG7H8OodkO9Mw4JyvV7fNRuNRpbJZO7q2Sq8GkM+vw8ZavbZVKRiOByed+9eMSu7Ts5dA4IKLxKCmRTWHxg7UNBtofvBeHJdAAMzr6jy6FjUOX9d70VC+v3+BQYMmkwm1mw2bT6fX/zCNhLke6FPCEwOe9cXTzu6ICwWE4kE9ftTP3lIqIFgIYh0PCoA40NX9Ogero9Rd1nvtgq/Nj5qmxpIlOh3rhcQMrq0QPAx66vKK6/9W82BfnzmtxbGez5tQuK9TX+uJiBkrAREQMgcIJOjhAgImQNkcpQQASFzgEyOEiIgZA6QyVFCBITMATI5SoiAkDlAJkcJERAyB8jkKCECQuYAmRwlREDIHCCTo4QICJkDZHKUEAEhc4BMzgdb8clCZGraXQAAAABJRU5ErkJggg=="},bT9E:function(qe,ce,M){"use strict";M.d(ce,"a",function(){return B});var J=M("VTBJ");function B(L,N){var S=Object(J.a)({},L);return Array.isArray(N)&&N.forEach(function(A){delete S[A]}),S}},biw7:function(qe,ce,M){"use strict";var J=M("q1tI"),B=M.n(J),L=J.createContext(null);ce.a=L},cw1j:function(qe,ce,M){"use strict";var J=M("k1fw"),B=M("tJVT"),L=M("5NDa"),N=M("5rEg"),S=M("q1tI"),A=M.n(S),H=M("NKYn"),F=M("tJYV"),e=M.n(F),O=N.a.TextArea,m=function(d){var s=d.item,a=d.answerData,l=d.changeScoreData,o=d.textValue,i=d.textOnChange,r=i===void 0?function(){}:i,t=d.seeAnswerVisible,E=t===void 0?!0:t,b=Object(S.useState)([]),y=Object(B.a)(b,2),w=y[0],T=y[1],p=Object(S.useState)(!1),c=Object(B.a)(p,2),u=c[0],h=c[1];return Object(S.useEffect)(function(){l!=null&&l[s.q_position]?!u&&h(!0):u&&h(!1)},[l==null?void 0:l[s==null?void 0:s.q_position]]),Object(S.useEffect)(function(){for(var x=[],g=function(I){var n,P=(s==null||((n=s.user_answer)===null||n===void 0)?void 0:n.find(function(W){return W.choice_id===I+1}))||{choice_id:I+1,answer_text:""};x.push(Object(J.a)({},P))},f=0;f<(s==null?void 0:s.multi_count);f++)g(f);T(x)},[s==null?void 0:s.user_answer]),A.a.createElement("div",{className:e.a.fillBg},A.a.createElement("aside",{className:"font14 c-light-primary mb5"},"\u5B66\u751F\u7B54\u9898"),w==null?void 0:w.map(function(x,g){return A.a.createElement("div",null,A.a.createElement("span",null,"\u7B54\u6848(\u586B\u7A7A",g+1,"):"),A.a.createElement("div",{dangerouslySetInnerHTML:{__html:(x==null?void 0:x.answer_text)||""}}))}),E&&A.a.createElement(H.a,{data:s}))};ce.a=m},dmUQ:function(qe,ce,M){"use strict";var J=M("Ff2n"),B=M("rePB"),L=M("1OyB"),N=M("vuIU"),S=M("Ji7U"),A=M("md7G"),H=M("foSv"),F=M("q1tI"),e=M.n(F),O=M("TSYQ"),m=M.n(O),v=M("4IlW");function d(u,h){var x=Object.keys(u);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(u);h&&(g=g.filter(function(f){return Object.getOwnPropertyDescriptor(u,f).enumerable})),x.push.apply(x,g)}return x}function s(u){for(var h=1;h1?oe-1:0),Ae=1;Ae1?W-1:0),K=1;K=0)return parseInt(P.slice(P.indexOf("e-")+2),10);var W=0;return P.indexOf(".")>=0&&(W=P.length-P.indexOf(".")-1),W},f.getInputDisplayValue=function(n){var P=n||f.state,W=P.focused,D=P.inputValue,K=P.value,V;W?V=D:V=f.toPrecisionAsStep(K),V==null&&(V="");var oe=f.formatWrapper(V);return y(f.props.decimalSeparator)&&(oe=oe.toString().replace(".",f.props.decimalSeparator)),oe},f.recordCursorPosition=function(){try{f.cursorStart=f.input.selectionStart,f.cursorEnd=f.input.selectionEnd,f.currentValue=f.input.value,f.cursorBefore=f.input.value.substring(0,f.cursorStart),f.cursorAfter=f.input.value.substring(f.cursorEnd)}catch(n){}},f.restoreByAfter=function(n){if(n===void 0)return!1;var P=f.input.value,W=P.lastIndexOf(n);if(W===-1)return!1;var D=f.cursorBefore.length;return f.lastKeyCode===v.a.DELETE&&f.cursorBefore.charAt(D-1)===n[0]?(f.fixCaret(D,D),!0):W+n.length===P.length?(f.fixCaret(W,W),!0):!1},f.partRestoreByAfter=function(n){return n===void 0?!1:Array.prototype.some.call(n,function(P,W){var D=n.substring(W);return f.restoreByAfter(D)})},f.isNotCompleteNumber=function(n){return isNaN(n)||n===""||n===null||n&&n.toString().indexOf(".")===n.toString().length-1},f.stop=function(){f.autoStepTimer&&clearTimeout(f.autoStepTimer)},f.down=function(n,P,W){f.pressingUpOrDown=!0,f.step("down",n,P,W)},f.up=function(n,P,W){f.pressingUpOrDown=!0,f.step("up",n,P,W)},f.saveInput=function(n){f.input=n};var R=g.value;R===void 0&&(R=g.defaultValue),f.state={focused:g.autoFocus};var I=f.getValidValue(f.toNumber(R));return f.state=s(s({},f.state),{},{inputValue:f.toPrecisionAsStep(I),value:I}),f}return Object(N.a)(x,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(f){var R=this.props,I=R.value,n=R.onChange,P=R.max,W=R.min,D=this.state.focused;if(f){if(!w(f.value,I)||!w(f.max,P)||!w(f.min,W)){var K=D?I:this.getValidValue(I),V;this.pressingUpOrDown?V=K:this.inputting?V=this.rawInput:V=this.toPrecisionAsStep(K),this.setState({value:K,inputValue:V})}var oe="value"in this.props?I:this.state.value;"max"in this.props&&f.max!==P&&typeof oe=="number"&&oe>P&&n&&n(P),"min"in this.props&&f.min!==W&&typeof oe=="number"&&oe1&&arguments[1]!==void 0?arguments[1]:this.props.min,I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,n=parseFloat(f);return isNaN(n)?f:(nI&&(n=I),n)}},{key:"setValue",value:function(f,R){var I=this.props.precision,n=this.isNotCompleteNumber(parseFloat(f))?null:parseFloat(f),P=this.state.value,W=P===void 0?null:P,D=this.state.inputValue,K=D===void 0?null:D,V=typeof n=="number"?n.toFixed(I):"".concat(n),oe=n!==W||V!=="".concat(K);return"value"in this.props?(K=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:K},R)):this.setState({value:n,inputValue:this.toPrecisionAsStep(f)},R),oe&&this.props.onChange(n),n}},{key:"getMaxPrecision",value:function(f){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,I=this.props,n=I.precision,P=I.step;if(y(n))return n;var W=this.getPrecision(R),D=this.getPrecision(P),K=this.getPrecision(f);return f?Math.max(K,W+D):W+D}},{key:"getPrecisionFactor",value:function(f){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,I=this.getMaxPrecision(f,R);return Math.pow(10,I)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(f){return this.props.formatter?this.props.formatter(f):f}},{key:"toPrecisionAsStep",value:function(f){if(this.isNotCompleteNumber(f)||f==="")return f;var R=Math.abs(this.getMaxPrecision(f));return isNaN(R)?f.toString():Number(f).toFixed(R)}},{key:"toNumber",value:function(f){var R=this.props.precision,I=this.state.focused,n=f&&f.length>16&&I;return this.isNotCompleteNumber(f)||n?f:y(R)?Math.round(f*Math.pow(10,R))/Math.pow(10,R):Number(f)}},{key:"upStep",value:function(f,R){var I=this.props.step,n=this.getPrecisionFactor(f,R),P=Math.abs(this.getMaxPrecision(f,R)),W=((n*f+n*I*R)/n).toFixed(P);return this.toNumber(W)}},{key:"downStep",value:function(f,R){var I=this.props.step,n=this.getPrecisionFactor(f,R),P=Math.abs(this.getMaxPrecision(f,R)),W=((n*f-n*I*R)/n).toFixed(P);return this.toNumber(W)}},{key:"step",value:function(f,R){var I=this,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,P=arguments.length>3?arguments[3]:void 0;this.stop(),R&&(R.persist(),R.preventDefault());var W=this.props;if(W.disabled)return;var D=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(D))return;var K=this["".concat(f,"Step")](D,n),V=K>W.max||KW.max?K=W.max:K=se),Ne=(ut||ut===0)&&(isNaN(ut)||Number(ut)<=Ae),pe=Me||n||P,ae=Ne||n||P,le=m()("".concat(I,"-handler"),"".concat(I,"-handler-up"),Object(B.a)({},"".concat(I,"-handler-up-disabled"),pe)),Y=m()("".concat(I,"-handler"),"".concat(I,"-handler-down"),Object(B.a)({},"".concat(I,"-handler-down-disabled"),ae)),Q=W?{onTouchStart:pe?o:this.up,onTouchEnd:this.stop}:{onMouseDown:pe?o:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},te=W?{onTouchStart:ae?o:this.down,onTouchEnd:this.stop}:{onMouseDown:ae?o:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return e.a.createElement("div",{className:Te,style:we,title:Ee,onMouseEnter:Se,onMouseLeave:Le,onMouseOver:he,onMouseOut:ee,onFocus:function(){return null},onBlur:function(){return null}},e.a.createElement("div",{className:"".concat(I,"-handler-wrap")},e.a.createElement("span",Object.assign({unselectable:"on"},Q,{role:"button","aria-label":"Increase Value","aria-disabled":pe,className:le}),K||e.a.createElement("span",{unselectable:"on",className:"".concat(I,"-handler-up-inner"),onClick:i})),e.a.createElement("span",Object.assign({unselectable:"on"},te,{role:"button","aria-label":"Decrease Value","aria-disabled":ae,className:Y}),V||e.a.createElement("span",{unselectable:"on",className:"".concat(I,"-handler-down-inner"),onClick:i}))),e.a.createElement("div",{className:"".concat(I,"-input-wrap")},e.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Ae,"aria-valuemax":se,"aria-valuenow":ut,required:Be,type:Xe,placeholder:it,onPaste:$e,onClick:at,onMouseUp:this.onMouseUp,className:"".concat(I,"-input"),tabIndex:Ze,autoComplete:D,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:je?this.onKeyDown:o,onKeyUp:je?this.onKeyUp:o,autoFocus:Oe,maxLength:be,readOnly:P,disabled:n,max:se,min:Ae,step:ne,name:Re,title:Ee,id:Ue,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(ze),pattern:et,inputMode:Ve,onInput:tt},Ie))))}}]),x}(e.a.Component);T.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:b,min:-b,step:1,style:{},onChange:o,onKeyDown:o,onPressEnter:o,onFocus:o,onBlur:o,parser:r,required:!1,autoComplete:"off"};var p=T,c=ce.a=p},fjLI:function(qe,ce,M){"use strict";M.d(ce,"f",function(){return d}),M.d(ce,"b",function(){return s}),M.d(ce,"a",function(){return a}),M.d(ce,"d",function(){return l}),M.d(ce,"e",function(){return o}),M.d(ce,"c",function(){return i});var J=M("8HAY"),B=M("Vhoy"),L=M("MI8n"),N=M("JYp7"),S=M("pmY6"),A=M("24hK"),H=M("nnTU"),F=M("T8No"),e=M("Cg/j"),O=M("t9D7"),m=function(r,t,E,b){var y=arguments.length,w=y<3?t:b===null?b=Object.getOwnPropertyDescriptor(t,E):b,T;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(r,t,E,b);else for(var p=r.length-1;p>=0;p--)(T=r[p])&&(w=(y<3?T(w):y>3?T(t,E,w):T(t,E))||w);return y>3&&w&&Object.defineProperty(t,E,w),w},v=function(r,t){return function(E,b){t(E,b,r)}};function d(r){return r.command!==void 0}class s{constructor(r){this.id=s._idPool++,this._debugName=r}}s._idPool=0,s.CommandPalette=new s("CommandPalette"),s.EditorContext=new s("EditorContext"),s.SimpleEditorContext=new s("SimpleEditorContext"),s.EditorContextCopy=new s("EditorContextCopy"),s.EditorContextPeek=new s("EditorContextPeek"),s.MenubarEditMenu=new s("MenubarEditMenu"),s.MenubarCopy=new s("MenubarCopy"),s.MenubarGoMenu=new s("MenubarGoMenu"),s.MenubarSelectionMenu=new s("MenubarSelectionMenu"),s.InlineCompletionsActions=new s("InlineCompletionsActions");const a=Object(e.c)("menuService"),l=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new L.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:r=>r===s.CommandPalette}}addCommand(r){return this.addCommands(N.a.single(r))}addCommands(r){for(const t of r)this._commands.set(t.id,t);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(S.i)(()=>{let t=!1;for(const E of r)t=this._commands.delete(E.id)||t;t&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(r){return this._commands.get(r)}getCommands(){const r=new Map;return this._commands.forEach((t,E)=>r.set(E,t)),r}appendMenuItem(r,t){return this.appendMenuItems(N.a.single({id:r,item:t}))}appendMenuItems(r){const t=new Set,E=new A.a;for(const{id:b,item:y}of r){let w=this._menuItems.get(b);w||(w=new A.a,this._menuItems.set(b,w)),E.push(w.push(y)),t.add(b)}return this._onDidChangeMenu.fire(t),Object(S.i)(()=>{if(E.size>0){for(let b of E)b();this._onDidChangeMenu.fire(t),E.clear()}})}getMenuItems(r){let t;return this._menuItems.has(r)?t=[...this._menuItems.get(r)]:t=[],r===s.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(r){const t=new Set;for(const E of r)d(E)&&(t.add(E.command.id),E.alt&&t.add(E.alt.id));this._commands.forEach((E,b)=>{t.has(b)||r.push({command:E})})}};class o extends J.e{constructor(r,t,E,b){super(`submenuitem.${r.submenu.id}`,typeof r.title=="string"?r.title:r.title.value,[],"submenu");this.item=r,this._menuService=t,this._contextKeyService=E,this._options=b}get actions(){const r=[],t=this._menuService.createMenu(this.item.submenu,this._contextKeyService),E=t.getActions(this._options);t.dispose();for(const[,b]of E)b.length>0&&(r.push(...b),r.push(new J.d));return r.length&&r.pop(),r}}let i=class r{constructor(t,E,b,y,w){var T,p;if(this._commandService=w,this.id=t.id,this.label=(b==null?void 0:b.renderShortTitle)&&t.shortTitle?typeof t.shortTitle=="string"?t.shortTitle:t.shortTitle.value:typeof t.title=="string"?t.title:t.title.value,this.tooltip=(p=typeof t.tooltip=="string"?t.tooltip:(T=t.tooltip)===null||T===void 0?void 0:T.value)!==null&&p!==void 0?p:"",this.enabled=!t.precondition||y.contextMatchesRules(t.precondition),this.checked=void 0,t.toggled){const c=t.toggled.condition?t.toggled:{condition:t.toggled};this.checked=y.contextMatchesRules(c.condition),this.checked&&c.tooltip&&(this.tooltip=typeof c.tooltip=="string"?c.tooltip:c.tooltip.value),c.title&&(this.label=typeof c.title=="string"?c.title:c.title.value)}this.item=t,this.alt=E?new r(E,void 0,b,y,w):void 0,this._options=b,O.d.isThemeIcon(t.icon)&&(this.class=B.a.asClassName(t.icon))}dispose(){}run(...t){var E,b;let y=[];return((E=this._options)===null||E===void 0?void 0:E.arg)&&(y=[...y,this._options.arg]),((b=this._options)===null||b===void 0?void 0:b.shouldForwardArgs)&&(y=[...y,...t]),this._commandService.executeCommand(this.id,...y)}};i=m([v(3,F.b),v(4,H.b)],i)},fyJ8:function(qe,ce,M){"use strict";var J=M("rePB"),B=M("VTBJ"),L=M("Ff2n"),N=M("U8pU"),S=M("q1tI"),A=M.n(S),H=M("TSYQ"),F=M.n(H),e=M("c+Xe"),O=M("sR1s");function m(l){return l&&Object(N.a)(l)==="object"&&!Array.isArray(l)&&!S.isValidElement(l)}function v(l){return typeof l=="string"?!0:Object(e.c)(l)}function d(l,o){var i,r=l.prefixCls,t=l.className,E=l.record,b=l.index,y=l.dataIndex,w=l.render,T=l.children,p=l.component,c=p===void 0?"td":p,u=l.colSpan,h=l.rowSpan,x=l.fixLeft,g=l.fixRight,f=l.firstFixLeft,R=l.lastFixLeft,I=l.firstFixRight,n=l.lastFixRight,P=l.appendNode,W=l.additionalProps,D=W===void 0?{}:W,K=l.ellipsis,V=l.align,oe=l.rowType,se=l.isSticky,Ae="".concat(r,"-cell"),we,Ee;if(T)Ee=T;else{var Se=Object(O.b)(E,y);if(Ee=Se,w){var Le=w(Se,E,b);m(Le)?(Ee=Le.children,we=Le.props):Ee=Le}}Object(N.a)(Ee)==="object"&&!Array.isArray(Ee)&&!S.isValidElement(Ee)&&(Ee=null),K&&(R||I)&&(Ee=S.createElement("span",{className:"".concat(Ae,"-content")},Ee));var he=we||{},ee=he.colSpan,Be=he.rowSpan,at=he.style,Ze=he.className,Xe=Object(L.a)(he,["colSpan","rowSpan","style","className"]),it=ee!==void 0?ee:u,Ue=Be!==void 0?Be:h;if(it===0||Ue===0)return null;var Ve={},et=typeof x=="number",ne=typeof g=="number";et&&(Ve.position="sticky",Ve.left=x),ne&&(Ve.position="sticky",Ve.right=g);var be={};V&&(be.textAlign=V);var Oe,Re=K===!0?{showTitle:!0}:K;Re&&(Re.showTitle||oe==="header")&&(typeof Ee=="string"||typeof Ee=="number"?Oe=Ee.toString():S.isValidElement(Ee)&&typeof Ee.props.children=="string"&&(Oe=Ee.props.children));var $e=Object(B.a)(Object(B.a)(Object(B.a)({title:Oe},Xe),D),{},{colSpan:it&&it!==1?it:null,rowSpan:Ue&&Ue!==1?Ue:null,className:F()(Ae,t,(i={},Object(J.a)(i,"".concat(Ae,"-fix-left"),et),Object(J.a)(i,"".concat(Ae,"-fix-left-first"),f),Object(J.a)(i,"".concat(Ae,"-fix-left-last"),R),Object(J.a)(i,"".concat(Ae,"-fix-right"),ne),Object(J.a)(i,"".concat(Ae,"-fix-right-first"),I),Object(J.a)(i,"".concat(Ae,"-fix-right-last"),n),Object(J.a)(i,"".concat(Ae,"-ellipsis"),K),Object(J.a)(i,"".concat(Ae,"-with-append"),P),Object(J.a)(i,"".concat(Ae,"-fix-sticky"),(et||ne)&&se),i),D.className,Ze),style:Object(B.a)(Object(B.a)(Object(B.a)(Object(B.a)({},D.style),be),Ve),at),ref:v(c)?o:null});return S.createElement(c,Object.assign({},$e),P,Ee)}var s=S.forwardRef(d);s.displayName="Cell";var a=S.memo(s,function(l,o){return o.shouldCellUpdate?!o.shouldCellUpdate(o.record,l.record):!1});ce.a=a},gsRb:function(qe,ce,M){qe.exports=M.p+"static/partially-correct.e6f86f8b.png"},hW8S:function(qe,ce,M){"use strict";M.d(ce,"a",function(){return N}),M.d(ce,"c",function(){return S}),M.d(ce,"b",function(){return A});var J=M("VTBJ"),B=M("Ff2n"),L=M("Kwbf"),N="RC_TABLE_INTERNAL_COL_DEFINE";function S(H){var F=H.expandable,e=Object(B.a)(H,["expandable"]);return"expandable"in H?Object(J.a)(Object(J.a)({},e),F):e}function A(H){return Object.keys(H).reduce(function(F,e){return(e.substr(0,5)==="data-"||e.substr(0,5)==="aria-")&&(F[e]=H[e]),F},{})}},ic2d:function(qe,ce,M){"use strict";M.d(ce,"a",function(){return N});var J=M("FWmy"),B=M("746U");class L{constructor(){this.data=new Map}add(S,A){J.a(B.l(S)),J.a(B.k(A)),J.a(!this.data.has(S),"There is already an extension with this id"),this.data.set(S,A)}as(S){return this.data.get(S)||null}}const N=new L},k3GJ:function(qe,ce,M){"use strict";M.d(ce,"a",function(){return Zr});var J=M("rePB"),B=M("ODXe"),L=M("Ff2n"),N=M("VTBJ"),S=M("q1tI"),A=M("TSYQ"),H=M.n(A),F=M("Zm9Q"),e=M("6cGi"),O=M("KQm4"),m=M("xEkU"),v=M.n(m),d=M("t23M");function s(re){var ge=Object(S.useRef)(),_e=Object(S.useRef)(!1);function ue(){for(var z=arguments.length,q=new Array(z),X=0;XDe&&(Je=De-He),Object(S.useMemo)(function(){if(!q.length)return[0,0];for(var dt=q.length,Rt=dt,Gt=0;Gtxe+Je){Rt=Gt-1;break}}for(var Ft=0,Wt=dt-1;Wt>=0;Wt-=1){var Yt=re.get(q[Wt].key)||E;if(Yt[Ce]1&&arguments[1]!==void 0?arguments[1]:!1,ue=ge&&typeof ge.getBoundingClientRect=="function"&&ge.getBoundingClientRect().width;if(ue){if(_e){var z=getComputedStyle(ge),q=z.marginLeft,X=z.marginRight;ue+=+q.replace("px","")+ +X.replace("px","")}ue=+ue.toFixed(6)}return ue||0},Oe=function(ge,_e,ue){ge&&Object(I.a)(ge.style)==="object"&&(ge.style[_e]=ue)},Re=function(){return Ze.any},$e=M("bdgK"),tt=M("i8i4"),st=M.n(tt),rt=M("wgJM"),ut=M("l4aY"),ht=M("m+aA"),Te=M("c+Xe"),Ie=M("zT1h"),je=M("QC+M");function ze(re,ge,_e){return _e?re[0]===ge[0]:re[0]===ge[0]&&re[1]===ge[1]}function Me(re,ge,_e){var ue=re[ge]||{};return Object(N.a)(Object(N.a)({},ue),_e)}function Ne(re,ge,_e,ue){for(var z=_e.points,q=Object.keys(re),X=0;X1&&arguments[1]!==void 0?arguments[1]:2;ge();var q=Object(rt.a)(function(){z<=1?ue({isCanceled:function(){return q!==re.current}}):_e(ue,z-1)});re.current=q}return S.useEffect(function(){return function(){ge()}},[]),[_e,ge]},Qt=[_t,Dt,kt,ot],mn=!1,fn=!0;function wn(re){return re===kt||re===ot}var Cn=function(re,ge){var _e=S.useState(Pt),ue=Object(B.a)(_e,2),z=ue[0],q=ue[1],X=wt(),de=Object(B.a)(X,2),me=de[0],Ce=de[1];function xe(){q(_t)}return gt(function(){if(z!==Pt&&z!==ot){var De=Qt.indexOf(z),Fe=Qt[De+1],He=ge(z);He===mn?q(Fe):me(function(Je){function dt(){if(Je.isCanceled())return;q(Fe)}He===!0?dt():Promise.resolve(He).then(dt)})}},[re,z]),S.useEffect(function(){return function(){Ce()}},[]),[xe,z]},qt=function(re){var ge=Object(S.useRef)(),_e=Object(S.useRef)(re);_e.current=re;var ue=S.useCallback(function(X){_e.current(X)},[]);function z(X){X&&(X.removeEventListener(Qe,ue),X.removeEventListener(ke,ue))}function q(X){ge.current&&ge.current!==X&&z(ge.current),X&&X!==ge.current&&(X.addEventListener(Qe,ue),X.addEventListener(ke,ue),ge.current=X)}return S.useEffect(function(){return function(){z(ge.current)}},[]),[q,z]};function en(re,ge,_e,ue){var z=ue.motionEnter,q=z===void 0?!0:z,X=ue.motionAppear,de=X===void 0?!0:X,me=ue.motionLeave,Ce=me===void 0?!0:me,xe=ue.motionDeadline,De=ue.motionLeaveImmediately,Fe=ue.onAppearPrepare,He=ue.onEnterPrepare,Je=ue.onLeavePrepare,dt=ue.onAppearStart,Rt=ue.onEnterStart,Gt=ue.onLeaveStart,Bt=ue.onAppearActive,Ft=ue.onEnterActive,Wt=ue.onLeaveActive,Yt=ue.onAppearEnd,$t=ue.onEnterEnd,cn=ue.onLeaveEnd,Zt=ue.onVisibleChanged,jn=Kt(),En=Object(B.a)(jn,2),Lt=En[0],It=En[1],nn=Kt(Ye),ln=Object(B.a)(nn,2),Tt=ln[0],dn=ln[1],Dn=Kt(null),hn=Object(B.a)(Dn,2),Tn=hn[0],Nn=hn[1],Qn=Object(S.useRef)(!1),sr=Object(S.useRef)(null),Fn=Object(S.useRef)(!1),or=Object(S.useRef)(null);function _r(){var Pn=_e();return Pn||or.current}var dr=Object(S.useRef)(!1);function hr(Pn){var yn=_r();if(Pn&&!Pn.deadline&&Pn.target!==yn)return;var qn;Tt===vt&&dr.current?qn=Yt==null?void 0:Yt(yn,Pn):Tt===ft&&dr.current?qn=$t==null?void 0:$t(yn,Pn):Tt===mt&&dr.current&&(qn=cn==null?void 0:cn(yn,Pn)),qn!==!1&&!Fn.current&&(dn(Ye),Nn(null))}var Kn=qt(hr),ir=Object(B.a)(Kn,1),Zn=ir[0],Yn=S.useMemo(function(){var Pn,yn,qn;switch(Tt){case"appear":return Pn={},Object(J.a)(Pn,_t,Fe),Object(J.a)(Pn,Dt,dt),Object(J.a)(Pn,kt,Bt),Pn;case"enter":return yn={},Object(J.a)(yn,_t,He),Object(J.a)(yn,Dt,Rt),Object(J.a)(yn,kt,Ft),yn;case"leave":return qn={},Object(J.a)(qn,_t,Je),Object(J.a)(qn,Dt,Gt),Object(J.a)(qn,kt,Wt),qn;default:return{}}},[Tt]),Rr=Cn(Tt,function(Pn){if(Pn===_t){var yn=Yn[_t];return yn?yn(_r()):mn}if(An in Yn){var qn;Nn(((qn=Yn[An])===null||qn===void 0?void 0:qn.call(Yn,_r(),null))||null)}return An===kt&&(Zn(_r()),xe>0&&(clearTimeout(sr.current),sr.current=setTimeout(function(){hr({deadline:!0})},xe))),fn}),Ar=Object(B.a)(Rr,2),Br=Ar[0],An=Ar[1],wr=wn(An);dr.current=wr,gt(function(){It(ge);var Pn=Qn.current;if(Qn.current=!0,!re)return;var yn;!Pn&&ge&&de&&(yn=vt),Pn&&ge&&q&&(yn=ft),(Pn&&!ge&&Ce||!Pn&&De&&!ge&&Ce)&&(yn=mt),yn&&(dn(yn),Br())},[ge]),Object(S.useEffect)(function(){(Tt===vt&&!de||Tt===ft&&!q||Tt===mt&&!Ce)&&dn(Ye)},[de,q,Ce]),Object(S.useEffect)(function(){return function(){clearTimeout(sr.current),Fn.current=!0}},[]),Object(S.useEffect)(function(){Lt!==void 0&&Tt===Ye&&(Zt==null||Zt(Lt))},[Lt,Tt]);var Fr=Tn;return Yn[_t]&&An===Dt&&(Fr=Object(N.a)({transition:"none"},Fr)),[Tt,An,Fr,Lt!=null?Lt:ge]}var Ut=function(re){Object(c.a)(_e,re);var ge=Object(u.a)(_e);function _e(){return Object(w.a)(this,_e),ge.apply(this,arguments)}return Object(T.a)(_e,[{key:"render",value:function(){return this.props.children}}]),_e}(S.Component),Mt=Ut;function Nt(re){var ge=re;Object(I.a)(re)==="object"&&(ge=re.transitionSupport);function _e(z){return!!(z.motionName&&ge)}var ue=S.forwardRef(function(z,q){var X=z.visible,de=X===void 0?!0:X,me=z.removeOnLeave,Ce=me===void 0?!0:me,xe=z.forceRender,De=z.children,Fe=z.motionName,He=z.leavedClassName,Je=z.eventProps,dt=_e(z),Rt=Object(S.useRef)(),Gt=Object(S.useRef)();function Bt(){try{return Object(ht.a)(Rt.current||Gt.current)}catch(dn){return null}}var Ft=en(dt,de,Bt,z),Wt=Object(B.a)(Ft,4),Yt=Wt[0],$t=Wt[1],cn=Wt[2],Zt=Wt[3],jn=S.useRef(Zt);Zt&&(jn.current=!0);var En=Object(S.useRef)(q);En.current=q;var Lt=S.useCallback(function(dn){Rt.current=dn,Object(Te.b)(En.current,dn)},[]),It,nn=Object(N.a)(Object(N.a)({},Je),{},{visible:de});if(!De)It=null;else if(Yt===Ye||!_e(z))Zt?It=De(Object(N.a)({},nn),Lt):!Ce&&jn.current?It=De(Object(N.a)(Object(N.a)({},nn),{},{className:He}),Lt):xe?It=De(Object(N.a)(Object(N.a)({},nn),{},{style:{display:"none"}}),Lt):It=null;else{var ln,Tt;$t===_t?Tt="prepare":wn($t)?Tt="active":$t===Dt&&(Tt="start"),It=De(Object(N.a)(Object(N.a)({},nn),{},{className:H()(pt(Fe,Yt),(ln={},Object(J.a)(ln,pt(Fe,"".concat(Yt,"-").concat(Tt)),Tt),Object(J.a)(ln,Fe,typeof Fe=="string"),ln)),style:cn}),Lt)}return S.createElement(Mt,{ref:Gt},It)});return ue.displayName="CSSMotion",ue}var At=Nt(Pe),xt="add",Ct="keep",Ot="remove",zt="removed";function bn(re){var ge;return re&&Object(I.a)(re)==="object"&&"key"in re?ge=re:ge={key:re},Object(N.a)(Object(N.a)({},ge),{},{key:String(ge.key)})}function gn(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return re.map(bn)}function U(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_e=[],ue=0,z=ge.length,q=gn(re),X=gn(ge);q.forEach(function(Ce){for(var xe=!1,De=ue;De1});return me.forEach(function(Ce){_e=_e.filter(function(xe){var De=xe.key,Fe=xe.status;return De!==Ce||Fe!==Ot}),_e.forEach(function(xe){xe.key===Ce&&(xe.status=Ct)})}),_e}var _=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function C(re){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:At,_e=function(ue){Object(c.a)(q,ue);var z=Object(u.a)(q);function q(){var X;return Object(w.a)(this,q),X=z.apply(this,arguments),X.state={keyEntities:[]},X.removeKey=function(de){X.setState(function(me){var Ce=me.keyEntities;return{keyEntities:Ce.map(function(xe){return xe.key!==de?xe:Object(N.a)(Object(N.a)({},xe),{},{status:zt})})}})},X}return Object(T.a)(q,[{key:"render",value:function(){var de=this,me=this.state.keyEntities,Ce=this.props,xe=Ce.component,De=Ce.children,Fe=Ce.onVisibleChanged,He=Object(L.a)(Ce,["component","children","onVisibleChanged"]),Je=xe||S.Fragment,dt={};return _.forEach(function(Rt){dt[Rt]=He[Rt],delete He[Rt]}),delete He.keys,S.createElement(Je,He,me.map(function(Rt){var Gt=Rt.status,Bt=Object(L.a)(Rt,["status"]),Ft=Gt===xt||Gt===Ct;return S.createElement(ge,Object(y.a)({},dt,{key:Bt.key,visible:Ft,eventProps:Bt,onVisibleChanged:function(Yt){Fe==null||Fe(Yt,{key:Bt.key}),Yt||de.removeKey(Bt.key)}}),De)}))}}],[{key:"getDerivedStateFromProps",value:function(de,me){var Ce=de.keys,xe=me.keyEntities,De=gn(Ce),Fe=U(xe,De);return{keyEntities:Fe.filter(function(He){var Je=xe.find(function(dt){var Rt=dt.key;return He.key===Rt});return!(Je&&Je.status===zt&&He.status===Ot)})}}}]),q}(S.Component);return _e.defaultProps={component:"div"},_e}var k=C(Pe),G=At;function j(re){var ge=re.prefixCls,_e=re.motion,ue=re.animation,z=re.transitionName;return _e||(ue?{motionName:"".concat(ge,"-").concat(ue)}:z?{motionName:z}:null)}function ve(re){var ge=re.prefixCls,_e=re.visible,ue=re.zIndex,z=re.mask,q=re.maskMotion,X=re.maskAnimation,de=re.maskTransitionName;if(!z)return null;var me={};return(q||de||X)&&(me=Object(N.a)({motionAppear:!0},j({motion:q,prefixCls:ge,transitionName:de,animation:X}))),S.createElement(G,Object(y.a)({},me,{visible:_e,removeOnLeave:!0}),function(Ce){var xe=Ce.className;return S.createElement("div",{style:{zIndex:ue},className:H()("".concat(ge,"-mask"),xe)})})}var We=M("9mu1"),lt=M("o0o1"),ct=M.n(lt),Ge=M("HaE+"),bt=["measure","align",null,"motion"],St=function(re,ge){var _e=Object(S.useState)(null),ue=Object(B.a)(_e,2),z=ue[0],q=ue[1],X=Object(S.useRef)(),de=Object(S.useRef)(!1);function me(De){de.current||q(De)}function Ce(){rt.a.cancel(X.current)}function xe(De){Ce(),X.current=Object(rt.a)(function(){me(function(Fe){switch(z){case"align":return"motion";case"motion":return"stable";default:}return Fe}),De==null||De()})}return Object(S.useEffect)(function(){me("measure")},[re]),Object(S.useEffect)(function(){switch(z){case"measure":ge();break;default:}z&&(X.current=Object(rt.a)(Object(Ge.a)(ct.a.mark(function De(){var Fe,He;return ct.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:Fe=bt.indexOf(z),He=bt[Fe+1],He&&Fe!==-1&&me(He);case 3:case"end":return dt.stop()}},De)}))))},[z]),Object(S.useEffect)(function(){return function(){de.current=!0,Ce()}},[]),[z,xe]},an=function(re){var ge=S.useState({width:0,height:0}),_e=Object(B.a)(ge,2),ue=_e[0],z=_e[1];function q(de){z({width:de.offsetWidth,height:de.offsetHeight})}var X=S.useMemo(function(){var de={};if(re){var me=ue.width,Ce=ue.height;re.indexOf("height")!==-1&&Ce?de.height=Ce:re.indexOf("minHeight")!==-1&&Ce&&(de.minHeight=Ce),re.indexOf("width")!==-1&&me?de.width=me:re.indexOf("minWidth")!==-1&&me&&(de.minWidth=me)}return de},[re,ue]);return[X,q]},Bn=S.forwardRef(function(re,ge){var _e=re.visible,ue=re.prefixCls,z=re.className,q=re.style,X=re.children,de=re.zIndex,me=re.stretch,Ce=re.destroyPopupOnHide,xe=re.forceRender,De=re.align,Fe=re.point,He=re.getRootDomNode,Je=re.getClassNameFromAlign,dt=re.onAlign,Rt=re.onMouseEnter,Gt=re.onMouseLeave,Bt=re.onMouseDown,Ft=re.onTouchStart,Wt=Object(S.useRef)(),Yt=Object(S.useRef)(),$t=Object(S.useState)(),cn=Object(B.a)($t,2),Zt=cn[0],jn=cn[1],En=an(me),Lt=Object(B.a)(En,2),It=Lt[0],nn=Lt[1];function ln(){me&&nn(He())}var Tt=St(_e,ln),dn=Object(B.a)(Tt,2),Dn=dn[0],hn=dn[1],Tn=Object(S.useRef)();function Nn(){return Fe||He}function Qn(){var Kn;(Kn=Wt.current)===null||Kn===void 0||Kn.forceAlign()}function sr(Kn,ir){var Zn=Je(ir);Zt!==Zn&&jn(Zn),Dn==="align"&&(Zt!==Zn?Promise.resolve().then(function(){Qn()}):hn(function(){var Yn;(Yn=Tn.current)===null||Yn===void 0||Yn.call(Tn)}),dt==null||dt(Kn,ir))}var Fn=Object(N.a)({},j(re));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Kn){var ir=Fn[Kn];Fn[Kn]=function(Zn,Yn){return hn(),ir==null?void 0:ir(Zn,Yn)}});function or(){return new Promise(function(Kn){Tn.current=Kn})}S.useEffect(function(){!Fn.motionName&&Dn==="motion"&&hn()},[Fn.motionName,Dn]),S.useImperativeHandle(ge,function(){return{forceAlign:Qn,getElement:function(){return Yt.current}}});var _r=Object(N.a)(Object(N.a)({},It),{},{zIndex:de,opacity:Dn==="motion"||Dn==="stable"||!_e?void 0:0,pointerEvents:Dn==="stable"?void 0:"none"},q),dr=!0;(De==null?void 0:De.points)&&(Dn==="align"||Dn==="stable")&&(dr=!1);var hr=X;return S.Children.count(X)>1&&(hr=S.createElement("div",{className:"".concat(ue,"-content")},X)),S.createElement(G,Object(y.a)({visible:_e,ref:Yt,leavedClassName:"".concat(ue,"-hidden")},Fn,{onAppearPrepare:or,onEnterPrepare:or,removeOnLeave:Ce,forceRender:xe}),function(Kn,ir){var Zn=Kn.className,Yn=Kn.style,Rr=H()(ue,z,Zt,Zn);return S.createElement(We.a,{target:Nn(),key:"popup",ref:Wt,monitorWindowResize:!0,disabled:dr,align:De,onAlign:sr},S.createElement("div",{ref:ir,className:Rr,onMouseEnter:Rt,onMouseLeave:Gt,onMouseDownCapture:Bt,onTouchStartCapture:Ft,style:Object(N.a)(Object(N.a)({},Yn),_r)},hr))})});Bn.displayName="PopupInner";var Vn=Bn,Et=S.forwardRef(function(re,ge){var _e=re.prefixCls,ue=re.visible,z=re.zIndex,q=re.children,X=re.mobile;X=X===void 0?{}:X;var de=X.popupClassName,me=X.popupStyle,Ce=X.popupMotion,xe=Ce===void 0?{}:Ce,De=X.popupRender,Fe=S.useRef();S.useImperativeHandle(ge,function(){return{forceAlign:function(){},getElement:function(){return Fe.current}}});var He=Object(N.a)({zIndex:z},me),Je=q;return S.Children.count(q)>1&&(Je=S.createElement("div",{className:"".concat(_e,"-content")},q)),De&&(Je=De(Je)),S.createElement(G,Object(y.a)({visible:ue,ref:Fe,removeOnLeave:!0},xe),function(dt,Rt){var Gt=dt.className,Bt=dt.style,Ft=H()(_e,de,Gt);return S.createElement("div",{ref:Rt,className:Ft,style:Object(N.a)(Object(N.a)({},Bt),He)},Je)})});Et.displayName="MobilePopupInner";var Vt=Et,jt=["visible","mobile"],pn=S.forwardRef(function(re,ge){var _e=re.visible,ue=re.mobile,z=Object(L.a)(re,jt),q=Object(S.useState)(_e),X=Object(B.a)(q,2),de=X[0],me=X[1],Ce=Object(S.useState)(!1),xe=Object(B.a)(Ce,2),De=xe[0],Fe=xe[1],He=Object(N.a)(Object(N.a)({},z),{},{visible:de});Object(S.useEffect)(function(){me(_e),_e&&ue&&Fe(pe())},[_e,ue]);var Je=De?S.createElement(Vt,Object(y.a)({},He,{mobile:ue,ref:ge})):S.createElement(Vn,Object(y.a)({},He,{ref:ge}));return S.createElement("div",null,S.createElement(ve,He),Je)});pn.displayName="Popup";var Gn=pn,kn=S.createContext(null),Un=kn;function Sn(){}function er(){return""}function Mn(re){return re?re.ownerDocument:window.document}var tr=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function ar(re){var ge=function(_e){Object(c.a)(z,_e);var ue=Object(u.a)(z);function z(q){var X;Object(w.a)(this,z),X=ue.call(this,q),X.popupRef=S.createRef(),X.triggerRef=S.createRef(),X.attachId=void 0,X.clickOutsideHandler=void 0,X.touchOutsideHandler=void 0,X.contextMenuOutsideHandler1=void 0,X.contextMenuOutsideHandler2=void 0,X.mouseDownTimeout=void 0,X.focusTime=void 0,X.preClickTime=void 0,X.preTouchTime=void 0,X.delayTimer=void 0,X.hasPopupMouseDown=void 0,X.onMouseEnter=function(me){var Ce=X.props.mouseEnterDelay;X.fireEvents("onMouseEnter",me),X.delaySetPopupVisible(!0,Ce,Ce?null:me)},X.onMouseMove=function(me){X.fireEvents("onMouseMove",me),X.setPoint(me)},X.onMouseLeave=function(me){X.fireEvents("onMouseLeave",me),X.delaySetPopupVisible(!1,X.props.mouseLeaveDelay)},X.onPopupMouseEnter=function(){X.clearDelayTimer()},X.onPopupMouseLeave=function(me){var Ce;if(me.relatedTarget&&!me.relatedTarget.setTimeout&&Object(ut.a)((Ce=X.popupRef.current)===null||Ce===void 0?void 0:Ce.getElement(),me.relatedTarget))return;X.delaySetPopupVisible(!1,X.props.mouseLeaveDelay)},X.onFocus=function(me){X.fireEvents("onFocus",me),X.clearDelayTimer(),X.isFocusToShow()&&(X.focusTime=Date.now(),X.delaySetPopupVisible(!0,X.props.focusDelay))},X.onMouseDown=function(me){X.fireEvents("onMouseDown",me),X.preClickTime=Date.now()},X.onTouchStart=function(me){X.fireEvents("onTouchStart",me),X.preTouchTime=Date.now()},X.onBlur=function(me){X.fireEvents("onBlur",me),X.clearDelayTimer(),X.isBlurToHide()&&X.delaySetPopupVisible(!1,X.props.blurDelay)},X.onContextMenu=function(me){me.preventDefault(),X.fireEvents("onContextMenu",me),X.setPopupVisible(!0,me)},X.onContextMenuClose=function(){X.isContextMenuToShow()&&X.close()},X.onClick=function(me){if(X.fireEvents("onClick",me),X.focusTime){var Ce;if(X.preClickTime&&X.preTouchTime?Ce=Math.min(X.preClickTime,X.preTouchTime):X.preClickTime?Ce=X.preClickTime:X.preTouchTime&&(Ce=X.preTouchTime),Math.abs(Ce-X.focusTime)<20)return;X.focusTime=0}X.preClickTime=0,X.preTouchTime=0,X.isClickToShow()&&(X.isClickToHide()||X.isBlurToHide())&&me&&me.preventDefault&&me.preventDefault();var xe=!X.state.popupVisible;(X.isClickToHide()&&!xe||xe&&X.isClickToShow())&&X.setPopupVisible(!X.state.popupVisible,me)},X.onPopupMouseDown=function(){if(X.hasPopupMouseDown=!0,clearTimeout(X.mouseDownTimeout),X.mouseDownTimeout=window.setTimeout(function(){X.hasPopupMouseDown=!1},0),X.context){var me;(me=X.context).onPopupMouseDown.apply(me,arguments)}},X.onDocumentClick=function(me){if(X.props.mask&&!X.props.maskClosable)return;var Ce=me.target,xe=X.getRootDomNode(),De=X.getPopupDomNode();(!Object(ut.a)(xe,Ce)||X.isContextMenuOnly())&&!Object(ut.a)(De,Ce)&&!X.hasPopupMouseDown&&X.close()},X.getRootDomNode=function(){var me=X.props.getTriggerDOMNode;if(me)return me(X.triggerRef.current);try{var Ce=Object(ht.a)(X.triggerRef.current);if(Ce)return Ce}catch(xe){}return st.a.findDOMNode(Object(p.a)(X))},X.getPopupClassNameFromAlign=function(me){var Ce=[],xe=X.props,De=xe.popupPlacement,Fe=xe.builtinPlacements,He=xe.prefixCls,Je=xe.alignPoint,dt=xe.getPopupClassNameFromAlign;return De&&Fe&&Ce.push(Ne(Fe,He,me,Je)),dt&&Ce.push(dt(me)),Ce.join(" ")},X.getComponent=function(){var me=X.props,Ce=me.prefixCls,xe=me.destroyPopupOnHide,De=me.popupClassName,Fe=me.onPopupAlign,He=me.popupMotion,Je=me.popupAnimation,dt=me.popupTransitionName,Rt=me.popupStyle,Gt=me.mask,Bt=me.maskAnimation,Ft=me.maskTransitionName,Wt=me.maskMotion,Yt=me.zIndex,$t=me.popup,cn=me.stretch,Zt=me.alignPoint,jn=me.mobile,En=me.forceRender,Lt=X.state,It=Lt.popupVisible,nn=Lt.point,ln=X.getPopupAlign(),Tt={};return X.isMouseEnterToShow()&&(Tt.onMouseEnter=X.onPopupMouseEnter),X.isMouseLeaveToHide()&&(Tt.onMouseLeave=X.onPopupMouseLeave),Tt.onMouseDown=X.onPopupMouseDown,Tt.onTouchStart=X.onPopupMouseDown,S.createElement(Gn,Object(y.a)({prefixCls:Ce,destroyPopupOnHide:xe,visible:It,point:Zt&&nn,className:De,align:ln,onAlign:Fe,animation:Je,getClassNameFromAlign:X.getPopupClassNameFromAlign},Tt,{stretch:cn,getRootDomNode:X.getRootDomNode,style:Rt,mask:Gt,zIndex:Yt,transitionName:dt,maskAnimation:Bt,maskTransitionName:Ft,maskMotion:Wt,ref:X.popupRef,motion:He,mobile:jn,forceRender:En}),typeof $t=="function"?$t():$t)},X.attachParent=function(me){rt.a.cancel(X.attachId);var Ce=X.props,xe=Ce.getPopupContainer,De=Ce.getDocument,Fe=X.getRootDomNode(),He;xe?(Fe||xe.length===0)&&(He=xe(Fe)):He=De(X.getRootDomNode()).body,He?He.appendChild(me):X.attachId=Object(rt.a)(function(){X.attachParent(me)})},X.getContainer=function(){var me=X.props.getDocument,Ce=me(X.getRootDomNode()).createElement("div");return Ce.style.position="absolute",Ce.style.top="0",Ce.style.left="0",Ce.style.width="100%",X.attachParent(Ce),Ce},X.setPoint=function(me){var Ce=X.props.alignPoint;if(!Ce||!me)return;X.setState({point:{pageX:me.pageX,pageY:me.pageY}})},X.handlePortalUpdate=function(){X.state.prevPopupVisible!==X.state.popupVisible&&X.props.afterPopupVisibleChange(X.state.popupVisible)},X.triggerContextValue={onPopupMouseDown:X.onPopupMouseDown};var de;return"popupVisible"in q?de=!!q.popupVisible:de=!!q.defaultPopupVisible,X.state={prevPopupVisible:de,popupVisible:de},tr.forEach(function(me){X["fire".concat(me)]=function(Ce){X.fireEvents(me,Ce)}}),X}return Object(T.a)(z,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var X=this.props,de=this.state;if(de.popupVisible){var me;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(me=X.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Ie.a)(me,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(me=me||X.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Ie.a)(me,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(me=me||X.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Ie.a)(me,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Ie.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),rt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var X;return((X=this.popupRef.current)===null||X===void 0?void 0:X.getElement())||null}},{key:"getPopupAlign",value:function(){var X=this.props,de=X.popupPlacement,me=X.popupAlign,Ce=X.builtinPlacements;return de&&Ce?Me(Ce,de,me):me}},{key:"setPopupVisible",value:function(X,de){var me=this.props.alignPoint,Ce=this.state.popupVisible;this.clearDelayTimer(),Ce!==X&&("popupVisible"in this.props||this.setState({popupVisible:X,prevPopupVisible:Ce}),this.props.onPopupVisibleChange(X)),me&&de&&X&&this.setPoint(de)}},{key:"delaySetPopupVisible",value:function(X,de,me){var Ce=this,xe=de*1e3;if(this.clearDelayTimer(),xe){var De=me?{pageX:me.pageX,pageY:me.pageY}:null;this.delayTimer=window.setTimeout(function(){Ce.setPopupVisible(X,De),Ce.clearDelayTimer()},xe)}else this.setPopupVisible(X,me)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(X){var de=this.props.children.props,me=this.props;return de[X]&&me[X]?this["fire".concat(X)]:de[X]||me[X]}},{key:"isClickToShow",value:function(){var X=this.props,de=X.action,me=X.showAction;return de.indexOf("click")!==-1||me.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var X=this.props.action;return X==="contextMenu"||X.length===1&&X[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var X=this.props,de=X.action,me=X.showAction;return de.indexOf("contextMenu")!==-1||me.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var X=this.props,de=X.action,me=X.hideAction;return de.indexOf("click")!==-1||me.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var X=this.props,de=X.action,me=X.showAction;return de.indexOf("hover")!==-1||me.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var X=this.props,de=X.action,me=X.hideAction;return de.indexOf("hover")!==-1||me.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var X=this.props,de=X.action,me=X.showAction;return de.indexOf("focus")!==-1||me.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var X=this.props,de=X.action,me=X.hideAction;return de.indexOf("focus")!==-1||me.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var X;(X=this.popupRef.current)===null||X===void 0||X.forceAlign()}}},{key:"fireEvents",value:function(X,de){var me=this.props.children.props[X];me&&me(de);var Ce=this.props[X];Ce&&Ce(de)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var X=this.state.popupVisible,de=this.props,me=de.children,Ce=de.forceRender,xe=de.alignPoint,De=de.className,Fe=de.autoDestroy,He=S.Children.only(me),Je={key:"trigger"};this.isContextMenuToShow()?Je.onContextMenu=this.onContextMenu:Je.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Je.onClick=this.onClick,Je.onMouseDown=this.onMouseDown,Je.onTouchStart=this.onTouchStart):(Je.onClick=this.createTwoChains("onClick"),Je.onMouseDown=this.createTwoChains("onMouseDown"),Je.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Je.onMouseEnter=this.onMouseEnter,xe&&(Je.onMouseMove=this.onMouseMove)):Je.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Je.onMouseLeave=this.onMouseLeave:Je.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Je.onFocus=this.onFocus,Je.onBlur=this.onBlur):(Je.onFocus=this.createTwoChains("onFocus"),Je.onBlur=this.createTwoChains("onBlur"));var dt=H()(He&&He.props&&He.props.className,De);dt&&(Je.className=dt);var Rt=Object(N.a)({},Je);Object(Te.c)(He)&&(Rt.ref=Object(Te.a)(this.triggerRef,He.ref));var Gt=S.cloneElement(He,Rt),Bt;return(X||this.popupRef.current||Ce)&&(Bt=S.createElement(re,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!X&&Fe&&(Bt=null),S.createElement(Un.Provider,{value:this.triggerContextValue},Gt,Bt)}}],[{key:"getDerivedStateFromProps",value:function(X,de){var me=X.popupVisible,Ce={};return me!==void 0&&de.popupVisible!==me&&(Ce.popupVisible=me,Ce.prevPopupVisible=de.popupVisible),Ce}}]),z}(S.Component);return ge.contextType=Un,ge.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:er,getDocument:Mn,onPopupVisibleChange:Sn,afterPopupVisibleChange:Sn,onPopupAlign:Sn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},ge}var Jn=ar(je.a),In={adjustX:1,adjustY:1},Xn={topLeft:{points:["bl","tl"],overflow:In,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:In,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:In,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:In,offset:[4,0]}},nr={topLeft:{points:["bl","tl"],overflow:In,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:In,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:In,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:In,offset:[4,0]}},rr=Xn,_n=0,Jt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},On=function(ge,_e,ue){var z=Ue(_e),q=ge.getState();ge.setState({defaultActiveFirst:Object(N.a)(Object(N.a)({},q.defaultActiveFirst),{},Object(J.a)({},z,ue))})},Xt=function(re){Object(c.a)(_e,re);var ge=Object(u.a)(_e);function _e(ue){var z;Object(w.a)(this,_e),z=ge.call(this,ue),z.onDestroy=function(xe){z.props.onDestroy(xe)},z.onKeyDown=function(xe){var De=xe.keyCode,Fe=z.menuInstance,He=z.props.store,Je=z.getVisible();if(De===l.a.ENTER)return z.onTitleClick(xe),On(He,z.props.eventKey,!0),!0;if(De===l.a.RIGHT)return Je?Fe.onKeyDown(xe):(z.triggerOpenChange(!0),On(He,z.props.eventKey,!0)),!0;if(De===l.a.LEFT){var dt;if(Je)dt=Fe.onKeyDown(xe);else return;return dt||(z.triggerOpenChange(!1),dt=!0),dt}return Je&&(De===l.a.UP||De===l.a.DOWN)?Fe.onKeyDown(xe):void 0},z.onOpenChange=function(xe){z.props.onOpenChange(xe)},z.onPopupVisibleChange=function(xe){z.triggerOpenChange(xe,xe?"mouseenter":"mouseleave")},z.onMouseEnter=function(xe){var De=z.props,Fe=De.eventKey,He=De.onMouseEnter,Je=De.store;On(Je,z.props.eventKey,!1),He({key:Fe,domEvent:xe})},z.onMouseLeave=function(xe){var De=z.props,Fe=De.parentMenu,He=De.eventKey,Je=De.onMouseLeave;Fe.subMenuInstance=Object(p.a)(z),Je({key:He,domEvent:xe})},z.onTitleMouseEnter=function(xe){var De=z.props,Fe=De.eventKey,He=De.onItemHover,Je=De.onTitleMouseEnter;He({key:Fe,hover:!0}),Je({key:Fe,domEvent:xe})},z.onTitleMouseLeave=function(xe){var De=z.props,Fe=De.parentMenu,He=De.eventKey,Je=De.onItemHover,dt=De.onTitleMouseLeave;Fe.subMenuInstance=Object(p.a)(z),Je({key:He,hover:!1}),dt({key:He,domEvent:xe})},z.onTitleClick=function(xe){var De=Object(p.a)(z),Fe=De.props;if(Fe.onTitleClick({key:Fe.eventKey,domEvent:xe}),Fe.triggerSubMenuAction==="hover")return;z.triggerOpenChange(!z.getVisible(),"click"),On(Fe.store,z.props.eventKey,!1)},z.onSubMenuClick=function(xe){typeof z.props.onClick=="function"&&z.props.onClick(z.addKeyPath(xe))},z.onSelect=function(xe){z.props.onSelect(xe)},z.onDeselect=function(xe){z.props.onDeselect(xe)},z.getPrefixCls=function(){return"".concat(z.props.rootPrefixCls,"-submenu")},z.getActiveClassName=function(){return"".concat(z.getPrefixCls(),"-active")},z.getDisabledClassName=function(){return"".concat(z.getPrefixCls(),"-disabled")},z.getSelectedClassName=function(){return"".concat(z.getPrefixCls(),"-selected")},z.getOpenClassName=function(){return"".concat(z.props.rootPrefixCls,"-submenu-open")},z.getVisible=function(){return z.state.isOpen},z.getMode=function(){return z.state.mode},z.saveMenuInstance=function(xe){z.menuInstance=xe},z.addKeyPath=function(xe){return Object(N.a)(Object(N.a)({},xe),{},{keyPath:(xe.keyPath||[]).concat(z.props.eventKey)})},z.triggerOpenChange=function(xe,De){var Fe=z.props.eventKey,He=function(){z.onOpenChange({key:Fe,item:Object(p.a)(z),trigger:De,open:xe})};De==="mouseenter"?z.mouseenterTimeout=setTimeout(function(){He()},0):He()},z.isChildrenSelected=function(){var xe={find:!1};return et(z.props.children,z.props.selectedKeys,xe),xe.find},z.isInlineMode=function(){return z.getMode()==="inline"},z.adjustWidth=function(){if(!z.subMenuTitle||!z.menuInstance)return;var xe=tt.findDOMNode(z.menuInstance);if(xe.offsetWidth>=z.subMenuTitle.offsetWidth)return;xe.style.minWidth="".concat(z.subMenuTitle.offsetWidth,"px")},z.saveSubMenuTitle=function(xe){z.subMenuTitle=xe},z.getBaseProps=function(){var xe=Object(p.a)(z),De=xe.props,Fe=z.getMode();return{mode:Fe==="horizontal"?"vertical":Fe,visible:z.getVisible(),level:De.level+1,inlineIndent:De.inlineIndent,focusable:!1,onClick:z.onSubMenuClick,onSelect:z.onSelect,onDeselect:z.onDeselect,onDestroy:z.onDestroy,selectedKeys:De.selectedKeys,eventKey:"".concat(De.eventKey,"-menu-"),openKeys:De.openKeys,motion:De.motion,onOpenChange:z.onOpenChange,subMenuOpenDelay:De.subMenuOpenDelay,parentMenu:Object(p.a)(z),subMenuCloseDelay:De.subMenuCloseDelay,forceSubMenuRender:De.forceSubMenuRender,triggerSubMenuAction:De.triggerSubMenuAction,builtinPlacements:De.builtinPlacements,defaultActiveFirst:De.store.getState().defaultActiveFirst[Ue(De.eventKey)],multiple:De.multiple,prefixCls:De.rootPrefixCls,id:z.internalMenuId,manualRef:z.saveMenuInstance,itemIcon:De.itemIcon,expandIcon:De.expandIcon,direction:De.direction}},z.getMotion=function(xe,De){var Fe=Object(p.a)(z),He=Fe.haveRendered,Je=z.props,dt=Je.motion,Rt=Je.rootPrefixCls,Gt=Object(N.a)(Object(N.a)({},dt),{},{leavedClassName:"".concat(Rt,"-hidden"),removeOnLeave:!1,motionAppear:He||!De||xe!=="inline"});return Gt};var q=ue.store,X=ue.eventKey,de=q.getState(),me=de.defaultActiveFirst;z.isRootMenu=!1;var Ce=!1;return me&&(Ce=me[X]),On(q,X,Ce),z.state={mode:ue.mode,isOpen:ue.isOpen},z}return Object(T.a)(_e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var z=this,q=this.props,X=q.mode,de=q.parentMenu,me=q.manualRef,Ce=q.isOpen,xe=function(){z.setState({mode:X,isOpen:Ce})},De=Ce!==this.state.isOpen,Fe=X!==this.state.mode;if((Fe||De)&&(rt.a.cancel(this.updateStateRaf),Fe?this.updateStateRaf=Object(rt.a)(xe):xe()),me&&me(this),X!=="horizontal"||!(de==null?void 0:de.isRootMenu)||!Ce)return;this.minWidthTimeout=setTimeout(function(){return z.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var z=this.props,q=z.onDestroy,X=z.eventKey;q&&q(X),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),rt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(z,q){var X=this.getBaseProps();return S.createElement(Er,Object(y.a)({},X,{id:this.internalMenuId,className:z,style:q}),this.props.children)}},{key:"renderChildren",value:function(){var z=this,q=this.getBaseProps(),X=q.mode,de=q.visible,me=q.forceSubMenuRender,Ce=q.direction,xe=this.getMotion(X,de);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||de||me,!this.haveOpened)return S.createElement("div",null);var De=H()("".concat(q.prefixCls,"-sub"),Object(J.a)({},"".concat(q.prefixCls,"-rtl"),Ce==="rtl"));return this.isInlineMode()?S.createElement(G,Object(y.a)({visible:q.visible,forceRender:me},xe),function(Fe){var He=Fe.className,Je=Fe.style,dt=H()(De,He);return z.renderPopupMenu(dt,Je)}):this.renderPopupMenu(De)}},{key:"render",value:function(){var z,q,X,de=Object(N.a)({},this.props),me=this.getVisible(),Ce=this.getPrefixCls(),xe=this.isInlineMode(),De=this.getMode(),Fe=H()(Ce,"".concat(Ce,"-").concat(De),(z={},Object(J.a)(z,de.className,!!de.className),Object(J.a)(z,this.getOpenClassName(),me),Object(J.a)(z,this.getActiveClassName(),de.active||me&&!xe),Object(J.a)(z,this.getDisabledClassName(),de.disabled),Object(J.a)(z,this.getSelectedClassName(),this.isChildrenSelected()),z));this.internalMenuId||(de.eventKey?this.internalMenuId="".concat(de.eventKey,"$Menu"):(_n+=1,this.internalMenuId="$__$".concat(_n,"$Menu")));var He={},Je={},dt={};de.disabled||(He={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Je={onClick:this.onTitleClick},dt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Rt={},Gt=de.direction,Bt=Gt==="rtl";xe&&(Bt?Rt.paddingRight=de.inlineIndent*de.level:Rt.paddingLeft=de.inlineIndent*de.level);var Ft={};this.getVisible()&&(Ft={"aria-owns":this.internalMenuId});var Wt=null;De!=="horizontal"&&(Wt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Wt=S.createElement(this.props.expandIcon,Object(N.a)({},this.props))));var Yt=S.createElement("div",Object(y.a)({ref:this.saveSubMenuTitle,style:Rt,className:"".concat(Ce,"-title"),role:"button"},dt,Je,{"aria-expanded":me},Ft,{"aria-haspopup":"true",title:typeof de.title=="string"?de.title:void 0}),de.title,Wt||S.createElement("i",{className:"".concat(Ce,"-arrow")})),$t=this.renderChildren(),cn=((q=de.parentMenu)===null||q===void 0?void 0:q.isRootMenu)?de.parentMenu.props.getPopupContainer:function(Nn){return Nn.parentNode},Zt=Jt[De],jn=de.popupOffset?{offset:de.popupOffset}:{},En=H()((X={},Object(J.a)(X,de.popupClassName,de.popupClassName&&!xe),Object(J.a)(X,"".concat(Ce,"-rtl"),Bt),X)),Lt=de.disabled,It=de.triggerSubMenuAction,nn=de.subMenuOpenDelay,ln=de.forceSubMenuRender,Tt=de.subMenuCloseDelay,dn=de.builtinPlacements;ne.forEach(function(Nn){return delete de[Nn]}),delete de.onClick;var Dn=Bt?Object(N.a)(Object(N.a)({},nr),dn):Object(N.a)(Object(N.a)({},Xn),dn);delete de.direction;var hn=this.getBaseProps(),Tn=xe?null:this.getMotion(hn.mode,hn.visible);return S.createElement("li",Object(y.a)({},de,He,{className:Fe,role:"menuitem"}),S.createElement(Jn,{prefixCls:Ce,popupClassName:H()("".concat(Ce,"-popup"),En),getPopupContainer:cn,builtinPlacements:Dn,popupPlacement:Zt,popupVisible:xe?!1:me,popupAlign:jn,popup:xe?null:$t,action:Lt||xe?[]:[It],mouseEnterDelay:nn,mouseLeaveDelay:Tt,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:ln,popupMotion:Tn},Yt),xe?$t:null)}}]),_e}(S.Component);Xt.defaultProps={onMouseEnter:Xe,onMouseLeave:Xe,onTitleMouseEnter:Xe,onTitleMouseLeave:Xe,onTitleClick:Xe,manualRef:Xe,mode:"vertical",title:""};var Ht=Object(h.b)(function(re,ge){var _e=re.openKeys,ue=re.activeKey,z=re.selectedKeys,q=ge.eventKey,X=ge.subMenuKey;return{isOpen:_e.indexOf(q)>-1,active:ue[X]===q,selectedKeys:z}})(Xt);Ht.isSubMenu=!0;var sn=Ht,nt="menuitem-overflowed",Wn=.5,mr=function(re){Object(c.a)(_e,re);var ge=Object(u.a)(_e);function _e(){var ue;return Object(w.a)(this,_e),ue=ge.apply(this,arguments),ue.resizeObserver=null,ue.mutationObserver=null,ue.originalTotalWidth=0,ue.overflowedItems=[],ue.menuItemSizes=[],ue.cancelFrameId=null,ue.state={lastVisibleIndex:void 0},ue.childRef=S.createRef(),ue.getMenuItemNodes=function(){var z=ue.props.prefixCls,q=ue.childRef.current;return q?[].slice.call(q.children).filter(function(X){return X.className.split(" ").indexOf("".concat(z,"-overflowed-submenu"))<0}):[]},ue.getOverflowedSubMenuItem=function(z,q,X){var de=ue.props,me=de.overflowedIndicator,Ce=de.level,xe=de.mode,De=de.prefixCls,Fe=de.theme;if(Ce!==1||xe!=="horizontal")return null;var He=ue.props.children[0],Je=He.props,dt=Je.children,Rt=Je.title,Gt=Je.style,Bt=Object(L.a)(Je,["children","title","style"]),Ft=Object(N.a)({},Gt),Wt="".concat(z,"-overflowed-indicator"),Yt="".concat(z,"-overflowed-indicator");q.length===0&&X!==!0?Ft=Object(N.a)(Object(N.a)({},Ft),{},{display:"none"}):X&&(Ft=Object(N.a)(Object(N.a)({},Ft),{},{visibility:"hidden",position:"absolute"}),Wt="".concat(Wt,"-placeholder"),Yt="".concat(Yt,"-placeholder"));var $t=Fe?"".concat(De,"-").concat(Fe):"",cn={};return ne.forEach(function(Zt){Bt[Zt]!==void 0&&(cn[Zt]=Bt[Zt])}),S.createElement(sn,Object(y.a)({title:me,className:"".concat(De,"-overflowed-submenu"),popupClassName:$t},cn,{key:Wt,eventKey:Yt,disabled:!1,style:Ft}),q)},ue.setChildrenWidthAndResize=function(){if(ue.props.mode!=="horizontal")return;var z=ue.childRef.current;if(!z)return;var q=z.children;if(!q||q.length===0)return;var X=z.children[q.length-1];Oe(X,"display","inline-block");var de=ue.getMenuItemNodes(),me=de.filter(function(Ce){return Ce.className.split(" ").indexOf(nt)>=0});me.forEach(function(Ce){Oe(Ce,"display","inline-block")}),ue.menuItemSizes=de.map(function(Ce){return be(Ce,!0)}),me.forEach(function(Ce){Oe(Ce,"display","none")}),ue.overflowedIndicatorWidth=be(z.children[z.children.length-1],!0),ue.originalTotalWidth=ue.menuItemSizes.reduce(function(Ce,xe){return Ce+xe},0),ue.handleResize(),Oe(X,"display","none")},ue.handleResize=function(){if(ue.props.mode!=="horizontal")return;var z=ue.childRef.current;if(!z)return;var q=be(z);ue.overflowedItems=[];var X=0,de;ue.originalTotalWidth>q+Wn&&(de=-1,ue.menuItemSizes.forEach(function(me){X+=me,X+ue.overflowedIndicatorWidth<=q&&(de+=1)})),ue.setState({lastVisibleIndex:de})},ue}return Object(T.a)(_e,[{key:"componentDidMount",value:function(){var z=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var q=this.childRef.current;if(!q)return;this.resizeObserver=new $e.default(function(X){X.forEach(function(){var de=z.cancelFrameId;cancelAnimationFrame(de),z.cancelFrameId=requestAnimationFrame(z.setChildrenWidthAndResize)})}),[].slice.call(q.children).concat(q).forEach(function(X){z.resizeObserver.observe(X)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){z.resizeObserver.disconnect(),[].slice.call(q.children).concat(q).forEach(function(X){z.resizeObserver.observe(X)}),z.setChildrenWidthAndResize()}),this.mutationObserver.observe(q,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(z){var q=this,X=this.state.lastVisibleIndex;return(z||[]).reduce(function(de,me,Ce){var xe=me;if(q.props.mode==="horizontal"){var De=q.getOverflowedSubMenuItem(me.props.eventKey,[]);X!==void 0&&q.props.className.indexOf("".concat(q.props.prefixCls,"-root"))!==-1&&(Ce>X&&(xe=S.cloneElement(me,{style:{display:"none"},eventKey:"".concat(me.props.eventKey,"-hidden"),className:"".concat(nt)})),Ce===X+1&&(q.overflowedItems=z.slice(X+1).map(function(He){return S.cloneElement(He,{key:He.props.eventKey,mode:"vertical-left"})}),De=q.getOverflowedSubMenuItem(me.props.eventKey,q.overflowedItems)));var Fe=[].concat(Object(O.a)(de),[De,xe]);return Ce===z.length-1&&Fe.push(q.getOverflowedSubMenuItem(me.props.eventKey,[],!0)),Fe}return[].concat(Object(O.a)(de),[xe])},[])}},{key:"render",value:function(){var z=this.props,q=z.visible,X=z.prefixCls,de=z.overflowedIndicator,me=z.mode,Ce=z.level,xe=z.tag,De=z.children,Fe=z.theme,He=Object(L.a)(z,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Je=xe;return S.createElement(Je,Object(y.a)({ref:this.childRef},He),this.renderChildren(De))}}]),_e}(S.Component);mr.defaultProps={tag:"div",className:""};var zn=mr;function lr(re){return re.length?re.every(function(ge){return!!ge.props.disabled}):!0}function gr(re,ge,_e){var ue=re.getState();re.setState({activeKey:Object(N.a)(Object(N.a)({},ue.activeKey),{},Object(J.a)({},ge,_e))})}function ur(re){return re.eventKey||"0-menu-"}function Lr(re,ge){var _e=ge,ue=re.children,z=re.eventKey;if(_e){var q;if(Ve(ue,function(X,de){X&&X.props&&!X.props.disabled&&_e===it(X,z,de)&&(q=!0)}),q)return _e}return _e=null,re.defaultActiveFirst&&Ve(ue,function(X,de){!_e&&X&&!X.props.disabled&&(_e=it(X,z,de))}),_e}function Yr(re){if(!re)return;var ge=this.instanceArray.indexOf(re);ge!==-1?this.instanceArray[ge]=re:this.instanceArray.push(re)}var Wr=function(re){Object(c.a)(_e,re);var ge=Object(u.a)(_e);function _e(ue){var z;return Object(w.a)(this,_e),z=ge.call(this,ue),z.onKeyDown=function(q,X){var de=q.keyCode,me;if(z.getFlatInstanceArray().forEach(function(xe){xe&&xe.props.active&&xe.onKeyDown&&(me=xe.onKeyDown(q))}),me)return 1;var Ce=null;return(de===l.a.UP||de===l.a.DOWN)&&(Ce=z.step(de===l.a.UP?-1:1)),Ce?(q.preventDefault(),gr(z.props.store,ur(z.props),Ce.props.eventKey),typeof X=="function"&&X(Ce),1):void 0},z.onItemHover=function(q){var X=q.key,de=q.hover;gr(z.props.store,ur(z.props),de?X:null)},z.onDeselect=function(q){z.props.onDeselect(q)},z.onSelect=function(q){z.props.onSelect(q)},z.onClick=function(q){z.props.onClick(q)},z.onOpenChange=function(q){z.props.onOpenChange(q)},z.onDestroy=function(q){z.props.onDestroy(q)},z.getFlatInstanceArray=function(){return z.instanceArray},z.step=function(q){var X=z.getFlatInstanceArray(),de=z.props.store.getState().activeKey[ur(z.props)],me=X.length;if(!me)return null;q<0&&(X=X.concat().reverse());var Ce=-1;if(X.every(function(He,Je){return He&&He.props.eventKey===de?(Ce=Je,!1):!0}),!z.props.defaultActiveFirst&&Ce!==-1&&lr(X.slice(Ce,me-1)))return;var xe=(Ce+1)%me,De=xe;do{var Fe=X[De];if(!Fe||Fe.props.disabled)De=(De+1)%me;else return Fe}while(De!==xe);return null},z.renderCommonMenuItem=function(q,X,de){var me=z.props.store.getState(),Ce=Object(p.a)(z),xe=Ce.props,De=it(q,xe.eventKey,X),Fe=q.props;if(!Fe||typeof q.type=="string")return q;var He=De===me.activeKey,Je=Object(N.a)(Object(N.a)({mode:Fe.mode||xe.mode,level:xe.level,inlineIndent:xe.inlineIndent,renderMenuItem:z.renderMenuItem,rootPrefixCls:xe.prefixCls,index:X,parentMenu:xe.parentMenu,manualRef:Fe.disabled?void 0:Object(g.a)(q.ref,Yr.bind(Object(p.a)(z))),eventKey:De,active:!Fe.disabled&&He,multiple:xe.multiple,onClick:function(Rt){(Fe.onClick||Xe)(Rt),z.onClick(Rt)},onItemHover:z.onItemHover,motion:xe.motion,subMenuOpenDelay:xe.subMenuOpenDelay,subMenuCloseDelay:xe.subMenuCloseDelay,forceSubMenuRender:xe.forceSubMenuRender,onOpenChange:z.onOpenChange,onDeselect:z.onDeselect,onSelect:z.onSelect,builtinPlacements:xe.builtinPlacements,itemIcon:Fe.itemIcon||z.props.itemIcon,expandIcon:Fe.expandIcon||z.props.expandIcon},de),{},{direction:xe.direction});return(xe.mode==="inline"||Re())&&(Je.triggerSubMenuAction="click"),S.cloneElement(q,Object(N.a)(Object(N.a)({},Je),{},{key:De||X}))},z.renderMenuItem=function(q,X,de){if(!q)return null;var me=z.props.store.getState(),Ce={openKeys:me.openKeys,selectedKeys:me.selectedKeys,triggerSubMenuAction:z.props.triggerSubMenuAction,subMenuKey:de};return z.renderCommonMenuItem(q,X,Ce)},ue.store.setState({activeKey:Object(N.a)(Object(N.a)({},ue.store.getState().activeKey),{},Object(J.a)({},ue.eventKey,Lr(ue,ue.activeKey)))}),z.instanceArray=[],z}return Object(T.a)(_e,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(z){return this.props.visible||z.visible||this.props.className!==z.className||!R()(this.props.style,z.style)}},{key:"componentDidUpdate",value:function(z){var q=this.props,X="activeKey"in q?q.activeKey:q.store.getState().activeKey[ur(q)],de=Lr(q,X);if(de!==X)gr(q.store,ur(q),de);else if("activeKey"in z){var me=Lr(z,z.activeKey);de!==me&&gr(q.store,ur(q),de)}}},{key:"render",value:function(){var z=this,q=Object(y.a)({},this.props);this.instanceArray=[];var X=H()(q.prefixCls,q.className,"".concat(q.prefixCls,"-").concat(q.mode)),de={className:X,role:q.role||"menu"};q.id&&(de.id=q.id),q.focusable&&(de.tabIndex=0,de.onKeyDown=this.onKeyDown);var me=q.prefixCls,Ce=q.eventKey,xe=q.visible,De=q.level,Fe=q.mode,He=q.overflowedIndicator,Je=q.theme;return ne.forEach(function(dt){return delete q[dt]}),delete q.onClick,S.createElement(zn,Object(y.a)({},q,{prefixCls:me,mode:Fe,tag:"ul",level:De,theme:Je,visible:xe,overflowedIndicator:He},de),Object(F.a)(q.children).map(function(dt,Rt){return z.renderMenuItem(dt,Rt,Ce||"0-menu-")}))}}]),_e}(S.Component);Wr.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Xe};var Dr=Object(h.b)()(Wr),Er=Dr,vr=M("Kwbf");function Pr(re,ge,_e){var ue=re.prefixCls,z=re.motion,q=re.defaultMotions,X=q===void 0?{}:q,de=re.openAnimation,me=re.openTransitionName,Ce=ge.switchingModeFromInline;if(z)return z;if(Object(I.a)(de)==="object"&&de)Object(vr.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof de=="string")return{motionName:"".concat(ue,"-open-").concat(de)};if(me)return{motionName:me};var xe=X[_e];return xe||(Ce?null:X.other)}var Mr=function(re){Object(c.a)(_e,re);var ge=Object(u.a)(_e);function _e(ue){var z;Object(w.a)(this,_e),z=ge.call(this,ue),z.onSelect=function(de){var me=Object(p.a)(z),Ce=me.props;if(Ce.selectable){var xe=z.store.getState(),De=xe.selectedKeys,Fe=de.key;Ce.multiple?De=De.concat([Fe]):De=[Fe],"selectedKeys"in Ce||z.store.setState({selectedKeys:De}),Ce.onSelect(Object(N.a)(Object(N.a)({},de),{},{selectedKeys:De}))}},z.onClick=function(de){var me=z.getRealMenuMode(),Ce=Object(p.a)(z),xe=Ce.store,De=Ce.props.onOpenChange;me!=="inline"&&!("openKeys"in z.props)&&(xe.setState({openKeys:[]}),De([])),z.props.onClick(de)},z.onKeyDown=function(de,me){z.innerMenu.getWrappedInstance().onKeyDown(de,me)},z.onOpenChange=function(de){var me=Object(p.a)(z),Ce=me.props,xe=z.store.getState().openKeys.concat(),De=!1,Fe=function(Je){var dt=!1;if(Je.open)dt=xe.indexOf(Je.key)===-1,dt&&xe.push(Je.key);else{var Rt=xe.indexOf(Je.key);dt=Rt!==-1,dt&&xe.splice(Rt,1)}De=De||dt};Array.isArray(de)?de.forEach(Fe):Fe(de),De&&("openKeys"in z.props||z.store.setState({openKeys:xe}),Ce.onOpenChange(xe))},z.onDeselect=function(de){var me=Object(p.a)(z),Ce=me.props;if(Ce.selectable){var xe=z.store.getState().selectedKeys.concat(),De=de.key,Fe=xe.indexOf(De);Fe!==-1&&xe.splice(Fe,1),"selectedKeys"in Ce||z.store.setState({selectedKeys:xe}),Ce.onDeselect(Object(N.a)(Object(N.a)({},de),{},{selectedKeys:xe}))}},z.onMouseEnter=function(de){z.restoreModeVerticalFromInline();var me=z.props.onMouseEnter;me&&me(de)},z.onTransitionEnd=function(de){var me=de.propertyName==="width"&&de.target===de.currentTarget,Ce=de.target.className,xe=Object.prototype.toString.call(Ce)==="[object SVGAnimatedString]"?Ce.animVal:Ce,De=de.propertyName==="font-size"&&xe.indexOf("anticon")>=0;(me||De)&&z.restoreModeVerticalFromInline()},z.setInnerMenu=function(de){z.innerMenu=de},z.isRootMenu=!0;var q=ue.defaultSelectedKeys,X=ue.defaultOpenKeys;return"selectedKeys"in ue&&(q=ue.selectedKeys||[]),"openKeys"in ue&&(X=ue.openKeys||[]),z.store=Object(h.c)({selectedKeys:q,openKeys:X,activeKey:{"0-menu-":Lr(ue,ue.activeKey)}}),z.state={switchingModeFromInline:!1,prevProps:ue,inlineOpenKeys:[],store:z.store},z}return Object(T.a)(_e,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(z){var q=this.props,X=q.siderCollapsed,de=q.inlineCollapsed,me=q.onOpenChange;(!z.inlineCollapsed&&de||!z.siderCollapsed&&X)&&me([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var z=this.props.collapsedWidth,q=this.store,X=this.prevOpenKeys,de=this.getInlineCollapsed()&&(z===0||z==="0"||z==="0px");de?(this.prevOpenKeys=q.getState().openKeys.concat(),this.store.setState({openKeys:[]})):X&&(this.store.setState({openKeys:X}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var z=this.props.mode,q=this.state.switchingModeFromInline,X=this.getInlineCollapsed();return q&&X?"inline":X?"vertical":z}},{key:"getInlineCollapsed",value:function(){var z=this.props,q=z.inlineCollapsed,X=z.siderCollapsed;return X!==void 0?X:q}},{key:"restoreModeVerticalFromInline",value:function(){var z=this.state.switchingModeFromInline;z&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var z=Object(N.a)({},Object(x.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),q=this.getRealMenuMode();return z.className+=" ".concat(z.prefixCls,"-root"),z.direction==="rtl"&&(z.className+=" ".concat(z.prefixCls,"-rtl")),z=Object(N.a)(Object(N.a)({},z),{},{mode:q,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Pr(this.props,this.state,q)}),delete z.openAnimation,delete z.openTransitionName,S.createElement(h.a,{store:this.store},S.createElement(Er,Object(y.a)({},z,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(z,q){var X=q.prevProps,de=q.store,me=de.getState(),Ce={},xe={prevProps:z};return X.mode==="inline"&&z.mode!=="inline"&&(xe.switchingModeFromInline=!0),"openKeys"in z?Ce.openKeys=z.openKeys||[]:((z.inlineCollapsed&&!X.inlineCollapsed||z.siderCollapsed&&!X.siderCollapsed)&&(xe.switchingModeFromInline=!0,xe.inlineOpenKeys=me.openKeys,Ce.openKeys=[]),(!z.inlineCollapsed&&X.inlineCollapsed||!z.siderCollapsed&&X.siderCollapsed)&&(Ce.openKeys=q.inlineOpenKeys,xe.inlineOpenKeys=[])),Object.keys(Ce).length&&de.setState(Ce),xe}}]),_e}(S.Component);Mr.defaultProps={selectable:!0,onClick:Xe,onSelect:Xe,onOpenChange:Xe,onDeselect:Xe,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:S.createElement("span",null,"\xB7\xB7\xB7")};var pr=Mr,yr=function(re){Object(c.a)(_e,re);var ge=Object(u.a)(_e);function _e(){var ue;return Object(w.a)(this,_e),ue=ge.apply(this,arguments),ue.onKeyDown=function(z){var q=z.keyCode;return q===l.a.ENTER?(ue.onClick(z),!0):void 0},ue.onMouseLeave=function(z){var q=ue.props,X=q.eventKey,de=q.onItemHover,me=q.onMouseLeave;de({key:X,hover:!1}),me({key:X,domEvent:z})},ue.onMouseEnter=function(z){var q=ue.props,X=q.eventKey,de=q.onItemHover,me=q.onMouseEnter;de({key:X,hover:!0}),me({key:X,domEvent:z})},ue.onClick=function(z){var q=ue.props,X=q.eventKey,de=q.multiple,me=q.onClick,Ce=q.onSelect,xe=q.onDeselect,De=q.isSelected,Fe={key:X,keyPath:[X],item:Object(p.a)(ue),domEvent:z};me(Fe),de?De?xe(Fe):Ce(Fe):De||Ce(Fe)},ue.saveNode=function(z){ue.node=z},ue}return Object(T.a)(_e,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var z=this.props;z.onDestroy&&z.onDestroy(z.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var z,q=Object(N.a)({},this.props),X=H()(this.getPrefixCls(),q.className,(z={},Object(J.a)(z,this.getActiveClassName(),!q.disabled&&q.active),Object(J.a)(z,this.getSelectedClassName(),q.isSelected),Object(J.a)(z,this.getDisabledClassName(),q.disabled),z)),de=Object(N.a)(Object(N.a)({},q.attribute),{},{title:typeof q.title=="string"?q.title:void 0,className:X,role:q.role||"menuitem","aria-disabled":q.disabled});q.role==="option"?de=Object(N.a)(Object(N.a)({},de),{},{role:"option","aria-selected":q.isSelected}):(q.role===null||q.role==="none")&&(de.role="none");var me={onClick:q.disabled?null:this.onClick,onMouseLeave:q.disabled?null:this.onMouseLeave,onMouseEnter:q.disabled?null:this.onMouseEnter},Ce=Object(N.a)({},q.style);q.mode==="inline"&&(q.direction==="rtl"?Ce.paddingRight=q.inlineIndent*q.level:Ce.paddingLeft=q.inlineIndent*q.level),ne.forEach(function(De){return delete q[De]}),delete q.direction;var xe=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(xe=S.createElement(this.props.itemIcon,this.props)),S.createElement("li",Object(y.a)({},Object(x.a)(q,["onClick","onMouseEnter","onMouseLeave","onSelect"]),de,me,{style:Ce,ref:this.saveNode}),q.children,xe)}}]),_e}(S.Component);yr.isMenuItem=!0,yr.defaultProps={onSelect:Xe,onMouseEnter:Xe,onMouseLeave:Xe,manualRef:Xe};var Nr=Object(h.b)(function(re,ge){var _e=re.activeKey,ue=re.selectedKeys,z=ge.eventKey,q=ge.subMenuKey;return{active:_e[q]===z,isSelected:Array.isArray(ue)?ue.indexOf(z)!==-1:ue===z}})(yr),Sr=Nr,cr=function(re){Object(c.a)(_e,re);var ge=Object(u.a)(_e);function _e(){var ue;return Object(w.a)(this,_e),ue=ge.apply(this,arguments),ue.renderInnerMenuItem=function(z){var q=ue.props,X=q.renderMenuItem,de=q.index;return X(z,de,ue.props.subMenuKey)},ue}return Object(T.a)(_e,[{key:"render",value:function(){var z=Object(y.a)({},this.props),q=z.className,X=q===void 0?"":q,de=z.rootPrefixCls,me="".concat(de,"-item-group-title"),Ce="".concat(de,"-item-group-list"),xe=z.title,De=z.children;return ne.forEach(function(Fe){return delete z[Fe]}),delete z.direction,S.createElement("li",Object(y.a)({},z,{onClick:function(He){return He.stopPropagation()},className:"".concat(X," ").concat(de,"-item-group")}),S.createElement("div",{className:me,title:typeof xe=="string"?xe:void 0},xe),S.createElement("ul",{className:Ce},S.Children.map(De,this.renderInnerMenuItem)))}}]),_e}(S.Component);cr.isMenuItemGroup=!0,cr.defaultProps={disabled:!0};var $r=cr,kr=function(ge){var _e=ge.className,ue=ge.rootPrefixCls,z=ge.style;return S.createElement("li",{className:"".concat(_e," ").concat(ue,"-item-divider"),style:z})};kr.defaultProps={disabled:!0,className:"",style:{}};var Hr=kr,Cr=pr,Ur=M("eDIo");function Jr(re,ge){var _e=re.prefixCls,ue=re.editable,z=re.locale,q=re.style;return!ue||ue.showAdd===!1?null:S.createElement("button",{ref:ge,type:"button",className:"".concat(_e,"-nav-add"),style:q,"aria-label":(z==null?void 0:z.addAriaLabel)||"Add tab",onClick:function(de){ue.onEdit("add",{event:de})}},ue.addIcon||"+")}var xr=S.forwardRef(Jr);function Or(re,ge){var _e=re.prefixCls,ue=re.id,z=re.tabs,q=re.locale,X=re.mobile,de=re.moreIcon,me=de===void 0?"More":de,Ce=re.moreTransitionName,xe=re.style,De=re.className,Fe=re.editable,He=re.tabBarGutter,Je=re.rtl,dt=re.onTabClick,Rt=Object(S.useState)(!1),Gt=Object(B.a)(Rt,2),Bt=Gt[0],Ft=Gt[1],Wt=Object(S.useState)(null),Yt=Object(B.a)(Wt,2),$t=Yt[0],cn=Yt[1],Zt="".concat(ue,"-more-popup"),jn="".concat(_e,"-dropdown"),En=$t!==null?"".concat(Zt,"-").concat($t):null,Lt=q==null?void 0:q.dropdownAriaLabel,It=S.createElement(Cr,{onClick:function(Tn){var Nn=Tn.key,Qn=Tn.domEvent;dt(Nn,Qn),Ft(!1)},id:Zt,tabIndex:-1,role:"listbox","aria-activedescendant":En,selectedKeys:[$t],"aria-label":Lt!==void 0?Lt:"expanded dropdown"},z.map(function(hn){return S.createElement(Sr,{key:hn.key,id:"".concat(Zt,"-").concat(hn.key),role:"option","aria-controls":ue&&"".concat(ue,"-panel-").concat(hn.key),disabled:hn.disabled},hn.tab)}));function nn(hn){for(var Tn=z.filter(function(or){return!or.disabled}),Nn=Tn.findIndex(function(or){return or.key===$t})||0,Qn=Tn.length,sr=0;srdn?(ln=It,Zt.current="x"):(ln=nn,Zt.current="y");var Dn=Date.now();Dn-$t.current>100&&(cn.current=!1),(ge(-ln,-ln)||cn.current)&&(Lt.preventDefault(),cn.current=!0),$t.current=Dn}var En=Object(S.useRef)(null);En.current={onTouchStart:Ft,onTouchMove:Wt,onTouchEnd:Yt,onWheel:jn},S.useEffect(function(){function Lt(Tt){En.current.onTouchStart(Tt)}function It(Tt){En.current.onTouchMove(Tt)}function nn(Tt){En.current.onTouchEnd(Tt)}function ln(Tt){En.current.onWheel(Tt)}return document.addEventListener("touchmove",It,{passive:!1}),document.addEventListener("touchend",nn,{passive:!1}),re.current.addEventListener("touchstart",Lt,{passive:!1}),re.current.addEventListener("wheel",ln),function(){document.removeEventListener("touchmove",It),document.removeEventListener("touchend",nn)}},[])}function Tr(){var re=Object(S.useRef)(new Map);function ge(ue){return re.current.has(ue)||re.current.set(ue,S.createRef()),re.current.get(ue)}function _e(ue){re.current.delete(ue)}return[ge,_e]}function Gr(re,ge){var _e=S.useRef(re),ue=S.useState({}),z=Object(B.a)(ue,2),q=z[1];function X(de){var me=typeof de=="function"?de(_e.current):de;me!==_e.current&&ge(me,_e.current),_e.current=me,q({})}return[_e.current,X]}var zr=function(ge){var _e=ge.position,ue=ge.prefixCls,z=ge.extra;if(!z)return null;var q,X=z;return _e==="right"&&(q=X.right||!X.left&&X||null),_e==="left"&&(q=X.left||null),q?S.createElement("div",{className:"".concat(ue,"-extra-content")},q):null};function ci(re,ge){var _e,ue=S.useContext(jr),z=ue.prefixCls,q=ue.tabs,X=re.className,de=re.style,me=re.id,Ce=re.animated,xe=re.activeKey,De=re.rtl,Fe=re.extra,He=re.editable,Je=re.locale,dt=re.tabPosition,Rt=re.tabBarGutter,Gt=re.children,Bt=re.onTabClick,Ft=re.onTabScroll,Wt=Object(S.useRef)(),Yt=Object(S.useRef)(),$t=Object(S.useRef)(),cn=Object(S.useRef)(),Zt=Tr(),jn=Object(B.a)(Zt,2),En=jn[0],Lt=jn[1],It=dt==="top"||dt==="bottom",nn=Gr(0,function(xn,rn){It&&Ft&&Ft({direction:xn>rn?"left":"right"})}),ln=Object(B.a)(nn,2),Tt=ln[0],dn=ln[1],Dn=Gr(0,function(xn,rn){!It&&Ft&&Ft({direction:xn>rn?"top":"bottom"})}),hn=Object(B.a)(Dn,2),Tn=hn[0],Nn=hn[1],Qn=Object(S.useState)(0),sr=Object(B.a)(Qn,2),Fn=sr[0],or=sr[1],_r=Object(S.useState)(0),dr=Object(B.a)(_r,2),hr=dr[0],Kn=dr[1],ir=Object(S.useState)(0),Zn=Object(B.a)(ir,2),Yn=Zn[0],Rr=Zn[1],Ar=Object(S.useState)(0),Br=Object(B.a)(Ar,2),An=Br[0],wr=Br[1],Fr=Object(S.useState)(null),Pn=Object(B.a)(Fr,2),yn=Pn[0],qn=Pn[1],Vi=Object(S.useState)(null),xi=Object(B.a)(Vi,2),Vr=xi[0],Xi=xi[1],Yi=Object(S.useState)(0),Ti=Object(B.a)(Yi,2),$i=Ti[0],Ji=Ti[1],Qi=Object(S.useState)(0),wi=Object(B.a)(Qi,2),Zi=wi[0],qi=wi[1],ea=a(new Map),Si=Object(B.a)(ea,2),ta=Si[0],na=Si[1],ui=t(q,ta,Fn),Ci="".concat(z,"-nav-operations-hidden"),ei=0,ti=0;It?De?(ei=0,ti=Math.max(0,Fn-yn)):(ei=Math.min(0,yn-Fn),ti=0):(ei=Math.min(0,Vr-hr),ti=0);function hi(xn){return xnti?[ti,!1]:[xn,!0]}var Oi=Object(S.useRef)(),ra=Object(S.useState)(),Ri=Object(B.a)(ra,2),fi=Ri[0],Ai=Ri[1];function pi(){Ai(Date.now())}function mi(){window.clearTimeout(Oi.current)}Kr(Wt,function(xn,rn){var $n=!1;function fr(ri,ii){ri(function(ai){var si=hi(ai+ii),Xr=Object(B.a)(si,2),bi=Xr[0],_i=Xr[1];return $n=_i,bi})}if(It){if(yn>=Fn)return $n;fr(dn,xn)}else{if(Vr>=hr)return $n;fr(Nn,rn)}return mi(),pi(),$n}),Object(S.useEffect)(function(){return mi(),fi&&(Oi.current=window.setTimeout(function(){Ai(0)},100)),mi},[fi]);function Ii(){var xn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:xe,rn=ui.get(xn);if(!rn)return;if(It){var $n=Tt;De?rn.rightTt+yn&&($n=rn.right+rn.width-yn):rn.left<-Tt?$n=-rn.left:rn.left+rn.width>-Tt+yn&&($n=-(rn.left+rn.width-yn)),Nn(0),dn(hi($n)[0])}else{var fr=Tn;rn.top<-Tn?fr=-rn.top:rn.top+rn.height>-Tn+Vr&&(fr=-(rn.top+rn.height-Vr)),dn(0),Nn(hi(fr)[0])}}var ia=b(ui,{width:yn,height:Vr,left:Tt,top:Tn},{width:Yn,height:An},{width:$i,height:Zi},Object(N.a)(Object(N.a)({},re),{},{tabs:q})),Li=Object(B.a)(ia,2),aa=Li[0],sa=Li[1],oa=q.map(function(xn){var rn=xn.key;return S.createElement(i,{id:me,prefixCls:z,key:rn,rtl:De,tab:xn,closable:xn.closable,editable:He,active:rn===xe,tabPosition:dt,tabBarGutter:Rt,renderWrapper:Gt,removeAriaLabel:Je==null?void 0:Je.removeAriaLabel,ref:En(rn),onClick:function(fr){Bt(rn,fr)},onRemove:function(){Lt(rn)},onFocus:function(){Ii(rn),pi(),De||(Wt.current.scrollLeft=0),Wt.current.scrollTop=0}})}),gi=s(function(){var xn,rn,$n,fr,ri,ii,ai,si,Xr,bi=((xn=Wt.current)===null||xn===void 0?void 0:xn.offsetWidth)||0,_i=((rn=Wt.current)===null||rn===void 0?void 0:rn.offsetHeight)||0,Bi=(($n=cn.current)===null||$n===void 0?void 0:$n.offsetWidth)||0,Fi=((fr=cn.current)===null||fr===void 0?void 0:fr.offsetHeight)||0,fa=((ri=$t.current)===null||ri===void 0?void 0:ri.offsetWidth)||0,pa=((ii=$t.current)===null||ii===void 0?void 0:ii.offsetHeight)||0;qn(bi),Xi(_i),Ji(Bi),qi(Fi);var Wi=(((ai=Yt.current)===null||ai===void 0?void 0:ai.offsetWidth)||0)-Bi,Hi=(((si=Yt.current)===null||si===void 0?void 0:si.offsetHeight)||0)-Fi;or(Wi),Kn(Hi);var Ki=(Xr=$t.current)===null||Xr===void 0?void 0:Xr.className.includes(Ci);Rr(Wi-(Ki?0:fa)),wr(Hi-(Ki?0:pa)),na(function(){var Gi=new Map;return q.forEach(function(ma){var zi=ma.key,oi=En(zi).current;oi&&Gi.set(zi,{width:oi.offsetWidth,height:oi.offsetHeight,left:oi.offsetLeft,top:oi.offsetTop})}),Gi})}),la=q.slice(0,aa),ua=q.slice(sa+1),Di=[].concat(Object(O.a)(la),Object(O.a)(ua)),ca=Object(S.useState)(),Pi=Object(B.a)(ca,2),da=Pi[0],ha=Pi[1],Ir=ui.get(xe),Mi=Object(S.useRef)();function Ni(){v.a.cancel(Mi.current)}Object(S.useEffect)(function(){var xn={};return Ir&&(It?(De?xn.right=Ir.right:xn.left=Ir.left,xn.width=Ir.width):(xn.top=Ir.top,xn.height=Ir.height)),Ni(),Mi.current=v()(function(){ha(xn)}),Ni},[Ir,It,De]),Object(S.useEffect)(function(){Ii()},[xe,Ir,ui,It]),Object(S.useEffect)(function(){gi()},[De,Rt,xe,q.map(function(xn){return xn.key}).join("_")]);var ki=!!Di.length,ni="".concat(z,"-nav-wrap"),vi,yi,Ui,ji;return It?De?(yi=Tt>0,vi=Tt+yn children");ye=fe}}),ye}function w(Z,$,ie){var ye=0;return Z&&Z.forEach(function(fe){if(ye)return;ye=fe&&fe.key===$&&!fe.props[ie]}),ye}function T(Z,$,ie){var ye=Z.length===$.length;return ye&&Z.forEach(function(fe,Pe){var ke=$[Pe];fe&&ke&&((fe&&!ke||!fe&&ke||(fe.key!==ke.key||ie&&fe.props[ie]!==ke.props[ie]))&&(ye=!1))}),ye}function p(Z,$){var ie=[],ye={},fe=[];return Z.forEach(function(Pe){Pe&&b($,Pe.key)?fe.length&&(ye[Pe.key]=fe,fe=[]):fe.push(Pe)}),$.forEach(function(Pe){Pe&&Object.prototype.hasOwnProperty.call(ye,Pe.key)&&(ie=ie.concat(ye[Pe.key])),ie.push(Pe)}),ie=ie.concat(fe),ie}var c=M("UwPn"),u={isAppearSupported:function($){return $.transitionName&&$.transitionAppear||$.animation.appear},isEnterSupported:function($){return $.transitionName&&$.transitionEnter||$.animation.enter},isLeaveSupported:function($){return $.transitionName&&$.transitionLeave||$.animation.leave},allowAppearCallback:function($){return $.transitionAppear||$.animation.appear},allowEnterCallback:function($){return $.transitionEnter||$.animation.enter},allowLeaveCallback:function($){return $.transitionLeave||$.animation.leave}},h=u,x=function(){function Z($,ie){for(var ye=0;ye children");return A.a.createElement(P,{key:Ye.key,ref:function(ft){ye.childrenRefs[Ye.key]=ft},animation:fe.animation,transitionName:fe.transitionName,transitionEnter:fe.transitionEnter,transitionAppear:fe.transitionAppear,transitionLeave:fe.transitionLeave},Ye)}));var Qe=fe.component;if(Qe){var pt=fe;return typeof Qe=="string"&&(pt=W({className:fe.className,style:fe.style},fe.componentProps)),A.a.createElement(Qe,pt,ke)}return ke[0]||null}}]),$}(A.a.Component);Se.isAnimate=!0,Se.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:Ee,onEnter:Ee,onLeave:Ee,onAppear:Ee};var Le=function(){var $=this;this.performEnter=function(ie){$.childrenRefs[ie]&&($.currentlyAnimatingKeys[ie]=!0,$.childrenRefs[ie].componentWillEnter($.handleDoneAdding.bind($,ie,"enter")))},this.performAppear=function(ie){$.childrenRefs[ie]&&($.currentlyAnimatingKeys[ie]=!0,$.childrenRefs[ie].componentWillAppear($.handleDoneAdding.bind($,ie,"appear")))},this.handleDoneAdding=function(ie,ye){var fe=$.props;if(delete $.currentlyAnimatingKeys[ie],fe.exclusive&&fe!==$.nextProps)return;var Pe=E(we(fe));$.isValidChildByKey(Pe,ie)?ye==="appear"?h.allowAppearCallback(fe)&&(fe.onAppear(ie),fe.onEnd(ie,!0)):h.allowEnterCallback(fe)&&(fe.onEnter(ie),fe.onEnd(ie,!0)):$.performLeave(ie)},this.performLeave=function(ie){$.childrenRefs[ie]&&($.currentlyAnimatingKeys[ie]=!0,$.childrenRefs[ie].componentWillLeave($.handleDoneLeaving.bind($,ie)))},this.handleDoneLeaving=function(ie){var ye=$.props;if(delete $.currentlyAnimatingKeys[ie],ye.exclusive&&ye!==$.nextProps)return;var fe=E(we(ye));if($.isValidChildByKey(fe,ie))$.performEnter(ie);else{var Pe=function(){h.allowLeaveCallback(ye)&&(ye.onLeave(ie),ye.onEnd(ie,!1))};T($.state.children,fe,ye.showProp)?Pe():$.setState({children:fe},Pe)}}},he=t(Se),ee=function(Z){Object(d.a)(ie,Z);var $=Object(s.a)(ie);function ie(){return Object(m.a)(this,ie),$.apply(this,arguments)}return Object(v.a)(ie,[{key:"shouldComponentUpdate",value:function(fe){return fe.forceRender?!0:!!fe.hiddenClassName||!!fe.visible}},{key:"render",value:function(){var fe=this.props,Pe=fe.className,ke=fe.hiddenClassName,Qe=fe.visible,pt=fe.forceRender,Ye=Object(N.a)(fe,["className","hiddenClassName","visible","forceRender"]),vt=Pe;return!!ke&&!Qe&&(vt+=" ".concat(ke)),S.createElement("div",Object.assign({},Ye,{className:vt}))}}]),ie}(S.Component),Be=0;function at(Z,$){var ie=Z["page".concat($?"Y":"X","Offset")],ye="scroll".concat($?"Top":"Left");if(typeof ie!="number"){var fe=Z.document;ie=fe.documentElement[ye],typeof ie!="number"&&(ie=fe.body[ye])}return ie}function Ze(Z,$){var ie=Z.style;["Webkit","Moz","Ms","ms"].forEach(function(ye){ie["".concat(ye,"TransformOrigin")]=$}),ie.transformOrigin=$}function Xe(Z){var $=Z.getBoundingClientRect(),ie={left:$.left,top:$.top},ye=Z.ownerDocument,fe=ye.defaultView||ye.parentWindow;return ie.left+=at(fe),ie.top+=at(fe,!0),ie}var it=function(Z){Object(d.a)(ie,Z);var $=Object(s.a)(ie);function ie(ye){var fe;return Object(m.a)(this,ie),fe=$.call(this,ye),fe.inTransition=!1,fe.onAnimateLeave=function(){var Pe=fe.props,ke=Pe.afterClose,Qe=Pe.getOpenCount,pt=Pe.focusTriggerAfterClose,Ye=Pe.mask;if(fe.wrap&&(fe.wrap.style.display="none"),fe.inTransition=!1,Qe()||fe.switchScrollingEffect(),Ye&&fe.lastOutSideFocusNode&&pt){try{fe.lastOutSideFocusNode.focus({preventScroll:!0})}catch(vt){fe.lastOutSideFocusNode=null}fe.lastOutSideFocusNode=null}ke&&ke()},fe.onDialogMouseDown=function(){fe.dialogMouseDown=!0},fe.onMaskMouseUp=function(){fe.dialogMouseDown&&(fe.timeoutId=setTimeout(function(){fe.dialogMouseDown=!1},0))},fe.onMaskClick=function(Pe){if(Date.now()-fe.openTime<300)return;Pe.target===Pe.currentTarget&&!fe.dialogMouseDown&&fe.close(Pe)},fe.onKeyDown=function(Pe){var ke=fe.props,Qe=ke.keyboard,pt=ke.visible;if(Qe&&Pe.keyCode===o.a.ESC){Pe.stopPropagation(),fe.close(Pe);return}if(pt&&Pe.keyCode===o.a.TAB){var Ye=document,vt=Ye.activeElement;Pe.shiftKey?vt===fe.sentinelStart&&fe.sentinelEnd.focus():vt===fe.sentinelEnd&&fe.sentinelStart.focus()}},fe.getDialogElement=function(){var Pe=fe.props,ke=Pe.closable,Qe=Pe.prefixCls,pt=Pe.width,Ye=Pe.height,vt=Pe.footer,ft=Pe.title,mt=Pe.closeIcon,Pt=Pe.style,_t=Pe.className,Dt=Pe.visible,kt=Pe.forceRender,ot=Pe.bodyStyle,Kt=Pe.bodyProps,yt=Pe.children,gt=Pe.destroyOnClose,wt={};pt!==void 0&&(wt.width=pt),Ye!==void 0&&(wt.height=Ye);var Qt;vt&&(Qt=S.createElement("div",{className:"".concat(Qe,"-footer"),ref:fe.saveRef("footer")},vt));var mn;ft&&(mn=S.createElement("div",{className:"".concat(Qe,"-header"),ref:fe.saveRef("header")},S.createElement("div",{className:"".concat(Qe,"-title"),id:fe.titleId},ft)));var fn;ke&&(fn=S.createElement("button",{type:"button",onClick:fe.close,"aria-label":"Close",className:"".concat(Qe,"-close")},mt||S.createElement("span",{className:"".concat(Qe,"-close-x")})));var wn=Object(J.a)(Object(J.a)({},Pt),wt),Cn={width:0,height:0,overflow:"hidden",outline:"none"},qt=fe.getTransitionName(),en=S.createElement(ee,{key:"dialog-element",role:"document",ref:fe.saveRef("dialog"),style:wn,className:"".concat(Qe," ").concat(_t||""),visible:Dt,forceRender:kt,onMouseDown:fe.onDialogMouseDown},S.createElement("div",{tabIndex:0,ref:fe.saveRef("sentinelStart"),style:Cn,"aria-hidden":"true"}),S.createElement("div",{className:"".concat(Qe,"-content")},fn,mn,S.createElement("div",Object.assign({className:"".concat(Qe,"-body"),style:ot,ref:fe.saveRef("body")},Kt),yt),Qt),S.createElement("div",{tabIndex:0,ref:fe.saveRef("sentinelEnd"),style:Cn,"aria-hidden":"true"}));return S.createElement(he,{key:"dialog",showProp:"visible",onLeave:fe.onAnimateLeave,transitionName:qt,component:"",transitionAppear:!0},Dt||!gt?en:null)},fe.getZIndexStyle=function(){var Pe={},ke=fe.props.zIndex;return ke!==void 0&&(Pe.zIndex=ke),Pe},fe.getWrapStyle=function(){return Object(J.a)(Object(J.a)({},fe.getZIndexStyle()),fe.props.wrapStyle)},fe.getMaskStyle=function(){return Object(J.a)(Object(J.a)({},fe.getZIndexStyle()),fe.props.maskStyle)},fe.getMaskElement=function(){var Pe=fe.props,ke=Pe.mask,Qe=Pe.prefixCls,pt=Pe.visible,Ye=Pe.maskProps,vt;if(ke){var ft=fe.getMaskTransitionName();vt=S.createElement(ee,Object.assign({style:fe.getMaskStyle(),key:"mask",className:"".concat(Qe,"-mask"),hiddenClassName:"".concat(Qe,"-mask-hidden"),visible:pt},Ye)),ft&&(vt=S.createElement(he,{key:"mask",showProp:"visible",transitionAppear:!0,component:"",transitionName:ft},vt))}return vt},fe.getMaskTransitionName=function(){var Pe=fe.props,ke=Pe.maskTransitionName,Qe=Pe.maskAnimation,pt=Pe.prefixCls,Ye=ke,vt=Qe;return!Ye&&vt&&(Ye="".concat(pt,"-").concat(vt)),Ye},fe.getTransitionName=function(){var Pe=fe.props,ke=Pe.transitionName,Qe=Pe.animation,pt=Pe.prefixCls,Ye=ke;return!ke&&Qe&&(Ye="".concat(pt,"-").concat(Qe)),Ye},fe.close=function(Pe){var ke=fe.props.onClose;ke&&ke(Pe)},fe.saveRef=function(Pe){return function(ke){fe[Pe]=ke}},fe.titleId="rcDialogTitle".concat(Be),Be+=1,fe.switchScrollingEffect=ye.switchScrollingEffect||function(){},fe}return Object(v.a)(ie,[{key:"componentDidMount",value:function(){if(this.componentDidUpdate({}),this.props.forceRender&&this.props.visible)return;(this.props.forceRender||this.props.getContainer===!1&&!this.props.visible)&&this.wrap&&(this.wrap.style.display="none")}},{key:"componentDidUpdate",value:function(fe){var Pe=this.props.visible,ke=this.props.mousePosition;if(Pe){if(!fe.visible){this.openTime=Date.now(),this.switchScrollingEffect(),this.tryFocus();var Qe=a.findDOMNode(this.dialog);if(ke){var pt=Xe(Qe);Ze(Qe,"".concat(ke.x-pt.left,"px ").concat(ke.y-pt.top,"px"))}else Ze(Qe,"")}}else fe.visible&&(this.inTransition=!0)}},{key:"componentWillUnmount",value:function(){var fe=this.props,Pe=fe.visible,ke=fe.getOpenCount;(Pe||this.inTransition)&&!ke()&&this.switchScrollingEffect(),clearTimeout(this.timeoutId)}},{key:"tryFocus",value:function(){Object(i.a)(this.wrap,document.activeElement)||(this.lastOutSideFocusNode=document.activeElement,this.sentinelStart.focus())}},{key:"render",value:function(){var fe=this.props,Pe=fe.prefixCls,ke=fe.maskClosable,Qe=this.getWrapStyle();return fe.visible&&(Qe.display=null),S.createElement("div",{className:"".concat(Pe,"-root")},this.getMaskElement(),S.createElement("div",Object.assign({tabIndex:-1,onKeyDown:this.onKeyDown,className:"".concat(Pe,"-wrap ").concat(fe.wrapClassName||""),ref:this.saveRef("wrap"),onClick:ke?this.onMaskClick:null,onMouseUp:ke?this.onMaskMouseUp:null,role:"dialog","aria-labelledby":fe.title?this.titleId:null,style:Qe},fe.wrapProps),this.getDialogElement()))}}]),ie}(S.Component);it.defaultProps={className:"",mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",focusTriggerAfterClose:!0};var Ue=function(Z){var $=Z.visible,ie=Z.getContainer,ye=Z.forceRender;return ie===!1?S.createElement(it,Object.assign({},Z,{getOpenCount:function(){return 2}})):S.createElement(O.a,{visible:$,forceRender:ye,getContainer:ie},function(fe){return S.createElement(it,Object.assign({},Z,fe))})},Ve=Ue,et=M("0uC1"),ne=M.n(et),be=M("AYk6"),Oe=M.n(be),Re=M("sKBN"),$e=M.n(Re),tt=M("BddG"),st=M.n(tt),rt=M("V/uB"),ut=M.n(rt),ht=M("zT1h"),Te=M("Kwbf"),Ie=M("wgJM");function je(Z){var $=S.useRef(null),ie=S.useState(Z),ye=Object(L.a)(ie,2),fe=ye[0],Pe=ye[1],ke=S.useRef([]),Qe=function(Ye){$.current===null&&(ke.current=[],$.current=Object(Ie.a)(function(){Pe(function(vt){var ft=vt;return ke.current.forEach(function(mt){ft=Object(J.a)(Object(J.a)({},ft),mt)}),$.current=null,ft})})),ke.current.push(Ye)};return S.useEffect(function(){return function(){return $.current&&Ie.a.cancel($.current)}},[]),[fe,Qe]}function ze(Z,$,ie,ye){var fe=$+ie,Pe=(ie-ye)/2;if(ie>ye){if($>0)return Object(B.a)({},Z,Pe);if($<0&&feye)return Object(B.a)({},Z,$<0?Pe:-Pe);return{}}function Me(Z,$,ie,ye){var fe=Object(e.a)(),Pe=fe.width,ke=fe.height,Qe=null;return Z<=Pe&&$<=ke?Qe={x:0,y:0}:(Z>Pe||$>ke)&&(Qe=Object(J.a)(Object(J.a)({},ze("x",ie,Z,Pe)),ze("y",ye,$,ke))),Qe}var Ne=S.useState,pe={x:0,y:0},ae=function($){var ie=$.prefixCls,ye=$.src,fe=$.alt,Pe=$.onClose,ke=$.afterClose,Qe=$.visible,pt=Object(N.a)($,["prefixCls","src","alt","onClose","afterClose","visible"]),Ye=Ne(1),vt=Object(L.a)(Ye,2),ft=vt[0],mt=vt[1],Pt=Ne(0),_t=Object(L.a)(Pt,2),Dt=_t[0],kt=_t[1],ot=je(pe),Kt=Object(L.a)(ot,2),yt=Kt[0],gt=Kt[1],wt=S.useRef(),Qt=S.useRef({originX:0,originY:0,deltaX:0,deltaY:0}),mn=S.useState(!1),fn=Object(L.a)(mn,2),wn=fn[0],Cn=fn[1],qt=function(){mt(1),kt(0),gt(pe)},en=function(){mt(function(_){return _+1}),gt(pe)},Ut=function(){ft>1&&mt(function(_){return _-1}),gt(pe)},Mt=function(){kt(function(_){return _+90})},Nt=function(){kt(function(_){return _-90})},At=F()(Object(B.a)({},"".concat(ie,"-moving"),wn)),xt="".concat(ie,"-operations-operation"),Ct="".concat(ie,"-operations-icon"),Ot=[{Icon:ut.a,onClick:Pe,type:"close"},{Icon:$e.a,onClick:en,type:"zoomIn"},{Icon:st.a,onClick:Ut,type:"zoomOut",disabled:ft===1},{Icon:Oe.a,onClick:Mt,type:"rotateRight"},{Icon:ne.a,onClick:Nt,type:"rotateLeft"}],zt=function(){if(Qe&&wn){var _=wt.current.offsetWidth*ft,C=wt.current.offsetHeight*ft,k=Object(e.b)(wt.current),G=k.left,j=k.top,ve=Dt%180!==0;Cn(!1);var We=Me(ve?C:_,ve?_:C,G,j);We&>(Object(J.a)({},We))}},bn=function(_){_.preventDefault(),_.stopPropagation(),Qt.current.deltaX=_.pageX-yt.x,Qt.current.deltaY=_.pageY-yt.y,Qt.current.originX=yt.x,Qt.current.originY=yt.y,Cn(!0)},gn=function(_){Qe&&wn&>({x:_.pageX-Qt.current.deltaX,y:_.pageY-Qt.current.deltaY})};return S.useEffect(function(){var U,_,C=Object(ht.a)(window,"mouseup",zt,!1),k=Object(ht.a)(window,"mousemove",gn,!1);try{window.top!==window.self&&(U=Object(ht.a)(window.top,"mouseup",zt,!1),_=Object(ht.a)(window.top,"mousemove",gn,!1))}catch(G){Object(Te.c)(!1,"[rc-image] ".concat(G))}return function(){C.remove(),k.remove(),U&&U.remove(),_&&_.remove()}},[Qe,wn]),S.createElement(Ve,Object.assign({},pt,{transitionName:"zoom",maskTransitionName:"fade",closable:!1,keyboard:!0,prefixCls:ie,onClose:Pe,afterClose:qt,visible:Qe,wrapClassName:At}),S.createElement("ul",{className:"".concat(ie,"-operations")},Ot.map(function(U){var _=U.Icon,C=U.onClick,k=U.type,G=U.disabled;return S.createElement("li",{className:F()(xt,Object(B.a)({},"".concat(ie,"-operations-operation-disabled"),!!G)),onClick:C,key:k},S.createElement(_,{className:Ct}))})),S.createElement("div",{className:"".concat(ie,"-img-wrapper"),style:{transform:"translate3d(".concat(yt.x,"px, ").concat(yt.y,"px, 0)")}},S.createElement("img",{onMouseDown:bn,ref:wt,className:"".concat(ie,"-img"),src:ye,alt:fe,style:{transform:"scale3d(".concat(ft,", ").concat(ft,", 1) rotate(").concat(Dt,"deg)")}})))},le=ae,Y=function($){var ie=$.src,ye=$.alt,fe=$.onPreviewClose,Pe=$.prefixCls,ke=Pe===void 0?"rc-image":Pe,Qe=$.previewPrefixCls,pt=Qe===void 0?"".concat(ke,"-preview"):Qe,Ye=$.placeholder,vt=$.fallback,ft=$.width,mt=$.height,Pt=$.style,_t=$.preview,Dt=_t===void 0?!0:_t,kt=$.className,ot=$.onClick,Kt=$.crossOrigin,yt=$.decoding,gt=$.loading,wt=$.referrerPolicy,Qt=$.sizes,mn=$.srcSet,fn=$.useMap,wn=Object(N.a)($,["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","crossOrigin","decoding","loading","referrerPolicy","sizes","srcSet","useMap"]),Cn=Ye&&Ye!==!0,qt=Object(S.useState)(!1),en=Object(L.a)(qt,2),Ut=en[0],Mt=en[1],Nt=Object(S.useState)(Cn?"loading":"normal"),At=Object(L.a)(Nt,2),xt=At[0],Ct=At[1],Ot=Object(S.useState)(null),zt=Object(L.a)(Ot,2),bn=zt[0],gn=zt[1],U=xt==="error",_=function(){Ct("normal")},C=function(){Ct("error")},k=function(ct){var Ge=Object(e.b)(ct.target),bt=Ge.left,St=Ge.top;Mt(!0),gn({x:bt,y:St}),ot&&ot(ct)},G=function(ct){ct.stopPropagation(),Mt(!1),gn(null),fe&&fe(ct)};S.useEffect(function(){Cn&&Ct("loading")},[ie]);var j=F()(ke,kt,Object(B.a)({},"".concat(ke,"-error"),U)),ve=U&&vt?vt:ie,We={crossOrigin:Kt,decoding:yt,loading:gt,referrerPolicy:wt,sizes:Qt,srcSet:mn,useMap:fn,alt:ye,className:F()("".concat(ke,"-img"),Object(B.a)({},"".concat(ke,"-img-placeholder"),Ye===!0)),style:mt!==void 0?{height:mt}:void 0};return S.createElement(S.Fragment,null,S.createElement("div",Object.assign({},wn,{className:j,onClick:Dt&&!U?k:ot,style:Object(J.a)(Object(J.a)({},Pt),{},{width:ft,height:mt})}),U&&vt?S.createElement("img",Object.assign({},We,{src:vt})):S.createElement("img",Object.assign({},We,{onLoad:_,onError:C,src:ie})),xt==="loading"&&S.createElement("div",{"aria-hidden":"true",className:"".concat(ke,"-placeholder")},Ye)),Dt&&!U&&S.createElement(le,{"aria-hidden":!Ut,visible:Ut,prefixCls:pt,onClose:G,mousePosition:bn,src:ve,alt:ye}))};Y.displayName="Image";var Q=Y,te=ce.a=Q},n6Qo:function(qe,ce,M){"use strict";M.d(ce,"a",function(){return F});var J=M("q1tI"),B=M("biw7"),L=M("fyJ8");function N(e){var O=e.className,m=e.index,v=e.children,d=e.colSpan,s=e.rowSpan,a=J.useContext(B.a),l=a.prefixCls,o=a.fixedInfoList,i=o[m];return J.createElement(L.a,Object.assign({className:O,index:m,component:"td",prefixCls:l,record:null,dataIndex:null,render:function(){return{children:v,props:{colSpan:d,rowSpan:s}}}},i))}function S(e){return J.createElement("tr",Object.assign({},e))}function A(e){var O=e.children,m=J.useContext(B.a),v=m.prefixCls;return J.createElement("tfoot",{className:"".concat(v,"-summary")},O)}var H=ce.b=A,F={Cell:N,Row:S}},nEHx:function(qe,ce,M){"use strict";M.d(ce,"a",function(){return J});var J;(function(B){B.DARK="dark",B.LIGHT="light",B.HIGH_CONTRAST="hc"})(J||(J={}))},nnTU:function(qe,ce,M){"use strict";M.d(ce,"b",function(){return H}),M.d(ce,"a",function(){return F});var J=M("MI8n"),B=M("JYp7"),L=M("pmY6"),N=M("24hK"),S=M("746U"),A=M("Cg/j");const H=Object(A.c)("commandService"),F=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new J.b,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,O){if(!e)throw new Error("invalid command");if(typeof e=="string"){if(!O)throw new Error("invalid command");return this.registerCommand({id:e,handler:O})}if(e.description){const a=[];for(let o of e.description.args)a.push(o.constraint);const l=e.handler;e.handler=function(o,...i){return Object(S.o)(i,a),l(o,...i)}}const{id:m}=e;let v=this._commands.get(m);v||(v=new N.a,this._commands.set(m,v));let d=v.unshift(e),s=Object(L.i)(()=>{d();const a=this._commands.get(m);(a==null?void 0:a.isEmpty())&&this._commands.delete(m)});return this._onDidRegisterCommand.fire(m),s}registerCommandAlias(e,O){return F.registerCommand(e,(m,...v)=>m.get(H).executeCommand(O,...v))}getCommand(e){const O=this._commands.get(e);return!O||O.isEmpty()?void 0:B.a.first(O)}getCommands(){const e=new Map;for(const O of this._commands.keys()){const m=this.getCommand(O);m&&e.set(O,m)}return e}};F.registerCommand("noop",()=>{})},p5ED:function(qe,ce,M){"use strict";var J=M("+L6B"),B=M("2/Rp"),L=M("5Dmo"),N=M("3S7+"),S=M("k1fw"),A=M("9og8"),H=M("tJVT"),F=M("WmNS"),e=M.n(F),O=M("q1tI"),m=M.n(O),v=M("vHTk"),d=M.n(v),s=M("yEEn"),a=M("ZW9T"),l=M("1vsH"),o=M("V0Rq"),i=M("m3rI");ce.a=function(r){var t,E,b,y,w,T,p,c=r.editOffice,u=c===void 0?"view":c,h=r.data,x=r.theme,g=r.type,f=r.filename,R=r.monacoEditor,I=r.className,n=r.style,P=r.close,W=r.onClose,D=r.hasMask,K=r.disabledDownload,V=Object(O.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),oe=Object(H.a)(V,2),se=oe[0],Ae=oe[1],we=Object(O.useState)(""),Ee=Object(H.a)(we,2),Se=Ee[0],Le=Ee[1],he=Object(O.useState)(),ee=Object(H.a)(he,2),Be=ee[0],at=ee[1],Ze=window.ENV==="build"?"/react/build":"",Xe=i.a.PROXY_SERVER||location.origin,it,Ue=1024*1024,Ve=10*Ue,et=Object(O.useRef)();(t=h)!==null&&t!==void 0&&t.startsWith("/api")&&g!=="txt"&&(h=i.a.API_SERVER+h),g==="office"&&(it=Object(l.T)(h).filesize,it>Ve&&(g="other")),f&&R&&(R.filename=f),Object(O.useEffect)(function(){var Re,$e,tt=(Re=document.cookie)===null||Re===void 0||(($e=Re.replace(/\s/g,""))===null||$e===void 0)?void 0:$e.split(";");tt==null||tt.map(function(st){var rt=st.split("=");rt[0]==="_educoder_session"&&Le(rt[1])})},[]),Object(O.useEffect)(function(){g==="office"&&ne()},[g,h]);var ne=function(){var Re=Object(A.a)(e.a.mark(function $e(){var tt,st,rt;return e.a.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return console.log("data:",h),tt=h,h.startsWith("http")||(tt=location.origin+tt),st=new URL(tt).pathname.split("/").pop(),ht.next=6,Object(o.V)({attachment_id:st});case 6:rt=ht.sent,at(rt);case 8:case"end":return ht.stop()}},$e)}));return function(){return Re.apply(this,arguments)}}(),be=function(){if(h.startsWith("http")||h.startsWith("blob:")){Oe();return}Object(l.z)(f||"educoder",h,f)},Oe=function(){Object(l.x)(f||"educoder",decodeURIComponent(h))};return m.a.createElement("div",{style:Object(S.a)({},n||{}),className:"".concat(D&&d.a.bgBlack," ").concat(g?d.a.wrp:"hide")},P&&m.a.createElement("div",{className:d.a.close,ref:et},!K&&m.a.createElement(N.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return et.current}},m.a.createElement("span",{onClick:Oe},m.a.createElement("i",{className:"icon-quxiaozhiding"}))),m.a.createElement(N.a,{title:"\u5173\u95ED",getPopupContainer:function(){return et.current}},m.a.createElement("span",{className:"",onClick:W},m.a.createElement("i",{className:"icon-guanbi1"})))),m.a.createElement("div",{className:"".concat(d.a[I]," ").concat(I," ").concat(d.a.monaco," ").concat(g==="txt"?"show":"hide")},g==="txt"&&m.a.createElement(a.b,R)),g==="audio"&&m.a.createElement("audio",{src:"".concat(((E=h)===null||E===void 0?void 0:E.indexOf("http://"))>-1||((b=h)===null||b===void 0?void 0:b.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(h),autoPlay:!0}),g==="video"&&m.a.createElement(m.a.Fragment,null,((y=h)===null||y===void 0?void 0:y.indexOf("http"))>-1?m.a.createElement("video",{controls:!0,src:"".concat(h),autoPlay:!0}):m.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(h),autoPlay:!0})),g==="office"&&Be&&m.a.createElement("iframe",{src:"".concat(Ze,"/office.html?key=").concat(Be.key,"&url=").concat(Xe+Be.url,"&callbackUrl=").concat(Xe+Be.callbackUrl,"&fileType=").concat(Be.fileType,"&title=").concat(Be.title,"&model=").concat(u,"&officeServer=").concat(i.a.OFFICE_SERVER,"&disabledDownload=").concat(!!K)}),g==="html"&&m.a.createElement("iframe",{src:h+"&disposition=inline"}),g==="pdf"&&m.a.createElement("iframe",{src:"".concat(Ze,"/js/pdfview/index.html?url=").concat(h,"&disabledDownload=").concat(!!K)}),g==="image"&&m.a.createElement("img",{src:"".concat(((w=h)===null||w===void 0?void 0:w.indexOf("http://"))>-1||((T=h)===null||T===void 0?void 0:T.indexOf("https://"))>-1||(p=h)!==null&&p!==void 0&&p.startsWith("/api")?"":"data:image/png;base64,").concat(h)}),g==="other"&&m.a.createElement("div",null,m.a.createElement(B.a,{type:"primary",size:"large",onClick:be},m.a.createElement(s.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),g==="download"&&m.a.createElement(B.a,{type:"primary",size:"large",onClick:be},m.a.createElement(s.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},pmY6:function(qe,ce,M){"use strict";M.d(ce,"h",function(){return O}),M.d(ce,"g",function(){return v}),M.d(ce,"f",function(){return d}),M.d(ce,"e",function(){return s}),M.d(ce,"i",function(){return a}),M.d(ce,"b",function(){return l}),M.d(ce,"a",function(){return o}),M.d(ce,"d",function(){return i}),M.d(ce,"c",function(){return r});var J=M("C/vA"),B=M("JYp7");const L=!1;let N=null;function S(t){N=t}if(L){const t="__is_disposable_tracked__";S(new class{trackDisposable(E){const b=new Error("Potentially leaked disposable").stack;setTimeout(()=>{E[t]||console.log(b)},3e3)}setParent(E,b){if(E&&E!==o.None)try{E[t]=!0}catch(y){}}markAsDisposed(E){if(E&&E!==o.None)try{E[t]=!0}catch(b){}}markAsSingleton(E){}})}function A(t){return N==null||N.trackDisposable(t),t}function H(t){N==null||N.markAsDisposed(t)}function F(t,E){N==null||N.setParent(t,E)}function e(t,E){if(!N)return;for(const b of t)N.setParent(b,E)}function O(t){return N==null||N.markAsSingleton(t),t}class m extends Error{constructor(t){super(`Encountered errors while disposing of store. Errors: [${t.join(", ")}]`);this.errors=t}}function v(t){return typeof t.dispose=="function"&&t.dispose.length===0}function d(t){if(B.a.is(t)){let E=[];for(const b of t)if(b)try{b.dispose()}catch(y){E.push(y)}if(E.length===1)throw E[0];if(E.length>1)throw new m(E);return Array.isArray(t)?[]:t}else if(t)return t.dispose(),t}function s(...t){const E=a(()=>d(t));return e(t,E),E}function a(t){const E=A({dispose:Object(J.a)(()=>{H(E),t()})});return E}class l{constructor(){this._toDispose=new Set,this._isDisposed=!1,A(this)}dispose(){if(this._isDisposed)return;H(this),this._isDisposed=!0,this.clear()}clear(){try{d(this._toDispose.values())}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return F(t,this),this._isDisposed?l.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}}l.DISABLE_DISPOSED_WARNING=!1;class o{constructor(){this._store=new l,A(this),F(this._store,this)}dispose(){H(this),this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}}o.None=Object.freeze({dispose(){}});class i{constructor(){this._isDisposed=!1,A(this)}get value(){return this._isDisposed?void 0:this._value}set value(t){var E;if(this._isDisposed||t===this._value)return;(E=this._value)===null||E===void 0||E.dispose(),t&&F(t,this),this._value=t}clear(){this.value=void 0}dispose(){var t;this._isDisposed=!0,H(this),(t=this._value)===null||t===void 0||t.dispose(),this._value=void 0}clearAndLeak(){const t=this._value;return this._value=void 0,t&&F(t,null),t}}class r{constructor(t){this.object=t}dispose(){}}},psGv:function(qe,ce,M){var J,B;(function(){var L;(function(){"use strict";var H=[,,function(m){function v(a){this.__parent=a,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}v.prototype.clone_empty=function(){var a=new v(this.__parent);return a.set_indent(this.__indent_count,this.__alignment_count),a},v.prototype.item=function(a){return a<0?this.__items[this.__items.length+a]:this.__items[a]},v.prototype.has_match=function(a){for(var l=this.__items.length-1;l>=0;l--)if(this.__items[l].match(a))return!0;return!1},v.prototype.set_indent=function(a,l){this.is_empty()&&(this.__indent_count=a||0,this.__alignment_count=l||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},v.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},v.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},v.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var a=this.__parent.current_line;return a.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),a.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),a.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,a.__items[0]===" "&&(a.__items.splice(0,1),a.__character_count-=1),!0}return!1},v.prototype.is_empty=function(){return this.__items.length===0},v.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},v.prototype.push=function(a){this.__items.push(a);var l=a.lastIndexOf(` +`)}]},i=M("5VLF"),r=M.n(i),t={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},E=function(K,V){return V.map(function(oe){return{label:oe,kind:K.languages.CompletionItemKind.Keyword,insertText:oe}})},b=function(K){return Object.keys(t.tables).map(function(V){return{label:V,kind:K.languages.CompletionItemKind.Variable,insertText:V}})},y=function(K,V){var oe=t.tables[K];return oe?oe.map(function(se){return{label:se,kind:V.languages.CompletionItemKind.Field,insertText:se}}):[]};function w(D,K,V,oe,se){var Ae=K.getWordUntilPosition(V),we={startLineNumber:V.lineNumber,endLineNumber:V.lineNumber,startColumn:Ae.startColumn,endColumn:Ae.endColumn},Ee=oe.map(function(Se){return{label:Se,kind:D.languages.CompletionItemKind.Keyword,insertText:Se,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:we}});return se.map(function(Se){Ee.push(Object(J.a)(Object(J.a)({},Se),{},{range:we}))}),Ee}var T=function(D){t.languages.map(function(se){return D.languages.registerDocumentFormattingEditProvider(se,{provideDocumentFormattingEdits:function(we,Ee,Se){return Object(m.a)(d.a.mark(function Le(){var he;return d.a.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return he=r()(we.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1}),Be.abrupt("return",[{range:we.getFullModelRange(),text:he}]);case 2:case"end":return Be.stop()}},Le)}))()}}),se});var K=l.quickKey.map(function(se){return{label:se.label,kind:D.languages.CompletionItemKind.Method,insertText:se.content,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),V=o.quickKey.map(function(se){return{label:se.label,kind:D.languages.CompletionItemKind.Method,insertText:se.content,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),oe=a.quickKey.map(function(se){return{label:se.label,kind:D.languages.CompletionItemKind.Method,insertText:se.content,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet}});D.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Ae,we){var Ee=Ae.getWordUntilPosition(we),Se={startLineNumber:we.lineNumber,endLineNumber:we.lineNumber,startColumn:Ee.startColumn,endColumn:Ee.endColumn},Le=Ae.getLineContent(we.lineNumber).substring(Ee.startColumn-2,Ee.endColumn);return{suggestions:[].concat(Object(B.a)(l.keywords.map(function(he){return{label:he,kind:D.languages.CompletionItemKind.Function,documentation:he,insertText:he,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}})),Object(B.a)(l.quickKey.map(function(he){return{label:he.label,kind:D.languages.CompletionItemKind.Function,documentation:he.content,insertText:Le.startsWith("#")?he.content.replace(/#/,""):he.content,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}})))}}}),D.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Ae,we){var Ee=Ae.getWordUntilPosition(we),Se={startLineNumber:we.lineNumber,endLineNumber:we.lineNumber,startColumn:Ee.startColumn,endColumn:Ee.endColumn};return{suggestions:Object(B.a)(s.keywords.map(function(Le){return{label:Le,kind:D.languages.CompletionItemKind.Function,documentation:Le,insertText:Le,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}}))}}}),D.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Ae,we){var Ee=Ae.getWordUntilPosition(we),Se={startLineNumber:we.lineNumber,endLineNumber:we.lineNumber,startColumn:Ee.startColumn,endColumn:Ee.endColumn},Le=Ae.getLineContent(we.lineNumber).substring(Ee.startColumn-2,Ee.endColumn);return{suggestions:[].concat(Object(B.a)(a.keywords.map(function(he){return{label:he,kind:D.languages.CompletionItemKind.Function,documentation:he,insertText:he,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}})),Object(B.a)(a.quickKey.map(function(he){return{label:he.label,kind:D.languages.CompletionItemKind.Function,documentation:he.content,insertText:Le.startsWith("#")?he.content.replace(/#/,""):he.content,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}})))}}}),D.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Ae,we){var Ee=Ae.getWordUntilPosition(we),Se={startLineNumber:we.lineNumber,endLineNumber:we.lineNumber,startColumn:Ee.startColumn,endColumn:Ee.endColumn},Le=Ae.getLineContent(we.lineNumber).substring(Ee.startColumn-2,Ee.endColumn);return{suggestions:[].concat(Object(B.a)(o.keywords.map(function(he){return{label:he,kind:D.languages.CompletionItemKind.Function,documentation:he,insertText:he,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}})),Object(B.a)(o.quickKey.map(function(he){return{label:he.label,kind:D.languages.CompletionItemKind.Function,documentation:he.content,insertText:Le.startsWith("#")?he.content.replace(/#/,""):he.content,insertTextRules:D.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}})))}}})},p="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",c=M("fjLI"),u=M("LvDl"),h=M("+ua5");function x(D){return/^\d+$/.test(D)?"".concat(D,"px"):D}function g(){}var f=!1,R={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function I(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],K=D;if(Array.isArray(D)){for(var V=0;V0||mn.target.offsetWidth>0)&&Ne.current.instance.layout()}}catch(fn){wt.e(fn)}finally{wt.f()}}),yt.observe(Me.current)),yt}function ye(){N.b.warn(decodeURIComponent(p))}var fe=function(){var gt=Ne.current.instance;if(Ae!=null&>&&Z){var wt=gt.getModel();wt&&Ae!==wt.getValue()&&(f=!0,wt.setValue(Ae),gt.layout(),f=!1)}};Object(F.useEffect)(function(){ae.current&&clearTimeout(ae.current),ae.current=setTimeout(function(){fe()},500)},[Ae,Z,Ne.current]),Object(F.useEffect)(function(){if(Te&&Ne.current&&Ne.current.instance){var yt=Ne.current.instance;yt.changeViewZones(function(wt){var Qt=document.createElement("div");Qt.style.padding="10px 20px",Qt.style.width="calc(100% - 20px)",Qt.className="my-error-line-wrp",Qt.innerHTML=je,wt.addZone({afterLineNumber:Te||11,heightInLines:3,domNode:Qt})});var gt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};yt.addOverlayWidget(gt),yt.revealPositionInCenter({lineNumber:20,column:1})}},[Te,Ne.current,Z]);function Pe(){var yt=Ne.current.instance;if(yt){var gt=yt.getSelection(),wt=Ne.current.pastePos||{},Qt=new n.Range(wt.startLineNumber||gt.endLineNumber,wt.startColumn||gt.endColumn,wt.endLineNumber||gt.endLineNumber,wt.endColumn||gt.endColumn);setTimeout(function(){yt.executeEdits("",[{range:Qt,text:""}])},300)}}function ke(yt){(window.navigator.platform.match("Mac")?yt.metaKey:yt.ctrlKey)&&yt.keyCode==83&&(yt.preventDefault(),Ue())}var Qe=function(){if(et&&Ne.current.instance){var gt=Ne.current.instance.getContentHeight();ot(gt0||$e.target.offsetWidth>0)&&et.layout()}}catch(tt){Oe.e(tt)}finally{Oe.f()}}),ne.observe(he.current)),ne}Object(F.useEffect)(function(){he.current&&Promise.all([M.e(16),M.e(28)]).then(M.t.bind(null,"M/lh",7)).then(function(et){n=et;var ne=n.editor.createDiffEditor(he.current,Object(J.a)(Object(J.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},Le),{},{wordWrap:!0}));Ze(ne);var be=Xe(ne);return function(){ne.dispose();var Oe=ne.getModel();Oe&&Oe.dispose(),be.unobserve(he.current)}})},[]),Object(F.useEffect)(function(){at&&at.setModel({original:n.editor.createModel(Ae,Ee),modified:n.editor.createModel(we,Ee)})},[Ae,we,Ee,at]);var it=x(V),Ue=x(se),Ve={width:it,height:Ue};return e.a.createElement("div",{className:"my-diff-editor",ref:he,style:Ve})}},ZpRC:function(qe,ce,M){"use strict";function J(m){return typeof m=="object"&&m!=null&&m.nodeType===1}function B(m,v){return(!v||m!=="hidden")&&m!=="visible"&&m!=="clip"}function L(m,v){if(m.clientHeightv||l>m&&o=v&&i>=d?l-m-s:o>v&&id?o-v+a:0}var S=function(m,v){var d=window,s=v.scrollMode,a=v.block,l=v.inline,o=v.boundary,i=v.skipOverflowHiddenElements,r=typeof o=="function"?o:function(et){return et!==o};if(!J(m))throw new TypeError("Invalid target");for(var t=document.scrollingElement||document.documentElement,E=[],b=m;J(b)&&r(b);){if((b=b.parentElement)===t){E.push(b);break}b!=null&&b===document.body&&L(b)&&!L(document.documentElement)||b!=null&&L(b,i)&&E.push(b)}for(var y=d.visualViewport?d.visualViewport.width:innerWidth,w=d.visualViewport?d.visualViewport.height:innerHeight,T=window.scrollX||pageXOffset,p=window.scrollY||pageYOffset,c=m.getBoundingClientRect(),u=c.height,h=c.width,x=c.top,g=c.right,f=c.bottom,R=c.left,I=a==="start"||a==="nearest"?x:a==="end"?f:x+u/2,n=l==="center"?R+h/2:l==="end"?g:R,P=[],W=0;W=0&&R>=0&&f<=w&&g<=y&&x>=se&&f<=we&&R>=Ee&&g<=Ae)return P;var Se=getComputedStyle(D),Le=parseInt(Se.borderLeftWidth,10),he=parseInt(Se.borderTopWidth,10),ee=parseInt(Se.borderRightWidth,10),Be=parseInt(Se.borderBottomWidth,10),at=0,Ze=0,Xe="offsetWidth"in D?D.offsetWidth-D.clientWidth-Le-ee:0,it="offsetHeight"in D?D.offsetHeight-D.clientHeight-he-Be:0;if(t===D)at=a==="start"?I:a==="end"?I-w:a==="nearest"?N(p,p+w,w,he,Be,p+I,p+I+u,u):I-w/2,Ze=l==="start"?n:l==="center"?n-y/2:l==="end"?n-y:N(T,T+y,y,Le,ee,T+n,T+n+h,h),at=Math.max(0,at+p),Ze=Math.max(0,Ze+T);else{at=a==="start"?I-se-he:a==="end"?I-we+Be+it:a==="nearest"?N(se,we,V,he,Be+it,I,I+u,u):I-(se+V/2)+it/2,Ze=l==="start"?n-Ee-Le:l==="center"?n-(Ee+oe/2)+Xe/2:l==="end"?n-Ae+ee+Xe:N(Ee,Ae,oe,Le,ee+Xe,n,n+h,h);var Ue=D.scrollLeft,Ve=D.scrollTop;I+=Ve-(at=Math.max(0,Math.min(Ve+at,D.scrollHeight-V+it))),n+=Ue-(Ze=Math.max(0,Math.min(Ue+Ze,D.scrollWidth-oe+Xe)))}P.push({el:D,top:at,left:Ze})}return P};function A(m){return m===Object(m)&&Object.keys(m).length!==0}function H(m,v){v===void 0&&(v="auto");var d="scrollBehavior"in document.body.style;m.forEach(function(s){var a=s.el,l=s.top,o=s.left;a.scroll&&d?a.scroll({top:l,left:o,behavior:v}):(a.scrollTop=l,a.scrollLeft=o)})}function F(m){return m===!1?{block:"end",inline:"nearest"}:A(m)?m:{block:"start",inline:"nearest"}}function e(m,v){var d=!m.ownerDocument.documentElement.contains(m);if(A(v)&&typeof v.behavior=="function")return v.behavior(d?[]:S(m,v));if(d)return;var s=F(v);return H(S(m,s),s.behavior)}var O=ce.a=e},"a83/":function(qe,ce){qe.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABGCAYAAAA6hjFpAAAAAXNSR0IArs4c6QAAAppJREFUeAHtnGlrwkAYhN+oiIiK6AdBwf//s/SD94EX3kc7SxXFxFIb21mZhWKy2YTJPJk9tBpMp9OTqdA4kKBRIiHOAQEhexAEREDIHCCTo4QICJkDZHKUEAEhc4BMjhIiIGQOkMlRQgSEzAEyOUqIgJA5QCZHCREQMgfI5CghAkLmAJkcJURAyBwgk6OECAiZA2RylBABIXOATE6KTM9FTq/Xs9lsdtmPc6NQKFilUonzkrFdixYIYARBYOl0OrabxYW2260DLSBP2JpKpaxerz9xZvQpjUbDdrtddIN/PuLloL7ZbOx0es9/SabtssIeVIBotVp2OBxcd1atVi2bzYY19bbOq4QMBgMHA24jId1u11vjo4R7BWS/39/cB5Lybl2XV0Dy+fwNkFwu57qum8qvndVqZZ1Ox8bjsVfQvBpDyuWyJZNJg9mYDpdKpTAWbmrbbrfteDzaYrFw7Wu1WmhbtkqvgMC8YrHo/h4ZiUUlYJzLcrl0SYkCeG7H8OodkO9Mw4JyvV7fNRuNRpbJZO7q2Sq8GkM+vw8ZavbZVKRiOByed+9eMSu7Ts5dA4IKLxKCmRTWHxg7UNBtofvBeHJdAAMzr6jy6FjUOX9d70VC+v3+BQYMmkwm1mw2bT6fX/zCNhLke6FPCEwOe9cXTzu6ICwWE4kE9ftTP3lIqIFgIYh0PCoA40NX9Ogero9Rd1nvtgq/Nj5qmxpIlOh3rhcQMrq0QPAx66vKK6/9W82BfnzmtxbGez5tQuK9TX+uJiBkrAREQMgcIJOjhAgImQNkcpQQASFzgEyOEiIgZA6QyVFCBITMATI5SoiAkDlAJkcJERAyB8jkKCECQuYAmRwlREDIHCCTo4QICJkDZHKUEAEhc4BMzgdb8clCZGraXQAAAABJRU5ErkJggg=="},bT9E:function(qe,ce,M){"use strict";M.d(ce,"a",function(){return B});var J=M("VTBJ");function B(L,N){var S=Object(J.a)({},L);return Array.isArray(N)&&N.forEach(function(A){delete S[A]}),S}},biw7:function(qe,ce,M){"use strict";var J=M("q1tI"),B=M.n(J),L=J.createContext(null);ce.a=L},cw1j:function(qe,ce,M){"use strict";var J=M("k1fw"),B=M("tJVT"),L=M("5NDa"),N=M("5rEg"),S=M("q1tI"),A=M.n(S),H=M("NKYn"),F=M("tJYV"),e=M.n(F),O=N.a.TextArea,m=function(d){var s=d.item,a=d.answerData,l=d.changeScoreData,o=d.textValue,i=d.textOnChange,r=i===void 0?function(){}:i,t=d.seeAnswerVisible,E=t===void 0?!0:t,b=Object(S.useState)([]),y=Object(B.a)(b,2),w=y[0],T=y[1],p=Object(S.useState)(!1),c=Object(B.a)(p,2),u=c[0],h=c[1];return Object(S.useEffect)(function(){l!=null&&l[s.q_position]?!u&&h(!0):u&&h(!1)},[l==null?void 0:l[s==null?void 0:s.q_position]]),Object(S.useEffect)(function(){for(var x=[],g=function(I){var n,P=(s==null||((n=s.user_answer)===null||n===void 0)?void 0:n.find(function(W){return W.choice_id===I+1}))||{choice_id:I+1,answer_text:""};x.push(Object(J.a)({},P))},f=0;f<(s==null?void 0:s.multi_count);f++)g(f);T(x)},[s==null?void 0:s.user_answer]),A.a.createElement("div",{className:e.a.fillBg},A.a.createElement("aside",{className:"font14 c-light-primary mb5"},"\u5B66\u751F\u7B54\u9898"),w==null?void 0:w.map(function(x,g){return A.a.createElement("div",null,A.a.createElement("span",null,"\u7B54\u6848(\u586B\u7A7A",g+1,"):"),A.a.createElement("div",null,x==null?void 0:x.answer_text))}),E&&A.a.createElement(H.a,{data:s}))};ce.a=m},dmUQ:function(qe,ce,M){"use strict";var J=M("Ff2n"),B=M("rePB"),L=M("1OyB"),N=M("vuIU"),S=M("Ji7U"),A=M("md7G"),H=M("foSv"),F=M("q1tI"),e=M.n(F),O=M("TSYQ"),m=M.n(O),v=M("4IlW");function d(u,h){var x=Object.keys(u);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(u);h&&(g=g.filter(function(f){return Object.getOwnPropertyDescriptor(u,f).enumerable})),x.push.apply(x,g)}return x}function s(u){for(var h=1;h1?oe-1:0),Ae=1;Ae1?W-1:0),K=1;K=0)return parseInt(P.slice(P.indexOf("e-")+2),10);var W=0;return P.indexOf(".")>=0&&(W=P.length-P.indexOf(".")-1),W},f.getInputDisplayValue=function(n){var P=n||f.state,W=P.focused,D=P.inputValue,K=P.value,V;W?V=D:V=f.toPrecisionAsStep(K),V==null&&(V="");var oe=f.formatWrapper(V);return y(f.props.decimalSeparator)&&(oe=oe.toString().replace(".",f.props.decimalSeparator)),oe},f.recordCursorPosition=function(){try{f.cursorStart=f.input.selectionStart,f.cursorEnd=f.input.selectionEnd,f.currentValue=f.input.value,f.cursorBefore=f.input.value.substring(0,f.cursorStart),f.cursorAfter=f.input.value.substring(f.cursorEnd)}catch(n){}},f.restoreByAfter=function(n){if(n===void 0)return!1;var P=f.input.value,W=P.lastIndexOf(n);if(W===-1)return!1;var D=f.cursorBefore.length;return f.lastKeyCode===v.a.DELETE&&f.cursorBefore.charAt(D-1)===n[0]?(f.fixCaret(D,D),!0):W+n.length===P.length?(f.fixCaret(W,W),!0):!1},f.partRestoreByAfter=function(n){return n===void 0?!1:Array.prototype.some.call(n,function(P,W){var D=n.substring(W);return f.restoreByAfter(D)})},f.isNotCompleteNumber=function(n){return isNaN(n)||n===""||n===null||n&&n.toString().indexOf(".")===n.toString().length-1},f.stop=function(){f.autoStepTimer&&clearTimeout(f.autoStepTimer)},f.down=function(n,P,W){f.pressingUpOrDown=!0,f.step("down",n,P,W)},f.up=function(n,P,W){f.pressingUpOrDown=!0,f.step("up",n,P,W)},f.saveInput=function(n){f.input=n};var R=g.value;R===void 0&&(R=g.defaultValue),f.state={focused:g.autoFocus};var I=f.getValidValue(f.toNumber(R));return f.state=s(s({},f.state),{},{inputValue:f.toPrecisionAsStep(I),value:I}),f}return Object(N.a)(x,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(f){var R=this.props,I=R.value,n=R.onChange,P=R.max,W=R.min,D=this.state.focused;if(f){if(!w(f.value,I)||!w(f.max,P)||!w(f.min,W)){var K=D?I:this.getValidValue(I),V;this.pressingUpOrDown?V=K:this.inputting?V=this.rawInput:V=this.toPrecisionAsStep(K),this.setState({value:K,inputValue:V})}var oe="value"in this.props?I:this.state.value;"max"in this.props&&f.max!==P&&typeof oe=="number"&&oe>P&&n&&n(P),"min"in this.props&&f.min!==W&&typeof oe=="number"&&oe1&&arguments[1]!==void 0?arguments[1]:this.props.min,I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,n=parseFloat(f);return isNaN(n)?f:(nI&&(n=I),n)}},{key:"setValue",value:function(f,R){var I=this.props.precision,n=this.isNotCompleteNumber(parseFloat(f))?null:parseFloat(f),P=this.state.value,W=P===void 0?null:P,D=this.state.inputValue,K=D===void 0?null:D,V=typeof n=="number"?n.toFixed(I):"".concat(n),oe=n!==W||V!=="".concat(K);return"value"in this.props?(K=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:K},R)):this.setState({value:n,inputValue:this.toPrecisionAsStep(f)},R),oe&&this.props.onChange(n),n}},{key:"getMaxPrecision",value:function(f){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,I=this.props,n=I.precision,P=I.step;if(y(n))return n;var W=this.getPrecision(R),D=this.getPrecision(P),K=this.getPrecision(f);return f?Math.max(K,W+D):W+D}},{key:"getPrecisionFactor",value:function(f){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,I=this.getMaxPrecision(f,R);return Math.pow(10,I)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(f){return this.props.formatter?this.props.formatter(f):f}},{key:"toPrecisionAsStep",value:function(f){if(this.isNotCompleteNumber(f)||f==="")return f;var R=Math.abs(this.getMaxPrecision(f));return isNaN(R)?f.toString():Number(f).toFixed(R)}},{key:"toNumber",value:function(f){var R=this.props.precision,I=this.state.focused,n=f&&f.length>16&&I;return this.isNotCompleteNumber(f)||n?f:y(R)?Math.round(f*Math.pow(10,R))/Math.pow(10,R):Number(f)}},{key:"upStep",value:function(f,R){var I=this.props.step,n=this.getPrecisionFactor(f,R),P=Math.abs(this.getMaxPrecision(f,R)),W=((n*f+n*I*R)/n).toFixed(P);return this.toNumber(W)}},{key:"downStep",value:function(f,R){var I=this.props.step,n=this.getPrecisionFactor(f,R),P=Math.abs(this.getMaxPrecision(f,R)),W=((n*f-n*I*R)/n).toFixed(P);return this.toNumber(W)}},{key:"step",value:function(f,R){var I=this,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,P=arguments.length>3?arguments[3]:void 0;this.stop(),R&&(R.persist(),R.preventDefault());var W=this.props;if(W.disabled)return;var D=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(D))return;var K=this["".concat(f,"Step")](D,n),V=K>W.max||KW.max?K=W.max:K=se),Ne=(ut||ut===0)&&(isNaN(ut)||Number(ut)<=Ae),pe=Me||n||P,ae=Ne||n||P,le=m()("".concat(I,"-handler"),"".concat(I,"-handler-up"),Object(B.a)({},"".concat(I,"-handler-up-disabled"),pe)),Y=m()("".concat(I,"-handler"),"".concat(I,"-handler-down"),Object(B.a)({},"".concat(I,"-handler-down-disabled"),ae)),Q=W?{onTouchStart:pe?o:this.up,onTouchEnd:this.stop}:{onMouseDown:pe?o:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},te=W?{onTouchStart:ae?o:this.down,onTouchEnd:this.stop}:{onMouseDown:ae?o:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return e.a.createElement("div",{className:Te,style:we,title:Ee,onMouseEnter:Se,onMouseLeave:Le,onMouseOver:he,onMouseOut:ee,onFocus:function(){return null},onBlur:function(){return null}},e.a.createElement("div",{className:"".concat(I,"-handler-wrap")},e.a.createElement("span",Object.assign({unselectable:"on"},Q,{role:"button","aria-label":"Increase Value","aria-disabled":pe,className:le}),K||e.a.createElement("span",{unselectable:"on",className:"".concat(I,"-handler-up-inner"),onClick:i})),e.a.createElement("span",Object.assign({unselectable:"on"},te,{role:"button","aria-label":"Decrease Value","aria-disabled":ae,className:Y}),V||e.a.createElement("span",{unselectable:"on",className:"".concat(I,"-handler-down-inner"),onClick:i}))),e.a.createElement("div",{className:"".concat(I,"-input-wrap")},e.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Ae,"aria-valuemax":se,"aria-valuenow":ut,required:Be,type:Xe,placeholder:it,onPaste:$e,onClick:at,onMouseUp:this.onMouseUp,className:"".concat(I,"-input"),tabIndex:Ze,autoComplete:D,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:je?this.onKeyDown:o,onKeyUp:je?this.onKeyUp:o,autoFocus:Oe,maxLength:be,readOnly:P,disabled:n,max:se,min:Ae,step:ne,name:Re,title:Ee,id:Ue,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(ze),pattern:et,inputMode:Ve,onInput:tt},Ie))))}}]),x}(e.a.Component);T.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:b,min:-b,step:1,style:{},onChange:o,onKeyDown:o,onPressEnter:o,onFocus:o,onBlur:o,parser:r,required:!1,autoComplete:"off"};var p=T,c=ce.a=p},fjLI:function(qe,ce,M){"use strict";M.d(ce,"f",function(){return d}),M.d(ce,"b",function(){return s}),M.d(ce,"a",function(){return a}),M.d(ce,"d",function(){return l}),M.d(ce,"e",function(){return o}),M.d(ce,"c",function(){return i});var J=M("8HAY"),B=M("Vhoy"),L=M("MI8n"),N=M("JYp7"),S=M("pmY6"),A=M("24hK"),H=M("nnTU"),F=M("T8No"),e=M("Cg/j"),O=M("t9D7"),m=function(r,t,E,b){var y=arguments.length,w=y<3?t:b===null?b=Object.getOwnPropertyDescriptor(t,E):b,T;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(r,t,E,b);else for(var p=r.length-1;p>=0;p--)(T=r[p])&&(w=(y<3?T(w):y>3?T(t,E,w):T(t,E))||w);return y>3&&w&&Object.defineProperty(t,E,w),w},v=function(r,t){return function(E,b){t(E,b,r)}};function d(r){return r.command!==void 0}class s{constructor(r){this.id=s._idPool++,this._debugName=r}}s._idPool=0,s.CommandPalette=new s("CommandPalette"),s.EditorContext=new s("EditorContext"),s.SimpleEditorContext=new s("SimpleEditorContext"),s.EditorContextCopy=new s("EditorContextCopy"),s.EditorContextPeek=new s("EditorContextPeek"),s.MenubarEditMenu=new s("MenubarEditMenu"),s.MenubarCopy=new s("MenubarCopy"),s.MenubarGoMenu=new s("MenubarGoMenu"),s.MenubarSelectionMenu=new s("MenubarSelectionMenu"),s.InlineCompletionsActions=new s("InlineCompletionsActions");const a=Object(e.c)("menuService"),l=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new L.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:r=>r===s.CommandPalette}}addCommand(r){return this.addCommands(N.a.single(r))}addCommands(r){for(const t of r)this._commands.set(t.id,t);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(S.i)(()=>{let t=!1;for(const E of r)t=this._commands.delete(E.id)||t;t&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(r){return this._commands.get(r)}getCommands(){const r=new Map;return this._commands.forEach((t,E)=>r.set(E,t)),r}appendMenuItem(r,t){return this.appendMenuItems(N.a.single({id:r,item:t}))}appendMenuItems(r){const t=new Set,E=new A.a;for(const{id:b,item:y}of r){let w=this._menuItems.get(b);w||(w=new A.a,this._menuItems.set(b,w)),E.push(w.push(y)),t.add(b)}return this._onDidChangeMenu.fire(t),Object(S.i)(()=>{if(E.size>0){for(let b of E)b();this._onDidChangeMenu.fire(t),E.clear()}})}getMenuItems(r){let t;return this._menuItems.has(r)?t=[...this._menuItems.get(r)]:t=[],r===s.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(r){const t=new Set;for(const E of r)d(E)&&(t.add(E.command.id),E.alt&&t.add(E.alt.id));this._commands.forEach((E,b)=>{t.has(b)||r.push({command:E})})}};class o extends J.e{constructor(r,t,E,b){super(`submenuitem.${r.submenu.id}`,typeof r.title=="string"?r.title:r.title.value,[],"submenu");this.item=r,this._menuService=t,this._contextKeyService=E,this._options=b}get actions(){const r=[],t=this._menuService.createMenu(this.item.submenu,this._contextKeyService),E=t.getActions(this._options);t.dispose();for(const[,b]of E)b.length>0&&(r.push(...b),r.push(new J.d));return r.length&&r.pop(),r}}let i=class r{constructor(t,E,b,y,w){var T,p;if(this._commandService=w,this.id=t.id,this.label=(b==null?void 0:b.renderShortTitle)&&t.shortTitle?typeof t.shortTitle=="string"?t.shortTitle:t.shortTitle.value:typeof t.title=="string"?t.title:t.title.value,this.tooltip=(p=typeof t.tooltip=="string"?t.tooltip:(T=t.tooltip)===null||T===void 0?void 0:T.value)!==null&&p!==void 0?p:"",this.enabled=!t.precondition||y.contextMatchesRules(t.precondition),this.checked=void 0,t.toggled){const c=t.toggled.condition?t.toggled:{condition:t.toggled};this.checked=y.contextMatchesRules(c.condition),this.checked&&c.tooltip&&(this.tooltip=typeof c.tooltip=="string"?c.tooltip:c.tooltip.value),c.title&&(this.label=typeof c.title=="string"?c.title:c.title.value)}this.item=t,this.alt=E?new r(E,void 0,b,y,w):void 0,this._options=b,O.d.isThemeIcon(t.icon)&&(this.class=B.a.asClassName(t.icon))}dispose(){}run(...t){var E,b;let y=[];return((E=this._options)===null||E===void 0?void 0:E.arg)&&(y=[...y,this._options.arg]),((b=this._options)===null||b===void 0?void 0:b.shouldForwardArgs)&&(y=[...y,...t]),this._commandService.executeCommand(this.id,...y)}};i=m([v(3,F.b),v(4,H.b)],i)},fyJ8:function(qe,ce,M){"use strict";var J=M("rePB"),B=M("VTBJ"),L=M("Ff2n"),N=M("U8pU"),S=M("q1tI"),A=M.n(S),H=M("TSYQ"),F=M.n(H),e=M("c+Xe"),O=M("sR1s");function m(l){return l&&Object(N.a)(l)==="object"&&!Array.isArray(l)&&!S.isValidElement(l)}function v(l){return typeof l=="string"?!0:Object(e.c)(l)}function d(l,o){var i,r=l.prefixCls,t=l.className,E=l.record,b=l.index,y=l.dataIndex,w=l.render,T=l.children,p=l.component,c=p===void 0?"td":p,u=l.colSpan,h=l.rowSpan,x=l.fixLeft,g=l.fixRight,f=l.firstFixLeft,R=l.lastFixLeft,I=l.firstFixRight,n=l.lastFixRight,P=l.appendNode,W=l.additionalProps,D=W===void 0?{}:W,K=l.ellipsis,V=l.align,oe=l.rowType,se=l.isSticky,Ae="".concat(r,"-cell"),we,Ee;if(T)Ee=T;else{var Se=Object(O.b)(E,y);if(Ee=Se,w){var Le=w(Se,E,b);m(Le)?(Ee=Le.children,we=Le.props):Ee=Le}}Object(N.a)(Ee)==="object"&&!Array.isArray(Ee)&&!S.isValidElement(Ee)&&(Ee=null),K&&(R||I)&&(Ee=S.createElement("span",{className:"".concat(Ae,"-content")},Ee));var he=we||{},ee=he.colSpan,Be=he.rowSpan,at=he.style,Ze=he.className,Xe=Object(L.a)(he,["colSpan","rowSpan","style","className"]),it=ee!==void 0?ee:u,Ue=Be!==void 0?Be:h;if(it===0||Ue===0)return null;var Ve={},et=typeof x=="number",ne=typeof g=="number";et&&(Ve.position="sticky",Ve.left=x),ne&&(Ve.position="sticky",Ve.right=g);var be={};V&&(be.textAlign=V);var Oe,Re=K===!0?{showTitle:!0}:K;Re&&(Re.showTitle||oe==="header")&&(typeof Ee=="string"||typeof Ee=="number"?Oe=Ee.toString():S.isValidElement(Ee)&&typeof Ee.props.children=="string"&&(Oe=Ee.props.children));var $e=Object(B.a)(Object(B.a)(Object(B.a)({title:Oe},Xe),D),{},{colSpan:it&&it!==1?it:null,rowSpan:Ue&&Ue!==1?Ue:null,className:F()(Ae,t,(i={},Object(J.a)(i,"".concat(Ae,"-fix-left"),et),Object(J.a)(i,"".concat(Ae,"-fix-left-first"),f),Object(J.a)(i,"".concat(Ae,"-fix-left-last"),R),Object(J.a)(i,"".concat(Ae,"-fix-right"),ne),Object(J.a)(i,"".concat(Ae,"-fix-right-first"),I),Object(J.a)(i,"".concat(Ae,"-fix-right-last"),n),Object(J.a)(i,"".concat(Ae,"-ellipsis"),K),Object(J.a)(i,"".concat(Ae,"-with-append"),P),Object(J.a)(i,"".concat(Ae,"-fix-sticky"),(et||ne)&&se),i),D.className,Ze),style:Object(B.a)(Object(B.a)(Object(B.a)(Object(B.a)({},D.style),be),Ve),at),ref:v(c)?o:null});return S.createElement(c,Object.assign({},$e),P,Ee)}var s=S.forwardRef(d);s.displayName="Cell";var a=S.memo(s,function(l,o){return o.shouldCellUpdate?!o.shouldCellUpdate(o.record,l.record):!1});ce.a=a},gsRb:function(qe,ce,M){qe.exports=M.p+"static/partially-correct.e6f86f8b.png"},hW8S:function(qe,ce,M){"use strict";M.d(ce,"a",function(){return N}),M.d(ce,"c",function(){return S}),M.d(ce,"b",function(){return A});var J=M("VTBJ"),B=M("Ff2n"),L=M("Kwbf"),N="RC_TABLE_INTERNAL_COL_DEFINE";function S(H){var F=H.expandable,e=Object(B.a)(H,["expandable"]);return"expandable"in H?Object(J.a)(Object(J.a)({},e),F):e}function A(H){return Object.keys(H).reduce(function(F,e){return(e.substr(0,5)==="data-"||e.substr(0,5)==="aria-")&&(F[e]=H[e]),F},{})}},ic2d:function(qe,ce,M){"use strict";M.d(ce,"a",function(){return N});var J=M("FWmy"),B=M("746U");class L{constructor(){this.data=new Map}add(S,A){J.a(B.l(S)),J.a(B.k(A)),J.a(!this.data.has(S),"There is already an extension with this id"),this.data.set(S,A)}as(S){return this.data.get(S)||null}}const N=new L},k3GJ:function(qe,ce,M){"use strict";M.d(ce,"a",function(){return Zr});var J=M("rePB"),B=M("ODXe"),L=M("Ff2n"),N=M("VTBJ"),S=M("q1tI"),A=M("TSYQ"),H=M.n(A),F=M("Zm9Q"),e=M("6cGi"),O=M("KQm4"),m=M("xEkU"),v=M.n(m),d=M("t23M");function s(re){var ge=Object(S.useRef)(),_e=Object(S.useRef)(!1);function ue(){for(var z=arguments.length,q=new Array(z),X=0;XDe&&(Je=De-He),Object(S.useMemo)(function(){if(!q.length)return[0,0];for(var dt=q.length,Rt=dt,Gt=0;Gtxe+Je){Rt=Gt-1;break}}for(var Ft=0,Wt=dt-1;Wt>=0;Wt-=1){var Yt=re.get(q[Wt].key)||E;if(Yt[Ce]1&&arguments[1]!==void 0?arguments[1]:!1,ue=ge&&typeof ge.getBoundingClientRect=="function"&&ge.getBoundingClientRect().width;if(ue){if(_e){var z=getComputedStyle(ge),q=z.marginLeft,X=z.marginRight;ue+=+q.replace("px","")+ +X.replace("px","")}ue=+ue.toFixed(6)}return ue||0},Oe=function(ge,_e,ue){ge&&Object(I.a)(ge.style)==="object"&&(ge.style[_e]=ue)},Re=function(){return Ze.any},$e=M("bdgK"),tt=M("i8i4"),st=M.n(tt),rt=M("wgJM"),ut=M("l4aY"),ht=M("m+aA"),Te=M("c+Xe"),Ie=M("zT1h"),je=M("QC+M");function ze(re,ge,_e){return _e?re[0]===ge[0]:re[0]===ge[0]&&re[1]===ge[1]}function Me(re,ge,_e){var ue=re[ge]||{};return Object(N.a)(Object(N.a)({},ue),_e)}function Ne(re,ge,_e,ue){for(var z=_e.points,q=Object.keys(re),X=0;X1&&arguments[1]!==void 0?arguments[1]:2;ge();var q=Object(rt.a)(function(){z<=1?ue({isCanceled:function(){return q!==re.current}}):_e(ue,z-1)});re.current=q}return S.useEffect(function(){return function(){ge()}},[]),[_e,ge]},Qt=[_t,Dt,kt,ot],mn=!1,fn=!0;function wn(re){return re===kt||re===ot}var Cn=function(re,ge){var _e=S.useState(Pt),ue=Object(B.a)(_e,2),z=ue[0],q=ue[1],X=wt(),de=Object(B.a)(X,2),me=de[0],Ce=de[1];function xe(){q(_t)}return gt(function(){if(z!==Pt&&z!==ot){var De=Qt.indexOf(z),Fe=Qt[De+1],He=ge(z);He===mn?q(Fe):me(function(Je){function dt(){if(Je.isCanceled())return;q(Fe)}He===!0?dt():Promise.resolve(He).then(dt)})}},[re,z]),S.useEffect(function(){return function(){Ce()}},[]),[xe,z]},qt=function(re){var ge=Object(S.useRef)(),_e=Object(S.useRef)(re);_e.current=re;var ue=S.useCallback(function(X){_e.current(X)},[]);function z(X){X&&(X.removeEventListener(Qe,ue),X.removeEventListener(ke,ue))}function q(X){ge.current&&ge.current!==X&&z(ge.current),X&&X!==ge.current&&(X.addEventListener(Qe,ue),X.addEventListener(ke,ue),ge.current=X)}return S.useEffect(function(){return function(){z(ge.current)}},[]),[q,z]};function en(re,ge,_e,ue){var z=ue.motionEnter,q=z===void 0?!0:z,X=ue.motionAppear,de=X===void 0?!0:X,me=ue.motionLeave,Ce=me===void 0?!0:me,xe=ue.motionDeadline,De=ue.motionLeaveImmediately,Fe=ue.onAppearPrepare,He=ue.onEnterPrepare,Je=ue.onLeavePrepare,dt=ue.onAppearStart,Rt=ue.onEnterStart,Gt=ue.onLeaveStart,Bt=ue.onAppearActive,Ft=ue.onEnterActive,Wt=ue.onLeaveActive,Yt=ue.onAppearEnd,$t=ue.onEnterEnd,cn=ue.onLeaveEnd,Zt=ue.onVisibleChanged,jn=Kt(),En=Object(B.a)(jn,2),Lt=En[0],It=En[1],nn=Kt(Ye),ln=Object(B.a)(nn,2),Tt=ln[0],dn=ln[1],Dn=Kt(null),hn=Object(B.a)(Dn,2),Tn=hn[0],Nn=hn[1],Qn=Object(S.useRef)(!1),sr=Object(S.useRef)(null),Fn=Object(S.useRef)(!1),or=Object(S.useRef)(null);function _r(){var Pn=_e();return Pn||or.current}var dr=Object(S.useRef)(!1);function hr(Pn){var yn=_r();if(Pn&&!Pn.deadline&&Pn.target!==yn)return;var qn;Tt===vt&&dr.current?qn=Yt==null?void 0:Yt(yn,Pn):Tt===ft&&dr.current?qn=$t==null?void 0:$t(yn,Pn):Tt===mt&&dr.current&&(qn=cn==null?void 0:cn(yn,Pn)),qn!==!1&&!Fn.current&&(dn(Ye),Nn(null))}var Kn=qt(hr),ir=Object(B.a)(Kn,1),Zn=ir[0],Yn=S.useMemo(function(){var Pn,yn,qn;switch(Tt){case"appear":return Pn={},Object(J.a)(Pn,_t,Fe),Object(J.a)(Pn,Dt,dt),Object(J.a)(Pn,kt,Bt),Pn;case"enter":return yn={},Object(J.a)(yn,_t,He),Object(J.a)(yn,Dt,Rt),Object(J.a)(yn,kt,Ft),yn;case"leave":return qn={},Object(J.a)(qn,_t,Je),Object(J.a)(qn,Dt,Gt),Object(J.a)(qn,kt,Wt),qn;default:return{}}},[Tt]),Rr=Cn(Tt,function(Pn){if(Pn===_t){var yn=Yn[_t];return yn?yn(_r()):mn}if(An in Yn){var qn;Nn(((qn=Yn[An])===null||qn===void 0?void 0:qn.call(Yn,_r(),null))||null)}return An===kt&&(Zn(_r()),xe>0&&(clearTimeout(sr.current),sr.current=setTimeout(function(){hr({deadline:!0})},xe))),fn}),Ar=Object(B.a)(Rr,2),Br=Ar[0],An=Ar[1],wr=wn(An);dr.current=wr,gt(function(){It(ge);var Pn=Qn.current;if(Qn.current=!0,!re)return;var yn;!Pn&&ge&&de&&(yn=vt),Pn&&ge&&q&&(yn=ft),(Pn&&!ge&&Ce||!Pn&&De&&!ge&&Ce)&&(yn=mt),yn&&(dn(yn),Br())},[ge]),Object(S.useEffect)(function(){(Tt===vt&&!de||Tt===ft&&!q||Tt===mt&&!Ce)&&dn(Ye)},[de,q,Ce]),Object(S.useEffect)(function(){return function(){clearTimeout(sr.current),Fn.current=!0}},[]),Object(S.useEffect)(function(){Lt!==void 0&&Tt===Ye&&(Zt==null||Zt(Lt))},[Lt,Tt]);var Fr=Tn;return Yn[_t]&&An===Dt&&(Fr=Object(N.a)({transition:"none"},Fr)),[Tt,An,Fr,Lt!=null?Lt:ge]}var Ut=function(re){Object(c.a)(_e,re);var ge=Object(u.a)(_e);function _e(){return Object(w.a)(this,_e),ge.apply(this,arguments)}return Object(T.a)(_e,[{key:"render",value:function(){return this.props.children}}]),_e}(S.Component),Mt=Ut;function Nt(re){var ge=re;Object(I.a)(re)==="object"&&(ge=re.transitionSupport);function _e(z){return!!(z.motionName&&ge)}var ue=S.forwardRef(function(z,q){var X=z.visible,de=X===void 0?!0:X,me=z.removeOnLeave,Ce=me===void 0?!0:me,xe=z.forceRender,De=z.children,Fe=z.motionName,He=z.leavedClassName,Je=z.eventProps,dt=_e(z),Rt=Object(S.useRef)(),Gt=Object(S.useRef)();function Bt(){try{return Object(ht.a)(Rt.current||Gt.current)}catch(dn){return null}}var Ft=en(dt,de,Bt,z),Wt=Object(B.a)(Ft,4),Yt=Wt[0],$t=Wt[1],cn=Wt[2],Zt=Wt[3],jn=S.useRef(Zt);Zt&&(jn.current=!0);var En=Object(S.useRef)(q);En.current=q;var Lt=S.useCallback(function(dn){Rt.current=dn,Object(Te.b)(En.current,dn)},[]),It,nn=Object(N.a)(Object(N.a)({},Je),{},{visible:de});if(!De)It=null;else if(Yt===Ye||!_e(z))Zt?It=De(Object(N.a)({},nn),Lt):!Ce&&jn.current?It=De(Object(N.a)(Object(N.a)({},nn),{},{className:He}),Lt):xe?It=De(Object(N.a)(Object(N.a)({},nn),{},{style:{display:"none"}}),Lt):It=null;else{var ln,Tt;$t===_t?Tt="prepare":wn($t)?Tt="active":$t===Dt&&(Tt="start"),It=De(Object(N.a)(Object(N.a)({},nn),{},{className:H()(pt(Fe,Yt),(ln={},Object(J.a)(ln,pt(Fe,"".concat(Yt,"-").concat(Tt)),Tt),Object(J.a)(ln,Fe,typeof Fe=="string"),ln)),style:cn}),Lt)}return S.createElement(Mt,{ref:Gt},It)});return ue.displayName="CSSMotion",ue}var At=Nt(Pe),xt="add",Ct="keep",Ot="remove",zt="removed";function bn(re){var ge;return re&&Object(I.a)(re)==="object"&&"key"in re?ge=re:ge={key:re},Object(N.a)(Object(N.a)({},ge),{},{key:String(ge.key)})}function gn(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return re.map(bn)}function U(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_e=[],ue=0,z=ge.length,q=gn(re),X=gn(ge);q.forEach(function(Ce){for(var xe=!1,De=ue;De1});return me.forEach(function(Ce){_e=_e.filter(function(xe){var De=xe.key,Fe=xe.status;return De!==Ce||Fe!==Ot}),_e.forEach(function(xe){xe.key===Ce&&(xe.status=Ct)})}),_e}var _=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function C(re){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:At,_e=function(ue){Object(c.a)(q,ue);var z=Object(u.a)(q);function q(){var X;return Object(w.a)(this,q),X=z.apply(this,arguments),X.state={keyEntities:[]},X.removeKey=function(de){X.setState(function(me){var Ce=me.keyEntities;return{keyEntities:Ce.map(function(xe){return xe.key!==de?xe:Object(N.a)(Object(N.a)({},xe),{},{status:zt})})}})},X}return Object(T.a)(q,[{key:"render",value:function(){var de=this,me=this.state.keyEntities,Ce=this.props,xe=Ce.component,De=Ce.children,Fe=Ce.onVisibleChanged,He=Object(L.a)(Ce,["component","children","onVisibleChanged"]),Je=xe||S.Fragment,dt={};return _.forEach(function(Rt){dt[Rt]=He[Rt],delete He[Rt]}),delete He.keys,S.createElement(Je,He,me.map(function(Rt){var Gt=Rt.status,Bt=Object(L.a)(Rt,["status"]),Ft=Gt===xt||Gt===Ct;return S.createElement(ge,Object(y.a)({},dt,{key:Bt.key,visible:Ft,eventProps:Bt,onVisibleChanged:function(Yt){Fe==null||Fe(Yt,{key:Bt.key}),Yt||de.removeKey(Bt.key)}}),De)}))}}],[{key:"getDerivedStateFromProps",value:function(de,me){var Ce=de.keys,xe=me.keyEntities,De=gn(Ce),Fe=U(xe,De);return{keyEntities:Fe.filter(function(He){var Je=xe.find(function(dt){var Rt=dt.key;return He.key===Rt});return!(Je&&Je.status===zt&&He.status===Ot)})}}}]),q}(S.Component);return _e.defaultProps={component:"div"},_e}var k=C(Pe),G=At;function j(re){var ge=re.prefixCls,_e=re.motion,ue=re.animation,z=re.transitionName;return _e||(ue?{motionName:"".concat(ge,"-").concat(ue)}:z?{motionName:z}:null)}function ve(re){var ge=re.prefixCls,_e=re.visible,ue=re.zIndex,z=re.mask,q=re.maskMotion,X=re.maskAnimation,de=re.maskTransitionName;if(!z)return null;var me={};return(q||de||X)&&(me=Object(N.a)({motionAppear:!0},j({motion:q,prefixCls:ge,transitionName:de,animation:X}))),S.createElement(G,Object(y.a)({},me,{visible:_e,removeOnLeave:!0}),function(Ce){var xe=Ce.className;return S.createElement("div",{style:{zIndex:ue},className:H()("".concat(ge,"-mask"),xe)})})}var We=M("9mu1"),lt=M("o0o1"),ct=M.n(lt),Ge=M("HaE+"),bt=["measure","align",null,"motion"],St=function(re,ge){var _e=Object(S.useState)(null),ue=Object(B.a)(_e,2),z=ue[0],q=ue[1],X=Object(S.useRef)(),de=Object(S.useRef)(!1);function me(De){de.current||q(De)}function Ce(){rt.a.cancel(X.current)}function xe(De){Ce(),X.current=Object(rt.a)(function(){me(function(Fe){switch(z){case"align":return"motion";case"motion":return"stable";default:}return Fe}),De==null||De()})}return Object(S.useEffect)(function(){me("measure")},[re]),Object(S.useEffect)(function(){switch(z){case"measure":ge();break;default:}z&&(X.current=Object(rt.a)(Object(Ge.a)(ct.a.mark(function De(){var Fe,He;return ct.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:Fe=bt.indexOf(z),He=bt[Fe+1],He&&Fe!==-1&&me(He);case 3:case"end":return dt.stop()}},De)}))))},[z]),Object(S.useEffect)(function(){return function(){de.current=!0,Ce()}},[]),[z,xe]},an=function(re){var ge=S.useState({width:0,height:0}),_e=Object(B.a)(ge,2),ue=_e[0],z=_e[1];function q(de){z({width:de.offsetWidth,height:de.offsetHeight})}var X=S.useMemo(function(){var de={};if(re){var me=ue.width,Ce=ue.height;re.indexOf("height")!==-1&&Ce?de.height=Ce:re.indexOf("minHeight")!==-1&&Ce&&(de.minHeight=Ce),re.indexOf("width")!==-1&&me?de.width=me:re.indexOf("minWidth")!==-1&&me&&(de.minWidth=me)}return de},[re,ue]);return[X,q]},Bn=S.forwardRef(function(re,ge){var _e=re.visible,ue=re.prefixCls,z=re.className,q=re.style,X=re.children,de=re.zIndex,me=re.stretch,Ce=re.destroyPopupOnHide,xe=re.forceRender,De=re.align,Fe=re.point,He=re.getRootDomNode,Je=re.getClassNameFromAlign,dt=re.onAlign,Rt=re.onMouseEnter,Gt=re.onMouseLeave,Bt=re.onMouseDown,Ft=re.onTouchStart,Wt=Object(S.useRef)(),Yt=Object(S.useRef)(),$t=Object(S.useState)(),cn=Object(B.a)($t,2),Zt=cn[0],jn=cn[1],En=an(me),Lt=Object(B.a)(En,2),It=Lt[0],nn=Lt[1];function ln(){me&&nn(He())}var Tt=St(_e,ln),dn=Object(B.a)(Tt,2),Dn=dn[0],hn=dn[1],Tn=Object(S.useRef)();function Nn(){return Fe||He}function Qn(){var Kn;(Kn=Wt.current)===null||Kn===void 0||Kn.forceAlign()}function sr(Kn,ir){var Zn=Je(ir);Zt!==Zn&&jn(Zn),Dn==="align"&&(Zt!==Zn?Promise.resolve().then(function(){Qn()}):hn(function(){var Yn;(Yn=Tn.current)===null||Yn===void 0||Yn.call(Tn)}),dt==null||dt(Kn,ir))}var Fn=Object(N.a)({},j(re));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Kn){var ir=Fn[Kn];Fn[Kn]=function(Zn,Yn){return hn(),ir==null?void 0:ir(Zn,Yn)}});function or(){return new Promise(function(Kn){Tn.current=Kn})}S.useEffect(function(){!Fn.motionName&&Dn==="motion"&&hn()},[Fn.motionName,Dn]),S.useImperativeHandle(ge,function(){return{forceAlign:Qn,getElement:function(){return Yt.current}}});var _r=Object(N.a)(Object(N.a)({},It),{},{zIndex:de,opacity:Dn==="motion"||Dn==="stable"||!_e?void 0:0,pointerEvents:Dn==="stable"?void 0:"none"},q),dr=!0;(De==null?void 0:De.points)&&(Dn==="align"||Dn==="stable")&&(dr=!1);var hr=X;return S.Children.count(X)>1&&(hr=S.createElement("div",{className:"".concat(ue,"-content")},X)),S.createElement(G,Object(y.a)({visible:_e,ref:Yt,leavedClassName:"".concat(ue,"-hidden")},Fn,{onAppearPrepare:or,onEnterPrepare:or,removeOnLeave:Ce,forceRender:xe}),function(Kn,ir){var Zn=Kn.className,Yn=Kn.style,Rr=H()(ue,z,Zt,Zn);return S.createElement(We.a,{target:Nn(),key:"popup",ref:Wt,monitorWindowResize:!0,disabled:dr,align:De,onAlign:sr},S.createElement("div",{ref:ir,className:Rr,onMouseEnter:Rt,onMouseLeave:Gt,onMouseDownCapture:Bt,onTouchStartCapture:Ft,style:Object(N.a)(Object(N.a)({},Yn),_r)},hr))})});Bn.displayName="PopupInner";var Vn=Bn,Et=S.forwardRef(function(re,ge){var _e=re.prefixCls,ue=re.visible,z=re.zIndex,q=re.children,X=re.mobile;X=X===void 0?{}:X;var de=X.popupClassName,me=X.popupStyle,Ce=X.popupMotion,xe=Ce===void 0?{}:Ce,De=X.popupRender,Fe=S.useRef();S.useImperativeHandle(ge,function(){return{forceAlign:function(){},getElement:function(){return Fe.current}}});var He=Object(N.a)({zIndex:z},me),Je=q;return S.Children.count(q)>1&&(Je=S.createElement("div",{className:"".concat(_e,"-content")},q)),De&&(Je=De(Je)),S.createElement(G,Object(y.a)({visible:ue,ref:Fe,removeOnLeave:!0},xe),function(dt,Rt){var Gt=dt.className,Bt=dt.style,Ft=H()(_e,de,Gt);return S.createElement("div",{ref:Rt,className:Ft,style:Object(N.a)(Object(N.a)({},Bt),He)},Je)})});Et.displayName="MobilePopupInner";var Vt=Et,jt=["visible","mobile"],pn=S.forwardRef(function(re,ge){var _e=re.visible,ue=re.mobile,z=Object(L.a)(re,jt),q=Object(S.useState)(_e),X=Object(B.a)(q,2),de=X[0],me=X[1],Ce=Object(S.useState)(!1),xe=Object(B.a)(Ce,2),De=xe[0],Fe=xe[1],He=Object(N.a)(Object(N.a)({},z),{},{visible:de});Object(S.useEffect)(function(){me(_e),_e&&ue&&Fe(pe())},[_e,ue]);var Je=De?S.createElement(Vt,Object(y.a)({},He,{mobile:ue,ref:ge})):S.createElement(Vn,Object(y.a)({},He,{ref:ge}));return S.createElement("div",null,S.createElement(ve,He),Je)});pn.displayName="Popup";var Gn=pn,kn=S.createContext(null),Un=kn;function Sn(){}function er(){return""}function Mn(re){return re?re.ownerDocument:window.document}var tr=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function ar(re){var ge=function(_e){Object(c.a)(z,_e);var ue=Object(u.a)(z);function z(q){var X;Object(w.a)(this,z),X=ue.call(this,q),X.popupRef=S.createRef(),X.triggerRef=S.createRef(),X.attachId=void 0,X.clickOutsideHandler=void 0,X.touchOutsideHandler=void 0,X.contextMenuOutsideHandler1=void 0,X.contextMenuOutsideHandler2=void 0,X.mouseDownTimeout=void 0,X.focusTime=void 0,X.preClickTime=void 0,X.preTouchTime=void 0,X.delayTimer=void 0,X.hasPopupMouseDown=void 0,X.onMouseEnter=function(me){var Ce=X.props.mouseEnterDelay;X.fireEvents("onMouseEnter",me),X.delaySetPopupVisible(!0,Ce,Ce?null:me)},X.onMouseMove=function(me){X.fireEvents("onMouseMove",me),X.setPoint(me)},X.onMouseLeave=function(me){X.fireEvents("onMouseLeave",me),X.delaySetPopupVisible(!1,X.props.mouseLeaveDelay)},X.onPopupMouseEnter=function(){X.clearDelayTimer()},X.onPopupMouseLeave=function(me){var Ce;if(me.relatedTarget&&!me.relatedTarget.setTimeout&&Object(ut.a)((Ce=X.popupRef.current)===null||Ce===void 0?void 0:Ce.getElement(),me.relatedTarget))return;X.delaySetPopupVisible(!1,X.props.mouseLeaveDelay)},X.onFocus=function(me){X.fireEvents("onFocus",me),X.clearDelayTimer(),X.isFocusToShow()&&(X.focusTime=Date.now(),X.delaySetPopupVisible(!0,X.props.focusDelay))},X.onMouseDown=function(me){X.fireEvents("onMouseDown",me),X.preClickTime=Date.now()},X.onTouchStart=function(me){X.fireEvents("onTouchStart",me),X.preTouchTime=Date.now()},X.onBlur=function(me){X.fireEvents("onBlur",me),X.clearDelayTimer(),X.isBlurToHide()&&X.delaySetPopupVisible(!1,X.props.blurDelay)},X.onContextMenu=function(me){me.preventDefault(),X.fireEvents("onContextMenu",me),X.setPopupVisible(!0,me)},X.onContextMenuClose=function(){X.isContextMenuToShow()&&X.close()},X.onClick=function(me){if(X.fireEvents("onClick",me),X.focusTime){var Ce;if(X.preClickTime&&X.preTouchTime?Ce=Math.min(X.preClickTime,X.preTouchTime):X.preClickTime?Ce=X.preClickTime:X.preTouchTime&&(Ce=X.preTouchTime),Math.abs(Ce-X.focusTime)<20)return;X.focusTime=0}X.preClickTime=0,X.preTouchTime=0,X.isClickToShow()&&(X.isClickToHide()||X.isBlurToHide())&&me&&me.preventDefault&&me.preventDefault();var xe=!X.state.popupVisible;(X.isClickToHide()&&!xe||xe&&X.isClickToShow())&&X.setPopupVisible(!X.state.popupVisible,me)},X.onPopupMouseDown=function(){if(X.hasPopupMouseDown=!0,clearTimeout(X.mouseDownTimeout),X.mouseDownTimeout=window.setTimeout(function(){X.hasPopupMouseDown=!1},0),X.context){var me;(me=X.context).onPopupMouseDown.apply(me,arguments)}},X.onDocumentClick=function(me){if(X.props.mask&&!X.props.maskClosable)return;var Ce=me.target,xe=X.getRootDomNode(),De=X.getPopupDomNode();(!Object(ut.a)(xe,Ce)||X.isContextMenuOnly())&&!Object(ut.a)(De,Ce)&&!X.hasPopupMouseDown&&X.close()},X.getRootDomNode=function(){var me=X.props.getTriggerDOMNode;if(me)return me(X.triggerRef.current);try{var Ce=Object(ht.a)(X.triggerRef.current);if(Ce)return Ce}catch(xe){}return st.a.findDOMNode(Object(p.a)(X))},X.getPopupClassNameFromAlign=function(me){var Ce=[],xe=X.props,De=xe.popupPlacement,Fe=xe.builtinPlacements,He=xe.prefixCls,Je=xe.alignPoint,dt=xe.getPopupClassNameFromAlign;return De&&Fe&&Ce.push(Ne(Fe,He,me,Je)),dt&&Ce.push(dt(me)),Ce.join(" ")},X.getComponent=function(){var me=X.props,Ce=me.prefixCls,xe=me.destroyPopupOnHide,De=me.popupClassName,Fe=me.onPopupAlign,He=me.popupMotion,Je=me.popupAnimation,dt=me.popupTransitionName,Rt=me.popupStyle,Gt=me.mask,Bt=me.maskAnimation,Ft=me.maskTransitionName,Wt=me.maskMotion,Yt=me.zIndex,$t=me.popup,cn=me.stretch,Zt=me.alignPoint,jn=me.mobile,En=me.forceRender,Lt=X.state,It=Lt.popupVisible,nn=Lt.point,ln=X.getPopupAlign(),Tt={};return X.isMouseEnterToShow()&&(Tt.onMouseEnter=X.onPopupMouseEnter),X.isMouseLeaveToHide()&&(Tt.onMouseLeave=X.onPopupMouseLeave),Tt.onMouseDown=X.onPopupMouseDown,Tt.onTouchStart=X.onPopupMouseDown,S.createElement(Gn,Object(y.a)({prefixCls:Ce,destroyPopupOnHide:xe,visible:It,point:Zt&&nn,className:De,align:ln,onAlign:Fe,animation:Je,getClassNameFromAlign:X.getPopupClassNameFromAlign},Tt,{stretch:cn,getRootDomNode:X.getRootDomNode,style:Rt,mask:Gt,zIndex:Yt,transitionName:dt,maskAnimation:Bt,maskTransitionName:Ft,maskMotion:Wt,ref:X.popupRef,motion:He,mobile:jn,forceRender:En}),typeof $t=="function"?$t():$t)},X.attachParent=function(me){rt.a.cancel(X.attachId);var Ce=X.props,xe=Ce.getPopupContainer,De=Ce.getDocument,Fe=X.getRootDomNode(),He;xe?(Fe||xe.length===0)&&(He=xe(Fe)):He=De(X.getRootDomNode()).body,He?He.appendChild(me):X.attachId=Object(rt.a)(function(){X.attachParent(me)})},X.getContainer=function(){var me=X.props.getDocument,Ce=me(X.getRootDomNode()).createElement("div");return Ce.style.position="absolute",Ce.style.top="0",Ce.style.left="0",Ce.style.width="100%",X.attachParent(Ce),Ce},X.setPoint=function(me){var Ce=X.props.alignPoint;if(!Ce||!me)return;X.setState({point:{pageX:me.pageX,pageY:me.pageY}})},X.handlePortalUpdate=function(){X.state.prevPopupVisible!==X.state.popupVisible&&X.props.afterPopupVisibleChange(X.state.popupVisible)},X.triggerContextValue={onPopupMouseDown:X.onPopupMouseDown};var de;return"popupVisible"in q?de=!!q.popupVisible:de=!!q.defaultPopupVisible,X.state={prevPopupVisible:de,popupVisible:de},tr.forEach(function(me){X["fire".concat(me)]=function(Ce){X.fireEvents(me,Ce)}}),X}return Object(T.a)(z,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var X=this.props,de=this.state;if(de.popupVisible){var me;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(me=X.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Ie.a)(me,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(me=me||X.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Ie.a)(me,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(me=me||X.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Ie.a)(me,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Ie.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),rt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var X;return((X=this.popupRef.current)===null||X===void 0?void 0:X.getElement())||null}},{key:"getPopupAlign",value:function(){var X=this.props,de=X.popupPlacement,me=X.popupAlign,Ce=X.builtinPlacements;return de&&Ce?Me(Ce,de,me):me}},{key:"setPopupVisible",value:function(X,de){var me=this.props.alignPoint,Ce=this.state.popupVisible;this.clearDelayTimer(),Ce!==X&&("popupVisible"in this.props||this.setState({popupVisible:X,prevPopupVisible:Ce}),this.props.onPopupVisibleChange(X)),me&&de&&X&&this.setPoint(de)}},{key:"delaySetPopupVisible",value:function(X,de,me){var Ce=this,xe=de*1e3;if(this.clearDelayTimer(),xe){var De=me?{pageX:me.pageX,pageY:me.pageY}:null;this.delayTimer=window.setTimeout(function(){Ce.setPopupVisible(X,De),Ce.clearDelayTimer()},xe)}else this.setPopupVisible(X,me)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(X){var de=this.props.children.props,me=this.props;return de[X]&&me[X]?this["fire".concat(X)]:de[X]||me[X]}},{key:"isClickToShow",value:function(){var X=this.props,de=X.action,me=X.showAction;return de.indexOf("click")!==-1||me.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var X=this.props.action;return X==="contextMenu"||X.length===1&&X[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var X=this.props,de=X.action,me=X.showAction;return de.indexOf("contextMenu")!==-1||me.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var X=this.props,de=X.action,me=X.hideAction;return de.indexOf("click")!==-1||me.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var X=this.props,de=X.action,me=X.showAction;return de.indexOf("hover")!==-1||me.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var X=this.props,de=X.action,me=X.hideAction;return de.indexOf("hover")!==-1||me.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var X=this.props,de=X.action,me=X.showAction;return de.indexOf("focus")!==-1||me.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var X=this.props,de=X.action,me=X.hideAction;return de.indexOf("focus")!==-1||me.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var X;(X=this.popupRef.current)===null||X===void 0||X.forceAlign()}}},{key:"fireEvents",value:function(X,de){var me=this.props.children.props[X];me&&me(de);var Ce=this.props[X];Ce&&Ce(de)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var X=this.state.popupVisible,de=this.props,me=de.children,Ce=de.forceRender,xe=de.alignPoint,De=de.className,Fe=de.autoDestroy,He=S.Children.only(me),Je={key:"trigger"};this.isContextMenuToShow()?Je.onContextMenu=this.onContextMenu:Je.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Je.onClick=this.onClick,Je.onMouseDown=this.onMouseDown,Je.onTouchStart=this.onTouchStart):(Je.onClick=this.createTwoChains("onClick"),Je.onMouseDown=this.createTwoChains("onMouseDown"),Je.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Je.onMouseEnter=this.onMouseEnter,xe&&(Je.onMouseMove=this.onMouseMove)):Je.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Je.onMouseLeave=this.onMouseLeave:Je.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Je.onFocus=this.onFocus,Je.onBlur=this.onBlur):(Je.onFocus=this.createTwoChains("onFocus"),Je.onBlur=this.createTwoChains("onBlur"));var dt=H()(He&&He.props&&He.props.className,De);dt&&(Je.className=dt);var Rt=Object(N.a)({},Je);Object(Te.c)(He)&&(Rt.ref=Object(Te.a)(this.triggerRef,He.ref));var Gt=S.cloneElement(He,Rt),Bt;return(X||this.popupRef.current||Ce)&&(Bt=S.createElement(re,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!X&&Fe&&(Bt=null),S.createElement(Un.Provider,{value:this.triggerContextValue},Gt,Bt)}}],[{key:"getDerivedStateFromProps",value:function(X,de){var me=X.popupVisible,Ce={};return me!==void 0&&de.popupVisible!==me&&(Ce.popupVisible=me,Ce.prevPopupVisible=de.popupVisible),Ce}}]),z}(S.Component);return ge.contextType=Un,ge.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:er,getDocument:Mn,onPopupVisibleChange:Sn,afterPopupVisibleChange:Sn,onPopupAlign:Sn,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},ge}var Jn=ar(je.a),In={adjustX:1,adjustY:1},Xn={topLeft:{points:["bl","tl"],overflow:In,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:In,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:In,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:In,offset:[4,0]}},nr={topLeft:{points:["bl","tl"],overflow:In,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:In,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:In,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:In,offset:[4,0]}},rr=Xn,_n=0,Jt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},On=function(ge,_e,ue){var z=Ue(_e),q=ge.getState();ge.setState({defaultActiveFirst:Object(N.a)(Object(N.a)({},q.defaultActiveFirst),{},Object(J.a)({},z,ue))})},Xt=function(re){Object(c.a)(_e,re);var ge=Object(u.a)(_e);function _e(ue){var z;Object(w.a)(this,_e),z=ge.call(this,ue),z.onDestroy=function(xe){z.props.onDestroy(xe)},z.onKeyDown=function(xe){var De=xe.keyCode,Fe=z.menuInstance,He=z.props.store,Je=z.getVisible();if(De===l.a.ENTER)return z.onTitleClick(xe),On(He,z.props.eventKey,!0),!0;if(De===l.a.RIGHT)return Je?Fe.onKeyDown(xe):(z.triggerOpenChange(!0),On(He,z.props.eventKey,!0)),!0;if(De===l.a.LEFT){var dt;if(Je)dt=Fe.onKeyDown(xe);else return;return dt||(z.triggerOpenChange(!1),dt=!0),dt}return Je&&(De===l.a.UP||De===l.a.DOWN)?Fe.onKeyDown(xe):void 0},z.onOpenChange=function(xe){z.props.onOpenChange(xe)},z.onPopupVisibleChange=function(xe){z.triggerOpenChange(xe,xe?"mouseenter":"mouseleave")},z.onMouseEnter=function(xe){var De=z.props,Fe=De.eventKey,He=De.onMouseEnter,Je=De.store;On(Je,z.props.eventKey,!1),He({key:Fe,domEvent:xe})},z.onMouseLeave=function(xe){var De=z.props,Fe=De.parentMenu,He=De.eventKey,Je=De.onMouseLeave;Fe.subMenuInstance=Object(p.a)(z),Je({key:He,domEvent:xe})},z.onTitleMouseEnter=function(xe){var De=z.props,Fe=De.eventKey,He=De.onItemHover,Je=De.onTitleMouseEnter;He({key:Fe,hover:!0}),Je({key:Fe,domEvent:xe})},z.onTitleMouseLeave=function(xe){var De=z.props,Fe=De.parentMenu,He=De.eventKey,Je=De.onItemHover,dt=De.onTitleMouseLeave;Fe.subMenuInstance=Object(p.a)(z),Je({key:He,hover:!1}),dt({key:He,domEvent:xe})},z.onTitleClick=function(xe){var De=Object(p.a)(z),Fe=De.props;if(Fe.onTitleClick({key:Fe.eventKey,domEvent:xe}),Fe.triggerSubMenuAction==="hover")return;z.triggerOpenChange(!z.getVisible(),"click"),On(Fe.store,z.props.eventKey,!1)},z.onSubMenuClick=function(xe){typeof z.props.onClick=="function"&&z.props.onClick(z.addKeyPath(xe))},z.onSelect=function(xe){z.props.onSelect(xe)},z.onDeselect=function(xe){z.props.onDeselect(xe)},z.getPrefixCls=function(){return"".concat(z.props.rootPrefixCls,"-submenu")},z.getActiveClassName=function(){return"".concat(z.getPrefixCls(),"-active")},z.getDisabledClassName=function(){return"".concat(z.getPrefixCls(),"-disabled")},z.getSelectedClassName=function(){return"".concat(z.getPrefixCls(),"-selected")},z.getOpenClassName=function(){return"".concat(z.props.rootPrefixCls,"-submenu-open")},z.getVisible=function(){return z.state.isOpen},z.getMode=function(){return z.state.mode},z.saveMenuInstance=function(xe){z.menuInstance=xe},z.addKeyPath=function(xe){return Object(N.a)(Object(N.a)({},xe),{},{keyPath:(xe.keyPath||[]).concat(z.props.eventKey)})},z.triggerOpenChange=function(xe,De){var Fe=z.props.eventKey,He=function(){z.onOpenChange({key:Fe,item:Object(p.a)(z),trigger:De,open:xe})};De==="mouseenter"?z.mouseenterTimeout=setTimeout(function(){He()},0):He()},z.isChildrenSelected=function(){var xe={find:!1};return et(z.props.children,z.props.selectedKeys,xe),xe.find},z.isInlineMode=function(){return z.getMode()==="inline"},z.adjustWidth=function(){if(!z.subMenuTitle||!z.menuInstance)return;var xe=tt.findDOMNode(z.menuInstance);if(xe.offsetWidth>=z.subMenuTitle.offsetWidth)return;xe.style.minWidth="".concat(z.subMenuTitle.offsetWidth,"px")},z.saveSubMenuTitle=function(xe){z.subMenuTitle=xe},z.getBaseProps=function(){var xe=Object(p.a)(z),De=xe.props,Fe=z.getMode();return{mode:Fe==="horizontal"?"vertical":Fe,visible:z.getVisible(),level:De.level+1,inlineIndent:De.inlineIndent,focusable:!1,onClick:z.onSubMenuClick,onSelect:z.onSelect,onDeselect:z.onDeselect,onDestroy:z.onDestroy,selectedKeys:De.selectedKeys,eventKey:"".concat(De.eventKey,"-menu-"),openKeys:De.openKeys,motion:De.motion,onOpenChange:z.onOpenChange,subMenuOpenDelay:De.subMenuOpenDelay,parentMenu:Object(p.a)(z),subMenuCloseDelay:De.subMenuCloseDelay,forceSubMenuRender:De.forceSubMenuRender,triggerSubMenuAction:De.triggerSubMenuAction,builtinPlacements:De.builtinPlacements,defaultActiveFirst:De.store.getState().defaultActiveFirst[Ue(De.eventKey)],multiple:De.multiple,prefixCls:De.rootPrefixCls,id:z.internalMenuId,manualRef:z.saveMenuInstance,itemIcon:De.itemIcon,expandIcon:De.expandIcon,direction:De.direction}},z.getMotion=function(xe,De){var Fe=Object(p.a)(z),He=Fe.haveRendered,Je=z.props,dt=Je.motion,Rt=Je.rootPrefixCls,Gt=Object(N.a)(Object(N.a)({},dt),{},{leavedClassName:"".concat(Rt,"-hidden"),removeOnLeave:!1,motionAppear:He||!De||xe!=="inline"});return Gt};var q=ue.store,X=ue.eventKey,de=q.getState(),me=de.defaultActiveFirst;z.isRootMenu=!1;var Ce=!1;return me&&(Ce=me[X]),On(q,X,Ce),z.state={mode:ue.mode,isOpen:ue.isOpen},z}return Object(T.a)(_e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var z=this,q=this.props,X=q.mode,de=q.parentMenu,me=q.manualRef,Ce=q.isOpen,xe=function(){z.setState({mode:X,isOpen:Ce})},De=Ce!==this.state.isOpen,Fe=X!==this.state.mode;if((Fe||De)&&(rt.a.cancel(this.updateStateRaf),Fe?this.updateStateRaf=Object(rt.a)(xe):xe()),me&&me(this),X!=="horizontal"||!(de==null?void 0:de.isRootMenu)||!Ce)return;this.minWidthTimeout=setTimeout(function(){return z.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var z=this.props,q=z.onDestroy,X=z.eventKey;q&&q(X),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),rt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(z,q){var X=this.getBaseProps();return S.createElement(Er,Object(y.a)({},X,{id:this.internalMenuId,className:z,style:q}),this.props.children)}},{key:"renderChildren",value:function(){var z=this,q=this.getBaseProps(),X=q.mode,de=q.visible,me=q.forceSubMenuRender,Ce=q.direction,xe=this.getMotion(X,de);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||de||me,!this.haveOpened)return S.createElement("div",null);var De=H()("".concat(q.prefixCls,"-sub"),Object(J.a)({},"".concat(q.prefixCls,"-rtl"),Ce==="rtl"));return this.isInlineMode()?S.createElement(G,Object(y.a)({visible:q.visible,forceRender:me},xe),function(Fe){var He=Fe.className,Je=Fe.style,dt=H()(De,He);return z.renderPopupMenu(dt,Je)}):this.renderPopupMenu(De)}},{key:"render",value:function(){var z,q,X,de=Object(N.a)({},this.props),me=this.getVisible(),Ce=this.getPrefixCls(),xe=this.isInlineMode(),De=this.getMode(),Fe=H()(Ce,"".concat(Ce,"-").concat(De),(z={},Object(J.a)(z,de.className,!!de.className),Object(J.a)(z,this.getOpenClassName(),me),Object(J.a)(z,this.getActiveClassName(),de.active||me&&!xe),Object(J.a)(z,this.getDisabledClassName(),de.disabled),Object(J.a)(z,this.getSelectedClassName(),this.isChildrenSelected()),z));this.internalMenuId||(de.eventKey?this.internalMenuId="".concat(de.eventKey,"$Menu"):(_n+=1,this.internalMenuId="$__$".concat(_n,"$Menu")));var He={},Je={},dt={};de.disabled||(He={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Je={onClick:this.onTitleClick},dt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Rt={},Gt=de.direction,Bt=Gt==="rtl";xe&&(Bt?Rt.paddingRight=de.inlineIndent*de.level:Rt.paddingLeft=de.inlineIndent*de.level);var Ft={};this.getVisible()&&(Ft={"aria-owns":this.internalMenuId});var Wt=null;De!=="horizontal"&&(Wt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Wt=S.createElement(this.props.expandIcon,Object(N.a)({},this.props))));var Yt=S.createElement("div",Object(y.a)({ref:this.saveSubMenuTitle,style:Rt,className:"".concat(Ce,"-title"),role:"button"},dt,Je,{"aria-expanded":me},Ft,{"aria-haspopup":"true",title:typeof de.title=="string"?de.title:void 0}),de.title,Wt||S.createElement("i",{className:"".concat(Ce,"-arrow")})),$t=this.renderChildren(),cn=((q=de.parentMenu)===null||q===void 0?void 0:q.isRootMenu)?de.parentMenu.props.getPopupContainer:function(Nn){return Nn.parentNode},Zt=Jt[De],jn=de.popupOffset?{offset:de.popupOffset}:{},En=H()((X={},Object(J.a)(X,de.popupClassName,de.popupClassName&&!xe),Object(J.a)(X,"".concat(Ce,"-rtl"),Bt),X)),Lt=de.disabled,It=de.triggerSubMenuAction,nn=de.subMenuOpenDelay,ln=de.forceSubMenuRender,Tt=de.subMenuCloseDelay,dn=de.builtinPlacements;ne.forEach(function(Nn){return delete de[Nn]}),delete de.onClick;var Dn=Bt?Object(N.a)(Object(N.a)({},nr),dn):Object(N.a)(Object(N.a)({},Xn),dn);delete de.direction;var hn=this.getBaseProps(),Tn=xe?null:this.getMotion(hn.mode,hn.visible);return S.createElement("li",Object(y.a)({},de,He,{className:Fe,role:"menuitem"}),S.createElement(Jn,{prefixCls:Ce,popupClassName:H()("".concat(Ce,"-popup"),En),getPopupContainer:cn,builtinPlacements:Dn,popupPlacement:Zt,popupVisible:xe?!1:me,popupAlign:jn,popup:xe?null:$t,action:Lt||xe?[]:[It],mouseEnterDelay:nn,mouseLeaveDelay:Tt,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:ln,popupMotion:Tn},Yt),xe?$t:null)}}]),_e}(S.Component);Xt.defaultProps={onMouseEnter:Xe,onMouseLeave:Xe,onTitleMouseEnter:Xe,onTitleMouseLeave:Xe,onTitleClick:Xe,manualRef:Xe,mode:"vertical",title:""};var Ht=Object(h.b)(function(re,ge){var _e=re.openKeys,ue=re.activeKey,z=re.selectedKeys,q=ge.eventKey,X=ge.subMenuKey;return{isOpen:_e.indexOf(q)>-1,active:ue[X]===q,selectedKeys:z}})(Xt);Ht.isSubMenu=!0;var sn=Ht,nt="menuitem-overflowed",Wn=.5,mr=function(re){Object(c.a)(_e,re);var ge=Object(u.a)(_e);function _e(){var ue;return Object(w.a)(this,_e),ue=ge.apply(this,arguments),ue.resizeObserver=null,ue.mutationObserver=null,ue.originalTotalWidth=0,ue.overflowedItems=[],ue.menuItemSizes=[],ue.cancelFrameId=null,ue.state={lastVisibleIndex:void 0},ue.childRef=S.createRef(),ue.getMenuItemNodes=function(){var z=ue.props.prefixCls,q=ue.childRef.current;return q?[].slice.call(q.children).filter(function(X){return X.className.split(" ").indexOf("".concat(z,"-overflowed-submenu"))<0}):[]},ue.getOverflowedSubMenuItem=function(z,q,X){var de=ue.props,me=de.overflowedIndicator,Ce=de.level,xe=de.mode,De=de.prefixCls,Fe=de.theme;if(Ce!==1||xe!=="horizontal")return null;var He=ue.props.children[0],Je=He.props,dt=Je.children,Rt=Je.title,Gt=Je.style,Bt=Object(L.a)(Je,["children","title","style"]),Ft=Object(N.a)({},Gt),Wt="".concat(z,"-overflowed-indicator"),Yt="".concat(z,"-overflowed-indicator");q.length===0&&X!==!0?Ft=Object(N.a)(Object(N.a)({},Ft),{},{display:"none"}):X&&(Ft=Object(N.a)(Object(N.a)({},Ft),{},{visibility:"hidden",position:"absolute"}),Wt="".concat(Wt,"-placeholder"),Yt="".concat(Yt,"-placeholder"));var $t=Fe?"".concat(De,"-").concat(Fe):"",cn={};return ne.forEach(function(Zt){Bt[Zt]!==void 0&&(cn[Zt]=Bt[Zt])}),S.createElement(sn,Object(y.a)({title:me,className:"".concat(De,"-overflowed-submenu"),popupClassName:$t},cn,{key:Wt,eventKey:Yt,disabled:!1,style:Ft}),q)},ue.setChildrenWidthAndResize=function(){if(ue.props.mode!=="horizontal")return;var z=ue.childRef.current;if(!z)return;var q=z.children;if(!q||q.length===0)return;var X=z.children[q.length-1];Oe(X,"display","inline-block");var de=ue.getMenuItemNodes(),me=de.filter(function(Ce){return Ce.className.split(" ").indexOf(nt)>=0});me.forEach(function(Ce){Oe(Ce,"display","inline-block")}),ue.menuItemSizes=de.map(function(Ce){return be(Ce,!0)}),me.forEach(function(Ce){Oe(Ce,"display","none")}),ue.overflowedIndicatorWidth=be(z.children[z.children.length-1],!0),ue.originalTotalWidth=ue.menuItemSizes.reduce(function(Ce,xe){return Ce+xe},0),ue.handleResize(),Oe(X,"display","none")},ue.handleResize=function(){if(ue.props.mode!=="horizontal")return;var z=ue.childRef.current;if(!z)return;var q=be(z);ue.overflowedItems=[];var X=0,de;ue.originalTotalWidth>q+Wn&&(de=-1,ue.menuItemSizes.forEach(function(me){X+=me,X+ue.overflowedIndicatorWidth<=q&&(de+=1)})),ue.setState({lastVisibleIndex:de})},ue}return Object(T.a)(_e,[{key:"componentDidMount",value:function(){var z=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var q=this.childRef.current;if(!q)return;this.resizeObserver=new $e.default(function(X){X.forEach(function(){var de=z.cancelFrameId;cancelAnimationFrame(de),z.cancelFrameId=requestAnimationFrame(z.setChildrenWidthAndResize)})}),[].slice.call(q.children).concat(q).forEach(function(X){z.resizeObserver.observe(X)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){z.resizeObserver.disconnect(),[].slice.call(q.children).concat(q).forEach(function(X){z.resizeObserver.observe(X)}),z.setChildrenWidthAndResize()}),this.mutationObserver.observe(q,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(z){var q=this,X=this.state.lastVisibleIndex;return(z||[]).reduce(function(de,me,Ce){var xe=me;if(q.props.mode==="horizontal"){var De=q.getOverflowedSubMenuItem(me.props.eventKey,[]);X!==void 0&&q.props.className.indexOf("".concat(q.props.prefixCls,"-root"))!==-1&&(Ce>X&&(xe=S.cloneElement(me,{style:{display:"none"},eventKey:"".concat(me.props.eventKey,"-hidden"),className:"".concat(nt)})),Ce===X+1&&(q.overflowedItems=z.slice(X+1).map(function(He){return S.cloneElement(He,{key:He.props.eventKey,mode:"vertical-left"})}),De=q.getOverflowedSubMenuItem(me.props.eventKey,q.overflowedItems)));var Fe=[].concat(Object(O.a)(de),[De,xe]);return Ce===z.length-1&&Fe.push(q.getOverflowedSubMenuItem(me.props.eventKey,[],!0)),Fe}return[].concat(Object(O.a)(de),[xe])},[])}},{key:"render",value:function(){var z=this.props,q=z.visible,X=z.prefixCls,de=z.overflowedIndicator,me=z.mode,Ce=z.level,xe=z.tag,De=z.children,Fe=z.theme,He=Object(L.a)(z,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Je=xe;return S.createElement(Je,Object(y.a)({ref:this.childRef},He),this.renderChildren(De))}}]),_e}(S.Component);mr.defaultProps={tag:"div",className:""};var zn=mr;function lr(re){return re.length?re.every(function(ge){return!!ge.props.disabled}):!0}function gr(re,ge,_e){var ue=re.getState();re.setState({activeKey:Object(N.a)(Object(N.a)({},ue.activeKey),{},Object(J.a)({},ge,_e))})}function ur(re){return re.eventKey||"0-menu-"}function Lr(re,ge){var _e=ge,ue=re.children,z=re.eventKey;if(_e){var q;if(Ve(ue,function(X,de){X&&X.props&&!X.props.disabled&&_e===it(X,z,de)&&(q=!0)}),q)return _e}return _e=null,re.defaultActiveFirst&&Ve(ue,function(X,de){!_e&&X&&!X.props.disabled&&(_e=it(X,z,de))}),_e}function Yr(re){if(!re)return;var ge=this.instanceArray.indexOf(re);ge!==-1?this.instanceArray[ge]=re:this.instanceArray.push(re)}var Wr=function(re){Object(c.a)(_e,re);var ge=Object(u.a)(_e);function _e(ue){var z;return Object(w.a)(this,_e),z=ge.call(this,ue),z.onKeyDown=function(q,X){var de=q.keyCode,me;if(z.getFlatInstanceArray().forEach(function(xe){xe&&xe.props.active&&xe.onKeyDown&&(me=xe.onKeyDown(q))}),me)return 1;var Ce=null;return(de===l.a.UP||de===l.a.DOWN)&&(Ce=z.step(de===l.a.UP?-1:1)),Ce?(q.preventDefault(),gr(z.props.store,ur(z.props),Ce.props.eventKey),typeof X=="function"&&X(Ce),1):void 0},z.onItemHover=function(q){var X=q.key,de=q.hover;gr(z.props.store,ur(z.props),de?X:null)},z.onDeselect=function(q){z.props.onDeselect(q)},z.onSelect=function(q){z.props.onSelect(q)},z.onClick=function(q){z.props.onClick(q)},z.onOpenChange=function(q){z.props.onOpenChange(q)},z.onDestroy=function(q){z.props.onDestroy(q)},z.getFlatInstanceArray=function(){return z.instanceArray},z.step=function(q){var X=z.getFlatInstanceArray(),de=z.props.store.getState().activeKey[ur(z.props)],me=X.length;if(!me)return null;q<0&&(X=X.concat().reverse());var Ce=-1;if(X.every(function(He,Je){return He&&He.props.eventKey===de?(Ce=Je,!1):!0}),!z.props.defaultActiveFirst&&Ce!==-1&&lr(X.slice(Ce,me-1)))return;var xe=(Ce+1)%me,De=xe;do{var Fe=X[De];if(!Fe||Fe.props.disabled)De=(De+1)%me;else return Fe}while(De!==xe);return null},z.renderCommonMenuItem=function(q,X,de){var me=z.props.store.getState(),Ce=Object(p.a)(z),xe=Ce.props,De=it(q,xe.eventKey,X),Fe=q.props;if(!Fe||typeof q.type=="string")return q;var He=De===me.activeKey,Je=Object(N.a)(Object(N.a)({mode:Fe.mode||xe.mode,level:xe.level,inlineIndent:xe.inlineIndent,renderMenuItem:z.renderMenuItem,rootPrefixCls:xe.prefixCls,index:X,parentMenu:xe.parentMenu,manualRef:Fe.disabled?void 0:Object(g.a)(q.ref,Yr.bind(Object(p.a)(z))),eventKey:De,active:!Fe.disabled&&He,multiple:xe.multiple,onClick:function(Rt){(Fe.onClick||Xe)(Rt),z.onClick(Rt)},onItemHover:z.onItemHover,motion:xe.motion,subMenuOpenDelay:xe.subMenuOpenDelay,subMenuCloseDelay:xe.subMenuCloseDelay,forceSubMenuRender:xe.forceSubMenuRender,onOpenChange:z.onOpenChange,onDeselect:z.onDeselect,onSelect:z.onSelect,builtinPlacements:xe.builtinPlacements,itemIcon:Fe.itemIcon||z.props.itemIcon,expandIcon:Fe.expandIcon||z.props.expandIcon},de),{},{direction:xe.direction});return(xe.mode==="inline"||Re())&&(Je.triggerSubMenuAction="click"),S.cloneElement(q,Object(N.a)(Object(N.a)({},Je),{},{key:De||X}))},z.renderMenuItem=function(q,X,de){if(!q)return null;var me=z.props.store.getState(),Ce={openKeys:me.openKeys,selectedKeys:me.selectedKeys,triggerSubMenuAction:z.props.triggerSubMenuAction,subMenuKey:de};return z.renderCommonMenuItem(q,X,Ce)},ue.store.setState({activeKey:Object(N.a)(Object(N.a)({},ue.store.getState().activeKey),{},Object(J.a)({},ue.eventKey,Lr(ue,ue.activeKey)))}),z.instanceArray=[],z}return Object(T.a)(_e,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(z){return this.props.visible||z.visible||this.props.className!==z.className||!R()(this.props.style,z.style)}},{key:"componentDidUpdate",value:function(z){var q=this.props,X="activeKey"in q?q.activeKey:q.store.getState().activeKey[ur(q)],de=Lr(q,X);if(de!==X)gr(q.store,ur(q),de);else if("activeKey"in z){var me=Lr(z,z.activeKey);de!==me&&gr(q.store,ur(q),de)}}},{key:"render",value:function(){var z=this,q=Object(y.a)({},this.props);this.instanceArray=[];var X=H()(q.prefixCls,q.className,"".concat(q.prefixCls,"-").concat(q.mode)),de={className:X,role:q.role||"menu"};q.id&&(de.id=q.id),q.focusable&&(de.tabIndex=0,de.onKeyDown=this.onKeyDown);var me=q.prefixCls,Ce=q.eventKey,xe=q.visible,De=q.level,Fe=q.mode,He=q.overflowedIndicator,Je=q.theme;return ne.forEach(function(dt){return delete q[dt]}),delete q.onClick,S.createElement(zn,Object(y.a)({},q,{prefixCls:me,mode:Fe,tag:"ul",level:De,theme:Je,visible:xe,overflowedIndicator:He},de),Object(F.a)(q.children).map(function(dt,Rt){return z.renderMenuItem(dt,Rt,Ce||"0-menu-")}))}}]),_e}(S.Component);Wr.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Xe};var Dr=Object(h.b)()(Wr),Er=Dr,vr=M("Kwbf");function Pr(re,ge,_e){var ue=re.prefixCls,z=re.motion,q=re.defaultMotions,X=q===void 0?{}:q,de=re.openAnimation,me=re.openTransitionName,Ce=ge.switchingModeFromInline;if(z)return z;if(Object(I.a)(de)==="object"&&de)Object(vr.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof de=="string")return{motionName:"".concat(ue,"-open-").concat(de)};if(me)return{motionName:me};var xe=X[_e];return xe||(Ce?null:X.other)}var Mr=function(re){Object(c.a)(_e,re);var ge=Object(u.a)(_e);function _e(ue){var z;Object(w.a)(this,_e),z=ge.call(this,ue),z.onSelect=function(de){var me=Object(p.a)(z),Ce=me.props;if(Ce.selectable){var xe=z.store.getState(),De=xe.selectedKeys,Fe=de.key;Ce.multiple?De=De.concat([Fe]):De=[Fe],"selectedKeys"in Ce||z.store.setState({selectedKeys:De}),Ce.onSelect(Object(N.a)(Object(N.a)({},de),{},{selectedKeys:De}))}},z.onClick=function(de){var me=z.getRealMenuMode(),Ce=Object(p.a)(z),xe=Ce.store,De=Ce.props.onOpenChange;me!=="inline"&&!("openKeys"in z.props)&&(xe.setState({openKeys:[]}),De([])),z.props.onClick(de)},z.onKeyDown=function(de,me){z.innerMenu.getWrappedInstance().onKeyDown(de,me)},z.onOpenChange=function(de){var me=Object(p.a)(z),Ce=me.props,xe=z.store.getState().openKeys.concat(),De=!1,Fe=function(Je){var dt=!1;if(Je.open)dt=xe.indexOf(Je.key)===-1,dt&&xe.push(Je.key);else{var Rt=xe.indexOf(Je.key);dt=Rt!==-1,dt&&xe.splice(Rt,1)}De=De||dt};Array.isArray(de)?de.forEach(Fe):Fe(de),De&&("openKeys"in z.props||z.store.setState({openKeys:xe}),Ce.onOpenChange(xe))},z.onDeselect=function(de){var me=Object(p.a)(z),Ce=me.props;if(Ce.selectable){var xe=z.store.getState().selectedKeys.concat(),De=de.key,Fe=xe.indexOf(De);Fe!==-1&&xe.splice(Fe,1),"selectedKeys"in Ce||z.store.setState({selectedKeys:xe}),Ce.onDeselect(Object(N.a)(Object(N.a)({},de),{},{selectedKeys:xe}))}},z.onMouseEnter=function(de){z.restoreModeVerticalFromInline();var me=z.props.onMouseEnter;me&&me(de)},z.onTransitionEnd=function(de){var me=de.propertyName==="width"&&de.target===de.currentTarget,Ce=de.target.className,xe=Object.prototype.toString.call(Ce)==="[object SVGAnimatedString]"?Ce.animVal:Ce,De=de.propertyName==="font-size"&&xe.indexOf("anticon")>=0;(me||De)&&z.restoreModeVerticalFromInline()},z.setInnerMenu=function(de){z.innerMenu=de},z.isRootMenu=!0;var q=ue.defaultSelectedKeys,X=ue.defaultOpenKeys;return"selectedKeys"in ue&&(q=ue.selectedKeys||[]),"openKeys"in ue&&(X=ue.openKeys||[]),z.store=Object(h.c)({selectedKeys:q,openKeys:X,activeKey:{"0-menu-":Lr(ue,ue.activeKey)}}),z.state={switchingModeFromInline:!1,prevProps:ue,inlineOpenKeys:[],store:z.store},z}return Object(T.a)(_e,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(z){var q=this.props,X=q.siderCollapsed,de=q.inlineCollapsed,me=q.onOpenChange;(!z.inlineCollapsed&&de||!z.siderCollapsed&&X)&&me([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var z=this.props.collapsedWidth,q=this.store,X=this.prevOpenKeys,de=this.getInlineCollapsed()&&(z===0||z==="0"||z==="0px");de?(this.prevOpenKeys=q.getState().openKeys.concat(),this.store.setState({openKeys:[]})):X&&(this.store.setState({openKeys:X}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var z=this.props.mode,q=this.state.switchingModeFromInline,X=this.getInlineCollapsed();return q&&X?"inline":X?"vertical":z}},{key:"getInlineCollapsed",value:function(){var z=this.props,q=z.inlineCollapsed,X=z.siderCollapsed;return X!==void 0?X:q}},{key:"restoreModeVerticalFromInline",value:function(){var z=this.state.switchingModeFromInline;z&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var z=Object(N.a)({},Object(x.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),q=this.getRealMenuMode();return z.className+=" ".concat(z.prefixCls,"-root"),z.direction==="rtl"&&(z.className+=" ".concat(z.prefixCls,"-rtl")),z=Object(N.a)(Object(N.a)({},z),{},{mode:q,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Pr(this.props,this.state,q)}),delete z.openAnimation,delete z.openTransitionName,S.createElement(h.a,{store:this.store},S.createElement(Er,Object(y.a)({},z,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(z,q){var X=q.prevProps,de=q.store,me=de.getState(),Ce={},xe={prevProps:z};return X.mode==="inline"&&z.mode!=="inline"&&(xe.switchingModeFromInline=!0),"openKeys"in z?Ce.openKeys=z.openKeys||[]:((z.inlineCollapsed&&!X.inlineCollapsed||z.siderCollapsed&&!X.siderCollapsed)&&(xe.switchingModeFromInline=!0,xe.inlineOpenKeys=me.openKeys,Ce.openKeys=[]),(!z.inlineCollapsed&&X.inlineCollapsed||!z.siderCollapsed&&X.siderCollapsed)&&(Ce.openKeys=q.inlineOpenKeys,xe.inlineOpenKeys=[])),Object.keys(Ce).length&&de.setState(Ce),xe}}]),_e}(S.Component);Mr.defaultProps={selectable:!0,onClick:Xe,onSelect:Xe,onOpenChange:Xe,onDeselect:Xe,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:S.createElement("span",null,"\xB7\xB7\xB7")};var pr=Mr,yr=function(re){Object(c.a)(_e,re);var ge=Object(u.a)(_e);function _e(){var ue;return Object(w.a)(this,_e),ue=ge.apply(this,arguments),ue.onKeyDown=function(z){var q=z.keyCode;return q===l.a.ENTER?(ue.onClick(z),!0):void 0},ue.onMouseLeave=function(z){var q=ue.props,X=q.eventKey,de=q.onItemHover,me=q.onMouseLeave;de({key:X,hover:!1}),me({key:X,domEvent:z})},ue.onMouseEnter=function(z){var q=ue.props,X=q.eventKey,de=q.onItemHover,me=q.onMouseEnter;de({key:X,hover:!0}),me({key:X,domEvent:z})},ue.onClick=function(z){var q=ue.props,X=q.eventKey,de=q.multiple,me=q.onClick,Ce=q.onSelect,xe=q.onDeselect,De=q.isSelected,Fe={key:X,keyPath:[X],item:Object(p.a)(ue),domEvent:z};me(Fe),de?De?xe(Fe):Ce(Fe):De||Ce(Fe)},ue.saveNode=function(z){ue.node=z},ue}return Object(T.a)(_e,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var z=this.props;z.onDestroy&&z.onDestroy(z.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var z,q=Object(N.a)({},this.props),X=H()(this.getPrefixCls(),q.className,(z={},Object(J.a)(z,this.getActiveClassName(),!q.disabled&&q.active),Object(J.a)(z,this.getSelectedClassName(),q.isSelected),Object(J.a)(z,this.getDisabledClassName(),q.disabled),z)),de=Object(N.a)(Object(N.a)({},q.attribute),{},{title:typeof q.title=="string"?q.title:void 0,className:X,role:q.role||"menuitem","aria-disabled":q.disabled});q.role==="option"?de=Object(N.a)(Object(N.a)({},de),{},{role:"option","aria-selected":q.isSelected}):(q.role===null||q.role==="none")&&(de.role="none");var me={onClick:q.disabled?null:this.onClick,onMouseLeave:q.disabled?null:this.onMouseLeave,onMouseEnter:q.disabled?null:this.onMouseEnter},Ce=Object(N.a)({},q.style);q.mode==="inline"&&(q.direction==="rtl"?Ce.paddingRight=q.inlineIndent*q.level:Ce.paddingLeft=q.inlineIndent*q.level),ne.forEach(function(De){return delete q[De]}),delete q.direction;var xe=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(xe=S.createElement(this.props.itemIcon,this.props)),S.createElement("li",Object(y.a)({},Object(x.a)(q,["onClick","onMouseEnter","onMouseLeave","onSelect"]),de,me,{style:Ce,ref:this.saveNode}),q.children,xe)}}]),_e}(S.Component);yr.isMenuItem=!0,yr.defaultProps={onSelect:Xe,onMouseEnter:Xe,onMouseLeave:Xe,manualRef:Xe};var Nr=Object(h.b)(function(re,ge){var _e=re.activeKey,ue=re.selectedKeys,z=ge.eventKey,q=ge.subMenuKey;return{active:_e[q]===z,isSelected:Array.isArray(ue)?ue.indexOf(z)!==-1:ue===z}})(yr),Sr=Nr,cr=function(re){Object(c.a)(_e,re);var ge=Object(u.a)(_e);function _e(){var ue;return Object(w.a)(this,_e),ue=ge.apply(this,arguments),ue.renderInnerMenuItem=function(z){var q=ue.props,X=q.renderMenuItem,de=q.index;return X(z,de,ue.props.subMenuKey)},ue}return Object(T.a)(_e,[{key:"render",value:function(){var z=Object(y.a)({},this.props),q=z.className,X=q===void 0?"":q,de=z.rootPrefixCls,me="".concat(de,"-item-group-title"),Ce="".concat(de,"-item-group-list"),xe=z.title,De=z.children;return ne.forEach(function(Fe){return delete z[Fe]}),delete z.direction,S.createElement("li",Object(y.a)({},z,{onClick:function(He){return He.stopPropagation()},className:"".concat(X," ").concat(de,"-item-group")}),S.createElement("div",{className:me,title:typeof xe=="string"?xe:void 0},xe),S.createElement("ul",{className:Ce},S.Children.map(De,this.renderInnerMenuItem)))}}]),_e}(S.Component);cr.isMenuItemGroup=!0,cr.defaultProps={disabled:!0};var $r=cr,kr=function(ge){var _e=ge.className,ue=ge.rootPrefixCls,z=ge.style;return S.createElement("li",{className:"".concat(_e," ").concat(ue,"-item-divider"),style:z})};kr.defaultProps={disabled:!0,className:"",style:{}};var Hr=kr,Cr=pr,Ur=M("eDIo");function Jr(re,ge){var _e=re.prefixCls,ue=re.editable,z=re.locale,q=re.style;return!ue||ue.showAdd===!1?null:S.createElement("button",{ref:ge,type:"button",className:"".concat(_e,"-nav-add"),style:q,"aria-label":(z==null?void 0:z.addAriaLabel)||"Add tab",onClick:function(de){ue.onEdit("add",{event:de})}},ue.addIcon||"+")}var xr=S.forwardRef(Jr);function Or(re,ge){var _e=re.prefixCls,ue=re.id,z=re.tabs,q=re.locale,X=re.mobile,de=re.moreIcon,me=de===void 0?"More":de,Ce=re.moreTransitionName,xe=re.style,De=re.className,Fe=re.editable,He=re.tabBarGutter,Je=re.rtl,dt=re.onTabClick,Rt=Object(S.useState)(!1),Gt=Object(B.a)(Rt,2),Bt=Gt[0],Ft=Gt[1],Wt=Object(S.useState)(null),Yt=Object(B.a)(Wt,2),$t=Yt[0],cn=Yt[1],Zt="".concat(ue,"-more-popup"),jn="".concat(_e,"-dropdown"),En=$t!==null?"".concat(Zt,"-").concat($t):null,Lt=q==null?void 0:q.dropdownAriaLabel,It=S.createElement(Cr,{onClick:function(Tn){var Nn=Tn.key,Qn=Tn.domEvent;dt(Nn,Qn),Ft(!1)},id:Zt,tabIndex:-1,role:"listbox","aria-activedescendant":En,selectedKeys:[$t],"aria-label":Lt!==void 0?Lt:"expanded dropdown"},z.map(function(hn){return S.createElement(Sr,{key:hn.key,id:"".concat(Zt,"-").concat(hn.key),role:"option","aria-controls":ue&&"".concat(ue,"-panel-").concat(hn.key),disabled:hn.disabled},hn.tab)}));function nn(hn){for(var Tn=z.filter(function(or){return!or.disabled}),Nn=Tn.findIndex(function(or){return or.key===$t})||0,Qn=Tn.length,sr=0;srdn?(ln=It,Zt.current="x"):(ln=nn,Zt.current="y");var Dn=Date.now();Dn-$t.current>100&&(cn.current=!1),(ge(-ln,-ln)||cn.current)&&(Lt.preventDefault(),cn.current=!0),$t.current=Dn}var En=Object(S.useRef)(null);En.current={onTouchStart:Ft,onTouchMove:Wt,onTouchEnd:Yt,onWheel:jn},S.useEffect(function(){function Lt(Tt){En.current.onTouchStart(Tt)}function It(Tt){En.current.onTouchMove(Tt)}function nn(Tt){En.current.onTouchEnd(Tt)}function ln(Tt){En.current.onWheel(Tt)}return document.addEventListener("touchmove",It,{passive:!1}),document.addEventListener("touchend",nn,{passive:!1}),re.current.addEventListener("touchstart",Lt,{passive:!1}),re.current.addEventListener("wheel",ln),function(){document.removeEventListener("touchmove",It),document.removeEventListener("touchend",nn)}},[])}function Tr(){var re=Object(S.useRef)(new Map);function ge(ue){return re.current.has(ue)||re.current.set(ue,S.createRef()),re.current.get(ue)}function _e(ue){re.current.delete(ue)}return[ge,_e]}function Gr(re,ge){var _e=S.useRef(re),ue=S.useState({}),z=Object(B.a)(ue,2),q=z[1];function X(de){var me=typeof de=="function"?de(_e.current):de;me!==_e.current&&ge(me,_e.current),_e.current=me,q({})}return[_e.current,X]}var zr=function(ge){var _e=ge.position,ue=ge.prefixCls,z=ge.extra;if(!z)return null;var q,X=z;return _e==="right"&&(q=X.right||!X.left&&X||null),_e==="left"&&(q=X.left||null),q?S.createElement("div",{className:"".concat(ue,"-extra-content")},q):null};function ci(re,ge){var _e,ue=S.useContext(jr),z=ue.prefixCls,q=ue.tabs,X=re.className,de=re.style,me=re.id,Ce=re.animated,xe=re.activeKey,De=re.rtl,Fe=re.extra,He=re.editable,Je=re.locale,dt=re.tabPosition,Rt=re.tabBarGutter,Gt=re.children,Bt=re.onTabClick,Ft=re.onTabScroll,Wt=Object(S.useRef)(),Yt=Object(S.useRef)(),$t=Object(S.useRef)(),cn=Object(S.useRef)(),Zt=Tr(),jn=Object(B.a)(Zt,2),En=jn[0],Lt=jn[1],It=dt==="top"||dt==="bottom",nn=Gr(0,function(xn,rn){It&&Ft&&Ft({direction:xn>rn?"left":"right"})}),ln=Object(B.a)(nn,2),Tt=ln[0],dn=ln[1],Dn=Gr(0,function(xn,rn){!It&&Ft&&Ft({direction:xn>rn?"top":"bottom"})}),hn=Object(B.a)(Dn,2),Tn=hn[0],Nn=hn[1],Qn=Object(S.useState)(0),sr=Object(B.a)(Qn,2),Fn=sr[0],or=sr[1],_r=Object(S.useState)(0),dr=Object(B.a)(_r,2),hr=dr[0],Kn=dr[1],ir=Object(S.useState)(0),Zn=Object(B.a)(ir,2),Yn=Zn[0],Rr=Zn[1],Ar=Object(S.useState)(0),Br=Object(B.a)(Ar,2),An=Br[0],wr=Br[1],Fr=Object(S.useState)(null),Pn=Object(B.a)(Fr,2),yn=Pn[0],qn=Pn[1],Vi=Object(S.useState)(null),xi=Object(B.a)(Vi,2),Vr=xi[0],Xi=xi[1],Yi=Object(S.useState)(0),Ti=Object(B.a)(Yi,2),$i=Ti[0],Ji=Ti[1],Qi=Object(S.useState)(0),wi=Object(B.a)(Qi,2),Zi=wi[0],qi=wi[1],ea=a(new Map),Si=Object(B.a)(ea,2),ta=Si[0],na=Si[1],ui=t(q,ta,Fn),Ci="".concat(z,"-nav-operations-hidden"),ei=0,ti=0;It?De?(ei=0,ti=Math.max(0,Fn-yn)):(ei=Math.min(0,yn-Fn),ti=0):(ei=Math.min(0,Vr-hr),ti=0);function hi(xn){return xnti?[ti,!1]:[xn,!0]}var Oi=Object(S.useRef)(),ra=Object(S.useState)(),Ri=Object(B.a)(ra,2),fi=Ri[0],Ai=Ri[1];function pi(){Ai(Date.now())}function mi(){window.clearTimeout(Oi.current)}Kr(Wt,function(xn,rn){var $n=!1;function fr(ri,ii){ri(function(ai){var si=hi(ai+ii),Xr=Object(B.a)(si,2),bi=Xr[0],_i=Xr[1];return $n=_i,bi})}if(It){if(yn>=Fn)return $n;fr(dn,xn)}else{if(Vr>=hr)return $n;fr(Nn,rn)}return mi(),pi(),$n}),Object(S.useEffect)(function(){return mi(),fi&&(Oi.current=window.setTimeout(function(){Ai(0)},100)),mi},[fi]);function Ii(){var xn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:xe,rn=ui.get(xn);if(!rn)return;if(It){var $n=Tt;De?rn.rightTt+yn&&($n=rn.right+rn.width-yn):rn.left<-Tt?$n=-rn.left:rn.left+rn.width>-Tt+yn&&($n=-(rn.left+rn.width-yn)),Nn(0),dn(hi($n)[0])}else{var fr=Tn;rn.top<-Tn?fr=-rn.top:rn.top+rn.height>-Tn+Vr&&(fr=-(rn.top+rn.height-Vr)),dn(0),Nn(hi(fr)[0])}}var ia=b(ui,{width:yn,height:Vr,left:Tt,top:Tn},{width:Yn,height:An},{width:$i,height:Zi},Object(N.a)(Object(N.a)({},re),{},{tabs:q})),Li=Object(B.a)(ia,2),aa=Li[0],sa=Li[1],oa=q.map(function(xn){var rn=xn.key;return S.createElement(i,{id:me,prefixCls:z,key:rn,rtl:De,tab:xn,closable:xn.closable,editable:He,active:rn===xe,tabPosition:dt,tabBarGutter:Rt,renderWrapper:Gt,removeAriaLabel:Je==null?void 0:Je.removeAriaLabel,ref:En(rn),onClick:function(fr){Bt(rn,fr)},onRemove:function(){Lt(rn)},onFocus:function(){Ii(rn),pi(),De||(Wt.current.scrollLeft=0),Wt.current.scrollTop=0}})}),gi=s(function(){var xn,rn,$n,fr,ri,ii,ai,si,Xr,bi=((xn=Wt.current)===null||xn===void 0?void 0:xn.offsetWidth)||0,_i=((rn=Wt.current)===null||rn===void 0?void 0:rn.offsetHeight)||0,Bi=(($n=cn.current)===null||$n===void 0?void 0:$n.offsetWidth)||0,Fi=((fr=cn.current)===null||fr===void 0?void 0:fr.offsetHeight)||0,fa=((ri=$t.current)===null||ri===void 0?void 0:ri.offsetWidth)||0,pa=((ii=$t.current)===null||ii===void 0?void 0:ii.offsetHeight)||0;qn(bi),Xi(_i),Ji(Bi),qi(Fi);var Wi=(((ai=Yt.current)===null||ai===void 0?void 0:ai.offsetWidth)||0)-Bi,Hi=(((si=Yt.current)===null||si===void 0?void 0:si.offsetHeight)||0)-Fi;or(Wi),Kn(Hi);var Ki=(Xr=$t.current)===null||Xr===void 0?void 0:Xr.className.includes(Ci);Rr(Wi-(Ki?0:fa)),wr(Hi-(Ki?0:pa)),na(function(){var Gi=new Map;return q.forEach(function(ma){var zi=ma.key,oi=En(zi).current;oi&&Gi.set(zi,{width:oi.offsetWidth,height:oi.offsetHeight,left:oi.offsetLeft,top:oi.offsetTop})}),Gi})}),la=q.slice(0,aa),ua=q.slice(sa+1),Di=[].concat(Object(O.a)(la),Object(O.a)(ua)),ca=Object(S.useState)(),Pi=Object(B.a)(ca,2),da=Pi[0],ha=Pi[1],Ir=ui.get(xe),Mi=Object(S.useRef)();function Ni(){v.a.cancel(Mi.current)}Object(S.useEffect)(function(){var xn={};return Ir&&(It?(De?xn.right=Ir.right:xn.left=Ir.left,xn.width=Ir.width):(xn.top=Ir.top,xn.height=Ir.height)),Ni(),Mi.current=v()(function(){ha(xn)}),Ni},[Ir,It,De]),Object(S.useEffect)(function(){Ii()},[xe,Ir,ui,It]),Object(S.useEffect)(function(){gi()},[De,Rt,xe,q.map(function(xn){return xn.key}).join("_")]);var ki=!!Di.length,ni="".concat(z,"-nav-wrap"),vi,yi,Ui,ji;return It?De?(yi=Tt>0,vi=Tt+yn children");ye=fe}}),ye}function w(Z,$,ie){var ye=0;return Z&&Z.forEach(function(fe){if(ye)return;ye=fe&&fe.key===$&&!fe.props[ie]}),ye}function T(Z,$,ie){var ye=Z.length===$.length;return ye&&Z.forEach(function(fe,Pe){var ke=$[Pe];fe&&ke&&((fe&&!ke||!fe&&ke||(fe.key!==ke.key||ie&&fe.props[ie]!==ke.props[ie]))&&(ye=!1))}),ye}function p(Z,$){var ie=[],ye={},fe=[];return Z.forEach(function(Pe){Pe&&b($,Pe.key)?fe.length&&(ye[Pe.key]=fe,fe=[]):fe.push(Pe)}),$.forEach(function(Pe){Pe&&Object.prototype.hasOwnProperty.call(ye,Pe.key)&&(ie=ie.concat(ye[Pe.key])),ie.push(Pe)}),ie=ie.concat(fe),ie}var c=M("UwPn"),u={isAppearSupported:function($){return $.transitionName&&$.transitionAppear||$.animation.appear},isEnterSupported:function($){return $.transitionName&&$.transitionEnter||$.animation.enter},isLeaveSupported:function($){return $.transitionName&&$.transitionLeave||$.animation.leave},allowAppearCallback:function($){return $.transitionAppear||$.animation.appear},allowEnterCallback:function($){return $.transitionEnter||$.animation.enter},allowLeaveCallback:function($){return $.transitionLeave||$.animation.leave}},h=u,x=function(){function Z($,ie){for(var ye=0;ye children");return A.a.createElement(P,{key:Ye.key,ref:function(ft){ye.childrenRefs[Ye.key]=ft},animation:fe.animation,transitionName:fe.transitionName,transitionEnter:fe.transitionEnter,transitionAppear:fe.transitionAppear,transitionLeave:fe.transitionLeave},Ye)}));var Qe=fe.component;if(Qe){var pt=fe;return typeof Qe=="string"&&(pt=W({className:fe.className,style:fe.style},fe.componentProps)),A.a.createElement(Qe,pt,ke)}return ke[0]||null}}]),$}(A.a.Component);Se.isAnimate=!0,Se.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:Ee,onEnter:Ee,onLeave:Ee,onAppear:Ee};var Le=function(){var $=this;this.performEnter=function(ie){$.childrenRefs[ie]&&($.currentlyAnimatingKeys[ie]=!0,$.childrenRefs[ie].componentWillEnter($.handleDoneAdding.bind($,ie,"enter")))},this.performAppear=function(ie){$.childrenRefs[ie]&&($.currentlyAnimatingKeys[ie]=!0,$.childrenRefs[ie].componentWillAppear($.handleDoneAdding.bind($,ie,"appear")))},this.handleDoneAdding=function(ie,ye){var fe=$.props;if(delete $.currentlyAnimatingKeys[ie],fe.exclusive&&fe!==$.nextProps)return;var Pe=E(we(fe));$.isValidChildByKey(Pe,ie)?ye==="appear"?h.allowAppearCallback(fe)&&(fe.onAppear(ie),fe.onEnd(ie,!0)):h.allowEnterCallback(fe)&&(fe.onEnter(ie),fe.onEnd(ie,!0)):$.performLeave(ie)},this.performLeave=function(ie){$.childrenRefs[ie]&&($.currentlyAnimatingKeys[ie]=!0,$.childrenRefs[ie].componentWillLeave($.handleDoneLeaving.bind($,ie)))},this.handleDoneLeaving=function(ie){var ye=$.props;if(delete $.currentlyAnimatingKeys[ie],ye.exclusive&&ye!==$.nextProps)return;var fe=E(we(ye));if($.isValidChildByKey(fe,ie))$.performEnter(ie);else{var Pe=function(){h.allowLeaveCallback(ye)&&(ye.onLeave(ie),ye.onEnd(ie,!1))};T($.state.children,fe,ye.showProp)?Pe():$.setState({children:fe},Pe)}}},he=t(Se),ee=function(Z){Object(d.a)(ie,Z);var $=Object(s.a)(ie);function ie(){return Object(m.a)(this,ie),$.apply(this,arguments)}return Object(v.a)(ie,[{key:"shouldComponentUpdate",value:function(fe){return fe.forceRender?!0:!!fe.hiddenClassName||!!fe.visible}},{key:"render",value:function(){var fe=this.props,Pe=fe.className,ke=fe.hiddenClassName,Qe=fe.visible,pt=fe.forceRender,Ye=Object(N.a)(fe,["className","hiddenClassName","visible","forceRender"]),vt=Pe;return!!ke&&!Qe&&(vt+=" ".concat(ke)),S.createElement("div",Object.assign({},Ye,{className:vt}))}}]),ie}(S.Component),Be=0;function at(Z,$){var ie=Z["page".concat($?"Y":"X","Offset")],ye="scroll".concat($?"Top":"Left");if(typeof ie!="number"){var fe=Z.document;ie=fe.documentElement[ye],typeof ie!="number"&&(ie=fe.body[ye])}return ie}function Ze(Z,$){var ie=Z.style;["Webkit","Moz","Ms","ms"].forEach(function(ye){ie["".concat(ye,"TransformOrigin")]=$}),ie.transformOrigin=$}function Xe(Z){var $=Z.getBoundingClientRect(),ie={left:$.left,top:$.top},ye=Z.ownerDocument,fe=ye.defaultView||ye.parentWindow;return ie.left+=at(fe),ie.top+=at(fe,!0),ie}var it=function(Z){Object(d.a)(ie,Z);var $=Object(s.a)(ie);function ie(ye){var fe;return Object(m.a)(this,ie),fe=$.call(this,ye),fe.inTransition=!1,fe.onAnimateLeave=function(){var Pe=fe.props,ke=Pe.afterClose,Qe=Pe.getOpenCount,pt=Pe.focusTriggerAfterClose,Ye=Pe.mask;if(fe.wrap&&(fe.wrap.style.display="none"),fe.inTransition=!1,Qe()||fe.switchScrollingEffect(),Ye&&fe.lastOutSideFocusNode&&pt){try{fe.lastOutSideFocusNode.focus({preventScroll:!0})}catch(vt){fe.lastOutSideFocusNode=null}fe.lastOutSideFocusNode=null}ke&&ke()},fe.onDialogMouseDown=function(){fe.dialogMouseDown=!0},fe.onMaskMouseUp=function(){fe.dialogMouseDown&&(fe.timeoutId=setTimeout(function(){fe.dialogMouseDown=!1},0))},fe.onMaskClick=function(Pe){if(Date.now()-fe.openTime<300)return;Pe.target===Pe.currentTarget&&!fe.dialogMouseDown&&fe.close(Pe)},fe.onKeyDown=function(Pe){var ke=fe.props,Qe=ke.keyboard,pt=ke.visible;if(Qe&&Pe.keyCode===o.a.ESC){Pe.stopPropagation(),fe.close(Pe);return}if(pt&&Pe.keyCode===o.a.TAB){var Ye=document,vt=Ye.activeElement;Pe.shiftKey?vt===fe.sentinelStart&&fe.sentinelEnd.focus():vt===fe.sentinelEnd&&fe.sentinelStart.focus()}},fe.getDialogElement=function(){var Pe=fe.props,ke=Pe.closable,Qe=Pe.prefixCls,pt=Pe.width,Ye=Pe.height,vt=Pe.footer,ft=Pe.title,mt=Pe.closeIcon,Pt=Pe.style,_t=Pe.className,Dt=Pe.visible,kt=Pe.forceRender,ot=Pe.bodyStyle,Kt=Pe.bodyProps,yt=Pe.children,gt=Pe.destroyOnClose,wt={};pt!==void 0&&(wt.width=pt),Ye!==void 0&&(wt.height=Ye);var Qt;vt&&(Qt=S.createElement("div",{className:"".concat(Qe,"-footer"),ref:fe.saveRef("footer")},vt));var mn;ft&&(mn=S.createElement("div",{className:"".concat(Qe,"-header"),ref:fe.saveRef("header")},S.createElement("div",{className:"".concat(Qe,"-title"),id:fe.titleId},ft)));var fn;ke&&(fn=S.createElement("button",{type:"button",onClick:fe.close,"aria-label":"Close",className:"".concat(Qe,"-close")},mt||S.createElement("span",{className:"".concat(Qe,"-close-x")})));var wn=Object(J.a)(Object(J.a)({},Pt),wt),Cn={width:0,height:0,overflow:"hidden",outline:"none"},qt=fe.getTransitionName(),en=S.createElement(ee,{key:"dialog-element",role:"document",ref:fe.saveRef("dialog"),style:wn,className:"".concat(Qe," ").concat(_t||""),visible:Dt,forceRender:kt,onMouseDown:fe.onDialogMouseDown},S.createElement("div",{tabIndex:0,ref:fe.saveRef("sentinelStart"),style:Cn,"aria-hidden":"true"}),S.createElement("div",{className:"".concat(Qe,"-content")},fn,mn,S.createElement("div",Object.assign({className:"".concat(Qe,"-body"),style:ot,ref:fe.saveRef("body")},Kt),yt),Qt),S.createElement("div",{tabIndex:0,ref:fe.saveRef("sentinelEnd"),style:Cn,"aria-hidden":"true"}));return S.createElement(he,{key:"dialog",showProp:"visible",onLeave:fe.onAnimateLeave,transitionName:qt,component:"",transitionAppear:!0},Dt||!gt?en:null)},fe.getZIndexStyle=function(){var Pe={},ke=fe.props.zIndex;return ke!==void 0&&(Pe.zIndex=ke),Pe},fe.getWrapStyle=function(){return Object(J.a)(Object(J.a)({},fe.getZIndexStyle()),fe.props.wrapStyle)},fe.getMaskStyle=function(){return Object(J.a)(Object(J.a)({},fe.getZIndexStyle()),fe.props.maskStyle)},fe.getMaskElement=function(){var Pe=fe.props,ke=Pe.mask,Qe=Pe.prefixCls,pt=Pe.visible,Ye=Pe.maskProps,vt;if(ke){var ft=fe.getMaskTransitionName();vt=S.createElement(ee,Object.assign({style:fe.getMaskStyle(),key:"mask",className:"".concat(Qe,"-mask"),hiddenClassName:"".concat(Qe,"-mask-hidden"),visible:pt},Ye)),ft&&(vt=S.createElement(he,{key:"mask",showProp:"visible",transitionAppear:!0,component:"",transitionName:ft},vt))}return vt},fe.getMaskTransitionName=function(){var Pe=fe.props,ke=Pe.maskTransitionName,Qe=Pe.maskAnimation,pt=Pe.prefixCls,Ye=ke,vt=Qe;return!Ye&&vt&&(Ye="".concat(pt,"-").concat(vt)),Ye},fe.getTransitionName=function(){var Pe=fe.props,ke=Pe.transitionName,Qe=Pe.animation,pt=Pe.prefixCls,Ye=ke;return!ke&&Qe&&(Ye="".concat(pt,"-").concat(Qe)),Ye},fe.close=function(Pe){var ke=fe.props.onClose;ke&&ke(Pe)},fe.saveRef=function(Pe){return function(ke){fe[Pe]=ke}},fe.titleId="rcDialogTitle".concat(Be),Be+=1,fe.switchScrollingEffect=ye.switchScrollingEffect||function(){},fe}return Object(v.a)(ie,[{key:"componentDidMount",value:function(){if(this.componentDidUpdate({}),this.props.forceRender&&this.props.visible)return;(this.props.forceRender||this.props.getContainer===!1&&!this.props.visible)&&this.wrap&&(this.wrap.style.display="none")}},{key:"componentDidUpdate",value:function(fe){var Pe=this.props.visible,ke=this.props.mousePosition;if(Pe){if(!fe.visible){this.openTime=Date.now(),this.switchScrollingEffect(),this.tryFocus();var Qe=a.findDOMNode(this.dialog);if(ke){var pt=Xe(Qe);Ze(Qe,"".concat(ke.x-pt.left,"px ").concat(ke.y-pt.top,"px"))}else Ze(Qe,"")}}else fe.visible&&(this.inTransition=!0)}},{key:"componentWillUnmount",value:function(){var fe=this.props,Pe=fe.visible,ke=fe.getOpenCount;(Pe||this.inTransition)&&!ke()&&this.switchScrollingEffect(),clearTimeout(this.timeoutId)}},{key:"tryFocus",value:function(){Object(i.a)(this.wrap,document.activeElement)||(this.lastOutSideFocusNode=document.activeElement,this.sentinelStart.focus())}},{key:"render",value:function(){var fe=this.props,Pe=fe.prefixCls,ke=fe.maskClosable,Qe=this.getWrapStyle();return fe.visible&&(Qe.display=null),S.createElement("div",{className:"".concat(Pe,"-root")},this.getMaskElement(),S.createElement("div",Object.assign({tabIndex:-1,onKeyDown:this.onKeyDown,className:"".concat(Pe,"-wrap ").concat(fe.wrapClassName||""),ref:this.saveRef("wrap"),onClick:ke?this.onMaskClick:null,onMouseUp:ke?this.onMaskMouseUp:null,role:"dialog","aria-labelledby":fe.title?this.titleId:null,style:Qe},fe.wrapProps),this.getDialogElement()))}}]),ie}(S.Component);it.defaultProps={className:"",mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",focusTriggerAfterClose:!0};var Ue=function(Z){var $=Z.visible,ie=Z.getContainer,ye=Z.forceRender;return ie===!1?S.createElement(it,Object.assign({},Z,{getOpenCount:function(){return 2}})):S.createElement(O.a,{visible:$,forceRender:ye,getContainer:ie},function(fe){return S.createElement(it,Object.assign({},Z,fe))})},Ve=Ue,et=M("0uC1"),ne=M.n(et),be=M("AYk6"),Oe=M.n(be),Re=M("sKBN"),$e=M.n(Re),tt=M("BddG"),st=M.n(tt),rt=M("V/uB"),ut=M.n(rt),ht=M("zT1h"),Te=M("Kwbf"),Ie=M("wgJM");function je(Z){var $=S.useRef(null),ie=S.useState(Z),ye=Object(L.a)(ie,2),fe=ye[0],Pe=ye[1],ke=S.useRef([]),Qe=function(Ye){$.current===null&&(ke.current=[],$.current=Object(Ie.a)(function(){Pe(function(vt){var ft=vt;return ke.current.forEach(function(mt){ft=Object(J.a)(Object(J.a)({},ft),mt)}),$.current=null,ft})})),ke.current.push(Ye)};return S.useEffect(function(){return function(){return $.current&&Ie.a.cancel($.current)}},[]),[fe,Qe]}function ze(Z,$,ie,ye){var fe=$+ie,Pe=(ie-ye)/2;if(ie>ye){if($>0)return Object(B.a)({},Z,Pe);if($<0&&feye)return Object(B.a)({},Z,$<0?Pe:-Pe);return{}}function Me(Z,$,ie,ye){var fe=Object(e.a)(),Pe=fe.width,ke=fe.height,Qe=null;return Z<=Pe&&$<=ke?Qe={x:0,y:0}:(Z>Pe||$>ke)&&(Qe=Object(J.a)(Object(J.a)({},ze("x",ie,Z,Pe)),ze("y",ye,$,ke))),Qe}var Ne=S.useState,pe={x:0,y:0},ae=function($){var ie=$.prefixCls,ye=$.src,fe=$.alt,Pe=$.onClose,ke=$.afterClose,Qe=$.visible,pt=Object(N.a)($,["prefixCls","src","alt","onClose","afterClose","visible"]),Ye=Ne(1),vt=Object(L.a)(Ye,2),ft=vt[0],mt=vt[1],Pt=Ne(0),_t=Object(L.a)(Pt,2),Dt=_t[0],kt=_t[1],ot=je(pe),Kt=Object(L.a)(ot,2),yt=Kt[0],gt=Kt[1],wt=S.useRef(),Qt=S.useRef({originX:0,originY:0,deltaX:0,deltaY:0}),mn=S.useState(!1),fn=Object(L.a)(mn,2),wn=fn[0],Cn=fn[1],qt=function(){mt(1),kt(0),gt(pe)},en=function(){mt(function(_){return _+1}),gt(pe)},Ut=function(){ft>1&&mt(function(_){return _-1}),gt(pe)},Mt=function(){kt(function(_){return _+90})},Nt=function(){kt(function(_){return _-90})},At=F()(Object(B.a)({},"".concat(ie,"-moving"),wn)),xt="".concat(ie,"-operations-operation"),Ct="".concat(ie,"-operations-icon"),Ot=[{Icon:ut.a,onClick:Pe,type:"close"},{Icon:$e.a,onClick:en,type:"zoomIn"},{Icon:st.a,onClick:Ut,type:"zoomOut",disabled:ft===1},{Icon:Oe.a,onClick:Mt,type:"rotateRight"},{Icon:ne.a,onClick:Nt,type:"rotateLeft"}],zt=function(){if(Qe&&wn){var _=wt.current.offsetWidth*ft,C=wt.current.offsetHeight*ft,k=Object(e.b)(wt.current),G=k.left,j=k.top,ve=Dt%180!==0;Cn(!1);var We=Me(ve?C:_,ve?_:C,G,j);We&>(Object(J.a)({},We))}},bn=function(_){_.preventDefault(),_.stopPropagation(),Qt.current.deltaX=_.pageX-yt.x,Qt.current.deltaY=_.pageY-yt.y,Qt.current.originX=yt.x,Qt.current.originY=yt.y,Cn(!0)},gn=function(_){Qe&&wn&>({x:_.pageX-Qt.current.deltaX,y:_.pageY-Qt.current.deltaY})};return S.useEffect(function(){var U,_,C=Object(ht.a)(window,"mouseup",zt,!1),k=Object(ht.a)(window,"mousemove",gn,!1);try{window.top!==window.self&&(U=Object(ht.a)(window.top,"mouseup",zt,!1),_=Object(ht.a)(window.top,"mousemove",gn,!1))}catch(G){Object(Te.c)(!1,"[rc-image] ".concat(G))}return function(){C.remove(),k.remove(),U&&U.remove(),_&&_.remove()}},[Qe,wn]),S.createElement(Ve,Object.assign({},pt,{transitionName:"zoom",maskTransitionName:"fade",closable:!1,keyboard:!0,prefixCls:ie,onClose:Pe,afterClose:qt,visible:Qe,wrapClassName:At}),S.createElement("ul",{className:"".concat(ie,"-operations")},Ot.map(function(U){var _=U.Icon,C=U.onClick,k=U.type,G=U.disabled;return S.createElement("li",{className:F()(xt,Object(B.a)({},"".concat(ie,"-operations-operation-disabled"),!!G)),onClick:C,key:k},S.createElement(_,{className:Ct}))})),S.createElement("div",{className:"".concat(ie,"-img-wrapper"),style:{transform:"translate3d(".concat(yt.x,"px, ").concat(yt.y,"px, 0)")}},S.createElement("img",{onMouseDown:bn,ref:wt,className:"".concat(ie,"-img"),src:ye,alt:fe,style:{transform:"scale3d(".concat(ft,", ").concat(ft,", 1) rotate(").concat(Dt,"deg)")}})))},le=ae,Y=function($){var ie=$.src,ye=$.alt,fe=$.onPreviewClose,Pe=$.prefixCls,ke=Pe===void 0?"rc-image":Pe,Qe=$.previewPrefixCls,pt=Qe===void 0?"".concat(ke,"-preview"):Qe,Ye=$.placeholder,vt=$.fallback,ft=$.width,mt=$.height,Pt=$.style,_t=$.preview,Dt=_t===void 0?!0:_t,kt=$.className,ot=$.onClick,Kt=$.crossOrigin,yt=$.decoding,gt=$.loading,wt=$.referrerPolicy,Qt=$.sizes,mn=$.srcSet,fn=$.useMap,wn=Object(N.a)($,["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","crossOrigin","decoding","loading","referrerPolicy","sizes","srcSet","useMap"]),Cn=Ye&&Ye!==!0,qt=Object(S.useState)(!1),en=Object(L.a)(qt,2),Ut=en[0],Mt=en[1],Nt=Object(S.useState)(Cn?"loading":"normal"),At=Object(L.a)(Nt,2),xt=At[0],Ct=At[1],Ot=Object(S.useState)(null),zt=Object(L.a)(Ot,2),bn=zt[0],gn=zt[1],U=xt==="error",_=function(){Ct("normal")},C=function(){Ct("error")},k=function(ct){var Ge=Object(e.b)(ct.target),bt=Ge.left,St=Ge.top;Mt(!0),gn({x:bt,y:St}),ot&&ot(ct)},G=function(ct){ct.stopPropagation(),Mt(!1),gn(null),fe&&fe(ct)};S.useEffect(function(){Cn&&Ct("loading")},[ie]);var j=F()(ke,kt,Object(B.a)({},"".concat(ke,"-error"),U)),ve=U&&vt?vt:ie,We={crossOrigin:Kt,decoding:yt,loading:gt,referrerPolicy:wt,sizes:Qt,srcSet:mn,useMap:fn,alt:ye,className:F()("".concat(ke,"-img"),Object(B.a)({},"".concat(ke,"-img-placeholder"),Ye===!0)),style:mt!==void 0?{height:mt}:void 0};return S.createElement(S.Fragment,null,S.createElement("div",Object.assign({},wn,{className:j,onClick:Dt&&!U?k:ot,style:Object(J.a)(Object(J.a)({},Pt),{},{width:ft,height:mt})}),U&&vt?S.createElement("img",Object.assign({},We,{src:vt})):S.createElement("img",Object.assign({},We,{onLoad:_,onError:C,src:ie})),xt==="loading"&&S.createElement("div",{"aria-hidden":"true",className:"".concat(ke,"-placeholder")},Ye)),Dt&&!U&&S.createElement(le,{"aria-hidden":!Ut,visible:Ut,prefixCls:pt,onClose:G,mousePosition:bn,src:ve,alt:ye}))};Y.displayName="Image";var Q=Y,te=ce.a=Q},n6Qo:function(qe,ce,M){"use strict";M.d(ce,"a",function(){return F});var J=M("q1tI"),B=M("biw7"),L=M("fyJ8");function N(e){var O=e.className,m=e.index,v=e.children,d=e.colSpan,s=e.rowSpan,a=J.useContext(B.a),l=a.prefixCls,o=a.fixedInfoList,i=o[m];return J.createElement(L.a,Object.assign({className:O,index:m,component:"td",prefixCls:l,record:null,dataIndex:null,render:function(){return{children:v,props:{colSpan:d,rowSpan:s}}}},i))}function S(e){return J.createElement("tr",Object.assign({},e))}function A(e){var O=e.children,m=J.useContext(B.a),v=m.prefixCls;return J.createElement("tfoot",{className:"".concat(v,"-summary")},O)}var H=ce.b=A,F={Cell:N,Row:S}},nEHx:function(qe,ce,M){"use strict";M.d(ce,"a",function(){return J});var J;(function(B){B.DARK="dark",B.LIGHT="light",B.HIGH_CONTRAST="hc"})(J||(J={}))},nnTU:function(qe,ce,M){"use strict";M.d(ce,"b",function(){return H}),M.d(ce,"a",function(){return F});var J=M("MI8n"),B=M("JYp7"),L=M("pmY6"),N=M("24hK"),S=M("746U"),A=M("Cg/j");const H=Object(A.c)("commandService"),F=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new J.b,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,O){if(!e)throw new Error("invalid command");if(typeof e=="string"){if(!O)throw new Error("invalid command");return this.registerCommand({id:e,handler:O})}if(e.description){const a=[];for(let o of e.description.args)a.push(o.constraint);const l=e.handler;e.handler=function(o,...i){return Object(S.o)(i,a),l(o,...i)}}const{id:m}=e;let v=this._commands.get(m);v||(v=new N.a,this._commands.set(m,v));let d=v.unshift(e),s=Object(L.i)(()=>{d();const a=this._commands.get(m);(a==null?void 0:a.isEmpty())&&this._commands.delete(m)});return this._onDidRegisterCommand.fire(m),s}registerCommandAlias(e,O){return F.registerCommand(e,(m,...v)=>m.get(H).executeCommand(O,...v))}getCommand(e){const O=this._commands.get(e);return!O||O.isEmpty()?void 0:B.a.first(O)}getCommands(){const e=new Map;for(const O of this._commands.keys()){const m=this.getCommand(O);m&&e.set(O,m)}return e}};F.registerCommand("noop",()=>{})},p5ED:function(qe,ce,M){"use strict";var J=M("+L6B"),B=M("2/Rp"),L=M("5Dmo"),N=M("3S7+"),S=M("k1fw"),A=M("9og8"),H=M("tJVT"),F=M("WmNS"),e=M.n(F),O=M("q1tI"),m=M.n(O),v=M("vHTk"),d=M.n(v),s=M("yEEn"),a=M("ZW9T"),l=M("1vsH"),o=M("V0Rq"),i=M("m3rI");ce.a=function(r){var t,E,b,y,w,T,p,c=r.editOffice,u=c===void 0?"view":c,h=r.data,x=r.theme,g=r.type,f=r.filename,R=r.monacoEditor,I=r.className,n=r.style,P=r.close,W=r.onClose,D=r.hasMask,K=r.disabledDownload,V=Object(O.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),oe=Object(H.a)(V,2),se=oe[0],Ae=oe[1],we=Object(O.useState)(""),Ee=Object(H.a)(we,2),Se=Ee[0],Le=Ee[1],he=Object(O.useState)(),ee=Object(H.a)(he,2),Be=ee[0],at=ee[1],Ze=window.ENV==="build"?"/react/build":"",Xe=i.a.PROXY_SERVER||location.origin,it,Ue=1024*1024,Ve=10*Ue,et=Object(O.useRef)();(t=h)!==null&&t!==void 0&&t.startsWith("/api")&&g!=="txt"&&(h=i.a.API_SERVER+h),g==="office"&&(it=Object(l.T)(h).filesize,it>Ve&&(g="other")),f&&R&&(R.filename=f),Object(O.useEffect)(function(){var Re,$e,tt=(Re=document.cookie)===null||Re===void 0||(($e=Re.replace(/\s/g,""))===null||$e===void 0)?void 0:$e.split(";");tt==null||tt.map(function(st){var rt=st.split("=");rt[0]==="_educoder_session"&&Le(rt[1])})},[]),Object(O.useEffect)(function(){g==="office"&&ne()},[g,h]);var ne=function(){var Re=Object(A.a)(e.a.mark(function $e(){var tt,st,rt;return e.a.wrap(function(ht){for(;;)switch(ht.prev=ht.next){case 0:return console.log("data:",h),tt=h,h.startsWith("http")||(tt=location.origin+tt),st=new URL(tt).pathname.split("/").pop(),ht.next=6,Object(o.V)({attachment_id:st});case 6:rt=ht.sent,at(rt);case 8:case"end":return ht.stop()}},$e)}));return function(){return Re.apply(this,arguments)}}(),be=function(){if(h.startsWith("http")||h.startsWith("blob:")){Oe();return}Object(l.z)(f||"educoder",h,f)},Oe=function(){Object(l.x)(f||"educoder",decodeURIComponent(h))};return m.a.createElement("div",{style:Object(S.a)({},n||{}),className:"".concat(D&&d.a.bgBlack," ").concat(g?d.a.wrp:"hide")},P&&m.a.createElement("div",{className:d.a.close,ref:et},!K&&m.a.createElement(N.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return et.current}},m.a.createElement("span",{onClick:Oe},m.a.createElement("i",{className:"icon-quxiaozhiding"}))),m.a.createElement(N.a,{title:"\u5173\u95ED",getPopupContainer:function(){return et.current}},m.a.createElement("span",{className:"",onClick:W},m.a.createElement("i",{className:"icon-guanbi1"})))),m.a.createElement("div",{className:"".concat(d.a[I]," ").concat(I," ").concat(d.a.monaco," ").concat(g==="txt"?"show":"hide")},g==="txt"&&m.a.createElement(a.b,R)),g==="audio"&&m.a.createElement("audio",{src:"".concat(((E=h)===null||E===void 0?void 0:E.indexOf("http://"))>-1||((b=h)===null||b===void 0?void 0:b.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(h),autoPlay:!0}),g==="video"&&m.a.createElement(m.a.Fragment,null,((y=h)===null||y===void 0?void 0:y.indexOf("http"))>-1?m.a.createElement("video",{controls:!0,src:"".concat(h),autoPlay:!0}):m.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(h),autoPlay:!0})),g==="office"&&Be&&m.a.createElement("iframe",{src:"".concat(Ze,"/office.html?key=").concat(Be.key,"&url=").concat(Xe+Be.url,"&callbackUrl=").concat(Xe+Be.callbackUrl,"&fileType=").concat(Be.fileType,"&title=").concat(Be.title,"&model=").concat(u,"&officeServer=").concat(i.a.OFFICE_SERVER,"&disabledDownload=").concat(!!K)}),g==="html"&&m.a.createElement("iframe",{src:h+"&disposition=inline"}),g==="pdf"&&m.a.createElement("iframe",{src:"".concat(Ze,"/js/pdfview/index.html?url=").concat(h,"&disabledDownload=").concat(!!K)}),g==="image"&&m.a.createElement("img",{src:"".concat(((w=h)===null||w===void 0?void 0:w.indexOf("http://"))>-1||((T=h)===null||T===void 0?void 0:T.indexOf("https://"))>-1||(p=h)!==null&&p!==void 0&&p.startsWith("/api")?"":"data:image/png;base64,").concat(h)}),g==="other"&&m.a.createElement("div",null,m.a.createElement(B.a,{type:"primary",size:"large",onClick:be},m.a.createElement(s.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),g==="download"&&m.a.createElement(B.a,{type:"primary",size:"large",onClick:be},m.a.createElement(s.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},pmY6:function(qe,ce,M){"use strict";M.d(ce,"h",function(){return O}),M.d(ce,"g",function(){return v}),M.d(ce,"f",function(){return d}),M.d(ce,"e",function(){return s}),M.d(ce,"i",function(){return a}),M.d(ce,"b",function(){return l}),M.d(ce,"a",function(){return o}),M.d(ce,"d",function(){return i}),M.d(ce,"c",function(){return r});var J=M("C/vA"),B=M("JYp7");const L=!1;let N=null;function S(t){N=t}if(L){const t="__is_disposable_tracked__";S(new class{trackDisposable(E){const b=new Error("Potentially leaked disposable").stack;setTimeout(()=>{E[t]||console.log(b)},3e3)}setParent(E,b){if(E&&E!==o.None)try{E[t]=!0}catch(y){}}markAsDisposed(E){if(E&&E!==o.None)try{E[t]=!0}catch(b){}}markAsSingleton(E){}})}function A(t){return N==null||N.trackDisposable(t),t}function H(t){N==null||N.markAsDisposed(t)}function F(t,E){N==null||N.setParent(t,E)}function e(t,E){if(!N)return;for(const b of t)N.setParent(b,E)}function O(t){return N==null||N.markAsSingleton(t),t}class m extends Error{constructor(t){super(`Encountered errors while disposing of store. Errors: [${t.join(", ")}]`);this.errors=t}}function v(t){return typeof t.dispose=="function"&&t.dispose.length===0}function d(t){if(B.a.is(t)){let E=[];for(const b of t)if(b)try{b.dispose()}catch(y){E.push(y)}if(E.length===1)throw E[0];if(E.length>1)throw new m(E);return Array.isArray(t)?[]:t}else if(t)return t.dispose(),t}function s(...t){const E=a(()=>d(t));return e(t,E),E}function a(t){const E=A({dispose:Object(J.a)(()=>{H(E),t()})});return E}class l{constructor(){this._toDispose=new Set,this._isDisposed=!1,A(this)}dispose(){if(this._isDisposed)return;H(this),this._isDisposed=!0,this.clear()}clear(){try{d(this._toDispose.values())}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return F(t,this),this._isDisposed?l.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}}l.DISABLE_DISPOSED_WARNING=!1;class o{constructor(){this._store=new l,A(this),F(this._store,this)}dispose(){H(this),this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}}o.None=Object.freeze({dispose(){}});class i{constructor(){this._isDisposed=!1,A(this)}get value(){return this._isDisposed?void 0:this._value}set value(t){var E;if(this._isDisposed||t===this._value)return;(E=this._value)===null||E===void 0||E.dispose(),t&&F(t,this),this._value=t}clear(){this.value=void 0}dispose(){var t;this._isDisposed=!0,H(this),(t=this._value)===null||t===void 0||t.dispose(),this._value=void 0}clearAndLeak(){const t=this._value;return this._value=void 0,t&&F(t,null),t}}class r{constructor(t){this.object=t}dispose(){}}},psGv:function(qe,ce,M){var J,B;(function(){var L;(function(){"use strict";var H=[,,function(m){function v(a){this.__parent=a,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}v.prototype.clone_empty=function(){var a=new v(this.__parent);return a.set_indent(this.__indent_count,this.__alignment_count),a},v.prototype.item=function(a){return a<0?this.__items[this.__items.length+a]:this.__items[a]},v.prototype.has_match=function(a){for(var l=this.__items.length-1;l>=0;l--)if(this.__items[l].match(a))return!0;return!1},v.prototype.set_indent=function(a,l){this.is_empty()&&(this.__indent_count=a||0,this.__alignment_count=l||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},v.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},v.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},v.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var a=this.__parent.current_line;return a.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),a.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),a.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,a.__items[0]===" "&&(a.__items.splice(0,1),a.__character_count-=1),!0}return!1},v.prototype.is_empty=function(){return this.__items.length===0},v.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},v.prototype.push=function(a){this.__items.push(a);var l=a.lastIndexOf(` `);l!==-1?this.__character_count=a.length-l:this.__character_count+=a.length},v.prototype.pop=function(){var a=null;return this.is_empty()||(a=this.__items.pop(),this.__character_count-=a.length),a},v.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},v.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},v.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},v.prototype.toString=function(){var a="";return this.is_empty()?this.__parent.indent_empty_lines&&(a=this.__parent.get_indent_string(this.__indent_count)):(a=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),a+=this.__items.join("")),a};function d(a,l){this.__cache=[""],this.__indent_size=a.indent_size,this.__indent_string=a.indent_char,a.indent_with_tabs||(this.__indent_string=new Array(a.indent_size+1).join(a.indent_char)),l=l||"",a.indent_level>0&&(l=new Array(a.indent_level+1).join(this.__indent_string)),this.__base_string=l,this.__base_string_length=l.length}d.prototype.get_indent_size=function(a,l){var o=this.__base_string_length;return l=l||0,a<0&&(o=0),o+=a*this.__indent_size,o+=l,o},d.prototype.get_indent_string=function(a,l){var o=this.__base_string;return l=l||0,a<0&&(a=0,o=""),l+=a*this.__indent_size,this.__ensure_cache(l),o+=this.__cache[l],o},d.prototype.__ensure_cache=function(a){for(;a>=this.__cache.length;)this.__add_column()},d.prototype.__add_column=function(){var a=this.__cache.length,l=0,o="";this.__indent_size&&a>=this.__indent_size&&(l=Math.floor(a/this.__indent_size),a-=l*this.__indent_size,o=new Array(l+1).join(this.__indent_string)),a&&(o+=new Array(a+1).join(" ")),this.__cache.push(o)};function s(a,l){this.__indent_cache=new d(a,l),this.raw=!1,this._end_with_newline=a.end_with_newline,this.indent_size=a.indent_size,this.wrap_line_length=a.wrap_line_length,this.indent_empty_lines=a.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new v(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}s.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},s.prototype.get_line_number=function(){return this.__lines.length},s.prototype.get_indent_string=function(a,l){return this.__indent_cache.get_indent_string(a,l)},s.prototype.get_indent_size=function(a,l){return this.__indent_cache.get_indent_size(a,l)},s.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},s.prototype.add_new_line=function(a){return this.is_empty()||!a&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},s.prototype.get_code=function(a){this.trim(!0);var l=this.current_line.pop();l&&(l[l.length-1]===` `&&(l=l.replace(/\n+$/g,"")),this.current_line.push(l)),this._end_with_newline&&this.__add_outputline();var o=this.__lines.join(` `);return a!==` diff --git a/umi.00d8bc64.js b/umi.ffc4f1a6.js similarity index 99% rename from umi.00d8bc64.js rename to umi.ffc4f1a6.js index b4e51d789c..e4f429a134 100644 --- a/umi.00d8bc64.js +++ b/umi.ffc4f1a6.js @@ -1,4 +1,4 @@ -(function(x){function g(l){for(var f=l[0],o=l[1],h=l[2],c,b,E=0,O=[];E